@soma-vertical-web/multi-lib 0.0.45 → 0.0.47
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.
- package/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
- package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
- package/contexts/index.d.ts +6 -0
- package/data/helpers/plp/index.d.ts +4 -0
- package/index.js +15 -15
- package/index.mjs +3112 -2923
- package/index2.js +1 -1
- package/index2.mjs +104 -81
- package/layout/index.d.ts +30 -0
- package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
- package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
- package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
- package/layout/team-component/PLPNavigation/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
- package/types/constants.d.ts +4 -0
- package/types/contexts/contexts/search.d.ts +1 -1
- package/types/layout/team-components/Filter/index.d.ts +1 -1
- package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
- package/types/layout/team-components/Sort/index.d.ts +1 -2
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var Du=Object.defineProperty;var $u=(e,t,r)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var lr=(e,t,r)=>$u(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("react"),tt=require("idb-keyval"),ct=require("zustand"),Qn=require("js-cookie"),_=require("@soma-vertical-web/core-components"),Me=require("./__vite-browser-external-B8mGO3z6.js"),Bu=require("jose"),ot=require("@soma-vertical-web/foundations"),Qo=require("axios"),la=require("react-dom"),$e=require("draft-js"),Yo=require("@date-fns/tz"),go=C.createContext({}),Fu=({data:e,children:t})=>o.jsx(go.Provider,{value:{tags:e==null?void 0:e.config},children:t}),yo=()=>{const{tags:e}=C.useContext(go),t=C.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:i,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},ua=({gridScrollBack:e})=>{C.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},da=C.createContext({}),qu=({children:e,gridScrollBack:t})=>{const r=C.useRef(null);return ua({gridScrollBack:t}),o.jsx(da.Provider,{value:{sizesContainerRef:r},children:e})},zu=()=>{const e=C.useContext(da);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ie=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),_o=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Ie(0):Ie(e/100),vo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Zt=(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()}},bo=(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},Hu=(e,t)=>e.replace(t,"").trim(),Uu=e=>e.replace(/\//g,""),fa=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let i=!0;const s=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??vo(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(i=!1),a.push(l),a},[]);return{...r,sizes:s,allSizesAvailable:i}},xo=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Co=(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)},pa=e=>e.find(t=>t.imageLabel==="10"),ma=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ha=(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},ga=({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},Gu=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},ya=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},Wu=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:xo,formatPriceToCurrency:Ie,freightParsePrice:_o,getAspectRatio:Gu,getColorAndSizeFromSkuName:Zt,getFirstImages:ga,getProductNameWithoutSku:Hu,getSKUName:bo,getSkuInfos:fa,getThumbImage:pa,getValidOffer:Co,removeSlashes:Uu,resizingImg:ma,setVideoPlay:ya,splitNameAndSizeFromFullName:vo,updatedResizedImg:ha},Symbol.toStringTag,{value:"Module"})),He=({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})},xe={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:i,promotionInfo:s,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:xe.configs.currency,value:f,grade_disponivel:l??(u?_a(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:xe.configs.currency}:{}},d=Pt({data:n,customData:{...i,...a,...s},configs:xe.configs});He({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:i,customData:s}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Pt({data:{...c},customData:{...r,index:l,...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n},configs:xe.configs}));He({event:"view_item_list",data:{...i,ecommerce:{...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:i,price:s},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,b,j,v,A,S,P,x;const d=i==null?void 0:i.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=ba(),B=xa(I,d);B&&(m={...m,...B}),t==="add_to_cart"&&(a||c)&&Yn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Yn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const h=(d==null?void 0:d.size)??Zt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=p.itemOffered)==null?void 0:j.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return Pt({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=p.itemOffered)==null?void 0:v.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(P=(S=(A=d==null?void 0:d.offers)==null?void 0:A.offers)==null?void 0:S[0])==null?void 0:P.seller)==null?void 0:x.identifier)??p.seller},configs:xe.configs})});He({event:t,data:{...l,ecommerce:{value:s??u,currency:xe.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,i={},s={};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:c,value:l})=>{var p;const u=((p=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(i==null?void 0:i[u])||[];u==="price_range"&&l.replace(":","-"),i[u]=[...f,l]}),Object.keys(i).forEach(c=>s[c]=i[c].join(", "))),He({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const i=window.localStorage.getItem("persistedCartEventsData"),s=i?JSON.parse(i):{},a=n.items.map(A=>{const{promotionInfo:S,itemList:P}=s[A.id]??{};return Pt({data:{...A,price:A.price/100,listPrice:A.listPrice/100},customData:{...S,...P,item_sku:A.id??A.itemOffered.sku,quantity:A.quantity??1},configs:xe.configs})}),c=(((f=n.totalizers.find(A=>A.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(A=>A.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];He({event:"view_cart",data:{...r,ecommerce:{currency:xe.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=n.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=n.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;He({event:t,data:{...r}})}},_a=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Vu=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(xe.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Pt=({data:e,customData:t,configs:r})=>({...Ku(e,r==null?void 0:r.MAIN_IMAGE),...Xu(e),...Qu(e),...Yu(e),...t}),va=()=>{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("_"))??[]:[]},ba=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},xa=(e,t)=>e==null?void 0:e[t],Yn=({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)))},Ku=(e,t="1")=>{var s,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(s=e.items)==null?void 0:s[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),i=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??vo((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${xe.configs.storeUrl}${e.linkText}/p`,item_image:(i==null?void 0:i.url)??(i==null?void 0:i.imageUrl)}},Zo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Xu=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),i=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),s=Zo(n),a=Zo(i),c=s.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(xe.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]}}},Qu=e=>{var i,s,a,c,l,u;const t=((i=e.itemOffered)==null?void 0:i.skuName)??((c=(a=(s=e.isVariantOf)==null?void 0:s.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=Zt(t,xe.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Yu=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,i=t??((l=e.offers)==null?void 0:l.lowPrice)??0,s=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=s?s-i:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:i??s},...s&&{list_price:s,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:xe.configs.currency}},Ca=()=>{const[e,t]=va(),[r,n]=e.split("-"),i=r.includes("shop")||r.includes("sale")?r:"";return{page_category:i&&n?n:"",page_departament:i,id:t,name:e}},Zu=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:xa,getAvailablesSizes:_a,getCategories:Vu,getPageCategoryAndDepartmentFromSlug:Ca,getPersistedData:ba,getProductListInfoFromHead:va,pushDatalayer:He,updatePersistedData:Yn},Symbol.toStringTag,{value:"Module"})),Sa=C.createContext({}),Ju=({children:e,evtFunctionsConfigs:t})=>{const r=C.useRef({}),n=C.useRef(null),i=C.useRef(null),s=C.useRef({}),a=C.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=i.current)!=null&&h.item_list_name&&(p.itemList=i.current),xe[f](p,d)},m)}catch(h){He({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return o.jsx(Sa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:i,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>C.useContext(Sa),ja=C.createContext({}),ed=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:i})=>{var $,R;const{sendDataLayerEvent:s,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=yo(),b=g(Object.entries(t.clusterHighlights).map(F=>({id:F[0],name:F[1]}))),j=y.slice(1,-1).split("/"),{installments:v,price:A,listPrice:S,sizes:P,allSizesAvailable:x}=fa({items:u,NAME_SPLIT_SYMBOL:i}),I=pa(f),B=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((R=Zt(($=t.items)==null?void 0:$[0].name,i))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:P,price:A,listPrice:S,installments:v},customData:{installments:v==null?void 0:v.count,installment_value:Number(v==null?void 0:v.value).toFixed(2)}}),N=({sku:F,size:H})=>{const{commonData:U,customData:K}=O();s({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...F&&{item_sku:F},...H&&{item_variant2:H}}}})};return C.useEffect(()=>{if(a.current.trigger){const{commonData:F,customData:H}=O();s({functionKey:"productEvents",data:{event:"select_item",commonData:F,customData:{...H,index:a.current.index}}}),a.current.trigger=!1}N({})},[]),o.jsx(ja.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:b,items:u,sizes:P,allSizesAvailable:x,installments:v,price:A,listPrice:S,thumbImage:I,images:f,video:p[0],descriptionContent:B,breadcrumbList:j,isKit:r,colorName:E,handleViewItemEvent:N},children:e})},So=()=>{const e=C.useContext(ja);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},td={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Te=Promise.resolve(!1),Zn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Te,addItem:()=>Te,addSellerCode:()=>Te,addMarketingData:()=>Te,emptyCart:()=>{},removeItem:()=>Te,setIsOpen:()=>{},shipping:()=>Te,shippingUpdate:()=>Te,toggleServiceToProduct:()=>Te,updateItemQuantity:()=>Te,insertProfileEmail:()=>Te,setRecentlyAddedProducts:()=>{}},jo=e=>e===0,Aa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],i=e.match(/\d+/g)??[];for(const s of i){const a=t[Number(s)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ea=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:i,id:s,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:b,refId:j,seller:v,referenceId:A,offerings:S,productRefId:P,skuName:x,sellingPrice:I}=e;return{availability:r,bundleItems:i,referenceId:A,productRefId:P,id:s,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Aa(g,y),categoriesIds:g,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:s,slug:c,skuName:x},listPrice:p,quantity:d,offerings:S,price:m,priceDefinition:h,sellingPrice:I,seller:v}},Ra=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},wa=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((i,s)=>{var a,c;return{id:((a=i.itemOffered)==null?void 0:a.sku)??"",index:s,quantity:(r==null?void 0:r.id)===((c=i.itemOffered)==null?void 0:c.sku)?0:i.quantity,seller:i.seller??""}});return{updateItems:n,filterItems:n.filter(i=>i.id!==t)}}return{updateItems:[],filterItems:[]}},Pa=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,i)=>{var s,a;return n.id===t?{id:n.id,index:i,quantity:r,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}:{id:n.id,index:i,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Jn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),rd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var i;return((i=n==null?void 0:n.id)==null?void 0:i.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},nd=e=>{const t=e.reduce((i,s)=>{const a=jo(s.price)?0:s.quantity;return i+a},0),r=e.reduce((i,s)=>i+s.price*s.quantity,0),n=e.reduce((i,s)=>i+s.listPrice*s.quantity,0);return{totalItems:t,total:r,subTotal:n}},od=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(jo(r==null?void 0:r.price)?0:r.quantity),0):0,Ia=(e,t)=>{const{items:r,itemMetadata:n,marketingData:i,messages:s,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>Ea(p,t)):[],marketingData:i,messages:s,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Na=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},id=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(i=>i.sku===r);return n?n.name.split(t)[1]:"--"},nt=(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},sd=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},Oa=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ta=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ma=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ka=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},La=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Da=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:i="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:i,method:"POST",body:JSON.stringify(s)}).then(async a=>{const c=await a.json();return r?c:Ia(c,n)})},$a=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),ad=e=>[...Array.isArray(e)?e:[e],"faststore"],Ba=e=>{const t=e.get("utm_source")||Ve("utm_source"),r=e.get("utm_campaign")||Ve("utm_campaign"),n=e.get("utm_medium")||Ve("utm_medium"),i=e.get("utmi_cp")||Ve("utmi_cp"),s=e.get("utmi_pc")||Ve("utmi_pc"),a=e.get("utmi_p")||Ve("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...i&&{utmiCampaign:i},...s&&{utmiPart:s},...a&&{utmipage:a}}},Ve=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},cd=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:td,addItemOrder:Ra,addNotification:$a,createItemOrder:Ea,fetchCartAPI:we,findItemIndex:Jn,findOptions:La,findTotalizerValue:rd,getCategories:Aa,getCode:nt,getQuantity:ka,getRemoveId:Oa,getSize:id,getTotalItems:od,getTotalizer:nd,getUrlParameter:Ve,getValue:Ta,initialState:Zn,isGift:jo,marketingTagsBuilder:ad,mergeOptionsPromise:Da,mountMarketingData:Ba,orderFormValues:Ia,promiseDefault:Te,removeQuantity:wa,updateItemSellerExternal:Na,updateOrderFormPromise:Ma,updateQuantity:Pa,wishlistArray:sd},Symbol.toStringTag,{value:"Module"})),ld=()=>{const e=async(m,h)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:Ra(h,y)}}),i=async(m,h,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),s=async m=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>we("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>we("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=wa(h,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=Pa(h,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:i,emptyCart:s,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,b)=>p(m,h,y,g).then(j=>j&&Array.isArray(j.items)?Na(j.items,y)?p(m,h,y,b):j:!1)}},eo="soma::cart",pt="soma::options",it=ct.create((e,t)=>{const r=ld(),n=async(i,s,a)=>{e({loading:!0});const c=await Ma(i);if(typeof c!="boolean"){e({...c});const l=await Da(tt.get(pt),a);return tt.set(pt,l),Ta(c,s).finally(()=>e({loading:!1,options:l}))}return Te};if(typeof window<"u"){const i=async s=>{if(s){const a=await tt.get(pt).then(u=>La(u,s.items));tt.set(eo,s),tt.set(pt,a),e({...s,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return tt.get(eo).then(s=>r.getOrderForm(s?s.id:"").then(i)),{...Zn,addCoupon:async s=>n(()=>r.addCoupon(t().id,s),"marketingData"),addItem:(s,a)=>{n(()=>r.addItem(t().id,t().items,s),"items",a)},addSellerCode:async s=>n(()=>r.addSellerCode(t().id,s),"openTextField"),addMarketingData:async s=>n(()=>r.addMarketingData(t().id,s),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async s=>{const a=await n(()=>r.removeItem(t().id,t().items,s),"items");return Oa(s,a)},shipping:async(s,a="BR")=>n(()=>r.shipping(t().id,s??"",a),"shippingData"),shippingUpdate:async s=>n(()=>{var a;return r.shippingUpdate(t().id,s,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(s,a,c)=>n(()=>r.giftItem(t().id,s,a,c),"items"),updateItemQuantity:async(s,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,s,a,((f=u.find(p=>p.id===s))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return Zn}),ud=()=>it(e=>e),Fa=ct.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>$a(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),qa=()=>Fa(e=>e.notifications),za=()=>Fa(e=>e.actions),dd=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:pt,KEY_INDEXED_STORE:eo,useCartStore:it,useGetCartStoreState:ud,useGetNotificationActions:za,useGetNotificationsStore:qa},Symbol.toStringTag,{value:"Module"})),fd=6e3,Ha=C.createContext({}),Ua=({children:e,...t})=>{const{items:r}=it(),[n,i]=C.useState([]),s=C.useRef(null),a=C.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return C.useEffect(()=>{n.length&&(clearTimeout(s.current??0),s.current=setTimeout(()=>{i([])},fd))},[n]),o.jsx(Ha.Provider,{value:C.useMemo(()=>({...t,setRecentlyAdded:i,recentlyAddedProducts:a}),[t,i,a]),children:e})},_t=()=>{const e=C.useContext(Ha);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Ga{constructor(){lr(this,"events",{});lr(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 Wa=C.createContext({}),pd=({children:e,headerConfigs:t,pathname:r,...n})=>{const[i,s]=C.useState(!0),a=r==="/",c=C.useRef(new Ga),l=p=>p?{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(a),f=C.useRef(u);return C.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Qn.get("lastMedias")||Qn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);i!==y&&s(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[i]),C.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),o.jsx(Wa.Provider,{value:{isMobile:i,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:o.jsx(Ua,{children:e})})},Se=()=>C.useContext(Wa),Va=C.createContext({}),md=({children:e,...t})=>o.jsx(Va.Provider,{value:{...t},children:e}),Ee=()=>C.useContext(Va),Ze=(e,t)=>ct.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:i=>r({value:i}),reset:n}}}),yt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},vt=new Set,hd=()=>{vt.forEach(e=>{e()})},Ka=ct.create((e,t)=>{const r=()=>e({value:yt.category});return vt.add(r),{value:yt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Jt=()=>Ka(e=>e.value),We=()=>Ka(e=>e.actions),Xa=Ze(yt.menuMobileIsOpen,vt),Ao=()=>Xa(e=>e.value),Je=()=>Xa(e=>e.actions),Qa=Ze(yt.searchModalIsOpen,vt),gd=()=>Qa(e=>e.value),Eo=()=>Qa(e=>e.actions),Ya=Ze(yt.userMenuIsOpen,vt),Za=()=>Ya(e=>e.value),bt=()=>Ya(e=>e.actions),yd=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:hd,useActionsHeaderCategory:We,useActionsMenuMobileIsOpen:Je,useActionsSearchModalIsOpen:Eo,useActionsUserMenuIsOpen:bt,useGetHeaderCategoryStore:Jt,useGetMenuMobileIsOpen:Ao,useGetSearchModalIsOpen:gd,useGetUserMenuIsOpen:Za},Symbol.toStringTag,{value:"Module"})),st={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},lt=new Set,_d=()=>{lt.forEach(e=>{e()})},Ja=ct.create(e=>{const t=()=>e({value:st.selectedSkuInfo});return lt.add(t),{value:st.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),vd=()=>Ja(e=>e.value),bd=()=>Ja(e=>e.actions),ec=Ze(st.openLetMeKnow,lt),xd=()=>ec(e=>e.value),Cd=()=>ec(e=>e.actions),tc=Ze(st.showNotify,lt),Sd=()=>tc(e=>e.value),jd=()=>tc(e=>e.actions),rc=Ze(st.showBottomNavigation,lt),Ad=()=>rc(e=>e.value),Ed=()=>rc(e=>e.actions),nc=Ze(st.openMeasurements,lt),Rd=()=>nc(e=>e.value),wd=()=>nc(e=>e.actions),Pd=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:_d,useActionsPDPOpenLetMeKnow:Cd,useActionsPDPOpenMeasurements:wd,useActionsPDPSelectedSkuInfo:bd,useActionsPDPShowBottomNavigation:Ed,useActionsPDPShowNotify:jd,useGetPDPOpenLetMeKnow:xd,useGetPDPOpenMeasurements:Rd,useGetPDPSelectedSkuInfo:vd,useGetPDPShowBottomNavigation:Ad,useGetPDPShowNotify:Sd},Symbol.toStringTag,{value:"Module"})),oc=C.createContext({}),Id=({children:e,headerData:t,...r})=>{var f,p;const n=C.useRef(null),i=C.useRef(null),s=C.useRef(null),a=C.useRef(null),c=C.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=Se();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!n.current)return;const h=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=h?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";g!==((j=u.current)==null?void 0:j.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(h)),n.current.setAttribute("data-variant",String(g)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",g),u.current&&(u.current.headerVariant=g))}),(p=l.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),C.useEffect(()=>{const d=new AbortController,m=_.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:d.signal});const h=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",h,{signal:d.signal}),n.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),o.jsx(oc.Provider,{value:{headerData:t,structureRef:i,rootRef:n,tipbarRef:s,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},be=()=>C.useContext(oc),ic=C.createContext({}),sc=({children:e})=>{const t=C.useRef(null),r=C.useRef(null),n=Ao(),i=C.useCallback(()=>{var s;{const a=(s=t.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return C.useEffect(()=>{var s;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(s=r.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),C.useEffect(()=>{r.current=document.body},[]),o.jsx(ic.Provider,{value:{bodyRef:t,handleCloseSubMenu:i,documentBodyRef:r},children:e})},xt=()=>C.useContext(ic),Nd=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Od=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=e!=null&&e.parentElement?Nd(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(i.width+s),top:n.top+n.height+r}},ac=C.createContext({}),cc=({children:e,delay:t=600,gap:r=20,...n})=>{const[i,s]=C.useState(!1),a=C.useRef(null),[c,l]=C.useState(!1),[u,f]=C.useState({left:0,top:0}),p=C.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{s(!1),l(!1)},t))},[l,s,t]);return C.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=Od(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,i]),o.jsx(ac.Provider,{value:C.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:i,setIsOpen:s,setIsLeaving:l}),[n,u,p,c,i,s,l]),children:e})},et=()=>{const e=C.useContext(ac);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},lc=C.createContext({}),Td=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=it(),{setRecentlyAdded:i}=_t(),s=C.useRef(""),a=qa(),{addNotification:c,removeNotification:l}=za(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=n;C.useEffect(()=>{const R=Qn.get("lastMedias");if(n.id&&R&&s.current!==R){s.current=R;const F=new URLSearchParams(R),H=Ba(F);d(H)}},[n,d]);const A=C.useCallback(async(R,F)=>(F==="coupon"?u(R):p(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(F==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return nt((z==null?void 0:z[0])??"",R,!!K)}return nt(String(U.coupon),R,!0)}return nt("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),S=C.useCallback((R,F,H)=>{const{id:U}=R;v(U,F,H)},[v]),P=C.useCallback((R,F,H=!1)=>{if(!R)return;const{id:U}=R,K=Jn(n.items,U);if(K!==-1&&!H){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;S(R,z,F)}else f({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||i(W=>[...W,R])},[f,S,n.items,h,i]),x=C.useCallback((R,F)=>{if(!R||!Array.isArray(R))return;i(U=>[...U,...R]);const H=R.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=Jn(n.items,K),w=ka(W??1,ne);return{id:K,quantity:w,seller:z}});f(H,F)},[f,n.items,i]),I=C.useCallback(async(R,F,H)=>R?y(R).then(()=>(c(F??`${t}`,H),nt(R,R))):Promise.resolve(nt("","Product id required")),[c,y]),B=C.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=C.useCallback((R,F="BRA")=>g(R,F),[g]),O=C.useCallback(R=>{R&&b(R)},[b]),N=C.useCallback(async(R,F,H)=>{const U=n.items.findIndex(W=>W.id===R);return n.items[U]&&U>=0?j(F,U,H??!1):!1},[n.items,j]),$=C.useCallback(async(R,F)=>v(R,F).then(H=>{if(Array.isArray(H)){const U=H.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<F)return String(U.quantity)}return!1}),[v]);return o.jsx(lc.Provider,{value:C.useMemo(()=>({...r,addCouponSeller:A,addToCart:P,addItemsToCart:x,cartStore:n,notifications:a,clearCart:B,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:O,toggleGiftItemCart:N,updateItemQuantity:$}),[r,A,P,x,a,B,c,n,l,I,E,O,N,$]),children:e})},qe=()=>{const e=C.useContext(lc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},uc=C.createContext({}),Ro=({children:e,fetch:t})=>{const r=C.useRef(!0),[n,i]=C.useState(null),[s,a]=C.useState(!1);return C.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();i(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),o.jsx(uc.Provider,{value:C.useMemo(()=>({data:n,isLoading:r.current??!1,isError:s}),[n,s,r]),children:e})},wo=()=>{const e=C.useContext(uc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},dc=C.createContext({}),fc=({children:e,sort:t,state:r,count:n,collectionId:i,CONSTANTS:s})=>{const a=C.useMemo(()=>{var c;return i?[{key:"productclusterids",value:i.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,i]);return o.jsx(dc.Provider,{value:C.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??s.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},Po=()=>{const e=C.useContext(dc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ke={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"},default_option:"score:desc"},Md={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},kd="Imagem do produto",Jo=1,Ld="Sair",Dd=e=>e.exit,$d=({ICONS:e,storeConfig:t})=>[{icon:e.person,label:"Minha conta",href:`${t.secureSubdomain}/api/io/account#/profile`,needToBeAuth:!1,deviceShown:"both"},{icon:e.delivery_truck,label:"Meus pedidos",href:`${t.secureSubdomain}/api/io/account#/orders`,needToBeAuth:!1,deviceShown:"both"},{icon:e.favorite_false,label:t.wishlistConfig.label,href:t.wishlistConfig.path,needToBeAuth:!1,deviceShown:"mobile"},{icon:e.help,label:t.termsConfig.label,href:t.termsConfig.path,needToBeAuth:!1,deviceShown:"mobile"}],Bd=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Fd=e=>"Seja bem vindo!",pc=C.createContext({}),qd=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...i}=wo(),{router:s}=Ee(),a=C.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),s.push(`?${d.toString()}`)}},[s]),c=C.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Ke.default_option),p.set("page","1"),s.push(`?${p.toString()}`)},[s]),l=C.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),s.push(`?${d.toString()}`)},[s]),u=C.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=C.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));d.set("sort",p.replace("_",":")),s.push(`?${d.toString()}`)},[s,t]);return o.jsx(pc.Provider,{value:C.useMemo(()=>({...i,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,i,r,t]),children:e})},zd=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=Po();return o.jsx(Ro,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:o.jsx(qd,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Hd=()=>{const e=C.useContext(pc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},mc=C.createContext({}),Ud=({children:e})=>{const{data:t,...r}=wo(),[n,i]=C.useState(0),{sendDataLayerEvent:s}=ge();return C.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){s({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&i(a)}},[t,s,i]),o.jsx(mc.Provider,{value:C.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Md,total:n}),[t,r,n]),children:e})},Gd=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:i})=>o.jsx(Ro,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:i,facets:n??[]})}),children:o.jsx(Ud,{state:r,children:e})}),Wd=()=>{const e=C.useContext(mc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},hc=C.createContext({}),Vd=({children:e,term:t})=>{const[r,n]=C.useState([]),[i,s]=C.useState(!1);return C.useEffect(()=>{if(!t){n([]);return}(async()=>{s(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),o.jsx(hc.Provider,{value:C.useMemo(()=>({suggestedTerms:r,loading:i,setLoading:s}),[r,i]),children:e})},Kd=({children:e,...t})=>o.jsx(Vd,{...t,children:e}),Xd=()=>{const e=C.useContext(hc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},gc=C.createContext({searches:[],isLoading:!1,error:null}),Qd=({children:e})=>{const[t,r]=C.useState([]),[n,i]=C.useState(!0),[s,a]=C.useState(null);return C.useEffect(()=>{(async()=>{try{i(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{i(!1)}})()},[]),o.jsx(gc.Provider,{value:C.useMemo(()=>({searches:t,isLoading:n,error:s}),[t,n,s]),children:e})},Yd=()=>{const e=C.useContext(gc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},yc=C.createContext({}),Zd=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:i=24})=>{const{pathname:s}=Ee(),[a,c]=C.useState(!1),l=C.useMemo(()=>{const f=new URL(s,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ke.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,s,r,t]),u=C.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Me.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Me.parseSearchState(l,f)},[l,r]);return o.jsx(yc.Provider,{value:C.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:o.jsx(fc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:C.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},Jd=()=>{const e=C.useContext(yc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Xt=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((i,s)=>Xt(i,t[s]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(i=>Object.prototype.hasOwnProperty.call(t,i)&&Xt(e[i],t[i]))},_c=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Xt(t[n],e[n])),to=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},vc=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),bc=(e,t,r,n=24)=>{const i=new Set,s=[];if(!Array.isArray(e)||e.length===0)return{taken:i,placedBanners:s};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>i.has(l+h))){for(let m=0;m<c.columns;m++)i.add(l+m);s.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:i,placedBanners:s}},ro=(e,t,r,n=24)=>{const{placedBanners:i,taken:s}=bc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)s.has(c)||a.push(c),c++;return{banners:i,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},Vt=(e,t,r=24)=>Array.from({length:e},(n,i)=>{const s=i+1;return{loading:e===s,page:s,pagination:t!=null&&t.products.length&&e===s?t==null?void 0:t.pagination:Io(),products:t!=null&&t.products.length&&e===s?t==null?void 0:t.products:Array.from({length:r},()=>vc())}}),xc=(e,t)=>[...e,{loading:!1,page:t,pagination:Io(),products:[]}],Io=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),ef=(e,t,r,n,i)=>{const s=e[e.length-1],a=(s==null?void 0:s.products.length)??i,c=(e.length-1)*i+a-1,l=r[c];return t.filter((u,f)=>{const p=n[f];return p<=l||i>a&&p>l})},Cc=(e,t)=>{const r=new Map;for(const i of e){const s=Math.floor(i/t);r.has(s)||r.set(s,[]),r.get(s).push(i)}const n=[];for(const[,i]of r){const s=i[Math.floor(Math.random()*i.length)];n.push(s)}return n},tf=(e,t)=>{if(!e)return[];const r=e.map((n,i)=>n.video&&n.video!==""?i:null).filter(n=>n);return Cc(r,t)},rf=Object.freeze(Object.defineProperty({__proto__:null,createPage:xc,createPages:Vt,createPagination:Io,createProduct:vc,deepEqual:Xt,fetchPage:to,getBanners:bc,getPositions:ro,getProductsWithVideo:tf,getRandomVideoPerRow:Cc,getVisibleBanners:ef,hasStateChangedExceptPage:_c},Symbol.toStringTag,{value:"Module"})),nf=50,of=ct.create((e,t)=>{const r=a=>Math.min(a,nf),n=async(a,c)=>{const l=r(a.page);try{const u=await to({...a,page:l});i(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),i(l,f=>({...f,loading:!1}))}},i=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},s=async(a,c)=>{await n(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:Vt(f,void 0,u)});try{const h=await to({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){s({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:Vt((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:Vt(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:xc(u,f)}),s(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||s(a,c)}}}),sf=(e,t,r,n=0)=>{if(!e.length)return[];let i=0;const s=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,p=n+f,d=t.find(h=>h.position_grid===p+1),m=p+i+1;d&&(i+=d.columns),s.push({position:m,canPlayVideo:u===l})}}return s},af=(e,t,r)=>{const n=(t-1)*r,i=t*r;return e>=n&&e<=i},Sc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:xo(r),size:bo(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},cf=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:sf,getSkusNotify:Sc,isPositionInCurrentPage:af},Symbol.toStringTag,{value:"Module"})),jc=C.createContext({}),lf=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:i})=>{const{router:s}=Ee(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=Se(),{state:l}=Po(),{addPage:u,createPages:f,updateProducts:p,...d}=of(),m=c?8:16,h=c?2:4,y=C.useRef(!1),g=C.useRef(l),[b,j]=C.useState(!1),[v,A]=C.useState(null),[S,P]=C.useState([]),x=C.useCallback(N=>{N&&"pagination"in N&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:N.products}}})},[a]),I=C.useCallback(N=>{if(N.pagination.nextPage===!0){const $=N.page+1,R=ro(e,$,h,r);u({...l,page:$},R,x)}},[u,e,x,h,r,l]),B=C.useCallback(N=>{N.loading===!1&&p({...l,page:N.page},x)},[x,p,l]),E=C.useCallback(N=>{const $=new URLSearchParams(n);N.page!==Number($.get("page")??1)&&($.set("page",String(N.page)),s.replace(`?${$.toString()}`,{scroll:!1}))},[s,n]),O=C.useCallback((N,$)=>{const R=$?Sc([$]):null;P(N),A(R!=null&&R.length?R[0]:null),j(!0)},[]);return C.useEffect(()=>{const N=!y.current,$=_c(g.current,l),R=ro(e,l.page,h);N?f(l,R,x,r):$&&(f(l,R,x,r),g.current=l),y.current=!0},[e,f,x,h,r,l]),o.jsxs(jc.Provider,{value:C.useMemo(()=>({...d,addPage:u,addNewPage:I,createPages:f,gap:m,columns:h,handleNotify:O,updatePage:B,updateProducts:p,updateParamPage:E}),[u,I,f,O,m,h,d,B,p,E]),children:[t,o.jsx(i,{notify:b,sku:v,skus:S,setSku:A,setNotify:j})]})},uf=()=>{const e=C.useContext(jc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Ac(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[i,s]=n.trim().split("=");if(i===e)return s}}function No(e,t,r={}){const i={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let s=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in i)i[a]!==void 0&&(s+=`; ${a}`,a==="expires"?s+=`=${i[a].toUTCString()}`:typeof i[a]=="boolean"?s+=`; ${i[a]?"true":"false"}`:s+=`=${i[a]}`);window.document.cookie=s}const df=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=Oo(),{cartStore:r}=qe();return C.useEffect(()=>{if(!t)return;(async()=>{const{userId:i,email:s,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(i),g=await crypto.subtle.digest("SHA-256",y),j=Array.from(new Uint8Array(g)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:j,email:s,first_name:a,last_name:c,phone:l||u,zip:f,street:p,street_number:d,city:m,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Ec=C.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),ff=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=C.useState({amount:null,boxes:null,toExpire:null,loading:!0}),i=C.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c;n({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:u,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),s=C.useCallback(()=>{No(t),i()},[i]),a=C.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return C.useEffect(()=>{i()},[i]),o.jsxs(Ec.Provider,{value:C.useMemo(()=>({...r,getCurrentCredits:a,logout:s}),[r,a,s]),children:[o.jsx(df,{}),e]})},Oo=()=>{const e=C.useContext(Ec);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Rc=C.createContext({gridBanners:void 0,banners:[]}),pf=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:i})=>{const{isMobile:s}=Se(),a=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=a.slice(0,Jo),l=a.slice(Jo,a.length),u=t==null?void 0:t.sections.find(p=>p.name==="List Product Banners"),f=C.useMemo(()=>{var p,d;return((d=(p=u==null?void 0:u.data)==null?void 0:p.banners)==null?void 0:d.map(m=>({...m.banner,columns:m.bannerWidth,position_grid:m.bannerPosition})))??[]},[u]);return s&&r==="mobile"||!s&&r==="desktop"?o.jsxs(Rc.Provider,{value:{gridBanners:u,banners:f},children:[o.jsx(n,{data:c??[]}),o.jsxs(_.Utils.Column,{gap:i,className:_.helpers.classNameConcat("utils-column-modifier"),children:[e,o.jsx(n,{data:l??[]})]})]}):o.jsx(o.Fragment,{})},mf=()=>{const e=C.useContext(Rc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},wc=C.createContext({}),Pc=({children:e,filters:t,PLP_FILTERS:r,...n})=>{var s;const i=(s=t.facets)==null?void 0:s.filter(a=>r.find(c=>c.key===a.key));return o.jsx(wc.Provider,{value:C.useMemo(()=>({...n,filters:{...t,facets:i}}),[t,i,n]),children:e})},ut=()=>{const e=C.useContext(wc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},hf={contexts:{addToCart:{hook:et,provider:cc},cart:{hook:qe,provider:Td},cms:{FlagsAndTags:{context:go,hook:yo,provider:Fu}},events:{hook:ge,provider:Ju},global:{hook:Se,provider:pd,mediator:Ga},header:{hook:be,provider:Id},menuMobile:{hook:xt,provider:sc},next:{hook:Ee,provider:md},pdp:{provider:qu,hook:zu},plp:{provider:Zd,hook:Jd},plpFilter:{hook:ut,provider:Pc},PLPContent:{provider:pf,hook:mf},plpInfinite:{provider:lf,hook:uf},pdpdata:{hook:So,provider:ed},searchFacets:{hook:Hd,provider:zd},searchProducts:{hook:Wd,provider:Gd},searchRoot:{hook:wo,provider:Ro},searchSearch:{hook:Po,provider:fc},searchSuggestedTerms:{hook:Xd,provider:Kd},searchTopSearchs:{hook:Yd,provider:Qd},session:{hook:Oo,provider:ff},ui:{hook:_t,provider:Ua}},hooks:{useBackPDC:ua},stores:{cart:dd,header:yd,pdp:Pd}},gf=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function yf(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function _f(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ic=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,mt=(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),vf=e=>{const t=Bu.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},bf=["name","email","phone","date","cpf","cep"],ei={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},xf=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ei[e])return!0;const n=t.trim();return ei[e].test(n)},Cf=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):kd},Sf=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:bf,debounce:_f,getAltTextFromUrl:Cf,getAuthenticatedUser:vf,getCookie:Ac,getDaysHoursMinutesSeconds:mt,getMilliSeconds:Ic,removeAccentsAndReplaceSpaces:gf,setCookie:No,throttle:yf,validateInput:xf},Symbol.toStringTag,{value:"Module"})),jf={cart:cd,events:Zu,plp:rf,product:Wu,utils:Sf},To={helpers:jf},Ne={"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"},Nc=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--name"],t),children:[o.jsx(_.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:r})})})]});Nc.displayName="AddToCart.Card.Name";const Oc=({className:e,listPrice:t,price:r,quantity:n,productId:i,...s})=>{const a=Ie(r/100),c=Ie(t/100);return o.jsx("div",{...s,className:_.helpers.classNameConcat(Ne["add-to-cart--card--price-quantity"],e),children:o.jsx(_.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.ValuesWrapper,{children:r!==t?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Oc.displayName="AddToCart.Card.PriceQuantity";const Af="_skeleton_12b79_1",Ef={skeleton:Af},Rf=({style:e})=>o.jsx("div",{style:e,className:Ef.skeleton}),wf="_image_lypfr_1",Pf={image:wf},If=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:i}=Ee();return o.jsx(i,{quality:90,...n,alt:e??"",className:_.helpers.classNameConcat(Pf.image,t),"data-object-fit":r??"cover"})},Nf=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),Be={Image:If,Video:Nf},Tc=({className:e,productGroupID:t,size:r,texture:n,...i})=>{const{CONSTANTS:{TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a}}=et(),[c,l]=C.useState(n??"");return C.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 p=f.images.find(d=>s.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card--style-size"],e),children:[o.jsx(_.ToggleStyle.Wrapper,{size:"x-small",style:a,children:o.jsx(_.ToggleStyle.Texture,{children:c?o.jsx(Be.Image,{alt:"",src:c??"",width:164,height:164,style:a}):o.jsx(Rf,{})})}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&o.jsxs(_.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(_.ToggleSize.Text,{children:r})]})]})};Tc.displayName="AddToCart.Card.StyleSize";const{helpers:Of}=To,Mc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:i,brand:s,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=et(),{size:d}=Of.product.getColorAndSizeFromSkuName(a??i,p);return o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--content"],e),children:[o.jsx(Nc,{brand:s.name,name:i}),o.jsx(Oc,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Tc,{size:d,texture:r,productGroupID:c})]})};Mc.displayName="AddToCart.Card.Content";const kc=({image:e,thumbnail:t=!1})=>o.jsx(Be.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});kc.displayName="AddToCart.Card";const Lc=({className:e,item:t,texture:r,thumbnail:n,...i})=>{const{itemOffered:{image:[s]}}=t,a=ha(s.url,{width:200,height:300});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card"],e),children:[o.jsx(kc,{image:{alternateName:s.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&o.jsx(Mc,{item:t,texture:r})]})};Lc.displayName="AddToCart.Card";const Dc=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--content"],e),children:[o.jsx("div",{className:Ne["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(Qe.Footer,{})]});Dc.displayName="AddToCart.Layout.Content";const $c=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:i}}=et(),{cartStore:{totalizers:s},setIsOpen:a}=qe(),c=(m=s.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=s.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=s.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Ie(p??0);return o.jsxs("div",{...t,className:_.helpers.classNameConcat(Ne["add-to-cart--footer"],e),children:[o.jsxs("div",{className:Ne["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(_.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:i.footer.bag}),r?o.jsx(_.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:i.footer.keep_buying}):o.jsx(_.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:i.footer.keep_buying})]})};$c.displayName="AddToCart.Layout.Footer";const Bc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:i}}=qe(),{recentlyAddedProducts:s}=_t(),a=s.length>3?4:s.length;return o.jsxs("div",{...n,className:Ne["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(s)&&s.filter((c,l)=>l<a).map(c=>{var u;const l=(u=i==null?void 0:i.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(Qe.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Bc.displayName="AddToCart.Layout.Items";const Fc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=et(),{isMobile:i}=Se();return o.jsxs(_.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ne["add-to-cart__modal"],isMobile:i??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(_.Modal.Header,{navigation:"top",children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(_.Modal.Body,{children:e})]})};Fc.displayName="AddToCart.Modal";const Tf=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=et(),i=C.useRef(t);return C.useEffect(()=>{t>i.current&&n(!0),t<i.current&&i.current>=1&&r(),i.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},qc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:i}=_t(),{isMobile:s}=Se(),a=i.length>3?4:i.length;return o.jsx(cc,{...n,count:a,isMobile:s,CONSTANTS:r,children:o.jsx(Tf,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(Qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):o.jsx(Qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};qc.displayName="AddToCart.Root";const zc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,target:c,isOpen:l,top:u}=et();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),id:"add-to-cart--tooltip",className:Ne["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:s,size:"medium",position:"top",top:u,children:o.jsx("div",{className:Ne["add-to-cart--tooltip"],ref:c,children:e})})};zc.displayName="AddToCart.Tooltip";const Qe={Card:Lc,Content:Dc,Footer:$c,Items:Bc,Modal:Fc,Root:qc,Tooltip:zc},Mo=({title:e,...t})=>{const{recentlyAddedProducts:r}=_t(),{isMobile:n}=Se(),i=r.length>3?4:r.length,s=r.length>(i??1),a=r.length>1;return o.jsx(Qe.Root,{isMobile:n,count:r.length,component:o.jsx(Qe.Content,{title:e,children:o.jsx(Qe.Items,{thumbnail:a,children:s&&o.jsx(_.Badge.Count,{count:r.length-i,size:"medium",variant:"secondary"})})}),...t})};Mo.displayName="AddToCart";const ti={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Mf=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:i,style:s,...a})=>{const c={top:(i==null?void 0:i.top)??0,left:(i==null?void 0:i.left)??0,behavior:(i==null?void 0:i.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(_.Card,{...a,shadow:!0,padding:"small",className:_.helpers.classNameConcat(ti["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:ti["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},kf="_container_1sy8s_16",Ue={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:kf,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Lf=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return o.jsxs("div",{className:Ue["add-itens-to-cart-container"],children:[o.jsxs("div",{className:Ue["add-itens-to-cart-container-values"],children:[o.jsx("div",{className:Ue["add-itens-to-cart-qty-products"],children:o.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),o.jsx("div",{className:Ue["add-itens-to-cart-total"],children:o.jsx("span",{children:_o({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),o.jsx(_.Button,{onClick:t,className:Ue["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Df=e=>e.reduce((t,r)=>{var i;const n=t.find(s=>s.node.id===r.node.id);if(!n)return[...t,r];if((i=n==null?void 0:n.node.isVariantOf)!=null&&i.hasVariant){const s=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;s&&a&&(n.node.isVariantOf.hasVariant=[...s,...a])}return t},[]),$f=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:i,totalPrice:s}=r;try{if(!e){const{[t]:u,...f}=i;return{...r,totalPrice:s-u.price,products:f}}const a=Co(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(i[t]){const{price:u}=i[t];return i[t]={...i[t],price:l,id:e.sku,seller:c},{totalPrice:s+l-u,products:{...i}}}return{totalPrice:s+l,products:{...i,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Hc=C.createContext({}),Bf=({children:e,item:t,index:r,shelfTitle:n,...i})=>{const[s,a]=C.useState(null),c=C.useRef(null),l=C.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return o.jsx(Hc.Provider,{value:C.useMemo(()=>({...i,index:r,item:t,element:c,selectedSku:s,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[i,t,c,s]),children:e})},De=()=>{const e=C.useContext(Hc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ae={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Uc=({callback:e,children:t,className:r,data:n,isKit:i,...s})=>{const{item:{availability:{status:a},image:c}}=De();return a?o.jsxs("div",{...s,className:_.helpers.classNameConcat(Ae["product-card--actions"],r),children:[o.jsxs(ye.Wrapper,{type:"actions--group",children:[o.jsx(ye.Price,{}),o.jsx("div",{className:Ae["product-card--actions--selectors"],children:!i&&o.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Uc.displayName="ProductCard.Actions";const Gc=({className:e,isKit:t,...r})=>{const{addToCart:n}=qe(),{isMobile:i=!1,selectedSku:s,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=De(),f=()=>{var m;if(!s)return;const d=Co(s.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:s==null?void 0:s.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},p=s?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(_.Button,{...r,className:_.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!s&&!a,size:i?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};Gc.displayName="ProductCard.Actions.BuyButton";const Wc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:i,WishListToggle:s}=De();return o.jsxs(ye.Wrapper,{type:"header",style:{zIndex:i.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(_.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(_.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,i.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(s,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Wc.displayName="ProductCard.Actions.Header";var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ff(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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var no={exports:{}},Pe={};Pe._=Pe._interop_require_default=qf;function qf(e){return e&&e.__esModule?e:{default:e}}var It={exports:{}},ur={},ri;function Kc(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return s}});function r(a){const c={};return a.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 n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function i(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),c}function s(a){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(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(ur)),ur}var dr={},at={};function Xc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xc=function(n){return n?r:t})(e)}at._=at._interop_require_wildcard=zf;function zf(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xc(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var ni;function Qc(){return ni||(ni=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 s},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=at._(Kc()),i=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||i.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const a=["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=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),s(l)}}(dr)),dr}var fr={},oi;function Hf(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const i={};return Object.keys(r).forEach(s=>{n.includes(s)||(i[s]=r[s])}),i}}(fr)),fr}var pr={},ii;function tr(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(A,S){for(var P in S)Object.defineProperty(A,P,{enumerable:!0,get:S[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(A){let S=!1,P;return function(){for(var x=arguments.length,I=new Array(x),B=0;B<x;B++)I[B]=arguments[B];return S||(S=!0,P=A(...I)),P}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=A=>i.test(A);function a(){const{protocol:A,hostname:S,port:P}=window.location;return A+"//"+S+(P?":"+P:"")}function c(){const{href:A}=window.location,S=a();return A.substring(S.length)}function l(A){return typeof A=="string"?A:A.displayName||A.name||"Unknown"}function u(A){return A.finished||A.headersSent}function f(A){const S=A.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function p(A,S){if(process.env.NODE_ENV!=="production"){var P;if((P=A.prototype)!=null&&P.getInitialProps){const B='"'+l(A)+'.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(B)}}const x=S.res||S.ctx&&S.ctx.res;if(!A.getInitialProps)return S.ctx&&S.Component?{pageProps:await p(S.Component,S.ctx)}:{};const I=await A.getInitialProps(S);if(x&&u(x))return I;if(!I){const B='"'+l(A)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error(B)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!S.ctx&&console.warn(""+l(A)+" 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",m=d&&["mark","measure","getEntriesByName"].every(A=>typeof performance[A]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class b extends Error{constructor(S,P){super(),this.message="Failed to load static file for page: "+S+" "+P}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(A){return JSON.stringify({message:A.message,stack:A.stack})}}(pr)),pr}var Nt={exports:{}},mr={},si;function Yc(){return si||(si=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(/\/$/,"")||"/"}}(mr)),mr}var hr={},ai;function ko(){return ai||(ai=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("#"),i=r.indexOf("?"),s=i>-1&&(n<0||i<n);return s||n>-1?{pathname:r.substring(0,s?i:n),query:s?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(hr)),hr}var ci;function rr(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=Yc(),n=ko(),i=s=>{if(!s.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return s;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(s);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+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)}(Nt,Nt.exports)),Nt.exports}var gr={},Ot={exports:{}},yr={},li;function Zc(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ko();function r(n,i){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===i||s.startsWith(i+"/")}}(yr)),yr}var ui;function Uf(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=Zc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s){return(0,r.pathHasPrefix)(s,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)}(Ot,Ot.exports)),Ot.exports}var di;function Jc(){return di||(di=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=tr(),r=Uf();function n(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const s=(0,t.getLocationOrigin)(),a=new URL(i,s);return a.origin===s&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(gr)),gr}var _r={},vr={},fi;function Gf(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const a=s.map(c=>this.children.get(c)._smoosh(""+i+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const c=i==="/"?"/":i.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+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(i,s,a){if(i.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");s.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),s.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),a=!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(a)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 "'+i[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 "'+i[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(i.slice(1),s,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new t;return n.forEach(s=>i.insert(s)),i.smoosh()}}(vr)),vr}var br={},pi;function Wf(){return pi||(pi=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)}}(br)),br}var mi;function Vf(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Gf(),n=Wf()}(_r)),_r}var xr={},Cr={},hi;function Kf(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=tr();function r(n){let{re:i,groups:s}=n;return a=>{const c=i.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(f=>{const p=s[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(m=>l(m)):p.repeat?[l(d)]:l(d))}),u}}}(Cr)),Cr}var Sr={},jr={},Ar={},Er={},gi;function Xf(){return gi||(gi=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}}(Er)),Er}var Rr={},yi;function Qf(){return yi||(yi=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(")")}}(Rr)),Rr}var _i;function Yf(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return i},normalizeRscPath:function(){return s}});const r=Xf(),n=Qf();function i(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function s(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Ar)),Ar}var vi;function Zf(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return i},extractInterceptionRouteInformation:function(){return s}});const r=Yf(),n=["(..)(..)","(.)","(..)","(...)"];function i(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function s(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. 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: ${a}. 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}}}(jr)),jr}var wr={},bi;function Jf(){return bi||(bi=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(i){return t.test(i)?i.replace(r,"\\$&"):i}}(wr)),wr}var xi;function ep(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Zf(),n=Jf(),i=Yc(),s="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function l(y){const g=(0,i.removeTrailingSlash)(y).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:g.map(v=>{const A=r.INTERCEPTION_ROUTE_MARKERS.find(P=>v.startsWith(P)),S=v.match(/\[((?:\[.*\])|.+)\]/);if(A&&S){const{key:P,optional:x,repeat:I}=c(S[1]);return b[P]={pos:j++,repeat:I,optional:x},"/"+(0,n.escapeStringRegexp)(A)+"([^/]+?)"}else if(S){const{key:P,repeat:x,optional:I}=c(S[1]);return b[P]={pos:j++,repeat:x,optional:I},x?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:g,groups:b}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:j,keyPrefix:v}=y;const{key:A,optional:S,repeat:P}=c(b);let x=A.replace(/\W/g,"");v&&(x=""+v+x);let I=!1;return(x.length===0||x.length>30)&&(I=!0),isNaN(parseInt(x.slice(0,1)))||(I=!0),I&&(x=g()),v?j[x]=""+v+A:j[x]=""+A,P?S?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const b=(0,i.removeTrailingSlash)(y).slice(1).split("/"),j=f(),v={};return{namedParameterizedRoute:b.map(A=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(x=>A.startsWith(x)),P=A.match(/\[((?:\[.*\])|.+)\]/);return S&&P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(A)}).join(""),routeKeys:v}}function m(y,g){const b=d(y,g);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function h(y,g){const{parameterizedRoute:b}=l(y),{catchAll:j=!0}=g;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(y,!1);let A=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+A+"$"}}}(Sr)),Sr}var Ci;function tp(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Kf(),r=ep();function n(i,s,a){let c="";const l=(0,r.getRouteRegex)(i),u=l.groups,f=(s!==i?(0,t.getRouteMatcher)(l)(s):"")||a;c=i;const p=Object.keys(u);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(xr)),xr}var Si;function rp(){return Si||(Si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=Kc(),n=Qc(),i=Hf(),s=tr(),a=rr(),c=Jc(),l=Vf(),u=tp();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,s.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+v}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const v=new URL(y,h);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let A="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:x,params:I}=(0,u.interpolateAs)(v.pathname,v.pathname,P);x&&(A=(0,n.formatWithValidation)({pathname:x,hash:v.hash,query:(0,i.omit)(P,I)}))}const S=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return m?[S,A||S]:S}catch{return m?[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)}(It,It.exports)),It.exports}var Tt={exports:{}},Pr={},Ir={},ji;function el(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ko();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:s,query:a,hash:c}=(0,t.parsePath)(n);return""+i+s+a+c}}(Ir)),Ir}var Ai;function np(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=el(),r=Zc();function n(i,s,a,c){if(!s||s===a)return i;const l=i.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+s.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+s)}}(Pr)),Pr}var Ei;function op(){return Ei||(Ei=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=rr(),n=function(i){for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(np().addLocale(i,...a)):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)}(Tt,Tt.exports)),Tt.exports}var Nr={},Ri;function tl(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Nr)),Nr}var Or={},wi;function ip(){return wi||(wi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return i},AppRouterContext:function(){return s},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Pe._(C);var i;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(i||(i={}));const s=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Or)),Or}var Mt={exports:{}},kt={exports:{}},Pi;function rl(){return Pi||(Pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,a){for(var c in a)Object.defineProperty(s,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(s){let a=Date.now();return self.setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(s){return clearTimeout(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)}(kt,kt.exports)),kt.exports}var Ii;function sp(){return Ii||(Ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=C,n=rl(),i=typeof IntersectionObserver=="function",s=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=s.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const j=h.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},f);return m={id:p,observer:y,elements:h},a.push(p),s.set(p,m),m}function l(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),s.delete(m);const b=a.findIndex(j=>j.root===m.root&&j.margin===m.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!i,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(A=>{b.current=A},[]);(0,r.useEffect)(()=>{if(i){if(h||y)return;const A=b.current;if(A&&A.tagName)return l(A,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const A=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(A)}},[h,d,p,y,b.current]);const v=(0,r.useCallback)(()=>{g(!1)},[]);return[j,y,v]}(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)}(Mt,Mt.exports)),Mt.exports}var Lt={exports:{}},Dt={exports:{}},Tr={},Ni;function ap(){return Ni||(Ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let i;const s=r.split("/");return(n||[]).some(a=>s[1]&&s[1].toLowerCase()===a.toLowerCase()?(i=a,s.splice(1,1),r=s.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(Tr)),Tr}var Oi;function cp(){return Oi||(Oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,i)=>process.env.__NEXT_I18N_SUPPORT?ap().normalizeLocalePath(n,i):{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)}(Dt,Dt.exports)),Dt.exports}var $t={exports:{}},Mr={},Ti;function lp(){return Ti||(Ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,i){if(r){i&&(i=i.toLowerCase());for(const c of r){var s,a;const l=(s=c.domain)==null?void 0:s.split(":")[0].toLowerCase();if(n===l||i===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===i))return c}}}}(Mr)),Mr}var Mi;function up(){return Mi||(Mi=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,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];if(process.env.__NEXT_I18N_SUPPORT)return lp().detectDomainLocale(...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)}($t,$t.exports)),$t.exports}var ki;function dp(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});const r=rr(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=cp().normalizeLocalePath,f=up().detectDomainLocale,p=a||u(s,c).detectedLocale,d=f(l,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+s)}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)}(Lt,Lt.exports)),Lt.exports}var Bt={exports:{}},Li;function fp(){return Li||(Li=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=el(),n=rr(),i=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Bt,Bt.exports)),Bt.exports}var Ft={exports:{}},Di;function pp(){return Di||(Di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return s},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",i="navigate",s="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.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)}(Ft,Ft.exports)),Ft.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});const n=Pe._(C),i=rp(),s=Jc(),a=Qc(),c=tr(),l=op(),u=tl(),f=ip(),p=sp(),d=dp(),m=fp(),h=pp(),y=new Set;function g(P,x,I,B,E,O){if(typeof window>"u"||!O&&!(0,s.isLocalURL)(x))return;if(!B.bypassPrefetchedCheck){const $=typeof B.locale<"u"?B.locale:"locale"in P?P.locale:void 0,R=x+"%"+I+"%"+$;if(y.has(R))return;y.add(R)}const N=O?P.prefetch(x,E):P.prefetch(x,I,B);Promise.resolve(N).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function b(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function j(P,x,I,B,E,O,N,$,R,F){const{nodeName:H}=P.currentTarget;if(H.toUpperCase()==="A"&&(b(P)||!R&&!(0,s.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=N??!0;"beforePopState"in x?x[E?"replace":"push"](I,B,{shallow:O,locale:$,scroll:W}):x[E?"replace":"push"](B||I,{forceOptimisticNavigation:!F,scroll:W})};R?n.default.startTransition(K):K()}function v(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const S=n.default.forwardRef(function(x,I){let B;const{href:E,as:O,children:N,prefetch:$=null,passHref:R,replace:F,shallow:H,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...M}=x;B=N,w&&(typeof B=="string"||typeof B=="number")&&(B=n.default.createElement("a",null,B));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,k=$!==!1,J=$===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
-
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(
|
|
3
|
-
Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+
|
|
4
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const se=w?re&&typeof re=="object"&&re.ref:I,[ce,le,ae]=(0,p.useIntersection)({rootMargin:"200px"}),q=n.default.useCallback(ie=>{(T.current!==ee||L.current!==Y)&&(ae(),T.current=ee,L.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,k,D==null?void 0:D.locale,te,Z,J]);const he={ref:q,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.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||j(ie,te,Y,ee,F,H,U,K,Z,k))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K: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,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...M,...he},B)});(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)})(no,no.exports);var mp=no.exports,hp=mp;const Oe=er(hp),nl=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...i})=>{const{element:s,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=De(),m=ga({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--image"],e),ref:s,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(Oe,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:o.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>C.createElement(Be.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&&u&&o.jsx(ye.Video,{url:u,poster:m[0].url}),t]})};nl.displayName="ProductCard.Media.Media";const ol=({className:e,callback:t,children:r,...n})=>{const{isMobile:i,item:s,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=De(),{availability:{status:c}}=s;return c?null:o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--outstock"],e),children:[o.jsx(_.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),o.jsx(_.Button,{className:_.helpers.classNameConcat(e,"buy-button"),size:i?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(s)},children:a.notify})]})};ol.displayName="ProductCard.OutStock";const il=({children:e,className:t="",index:r,isMobile:n=!1,item:i,size:s,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>o.jsx(Bf,{item:i,isMobile:n,outStock:c,order:a,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...p,className:_.helpers.classNameConcat(Ae["product-card--wrapper"],t),"data-size":s,children:e})});il.displayName="ProductCard.Root";const sl=({disabled:e,label:t,size:r,value:n,onClick:i,...s})=>o.jsxs(_.ToggleSize.Wrapper,{...s,disabled:!1,outOfStock:e,size:r,onClick:i,children:[o.jsx(_.ToggleSize.DisabledAdornment,{}),o.jsx(_.ToggleSize.Text,{children:t})]});sl.displayName="ProductCard.SizeSelector.Item";const al=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:i})=>{const{item:s,isMobile:a,setSelectedSku:c,eventDataRef:l}=De();n.productId=s.id;const u=xo(n),f=bo(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=C.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=C.useCallback(()=>{if(u&&typeof i=="function"){i(s,n);return}p(n)},[n,i,p,u,s]);return o.jsx(sl,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};al.displayName="ProductCard.SizeSelector.SkuItem";const cl=({callback:e,className:t="",children:r,setNotify:n,...i})=>{const{isMobile:s,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=De();return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--selectors--size"],t),"data-mobile":s,children:[o.jsx("div",{className:Ae["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>o.jsx(al,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:Ae["product-card--selectors--size--button"],children:r})]})};cl.displayName="ProductCard.SizeSelector";const oo=({alt:e="",callback:t,more:r,total:n=4,src:i,url:s,...a})=>o.jsxs(_.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(s)},children:[o.jsx(_.ToggleStyle.DisabledAdornment,{}),o.jsxs(_.ToggleStyle.Texture,{children:[i&&o.jsx(Be.Image,{alt:e??i,src:i,height:34,width:34}),r&&o.jsx(_.TextStructure.DivWrapper,{className:Ae["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),gp=({children:e,callback:t,data:r,total:n=4,size:i,...s})=>{const{index:a}=De(),{triggerSelectItemEventRef:c}=ge();return o.jsxs("div",{...s,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(oo,{callback:f=>{c.current.trigger=!0,c.current.index=a,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:i},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(oo,{size:i,total:r.length-n,more:!0})]})},ll=({callback:e,className:t,data:r,images:n=[],findTexture:i,...s})=>{const{CONSTANTS:a}=De(),c=i||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(gp,{...s,callback:e,className:_.helpers.classNameConcat(Ae["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(oo,{active:!0,size:"x-small",src:l.url})})};ll.displayName="ProductCard.StyleSelector";const ul=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:i,highPrice:s},installments:{count:a,value:c}},eventDataRef:l}=De();l.current.priceInfo={price:i,listPrice:s};const u=Ie(s,t),f=Ie(i,t),p=Ie(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:_.helpers.classNameConcat(Ae["product-card--price"],e),"data-mobile":n,children:o.jsx(_.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(_.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(_.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?o.jsx(_.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};ul.displayName="ProductCard.Price";const dl=({tag:e,className:t})=>{const{item:{name:r}}=De();return o.jsxs("div",{className:_.helpers.classNameConcat(Ae["product-card--title"],t),children:[o.jsx("div",{className:Ae["product-card--title--tag"],children:e?o.jsx(_.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(_.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:Ae["product-card--title--content"],children:r&&o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};dl.displayName="ProductCard.Title";const fl=({className:e,url:t,poster:r,...n})=>{const{element:i}=De();return C.useEffect(()=>{if(!(i!=null&&i.current))return;const s=i.current,a=s.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{ya(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{s&&(c.observe(s),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,i]),o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--video"],e),children:t&&o.jsx(Be.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};fl.displayName="ProductCard.Media.Video";const pl=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae[`product-card--${r}`],t),children:e});pl.displayName="ProductCard.Wrapper";const ye={Actions:Uc,BuyButton:Gc,Header:Wc,Media:nl,Root:il,OutStock:ol,Price:ul,SizeSelector:cl,StyleSelector:ll,Title:dl,Video:fl,Wrapper:pl},yp="_carousel_245ib_1",_p="_shelf__container_245ib_14",vp="_shelf_without_carousel_245ib_34",ht={carousel:yp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:_p,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:vp},$i=({title:e})=>o.jsx("div",{className:ht.shelf__container,children:e&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-body-md",Me.responsive["responsive-mobile-flex"]),children:e}),o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-md",Me.responsive["responsive-desktop-flex"]),children:e})]})})}),bp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:i}=Se(),s=r[i?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=_.Carousel.useCarousel({itemsPerPage:s,gap:10,loop:!0,direction:"row"}),f=C.Children.toArray(e).length;return i||f>=4?o.jsxs(_.Carousel.Root,{innerRef:d=>{a(d)},className:ht.carousel,children:[o.jsxs("div",{className:ht["custom-controllers"],children:[n&&o.jsx($i,{title:n}),s<f&&o.jsxs(_.Carousel.Controller,{className:ht["controllers-arrows-bullets"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_right})}})]}),!i&&s>2&&o.jsx(_.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),o.jsx(_.Carousel.Body,{children:C.Children.map(e,(d,m)=>o.jsx(_.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):o.jsxs(o.Fragment,{children:[n&&o.jsx($i,{title:n}),o.jsx("div",{className:ht.shelf_without_carousel,children:e})]})},xp={Shelf:bp},Cp=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:i})=>{const s=C.useMemo(()=>Df(r),[r]),{isMobile:a}=Se(),{addItemsToCart:c}=qe(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=yo(),[f,p]=C.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=s.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=$f({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return C.useEffect(()=>{if(!t||s.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),o.jsxs("div",{className:Ue.container,ref:n,children:[o.jsx("div",{className:Ue["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:o.jsx(xp.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:h},y)=>{var j,v,A;const g=u(h.cluster.highlights),{availability:{status:b}}=h;return b?o.jsxs(ye.Root,{item:{...h,image:To.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:i,children:[o.jsx(ye.Header,{product:h,tag:g.commercial}),o.jsx(ye.Media,{}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:{value:(j=g.institucional)==null?void 0:j.value,enableIcon:(v=g.institucional)==null?void 0:v.enableIcon,icon:(A=g.institucional)==null?void 0:A.icon}}),o.jsx(ye.Actions,{children:o.jsx(ye.SizeSelector,{callback:S=>m({selectedProduct:S,productId:h.id})})})]})]},h.id):null})})}),o.jsx("div",{className:Ue["add-cart-container"],children:o.jsx(Lf,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Lo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Do=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=qe(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),s=r.reduce((a,c)=>a+(c.quantity??0),0);return o.jsx(_.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:o.jsxs(_.Badge.AutoPositioner,{children:[o.jsx(_.Badge.Count,{count:s,size:"medium",variant:"primary",style:{backgroundColor:"black",display:s>0?"flex":"none"}}),o.jsx(_.Icon,{name:i.header.ICONS.bag,size:"medium"})]})})};Do.displayName="Header.Bag";const Ct=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(Oe,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,ml=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=We(),i=s=>{s?n(s):r()};return o.jsx(_.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((s,a)=>o.jsx(Ct,{href:s.link,onMouseEnter:()=>i(s.submenuId),onFocus:()=>i(s.submenuId),children:o.jsx(_.Header.CategoryItem,{className:Lo["btn-header"],value:s.submenuId??null,adornment:{start:o.jsx(_.Icon,{name:s.iconStart}),end:o.jsx(_.Icon,{name:s.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${s.label}`})},children:s.label})},`category-${s.label}-${a}`))})};ml.displayName="Header.Categories";function Sp({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=Eo();return o.jsxs(o.Fragment,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:o.jsx(_.Icon,{name:r.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const jp={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Ap={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Ep(e,t,r){const[n,i]=C.useState(!1),{threshold:s}=r||{};return C.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:s||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const nr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:i=!0,className:s,...a})=>{const c=C.useRef(null),l=Ep(c,i,r),{sendDataLayerEvent:u}=ge();return C.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...a,ref:c,className:_.helpers.classNameConcat(Ap["observer-wrapper"],s),children:e})},$o=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:i}=ge(),s=50/e.length;return o.jsx("div",{className:jp["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return o.jsx(nr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(Oe,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),i({updatePromotionRef:!0,promotion:u})},children:[o.jsx(Be.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${s}vw`}),a.label&&o.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};$o.displayName="Menu.Thumbnail";const io={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Rp="_link_w24h0_1",wp="_wrapper_w24h0_98",Pp="_text_w24h0_106",kr={link:Rp,wrapper:wp,text:Pp},Ge=({children:e,adornments:t,className:r,disableUnderline:n,href:i,mode:s,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=_.helpers.ValidateProp({fieldTypes:ot.SizesSmallExtended,property:a,fallback:"medium"}),d=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:s,fallback:"default"});return o.jsx(Oe,{...f,className:_.helpers.classNameConcat(kr.link,r),href:i&&i.length>0?i:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:kr.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:kr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},hl=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:i}=Ee(),{reset:s}=We(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return o.jsxs("div",{...n,className:io["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var m,h,y;const p=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.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(_.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{children:[o.jsx(Ct,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(s(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...p,className:io["submenu-categories"],children:u.items.map((g,b)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:o.jsx(Ge,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{s(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&o.jsx(_.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(s(),a({content:`menu:${u.label??""}:${r.label}`}),i.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(_.Utils.Divider,{size:"small",direction:"vertical"})]})};hl.displayName="Menu.Categories";const gl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:io["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(_.Utils.Divider,{size:"small"})]})};gl.displayName="Menu.MenuRoot";const Lr={Root:gl,Categories:hl,Thumbnail:$o},yl=()=>{const{headerData:e,CONSTANTS:t}=be(),r=Jt(),{reset:n}=We();return o.jsx(_.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((i,s)=>{const{thumbnails:a,label:c,id:l}=i,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return o.jsxs(Lr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Lr.Categories,{dividerOnRight:!!f,subMenu:i}),Array.isArray(a)&&o.jsx(Lr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};yl.displayName="Header.SubMenu";const _l=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return o.jsx(Oe,{href:"/favoritos",children:o.jsx(_.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(_.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};_l.displayName="Header.WishList";const vl=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=be(),{handleSelectContent:n}=ge(),{reset:i}=We(),{setValue:s}=bt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[o.jsx(_.Header.Logo,{style:{width:"100%"},children:o.jsx(Oe,{href:"/",onMouseEnter:i,children:o.jsx(_.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),o.jsx(ml,{}),o.jsxs(_.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[o.jsx(Sp,{SearchModal:e}),o.jsx(_.Header.SupportItem,{onClick:()=>{s(!0),n({content:"header:user_menu"})},className:Lo["btn-login"],innerRef:r,children:o.jsx(_.Icon,{name:t.header.ICONS.person,size:"medium"})}),o.jsx(_l,{}),o.jsx(Do,{id:"cart-button"})]})]}),o.jsx(yl,{})]})};vl.displayName="Header.HeaderDesktopWrapper";const Ip="_divider_1lexj_199",ve={"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:Ip,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},bl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:i,...s})=>o.jsx("button",{onClick:n,className:ve["menu-categories-btn"],children:r?o.jsxs(_.Banner.Container,{...s,className:ve["menu-body-banner-container-modifier"],children:[o.jsx(_.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(Be.Image,{src:r,alt:t??r,className:ve["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(_.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:ve["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:i?{color:i}:{},children:e})})})})]}):o.jsx("h2",{...s,children:e})});bl.displayName="Menu.MenuCategories";const xl=({children:e,link:t})=>{const{reset:r}=Je();return t?o.jsx(Oe,{href:t??"#",onClick:r,children:e}):e};xl.displayName="Menu.MenuCategoriesWrapper";const Cl=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Ee(),{reset:n}=Je(),{handleSelectContent:i}=ge(),{CONSTANTS:s}=be(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.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:o.jsx(_.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{className:ve["menu-submenu--component-list-modifier"],children:[o.jsx(Ct,{href:e.linkLabel,title:e.label,onClick:()=>{n(),i({content:`menu:${e.label??""}:${t}`})},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...a,className:ve["submenu-categories"],children:e.items.map((p,d)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:o.jsx(Ge,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),i({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(_.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),i({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Cl.displayName="Menu.SubMenuSubCategory";const Sl=({submenu:e})=>{var s;const t=Jt(),{handleCloseSubMenu:r}=xt(),{reset:n}=We(),{CONSTANTS:i}=be();return o.jsxs("div",{className:ve["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:i.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&&o.jsx(_.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:ve["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx($o,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(s=e==null?void 0:e.subCategories)==null?void 0:s.map((a,c)=>o.jsx(Cl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Sl.displayName="Menu.SubMenuItem";const jl=()=>{const{headerData:e}=be(),t=Jt(),{reset:r}=We(),{bodyRef:n}=xt();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:ve["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:ve["menu-submenu"],children:e.subMenus.map((i,s)=>o.jsx(Sl,{submenu:i},`submenu-${i.id}-${s}`))})})};jl.displayName="Menu.SubMenu";const Al=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=We(),{bodyRef:i}=xt(),{handleSelectContent:s}=ge();return o.jsxs("div",{...t,ref:i,id:"menu-body",className:ve["menu-body"],children:[o.jsx("div",{className:ve["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return o.jsx(xl,{link:a.submenuId?null:a.link,children:o.jsx(bl,{onClick:()=>{n(a.submenuId??null),s({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(jl,{})]})};Al.displayName="Menu.MenuBody";const El=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return o.jsxs("div",{className:ve["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(_.Button,{adornment:{end:o.jsx(_.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:ve["menu-close"],"data-close":!0})]})};El.displayName="Menu.MenuHeaderWrapper";const Rl=({navigationLinks:e})=>{const{reset:t}=Je(),{handleSelectContent:r}=ge();return e?o.jsx("nav",{className:ve["menu-header-navlinks"],children:e.map((n,i)=>o.jsx(Ge,{href:n.link??"#",adornments:{start:n.iconStart&&o.jsx(_.Icon,{name:n.iconStart}),end:n.iconEnd&&o.jsx(_.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},i))}):null};Rl.displayName="Menu.MenuHeaderNavLinks";const wl=()=>{const{headerData:e}=be();return o.jsxs("div",{className:ve["menu-header-container"],children:[o.jsx(El,{title:e.title,subtitle:e.subtitle}),o.jsx(Rl,{navigationLinks:e.navigationLinks})]})};wl.displayName="Menu.MenuHeaderContainer";const Pl=({children:e})=>{const{documentBodyRef:t}=xt(),{CONSTANTS:r}=be(),n=Ao(),{setValue:i}=Je();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:i,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:ve["modal-modifier"],children:o.jsx("div",{className:ve["menu-mobile"],children:e})})};Pl.displayName="Menu.MenuRoot";const Kt=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...t,className:ve["menu-navigationbar-item"],children:e}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"small",className:ve.divider})]});Kt.displayName="Menu.NavigationBarItem";const Il=()=>{const{setIsOpen:e}=qe(),{reset:t}=Je(),{setValue:r}=bt(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),{router:s}=Ee();return o.jsxs(_.Card,{id:"menu-navigationbar",shadow:!0,className:ve["menu-navigationbar"],style:{zIndex:i.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:i.header.MENU_INFO.login.button_text}),o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:i.header.MENU_INFO.bag.button_text}),o.jsx(Kt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.store.button_icon,onClick:()=>{s.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:i.header.MENU_INFO.store.button_text})]})};Il.displayName="Menu.NavigationBar";const qt={Root:Pl,NavigationBar:Il,Header:wl,Body:Al},Nl=({SearchModal:e})=>{const t=C.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=be(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:a="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:l}=Eo(),{setValue:u}=Je(),{setValue:f}=bt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[a==="left"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})}),o.jsx(_.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(Oe,{href:"/",children:o.jsx(_.Icon,{name:s.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),o.jsxs(_.Header.Support,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{l(!0),c({content:"header:search"})},children:o.jsx(_.Icon,{name:s.search,size:"medium"})}),o.jsx(_.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:o.jsx(_.Icon,{name:s.person,size:"medium"})}),o.jsx(Do,{}),a==="right"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})})]})]}),o.jsx(e,{recommendations:!1,trends:!0}),o.jsx(sc,{children:o.jsxs(qt.Root,{children:[o.jsx(qt.Header,{}),o.jsx(qt.Body,{}),i?o.jsx(qt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})]})};Nl.displayName="Header.HeaderMobileWrapper";const Np="_root_wvekm_126",ke={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:Np},Ol=({className:e,children:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(ke["user-menu--content"],e),children:t});Ol.displayName="UserMenu.Content";var Tl=(e=>(e.Account="account",e))(Tl||{});const Ml=({className:e,cashBack:t,credits:r,link:n,total:i,...s})=>{const a=t?Ie(t):void 0,c=r?Ie(r):void 0,l=i?Ie(i):void 0;return o.jsx(_.Credits.Account,{...s,className:_.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:l,type:Tl.Account})};Ml.displayName="UserMenu.Credits";const kl=({className:e,children:t,description:r,text:n,...i})=>{const{isMobile:s}=Se();return o.jsx("div",{...i,className:_.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":s,children:o.jsxs("div",{className:ke["user-menu--login--content"],children:[o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[o.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),o.jsx("p",{children:r})]})}),t]})})};kl.displayName="UserMenu.Login";const Ll=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:i})=>{const{isMobile:s}=Se(),a=$d({ICONS:n,storeConfig:i}).filter(c=>c.deviceShown==="both"||c.deviceShown===(s?"mobile":"desktop"));return o.jsxs("ul",{className:_.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>o.jsx("li",{children:o.jsx(Ge,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:o.jsx(_.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?o.jsx("li",{children:o.jsx(Ge,{href:`${i.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:o.jsx(_.Icon,{name:Dd(n)})},children:Ld})}):o.jsx(o.Fragment,{})]})};Ll.displayName="UserMenu.Menu";const Dl=e=>{const t=C.useRef(null),r=C.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),n=C.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),i=C.useCallback(s=>{s.key==="Escape"&&e()},[e]);return C.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",i),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",i),document.removeEventListener("touchstart",n)}),[r,i,n]),{ref:t}},Op=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Tp=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:i,top:s,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Op(e==null?void 0:e.parentElement):0;return{left:i+a/2-(c.width+l*2),top:s+n+r}},$l=C.createContext({}),Mp=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:i,target:s,...a})=>{const c=C.useRef(null),[l,u]=C.useState(!1),[f,p]=C.useState({left:0,top:0}),{ref:d}=Dl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{i(!1),u(!1)},t))});return C.useEffect(()=>{if(s&&(d!=null&&d.current)){const{left:m,top:h}=Tp(d.current,s,r??0);p({left:m,top:h}),u(!1)}},[r,n,s,d]),o.jsx($l.Provider,{value:C.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:i,setIsLeaving:u,target:s}),[a,f,d,l,n,i,u,s]),children:e})},Bl=()=>{const e=C.useContext($l);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Fl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:i}=Bl();return o.jsxs(_.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:i,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[o.jsx(_.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),o.jsx(_.Modal.Body,{children:e})]})};Fl.displayName="UserMenu.Modal";const ql=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...i})=>o.jsx(Mp,{...i,className:ke.root,children:n?o.jsxs(o.Fragment,{children:[o.jsx(Xe.Modal,{Z_INDEX_WAR:r,children:t}),e]}):o.jsx(Xe.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});ql.displayName="UserMenu.Root";const zl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,isOpen:c,top:l}=Bl();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),className:_.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:a,isOpen:c,left:s,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:o.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};zl.displayName="UserMenu.Tooltip";const Xe={Credits:Ml,Content:Ol,Login:kl,Menu:Ll,Modal:Fl,Root:ql,Tooltip:zl},Bo=()=>{var y,g,b;const e=Oo(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:i},storeConfig:s}=be(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=i,u=Za(),{setValue:f}=bt(),p=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:m,credits:h}=C.useMemo(()=>{var j,v;return{credits:((j=e==null?void 0:e.getCurrentCredits())==null?void 0:j.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return o.jsx(Xe.Root,{component:o.jsxs(Xe.Content,{children:[o.jsx(Xe.Login,{description:Fd(d),text:Bd(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&o.jsx(_.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:l.login.button_text})}),h+m&&d?o.jsx(Xe.Credits,{credits:h,cashBack:m,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+m}):o.jsx(o.Fragment,{}),o.jsx(_.Utils.Divider,{}),o.jsx(Xe.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:s})]}),target:t?r.current:n.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};Bo.displayName="UserMenu";const Hl=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:i,CONSTANTS:s}=be(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c}}=s;return o.jsx(_.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Lo["header-animation"],children:o.jsxs(_.Header.Root,{innerRef:i,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[o.jsx("div",{className:Me.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:o.jsx(Nl,{SearchModal:r})}),o.jsx("div",{className:Me.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:o.jsx(vl,{SearchModal:r})}),t,o.jsx(Mo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),o.jsx(Bo,{})]})})};Hl.displayName="Header";const kp="_shippingFreight_6z8rf_6",Lp="_shippingFreight__postalCodeGrid_6z8rf_10",Dp="_shippingFreight__grid_6z8rf_14",$p="_shippingFreight__grid__title_6z8rf_18",Bp="_shippingFreight__grid__remember_6z8rf_29",Fp="_postalCodeContainer_6z8rf_44",qp="_deliveryStatusBar__tag_6z8rf_49",zp="_deliveryStatusBarError__tag_6z8rf_66",Hp="_deliveryInfo_6z8rf_74",Up="_deliveryInfo__content_6z8rf_78",Gp="_deliveryInfo__text_6z8rf_84",Wp="_deliveryInfo__title_6z8rf_89",Vp="_deliveryInfo__subtitle_6z8rf_99",Kp="_deliveryInfo__tooltipIcon_6z8rf_109",Xp="_deliveryInfo__tooltip_6z8rf_109",Qp="_freightGrid_6z8rf_148",Yp="_freightContainer_6z8rf_155",Zp="_freightOption__content_6z8rf_160",Jp="_freightOption__value_6z8rf_166",em="_freightOption__title_6z8rf_177",tm="_freightOption__title_item_6z8rf_181",rm="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:kp,shippingFreight__postalCodeGrid:Lp,shippingFreight__grid:Dp,shippingFreight__grid__title:$p,shippingFreight__grid__remember:Bp,postalCodeContainer:Fp,deliveryStatusBar__tag:qp,deliveryStatusBarError__tag:zp,deliveryInfo:Hp,deliveryInfo__content:Up,deliveryInfo__text:Gp,deliveryInfo__title:Wp,deliveryInfo__subtitle:Vp,deliveryInfo__tooltipIcon:Kp,deliveryInfo__tooltip:Xp,freightGrid:Qp,freightContainer:Yp,freightOption__content:Zp,freightOption__value:Jp,freightOption__title:em,freightOption__title_item:tm,freightOption__paragraph:rm,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},nm=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:i="",labelDescription:s,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=C.useState(!1),f=C.useRef(null),p=()=>u(d=>!d);return o.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:fe.deliveryInfo__content,children:[o.jsx("div",{className:fe.deliveryInfo__icon,children:o.jsx(_.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:fe.deliveryInfo__text,children:[o.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",i]}),r&&o.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),s&&o.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(_.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:fe.deliveryInfo__tooltip,children:s})]})]})]})},om=({value:e,title:t,paragraph:r})=>o.jsx("div",{className:fe.freightOption,children:o.jsxs("div",{className:fe.freightOption__content,children:[o.jsx("span",{className:fe.freightOption__value,children:e}),o.jsx("span",{className:fe.freightOption__title,children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:fe.footer__item,children:[o.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&o.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),im=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),sm=({children:e})=>o.jsx("div",{className:fe.freightGrid,children:e}),am=({children:e})=>o.jsx("div",{className:fe.postalCodeContainer,children:e}),Bi=({message:e,seller:t="",size:r="small",setError:n})=>o.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:o.jsxs(_.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),cm=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},lm=e=>{var r,n,i;const t=[];return(i=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||i.forEach(s=>{t.push({id:s.id,name:s.name,price:s.price,shippingEstimate:s.shippingEstimate})}),t},um=({component:e,parent:t,top:r,left:n,target:i,contentRef:s,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Se();return o.jsx(o.Fragment,{children:u?o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},dm=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:i,setError:s,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var O,N,$,R;const f=it(),p=it(F=>F.shipping),[d,m]=C.useState(),[h,y]=C.useState(!1),[g,b]=C.useState(!1),[j,v]=C.useState(!1),A=(N=(O=f.shippingData)==null?void 0:O.address)==null?void 0:N.postalCode,S=!(d!=null&&d.length)&&A?A:d,P=C.useRef(null),x=async F=>{const U=F.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async F=>{const H=F.target.value.replace(/\D/g,"");try{if((await Qo.get(`https://viacep.com.br/ws/${H}/json/`)).data.erro){s&&s(l.messages.cep_not_found),a(!1),b(!0);return}s&&s(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},B=async()=>{y(!0);try{const F=await Qo.post("/api/checkout/simulation",{items:[{id:n,quantity:i,seller:t}],country:"BRA",postalCode:S});e(lm(F.data))}catch(F){console.error("Erro ao atualizar o documento:",F)}finally{y(!1),p(S,"BRA")}},E=async()=>{if(!n){v(!0),setTimeout(()=>v(!1),1500);return}await I({target:{value:S}}),h||(B(),a(!0))};return o.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&j?o.jsx(um,{component:c,isOpen:j,parent:P.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(_.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(_.TextField.Input,{defaultValue:(R=($=f.shippingData)==null?void 0:$.address)==null?void 0:R.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:v(!0),onMouseOut:()=>n?null:v(!1),mode:"simple",onChange:x,onKeyDown:F=>{F.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(_.Button,{onClick:E,size:r,title:"button",children:h?o.jsx(_.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},fm=({children:e,freightConfig:t})=>o.jsxs("div",{className:fe.shippingFreight,children:[o.jsxs("div",{className:fe.shippingFreight__grid,children:[o.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:fe.shippingFreight__grid__remember,children:o.jsx(Ge,{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:fe.shippingFreight__postalCodeGrid,children:e})]}),pm=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),mm=({className:e,sellerId:t,skuId:r,quantity:n,size:i,seller:s,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=C.useState(""),[p,d]=C.useState([]),[m,h]=C.useState(""),[y,g]=C.useState(!1),b=v=>f(v),j=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(A=>({shipping_tier:A.id,delivery_time:A.shippingEstimate.replace("bd",""),flag_pickup:A.name.toLowerCase().includes("retirada")?"true":"false",shipping:A.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(pm,{className:e,children:[o.jsxs(fm,{freightConfig:c.freightConfig,children:[o.jsx(am,{children:o.jsx(dm,{onUpdateFreightItems:j,skuId:r,quantity:n,size:i,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?o.jsx(Bi,{size:i,message:m,setError:h}):p.length>0&&o.jsx(Bi,{size:i,message:c.freightConfig.messages.delivered_by,seller:s})]}),y&&!m?p.length>0&&o.jsxs(im,{children:[o.jsx(sm,{children:p.filter(({id:v})=>!v.includes("Retirada")).map(v=>o.jsx(om,{id:v.id,value:_o({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${cm(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?o.jsx(nm,{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]})},Fo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ul=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:i=8,position_grid:s,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=C.useMemo(()=>r%a===0?"initial":n||r<2?c:c.split("/").reverse().join("/"),[r,a,n]);return o.jsx("div",{...l,className:_.helpers.classNameConcat(Fo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:s,padding:i/2},children:t})};Ul.displayName="ProductList.Banner";const Gl=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:i})=>{const{router:s}=Ee(),a=C.useRef(!1),c=C.useRef(null),[l,u]=C.useState([]),f=h=>s.push(h??""),p=async h=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:i.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const g=await y.json();u(g)}catch(y){console.error(y)}},d=C.useCallback(h=>{!r||!h||(typeof p=="function"&&p(r),a.current=!0)},[r]),m=C.useCallback((h,y)=>{if(!h.isIntersecting){i.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=y.threshold&&!a.current){if(i.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},i.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return C.useEffect(()=>{if(e||!t.current)return;const h={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{m(g,h)},h);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[m,t,e]),o.jsx(ye.Actions,{...l,callback:f,isKit:e,children:!e&&o.jsx(ye.SizeSelector,{setNotify:n})})};Gl.displayName="ProductList.Card.Actions";const Wl=({className:e,children:t,gap:r=32,item:n,isMobile:i,order:s,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:p,WishListToggle:d,...m})=>{const h=C.useRef(null),{availability:{status:y}}=n,g=C.useCallback((j,v)=>{var A;typeof u=="function"&&u((A=j.isVariantOf)==null?void 0:A.hasVariant,v)},[u]),b=n.name.substring(0,4).toLowerCase()==="kit ";return o.jsxs("div",{...m,className:_.helpers.classNameConcat(Fo["product-list--card"],e),"data-mobile":i,"data-order":s,ref:h,style:{...c&&{maxWidth:i?"50%":"25%"},order:s,padding:r/2},children:[o.jsxs(ye.Root,{item:n,isMobile:i,index:l,size:i?"small":"medium",order:s,outStock:!y,CONSTANTS:p,WishListToggle:d,children:[o.jsx(ye.Header,{product:n,tag:a==null?void 0:a.commercial}),o.jsx(ye.Media,{showVideo:f,hasPriority:!0}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:a==null?void 0:a.institucional}),o.jsx(Gl,{productId:n.isVariantOf.productGroupID,parent:h,setNotify:g,isKit:b,CONSTANTS:p}),!b&&o.jsx(ye.OutStock,{callback:g})]}),o.jsx(ye.Wrapper,{type:"footer",children:y&&o.jsx(ye.BuyButton,{isKit:b})})]}),t]})};Wl.displayName="ProductList.Card";const Vl=({children:e,className:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Fo["product-list"],t),children:e});Vl.displayName="ProductList.Grid";const hm={Banner:Ul,Card:Wl,Root:Vl,helpers:cf},qo={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},Kl=({children:e,...t})=>o.jsx("div",{...t,className:qo["product-variation-list--list"],children:e});Kl.displayName="ProductVariationList.List";const Xl=({fill:e="#1352C7",src:t="",type:r="size",text:n,...i})=>{const{nextimage:s}=Ee();return r==="size"?o.jsxs(_.ToggleSize.Wrapper,{...i,size:"large",variation:"ghost",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),o.jsx(_.ToggleSize.Text,{children:n})]}):o.jsxs(_.ToggleStyle.Wrapper,{...i,size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?o.jsx(_.ToggleStyle.Color,{background:e,title:"color"}):o.jsx(_.ToggleStyle.Texture,{title:"texture",children:o.jsx(s,{alt:n??"image",height:40,src:t,width:40})})]})};Xl.displayName="ProductVariationList.Option";const Ql=({children:e,...t})=>o.jsx("div",{className:qo["product-variation-list"],...t,children:e});Ql.displayName="ProductVariationList.Root";const Yl=({children:e,title:t,...r})=>o.jsxs("div",{...r,className:qo["product-variation-list--title"],children:[t?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.SectionWrapper,{children:o.jsx("p",{children:t})})}):o.jsx(o.Fragment,{}),e]});Yl.displayName="ProductVariationList.Title";const Ye={List:Kl,Option:Xl,Title:Yl,Root:Ql},gm="_sort_35wro_1",or={sort:gm,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},ym=({children:e,sortListOpen:t,btnAdornment:r,style:n,...i})=>o.jsx(_.Button,{...i,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...n,textDecoration:"none"},className:or["sort-button"],children:e}),_m=e=>o.jsx(_.RadioButton.Radio,{...e}),vm=({children:e,className:t,name:r,...n})=>o.jsx(_.RadioButton.Group,{...n,name:r||"sort-group",className:_.helpers.classNameConcat(or["sort-list"],t),children:e}),bm=({children:e,className:t,shadow:r=!0,padding:n="small",height:i="fit-content",...s})=>o.jsx(_.Card,{...s,shadow:r,className:_.helpers.classNameConcat(or["sort-list-wrapper"],t),padding:n,height:i,children:e}),Zl=C.forwardRef(({children:e,className:t,...r},n)=>o.jsx("div",{...r,ref:n,className:_.helpers.classNameConcat(or.sort,t),children:e}));Zl.displayName="SortRoot";const Jl=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:n,CONSTANTS:i,...s})=>{var d;const a=(d=n==null?void 0:n.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=C.useState(a),{sendDataLayerEvent:u}=ge();C.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=Dl(()=>r(!1)),p=m=>{const h=m.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:Ke.options[h]}}}),r(!1)};return o.jsxs(Zl,{...s,ref:f,children:[o.jsx(ym,{btnAdornment:{listOpen:o.jsx(_.Icon,{name:i.ICONS.arrow_up,size:"small"}),listClosed:o.jsx(_.Icon,{name:i.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Ke.options[c]:Ke.placeholder},"sort-button"),t&&o.jsx(bm,{children:o.jsx(vm,{name:"sort-group",value:c??"",onChange:p,children:Object.keys(Ke.options).map(m=>o.jsx(_m,{label:Ke.options[m],value:m},m))})})]})};Jl.displayName="Sort";const xm="_footer__bottom_1o9af_2",Cm="_footer__wrapper_1o9af_10",Sm="_footer__main_1o9af_39",jm="_footer__legalInformation_1o9af_55",Am="_footer__column_1o9af_77",Em="_footer__columnContent_1o9af_87",Rm="_footer__item_1o9af_91",wm="_footer__itemLink_1o9af_107",Pm="_footer__columnTitle_1o9af_122",Im="_footer__columnTitleIcon_1o9af_134",Nm="_footer__iconList_1o9af_147",Om="_footer__itemSmallText_1o9af_157",Tm="_payment_1o9af_168",Mm="_footer__iconContainer_1o9af_173",km="_footer__iconListSubHeader_1o9af_178",Lm="_accordionWrapper_1o9af_200",Dm="_accordionHeader_1o9af_204",$m="_accordionTextWrapper_1o9af_208",pe={footer__bottom:xm,footer__wrapper:Cm,footer__main:Sm,footer__legalInformation:jm,footer__column:Am,footer__columnContent:Em,footer__item:Rm,footer__itemLink:wm,footer__columnTitle:Pm,footer__columnTitleIcon:Im,footer__iconList:Nm,footer__itemSmallText:Om,payment:Tm,footer__iconContainer:Mm,footer__iconListSubHeader:km,accordionWrapper:Lm,accordionHeader:Dm,accordionTextWrapper:$m,"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 eu={},zo={},St={};(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)}}})(St);var tu={};(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:i,blurWidth:s,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=s?s*40:n,p=a?a*40:i,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":l==="contain"?"xMidYMid":l==="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='"+u+"'/%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='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(tu);var ir={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[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}})(ir);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=St,r=tu,n=ir,i=["lazy","eager",void 0];function s(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(s(h)||a(h))}const l=new Map;let u;function f(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 p(h,y,g){let{deviceSizes:b,allSizes:j}=h;if(g){const A=/(^|\s)(1?\d?\d)vw/g,S=[];for(let P;P=A.exec(g);P)S.push(parseInt(P[2]));if(S.length){const P=Math.min(...S)*.01;return{widths:j.filter(x=>x>=b[0]*P),kind:"w"}}return{widths:j,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(A=>j.find(S=>S>=A)||j[j.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:j,quality:v,sizes:A,loader:S}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:x}=p(y,j,A),I=P.length-1;return{sizes:!A&&x==="w"?"100vw":A,srcSet:P.map((B,E)=>S({config:y,src:g,quality:v,width:B})+" "+(x==="w"?B:E+1)+x).join(", "),src:S({config:y,src:g,quality:v,width:P[I]})}}function m(h,y){let{src:g,sizes:b,unoptimized:j=!1,priority:v=!1,loading:A,className:S,quality:P,width:x,height:I,fill:B=!1,style:E,onLoad:O,onLoadingComplete:N,placeholder:$="empty",blurDataURL:R,fetchPriority:F,layout:H,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:M,blurComplete:D,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((je,Q)=>je-Q),ue=Z.deviceSizes.sort((je,Q)=>je-Q);te={...Z,allSizes:G,deviceSizes:ue}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;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 G=k;k=ue=>{const{config:je,...Q}=ue;return G(Q)}}if(H){H==="fill"&&(B=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},je=G[H];je&&(
|
|
1
|
+
"use strict";var Yu=Object.defineProperty;var Zu=(e,t,r)=>t in e?Yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fr=(e,t,r)=>Zu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),rt=require("idb-keyval"),ut=require("zustand"),Jn=require("js-cookie"),_=require("@soma-vertical-web/core-components"),Me=require("./__vite-browser-external-B8mGO3z6.js"),Ju=require("jose"),it=require("@soma-vertical-web/foundations"),Jo=require("axios"),pa=require("react-dom"),$e=require("draft-js"),ei=require("@date-fns/tz"),vo=x.createContext({}),ed=({data:e,children:t})=>o.jsx(vo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),bo=()=>{const{tags:e}=x.useContext(vo),t=x.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:i,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},ma=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ha=x.createContext({}),td=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return ma({gridScrollBack:t}),o.jsx(ha.Provider,{value:{sizesContainerRef:r},children:e})},rd=()=>{const e=x.useContext(ha);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ie=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),xo=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Ie(0):Ie(e/100),Co=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},er=(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()}},So=(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},nd=(e,t)=>e.replace(t,"").trim(),od=e=>e.replace(/\//g,""),ga=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let i=!0;const s=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Co(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(i=!1),a.push(l),a},[]);return{...r,sizes:s,allSizesAvailable:i}},jo=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ao=(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)},ya=e=>e.find(t=>t.imageLabel==="10"),_a=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},va=(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},ba=({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},id=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},xa=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},sd=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:jo,formatPriceToCurrency:Ie,freightParsePrice:xo,getAspectRatio:id,getColorAndSizeFromSkuName:er,getFirstImages:ba,getProductNameWithoutSku:nd,getSKUName:So,getSkuInfos:ga,getThumbImage:ya,getValidOffer:Ao,removeSlashes:od,resizingImg:_a,setVideoPlay:xa,splitNameAndSizeFromFullName:Co,updatedResizedImg:va},Symbol.toStringTag,{value:"Module"})),Ue=({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})},xe={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:i,promotionInfo:s,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:xe.configs.currency,value:f,grade_disponivel:l??(u?Ca(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:xe.configs.currency}:{}},d=Nt({data:n,customData:{...i,...a,...s},configs:xe.configs});Ue({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:i,customData:s}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Nt({data:{...c},customData:{...r,index:l,...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n},configs:xe.configs}));Ue({event:"view_item_list",data:{...i,ecommerce:{...s!=null&&s.item_list_name?{item_list_name:s==null?void 0:s.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:i,price:s},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,b,j,v,A,S,P,C;const d=i==null?void 0:i.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=ja(),B=Aa(I,d);B&&(m={...m,...B}),t==="add_to_cart"&&(a||c)&&eo({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&eo({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const h=(d==null?void 0:d.size)??er((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=p.itemOffered)==null?void 0:j.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return Nt({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=p.itemOffered)==null?void 0:v.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(P=(S=(A=d==null?void 0:d.offers)==null?void 0:A.offers)==null?void 0:S[0])==null?void 0:P.seller)==null?void 0:C.identifier)??p.seller},configs:xe.configs})});Ue({event:t,data:{...l,ecommerce:{value:s??u,currency:xe.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,i={},s={};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:c,value:l})=>{var p;const u=((p=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(i==null?void 0:i[u])||[];u==="price_range"&&l.replace(":","-"),i[u]=[...f,l]}),Object.keys(i).forEach(c=>s[c]=i[c].join(", "))),Ue({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const i=window.localStorage.getItem("persistedCartEventsData"),s=i?JSON.parse(i):{},a=n.items.map(A=>{const{promotionInfo:S,itemList:P}=s[A.id]??{};return Nt({data:{...A,price:A.price/100,listPrice:A.listPrice/100},customData:{...S,...P,item_sku:A.id??A.itemOffered.sku,quantity:A.quantity??1},configs:xe.configs})}),c=(((f=n.totalizers.find(A=>A.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(A=>A.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Ue({event:"view_cart",data:{...r,ecommerce:{currency:xe.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=n.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=n.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ue({event:t,data:{...r}})}},Ca=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),ad=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(xe.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Nt=({data:e,customData:t,configs:r})=>({...cd(e,r==null?void 0:r.MAIN_IMAGE),...ld(e),...ud(e),...dd(e),...t}),Sa=()=>{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("_"))??[]:[]},ja=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Aa=(e,t)=>e==null?void 0:e[t],eo=({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)))},cd=(e,t="1")=>{var s,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(s=e.items)==null?void 0:s[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),i=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Co((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${xe.configs.storeUrl}${e.linkText}/p`,item_image:(i==null?void 0:i.url)??(i==null?void 0:i.imageUrl)}},ti=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,ld=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),i=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),s=ti(n),a=ti(i),c=s.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(xe.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]}}},ud=e=>{var i,s,a,c,l,u;const t=((i=e.itemOffered)==null?void 0:i.skuName)??((c=(a=(s=e.isVariantOf)==null?void 0:s.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=er(t,xe.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},dd=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,i=t??((l=e.offers)==null?void 0:l.lowPrice)??0,s=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=s?s-i:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:i??s},...s&&{list_price:s,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:xe.configs.currency}},Ra=()=>{const[e,t]=Sa(),[r,n]=e.split("-"),i=r.includes("shop")||r.includes("sale")?r:"";return{page_category:i&&n?n:"",page_departament:i,id:t,name:e}},fd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:Aa,getAvailablesSizes:Ca,getCategories:ad,getPageCategoryAndDepartmentFromSlug:Ra,getPersistedData:ja,getProductListInfoFromHead:Sa,pushDatalayer:Ue,updatePersistedData:eo},Symbol.toStringTag,{value:"Module"})),Ea=x.createContext({}),pd=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),n=x.useRef(null),i=x.useRef(null),s=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=i.current)!=null&&h.item_list_name&&(p.itemList=i.current),xe[f](p,d)},m)}catch(h){Ue({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return o.jsx(Ea.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:i,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>x.useContext(Ea),wa=x.createContext({}),md=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:i})=>{var $,E;const{sendDataLayerEvent:s,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=bo(),b=g(Object.entries(t.clusterHighlights).map(F=>({id:F[0],name:F[1]}))),j=y.slice(1,-1).split("/"),{installments:v,price:A,listPrice:S,sizes:P,allSizesAvailable:C}=ga({items:u,NAME_SPLIT_SYMBOL:i}),I=ya(f),B=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],R=((E=er(($=t.items)==null?void 0:$[0].name,i))==null?void 0:E.color)??t["Cores Filtráveis"][0]??"",O=()=>({commonData:{...t,sizes:P,price:A,listPrice:S,installments:v},customData:{installments:v==null?void 0:v.count,installment_value:Number(v==null?void 0:v.value).toFixed(2)}}),N=({sku:F,size:H})=>{const{commonData:U,customData:K}=O();s({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...F&&{item_sku:F},...H&&{item_variant2:H}}}})};return x.useEffect(()=>{if(a.current.trigger){const{commonData:F,customData:H}=O();s({functionKey:"productEvents",data:{event:"select_item",commonData:F,customData:{...H,index:a.current.index}}}),a.current.trigger=!1}N({})},[]),o.jsx(wa.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:b,items:u,sizes:P,allSizesAvailable:C,installments:v,price:A,listPrice:S,thumbImage:I,images:f,video:p[0],descriptionContent:B,breadcrumbList:j,isKit:r,colorName:R,handleViewItemEvent:N},children:e})},Ro=()=>{const e=x.useContext(wa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},hd={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Te=Promise.resolve(!1),to={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Te,addItem:()=>Te,addSellerCode:()=>Te,addMarketingData:()=>Te,emptyCart:()=>{},removeItem:()=>Te,setIsOpen:()=>{},shipping:()=>Te,shippingUpdate:()=>Te,toggleServiceToProduct:()=>Te,updateItemQuantity:()=>Te,insertProfileEmail:()=>Te,setRecentlyAddedProducts:()=>{}},Eo=e=>e===0,Pa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],i=e.match(/\d+/g)??[];for(const s of i){const a=t[Number(s)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ia=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:i,id:s,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:b,refId:j,seller:v,referenceId:A,offerings:S,productRefId:P,skuName:C,sellingPrice:I}=e;return{availability:r,bundleItems:i,referenceId:A,productRefId:P,id:s,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Pa(g,y),categoriesIds:g,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:b},sku:s,slug:c,skuName:C},listPrice:p,quantity:d,offerings:S,price:m,priceDefinition:h,sellingPrice:I,seller:v}},Na=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Oa=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((i,s)=>{var a,c;return{id:((a=i.itemOffered)==null?void 0:a.sku)??"",index:s,quantity:(r==null?void 0:r.id)===((c=i.itemOffered)==null?void 0:c.sku)?0:i.quantity,seller:i.seller??""}});return{updateItems:n,filterItems:n.filter(i=>i.id!==t)}}return{updateItems:[],filterItems:[]}},Ta=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,i)=>{var s,a;return n.id===t?{id:n.id,index:i,quantity:r,seller:n.seller,sku:((s=n.itemOffered)==null?void 0:s.sku)??""}:{id:n.id,index:i,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),ro=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),gd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var i;return((i=n==null?void 0:n.id)==null?void 0:i.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},yd=e=>{const t=e.reduce((i,s)=>{const a=Eo(s.price)?0:s.quantity;return i+a},0),r=e.reduce((i,s)=>i+s.price*s.quantity,0),n=e.reduce((i,s)=>i+s.listPrice*s.quantity,0);return{totalItems:t,total:r,subTotal:n}},_d=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Eo(r==null?void 0:r.price)?0:r.quantity),0):0,Ma=(e,t)=>{const{items:r,itemMetadata:n,marketingData:i,messages:s,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>Ia(p,t)):[],marketingData:i,messages:s,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},ka=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},vd=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(i=>i.sku===r);return n?n.name.split(t)[1]:"--"},ot=(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},bd=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},La=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Da=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),$a=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ba=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Fa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],qa=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:i="auto",body:s}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:i,method:"POST",body:JSON.stringify(s)}).then(async a=>{const c=await a.json();return r?c:Ma(c,n)})},za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),xd=e=>[...Array.isArray(e)?e:[e],"faststore"],Ha=e=>{const t=e.get("utm_source")||Ve("utm_source"),r=e.get("utm_campaign")||Ve("utm_campaign"),n=e.get("utm_medium")||Ve("utm_medium"),i=e.get("utmi_cp")||Ve("utmi_cp"),s=e.get("utmi_pc")||Ve("utmi_pc"),a=e.get("utmi_p")||Ve("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...i&&{utmiCampaign:i},...s&&{utmiPart:s},...a&&{utmipage:a}}},Ve=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Cd=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:hd,addItemOrder:Na,addNotification:za,createItemOrder:Ia,fetchCartAPI:we,findItemIndex:ro,findOptions:Fa,findTotalizerValue:gd,getCategories:Pa,getCode:ot,getQuantity:Ba,getRemoveId:La,getSize:vd,getTotalItems:_d,getTotalizer:yd,getUrlParameter:Ve,getValue:Da,initialState:to,isGift:Eo,marketingTagsBuilder:xd,mergeOptionsPromise:qa,mountMarketingData:Ha,orderFormValues:Ma,promiseDefault:Te,removeQuantity:Oa,updateItemSellerExternal:ka,updateOrderFormPromise:$a,updateQuantity:Ta,wishlistArray:bd},Symbol.toStringTag,{value:"Module"})),Sd=()=>{const e=async(m,h)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:Na(h,y)}}),i=async(m,h,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),s=async m=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>we("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>we("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=Oa(h,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=Ta(h,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:i,emptyCart:s,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,b)=>p(m,h,y,g).then(j=>j&&Array.isArray(j.items)?ka(j.items,y)?p(m,h,y,b):j:!1)}},no="soma::cart",ht="soma::options",st=ut.create((e,t)=>{const r=Sd(),n=async(i,s,a)=>{e({loading:!0});const c=await $a(i);if(typeof c!="boolean"){e({...c});const l=await qa(rt.get(ht),a);return rt.set(ht,l),Da(c,s).finally(()=>e({loading:!1,options:l}))}return Te};if(typeof window<"u"){const i=async s=>{if(s){const a=await rt.get(ht).then(u=>Fa(u,s.items));rt.set(no,s),rt.set(ht,a),e({...s,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return rt.get(no).then(s=>r.getOrderForm(s?s.id:"").then(i)),{...to,addCoupon:async s=>n(()=>r.addCoupon(t().id,s),"marketingData"),addItem:(s,a)=>{n(()=>r.addItem(t().id,t().items,s),"items",a)},addSellerCode:async s=>n(()=>r.addSellerCode(t().id,s),"openTextField"),addMarketingData:async s=>n(()=>r.addMarketingData(t().id,s),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async s=>{const a=await n(()=>r.removeItem(t().id,t().items,s),"items");return La(s,a)},shipping:async(s,a="BR")=>n(()=>r.shipping(t().id,s??"",a),"shippingData"),shippingUpdate:async s=>n(()=>{var a;return r.shippingUpdate(t().id,s,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(s,a,c)=>n(()=>r.giftItem(t().id,s,a,c),"items"),updateItemQuantity:async(s,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,s,a,((f=u.find(p=>p.id===s))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return to}),jd=()=>st(e=>e),Ua=ut.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)}))}})),Ga=()=>Ua(e=>e.notifications),Wa=()=>Ua(e=>e.actions),Ad=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ht,KEY_INDEXED_STORE:no,useCartStore:st,useGetCartStoreState:jd,useGetNotificationActions:Wa,useGetNotificationsStore:Ga},Symbol.toStringTag,{value:"Module"})),Rd=6e3,Va=x.createContext({}),Ka=({children:e,...t})=>{const{items:r}=st(),[n,i]=x.useState([]),s=x.useRef(null),a=x.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return x.useEffect(()=>{n.length&&(clearTimeout(s.current??0),s.current=setTimeout(()=>{i([])},Rd))},[n]),o.jsx(Va.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:i,recentlyAddedProducts:a}),[t,i,a]),children:e})},bt=()=>{const e=x.useContext(Va);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Xa{constructor(){fr(this,"events",{});fr(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 Qa=x.createContext({}),Ed=({children:e,headerConfigs:t,pathname:r,...n})=>{const[i,s]=x.useState(!0),a=r==="/",c=x.useRef(new Xa),l=p=>p?{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(a),f=x.useRef(u);return x.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Jn.get("lastMedias")||Jn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);i!==y&&s(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[i]),x.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),o.jsx(Qa.Provider,{value:{isMobile:i,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:o.jsx(Ka,{children:e})})},Se=()=>x.useContext(Qa),Ya=x.createContext({}),wd=({children:e,...t})=>o.jsx(Ya.Provider,{value:{...t},children:e}),Re=()=>x.useContext(Ya),Je=(e,t)=>ut.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:i=>r({value:i}),reset:n}}}),vt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},xt=new Set,Pd=()=>{xt.forEach(e=>{e()})},Za=ut.create((e,t)=>{const r=()=>e({value:vt.category});return xt.add(r),{value:vt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),tr=()=>Za(e=>e.value),We=()=>Za(e=>e.actions),Ja=Je(vt.menuMobileIsOpen,xt),wo=()=>Ja(e=>e.value),et=()=>Ja(e=>e.actions),ec=Je(vt.searchModalIsOpen,xt),Id=()=>ec(e=>e.value),Po=()=>ec(e=>e.actions),tc=Je(vt.userMenuIsOpen,xt),rc=()=>tc(e=>e.value),Ct=()=>tc(e=>e.actions),Nd=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Pd,useActionsHeaderCategory:We,useActionsMenuMobileIsOpen:et,useActionsSearchModalIsOpen:Po,useActionsUserMenuIsOpen:Ct,useGetHeaderCategoryStore:tr,useGetMenuMobileIsOpen:wo,useGetSearchModalIsOpen:Id,useGetUserMenuIsOpen:rc},Symbol.toStringTag,{value:"Module"})),at={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},dt=new Set,Od=()=>{dt.forEach(e=>{e()})},nc=ut.create(e=>{const t=()=>e({value:at.selectedSkuInfo});return dt.add(t),{value:at.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Td=()=>nc(e=>e.value),Md=()=>nc(e=>e.actions),oc=Je(at.openLetMeKnow,dt),kd=()=>oc(e=>e.value),Ld=()=>oc(e=>e.actions),ic=Je(at.showNotify,dt),Dd=()=>ic(e=>e.value),$d=()=>ic(e=>e.actions),sc=Je(at.showBottomNavigation,dt),Bd=()=>sc(e=>e.value),Fd=()=>sc(e=>e.actions),ac=Je(at.openMeasurements,dt),qd=()=>ac(e=>e.value),zd=()=>ac(e=>e.actions),Hd=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Od,useActionsPDPOpenLetMeKnow:Ld,useActionsPDPOpenMeasurements:zd,useActionsPDPSelectedSkuInfo:Md,useActionsPDPShowBottomNavigation:Fd,useActionsPDPShowNotify:$d,useGetPDPOpenLetMeKnow:kd,useGetPDPOpenMeasurements:qd,useGetPDPSelectedSkuInfo:Td,useGetPDPShowBottomNavigation:Bd,useGetPDPShowNotify:Dd},Symbol.toStringTag,{value:"Module"})),cc=x.createContext({}),Ud=({children:e,headerData:t,...r})=>{var f,p;const n=x.useRef(null),i=x.useRef(null),s=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=Se();return(f=l.current)==null||f.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!n.current)return;const h=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=h?y:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";g!==((j=u.current)==null?void 0:j.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(h)),n.current.setAttribute("data-variant",String(g)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",g),u.current&&(u.current.headerVariant=g))}),(p=l.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,m=_.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:d.signal});const h=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",h,{signal:d.signal}),n.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),o.jsx(cc.Provider,{value:{headerData:t,structureRef:i,rootRef:n,tipbarRef:s,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},be=()=>x.useContext(cc),lc=x.createContext({}),uc=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),n=wo(),i=x.useCallback(()=>{var s;{const a=(s=t.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var s;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(s=r.current)==null?void 0:s.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),x.useEffect(()=>{r.current=document.body},[]),o.jsx(lc.Provider,{value:{bodyRef:t,handleCloseSubMenu:i,documentBodyRef:r},children:e})},St=()=>x.useContext(lc),Gd=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Wd=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=e!=null&&e.parentElement?Gd(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(i.width+s),top:n.top+n.height+r}},dc=x.createContext({}),fc=({children:e,delay:t=600,gap:r=20,...n})=>{const[i,s]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,f]=x.useState({left:0,top:0}),p=x.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{s(!1),l(!1)},t))},[l,s,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=Wd(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,i]),o.jsx(dc.Provider,{value:x.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:i,setIsOpen:s,setIsLeaving:l}),[n,u,p,c,i,s,l]),children:e})},tt=()=>{const e=x.useContext(dc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},pc=x.createContext({}),Vd=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=st(),{setRecentlyAdded:i}=bt(),s=x.useRef(""),a=Ga(),{addNotification:c,removeNotification:l}=Wa(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=n;x.useEffect(()=>{const E=Jn.get("lastMedias");if(n.id&&E&&s.current!==E){s.current=E;const F=new URLSearchParams(E),H=Ha(F);d(H)}},[n,d]);const A=x.useCallback(async(E,F)=>(F==="coupon"?u(E):p(E)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(F==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return ot((z==null?void 0:z[0])??"",E,!!K)}return ot(String(U.coupon),E,!0)}return ot("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),S=x.useCallback((E,F,H)=>{const{id:U}=E;v(U,F,H)},[v]),P=x.useCallback((E,F,H=!1)=>{if(!E)return;const{id:U}=E,K=ro(n.items,U);if(K!==-1&&!H){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;S(E,z,F)}else f({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});h||i(W=>[...W,E])},[f,S,n.items,h,i]),C=x.useCallback((E,F)=>{if(!E||!Array.isArray(E))return;i(U=>[...U,...E]);const H=E.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=ro(n.items,K),w=Ba(W??1,ne);return{id:K,quantity:w,seller:z}});f(H,F)},[f,n.items,i]),I=x.useCallback(async(E,F,H)=>E?y(E).then(()=>(c(F??`${t}`,H),ot(E,E))):Promise.resolve(ot("","Product id required")),[c,y]),B=x.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),R=x.useCallback((E,F="BRA")=>g(E,F),[g]),O=x.useCallback(E=>{E&&b(E)},[b]),N=x.useCallback(async(E,F,H)=>{const U=n.items.findIndex(W=>W.id===E);return n.items[U]&&U>=0?j(F,U,H??!1):!1},[n.items,j]),$=x.useCallback(async(E,F)=>v(E,F).then(H=>{if(Array.isArray(H)){const U=H.find(K=>K.id===E);if(U&&(U==null?void 0:U.quantity)<F)return String(U.quantity)}return!1}),[v]);return o.jsx(pc.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:A,addToCart:P,addItemsToCart:C,cartStore:n,notifications:a,clearCart:B,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:O,toggleGiftItemCart:N,updateItemQuantity:$}),[r,A,P,C,a,B,c,n,l,I,R,O,N,$]),children:e})},ze=()=>{const e=x.useContext(pc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},mc=x.createContext({}),Io=({children:e,fetch:t})=>{const r=x.useRef(!0),[n,i]=x.useState(null),[s,a]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();i(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),o.jsx(mc.Provider,{value:x.useMemo(()=>({data:n,isLoading:r.current??!1,isError:s}),[n,s,r]),children:e})},No=()=>{const e=x.useContext(mc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},hc=x.createContext({}),gc=({children:e,sort:t,state:r,count:n,collectionId:i,CONSTANTS:s})=>{const a=x.useMemo(()=>{var c;return i?[{key:"productclusterids",value:i.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,i]);return o.jsx(hc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??s.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},rr=()=>{const e=x.useContext(hc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ke={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"},default_option:"score:desc"},Kd={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Xd="Imagem do produto",ri=1,Qd="Sair",Yd=e=>e.exit,Zd=({ICONS:e,storeConfig:t})=>[{icon:e.person,label:"Minha conta",href:`${t.secureSubdomain}/api/io/account#/profile`,needToBeAuth:!1,deviceShown:"both"},{icon:e.delivery_truck,label:"Meus pedidos",href:`${t.secureSubdomain}/api/io/account#/orders`,needToBeAuth:!1,deviceShown:"both"},{icon:e.favorite_false,label:t.wishlistConfig.label,href:t.wishlistConfig.path,needToBeAuth:!1,deviceShown:"mobile"},{icon:e.help,label:t.termsConfig.label,href:t.termsConfig.path,needToBeAuth:!1,deviceShown:"mobile"}],Jd=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},ef=e=>"Seja bem vindo!",yc=x.createContext({}),tf=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...i}=No(),{router:s}=Re(),a=x.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),s.push(`?${d.toString()}`)}},[s]),c=x.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Ke.default_option),p.set("page","1"),s.push(`?${p.toString()}`)},[s]),l=x.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),s.push(`?${d.toString()}`)},[s]),u=x.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=x.useCallback(p=>{const d=new URLSearchParams(Me.convertSearchParams(t));d.set("sort",p.replace("_",":")),s.push(`?${d.toString()}`)},[s,t]);return o.jsx(yc.Provider,{value:x.useMemo(()=>({...i,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,i,r,t]),children:e})},rf=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=rr();return o.jsx(Io,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:o.jsx(tf,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},nf=()=>{const e=x.useContext(yc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},_c=x.createContext({}),of=({children:e})=>{const{data:t,...r}=No(),[n,i]=x.useState(0),{sendDataLayerEvent:s}=ge();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){s({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&i(a)}},[t,s,i]),o.jsx(_c.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Kd,total:n}),[t,r,n]),children:e})},sf=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:i})=>o.jsx(Io,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:i,facets:n??[]})}),children:o.jsx(of,{state:r,children:e})}),af=()=>{const e=x.useContext(_c);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},vc=x.createContext({}),cf=({children:e,term:t})=>{const[r,n]=x.useState([]),[i,s]=x.useState(!1);return x.useEffect(()=>{if(!t){n([]);return}(async()=>{s(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),o.jsx(vc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:i,setLoading:s}),[r,i]),children:e})},lf=({children:e,...t})=>o.jsx(cf,{...t,children:e}),uf=()=>{const e=x.useContext(vc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},bc=x.createContext({searches:[],isLoading:!1,error:null}),df=({children:e})=>{const[t,r]=x.useState([]),[n,i]=x.useState(!0),[s,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{i(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{i(!1)}})()},[]),o.jsx(bc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:n,error:s}),[t,n,s]),children:e})},ff=()=>{const e=x.useContext(bc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},xc=x.createContext({}),pf=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:i=24})=>{const{pathname:s}=Re(),[a,c]=x.useState(!1),l=x.useMemo(()=>{const f=new URL(s,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ke.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,s,r,t]),u=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Me.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Me.parseSearchState(l,f)},[l,r]);return o.jsx(xc.Provider,{value:x.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:o.jsx(gc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:x.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},mf=()=>{const e=x.useContext(xc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Yt=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((i,s)=>Yt(i,t[s]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(i=>Object.prototype.hasOwnProperty.call(t,i)&&Yt(e[i],t[i]))},Cc=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Yt(t[n],e[n])),oo=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},Sc=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),jc=(e,t,r,n=24)=>{const i=new Set,s=[];if(!Array.isArray(e)||e.length===0)return{taken:i,placedBanners:s};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>i.has(l+h))){for(let m=0;m<c.columns;m++)i.add(l+m);s.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:i,placedBanners:s}},io=(e,t,r,n=24)=>{const{placedBanners:i,taken:s}=jc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)s.has(c)||a.push(c),c++;return{banners:i,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},Xt=(e,t,r=24)=>Array.from({length:e},(n,i)=>{const s=i+1;return{loading:e===s,page:s,pagination:t!=null&&t.products.length&&e===s?t==null?void 0:t.pagination:Oo(),products:t!=null&&t.products.length&&e===s?t==null?void 0:t.products:Array.from({length:r},()=>Sc())}}),Ac=(e,t)=>[...e,{loading:!1,page:t,pagination:Oo(),products:[]}],Oo=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),hf=(e,t,r,n,i)=>{const s=e[e.length-1],a=(s==null?void 0:s.products.length)??i,c=(e.length-1)*i+a-1,l=r[c];return t.filter((u,f)=>{const p=n[f];return p<=l||i>a&&p>l})},Rc=(e,t)=>{const r=new Map;for(const i of e){const s=Math.floor(i/t);r.has(s)||r.set(s,[]),r.get(s).push(i)}const n=[];for(const[,i]of r){const s=i[Math.floor(Math.random()*i.length)];n.push(s)}return n},gf=(e,t)=>{if(!e)return[];const r=e.map((n,i)=>n.video&&n.video!==""?i:null).filter(n=>n);return Rc(r,t)},Ec=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],yf=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Ec,createPage:Ac,createPages:Xt,createPagination:Oo,createProduct:Sc,deepEqual:Yt,fetchPage:oo,getBanners:jc,getPositions:io,getProductsWithVideo:gf,getRandomVideoPerRow:Rc,getVisibleBanners:hf,hasStateChangedExceptPage:Cc},Symbol.toStringTag,{value:"Module"})),_f=50,vf=ut.create((e,t)=>{const r=a=>Math.min(a,_f),n=async(a,c)=>{const l=r(a.page);try{const u=await oo({...a,page:l});i(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),i(l,f=>({...f,loading:!1}))}},i=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},s=async(a,c)=>{await n(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:Xt(f,void 0,u)});try{const h=await oo({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){s({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:Xt((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:Xt(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:Ac(u,f)}),s(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||s(a,c)}}}),bf=(e,t,r,n=0)=>{if(!e.length)return[];let i=0;const s=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var f;return(f=u.node)==null?void 0:f.video});for(let u=0;u<c.length;u++){const f=a+u,p=n+f,d=t.find(h=>h.position_grid===p+1),m=p+i+1;d&&(i+=d.columns),s.push({position:m,canPlayVideo:u===l})}}return s},xf=(e,t,r)=>{const n=(t-1)*r,i=t*r;return e>=n&&e<=i},wc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:jo(r),size:So(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Cf=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:bf,getSkusNotify:wc,isPositionInCurrentPage:xf},Symbol.toStringTag,{value:"Module"})),Pc=x.createContext({}),Sf=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:i})=>{const{router:s}=Re(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=Se(),{state:l}=rr(),{addPage:u,createPages:f,updateProducts:p,...d}=vf(),m=c?8:16,h=c?2:4,y=x.useRef(!1),g=x.useRef(l),[b,j]=x.useState(!1),[v,A]=x.useState(null),[S,P]=x.useState([]),C=x.useCallback(N=>{N&&"pagination"in N&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:N.products}}})},[a]),I=x.useCallback(N=>{if(N.pagination.nextPage===!0){const $=N.page+1,E=io(e,$,h,r);u({...l,page:$},E,C)}},[u,e,C,h,r,l]),B=x.useCallback(N=>{N.loading===!1&&p({...l,page:N.page},C)},[C,p,l]),R=x.useCallback(N=>{const $=new URLSearchParams(n);N.page!==Number($.get("page")??1)&&($.set("page",String(N.page)),s.replace(`?${$.toString()}`,{scroll:!1}))},[s,n]),O=x.useCallback((N,$)=>{const E=$?wc([$]):null;P(N),A(E!=null&&E.length?E[0]:null),j(!0)},[]);return x.useEffect(()=>{const N=!y.current,$=Cc(g.current,l),E=io(e,l.page,h);N?f(l,E,C,r):$&&(f(l,E,C,r),g.current=l),y.current=!0},[e,f,C,h,r,l]),o.jsxs(Pc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:I,createPages:f,gap:m,columns:h,handleNotify:O,updatePage:B,updateProducts:p,updateParamPage:R}),[u,I,f,O,m,h,d,B,p,R]),children:[t,o.jsx(i,{notify:b,sku:v,skus:S,setSku:A,setNotify:j})]})},jf=()=>{const e=x.useContext(Pc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Ic(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[i,s]=n.trim().split("=");if(i===e)return s}}function To(e,t,r={}){const i={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let s=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in i)i[a]!==void 0&&(s+=`; ${a}`,a==="expires"?s+=`=${i[a].toUTCString()}`:typeof i[a]=="boolean"?s+=`; ${i[a]?"true":"false"}`:s+=`=${i[a]}`);window.document.cookie=s}const Af=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=Mo(),{cartStore:r}=ze();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:i,email:s,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(i),g=await crypto.subtle.digest("SHA-256",y),j=Array.from(new Uint8Array(g)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:j,email:s,first_name:a,last_name:c,phone:l||u,zip:f,street:p,street_number:d,city:m,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Nc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Rf=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),i=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c;n({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:u,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),s=x.useCallback(()=>{To(t),i()},[i]),a=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{i()},[i]),o.jsxs(Nc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:s}),[r,a,s]),children:[o.jsx(Af,{}),e]})},Mo=()=>{const e=x.useContext(Nc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Oc=x.createContext({gridBanners:void 0,banners:[]}),Ef=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:i})=>{const{isMobile:s}=Se(),a=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=a.slice(0,ri),l=a.slice(ri,a.length),u=t==null?void 0:t.sections.find(p=>p.name==="List Product Banners"),f=x.useMemo(()=>{var p,d;return((d=(p=u==null?void 0:u.data)==null?void 0:p.banners)==null?void 0:d.map(m=>({...m.banner,columns:m.bannerWidth,position_grid:m.bannerPosition})))??[]},[u]);return s&&r==="mobile"||!s&&r==="desktop"?o.jsxs(Oc.Provider,{value:{gridBanners:u,banners:f},children:[o.jsx(n,{data:c??[]}),o.jsxs(_.Utils.Column,{gap:i,className:_.helpers.classNameConcat("utils-column-modifier"),children:[e,o.jsx(n,{data:l??[]})]})]}):o.jsx(o.Fragment,{})},wf=()=>{const e=x.useContext(Oc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Tc=x.createContext({}),Mc=({children:e,filters:t,PLP_FILTERS:r,...n})=>{var s;const i=(s=t.facets)==null?void 0:s.filter(a=>r.find(c=>c.key===a.key));return o.jsx(Tc.Provider,{value:x.useMemo(()=>({...n,filters:{...t,facets:i}}),[t,i,n]),children:e})},ft=()=>{const e=x.useContext(Tc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},kc=x.createContext({product:void 0}),Pf=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:n,SectionZone:i})=>o.jsxs(kc.Provider,{value:{productId:r},children:[e,o.jsx(_.Utils.Column,{gap:n,className:_.helpers.classNameConcat("utils-column-modifier"),children:o.jsx(i,{data:(t==null?void 0:t.sections)??[]})})]}),If=()=>{const e=x.useContext(kc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Nf={contexts:{addToCart:{hook:tt,provider:fc},cart:{hook:ze,provider:Vd},cms:{FlagsAndTags:{context:vo,hook:bo,provider:ed}},events:{hook:ge,provider:pd},global:{hook:Se,provider:Ed,mediator:Xa},header:{hook:be,provider:Ud},menuMobile:{hook:St,provider:uc},next:{hook:Re,provider:wd},pdp:{provider:td,hook:rd},PDPContent:{provider:Pf,hook:If},plp:{provider:pf,hook:mf},plpFilter:{hook:ft,provider:Mc},PLPContent:{provider:Ef,hook:wf},plpInfinite:{provider:Sf,hook:jf},pdpdata:{hook:Ro,provider:md},searchFacets:{hook:nf,provider:rf},searchProducts:{hook:af,provider:sf},searchRoot:{hook:No,provider:Io},searchSearch:{hook:rr,provider:gc},searchSuggestedTerms:{hook:uf,provider:lf},searchTopSearchs:{hook:ff,provider:df},session:{hook:Mo,provider:Rf},ui:{hook:bt,provider:Ka}},hooks:{useBackPDC:ma},stores:{cart:Ad,header:Nd,pdp:Hd}},Of=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Tf(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Mf(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Lc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,gt=(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),kf=e=>{const t=Ju.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Lf=["name","email","phone","date","cpf","cep"],ni={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},Df=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ni[e])return!0;const n=t.trim();return ni[e].test(n)},$f=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Xd},Bf=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Lf,debounce:Mf,getAltTextFromUrl:$f,getAuthenticatedUser:kf,getCookie:Ic,getDaysHoursMinutesSeconds:gt,getMilliSeconds:Lc,removeAccentsAndReplaceSpaces:Of,setCookie:To,throttle:Tf,validateInput:Df},Symbol.toStringTag,{value:"Module"})),Ff={cart:Cd,events:fd,plp:yf,product:sd,utils:Bf},ko={helpers:Ff},Ne={"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"},Dc=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--name"],t),children:[o.jsx(_.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:o.jsx("p",{className:"typography-style-body-md",children:r})})})]});Dc.displayName="AddToCart.Card.Name";const $c=({className:e,listPrice:t,price:r,quantity:n,productId:i,...s})=>{const a=Ie(r/100),c=Ie(t/100);return o.jsx("div",{...s,className:_.helpers.classNameConcat(Ne["add-to-cart--card--price-quantity"],e),children:o.jsx(_.ProductInfo.Root,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:o.jsx(_.ProductInfo.ValuesWrapper,{children:r!==t?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};$c.displayName="AddToCart.Card.PriceQuantity";const qf="_skeleton_12b79_1",zf={skeleton:qf},Hf=({style:e})=>o.jsx("div",{style:e,className:zf.skeleton}),Uf="_image_lypfr_1",Gf={image:Uf},Wf=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:i}=Re();return o.jsx(i,{quality:90,...n,alt:e??"",className:_.helpers.classNameConcat(Gf.image,t),"data-object-fit":r??"cover"})},Vf=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),Be={Image:Wf,Video:Vf},Bc=({className:e,productGroupID:t,size:r,texture:n,...i})=>{const{CONSTANTS:{TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:a}}=tt(),[c,l]=x.useState(n??"");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 p=f.images.find(d=>s.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card--style-size"],e),children:[o.jsx(_.ToggleStyle.Wrapper,{size:"x-small",style:a,children:o.jsx(_.ToggleStyle.Texture,{children:c?o.jsx(Be.Image,{alt:"",src:c??"",width:164,height:164,style:a}):o.jsx(Hf,{})})}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&o.jsxs(_.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),o.jsx(_.ToggleSize.Text,{children:r})]})]})};Bc.displayName="AddToCart.Card.StyleSize";const{helpers:Kf}=ko,Fc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:i,brand:s,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=tt(),{size:d}=Kf.product.getColorAndSizeFromSkuName(a??i,p);return o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--card--content"],e),children:[o.jsx(Dc,{brand:s.name,name:i}),o.jsx($c,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Bc,{size:d,texture:r,productGroupID:c})]})};Fc.displayName="AddToCart.Card.Content";const qc=({image:e,thumbnail:t=!1})=>o.jsx(Be.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});qc.displayName="AddToCart.Card";const zc=({className:e,item:t,texture:r,thumbnail:n,...i})=>{const{itemOffered:{image:[s]}}=t,a=va(s.url,{width:200,height:300});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ne["add-to-cart--card"],e),children:[o.jsx(qc,{image:{alternateName:s.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&o.jsx(Fc,{item:t,texture:r})]})};zc.displayName="AddToCart.Card";const Hc=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ne["add-to-cart--content"],e),children:[o.jsx("div",{className:Ne["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(Qe.Footer,{})]});Hc.displayName="AddToCart.Layout.Content";const Uc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:i}}=tt(),{cartStore:{totalizers:s},setIsOpen:a}=ze(),c=(m=s.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=s.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=s.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Ie(p??0);return o.jsxs("div",{...t,className:_.helpers.classNameConcat(Ne["add-to-cart--footer"],e),children:[o.jsxs("div",{className:Ne["add-to-cart--footer--total"],children:[o.jsx("span",{children:"Subtotal:"}),o.jsx("span",{children:d})]}),o.jsx(_.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:i.footer.bag}),r?o.jsx(_.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:i.footer.keep_buying}):o.jsx(_.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:i.footer.keep_buying})]})};Uc.displayName="AddToCart.Layout.Footer";const Gc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:i}}=ze(),{recentlyAddedProducts:s}=bt(),a=s.length>3?4:s.length;return o.jsxs("div",{...n,className:Ne["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(s)&&s.filter((c,l)=>l<a).map(c=>{var u;const l=(u=i==null?void 0:i.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(Qe.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Gc.displayName="AddToCart.Layout.Items";const Wc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=tt(),{isMobile:i}=Se();return o.jsxs(_.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ne["add-to-cart__modal"],isMobile:i??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[o.jsx(_.Modal.Header,{navigation:"top",children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0})}),o.jsx(_.Modal.Body,{children:e})]})};Wc.displayName="AddToCart.Modal";const Xf=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=tt(),i=x.useRef(t);return x.useEffect(()=>{t>i.current&&n(!0),t<i.current&&i.current>=1&&r(),i.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},Vc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:i}=bt(),{isMobile:s}=Se(),a=i.length>3?4:i.length;return o.jsx(fc,{...n,count:a,isMobile:s,CONSTANTS:r,children:o.jsx(Xf,{children:s?o.jsxs(o.Fragment,{children:[o.jsx(Qe.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):o.jsx(Qe.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Vc.displayName="AddToCart.Root";const Kc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,target:c,isOpen:l,top:u}=tt();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),id:"add-to-cart--tooltip",className:Ne["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:s,size:"medium",position:"top",top:u,children:o.jsx("div",{className:Ne["add-to-cart--tooltip"],ref:c,children:e})})};Kc.displayName="AddToCart.Tooltip";const Qe={Card:zc,Content:Hc,Footer:Uc,Items:Gc,Modal:Wc,Root:Vc,Tooltip:Kc},Lo=({title:e,...t})=>{const{recentlyAddedProducts:r}=bt(),{isMobile:n}=Se(),i=r.length>3?4:r.length,s=r.length>(i??1),a=r.length>1;return o.jsx(Qe.Root,{isMobile:n,count:r.length,component:o.jsx(Qe.Content,{title:e,children:o.jsx(Qe.Items,{thumbnail:a,children:s&&o.jsx(_.Badge.Count,{count:r.length-i,size:"medium",variant:"secondary"})})}),...t})};Lo.displayName="AddToCart";const oi={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Qf=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:i,style:s,...a})=>{const c={top:(i==null?void 0:i.top)??0,left:(i==null?void 0:i.left)??0,behavior:(i==null?void 0:i.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(_.Card,{...a,shadow:!0,padding:"small",className:_.helpers.classNameConcat(oi["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:oi["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},Yf="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Yf,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Zf=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return o.jsxs("div",{className:Ge["add-itens-to-cart-container"],children:[o.jsxs("div",{className:Ge["add-itens-to-cart-container-values"],children:[o.jsx("div",{className:Ge["add-itens-to-cart-qty-products"],children:o.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),o.jsx("div",{className:Ge["add-itens-to-cart-total"],children:o.jsx("span",{children:xo({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),o.jsx(_.Button,{onClick:t,className:Ge["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Jf=e=>e.reduce((t,r)=>{var i;const n=t.find(s=>s.node.id===r.node.id);if(!n)return[...t,r];if((i=n==null?void 0:n.node.isVariantOf)!=null&&i.hasVariant){const s=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;s&&a&&(n.node.isVariantOf.hasVariant=[...s,...a])}return t},[]),ep=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:i,totalPrice:s}=r;try{if(!e){const{[t]:u,...f}=i;return{...r,totalPrice:s-u.price,products:f}}const a=Ao(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(i[t]){const{price:u}=i[t];return i[t]={...i[t],price:l,id:e.sku,seller:c},{totalPrice:s+l-u,products:{...i}}}return{totalPrice:s+l,products:{...i,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Xc=x.createContext({}),tp=({children:e,item:t,index:r,shelfTitle:n,...i})=>{const[s,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return o.jsx(Xc.Provider,{value:x.useMemo(()=>({...i,index:r,item:t,element:c,selectedSku:s,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[i,t,c,s]),children:e})},De=()=>{const e=x.useContext(Xc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ae={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Qc=({callback:e,children:t,className:r,data:n,isKit:i,...s})=>{const{item:{availability:{status:a},image:c}}=De();return a?o.jsxs("div",{...s,className:_.helpers.classNameConcat(Ae["product-card--actions"],r),children:[o.jsxs(ye.Wrapper,{type:"actions--group",children:[o.jsx(ye.Price,{}),o.jsx("div",{className:Ae["product-card--actions--selectors"],children:!i&&o.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Qc.displayName="ProductCard.Actions";const Yc=({className:e,isKit:t,...r})=>{const{addToCart:n}=ze(),{isMobile:i=!1,selectedSku:s,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=De(),f=()=>{var m;if(!s)return;const d=Ao(s.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:s==null?void 0:s.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},p=s?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return o.jsx(_.Button,{...r,className:_.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!s&&!a,size:i?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};Yc.displayName="ProductCard.Actions.BuyButton";const Zc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:i,WishListToggle:s}=De();return o.jsxs(ye.Wrapper,{type:"header",style:{zIndex:i.Z_INDEX_WAR.product_card_header},children:[t?o.jsx(_.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?o.jsx(_.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,i.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(s,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Zc.displayName="ProductCard.Actions.Header";var Jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rp(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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var so={exports:{}},Pe={};Pe._=Pe._interop_require_default=np;function np(e){return e&&e.__esModule?e:{default:e}}var Ot={exports:{}},pr={},ii;function el(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return s}});function r(a){const c={};return a.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 n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function i(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),c}function s(a){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(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(pr)),pr}var mr={},ct={};function tl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(tl=function(n){return n?r:t})(e)}ct._=ct._interop_require_wildcard=op;function op(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=tl(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var si;function rl(){return si||(si=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 s},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=ct._(el()),i=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||i.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const a=["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=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),s(l)}}(mr)),mr}var hr={},ai;function ip(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const i={};return Object.keys(r).forEach(s=>{n.includes(s)||(i[s]=r[s])}),i}}(hr)),hr}var gr={},ci;function or(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(A,S){for(var P in S)Object.defineProperty(A,P,{enumerable:!0,get:S[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(A){let S=!1,P;return function(){for(var C=arguments.length,I=new Array(C),B=0;B<C;B++)I[B]=arguments[B];return S||(S=!0,P=A(...I)),P}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=A=>i.test(A);function a(){const{protocol:A,hostname:S,port:P}=window.location;return A+"//"+S+(P?":"+P:"")}function c(){const{href:A}=window.location,S=a();return A.substring(S.length)}function l(A){return typeof A=="string"?A:A.displayName||A.name||"Unknown"}function u(A){return A.finished||A.headersSent}function f(A){const S=A.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function p(A,S){if(process.env.NODE_ENV!=="production"){var P;if((P=A.prototype)!=null&&P.getInitialProps){const B='"'+l(A)+'.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(B)}}const C=S.res||S.ctx&&S.ctx.res;if(!A.getInitialProps)return S.ctx&&S.Component?{pageProps:await p(S.Component,S.ctx)}:{};const I=await A.getInitialProps(S);if(C&&u(C))return I;if(!I){const B='"'+l(A)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error(B)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!S.ctx&&console.warn(""+l(A)+" 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",m=d&&["mark","measure","getEntriesByName"].every(A=>typeof performance[A]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class b extends Error{constructor(S,P){super(),this.message="Failed to load static file for page: "+S+" "+P}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(A){return JSON.stringify({message:A.message,stack:A.stack})}}(gr)),gr}var Tt={exports:{}},yr={},li;function nl(){return li||(li=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(/\/$/,"")||"/"}}(yr)),yr}var _r={},ui;function Do(){return ui||(ui=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("#"),i=r.indexOf("?"),s=i>-1&&(n<0||i<n);return s||n>-1?{pathname:r.substring(0,s?i:n),query:s?r.substring(i,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(_r)),_r}var di;function ir(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=nl(),n=Do(),i=s=>{if(!s.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return s;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(s);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+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)}(Tt,Tt.exports)),Tt.exports}var vr={},Mt={exports:{}},br={},fi;function ol(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Do();function r(n,i){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===i||s.startsWith(i+"/")}}(br)),br}var pi;function sp(){return pi||(pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=ol(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s){return(0,r.pathHasPrefix)(s,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)}(Mt,Mt.exports)),Mt.exports}var mi;function il(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=or(),r=sp();function n(i){if(!(0,t.isAbsoluteUrl)(i))return!0;try{const s=(0,t.getLocationOrigin)(),a=new URL(i,s);return a.origin===s&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(vr)),vr}var xr={},Cr={},hi;function ap(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i){i===void 0&&(i="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const a=s.map(c=>this.children.get(c)._smoosh(""+i+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(i+"["+this.slugName+"]/")),!this.placeholder){const c=i==="/"?"/":i.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+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(i+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(i+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(i,s,a){if(i.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");s.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),s.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),a=!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(a)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 "'+i[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 "'+i[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(i.slice(1),s,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const i=new t;return n.forEach(s=>i.insert(s)),i.smoosh()}}(Cr)),Cr}var Sr={},gi;function cp(){return gi||(gi=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)}}(Sr)),Sr}var yi;function lp(){return yi||(yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=ap(),n=cp()}(xr)),xr}var jr={},Ar={},_i;function up(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=or();function r(n){let{re:i,groups:s}=n;return a=>{const c=i.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(f=>{const p=s[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(m=>l(m)):p.repeat?[l(d)]:l(d))}),u}}}(Ar)),Ar}var Rr={},Er={},wr={},Pr={},vi;function dp(){return vi||(vi=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}}(Pr)),Pr}var Ir={},bi;function fp(){return bi||(bi=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(")")}}(Ir)),Ir}var xi;function pp(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return i},normalizeRscPath:function(){return s}});const r=dp(),n=fp();function i(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function s(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(wr)),wr}var Ci;function mp(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return i},extractInterceptionRouteInformation:function(){return s}});const r=pp(),n=["(..)(..)","(.)","(..)","(...)"];function i(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function s(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. 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: ${a}. 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}}}(Er)),Er}var Nr={},Si;function hp(){return Si||(Si=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(i){return t.test(i)?i.replace(r,"\\$&"):i}}(Nr)),Nr}var ji;function gp(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=mp(),n=hp(),i=nl(),s="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function l(y){const g=(0,i.removeTrailingSlash)(y).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:g.map(v=>{const A=r.INTERCEPTION_ROUTE_MARKERS.find(P=>v.startsWith(P)),S=v.match(/\[((?:\[.*\])|.+)\]/);if(A&&S){const{key:P,optional:C,repeat:I}=c(S[1]);return b[P]={pos:j++,repeat:I,optional:C},"/"+(0,n.escapeStringRegexp)(A)+"([^/]+?)"}else if(S){const{key:P,repeat:C,optional:I}=c(S[1]);return b[P]={pos:j++,repeat:C,optional:I},C?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(v)}).join(""),groups:b}}function u(y){const{parameterizedRoute:g,groups:b}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:j,keyPrefix:v}=y;const{key:A,optional:S,repeat:P}=c(b);let C=A.replace(/\W/g,"");v&&(C=""+v+C);let I=!1;return(C.length===0||C.length>30)&&(I=!0),isNaN(parseInt(C.slice(0,1)))||(I=!0),I&&(C=g()),v?j[C]=""+v+A:j[C]=""+A,P?S?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(y,g){const b=(0,i.removeTrailingSlash)(y).slice(1).split("/"),j=f(),v={};return{namedParameterizedRoute:b.map(A=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(C=>A.startsWith(C)),P=A.match(/\[((?:\[.*\])|.+)\]/);return S&&P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(A)}).join(""),routeKeys:v}}function m(y,g){const b=d(y,g);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function h(y,g){const{parameterizedRoute:b}=l(y),{catchAll:j=!0}=g;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(y,!1);let A=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+A+"$"}}}(Rr)),Rr}var Ai;function yp(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=up(),r=gp();function n(i,s,a){let c="";const l=(0,r.getRouteRegex)(i),u=l.groups,f=(s!==i?(0,t.getRouteMatcher)(l)(s):"")||a;c=i;const p=Object.keys(u);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(jr)),jr}var Ri;function _p(){return Ri||(Ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=el(),n=rl(),i=ip(),s=or(),a=ir(),c=il(),l=lp(),u=yp();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,s.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+v}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const v=new URL(y,h);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let A="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:I}=(0,u.interpolateAs)(v.pathname,v.pathname,P);C&&(A=(0,n.formatWithValidation)({pathname:C,hash:v.hash,query:(0,i.omit)(P,I)}))}const S=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return m?[S,A||S]:S}catch{return m?[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)}(Ot,Ot.exports)),Ot.exports}var kt={exports:{}},Or={},Tr={},Ei;function sl(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Do();function r(n,i){if(!n.startsWith("/")||!i)return n;const{pathname:s,query:a,hash:c}=(0,t.parsePath)(n);return""+i+s+a+c}}(Tr)),Tr}var wi;function vp(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=sl(),r=ol();function n(i,s,a,c){if(!s||s===a)return i;const l=i.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+s.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+s)}}(Or)),Or}var Pi;function bp(){return Pi||(Pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=ir(),n=function(i){for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(vp().addLocale(i,...a)):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)}(kt,kt.exports)),kt.exports}var Mr={},Ii;function al(){return Ii||(Ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Pe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Mr)),Mr}var kr={},Ni;function xp(){return Ni||(Ni=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return i},AppRouterContext:function(){return s},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Pe._(x);var i;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(i||(i={}));const s=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(kr)),kr}var Lt={exports:{}},Dt={exports:{}},Oi;function cl(){return Oi||(Oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(s,a){for(var c in a)Object.defineProperty(s,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(s){let a=Date.now();return self.setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(s){return clearTimeout(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)}(Dt,Dt.exports)),Dt.exports}var Ti;function Cp(){return Ti||(Ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,n=cl(),i=typeof IntersectionObserver=="function",s=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=s.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const j=h.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},f);return m={id:p,observer:y,elements:h},a.push(p),s.set(p,m),m}function l(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),s.delete(m);const b=a.findIndex(j=>j.root===m.root&&j.margin===m.margin);b>-1&&a.splice(b,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!i,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(A=>{b.current=A},[]);(0,r.useEffect)(()=>{if(i){if(h||y)return;const A=b.current;if(A&&A.tagName)return l(A,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const A=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(A)}},[h,d,p,y,b.current]);const v=(0,r.useCallback)(()=>{g(!1)},[]);return[j,y,v]}(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)}(Lt,Lt.exports)),Lt.exports}var $t={exports:{}},Bt={exports:{}},Lr={},Mi;function Sp(){return Mi||(Mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let i;const s=r.split("/");return(n||[]).some(a=>s[1]&&s[1].toLowerCase()===a.toLowerCase()?(i=a,s.splice(1,1),r=s.join("/")||"/",!0):!1),{pathname:r,detectedLocale:i}}}(Lr)),Lr}var ki;function jp(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,i)=>process.env.__NEXT_I18N_SUPPORT?Sp().normalizeLocalePath(n,i):{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)}(Bt,Bt.exports)),Bt.exports}var Ft={exports:{}},Dr={},Li;function Ap(){return Li||(Li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,i){if(r){i&&(i=i.toLowerCase());for(const c of r){var s,a;const l=(s=c.domain)==null?void 0:s.split(":")[0].toLowerCase();if(n===l||i===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===i))return c}}}}(Dr)),Dr}var Di;function Rp(){return Di||(Di=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,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];if(process.env.__NEXT_I18N_SUPPORT)return Ap().detectDomainLocale(...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)}(Ft,Ft.exports)),Ft.exports}var $i;function Ep(){return $i||($i=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});const r=ir(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=jp().normalizeLocalePath,f=Rp().detectDomainLocale,p=a||u(s,c).detectedLocale,d=f(l,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+s)}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)}($t,$t.exports)),$t.exports}var qt={exports:{}},Bi;function wp(){return Bi||(Bi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=sl(),n=ir(),i=process.env.__NEXT_ROUTER_BASEPATH||"";function s(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(qt,qt.exports)),qt.exports}var zt={exports:{}},Fi;function Pp(){return Fi||(Fi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return s},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",i="navigate",s="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.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)}(zt,zt.exports)),zt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});const n=Pe._(x),i=_p(),s=il(),a=rl(),c=or(),l=bp(),u=al(),f=xp(),p=Cp(),d=Ep(),m=wp(),h=Pp(),y=new Set;function g(P,C,I,B,R,O){if(typeof window>"u"||!O&&!(0,s.isLocalURL)(C))return;if(!B.bypassPrefetchedCheck){const $=typeof B.locale<"u"?B.locale:"locale"in P?P.locale:void 0,E=C+"%"+I+"%"+$;if(y.has(E))return;y.add(E)}const N=O?P.prefetch(C,R):P.prefetch(C,I,B);Promise.resolve(N).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function b(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function j(P,C,I,B,R,O,N,$,E,F){const{nodeName:H}=P.currentTarget;if(H.toUpperCase()==="A"&&(b(P)||!E&&!(0,s.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=N??!0;"beforePopState"in C?C[R?"replace":"push"](I,B,{shallow:O,locale:$,scroll:W}):C[R?"replace":"push"](B||I,{forceOptimisticNavigation:!F,scroll:W})};E?n.default.startTransition(K):K()}function v(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const S=n.default.forwardRef(function(C,I){let B;const{href:R,as:O,children:N,prefetch:$=null,passHref:E,replace:F,shallow:H,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...M}=C;B=N,w&&(typeof B=="string"||typeof B=="number")&&(B=n.default.createElement("a",null,B));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,k=$!==!1,J=$===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
|
|
2
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(C[oe]==null||typeof C[oe]!="string"&&typeof C[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:C[oe]===null?"null":typeof C[oe]})}),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(oe=>{const V=typeof C[oe];if(oe==="as"){if(C[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(C[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(C[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&C[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);C.prefetch&&!Q.current&&!Z&&(Q.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&&!O){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.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:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=v(R);return{href:G,as:O?v(O):G}}const[ie,me]=(0,i.resolveHref)(D,R,!0);return{href:ie,as:O?(0,i.resolveHref)(D,O):me||ie}},[D,R,O]),L=n.default.useRef(Y),T=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(B)}catch{throw B?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` 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 `"+R+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(B);else if(process.env.NODE_ENV==="development"&&(B==null?void 0:B.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 se=w?re&&typeof re=="object"&&re.ref:I,[ce,le,ae]=(0,p.useIntersection)({rootMargin:"200px"}),q=n.default.useCallback(ie=>{(T.current!==ee||L.current!==Y)&&(ae(),T.current=ee,L.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!k||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,k,D==null?void 0:D.locale,te,Z,J]);const he={ref:q,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.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||j(ie,te,Y,ee,F,H,U,K,Z,k))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!k||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!k&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||E||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K: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,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...M,...he},B)});(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)})(so,so.exports);var Ip=so.exports,Np=Ip;const Oe=nr(Np),ll=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...i})=>{const{element:s,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=De(),m=ba({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--image"],e),ref:s,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(Oe,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:o.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>x.createElement(Be.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&&u&&o.jsx(ye.Video,{url:u,poster:m[0].url}),t]})};ll.displayName="ProductCard.Media.Media";const ul=({className:e,callback:t,children:r,...n})=>{const{isMobile:i,item:s,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=De(),{availability:{status:c}}=s;return c?null:o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--outstock"],e),children:[o.jsx(_.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),o.jsx(_.Button,{className:_.helpers.classNameConcat(e,"buy-button"),size:i?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(s)},children:a.notify})]})};ul.displayName="ProductCard.OutStock";const dl=({children:e,className:t="",index:r,isMobile:n=!1,item:i,size:s,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>o.jsx(tp,{item:i,isMobile:n,outStock:c,order:a,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...p,className:_.helpers.classNameConcat(Ae["product-card--wrapper"],t),"data-size":s,children:e})});dl.displayName="ProductCard.Root";const fl=({disabled:e,label:t,size:r,value:n,onClick:i,...s})=>o.jsxs(_.ToggleSize.Wrapper,{...s,disabled:!1,outOfStock:e,size:r,onClick:i,children:[o.jsx(_.ToggleSize.DisabledAdornment,{}),o.jsx(_.ToggleSize.Text,{children:t})]});fl.displayName="ProductCard.SizeSelector.Item";const pl=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:i})=>{const{item:s,isMobile:a,setSelectedSku:c,eventDataRef:l}=De();n.productId=s.id;const u=jo(n),f=So(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=x.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof i=="function"){i(s,n);return}p(n)},[n,i,p,u,s]);return o.jsx(fl,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};pl.displayName="ProductCard.SizeSelector.SkuItem";const ml=({callback:e,className:t="",children:r,setNotify:n,...i})=>{const{isMobile:s,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=De();return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ae["product-card--selectors--size"],t),"data-mobile":s,children:[o.jsx("div",{className:Ae["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>o.jsx(pl,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:Ae["product-card--selectors--size--button"],children:r})]})};ml.displayName="ProductCard.SizeSelector";const ao=({alt:e="",callback:t,more:r,total:n=4,src:i,url:s,...a})=>o.jsxs(_.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(s)},children:[o.jsx(_.ToggleStyle.DisabledAdornment,{}),o.jsxs(_.ToggleStyle.Texture,{children:[i&&o.jsx(Be.Image,{alt:e??i,src:i,height:34,width:34}),r&&o.jsx(_.TextStructure.DivWrapper,{className:Ae["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),Op=({children:e,callback:t,data:r,total:n=4,size:i,...s})=>{const{index:a}=De(),{triggerSelectItemEventRef:c}=ge();return o.jsxs("div",{...s,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(ao,{callback:f=>{c.current.trigger=!0,c.current.index=a,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:i},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(ao,{size:i,total:r.length-n,more:!0})]})},hl=({callback:e,className:t,data:r,images:n=[],findTexture:i,...s})=>{const{CONSTANTS:a}=De(),c=i||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(Op,{...s,callback:e,className:_.helpers.classNameConcat(Ae["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(ao,{active:!0,size:"x-small",src:l.url})})};hl.displayName="ProductCard.StyleSelector";const gl=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:i,highPrice:s},installments:{count:a,value:c}},eventDataRef:l}=De();l.current.priceInfo={price:i,listPrice:s};const u=Ie(s,t),f=Ie(i,t),p=Ie(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:_.helpers.classNameConcat(Ae["product-card--price"],e),"data-mobile":n,children:o.jsx(_.ProductInfo.Root,{size:"small",layout:d,children:o.jsxs(_.ProductInfo.Wrapper,{size:"small",layout:d,children:[o.jsx(_.ProductInfo.ValuesWrapper,{children:f!==u?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?o.jsx(_.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};gl.displayName="ProductCard.Price";const yl=({tag:e,className:t})=>{const{item:{name:r}}=De();return o.jsxs("div",{className:_.helpers.classNameConcat(Ae["product-card--title"],t),children:[o.jsx("div",{className:Ae["product-card--title--tag"],children:e?o.jsx(_.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?o.jsx(_.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:Ae["product-card--title--content"],children:r&&o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};yl.displayName="ProductCard.Title";const _l=({className:e,url:t,poster:r,...n})=>{const{element:i}=De();return x.useEffect(()=>{if(!(i!=null&&i.current))return;const s=i.current,a=s.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{xa(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{s&&(c.observe(s),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,i]),o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae["product-card--video"],e),children:t&&o.jsx(Be.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};_l.displayName="ProductCard.Media.Video";const vl=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae[`product-card--${r}`],t),children:e});vl.displayName="ProductCard.Wrapper";const ye={Actions:Qc,BuyButton:Yc,Header:Zc,Media:ll,Root:dl,OutStock:ul,Price:gl,SizeSelector:ml,StyleSelector:hl,Title:yl,Video:_l,Wrapper:vl},Tp="_carousel_245ib_1",Mp="_shelf__container_245ib_14",kp="_shelf_without_carousel_245ib_34",yt={carousel:Tp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Mp,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:kp},qi=({title:e})=>o.jsx("div",{className:yt.shelf__container,children:e&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-body-md",Me.responsive["responsive-mobile-flex"]),children:e}),o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-md",Me.responsive["responsive-desktop-flex"]),children:e})]})})}),Lp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:i}=Se(),s=r[i?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=_.Carousel.useCarousel({itemsPerPage:s,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return i||f>=4?o.jsxs(_.Carousel.Root,{innerRef:d=>{a(d)},className:yt.carousel,children:[o.jsxs("div",{className:yt["custom-controllers"],children:[n&&o.jsx(qi,{title:n}),s<f&&o.jsxs(_.Carousel.Controller,{className:yt["controllers-arrows-bullets"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.arrow_right})}})]}),!i&&s>2&&o.jsx(_.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),o.jsx(_.Carousel.Body,{children:x.Children.map(e,(d,m)=>o.jsx(_.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):o.jsxs(o.Fragment,{children:[n&&o.jsx(qi,{title:n}),o.jsx("div",{className:yt.shelf_without_carousel,children:e})]})},Dp={Shelf:Lp},$p=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:i})=>{const s=x.useMemo(()=>Jf(r),[r]),{isMobile:a}=Se(),{addItemsToCart:c}=ze(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=bo(),[f,p]=x.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=s.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=ep({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return x.useEffect(()=>{if(!t||s.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),o.jsxs("div",{className:Ge.container,ref:n,children:[o.jsx("div",{className:Ge["carousel-container"],style:{width:s.length<=3?"max-content":"75%"},children:o.jsx(Dp.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:s.length>=3?2.2:s.length},ICONS:e.ICONS,children:Array.isArray(s)&&s.map(({node:h},y)=>{var j,v,A;const g=u(h.cluster.highlights),{availability:{status:b}}=h;return b?o.jsxs(ye.Root,{item:{...h,image:ko.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:i,children:[o.jsx(ye.Header,{product:h,tag:g.commercial}),o.jsx(ye.Media,{}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:{value:(j=g.institucional)==null?void 0:j.value,enableIcon:(v=g.institucional)==null?void 0:v.enableIcon,icon:(A=g.institucional)==null?void 0:A.icon}}),o.jsx(ye.Actions,{children:o.jsx(ye.SizeSelector,{callback:S=>m({selectedProduct:S,productId:h.id})})})]})]},h.id):null})})}),o.jsx("div",{className:Ge["add-cart-container"],children:o.jsx(Zf,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},$o={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Bo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=ze(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),s=r.reduce((a,c)=>a+(c.quantity??0),0);return o.jsx(_.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:o.jsxs(_.Badge.AutoPositioner,{children:[o.jsx(_.Badge.Count,{count:s,size:"medium",variant:"primary",style:{backgroundColor:"black",display:s>0?"flex":"none"}}),o.jsx(_.Icon,{name:i.header.ICONS.bag,size:"medium"})]})})};Bo.displayName="Header.Bag";const jt=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(Oe,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,bl=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=We(),i=s=>{s?n(s):r()};return o.jsx(_.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((s,a)=>o.jsx(jt,{href:s.link,onMouseEnter:()=>i(s.submenuId),onFocus:()=>i(s.submenuId),children:o.jsx(_.Header.CategoryItem,{className:$o["btn-header"],value:s.submenuId??null,adornment:{start:o.jsx(_.Icon,{name:s.iconStart}),end:o.jsx(_.Icon,{name:s.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${s.label}`})},children:s.label})},`category-${s.label}-${a}`))})};bl.displayName="Header.Categories";function Bp({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=Po();return o.jsxs(o.Fragment,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:o.jsx(_.Icon,{name:r.header.ICONS.search,size:"medium"})}),o.jsx(e,{recommendations:!1,trends:!0})]})}const Fp={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},qp={"observer-wrapper":"_observer-wrapper_r43gk_1"};function zp(e,t,r){const[n,i]=x.useState(!1),{threshold:s}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}i(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:s||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const sr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:i=!0,className:s,...a})=>{const c=x.useRef(null),l=zp(c,i,r),{sendDataLayerEvent:u}=ge();return x.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...a,ref:c,className:_.helpers.classNameConcat(qp["observer-wrapper"],s),children:e})},Fo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:i}=ge(),s=50/e.length;return o.jsx("div",{className:Fp["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return o.jsx(sr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(Oe,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),i({updatePromotionRef:!0,promotion:u})},children:[o.jsx(Be.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${s}vw`}),a.label&&o.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Fo.displayName="Menu.Thumbnail";const co={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Hp="_link_w24h0_1",Up="_wrapper_w24h0_98",Gp="_text_w24h0_106",$r={link:Hp,wrapper:Up,text:Gp},qe=({children:e,adornments:t,className:r,disableUnderline:n,href:i,mode:s,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=_.helpers.ValidateProp({fieldTypes:it.SizesSmallExtended,property:a,fallback:"medium"}),d=_.helpers.ValidateProp({fieldTypes:it.Mode,property:s,fallback:"default"});return o.jsx(Oe,{...f,className:_.helpers.classNameConcat($r.link,r),href:i&&i.length>0?i:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:$r.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:$r.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},xl=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:i}=Re(),{reset:s}=We(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return o.jsxs("div",{...n,className:co["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var m,h,y;const p=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.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(_.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{children:[o.jsx(jt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(s(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{children:u.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...p,className:co["submenu-categories"],children:u.items.map((g,b)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:o.jsx(qe,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{s(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=u.see_all)==null?void 0:y.link)&&o.jsx(_.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(s(),a({content:`menu:${u.label??""}:${r.label}`}),i.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&o.jsx(_.Utils.Divider,{size:"small",direction:"vertical"})]})};xl.displayName="Menu.Categories";const Cl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:co["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(_.Utils.Divider,{size:"small"})]})};Cl.displayName="Menu.MenuRoot";const Br={Root:Cl,Categories:xl,Thumbnail:Fo},Sl=()=>{const{headerData:e,CONSTANTS:t}=be(),r=tr(),{reset:n}=We();return o.jsx(_.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((i,s)=>{const{thumbnails:a,label:c,id:l}=i,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return o.jsxs(Br.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Br.Categories,{dividerOnRight:!!f,subMenu:i}),Array.isArray(a)&&o.jsx(Br.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};Sl.displayName="Header.SubMenu";const jl=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return o.jsx(Oe,{href:"/favoritos",children:o.jsx(_.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(_.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};jl.displayName="Header.WishList";const Al=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=be(),{handleSelectContent:n}=ge(),{reset:i}=We(),{setValue:s}=Ct();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[o.jsx(_.Header.Logo,{style:{width:"100%"},children:o.jsx(Oe,{href:"/",onMouseEnter:i,children:o.jsx(_.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),o.jsx(bl,{}),o.jsxs(_.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[o.jsx(Bp,{SearchModal:e}),o.jsx(_.Header.SupportItem,{onClick:()=>{s(!0),n({content:"header:user_menu"})},className:$o["btn-login"],innerRef:r,children:o.jsx(_.Icon,{name:t.header.ICONS.person,size:"medium"})}),o.jsx(jl,{}),o.jsx(Bo,{id:"cart-button"})]})]}),o.jsx(Sl,{})]})};Al.displayName="Header.HeaderDesktopWrapper";const Wp="_divider_1lexj_199",ve={"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:Wp,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Rl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:i,...s})=>o.jsx("button",{onClick:n,className:ve["menu-categories-btn"],children:r?o.jsxs(_.Banner.Container,{...s,className:ve["menu-body-banner-container-modifier"],children:[o.jsx(_.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(Be.Image,{src:r,alt:t??r,className:ve["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),o.jsx(_.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:ve["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:i?{color:i}:{},children:e})})})})]}):o.jsx("h2",{...s,children:e})});Rl.displayName="Menu.MenuCategories";const El=({children:e,link:t})=>{const{reset:r}=et();return t?o.jsx(Oe,{href:t??"#",onClick:r,children:e}):e};El.displayName="Menu.MenuCategoriesWrapper";const wl=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Re(),{reset:n}=et(),{handleSelectContent:i}=ge(),{CONSTANTS:s}=be(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.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:o.jsx(_.Icon,{name:s.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{className:ve["menu-submenu--component-list-modifier"],children:[o.jsx(jt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),i({content:`menu:${e.label??""}:${t}`})},children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),o.jsx(_.ComponentList.List,{columns:1,...a,className:ve["submenu-categories"],children:e.items.map((p,d)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:o.jsx(qe,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),i({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&o.jsx(_.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),i({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};wl.displayName="Menu.SubMenuSubCategory";const Pl=({submenu:e})=>{var s;const t=tr(),{handleCloseSubMenu:r}=St(),{reset:n}=We(),{CONSTANTS:i}=be();return o.jsxs("div",{className:ve["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:i.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&&o.jsx(_.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:ve["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(Fo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(s=e==null?void 0:e.subCategories)==null?void 0:s.map((a,c)=>o.jsx(wl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Pl.displayName="Menu.SubMenuItem";const Il=()=>{const{headerData:e}=be(),t=tr(),{reset:r}=We(),{bodyRef:n}=St();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:ve["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:ve["menu-submenu"],children:e.subMenus.map((i,s)=>o.jsx(Pl,{submenu:i},`submenu-${i.id}-${s}`))})})};Il.displayName="Menu.SubMenu";const Nl=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=We(),{bodyRef:i}=St(),{handleSelectContent:s}=ge();return o.jsxs("div",{...t,ref:i,id:"menu-body",className:ve["menu-body"],children:[o.jsx("div",{className:ve["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return o.jsx(El,{link:a.submenuId?null:a.link,children:o.jsx(Rl,{onClick:()=>{n(a.submenuId??null),s({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(Il,{})]})};Nl.displayName="Menu.MenuBody";const Ol=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return o.jsxs("div",{className:ve["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[e&&o.jsx("h2",{className:"typography-style-body-md",children:e}),t&&o.jsx("h3",{children:t})]})}),o.jsx(_.Button,{adornment:{end:o.jsx(_.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:ve["menu-close"],"data-close":!0})]})};Ol.displayName="Menu.MenuHeaderWrapper";const Tl=({navigationLinks:e})=>{const{reset:t}=et(),{handleSelectContent:r}=ge();return e?o.jsx("nav",{className:ve["menu-header-navlinks"],children:e.map((n,i)=>o.jsx(qe,{href:n.link??"#",adornments:{start:n.iconStart&&o.jsx(_.Icon,{name:n.iconStart}),end:n.iconEnd&&o.jsx(_.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},i))}):null};Tl.displayName="Menu.MenuHeaderNavLinks";const Ml=()=>{const{headerData:e}=be();return o.jsxs("div",{className:ve["menu-header-container"],children:[o.jsx(Ol,{title:e.title,subtitle:e.subtitle}),o.jsx(Tl,{navigationLinks:e.navigationLinks})]})};Ml.displayName="Menu.MenuHeaderContainer";const kl=({children:e})=>{const{documentBodyRef:t}=St(),{CONSTANTS:r}=be(),n=wo(),{setValue:i}=et();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:i,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:ve["modal-modifier"],children:o.jsx("div",{className:ve["menu-mobile"],children:e})})};kl.displayName="Menu.MenuRoot";const Qt=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...t,className:ve["menu-navigationbar-item"],children:e}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"small",className:ve.divider})]});Qt.displayName="Menu.NavigationBarItem";const Ll=()=>{const{setIsOpen:e}=ze(),{reset:t}=et(),{setValue:r}=Ct(),{handleSelectContent:n}=ge(),{CONSTANTS:i}=be(),{router:s}=Re();return o.jsxs(_.Card,{id:"menu-navigationbar",shadow:!0,className:ve["menu-navigationbar"],style:{zIndex:i.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(Qt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:i.header.MENU_INFO.login.button_text}),o.jsx(Qt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:i.header.MENU_INFO.bag.button_text}),o.jsx(Qt,{size:"small",variant:"tertiary",iconNameStart:i.header.MENU_INFO.store.button_icon,onClick:()=>{s.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:i.header.MENU_INFO.store.button_text})]})};Ll.displayName="Menu.NavigationBar";const Ht={Root:kl,NavigationBar:Ll,Header:Ml,Body:Nl},Dl=({SearchModal:e})=>{const t=x.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=be(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:s,MENU_MOB_BTN_SIDE:a="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:l}=Po(),{setValue:u}=et(),{setValue:f}=Ct();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[a==="left"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})}),o.jsx(_.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(Oe,{href:"/",children:o.jsx(_.Icon,{name:s.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),o.jsxs(_.Header.Support,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{l(!0),c({content:"header:search"})},children:o.jsx(_.Icon,{name:s.search,size:"medium"})}),o.jsx(_.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:o.jsx(_.Icon,{name:s.person,size:"medium"})}),o.jsx(Bo,{}),a==="right"&&o.jsx(_.Header.SupportItem,{onClick:()=>u(!0),innerRef:t,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})})]})]}),o.jsx(e,{recommendations:!1,trends:!0}),o.jsx(uc,{children:o.jsxs(Ht.Root,{children:[o.jsx(Ht.Header,{}),o.jsx(Ht.Body,{}),i?o.jsx(Ht.NavigationBar,{}):o.jsx(o.Fragment,{})]})})]})};Dl.displayName="Header.HeaderMobileWrapper";const Vp="_root_wvekm_126",ke={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:Vp},$l=({className:e,children:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(ke["user-menu--content"],e),children:t});$l.displayName="UserMenu.Content";var Bl=(e=>(e.Account="account",e))(Bl||{});const Fl=({className:e,cashBack:t,credits:r,link:n,total:i,...s})=>{const a=t?Ie(t):void 0,c=r?Ie(r):void 0,l=i?Ie(i):void 0;return o.jsx(_.Credits.Account,{...s,className:_.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:l,type:Bl.Account})};Fl.displayName="UserMenu.Credits";const ql=({className:e,children:t,description:r,text:n,...i})=>{const{isMobile:s}=Se();return o.jsx("div",{...i,className:_.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":s,children:o.jsxs("div",{className:ke["user-menu--login--content"],children:[o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[o.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),o.jsx("p",{children:r})]})}),t]})})};ql.displayName="UserMenu.Login";const zl=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:i})=>{const{isMobile:s}=Se(),a=Zd({ICONS:n,storeConfig:i}).filter(c=>c.deviceShown==="both"||c.deviceShown===(s?"mobile":"desktop"));return o.jsxs("ul",{className:_.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>o.jsx("li",{children:o.jsx(qe,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:o.jsx(_.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?o.jsx("li",{children:o.jsx(qe,{href:`${i.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:o.jsx(_.Icon,{name:Yd(n)})},children:Qd})}):o.jsx(o.Fragment,{})]})};zl.displayName="UserMenu.Menu";const Hl=e=>{const t=x.useRef(null),r=x.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),n=x.useCallback(s=>{t.current&&!t.current.contains(s.target)&&e()},[e]),i=x.useCallback(s=>{s.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",i),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",i),document.removeEventListener("touchstart",n)}),[r,i,n]),{ref:t}},Kp=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Xp=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:i,top:s,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Kp(e==null?void 0:e.parentElement):0;return{left:i+a/2-(c.width+l*2),top:s+n+r}},Ul=x.createContext({}),Qp=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:i,target:s,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,p]=x.useState({left:0,top:0}),{ref:d}=Hl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{i(!1),u(!1)},t))});return x.useEffect(()=>{if(s&&(d!=null&&d.current)){const{left:m,top:h}=Xp(d.current,s,r??0);p({left:m,top:h}),u(!1)}},[r,n,s,d]),o.jsx(Ul.Provider,{value:x.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:i,setIsLeaving:u,target:s}),[a,f,d,l,n,i,u,s]),children:e})},Gl=()=>{const e=x.useContext(Ul);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Wl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:i}=Gl();return o.jsxs(_.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:i,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[o.jsx(_.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),o.jsx(_.Modal.Body,{children:e})]})};Wl.displayName="UserMenu.Modal";const Vl=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...i})=>o.jsx(Qp,{...i,className:ke.root,children:n?o.jsxs(o.Fragment,{children:[o.jsx(Xe.Modal,{Z_INDEX_WAR:r,children:t}),e]}):o.jsx(Xe.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});Vl.displayName="UserMenu.Root";const Kl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,isOpen:c,top:l}=Gl();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:i,children:t}),className:_.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:a,isOpen:c,left:s,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:o.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};Kl.displayName="UserMenu.Tooltip";const Xe={Credits:Fl,Content:$l,Login:ql,Menu:zl,Modal:Wl,Root:Vl,Tooltip:Kl},qo=()=>{var y,g,b;const e=Mo(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:i},storeConfig:s}=be(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=i,u=rc(),{setValue:f}=Ct(),p=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:m,credits:h}=x.useMemo(()=>{var j,v;return{credits:((j=e==null?void 0:e.getCurrentCredits())==null?void 0:j.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return o.jsx(Xe.Root,{component:o.jsxs(Xe.Content,{children:[o.jsx(Xe.Login,{description:ef(d),text:Jd(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&o.jsx(_.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:l.login.button_text})}),h+m&&d?o.jsx(Xe.Credits,{credits:h,cashBack:m,link:`${s.secureSubdomain}/account#/meus-creditos`,total:h+m}):o.jsx(o.Fragment,{}),o.jsx(_.Utils.Divider,{}),o.jsx(Xe.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:s})]}),target:t?r.current:n.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};qo.displayName="UserMenu";const Xl=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:i,CONSTANTS:s}=be(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c}}=s;return o.jsx(_.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:$o["header-animation"],children:o.jsxs(_.Header.Root,{innerRef:i,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[o.jsx("div",{className:Me.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:o.jsx(Dl,{SearchModal:r})}),o.jsx("div",{className:Me.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:o.jsx(Al,{SearchModal:r})}),t,o.jsx(Lo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),o.jsx(qo,{})]})})};Xl.displayName="Header";const Yp="_shippingFreight_6z8rf_6",Zp="_shippingFreight__postalCodeGrid_6z8rf_10",Jp="_shippingFreight__grid_6z8rf_14",em="_shippingFreight__grid__title_6z8rf_18",tm="_shippingFreight__grid__remember_6z8rf_29",rm="_postalCodeContainer_6z8rf_44",nm="_deliveryStatusBar__tag_6z8rf_49",om="_deliveryStatusBarError__tag_6z8rf_66",im="_deliveryInfo_6z8rf_74",sm="_deliveryInfo__content_6z8rf_78",am="_deliveryInfo__text_6z8rf_84",cm="_deliveryInfo__title_6z8rf_89",lm="_deliveryInfo__subtitle_6z8rf_99",um="_deliveryInfo__tooltipIcon_6z8rf_109",dm="_deliveryInfo__tooltip_6z8rf_109",fm="_freightGrid_6z8rf_148",pm="_freightContainer_6z8rf_155",mm="_freightOption__content_6z8rf_160",hm="_freightOption__value_6z8rf_166",gm="_freightOption__title_6z8rf_177",ym="_freightOption__title_item_6z8rf_181",_m="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Yp,shippingFreight__postalCodeGrid:Zp,shippingFreight__grid:Jp,shippingFreight__grid__title:em,shippingFreight__grid__remember:tm,postalCodeContainer:rm,deliveryStatusBar__tag:nm,deliveryStatusBarError__tag:om,deliveryInfo:im,deliveryInfo__content:sm,deliveryInfo__text:am,deliveryInfo__title:cm,deliveryInfo__subtitle:lm,deliveryInfo__tooltipIcon:um,deliveryInfo__tooltip:dm,freightGrid:fm,freightContainer:pm,freightOption__content:mm,freightOption__value:hm,freightOption__title:gm,freightOption__title_item:ym,freightOption__paragraph:_m,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},vm=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:i="",labelDescription:s,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),f=x.useRef(null),p=()=>u(d=>!d);return o.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsx("div",{children:o.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),o.jsxs("div",{className:fe.deliveryInfo__content,children:[o.jsx("div",{className:fe.deliveryInfo__icon,children:o.jsx(_.Icon,{name:e,size:"medium"})}),o.jsxs("div",{className:fe.deliveryInfo__text,children:[o.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",i]}),r&&o.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),s&&o.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[o.jsx("span",{children:o.jsx(_.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&o.jsx("div",{className:fe.deliveryInfo__tooltip,children:s})]})]})]})},bm=({value:e,title:t,paragraph:r})=>o.jsx("div",{className:fe.freightOption,children:o.jsxs("div",{className:fe.freightOption__content,children:[o.jsx("span",{className:fe.freightOption__value,children:e}),o.jsx("span",{className:fe.freightOption__title,children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:fe.footer__item,children:[o.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&o.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),xm=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),Cm=({children:e})=>o.jsx("div",{className:fe.freightGrid,children:e}),Sm=({children:e})=>o.jsx("div",{className:fe.postalCodeContainer,children:e}),zi=({message:e,seller:t="",size:r="small",setError:n})=>o.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:o.jsxs(_.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),jm=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Am=e=>{var r,n,i;const t=[];return(i=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||i.forEach(s=>{t.push({id:s.id,name:s.name,price:s.price,shippingEstimate:s.shippingEstimate})}),t},Rm=({component:e,parent:t,top:r,left:n,target:i,contentRef:s,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Se();return o.jsx(o.Fragment,{children:u?o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:s,children:[e,o.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Em=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:i,setError:s,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var O,N,$,E;const f=st(),p=st(F=>F.shipping),[d,m]=x.useState(),[h,y]=x.useState(!1),[g,b]=x.useState(!1),[j,v]=x.useState(!1),A=(N=(O=f.shippingData)==null?void 0:O.address)==null?void 0:N.postalCode,S=!(d!=null&&d.length)&&A?A:d,P=x.useRef(null),C=async F=>{const U=F.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async F=>{const H=F.target.value.replace(/\D/g,"");try{if((await Jo.get(`https://viacep.com.br/ws/${H}/json/`)).data.erro){s&&s(l.messages.cep_not_found),a(!1),b(!0);return}s&&s(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},B=async()=>{y(!0);try{const F=await Jo.post("/api/checkout/simulation",{items:[{id:n,quantity:i,seller:t}],country:"BRA",postalCode:S});e(Am(F.data))}catch(F){console.error("Erro ao atualizar o documento:",F)}finally{y(!1),p(S,"BRA")}},R=async()=>{if(!n){v(!0),setTimeout(()=>v(!1),1500);return}await I({target:{value:S}}),h||(B(),a(!0))};return o.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&j?o.jsx(Rm,{component:c,isOpen:j,parent:P.current,toolTipZIndex:u,freightConfig:l}):o.jsx(o.Fragment,{}),o.jsx("div",{style:{position:"relative"},children:o.jsx(_.TextField.Structure,{title:"structure",style:{width:"100%"},input:o.jsx(_.TextField.Input,{defaultValue:(E=($=f.shippingData)==null?void 0:$.address)==null?void 0:E.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:v(!0),onMouseOut:()=>n?null:v(!1),mode:"simple",onChange:C,onKeyDown:F=>{F.key==="Enter"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(_.Button,{onClick:R,size:r,title:"button",children:h?o.jsx(_.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},wm=({children:e,freightConfig:t})=>o.jsxs("div",{className:fe.shippingFreight,children:[o.jsxs("div",{className:fe.shippingFreight__grid,children:[o.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),o.jsx("span",{className:fe.shippingFreight__grid__remember,children:o.jsx(qe,{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:fe.shippingFreight__postalCodeGrid,children:e})]}),Pm=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),Im=({className:e,sellerId:t,skuId:r,quantity:n,size:i,seller:s,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=x.useState(""),[p,d]=x.useState([]),[m,h]=x.useState(""),[y,g]=x.useState(!1),b=v=>f(v),j=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(A=>({shipping_tier:A.id,delivery_time:A.shippingEstimate.replace("bd",""),flag_pickup:A.name.toLowerCase().includes("retirada")?"true":"false",shipping:A.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(Pm,{className:e,children:[o.jsxs(wm,{freightConfig:c.freightConfig,children:[o.jsx(Sm,{children:o.jsx(Em,{onUpdateFreightItems:j,skuId:r,quantity:n,size:i,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?o.jsx(zi,{size:i,message:m,setError:h}):p.length>0&&o.jsx(zi,{size:i,message:c.freightConfig.messages.delivered_by,seller:s})]}),y&&!m?p.length>0&&o.jsxs(xm,{children:[o.jsx(Cm,{children:p.filter(({id:v})=>!v.includes("Retirada")).map(v=>o.jsx(bm,{id:v.id,value:xo({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${jm(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?o.jsx(vm,{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]})},Ze={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_54b2o_1","pdc-navigation--content":"_pdc-navigation--content_54b2o_28","pdc-navigation--filters":"_pdc-navigation--filters_54b2o_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_54b2o_67","pdc-navigation--selected":"_pdc-navigation--selected_54b2o_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_54b2o_150","pdc-navigation":"_pdc-navigation_54b2o_28"},Nm=({children:e,href:t,isLast:r,title:n,ICONS:i})=>o.jsx(_.BreadCrumb.Item,{adornment:{end:r&&o.jsx(_.Icon,{name:i.arrow_right})},children:r?o.jsx(qe,{href:t??"/",size:"medium",title:n,disableUnderline:!0,children:e}):e}),Ql=({ICONS:e,...t})=>{var a;const{state:r}=rr(),n=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",i=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:n??n).slice(1).split("/"),s=Ec(i);return o.jsx("div",{...t,className:Ze["pcd-navigation--breadcrumb"],children:o.jsx(_.BreadCrumb.DivWrapper,{children:o.jsx(_.BreadCrumb.List,{children:Array.isArray(s)&&s.map((c,l)=>{var u,f;return x.createElement(Nm,{...c,isLast:l!==s.length-1,key:c.href,title:(u=c.name)==null?void 0:u.replace(/-/g," "),ICONS:e},(f=c.name)==null?void 0:f.replace(/-/g," "))})})})})};Ql.displayName="PLPNavigation.BreadCrumb";const Yl=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:n,...i})=>o.jsxs("div",{...i,className:Ze["pdc-navigation--content"],children:[o.jsx(lt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:n}),e]});Yl.displayName="PLPNavigation.Content";const Om="_sort_35wro_1",ar={sort:Om,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Tm=({children:e,sortListOpen:t,btnAdornment:r,style:n,...i})=>o.jsx(_.Button,{...i,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...n,textDecoration:"none"},className:ar["sort-button"],children:e}),Mm=e=>o.jsx(_.RadioButton.Radio,{...e}),km=({children:e,className:t,name:r,...n})=>o.jsx(_.RadioButton.Group,{...n,name:r||"sort-group",className:_.helpers.classNameConcat(ar["sort-list"],t),children:e}),Lm=({children:e,className:t,shadow:r=!0,padding:n="small",height:i="fit-content",...s})=>o.jsx(_.Card,{...s,shadow:r,className:_.helpers.classNameConcat(ar["sort-list-wrapper"],t),padding:n,height:i,children:e}),Zl=x.forwardRef(({children:e,className:t,...r},n)=>o.jsx("div",{...r,ref:n,className:_.helpers.classNameConcat(ar.sort,t),children:e}));Zl.displayName="SortRoot";const zo=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:n,CONSTANTS:i,...s})=>{var d;const a=(d=n==null?void 0:n.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=ge();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=Hl(()=>r(!1)),p=m=>{const h=m.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:Ke.options[h]}}}),r(!1)};return o.jsxs(Zl,{...s,ref:f,children:[o.jsx(Tm,{btnAdornment:{listOpen:o.jsx(_.Icon,{name:i.ICONS.arrow_up,size:"small"}),listClosed:o.jsx(_.Icon,{name:i.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Ke.options[c]:Ke.placeholder},"sort-button"),t&&o.jsx(Lm,{children:o.jsx(km,{name:"sort-group",value:c??"",onChange:p,children:Object.keys(Ke.options).map(m=>o.jsx(Mm,{label:Ke.options[m],value:m},m))})})]})};zo.displayName="Sort";const Jl=x.createContext({}),Dm=({children:e,...t})=>{const[r,n]=x.useState(!1);return o.jsx(Jl.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:n}),[t,r,n]),children:e})},$m=()=>{const e=x.useContext(Jl);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},eu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:n,onSort:i,setOpenFilters:s,setOpenOrderBy:a}=$m();return o.jsxs("div",{className:Ze["pdc-navigation--filters"],children:[o.jsx(lt.BreadCrumb,{ICONS:e}),o.jsxs("div",{className:Ze["pdc-navigation--filters--content"],children:[o.jsx(zo,{handleSelectValue:c=>i(c??"release_desc"),sortListOpen:n,setSortListOpen:a,CONSTANTS:{ICONS:e},searchParams:r}),o.jsx(_.Button,{adornment:{end:o.jsx(_.Icon,{name:e.arrow_down})},onClick:()=>s(!0),size:"small",variant:"tertiary",children:t.filter_button}),o.jsx(lt.Total,{})]})]})};eu.displayName="PLPNavigation.Filters";const tu=({children:e,onSort:t,setOpenFilters:r,style:n,PDC_NAVIGATION:i,ICONS:s,searchParams:a,...c})=>{const l=x.useRef(null);return o.jsx(Dm,{onSort:t,setOpenFilters:r,children:o.jsx("div",{...c,className:Ze["pdc-navigation"],ref:l,style:{...n},children:o.jsx(lt.Content,{ICONS:s,PDC_NAVIGATION:i,searchParams:a,children:e})})})};tu.displayName="Root";const ru=({callback:e,selected:t,CONSTANTS:r,...n})=>o.jsx("div",{...n,className:Ze["pdc-navigation--selected"],children:o.jsx("div",{className:Ze["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(i=>i.key==="productclusterids"?null:o.jsx(lt.SelectedItem,{callback:e,facet:i,CONSTANTS:r},i.value)):o.jsx(o.Fragment,{})})});ru.displayName="PLPNavigation.Selected";const Ho=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Uo=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(n=>n.value===e))==null?void 0:r.color)??"#F2F2F2"},nu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(n=>n.key===e))==null?void 0:r.label},ou=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(n=>n.key===e))==null?void 0:r.order)??0},lo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],n=Ie(Number(r));return`${Ie(Number(t))} até ${n}`},Bm=({items:e})=>{const t=e.flatMap(i=>[i.range.from,i.range.to]),r=Math.min(...t.map(Math.abs)),n=Math.max(...t.map(Math.abs));return[r,n]},iu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Ho,createTagPrice:lo,getAbsoluteMinMax:Bm,getColor:Uo,getName:nu,getOrder:ou},Symbol.toStringTag,{value:"Module"})),Le={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},su=({columns:e=2,CONSTANTS:t,...r})=>{var s;const{filters:n,onToggleFacet:i}=ft();return o.jsxs("div",{...r,className:Le["filter--modal--body--content"],children:[Array.isArray(n.facets)&&n.facets.map(a=>o.jsx(Fe.Item,{columns:e,facet:a,onToggleFacet:i,CONSTANTS:t},a.key)),!((s=n.facets)!=null&&s.length)&&o.jsx(Fe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};su.displayName="Filter.Item.Content";const au=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return o.jsxs("div",{className:Le["filter--empty"],children:[o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h4",{children:e.title}),o.jsx("p",{children:e.subtitle})]}),o.jsx(_.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};au.displayName="Filter.Empty";const cu=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:n,...i})=>{const s=ou({key:t.key,PLP_FILTERS:n.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return o.jsx(Fe.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:n.PLP_FILTERS,PLP_FILTERS_COLORS:n.PLP_FILTERS_COLORS});if(t.key==="tamanho")return o.jsx(Fe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:n.PLP_SIZE_ORDER});if(t.key==="category-2")return o.jsx(Fe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:n.ICONS})}return t.__typename==="FacetRange"?o.jsx(Fe.Price,{facet:t}):o.jsx("p",{children:"Filter not support!!!"})};return o.jsx("div",{...i,className:Le["filter--item"],style:{order:s},children:o.jsxs(_.Accordion.Wrapper,{style:{width:"100%"},children:[o.jsx(_.Accordion.Header,{id:t.key,closeIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_up}),openIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_down}),children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h4",{className:"typography-style-body-sm",children:nu({key:t.key,PLP_FILTERS:n.PLP_FILTERS})})})})}),o.jsx(_.Accordion.Body,{children:a()})]})})};cu.displayName="Filter.Item";const Go={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},lu=({children:e,...t})=>o.jsx("div",{...t,className:Go["product-variation-list--list"],children:e});lu.displayName="ProductVariationList.List";const uu=({fill:e="#1352C7",src:t="",type:r="size",text:n,...i})=>{const{nextimage:s}=Re();return r==="size"?o.jsxs(_.ToggleSize.Wrapper,{...i,size:"large",variation:"ghost",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),o.jsx(_.ToggleSize.Text,{children:n})]}):o.jsxs(_.ToggleStyle.Wrapper,{...i,size:"small",title:"wrapper-texture",children:[o.jsx(_.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?o.jsx(_.ToggleStyle.Color,{background:e,title:"color"}):o.jsx(_.ToggleStyle.Texture,{title:"texture",children:o.jsx(s,{alt:n??"image",height:40,src:t,width:40})})]})};uu.displayName="ProductVariationList.Option";const du=({children:e,...t})=>o.jsx("div",{className:Go["product-variation-list"],...t,children:e});du.displayName="ProductVariationList.Root";const fu=({children:e,title:t,...r})=>o.jsxs("div",{...r,className:Go["product-variation-list--title"],children:[t?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.SectionWrapper,{children:o.jsx("p",{children:t})})}):o.jsx(o.Fragment,{}),e]});fu.displayName="ProductVariationList.Title";const Ye={List:lu,Option:uu,Title:fu,Root:du},pu=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:n,...i})=>o.jsx(Ye.Root,{...i,children:o.jsx(Ye.List,{children:Array.isArray(t)&&t.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,"data-color":Ho({key:s,PLP_FILTERS:r}),fill:Uo({value:c,PLP_FILTERS_COLORS:n}),onClick:()=>e({key:s,value:c}),type:"color"},`${s}-${c}`))})});pu.displayName="Filter.Item.Color";const mu=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:n,onToggleFacet:i}=ft(),[s,a]=(n==null?void 0:n.split(":").map(Number))??[0,100],[c,l]=((f=(u=r==null?void 0:r.find(({key:p})=>p==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[s,a];return o.jsx("div",{...t,className:Le["filter--item--price"],children:o.jsxs(_.Slider.SliderDual,{format:"price",initialValue:[c<s?s:c,l>a?a:l],min:s,max:a,type:"dual",step:1,onFinish:p=>{var d,m;p&&i({key:"price",value:`${(d=p.range)==null?void 0:d.min}:${(m=p.range)==null?void 0:m.max}`})},children:[o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-min-value":!0})})}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-max-value":!0})})})]})})};mu.displayName="Filter.Item.Price";const hu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...n})=>{const i=[...t].sort((s,a)=>{const c=r.indexOf(s.name),l=r.indexOf(a.name);return c-l});return o.jsx(Ye.Root,{...n,children:o.jsx(Ye.List,{children:Array.isArray(i)&&i.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,text:c,type:"size",onClick:()=>e({key:s,value:c})},c))})})};hu.displayName="Filter.Item.Sizes";const gu=({columns:e,facetKey:t,onToggleFacet:r,values:n,ICONS:i,...s})=>o.jsx("div",{...s,className:Le["filter--item--toggle"],children:o.jsx("div",{className:Le["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(n)&&n.map(a=>o.jsx(_.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:o.jsx(_.Icon,{name:i.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});gu.displayName="Filter.Item.Toggle";const yu=({...e})=>{const{isLoading:t}=ft();return o.jsx("div",{className:Le["filter--loading"],"data-active":t,...e,children:o.jsx(_.Spinner,{indicatorColor:"#000",background:"#222"})})};yu.displayName="Filter.Loading";const _u=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:n,ICONS:i}})=>{var f;const{deleteAllFacets:s,filters:a,isOpen:c,target:l,setIsOpen:u}=ft();return o.jsxs(_.Modal.Root,{className:_.helpers.classNameConcat(Le["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[o.jsxs(_.Modal.Header,{navigation:"top",children:[o.jsx(_.Modal.Controls,{navigation:"top",isMobile:r,children:o.jsx(_.Button,{"data-close":!0,iconNameStart:i.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),o.jsx(_.Modal.Title,{navigation:"top",title:n})]}),o.jsxs(_.Modal.Body,{style:{width:500},children:[o.jsx("div",{className:Le["filter--modal--body"],children:e}),o.jsx(Fe.Loading,{})]}),o.jsx(_.Modal.Footer,{children:o.jsxs("div",{className:Le["filter--modal--footer"],children:[o.jsx(_.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=a.facets)!=null&&f.length?"ver resultados":"fechar"}),o.jsx(_.Button,{"data-close":!0,onClick:()=>s(),variant:"tertiary",children:"limpar filtros"})]})})]})};_u.displayName="Filter.Modal";const vu=({children:e,className:t,isMobile:r,CONSTANTS:n,...i})=>o.jsx(Mc,{...i,PLP_FILTERS:n.PLP_FILTERS,children:o.jsx(Fe.Modal,{className:t,isMobile:r,CONSTANTS:n,children:e})});vu.displayName="Filter.Root";const bu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:n,onToggleFacet:i}=ft();return o.jsx("div",{className:Le["filter--selected"],children:o.jsx("div",{className:Le["filter--selected--content"],children:Array.isArray(n.selected)&&n.selected.map(({key:s,value:a})=>s==="productclusterids"?null:o.jsx(_.Tag,{title:s==="price"?lo({value:a}):a,adornment:{end:o.jsx(_.Icon,{name:e.close,size:"x-small"})},colorSquare:Uo({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>i({key:s,value:a}),squareShow:Ho({key:s,PLP_FILTERS:r}),size:"medium",variant:"primary",children:s==="price"?lo({value:a}):a},a))})})};bu.displayName="Filter.Selected";const Fe={Colors:pu,Content:su,Empty:au,Modal:_u,Item:cu,Root:vu,Loading:yu,Selected:bu,Price:mu,Sizes:hu,Toggle:gu},{checkedColor:Fm,createTagPrice:Hi,getColor:qm}=iu,xu=({callback:e,facet:t,CONSTANTS:r})=>o.jsx(_.Tag,{title:(t==null?void 0:t.key)==="price"?Hi({value:t.value}):t.value.toUpperCase(),adornment:{end:o.jsx(_.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:qm({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:Fm({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Hi({value:t.value}):t.value.toUpperCase()});xu.displayName="PLPNavigation.Selected.Item";const Cu=()=>o.jsx(_.TextStructure.Root,{children:o.jsx("p",{id:"pdc-navigation--total"})});Cu.displayName="PLPNavigation.Total";const lt={BreadCrumb:Ql,Content:Yl,Filters:eu,Root:tu,Selected:ru,SelectedItem:xu,Total:Cu},Wo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Su=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:i=8,position_grid:s,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%a===0?"initial":n||r<2?c:c.split("/").reverse().join("/"),[r,a,n]);return o.jsx("div",{...l,className:_.helpers.classNameConcat(Wo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:s,padding:i/2},children:t})};Su.displayName="ProductList.Banner";const ju=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:i})=>{const{router:s}=Re(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=h=>s.push(h??""),p=async h=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:i.TEXTURE_IMAGE}),priority:"low"});if(!y.ok)throw new Error("Erro ao buscar similares.");const g=await y.json();u(g)}catch(y){console.error(y)}},d=x.useCallback(h=>{!r||!h||(typeof p=="function"&&p(r),a.current=!0)},[r]),m=x.useCallback((h,y)=>{if(!h.isIntersecting){i.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=y.threshold&&!a.current){if(i.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},i.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const h={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{m(g,h)},h);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[m,t,e]),o.jsx(ye.Actions,{...l,callback:f,isKit:e,children:!e&&o.jsx(ye.SizeSelector,{setNotify:n})})};ju.displayName="ProductList.Card.Actions";const Au=({className:e,children:t,gap:r=32,item:n,isMobile:i,order:s,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:f,CONSTANTS:p,WishListToggle:d,...m})=>{const h=x.useRef(null),{availability:{status:y}}=n,g=x.useCallback((j,v)=>{var A;typeof u=="function"&&u((A=j.isVariantOf)==null?void 0:A.hasVariant,v)},[u]),b=n.name.substring(0,4).toLowerCase()==="kit ";return o.jsxs("div",{...m,className:_.helpers.classNameConcat(Wo["product-list--card"],e),"data-mobile":i,"data-order":s,ref:h,style:{...c&&{maxWidth:i?"50%":"25%"},order:s,padding:r/2},children:[o.jsxs(ye.Root,{item:n,isMobile:i,index:l,size:i?"small":"medium",order:s,outStock:!y,CONSTANTS:p,WishListToggle:d,children:[o.jsx(ye.Header,{product:n,tag:a==null?void 0:a.commercial}),o.jsx(ye.Media,{showVideo:f,hasPriority:!0}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:a==null?void 0:a.institucional}),o.jsx(ju,{productId:n.isVariantOf.productGroupID,parent:h,setNotify:g,isKit:b,CONSTANTS:p}),!b&&o.jsx(ye.OutStock,{callback:g})]}),o.jsx(ye.Wrapper,{type:"footer",children:y&&o.jsx(ye.BuyButton,{isKit:b})})]}),t]})};Au.displayName="ProductList.Card";const Ru=({children:e,className:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Wo["product-list"],t),children:e});Ru.displayName="ProductList.Grid";const zm={Banner:Su,Card:Au,Root:Ru,helpers:Cf},Hm="_footer__bottom_1o9af_2",Um="_footer__wrapper_1o9af_10",Gm="_footer__main_1o9af_39",Wm="_footer__legalInformation_1o9af_55",Vm="_footer__column_1o9af_77",Km="_footer__columnContent_1o9af_87",Xm="_footer__item_1o9af_91",Qm="_footer__itemLink_1o9af_107",Ym="_footer__columnTitle_1o9af_122",Zm="_footer__columnTitleIcon_1o9af_134",Jm="_footer__iconList_1o9af_147",eh="_footer__itemSmallText_1o9af_157",th="_payment_1o9af_168",rh="_footer__iconContainer_1o9af_173",nh="_footer__iconListSubHeader_1o9af_178",oh="_accordionWrapper_1o9af_200",ih="_accordionHeader_1o9af_204",sh="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Hm,footer__wrapper:Um,footer__main:Gm,footer__legalInformation:Wm,footer__column:Vm,footer__columnContent:Km,footer__item:Xm,footer__itemLink:Qm,footer__columnTitle:Ym,footer__columnTitleIcon:Zm,footer__iconList:Jm,footer__itemSmallText:eh,payment:th,footer__iconContainer:rh,footer__iconListSubHeader:nh,accordionWrapper:oh,accordionHeader:ih,accordionTextWrapper:sh,"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 Eu={},Vo={},At={};(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)}}})(At);var wu={};(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:i,blurWidth:s,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=s?s*40:n,p=a?a*40:i,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":l==="contain"?"xMidYMid":l==="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='"+u+"'/%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='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(wu);var cr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[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}})(cr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=At,r=wu,n=cr,i=["lazy","eager",void 0];function s(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(s(h)||a(h))}const l=new Map;let u;function f(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 p(h,y,g){let{deviceSizes:b,allSizes:j}=h;if(g){const A=/(^|\s)(1?\d?\d)vw/g,S=[];for(let P;P=A.exec(g);P)S.push(parseInt(P[2]));if(S.length){const P=Math.min(...S)*.01;return{widths:j.filter(C=>C>=b[0]*P),kind:"w"}}return{widths:j,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(A=>j.find(S=>S>=A)||j[j.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:j,quality:v,sizes:A,loader:S}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:C}=p(y,j,A),I=P.length-1;return{sizes:!A&&C==="w"?"100vw":A,srcSet:P.map((B,R)=>S({config:y,src:g,quality:v,width:B})+" "+(C==="w"?B:R+1)+C).join(", "),src:S({config:y,src:g,quality:v,width:P[I]})}}function m(h,y){let{src:g,sizes:b,unoptimized:j=!1,priority:v=!1,loading:A,className:S,quality:P,width:C,height:I,fill:B=!1,style:R,onLoad:O,onLoadingComplete:N,placeholder:$="empty",blurDataURL:E,fetchPriority:F,layout:H,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:M,blurComplete:D,defaultLoader:X}=y;let te,Z=w||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((je,Q)=>je-Q),ue=Z.deviceSizes.sort((je,Q)=>je-Q);te={...Z,allSizes:G,deviceSizes:ue}}let k=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in k;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 G=k;k=ue=>{const{config:je,...Q}=ue;return G(Q)}}if(H){H==="fill"&&(B=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},je=G[H];je&&(R={...R,...je});const Q=ue[H];Q&&!b&&(b=Q)}let Y="",ee=f(C),L=f(I),T,re;if(c(g)){const G=s(g)?g.default:g;if(!G.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(G));if(!G.height||!G.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(G));if(T=G.blurWidth,re=G.blurHeight,E=E||G.blurDataURL,Y=G.src,!B){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let se=!v&&(A==="lazy"||typeof A>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(j=!0,se=!1),te.unoptimized&&(j=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(j=!0),v&&(F="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!j)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)j=!0;else if(B){if(C)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(R!=null&&R.position&&R.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(R!=null&&R.width&&R.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(R!=null&&R.height&&R.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 "'+C+'".');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(!i.includes(A))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+A+'" should be one of '+i.map(String).join(",")+".");if(v&&A==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="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.'),$==="blur"&&!E){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
6
6
|
Possible solutions:
|
|
7
7
|
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
8
8
|
- Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
|
|
@@ -10,35 +10,35 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{con
|
|
|
10
10
|
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!j&&!J){const G=k({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.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
11
|
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:H,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
|
|
12
12
|
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const je of G.getEntries()){var ue;const Q=(je==null||(ue=je.element)==null?void 0:ue.src)||"",oe=l.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.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{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const le=Object.assign(B?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},M?{}:{color:"transparent"},
|
|
13
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const le=Object.assign(B?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},M?{}:{color:"transparent"},R),ae=!D&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:T,blurHeight:re,blurDataURL:E||"",objectFit:le.objectFit})+'")':'url("'+$+'")':null;let q=ae?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ae}:{};process.env.NODE_ENV==="development"&&q.backgroundImage&&$==="blur"&&E!=null&&E.startsWith("/")&&(q.backgroundImage='url("'+E+'")');const he=d({config:te,src:g,unoptimized:j,width:ee,quality:ce,sizes:b,loader:k});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:v,placeholder:$})}return{props:{...ne,loading:se?"lazy":A,fetchPriority:F,width:ee,height:L,decoding:"async",className:S,style:{...le,...q},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:j,priority:v,placeholder:$,fill:B}}}})(Vo);var uo={exports:{}},Ut={exports:{}},Fr={},Ui;function ah(){return Ui||(Ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const t=x,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,i=r?()=>{}:t.useEffect;function s(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),i(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Fr)),Fr}var qr={},Gi;function ch(){return Gi||(Gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Pe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(qr)),qr}var zr={},Wi;function Pu(){return Wi||(Wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Pe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(zr)),zr}var Hr={},Vi;function lh(){return Vi||(Vi=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:i=!1,hasQuery:s=!1}=r===void 0?{}:r;return n||i&&s}}(Hr)),Hr}var Ki;function uh(){return Ki||(Ki=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(j,v){for(var A in v)Object.defineProperty(j,A,{enumerable:!0,get:v[A]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=Pe,s=ct._(x),a=n._(ah()),c=ch(),l=Pu(),u=lh(),f=At;function p(j){j===void 0&&(j=!1);const v=[s.default.createElement("meta",{charSet:"utf-8"})];return j||v.push(s.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(j,v){return typeof v=="string"||typeof v=="number"?j:v.type===s.default.Fragment?j.concat(s.default.Children.toArray(v.props.children).reduce((A,S)=>typeof S=="string"||typeof S=="number"?A:A.concat(S),[])):j.concat(v)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const j=new Set,v=new Set,A=new Set,S={};return P=>{let C=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const B=P.key.slice(P.key.indexOf("$")+1);j.has(B)?C=!1:j.add(B)}switch(P.type){case"title":case"base":v.has(P.type)?C=!1:v.add(P.type);break;case"meta":for(let B=0,R=m.length;B<R;B++){const O=m[B];if(P.props.hasOwnProperty(O))if(O==="charSet")A.has(O)?C=!1:A.add(O);else{const N=P.props[O],$=S[O]||new Set;(O!=="name"||!I)&&$.has(N)?C=!1:($.add(N),S[O]=$)}}break}return C}}function y(j,v){const{inAmpMode:A}=v;return j.reduce(d,[]).reverse().concat(p(A).reverse()).filter(h()).reverse().map((S,P)=>{const C=S.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!A&&S.type==="link"&&S.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>S.props.href.startsWith(I))){const I={...S.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,s.default.cloneElement(S,I)}if(process.env.NODE_ENV==="development")if(S.type==="script"&&S.props.type!=="application/ld+json"){const I=S.props.src?'<script> tag with src="'+S.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
|
|
14
14
|
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else S.type==="link"&&S.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+S.props.href+`"). Use Document instead.
|
|
15
|
-
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return s.default.cloneElement(S,{key:x})})}function g(j){let{children:v}=j;const A=(0,s.useContext)(c.AmpStateContext),S=(0,s.useContext)(l.HeadManagerContext);return s.default.createElement(a.default,{reduceComponentsToState:y,headManager:S,inAmpMode:(0,u.isInAmpMode)(A)},v)}const b=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)}(zt,zt.exports)),zt.exports}var qr={},Gi;function Hm(){return Gi||(Gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Pe._(C),n=ir,i=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(i.displayName="ImageConfigContext")}(qr)),qr}var zr={},Hr={},Ur={exports:{}};const Um=Ff(Me.__viteBrowserExternal);var Gr={},Wr={},Vr,Wi;function nu(){return Wi||(Wi=1,Vr=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 i=42;t[r]=i;for(var s 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 c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==i||c.enumerable!==!0)return!1}return!0}),Vr}var Kr,Vi;function sr(){if(Vi)return Kr;Vi=1;var e=nu();return Kr=function(){return e()&&!!Symbol.toStringTag},Kr}var Xr,Ki;function ou(){return Ki||(Ki=1,Xr=Object),Xr}var Qr,Xi;function Gm(){return Xi||(Xi=1,Qr=Error),Qr}var Yr,Qi;function Wm(){return Qi||(Qi=1,Yr=EvalError),Yr}var Zr,Yi;function Vm(){return Yi||(Yi=1,Zr=RangeError),Zr}var Jr,Zi;function Km(){return Zi||(Zi=1,Jr=ReferenceError),Jr}var en,Ji;function iu(){return Ji||(Ji=1,en=SyntaxError),en}var tn,es;function jt(){return es||(es=1,tn=TypeError),tn}var rn,ts;function Xm(){return ts||(ts=1,rn=URIError),rn}var nn,rs;function Qm(){return rs||(rs=1,nn=Math.abs),nn}var on,ns;function Ym(){return ns||(ns=1,on=Math.floor),on}var sn,os;function Zm(){return os||(os=1,sn=Math.max),sn}var an,is;function Jm(){return is||(is=1,an=Math.min),an}var cn,ss;function eh(){return ss||(ss=1,cn=Math.pow),cn}var ln,as;function th(){return as||(as=1,ln=Math.round),ln}var un,cs;function rh(){return cs||(cs=1,un=Number.isNaN||function(t){return t!==t}),un}var dn,ls;function nh(){if(ls)return dn;ls=1;var e=rh();return dn=function(r){return e(r)||r===0?r:r<0?-1:1},dn}var fn,us;function oh(){return us||(us=1,fn=Object.getOwnPropertyDescriptor),fn}var pn,ds;function dt(){if(ds)return pn;ds=1;var e=oh();if(e)try{e([],"length")}catch{e=null}return pn=e,pn}var mn,fs;function ar(){if(fs)return mn;fs=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return mn=e,mn}var hn,ps;function ih(){if(ps)return hn;ps=1;var e=typeof Symbol<"u"&&Symbol,t=nu();return hn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},hn}var gn,ms;function su(){return ms||(ms=1,gn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gn}var yn,hs;function au(){if(hs)return yn;hs=1;var e=ou();return yn=e.getPrototypeOf||null,yn}var _n,gs;function sh(){if(gs)return _n;gs=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},s=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return _n=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=s(arguments,1),p,d=function(){if(this instanceof p){var b=u.apply(this,i(f,arguments));return Object(b)===b?b:this}return u.apply(l,i(f,arguments))},m=r(0,u.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},_n}var vn,ys;function At(){if(ys)return vn;ys=1;var e=sh();return vn=Function.prototype.bind||e,vn}var bn,_s;function Ho(){return _s||(_s=1,bn=Function.prototype.call),bn}var xn,vs;function Uo(){return vs||(vs=1,xn=Function.prototype.apply),xn}var Cn,bs;function ah(){return bs||(bs=1,Cn=typeof Reflect<"u"&&Reflect&&Reflect.apply),Cn}var Sn,xs;function cu(){if(xs)return Sn;xs=1;var e=At(),t=Uo(),r=Ho(),n=ah();return Sn=n||e.call(r,t),Sn}var jn,Cs;function Go(){if(Cs)return jn;Cs=1;var e=At(),t=jt(),r=Ho(),n=cu();return jn=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},jn}var An,Ss;function ch(){if(Ss)return An;Ss=1;var e=Go(),t=dt(),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__"),i=Object,s=i.getPrototypeOf;return An=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(c){return s(c==null?c:i(c))}:!1,An}var En,js;function Wo(){if(js)return En;js=1;var e=su(),t=au(),r=ch();return En=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,En}var Rn,As;function lu(){if(As)return Rn;As=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=At();return Rn=r.call(e,t),Rn}var wn,Es;function uu(){if(Es)return wn;Es=1;var e,t=ou(),r=Gm(),n=Wm(),i=Vm(),s=Km(),a=iu(),c=jt(),l=Xm(),u=Qm(),f=Ym(),p=Zm(),d=Jm(),m=eh(),h=th(),y=nh(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},j=dt(),v=ar(),A=function(){throw new c},S=j?function(){try{return arguments.callee,A}catch{try{return j(arguments,"callee").get}catch{return A}}}():A,P=ih()(),x=Wo(),I=au(),B=su(),E=Uo(),O=Ho(),N={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%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%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&x?x(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":$,"%TypeError%":c,"%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%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":E,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":B};if(x)try{null.error}catch(J){var F=x(x(J));R["%Error.prototype%"]=F}var H=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var T=J("%AsyncGenerator%");T&&x&&(ee=x(T.prototype))}return R[Y]=ee,ee},U={__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"]},K=At(),W=lu(),z=K.call(O,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),w=K.call(O,String.prototype.replace),M=K.call(O,String.prototype.slice),D=K.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=M(Y,0,1),L=M(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var T=[];return w(Y,X,function(re,se,ce,le){T[T.length]=ce?w(le,te,"$1"):se||re}),T},k=function(Y,ee){var L=Y,T;if(W(U,L)&&(T=U[L],L="%"+T[0]+"%"),W(R,L)){var re=R[L];if(re===N&&(re=H(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:T,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return wn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),T=L.length>0?L[0]:"",re=k("%"+T+"%",ee),se=re.name,ce=re.value,le=!1,ae=re.alias;ae&&(T=ae[0],ne(L,z([0,1],ae)));for(var q=1,he=!0;q<L.length;q+=1){var ie=L[q],me=M(ie,0,1),G=M(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),T+="."+ie,se="%"+T+"%",W(R,se))ce=R[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(j&&q+1>=L.length){var ue=j(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(R[se]=ce)}}return ce},wn}var Pn,Rs;function Et(){if(Rs)return Pn;Rs=1;var e=uu(),t=Go(),r=t([e("%String.prototype.indexOf%")]);return Pn=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Pn}var In,ws;function lh(){if(ws)return In;ws=1;var e=sr()(),t=Et(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},i=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},s=function(){return n(arguments)}();return n.isLegacyArguments=i,In=s?n:i,In}var Nn,Ps;function uh(){if(Ps)return Nn;Ps=1;var e=Et(),t=sr()(),r=lu(),n=dt(),i;if(t){var s=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),i=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{s(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return Nn=i,Nn}var On,Is;function dh(){if(Is)return On;Is=1;var e=Et(),t=uh(),r=e("RegExp.prototype.exec"),n=jt();return On=function(s){if(!t(s))throw new n("`regex` must be a RegExp");return function(c){return r(s,c)!==null}},On}var Tn,Ns;function fh(){if(Ns)return Tn;Ns=1;var e=Et(),t=dh(),r=t(/^\s*(?:function)?\*/),n=sr()(),i=Wo(),s=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Tn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=s(f);return p==="[object GeneratorFunction]"}if(!i)return!1;if(typeof l>"u"){var d=c();l=d?i(d):!1}return i(f)===l},Tn}var Mn,Os;function ph(){if(Os)return Mn;Os=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(j){j!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(v){try{var A=e.call(v);return i.test(A)}catch{return!1}},a=function(v){try{return s(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var A=c.call(v);return(A===p||A===d||A===m||A===l)&&v("")==null}catch{}return!1})}return Mn=t?function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(A){if(A!==n)return!1}return!s(v)&&a(v)}:function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(h)return a(v);if(s(v))return!1;var A=c.call(v);return A!==u&&A!==f&&!/^\[object HTML/.test(A)?!1:a(v)},Mn}var kn,Ts;function mh(){if(Ts)return kn;Ts=1;var e=ph(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},i=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},s=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return kn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?i(l,u,p):s(l,u,p)},kn}var Ln,Ms;function hh(){return Ms||(Ms=1,Ln=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ln}var Dn,ks;function gh(){if(ks)return Dn;ks=1;var e=hh(),t=typeof globalThis>"u"?Vc:globalThis;return Dn=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Dn}var $n={exports:{}},Bn,Ls;function yh(){if(Ls)return Bn;Ls=1;var e=ar(),t=iu(),r=jt(),n=dt();return Bn=function(s,a,c){if(!s||typeof s!="object"&&typeof s!="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 l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(s,a);if(e)e(s,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)s[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Bn}var Fn,Ds;function _h(){if(Ds)return Fn;Ds=1;var e=ar(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Fn=t,Fn}var qn,$s;function vh(){if($s)return qn;$s=1;var e=uu(),t=yh(),r=_h()(),n=dt(),i=jt(),s=e("%Math.floor%");return qn=function(c,l){if(typeof c!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},qn}var zn,Bs;function bh(){if(Bs)return zn;Bs=1;var e=At(),t=Uo(),r=cu();return zn=function(){return r(e,t,arguments)},zn}var Fs;function xh(){return Fs||(Fs=1,function(e){var t=vh(),r=ar(),n=Go(),i=bh();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}($n)),$n.exports}var Hn,qs;function du(){if(qs)return Hn;qs=1;var e=mh(),t=gh(),r=xh(),n=Et(),i=dt(),s=Wo(),a=n("Object.prototype.toString"),c=sr()(),l=typeof globalThis>"u"?Vc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var j=0;j<g.length;j+=1)if(g[j]===b)return j;return-1},d={__proto__:null};c&&i&&s?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&s){var b=s(g),j=i(b,Symbol.toStringTag);if(!j&&b){var v=s(b);j=i(v,Symbol.toStringTag)}d["$"+y]=r(j.get)}}):e(u,function(y){var g=new l[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var m=function(g){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(g)===v&&(b=f(v,1))}catch{}}),b},h=function(g){var b=!1;return e(d,function(j,v){if(!b)try{j(g),b=f(v,1)}catch{}}),b};return Hn=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(a(g),8,-1);return p(u,b)>-1?b:b!=="Object"?!1:h(g)}return i?m(g):null},Hn}var Un,zs;function Ch(){if(zs)return Un;zs=1;var e=du();return Un=function(r){return!!e(r)},Un}var Hs;function Sh(){return Hs||(Hs=1,function(e){var t=lh(),r=fh(),n=du(),i=Ch();function s(q){return q.call.bind(q)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=s(Object.prototype.toString),u=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function h(q,he){if(typeof q!="object")return!1;try{return he(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function y(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}e.isPromise=y;function g(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):i(q)||M(q)}e.isArrayBufferView=g;function b(q){return n(q)==="Uint8Array"}e.isUint8Array=b;function j(q){return n(q)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(q){return n(q)==="Uint16Array"}e.isUint16Array=v;function A(q){return n(q)==="Uint32Array"}e.isUint32Array=A;function S(q){return n(q)==="Int8Array"}e.isInt8Array=S;function P(q){return n(q)==="Int16Array"}e.isInt16Array=P;function x(q){return n(q)==="Int32Array"}e.isInt32Array=x;function I(q){return n(q)==="Float32Array"}e.isFloat32Array=I;function B(q){return n(q)==="Float64Array"}e.isFloat64Array=B;function E(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=E;function O(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=O;function N(q){return l(q)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function $(q){return typeof Map>"u"?!1:N.working?N(q):q instanceof Map}e.isMap=$;function R(q){return l(q)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function F(q){return typeof Set>"u"?!1:R.working?R(q):q instanceof Set}e.isSet=F;function H(q){return l(q)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function U(q){return typeof WeakMap>"u"?!1:H.working?H(q):q instanceof WeakMap}e.isWeakMap=U;function K(q){return l(q)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(q){return K(q)}e.isWeakSet=W;function z(q){return l(q)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(q){return typeof ArrayBuffer>"u"?!1:z.working?z(q):q instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(q){return l(q)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function M(q){return typeof DataView>"u"?!1:w.working?w(q):q instanceof DataView}e.isDataView=M;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(q){return l(q)==="[object SharedArrayBuffer]"}function te(q){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(q):q instanceof D)}e.isSharedArrayBuffer=te;function Z(q){return l(q)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(q){return l(q)==="[object Map Iterator]"}e.isMapIterator=k;function J(q){return l(q)==="[object Set Iterator]"}e.isSetIterator=J;function Y(q){return l(q)==="[object Generator]"}e.isGeneratorObject=Y;function ee(q){return l(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(q){return h(q,u)}e.isNumberObject=L;function T(q){return h(q,f)}e.isStringObject=T;function re(q){return h(q,p)}e.isBooleanObject=re;function se(q){return a&&h(q,d)}e.isBigIntObject=se;function ce(q){return c&&h(q,m)}e.isSymbolObject=ce;function le(q){return L(q)||T(q)||re(q)||se(q)||ce(q)}e.isBoxedPrimitive=le;function ae(q){return typeof Uint8Array<"u"&&(ne(q)||te(q))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(e,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})}(Wr)),Wr}var Gn,Us;function jh(){return Us||(Us=1,Gn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Gn}var Ht={exports:{}},Gs;function Ah(){return Gs||(Gs=1,typeof Object.create=="function"?Ht.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ht.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Ht.exports}var Ws;function Eh(){return Ws||(Ws=1,function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var D=Object.keys(M),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(M,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!S(w)){for(var M=[],D=0;D<arguments.length;D++)M.push(a(arguments[D]));return M.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),k=X[D];D<te;k=X[++D])j(k)||!B(k)?Z+=" "+k:Z+=" "+a(k);return Z},e.deprecate=function(w,M){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,M).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),D=!0}return w.apply(this,arguments)}return X};var n={},i=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!n[w])if(i.test(w)){var M=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,M,D)}}else n[w]=function(){};return n[w]};function a(w,M){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(M)?D.showHidden=M:M&&e._extend(D,M),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=c),f(D,w,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 c(w,M){var D=a.styles[M];return D?"\x1B["+a.colors[D][0]+"m"+w+"\x1B["+a.colors[D][1]+"m":w}function l(w,M){return w}function u(w){var M={};return w.forEach(function(D,X){M[D]=!0}),M}function f(w,M,D){if(w.customInspect&&M&&N(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var X=M.inspect(D,w);return S(X)||(X=f(w,X,D)),X}var te=p(w,M);if(te)return te;var Z=Object.keys(M),k=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(M)),O(M)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(M);if(Z.length===0){if(N(M)){var J=M.name?": "+M.name:"";return w.stylize("[Function"+J+"]","special")}if(I(M))return w.stylize(RegExp.prototype.toString.call(M),"regexp");if(E(M))return w.stylize(Date.prototype.toString.call(M),"date");if(O(M))return d(M)}var Y="",ee=!1,L=["{","}"];if(g(M)&&(ee=!0,L=["[","]"]),N(M)){var T=M.name?": "+M.name:"";Y=" [Function"+T+"]"}if(I(M)&&(Y=" "+RegExp.prototype.toString.call(M)),E(M)&&(Y=" "+Date.prototype.toUTCString.call(M)),O(M)&&(Y=" "+d(M)),Z.length===0&&(!ee||M.length==0))return L[0]+Y+L[1];if(D<0)return I(M)?w.stylize(RegExp.prototype.toString.call(M),"regexp"):w.stylize("[Object]","special");w.seen.push(M);var re;return ee?re=m(w,M,D,k,Z):re=Z.map(function(se){return h(w,M,D,k,se,ee)}),w.seen.pop(),y(re,Y,L)}function p(w,M){if(x(M))return w.stylize("undefined","undefined");if(S(M)){var D="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(A(M))return w.stylize(""+M,"number");if(b(M))return w.stylize(""+M,"boolean");if(j(M))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,M,D,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(h(w,M,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,M,D,X,Y,!0))}),Z}function h(w,M,D,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(M,te)||{value:M[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(j(D)?J=f(w,Y.value,null):J=f(w,Y.value,D-1),J.indexOf(`
|
|
15
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return s.default.cloneElement(S,{key:C})})}function g(j){let{children:v}=j;const A=(0,s.useContext)(c.AmpStateContext),S=(0,s.useContext)(l.HeadManagerContext);return s.default.createElement(a.default,{reduceComponentsToState:y,headManager:S,inAmpMode:(0,u.isInAmpMode)(A)},v)}const b=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)}(Ut,Ut.exports)),Ut.exports}var Ur={},Xi;function dh(){return Xi||(Xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Pe._(x),n=cr,i=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(i.displayName="ImageConfigContext")}(Ur)),Ur}var Gr={},Wr={},Vr={exports:{}};const fh=rp(Me.__viteBrowserExternal);var Kr={},Xr={},Qr,Qi;function Iu(){return Qi||(Qi=1,Qr=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 i=42;t[r]=i;for(var s 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 c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==i||c.enumerable!==!0)return!1}return!0}),Qr}var Yr,Yi;function lr(){if(Yi)return Yr;Yi=1;var e=Iu();return Yr=function(){return e()&&!!Symbol.toStringTag},Yr}var Zr,Zi;function Nu(){return Zi||(Zi=1,Zr=Object),Zr}var Jr,Ji;function ph(){return Ji||(Ji=1,Jr=Error),Jr}var en,es;function mh(){return es||(es=1,en=EvalError),en}var tn,ts;function hh(){return ts||(ts=1,tn=RangeError),tn}var rn,rs;function gh(){return rs||(rs=1,rn=ReferenceError),rn}var nn,ns;function Ou(){return ns||(ns=1,nn=SyntaxError),nn}var on,os;function Rt(){return os||(os=1,on=TypeError),on}var sn,is;function yh(){return is||(is=1,sn=URIError),sn}var an,ss;function _h(){return ss||(ss=1,an=Math.abs),an}var cn,as;function vh(){return as||(as=1,cn=Math.floor),cn}var ln,cs;function bh(){return cs||(cs=1,ln=Math.max),ln}var un,ls;function xh(){return ls||(ls=1,un=Math.min),un}var dn,us;function Ch(){return us||(us=1,dn=Math.pow),dn}var fn,ds;function Sh(){return ds||(ds=1,fn=Math.round),fn}var pn,fs;function jh(){return fs||(fs=1,pn=Number.isNaN||function(t){return t!==t}),pn}var mn,ps;function Ah(){if(ps)return mn;ps=1;var e=jh();return mn=function(r){return e(r)||r===0?r:r<0?-1:1},mn}var hn,ms;function Rh(){return ms||(ms=1,hn=Object.getOwnPropertyDescriptor),hn}var gn,hs;function pt(){if(hs)return gn;hs=1;var e=Rh();if(e)try{e([],"length")}catch{e=null}return gn=e,gn}var yn,gs;function ur(){if(gs)return yn;gs=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return yn=e,yn}var _n,ys;function Eh(){if(ys)return _n;ys=1;var e=typeof Symbol<"u"&&Symbol,t=Iu();return _n=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},_n}var vn,_s;function Tu(){return _s||(_s=1,vn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),vn}var bn,vs;function Mu(){if(vs)return bn;vs=1;var e=Nu();return bn=e.getPrototypeOf||null,bn}var xn,bs;function wh(){if(bs)return xn;bs=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},s=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return xn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=s(arguments,1),p,d=function(){if(this instanceof p){var b=u.apply(this,i(f,arguments));return Object(b)===b?b:this}return u.apply(l,i(f,arguments))},m=r(0,u.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},xn}var Cn,xs;function Et(){if(xs)return Cn;xs=1;var e=wh();return Cn=Function.prototype.bind||e,Cn}var Sn,Cs;function Ko(){return Cs||(Cs=1,Sn=Function.prototype.call),Sn}var jn,Ss;function Xo(){return Ss||(Ss=1,jn=Function.prototype.apply),jn}var An,js;function Ph(){return js||(js=1,An=typeof Reflect<"u"&&Reflect&&Reflect.apply),An}var Rn,As;function ku(){if(As)return Rn;As=1;var e=Et(),t=Xo(),r=Ko(),n=Ph();return Rn=n||e.call(r,t),Rn}var En,Rs;function Qo(){if(Rs)return En;Rs=1;var e=Et(),t=Rt(),r=Ko(),n=ku();return En=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},En}var wn,Es;function Ih(){if(Es)return wn;Es=1;var e=Qo(),t=pt(),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__"),i=Object,s=i.getPrototypeOf;return wn=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(c){return s(c==null?c:i(c))}:!1,wn}var Pn,ws;function Yo(){if(ws)return Pn;ws=1;var e=Tu(),t=Mu(),r=Ih();return Pn=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Pn}var In,Ps;function Lu(){if(Ps)return In;Ps=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Et();return In=r.call(e,t),In}var Nn,Is;function Du(){if(Is)return Nn;Is=1;var e,t=Nu(),r=ph(),n=mh(),i=hh(),s=gh(),a=Ou(),c=Rt(),l=yh(),u=_h(),f=vh(),p=bh(),d=xh(),m=Ch(),h=Sh(),y=Ah(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},j=pt(),v=ur(),A=function(){throw new c},S=j?function(){try{return arguments.callee,A}catch{try{return j(arguments,"callee").get}catch{return A}}}():A,P=Eh()(),C=Yo(),I=Mu(),B=Tu(),R=Xo(),O=Ko(),N={},$=typeof Uint8Array>"u"||!C?e:C(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%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%":N,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&C?C(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":$,"%TypeError%":c,"%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%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":R,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":B};if(C)try{null.error}catch(J){var F=C(C(J));E["%Error.prototype%"]=F}var H=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var T=J("%AsyncGenerator%");T&&C&&(ee=C(T.prototype))}return E[Y]=ee,ee},U={__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"]},K=Et(),W=Lu(),z=K.call(O,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),w=K.call(O,String.prototype.replace),M=K.call(O,String.prototype.slice),D=K.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=M(Y,0,1),L=M(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var T=[];return w(Y,X,function(re,se,ce,le){T[T.length]=ce?w(le,te,"$1"):se||re}),T},k=function(Y,ee){var L=Y,T;if(W(U,L)&&(T=U[L],L="%"+T[0]+"%"),W(E,L)){var re=E[L];if(re===N&&(re=H(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:T,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return Nn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),T=L.length>0?L[0]:"",re=k("%"+T+"%",ee),se=re.name,ce=re.value,le=!1,ae=re.alias;ae&&(T=ae[0],ne(L,z([0,1],ae)));for(var q=1,he=!0;q<L.length;q+=1){var ie=L[q],me=M(ie,0,1),G=M(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),T+="."+ie,se="%"+T+"%",W(E,se))ce=E[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(j&&q+1>=L.length){var ue=j(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(E[se]=ce)}}return ce},Nn}var On,Ns;function wt(){if(Ns)return On;Ns=1;var e=Du(),t=Qo(),r=t([e("%String.prototype.indexOf%")]);return On=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},On}var Tn,Os;function Nh(){if(Os)return Tn;Os=1;var e=lr()(),t=wt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},i=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},s=function(){return n(arguments)}();return n.isLegacyArguments=i,Tn=s?n:i,Tn}var Mn,Ts;function Oh(){if(Ts)return Mn;Ts=1;var e=wt(),t=lr()(),r=Lu(),n=pt(),i;if(t){var s=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),i=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{s(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return Mn=i,Mn}var kn,Ms;function Th(){if(Ms)return kn;Ms=1;var e=wt(),t=Oh(),r=e("RegExp.prototype.exec"),n=Rt();return kn=function(s){if(!t(s))throw new n("`regex` must be a RegExp");return function(c){return r(s,c)!==null}},kn}var Ln,ks;function Mh(){if(ks)return Ln;ks=1;var e=wt(),t=Th(),r=t(/^\s*(?:function)?\*/),n=lr()(),i=Yo(),s=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Ln=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=s(f);return p==="[object GeneratorFunction]"}if(!i)return!1;if(typeof l>"u"){var d=c();l=d?i(d):!1}return i(f)===l},Ln}var Dn,Ls;function kh(){if(Ls)return Dn;Ls=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(j){j!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(v){try{var A=e.call(v);return i.test(A)}catch{return!1}},a=function(v){try{return s(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(v){if((y||!v)&&(typeof v>"u"||typeof v=="object"))try{var A=c.call(v);return(A===p||A===d||A===m||A===l)&&v("")==null}catch{}return!1})}return Dn=t?function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(A){if(A!==n)return!1}return!s(v)&&a(v)}:function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(h)return a(v);if(s(v))return!1;var A=c.call(v);return A!==u&&A!==f&&!/^\[object HTML/.test(A)?!1:a(v)},Dn}var $n,Ds;function Lh(){if(Ds)return $n;Ds=1;var e=kh(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},i=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},s=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return $n=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?i(l,u,p):s(l,u,p)},$n}var Bn,$s;function Dh(){return $s||($s=1,Bn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Bn}var Fn,Bs;function $h(){if(Bs)return Fn;Bs=1;var e=Dh(),t=typeof globalThis>"u"?Jc:globalThis;return Fn=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Fn}var qn={exports:{}},zn,Fs;function Bh(){if(Fs)return zn;Fs=1;var e=ur(),t=Ou(),r=Rt(),n=pt();return zn=function(s,a,c){if(!s||typeof s!="object"&&typeof s!="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 l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(s,a);if(e)e(s,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)s[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},zn}var Hn,qs;function Fh(){if(qs)return Hn;qs=1;var e=ur(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Hn=t,Hn}var Un,zs;function qh(){if(zs)return Un;zs=1;var e=Du(),t=Bh(),r=Fh()(),n=pt(),i=Rt(),s=e("%Math.floor%");return Un=function(c,l){if(typeof c!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Un}var Gn,Hs;function zh(){if(Hs)return Gn;Hs=1;var e=Et(),t=Xo(),r=ku();return Gn=function(){return r(e,t,arguments)},Gn}var Us;function Hh(){return Us||(Us=1,function(e){var t=qh(),r=ur(),n=Qo(),i=zh();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(qn)),qn.exports}var Wn,Gs;function $u(){if(Gs)return Wn;Gs=1;var e=Lh(),t=$h(),r=Hh(),n=wt(),i=pt(),s=Yo(),a=n("Object.prototype.toString"),c=lr()(),l=typeof globalThis>"u"?Jc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var j=0;j<g.length;j+=1)if(g[j]===b)return j;return-1},d={__proto__:null};c&&i&&s?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&s){var b=s(g),j=i(b,Symbol.toStringTag);if(!j&&b){var v=s(b);j=i(v,Symbol.toStringTag)}d["$"+y]=r(j.get)}}):e(u,function(y){var g=new l[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var m=function(g){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(g)===v&&(b=f(v,1))}catch{}}),b},h=function(g){var b=!1;return e(d,function(j,v){if(!b)try{j(g),b=f(v,1)}catch{}}),b};return Wn=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(a(g),8,-1);return p(u,b)>-1?b:b!=="Object"?!1:h(g)}return i?m(g):null},Wn}var Vn,Ws;function Uh(){if(Ws)return Vn;Ws=1;var e=$u();return Vn=function(r){return!!e(r)},Vn}var Vs;function Gh(){return Vs||(Vs=1,function(e){var t=Nh(),r=Mh(),n=$u(),i=Uh();function s(q){return q.call.bind(q)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=s(Object.prototype.toString),u=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function h(q,he){if(typeof q!="object")return!1;try{return he(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function y(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}e.isPromise=y;function g(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):i(q)||M(q)}e.isArrayBufferView=g;function b(q){return n(q)==="Uint8Array"}e.isUint8Array=b;function j(q){return n(q)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(q){return n(q)==="Uint16Array"}e.isUint16Array=v;function A(q){return n(q)==="Uint32Array"}e.isUint32Array=A;function S(q){return n(q)==="Int8Array"}e.isInt8Array=S;function P(q){return n(q)==="Int16Array"}e.isInt16Array=P;function C(q){return n(q)==="Int32Array"}e.isInt32Array=C;function I(q){return n(q)==="Float32Array"}e.isFloat32Array=I;function B(q){return n(q)==="Float64Array"}e.isFloat64Array=B;function R(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=R;function O(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=O;function N(q){return l(q)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function $(q){return typeof Map>"u"?!1:N.working?N(q):q instanceof Map}e.isMap=$;function E(q){return l(q)==="[object Set]"}E.working=typeof Set<"u"&&E(new Set);function F(q){return typeof Set>"u"?!1:E.working?E(q):q instanceof Set}e.isSet=F;function H(q){return l(q)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function U(q){return typeof WeakMap>"u"?!1:H.working?H(q):q instanceof WeakMap}e.isWeakMap=U;function K(q){return l(q)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(q){return K(q)}e.isWeakSet=W;function z(q){return l(q)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(q){return typeof ArrayBuffer>"u"?!1:z.working?z(q):q instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(q){return l(q)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function M(q){return typeof DataView>"u"?!1:w.working?w(q):q instanceof DataView}e.isDataView=M;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(q){return l(q)==="[object SharedArrayBuffer]"}function te(q){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(q):q instanceof D)}e.isSharedArrayBuffer=te;function Z(q){return l(q)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function k(q){return l(q)==="[object Map Iterator]"}e.isMapIterator=k;function J(q){return l(q)==="[object Set Iterator]"}e.isSetIterator=J;function Y(q){return l(q)==="[object Generator]"}e.isGeneratorObject=Y;function ee(q){return l(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(q){return h(q,u)}e.isNumberObject=L;function T(q){return h(q,f)}e.isStringObject=T;function re(q){return h(q,p)}e.isBooleanObject=re;function se(q){return a&&h(q,d)}e.isBigIntObject=se;function ce(q){return c&&h(q,m)}e.isSymbolObject=ce;function le(q){return L(q)||T(q)||re(q)||se(q)||ce(q)}e.isBoxedPrimitive=le;function ae(q){return typeof Uint8Array<"u"&&(ne(q)||te(q))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(e,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})}(Xr)),Xr}var Kn,Ks;function Wh(){return Ks||(Ks=1,Kn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Kn}var Gt={exports:{}},Xs;function Vh(){return Xs||(Xs=1,typeof Object.create=="function"?Gt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Gt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Gt.exports}var Qs;function Kh(){return Qs||(Qs=1,function(e){var t=Object.getOwnPropertyDescriptors||function(M){for(var D=Object.keys(M),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(M,D[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!S(w)){for(var M=[],D=0;D<arguments.length;D++)M.push(a(arguments[D]));return M.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),k=X[D];D<te;k=X[++D])j(k)||!B(k)?Z+=" "+k:Z+=" "+a(k);return Z},e.deprecate=function(w,M){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,M).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),D=!0}return w.apply(this,arguments)}return X};var n={},i=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!n[w])if(i.test(w)){var M=process.pid;n[w]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",w,M,D)}}else n[w]=function(){};return n[w]};function a(w,M){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(M)?D.showHidden=M:M&&e._extend(D,M),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,w,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 c(w,M){var D=a.styles[M];return D?"\x1B["+a.colors[D][0]+"m"+w+"\x1B["+a.colors[D][1]+"m":w}function l(w,M){return w}function u(w){var M={};return w.forEach(function(D,X){M[D]=!0}),M}function f(w,M,D){if(w.customInspect&&M&&N(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var X=M.inspect(D,w);return S(X)||(X=f(w,X,D)),X}var te=p(w,M);if(te)return te;var Z=Object.keys(M),k=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(M)),O(M)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(M);if(Z.length===0){if(N(M)){var J=M.name?": "+M.name:"";return w.stylize("[Function"+J+"]","special")}if(I(M))return w.stylize(RegExp.prototype.toString.call(M),"regexp");if(R(M))return w.stylize(Date.prototype.toString.call(M),"date");if(O(M))return d(M)}var Y="",ee=!1,L=["{","}"];if(g(M)&&(ee=!0,L=["[","]"]),N(M)){var T=M.name?": "+M.name:"";Y=" [Function"+T+"]"}if(I(M)&&(Y=" "+RegExp.prototype.toString.call(M)),R(M)&&(Y=" "+Date.prototype.toUTCString.call(M)),O(M)&&(Y=" "+d(M)),Z.length===0&&(!ee||M.length==0))return L[0]+Y+L[1];if(D<0)return I(M)?w.stylize(RegExp.prototype.toString.call(M),"regexp"):w.stylize("[Object]","special");w.seen.push(M);var re;return ee?re=m(w,M,D,k,Z):re=Z.map(function(se){return h(w,M,D,k,se,ee)}),w.seen.pop(),y(re,Y,L)}function p(w,M){if(C(M))return w.stylize("undefined","undefined");if(S(M)){var D="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(D,"string")}if(A(M))return w.stylize(""+M,"number");if(b(M))return w.stylize(""+M,"boolean");if(j(M))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function m(w,M,D,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(h(w,M,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,M,D,X,Y,!0))}),Z}function h(w,M,D,X,te,Z){var k,J,Y;if(Y=Object.getOwnPropertyDescriptor(M,te)||{value:M[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(k="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(j(D)?J=f(w,Y.value,null):J=f(w,Y.value,D-1),J.indexOf(`
|
|
16
16
|
`)>-1&&(Z?J=J.split(`
|
|
17
17
|
`).map(function(ee){return" "+ee}).join(`
|
|
18
18
|
`).slice(2):J=`
|
|
19
19
|
`+J.split(`
|
|
20
20
|
`).map(function(ee){return" "+ee}).join(`
|
|
21
|
-
`))):J=w.stylize("[Circular]","special")),
|
|
21
|
+
`))):J=w.stylize("[Circular]","special")),C(k)){if(Z&&te.match(/^\d+$/))return J;k=JSON.stringify(""+te),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=w.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=w.stylize(k,"string"))}return k+": "+J}function y(w,M,D){var X=w.reduce(function(te,Z){return Z.indexOf(`
|
|
22
22
|
`)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(M===""?"":M+`
|
|
23
23
|
`)+" "+w.join(`,
|
|
24
|
-
`)+" "+D[1]:D[0]+M+" "+w.join(", ")+" "+D[1]}e.types=
|
|
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:(i,s,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,m,h));else for(let b of m)h===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,h):g+b);return u.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,b={})=>{g.queue=[];let j=b,v=b.queue;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,v=j.queue;if(g.invalid||g.dollar){v.push(f(v.pop(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let
|
|
24
|
+
`)+" "+D[1]:D[0]+M+" "+w.join(", ")+" "+D[1]}e.types=Gh();function g(w){return Array.isArray(w)}e.isArray=g;function b(w){return typeof w=="boolean"}e.isBoolean=b;function j(w){return w===null}e.isNull=j;function v(w){return w==null}e.isNullOrUndefined=v;function A(w){return typeof w=="number"}e.isNumber=A;function S(w){return typeof w=="string"}e.isString=S;function P(w){return typeof w=="symbol"}e.isSymbol=P;function C(w){return w===void 0}e.isUndefined=C;function I(w){return B(w)&&E(w)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function B(w){return typeof w=="object"&&w!==null}e.isObject=B;function R(w){return B(w)&&E(w)==="[object Date]"}e.isDate=R,e.types.isDate=R;function O(w){return B(w)&&(E(w)==="[object Error]"||w instanceof Error)}e.isError=O,e.types.isNativeError=O;function N(w){return typeof w=="function"}e.isFunction=N;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=Wh();function E(w){return Object.prototype.toString.call(w)}function F(w){return w<10?"0"+w.toString(10):w.toString(10)}var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,M=[F(w.getHours()),F(w.getMinutes()),F(w.getSeconds())].join(":");return[w.getDate(),H[w.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Vh(),e._extend=function(w,M){if(!M||!B(M))return w;for(var D=Object.keys(M),X=D.length;X--;)w[D[X]]=M[D[X]];return w};function K(w,M){return Object.prototype.hasOwnProperty.call(w,M)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&M[W]){var D=M[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),k=[],J=0;J<arguments.length;J++)k.push(arguments[J]);k.push(function(Y,ee){Y?te(Y):X(ee)});try{M.apply(this,k)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(M)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(M))},e.promisify.custom=W;function z(w,M){if(!w){var D=new Error("Promise was rejected with a falsy value");D.reason=w,w=D}return M(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,k=function(){return te.apply(Z,arguments)};w.apply(this,D).then(function(J){process.nextTick(k.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,k))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(w)),Object.defineProperties(M,t(w)),M}e.callbackify=ne}(Kr)),Kr}var Ys;function Xh(){return Ys||(Ys=1,(()=>{var e={333:(i,s,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),l(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=u(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),i.exports=p},179:(i,s,a)=>{const c=a(783),l=a(617),u=(f,p={})=>{let d=(m,h={})=>{let y=l.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,b=y===!0||g===!0,j=p.escapeInvalid===!0?"\\":"",v="";if(m.isOpen===!0||m.isClose===!0)return j+m.value;if(m.type==="open")return b?j+m.value:"(";if(m.type==="close")return b?j+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":b?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let A=l.reduce(m.nodes),S=c(...A,{...p,wrap:!1,toRegex:!0});if(S.length!==0)return A.length>1&&S.length>1?`(${S})`:S}if(m.nodes)for(let A of m.nodes)v+=d(A,m);return v};return d(f)};i.exports=u},457:i=>{i.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:(i,s,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,m,h));else for(let b of m)h===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,h):g+b);return u.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,b={})=>{g.queue=[];let j=b,v=b.queue;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,v=j.queue;if(g.invalid||g.dollar){v.push(f(v.pop(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){v.push(f(v.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let C=u.reduce(g.nodes);if(u.exceedsLimit(...C,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...C,m);I.length===0&&(I=l(g,m)),v.push(f(v.pop(),I)),g.nodes=[];return}let A=u.encloseBrace(g),S=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,S=P.queue;for(let C=0;C<g.nodes.length;C++){let I=g.nodes[C];if(I.type==="comma"&&g.type==="brace"){C===1&&S.push(""),S.push("");continue}if(I.type==="close"){v.push(f(v.pop(),S,A));continue}if(I.value&&I.type!=="open"){S.push(f(S.pop(),I.value));continue}I.nodes&&y(I,g)}return S};return u.flatten(y(d))};i.exports=p},719:(i,s,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:j,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:A,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),C=(I,B={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let R=B||{},O=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(I.length>O)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${O})`);let N={type:"root",input:I,nodes:[]},$=[N],E=N,F=N,H=0,U=I.length,K=0,W=0,z;const ne=()=>I[K++],w=M=>{if(M.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&M.type==="text"){F.value+=M.value;return}return E.nodes.push(M),M.parent=E,M.prev=F,F=M,M};for(w({type:"bos"});K<U;)if(E=$[$.length-1],z=ne(),!(z===P||z===S)){if(z===u){w({type:"text",value:(B.keepEscaping?z:"")+ne()});continue}if(z===j){w({type:"text",value:"\\"+z});continue}if(z===b){H++;let M;for(;K<U&&(M=ne());){if(z+=M,M===b){H++;continue}if(M===u){z+=ne();continue}if(M===j&&(H--,H===0))break}w({type:"text",value:z});continue}if(z===m){E=w({type:"paren",nodes:[]}),$.push(E),w({type:"text",value:z});continue}if(z===h){if(E.type!=="paren"){w({type:"text",value:z});continue}E=$.pop(),w({type:"text",value:z}),E=$[$.length-1];continue}if(z===v||z===A||z===f){let M=z,D;for(B.keepQuotes!==!0&&(z="");K<U&&(D=ne());){if(D===u){z+=D+ne();continue}if(D===M){B.keepQuotes===!0&&(z+=D);break}z+=D}w({type:"text",value:z});continue}if(z===y){W++;let D={type:"brace",open:!0,close:!1,dollar:F.value&&F.value.slice(-1)==="$"||E.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};E=w(D),$.push(E),w({type:"open",value:z});continue}if(z===g){if(E.type!=="brace"){w({type:"text",value:z});continue}let M="close";E=$.pop(),E.close=!0,w({type:M,value:z}),W--,E=$[$.length-1];continue}if(z===p&&W>0){if(E.ranges>0){E.ranges=0;let M=E.nodes.shift();E.nodes=[M,{type:"text",value:c(E)}]}w({type:"comma",value:z}),E.commas++;continue}if(z===d&&W>0&&E.commas===0){let M=E.nodes;if(W===0||M.length===0){w({type:"text",value:z});continue}if(F.type==="dot"){if(E.range=[],F.value+=z,F.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,F.type="text";continue}E.ranges++,E.args=[];continue}if(F.type==="range"){M.pop();let D=M[M.length-1];D.value+=F.value+z,F=D,E.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(E=$.pop(),E.type!=="root"){E.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let M=$[$.length-1],D=M.nodes.indexOf(E);M.nodes.splice(D,1,...E.nodes)}while($.length>0);return w({type:"eos"}),N};i.exports=C},137:(i,s,a)=>{const c=a(617);i.exports=(l,u={})=>{let f=(p,d={})=>{let m=u.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&u.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(l)}},617:(i,s)=>{s.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,s.find=(a,c)=>a.nodes.find(l=>l.type===c),s.exceedsLimit=(a,c,l=1,u)=>u===!1||!s.isInteger(a)||!s.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,s.escapeNode=(a,c=0,l)=>{let u=a.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},s.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),s.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,s.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,s.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),s.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let p=u[f];Array.isArray(p)?l(p):p!==void 0&&c.push(p)}return c};return l(a),c}},783:(i,s,a)=>{/*!
|
|
26
26
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
27
27
|
*
|
|
28
28
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
29
29
|
* Licensed under the MIT License.
|
|
30
|
-
*/const c=a(837),l=a(492),u=
|
|
30
|
+
*/const c=a(837),l=a(492),u=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),f=R=>O=>R===!0?Number(O):String(O),p=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),m=R=>{let O=`${R}`,N=-1;if(O[0]==="-"&&(O=O.slice(1)),O==="0")return!1;for(;O[++N]==="0";);return N>0},h=(R,O,N)=>typeof R=="string"||typeof O=="string"?!0:N.stringify===!0,y=(R,O,N)=>{if(O>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?O-1:O,"0")}return N===!1?String(R):R},g=(R,O)=>{let N=R[0]==="-"?"-":"";for(N&&(R=R.slice(1),O--);R.length<O;)R="0"+R;return N?"-"+R:R},b=(R,O)=>{R.negatives.sort((H,U)=>H<U?-1:H>U?1:0),R.positives.sort((H,U)=>H<U?-1:H>U?1:0);let N=O.capture?"":"?:",$="",E="",F;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(E=`-(${N}${R.negatives.join("|")})`),$&&E?F=`${$}|${E}`:F=$||E,O.wrap?`(${N}${F})`:F},j=(R,O,N,$)=>{if(N)return l(R,O,{wrap:!1,...$});let E=String.fromCharCode(R);if(R===O)return E;let F=String.fromCharCode(O);return`[${E}-${F}]`},v=(R,O,N)=>{if(Array.isArray(R)){let $=N.wrap===!0,E=N.capture?"":"?:";return $?`(${E}${R.join("|")})`:R.join("|")}return l(R,O,N)},A=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),S=(R,O,N)=>{if(N.strictRanges===!0)throw A([R,O]);return[]},P=(R,O)=>{if(O.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},C=(R,O,N=1,$={})=>{let E=Number(R),F=Number(O);if(!Number.isInteger(E)||!Number.isInteger(F)){if($.strictRanges===!0)throw A([R,O]);return[]}E===0&&(E=0),F===0&&(F=0);let H=E>F,U=String(R),K=String(O),W=String(N);N=Math.max(Math.abs(N),1);let z=m(U)||m(K)||m(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(R,O,$)===!1,M=$.transform||f(w);if($.toRegex&&N===1)return j(g(R,ne),g(O,ne),!0,$);let D={negatives:[],positives:[]},X=k=>D[k<0?"negatives":"positives"].push(Math.abs(k)),te=[],Z=0;for(;H?E>=F:E<=F;)$.toRegex===!0&&N>1?X(E):te.push(y(M(E,Z),ne,w)),E=H?E-N:E+N,Z++;return $.toRegex===!0?N>1?b(D,$):v(te,null,{wrap:!1,...$}):te},I=(R,O,N=1,$={})=>{if(!d(R)&&R.length>1||!d(O)&&O.length>1)return S(R,O,$);let E=$.transform||(w=>String.fromCharCode(w)),F=`${R}`.charCodeAt(0),H=`${O}`.charCodeAt(0),U=F>H,K=Math.min(F,H),W=Math.max(F,H);if($.toRegex&&N===1)return j(K,W,!1,$);let z=[],ne=0;for(;U?F>=H:F<=H;)z.push(E(F,ne)),F=U?F-N:F+N,ne++;return $.toRegex===!0?v(z,null,{wrap:!1,options:$}):z},B=(R,O,N,$={})=>{if(O==null&&p(R))return[R];if(!p(R)||!p(O))return S(R,O,$);if(typeof N=="function")return B(R,O,1,{transform:N});if(u(N))return B(R,O,0,N);let E={...$};return E.capture===!0&&(E.wrap=!0),N=N||E.step||1,d(N)?d(R)&&d(O)?C(R,O,N,E):I(R,O,Math.max(Math.abs(N),1),E):N!=null&&!u(N)?P(N,E):B(R,O,1,N)};i.exports=B},357:i=>{/*!
|
|
31
31
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/i.exports=function(s){return typeof s=="number"?s-s===0:typeof s=="string"&&s.trim()!==""?Number.isFinite?Number.isFinite(+s):isFinite(+s):!1}},971:(i,s,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,b=new Set,j=new Set,v=0,A=x=>{j.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let I=u(String(h[x]),{...y,onResult:A},!0),B=I.state.negated||I.state.negatedExtglob;B&&v++;for(let E of m){let O=I(E,!0);(B?!O.isMatch:O.isMatch)&&(B?g.add(O.output):(g.delete(O.output),b.add(O.output)))}}let P=(v===h.length?[...j]:[...b]).filter(x=>!g.has(x));if(y&&P.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 P};d.match=d,d.matcher=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,b=[],v=d(m,h,{...y,onResult:A=>{y.onResult&&y.onResult(A),b.push(A.output)}});for(let A of b)v.includes(A)||g.add(A);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),b={};for(let j of g)b[j]=m[j];return b},d.some=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(g.some(v=>j(v)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(!g.every(v=>j(v)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),j=u.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let b of l(String(g),h))y.push(u.parse(b,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},i.exports=d},251:(i,s,a)=>{i.exports=a(683)},356:(i,s,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,b=`(?:^|${m})`,j=`${f}{1,2}${g}`,v=`(?!${f})`,A=`(?!${b}${j})`,S=`(?!${f}{0,1}${g})`,P=`(?!${j})`,x=`[^.${m}]`,I=`${y}*?`,B={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:j,NO_DOT:v,NO_DOTS:A,NO_DOT_SLASH:S,NO_DOTS_SLASH:P,QMARK_NO_DOT:x,STAR:I,START_ANCHOR:b},E={...B,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},O={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"};i.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:O,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:c.sep,extglobChars(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?E:B}}},754:(i,s,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(b,j)=>{if(typeof j.expandRange=="function")return j.expandRange(...b,j);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(S=>l.escapeRegex(S)).join("..")}return v},y=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,g=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=m[b]||b;const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);const P={type:"bos",value:"",output:v.prepend||""},x=[P],I=v.capture?"":"?:",B=l.isWindows(j),E=c.globChars(B),O=c.extglobChars(E),{DOT_LITERAL:N,PLUS_LITERAL:$,SLASH_LITERAL:R,ONE_CHAR:F,DOTS_SLASH:H,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:M}=E,D=Q=>`(${I}(?:(?!${M}${Q.dot?H:N}).)*?)`,X=v.dot?"":U,te=v.dot?z:ne;let Z=v.bash===!0?D(v):w;v.capture&&(Z=`(${Z})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const k={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};b=l.removePrefix(b,k),S=b.length;const J=[],Y=[],ee=[];let L=P,T;const re=()=>k.index===S-1,se=k.peek=(Q=1)=>b[k.index+Q],ce=k.advance=()=>b[++k.index],le=()=>b.slice(k.index+1),ae=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},q=Q=>{k.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!O[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&q(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,x.push(Q),L=Q},ue=(Q,oe)=>{const V={...O[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(v.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":F}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},je=Q=>{let oe=Q.close+(v.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(v)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:T,output:oe}),me("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,_e,Re,Ce,cr)=>Re==="\\"?(Q=!0,V):Re==="?"?de?de+Re+(Ce?z.repeat(Ce.length):""):cr===0?te+(Ce?z.repeat(Ce.length):""):z.repeat(_e.length):Re==="."?N.repeat(_e.length):Re==="*"?de?de+Re+(Ce?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&v.contains===!0?(k.output=b,k):(k.output=l.wrapOutput(oe,k,j),k)}for(;!re();){if(T=ce(),T==="\0")continue;if(T==="\\"){const V=se();if(V==="/"&&v.bash!==!0||V==="."||V===";")continue;if(!V){T+="\\",G({type:"text",value:T});continue}const de=/^\\+/.exec(le());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,k.index+=_e,_e%2!==0&&(T+="\\")),v.unescape===!0?T=ce()||"":T+=ce()||"",k.brackets===0){G({type:"text",value:T});continue}}if(k.brackets>0&&(T!=="]"||L.value==="["||L.value==="[^")){if(v.posix!==!1&&T===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),_e=L.value.slice(0,de),Re=L.value.slice(de+2),Ce=f[Re];if(Ce){L.value=_e+Ce,k.backtrack=!0,ce(),!P.output&&x.indexOf(L)===1&&(P.output=F);continue}}}(T==="["&&se()!==":"||T==="-"&&se()==="]")&&(T=`\\${T}`),T==="]"&&(L.value==="["||L.value==="[^")&&(T=`\\${T}`),v.posix===!0&&T==="!"&&L.value==="["&&(T="^"),L.value+=T,q({value:T});continue}if(k.quotes===1&&T!=='"'){T=l.escapeRegex(T),L.value+=T,q({value:T});continue}if(T==='"'){k.quotes=k.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:T});continue}if(T==="("){ie("parens"),G({type:"paren",value:T});continue}if(T===")"){if(k.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){je(J.pop());continue}G({type:"paren",value:T,output:k.parens?")":"\\)"}),me("parens");continue}if(T==="["){if(v.nobracket===!0||!le().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T=`\\${T}`}else ie("brackets");G({type:"bracket",value:T});continue}if(T==="]"){if(v.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:T,output:`\\${T}`});continue}if(k.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:T,output:`\\${T}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(T=`/${T}`),L.value+=T,q({value:T}),v.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),v.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,k.output+=L.value;continue}if(T==="{"&&v.nobrace!==!0){ie("braces");const V={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(T==="}"){const V=Y[Y.length-1];if(v.nobrace===!0||!V){G({type:"text",value:T,output:T});continue}let de=")";if(V.dots===!0){const _e=x.slice(),Re=[];for(let Ce=_e.length-1;Ce>=0&&(x.pop(),_e[Ce].type!=="brace");Ce--)_e[Ce].type!=="dots"&&Re.unshift(_e[Ce].value);de=h(Re,v),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const _e=k.output.slice(0,V.outputIndex),Re=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",T=de="\\}",k.output=_e;for(const Ce of Re)k.output+=Ce.output||Ce.value}G({type:"brace",value:T,output:de}),me("braces"),Y.pop();continue}if(T==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:T});continue}if(T===","){let V=T;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:T,output:V});continue}if(T==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",x.pop(),L=P;continue}G({type:"slash",value:T,output:R});continue}if(T==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=N);const V=Y[Y.length-1];L.type="dots",L.output+=T,L.value+=T,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:T,output:N});continue}G({type:"dot",value:T,output:N});continue}if(T==="?"){if(!(L&&L.value==="(")&&v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("qmark",T);continue}if(L&&L.type==="paren"){const de=se();let _e=T;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(_e=`\\${T}`),G({type:"text",value:T,output:_e});continue}if(v.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:T,output:ne});continue}G({type:"qmark",value:T,output:z});continue}if(T==="!"){if(v.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){ue("negate",T);continue}if(v.nonegate!==!0&&k.index===0){he();continue}}if(T==="+"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("plus",T);continue}if(L&&L.value==="("||v.regex===!1){G({type:"plus",value:T,output:$});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:T});continue}G({type:"plus",value:$});continue}if(T==="@"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:T,output:""});continue}G({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const V=p.exec(le());V&&(T+=V[0],k.index+=V[0].length),G({type:"text",value:T});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=T,L.output=Z,k.backtrack=!0,k.globstar=!0,ae(T);continue}let Q=le();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",T);continue}if(L.type==="star"){if(v.noglobstar===!0){ae(T);continue}const V=L.prev,de=V.prev,_e=V.type==="slash"||V.type==="bos",Re=de&&(de.type==="star"||de.type==="globstar");if(v.bash===!0&&(!_e||Q[0]&&Q[0]!=="/")){G({type:"star",value:T,output:""});continue}const Ce=k.braces>0&&(V.type==="comma"||V.type==="brace"),cr=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!cr){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const wt=b[k.index+4];if(wt&&wt!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=T,L.output=D(v),k.output=L.output,k.globstar=!0,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Re&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(v)+(v.strictSlashes?")":"|$)"),L.value+=T,k.globstar=!0,k.output+=V.output+L.output,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const wt=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(v)}${R}|${R}${wt})`,L.value+=T,k.output+=V.output+L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=T,L.output=`(?:^|${R}|${D(v)}${R})`,k.output=L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(v),L.value+=T,k.output+=L.output,k.globstar=!0,ae(T);continue}const oe={type:"star",value:T,output:Z};if(v.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&v.regex===!0){oe.output=T,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):v.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),se()!=="*"&&(k.output+=F,L.output+=F)),G(oe)}for(;k.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=l.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=l.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=l.escapeLast(k.output,"{"),me("braces")}if(v.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${R}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(b,j)=>{const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);b=m[b]||b;const P=l.isWindows(j),{DOT_LITERAL:x,SLASH_LITERAL:I,ONE_CHAR:B,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:N,NO_DOTS_SLASH:$,STAR:R,START_ANCHOR:F}=c.globChars(P),H=v.dot?N:O,U=v.dot?$:O,K=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":R;v.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${F}${X.dot?E:x}).)*?)`,w=X=>{switch(X){case"*":return`${H}${B}${z}`;case".*":return`${x}${B}${z}`;case"*.*":return`${H}${z}${x}${B}${z}`;case"*/*":return`${H}${z}${I}${B}${U}${z}`;case"**":return H+ne(v);case"**/*":return`(?:${H}${ne(v)}${I})?${U}${B}${z}`;case"**/*.*":return`(?:${H}${ne(v)}${I})?${U}${z}${x}${B}${z}`;case"**/.*":return`(?:${H}${ne(v)}${I})?${x}${B}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},M=l.removePrefix(b,W);let D=w(M);return D&&v.strictSlashes!==!0&&(D+=`${I}?`),D},i.exports=g},683:(i,s,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const O of I){const N=O(E);if(N)return N}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=y||{},v=f.isWindows(y),A=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),S=A.state;delete A.state;let P=()=>!1;if(j.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(j.ignore,I,g)}const x=(I,B=!1)=>{const{isMatch:E,match:O,output:N}=m.test(I,A,y,{glob:h,posix:v}),$={glob:h,state:S,regex:A,posix:v,input:I,output:N,match:O,isMatch:E};return typeof j.onResult=="function"&&j.onResult($),E===!1?($.isMatch=!1,B?$:!1):P(I)?(typeof j.onIgnore=="function"&&j.onIgnore($),$.isMatch=!1,B?$:!1):(typeof j.onMatch=="function"&&j.onMatch($),B?$:!0)};return g&&(x.state=S),x};m.test=(h,y,g,{glob:b,posix:j}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const v=g||{},A=v.format||(j?f.toPosixSlashes:null);let S=h===b,P=S&&A?A(h):h;return S===!1&&(P=A?A(h):h,S=P===b),(S===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?S=m.matchBase(h,y,g,j):S=y.exec(P)),{isMatch:!!S,match:S,output:P}},m.matchBase=(h,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,b=!1)=>{if(g===!0)return h.output;const j=y||{},v=j.contains?"":"^",A=j.contains?"":"$";let S=`${v}(?:${h.output})${A}`;h&&h.negated===!0&&(S=`^(?!${S}).*$`);const P=m.toRegex(S,y);return b===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const j=y||{};let v={negated:!1,fastpaths:!0},A="",S;return h.startsWith("./")&&(h=h.slice(2),A=v.prefix="./"),j.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(S=u.fastpaths(h,y)),S===void 0?(v=u(h,y),v.prefix=A+(v.prefix||"")):v.output=S,m.compileRe(v,y,g,b)},m.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/$^/}},m.constants=p,i.exports=m},700:(i,s,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:j,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:A,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),x=E=>E===h||E===f,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},B=(E,O)=>{const N=O||{},$=E.length-1,R=N.parts===!0||N.scanToEnd===!0,F=[],H=[],U=[];let K=E,W=-1,z=0,ne=0,w=!1,M=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,T,re={value:"",depth:0,isGlob:!1};const se=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(L=T,K.charCodeAt(++W));for(;W<$;){T=le();let me;if(T===f){k=re.backslashes=!0,T=le(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,le();continue}if(T===y){ee++;continue}if(Z!==!0&&T===d&&(T=le())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&T===p){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===A&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(T===h){if(F.push(W),H.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(N.noext!==!0&&(T===j||T===u||T===l||T===v||T===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,T=le();continue}if(T===S){D=re.isGlob=!0,Y=!0;break}}continue}break}if(T===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===v){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(T===b){for(;se()!==!0&&(me=le());){if(me===f){k=re.backslashes=!0,le();continue}if(me===P){M=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(N.nonegate!==!0&&T===m&&W===z){J=re.negated=!0,z++;continue}if(N.noparen!==!0&&T===g){if(D=re.isGlob=!0,R===!0){for(;se()!==!0&&(T=le());){if(T===g){k=re.backslashes=!0,T=le();continue}if(T===S){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ae=K,q="",he="";z>0&&(q=K.slice(0,z),K=K.slice(z),ne-=z),ae&&D===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):D===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&x(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),N.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&k===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:q,input:E,start:z,base:ae,glob:he,isBrace:w,isBracket:M,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(N.tokens===!0&&(ie.maxDepth=0,x(T)||H.push(re),ie.tokens=H),N.parts===!0||N.tokens===!0){let me;for(let G=0;G<F.length;G++){const ue=me?me+1:z,je=F[G],Q=E.slice(ue,je);N.tokens&&(G===0&&z!==0?(H[G].isPrefix=!0,H[G].value=q):H[G].value=Q,I(H[G]),ie.maxDepth+=H[G].depth),(G!==0||Q!=="")&&U.push(Q),me=je}if(me&&me+1<E.length){const G=E.slice(me+1);U.push(G),N.tokens&&(H[H.length-1].value=G,I(H[H.length-1]),ie.maxDepth+=H[H.length-1].depth)}ie.slashes=F,ie.parts=U}return ie};i.exports=B},513:(i,s,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);s.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),s.hasRegexChars=m=>p.test(m),s.isRegexChar=m=>m.length===1&&s.hasRegexChars(m),s.escapeRegex=m=>m.replace(d,"\\$1"),s.toPosixSlashes=m=>m.replace(u,"/"),s.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),s.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},s.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",s.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?s.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},s.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},s.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let j=`${g}(?:${m})${b}`;return h.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(i,s,a)=>{/*!
|
|
35
|
+
*/i.exports=function(s){return typeof s=="number"?s-s===0:typeof s=="string"&&s.trim()!==""?Number.isFinite?Number.isFinite(+s):isFinite(+s):!1}},971:(i,s,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,b=new Set,j=new Set,v=0,A=C=>{j.add(C.output),y&&y.onResult&&y.onResult(C)};for(let C=0;C<h.length;C++){let I=u(String(h[C]),{...y,onResult:A},!0),B=I.state.negated||I.state.negatedExtglob;B&&v++;for(let R of m){let O=I(R,!0);(B?!O.isMatch:O.isMatch)&&(B?g.add(O.output):(g.delete(O.output),b.add(O.output)))}}let P=(v===h.length?[...j]:[...b]).filter(C=>!g.has(C));if(y&&P.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(C=>C.replace(/\\/g,"")):h}return P};d.match=d,d.matcher=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,b=[],v=d(m,h,{...y,onResult:A=>{y.onResult&&y.onResult(A),b.push(A.output)}});for(let A of b)v.includes(A)||g.add(A);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),b={};for(let j of g)b[j]=m[j];return b},d.some=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(g.some(v=>j(v)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let j=u(String(b),y);if(!g.every(v=>j(v)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),j=u.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let b of l(String(g),h))y.push(u.parse(b,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},i.exports=d},251:(i,s,a)=>{i.exports=a(683)},356:(i,s,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,b=`(?:^|${m})`,j=`${f}{1,2}${g}`,v=`(?!${f})`,A=`(?!${b}${j})`,S=`(?!${f}{0,1}${g})`,P=`(?!${j})`,C=`[^.${m}]`,I=`${y}*?`,B={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:j,NO_DOT:v,NO_DOTS:A,NO_DOT_SLASH:S,NO_DOTS_SLASH:P,QMARK_NO_DOT:C,STAR:I,START_ANCHOR:b},R={...B,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},O={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"};i.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:O,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:c.sep,extglobChars(N){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${N.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(N){return N===!0?R:B}}},754:(i,s,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(b,j)=>{if(typeof j.expandRange=="function")return j.expandRange(...b,j);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(S=>l.escapeRegex(S)).join("..")}return v},y=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,g=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=m[b]||b;const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);const P={type:"bos",value:"",output:v.prepend||""},C=[P],I=v.capture?"":"?:",B=l.isWindows(j),R=c.globChars(B),O=c.extglobChars(R),{DOT_LITERAL:N,PLUS_LITERAL:$,SLASH_LITERAL:E,ONE_CHAR:F,DOTS_SLASH:H,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:M}=R,D=Q=>`(${I}(?:(?!${M}${Q.dot?H:N}).)*?)`,X=v.dot?"":U,te=v.dot?z:ne;let Z=v.bash===!0?D(v):w;v.capture&&(Z=`(${Z})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const k={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};b=l.removePrefix(b,k),S=b.length;const J=[],Y=[],ee=[];let L=P,T;const re=()=>k.index===S-1,se=k.peek=(Q=1)=>b[k.index+Q],ce=k.advance=()=>b[++k.index],le=()=>b.slice(k.index+1),ae=(Q="",oe=0)=>{k.consumed+=Q,k.index+=oe},q=Q=>{k.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),k.start++,Q++;return Q%2===0?!1:(k.negated=!0,k.start++,!0)},ie=Q=>{k[Q]++,ee.push(Q)},me=Q=>{k[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=k.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(k.output=k.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,k.output+=L.output)}if(J.length&&Q.type!=="paren"&&!O[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&q(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,C.push(Q),L=Q},ue=(Q,oe)=>{const V={...O[oe],conditions:1,inner:""};V.prev=L,V.parens=k.parens,V.output=k.output;const de=(v.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:k.output?"":F}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},je=Q=>{let oe=Q.close+(v.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(v)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:T,output:oe}),me("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,_e,Ee,Ce,dr)=>Ee==="\\"?(Q=!0,V):Ee==="?"?de?de+Ee+(Ce?z.repeat(Ce.length):""):dr===0?te+(Ce?z.repeat(Ce.length):""):z.repeat(_e.length):Ee==="."?N.repeat(_e.length):Ee==="*"?de?de+Ee+(Ce?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&v.contains===!0?(k.output=b,k):(k.output=l.wrapOutput(oe,k,j),k)}for(;!re();){if(T=ce(),T==="\0")continue;if(T==="\\"){const V=se();if(V==="/"&&v.bash!==!0||V==="."||V===";")continue;if(!V){T+="\\",G({type:"text",value:T});continue}const de=/^\\+/.exec(le());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,k.index+=_e,_e%2!==0&&(T+="\\")),v.unescape===!0?T=ce()||"":T+=ce()||"",k.brackets===0){G({type:"text",value:T});continue}}if(k.brackets>0&&(T!=="]"||L.value==="["||L.value==="[^")){if(v.posix!==!1&&T===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),_e=L.value.slice(0,de),Ee=L.value.slice(de+2),Ce=f[Ee];if(Ce){L.value=_e+Ce,k.backtrack=!0,ce(),!P.output&&C.indexOf(L)===1&&(P.output=F);continue}}}(T==="["&&se()!==":"||T==="-"&&se()==="]")&&(T=`\\${T}`),T==="]"&&(L.value==="["||L.value==="[^")&&(T=`\\${T}`),v.posix===!0&&T==="!"&&L.value==="["&&(T="^"),L.value+=T,q({value:T});continue}if(k.quotes===1&&T!=='"'){T=l.escapeRegex(T),L.value+=T,q({value:T});continue}if(T==='"'){k.quotes=k.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:T});continue}if(T==="("){ie("parens"),G({type:"paren",value:T});continue}if(T===")"){if(k.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&k.parens===V.parens+1){je(J.pop());continue}G({type:"paren",value:T,output:k.parens?")":"\\)"}),me("parens");continue}if(T==="["){if(v.nobracket===!0||!le().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T=`\\${T}`}else ie("brackets");G({type:"bracket",value:T});continue}if(T==="]"){if(v.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:T,output:`\\${T}`});continue}if(k.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:T,output:`\\${T}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(T=`/${T}`),L.value+=T,q({value:T}),v.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(k.output=k.output.slice(0,-L.value.length),v.literalBrackets===!0){k.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,k.output+=L.value;continue}if(T==="{"&&v.nobrace!==!0){ie("braces");const V={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};Y.push(V),G(V);continue}if(T==="}"){const V=Y[Y.length-1];if(v.nobrace===!0||!V){G({type:"text",value:T,output:T});continue}let de=")";if(V.dots===!0){const _e=C.slice(),Ee=[];for(let Ce=_e.length-1;Ce>=0&&(C.pop(),_e[Ce].type!=="brace");Ce--)_e[Ce].type!=="dots"&&Ee.unshift(_e[Ce].value);de=h(Ee,v),k.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const _e=k.output.slice(0,V.outputIndex),Ee=k.tokens.slice(V.tokensIndex);V.value=V.output="\\{",T=de="\\}",k.output=_e;for(const Ce of Ee)k.output+=Ce.output||Ce.value}G({type:"brace",value:T,output:de}),me("braces"),Y.pop();continue}if(T==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:T});continue}if(T===","){let V=T;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:T,output:V});continue}if(T==="/"){if(L.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",C.pop(),L=P;continue}G({type:"slash",value:T,output:E});continue}if(T==="."){if(k.braces>0&&L.type==="dot"){L.value==="."&&(L.output=N);const V=Y[Y.length-1];L.type="dots",L.output+=T,L.value+=T,V.dots=!0;continue}if(k.braces+k.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:T,output:N});continue}G({type:"dot",value:T,output:N});continue}if(T==="?"){if(!(L&&L.value==="(")&&v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("qmark",T);continue}if(L&&L.type==="paren"){const de=se();let _e=T;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(_e=`\\${T}`),G({type:"text",value:T,output:_e});continue}if(v.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:T,output:ne});continue}G({type:"qmark",value:T,output:z});continue}if(T==="!"){if(v.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){ue("negate",T);continue}if(v.nonegate!==!0&&k.index===0){he();continue}}if(T==="+"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){ue("plus",T);continue}if(L&&L.value==="("||v.regex===!1){G({type:"plus",value:T,output:$});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||k.parens>0){G({type:"plus",value:T});continue}G({type:"plus",value:$});continue}if(T==="@"){if(v.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:T,output:""});continue}G({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const V=p.exec(le());V&&(T+=V[0],k.index+=V[0].length),G({type:"text",value:T});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=T,L.output=Z,k.backtrack=!0,k.globstar=!0,ae(T);continue}let Q=le();if(v.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",T);continue}if(L.type==="star"){if(v.noglobstar===!0){ae(T);continue}const V=L.prev,de=V.prev,_e=V.type==="slash"||V.type==="bos",Ee=de&&(de.type==="star"||de.type==="globstar");if(v.bash===!0&&(!_e||Q[0]&&Q[0]!=="/")){G({type:"star",value:T,output:""});continue}const Ce=k.braces>0&&(V.type==="comma"||V.type==="brace"),dr=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!dr){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const It=b[k.index+4];if(It&&It!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=T,L.output=D(v),k.output=L.output,k.globstar=!0,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ee&&re()){k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(v)+(v.strictSlashes?")":"|$)"),L.value+=T,k.globstar=!0,k.output+=V.output+L.output,ae(T);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const It=Q[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(v)}${E}|${E}${It})`,L.value+=T,k.output+=V.output+L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=T,L.output=`(?:^|${E}|${D(v)}${E})`,k.output=L.output,k.globstar=!0,ae(T+ce()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-L.output.length),L.type="globstar",L.output=D(v),L.value+=T,k.output+=L.output,k.globstar=!0,ae(T);continue}const oe={type:"star",value:T,output:Z};if(v.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&v.regex===!0){oe.output=T,G(oe);continue}(k.index===k.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(k.output+=K,L.output+=K):v.dot===!0?(k.output+=W,L.output+=W):(k.output+=X,L.output+=X),se()!=="*"&&(k.output+=F,L.output+=F)),G(oe)}for(;k.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));k.output=l.escapeLast(k.output,"["),me("brackets")}for(;k.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));k.output=l.escapeLast(k.output,"("),me("parens")}for(;k.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));k.output=l.escapeLast(k.output,"{"),me("braces")}if(v.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${E}?`}),k.backtrack===!0){k.output="";for(const Q of k.tokens)k.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(k.output+=Q.suffix)}return k};g.fastpaths=(b,j)=>{const v={...j},A=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,S=b.length;if(S>A)throw new SyntaxError(`Input length: ${S}, exceeds maximum allowed length: ${A}`);b=m[b]||b;const P=l.isWindows(j),{DOT_LITERAL:C,SLASH_LITERAL:I,ONE_CHAR:B,DOTS_SLASH:R,NO_DOT:O,NO_DOTS:N,NO_DOTS_SLASH:$,STAR:E,START_ANCHOR:F}=c.globChars(P),H=v.dot?N:O,U=v.dot?$:O,K=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":E;v.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${F}${X.dot?R:C}).)*?)`,w=X=>{switch(X){case"*":return`${H}${B}${z}`;case".*":return`${C}${B}${z}`;case"*.*":return`${H}${z}${C}${B}${z}`;case"*/*":return`${H}${z}${I}${B}${U}${z}`;case"**":return H+ne(v);case"**/*":return`(?:${H}${ne(v)}${I})?${U}${B}${z}`;case"**/*.*":return`(?:${H}${ne(v)}${I})?${U}${z}${C}${B}${z}`;case"**/.*":return`(?:${H}${ne(v)}${I})?${C}${B}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+C+te[2]:void 0}}},M=l.removePrefix(b,W);let D=w(M);return D&&v.strictSlashes!==!0&&(D+=`${I}?`),D},i.exports=g},683:(i,s,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(R=>m(R,y,g));return R=>{for(const O of I){const N=O(R);if(N)return N}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=y||{},v=f.isWindows(y),A=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),S=A.state;delete A.state;let P=()=>!1;if(j.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(j.ignore,I,g)}const C=(I,B=!1)=>{const{isMatch:R,match:O,output:N}=m.test(I,A,y,{glob:h,posix:v}),$={glob:h,state:S,regex:A,posix:v,input:I,output:N,match:O,isMatch:R};return typeof j.onResult=="function"&&j.onResult($),R===!1?($.isMatch=!1,B?$:!1):P(I)?(typeof j.onIgnore=="function"&&j.onIgnore($),$.isMatch=!1,B?$:!1):(typeof j.onMatch=="function"&&j.onMatch($),B?$:!0)};return g&&(C.state=S),C};m.test=(h,y,g,{glob:b,posix:j}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const v=g||{},A=v.format||(j?f.toPosixSlashes:null);let S=h===b,P=S&&A?A(h):h;return S===!1&&(P=A?A(h):h,S=P===b),(S===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?S=m.matchBase(h,y,g,j):S=y.exec(P)),{isMatch:!!S,match:S,output:P}},m.matchBase=(h,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,b=!1)=>{if(g===!0)return h.output;const j=y||{},v=j.contains?"":"^",A=j.contains?"":"$";let S=`${v}(?:${h.output})${A}`;h&&h.negated===!0&&(S=`^(?!${S}).*$`);const P=m.toRegex(S,y);return b===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const j=y||{};let v={negated:!1,fastpaths:!0},A="",S;return h.startsWith("./")&&(h=h.slice(2),A=v.prefix="./"),j.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(S=u.fastpaths(h,y)),S===void 0?(v=u(h,y),v.prefix=A+(v.prefix||"")):v.output=S,m.compileRe(v,y,g,b)},m.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/$^/}},m.constants=p,i.exports=m},700:(i,s,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:j,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:A,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),C=R=>R===h||R===f,I=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},B=(R,O)=>{const N=O||{},$=R.length-1,E=N.parts===!0||N.scanToEnd===!0,F=[],H=[],U=[];let K=R,W=-1,z=0,ne=0,w=!1,M=!1,D=!1,X=!1,te=!1,Z=!1,k=!1,J=!1,Y=!1,ee=0,L,T,re={value:"",depth:0,isGlob:!1};const se=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(L=T,K.charCodeAt(++W));for(;W<$;){T=le();let me;if(T===f){k=re.backslashes=!0,T=le(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,le();continue}if(T===y){ee++;continue}if(Z!==!0&&T===d&&(T=le())===d){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,E===!0)continue;break}if(Z!==!0&&T===p){if(w=re.isBrace=!0,D=re.isGlob=!0,Y=!0,E===!0)continue;break}if(T===A&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(E===!0)continue;break}if(T===h){if(F.push(W),H.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(N.noext!==!0&&(T===j||T===u||T===l||T===v||T===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;se()!==!0&&(T=le());){if(T===f){k=re.backslashes=!0,T=le();continue}if(T===S){D=re.isGlob=!0,Y=!0;break}}continue}break}if(T===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,E===!0)continue;break}if(T===v){if(D=re.isGlob=!0,Y=!0,E===!0)continue;break}if(T===b){for(;se()!==!0&&(me=le());){if(me===f){k=re.backslashes=!0,le();continue}if(me===P){M=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(E===!0)continue;break}if(N.nonegate!==!0&&T===m&&W===z){J=re.negated=!0,z++;continue}if(N.noparen!==!0&&T===g){if(D=re.isGlob=!0,E===!0){for(;se()!==!0&&(T=le());){if(T===g){k=re.backslashes=!0,T=le();continue}if(T===S){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,E===!0)continue;break}}N.noext===!0&&(X=!1,D=!1);let ae=K,q="",he="";z>0&&(q=K.slice(0,z),K=K.slice(z),ne-=z),ae&&D===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):D===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&C(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),N.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&k===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:q,input:R,start:z,base:ae,glob:he,isBrace:w,isBracket:M,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(N.tokens===!0&&(ie.maxDepth=0,C(T)||H.push(re),ie.tokens=H),N.parts===!0||N.tokens===!0){let me;for(let G=0;G<F.length;G++){const ue=me?me+1:z,je=F[G],Q=R.slice(ue,je);N.tokens&&(G===0&&z!==0?(H[G].isPrefix=!0,H[G].value=q):H[G].value=Q,I(H[G]),ie.maxDepth+=H[G].depth),(G!==0||Q!=="")&&U.push(Q),me=je}if(me&&me+1<R.length){const G=R.slice(me+1);U.push(G),N.tokens&&(H[H.length-1].value=G,I(H[H.length-1]),ie.maxDepth+=H[H.length-1].depth)}ie.slashes=F,ie.parts=U}return ie};i.exports=B},513:(i,s,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);s.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),s.hasRegexChars=m=>p.test(m),s.isRegexChar=m=>m.length===1&&s.hasRegexChars(m),s.escapeRegex=m=>m.replace(d,"\\$1"),s.toPosixSlashes=m=>m.replace(u,"/"),s.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),s.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},s.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",s.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?s.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},s.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},s.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let j=`${g}(?:${m})${b}`;return h.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(i,s,a)=>{/*!
|
|
36
36
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
39
39
|
* Released under the MIT License.
|
|
40
|
-
*/const c=a(357),l=(
|
|
41
|
-
`+JSON.stringify(s));if(!(0,r.makeRe)(s.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=s.pathname)!=null?c:"**").test(a.pathname)}function i(s,a,c){return s.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Hr)),Hr}var Xs;function fu(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:i,src:s,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(s||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:s,width:a,quality:c}));if(s.startsWith("//"))throw new Error('Failed to parse src "'+s+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!s.startsWith("/")&&(i.domains||i.remotePatterns)){let u;try{u=new URL(s)}catch(f){throw console.error(f),new Error('Failed to parse src "'+s+'" 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:f}=wh();if(!f(i.domains,i.remotePatterns,u))throw new Error("Invalid src prop ("+s+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return i.path+"?url="+encodeURIComponent(s)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(zr)),zr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Pe,i=at._(C),s=r._(la),a=r._(zm()),c=zo,l=ir,u=Hm(),f=St,p=tl(),d=r._(fu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,A,S,P,x,I){const B=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===B)return;v["data-loaded-src"]=B,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(A!=="empty"&&x(!0),S!=null&&S.current){const O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:v});let N=!1,$=!1;S.current({...O,nativeEvent:O,currentTarget:v,target:v,isDefaultPrevented:()=>N,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{N=!0,O.preventDefault()},stopPropagation:()=>{$=!0,O.stopPropagation()}})}if(P!=null&&P.current&&P.current(v),process.env.NODE_ENV!=="production"){const O=new URL(B,"http://n").searchParams.get("url")||B;if(v.getAttribute("data-nimg")==="fill"){if(!I&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+O+'" 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'),v.parentElement){const{position:R}=window.getComputedStyle(v.parentElement),F=["absolute","fixed","relative"];F.includes(R)||(0,f.warnOnce)('Image with src "'+O+'" has "fill" and parent element with invalid "position". Provided "'+R+'" should be one of '+F.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+O+'" 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 N=v.height.toString()!==v.getAttribute("height"),$=v.width.toString()!==v.getAttribute("width");(N&&!$||!N&&$)&&(0,f.warnOnce)('Image with src "'+O+`" 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(v){const[A,S]=i.version.split("."),P=parseInt(A,10),x=parseInt(S,10);return P>18||P===18&&x>=3?{fetchPriority:v}:{fetchpriority:v}}const g=(0,i.forwardRef)((v,A)=>{let{src:S,srcSet:P,sizes:x,height:I,width:B,decoding:E,className:O,style:N,fetchPriority:$,placeholder:R,loading:F,unoptimized:H,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:M,...D}=v;return i.default.createElement("img",{...D,...y($),loading:F,width:B,height:I,decoding:E,"data-nimg":U?"fill":"1",className:O,style:N,sizes:x,srcSet:P,src:S,ref:(0,i.useCallback)(X=>{A&&(typeof A=="function"?A(X):typeof A=="object"&&(A.current=X)),X&&(M&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(S||console.error('Image is missing required "src" property:',X),X.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.')),X.complete&&h(X,R,K,W,z,H))},[S,R,K,W,z,M,H,A]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,W,z,H)},onError:X=>{ne(!0),R!=="empty"&&z(!0),M&&M(X)}})});function b(v){let{isAppRouter:A,imgAttributes:S}=v;const P={as:"image",imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:S.crossOrigin,referrerPolicy:S.referrerPolicy,...y(S.fetchPriority)};return A&&s.default.preload?(s.default.preload(S.src,P),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+S.src+S.srcSet+S.sizes,rel:"preload",href:S.srcSet?void 0:S.src,...P}))}const j=(0,i.forwardRef)((v,A)=>{const P=!(0,i.useContext)(p.RouterContext),x=(0,i.useContext)(u.ImageConfigContext),I=(0,i.useMemo)(()=>{const W=m||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,M)=>w-M),ne=W.deviceSizes.sort((w,M)=>w-M);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:B,onLoadingComplete:E}=v,O=(0,i.useRef)(B);(0,i.useEffect)(()=>{O.current=B},[B]);const N=(0,i.useRef)(E);(0,i.useEffect)(()=>{N.current=E},[E]);const[$,R]=(0,i.useState)(!1),[F,H]=(0,i.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:I,blurComplete:$,showAltText:F});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:O,onLoadingCompleteRef:N,setBlurComplete:R,setShowAltText:H,ref:A}),K.priority?i.default.createElement(b,{isAppRouter:P,imgAttributes:U}):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)})(so,so.exports);var Ph=so.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Pe,n=zo,i=St,s=Ph,a=r._(fu()),c=u=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=s.Image})(eu);var Ih=eu;const Qs=er(Ih),Nh=({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?o.jsxs(Oe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]}):o.jsxs("div",{className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(Qs,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]})},Oh=({content:e,CONSTANTS:t})=>o.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>o.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[o.jsxs("div",{className:pe["support-text"],children:[r.title&&o.jsx("h3",{children:r.title}),r.description&&o.jsx("p",{children:r.description})]}),r.items.length&&o.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((i,s)=>o.jsx(Nh,{item:i,CONSTANTS:t},`footer-support-item-${s}`))})]},`footer-support-${n}`))}),Th=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:i,columnAlignItems:s,textAlignContent:a,textAlignItems:c,children:l})=>o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:i,alignItems:s}},children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[o.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[o.jsx(_.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Mh=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:i,...s})=>o.jsxs(_.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(_.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:pe.accordionHeader,closeIndicator:o.jsx(_.Icon,{name:i.arrow_up,size:"medium"}),openIndicator:o.jsx(_.Icon,{name:i.arrow_down,size:"medium"}),title:"accordion-header",children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[o.jsx(_.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(_.Accordion.Body,{title:"accordion-body",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Wn=e=>{const{isMobile:t}=Se();return t?o.jsx(Mh,{...e}):o.jsx(Th,{...e})},Ut=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:i,icons:s,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Ee();switch(e){case"menu":b=o.jsx(Oe,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{j({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=o.jsxs("div",{className:_.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,o.jsxs("div",{className:_.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,o.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((A,S)=>o.jsx(v,{alt:A,src:`/assets/${A}.svg`,width:c??20,height:c??20},S))})]})]});break;case"social-media":b=o.jsx("div",{className:pe.footer__iconContainer,...g,children:o.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((A,S)=>o.jsx(Oe,{prefetch:!1,href:A.link??"#",target:"_blank",children:o.jsx(_.Icon,{size:"medium",name:A.icon,onClick:()=>j({content:`footer:redes-sociais:${A.icon}`})})},S))})});break;default:b=o.jsx("div",{className:r,...g,children:t})}return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:o.jsx(_.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:_.helpers.classNameConcat(pe.footer__item,r),children:b})})},kh=({className:e,text:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(pe.footer__legalInformation,e),children:o.jsx("span",{children:t})}),pu=()=>{const{nextimage:e}=Ee();return o.jsx("div",{className:pe["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};pu.displayName="Footer.Stamps";const mu=({children:e,legalTextSlot:t,adornment:r,className:n,...i})=>{const{isMobile:s}=Se(),a=C.Children.toArray(e).filter(Boolean),c=a.length;return o.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&o.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&o.jsx("div",{...i,className:_.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${s?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&o.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&o.jsx("div",{className:pe.footer__legalText,children:t})]})};mu.displayName="Footer.Wrapper";const hu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:i,LEGAL_INFORMATION_TEXT:s,ICONS:a})=>{var c;return o.jsxs(mu,{adornment:i,legalTextSlot:o.jsx(kh,{text:s}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>o.jsx(Wn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>o.jsx(Ut,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&o.jsx(Wn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:o.jsx(Ut,{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(Wn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?o.jsx(Ut,{children:r==null?void 0:r.subTitle}):null,o.jsx(Ut,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(pu,{})]})]})};hu.displayName="Footer";const Lh=Object.freeze(Object.defineProperty({__proto__:null,Footer:hu,FooterSupport:Oh},Symbol.toStringTag,{value:"Module"})),Ys=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const i=ma(e.imageUrl,n.pdp),{nextimage:s}=Ee();return o.jsx(s,{src:i,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Dh=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),i=C.useRef(!1);return o.jsx(Be.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{i.current||(i.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},$h={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},gu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:i})=>{var u,f;const{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(_.Carousel.Root,{innerRef:p=>{s(p)},className:$h["gallery-carousel-modifier"],children:[o.jsx(_.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),o.jsxs(_.Carousel.Body,{children:[o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Ys,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},"PDP_gallery_0"),t&&o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Dh,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:o.jsx(_.Carousel.Item,{style:l,children:o.jsx(Ys,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},`PDP_gallery_${d}`))]})]})};gu.displayName="PDP.Carousel";const Bh=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=So(),[i,s]=C.useState({show:!1,initialIndex:0});C.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const a=c=>{s({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(gu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},yu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=So(),n=C.useMemo(()=>{const i=r.filter(s=>!e.includes(s.imageLabel));return i.length>0?i:r},[]);return o.jsx(Bh,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};yu.displayName="PDP.Gallery";const Fh=Object.freeze(Object.defineProperty({__proto__:null,Gallery:yu},Symbol.toStringTag,{value:"Module"})),qh=({page:e,data:t})=>{const{pathname:r}=Ee(),n=C.useRef(null),{sendDataLayerEvent:i,currentLocalRef:s,itemListRef:a,promotionEventRef:c}=ge();return C.useEffect(()=>{const l=Ac("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);i({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),No("login_event","",{expires:f})}},[]),C.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=Ca(),h=m,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&i({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};s.current=e,i({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var ao={exports:{}};function zh(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 Vn={},Kn={},Zs;function Hh(){return Zs||(Zs=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Pe._(C).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Kn)),Kn}var Js;function Uh(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Pe._(C),n=Hh();function i(h){return h&&h.default?h.default:h}const s=[],a=[];let c=!1;function l(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function u(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function j(){if(!b){const S=new f(h,g);b={getCurrentValue:S.getCurrentValue.bind(S),subscribe:S.subscribe.bind(S),retry:S.retry.bind(S),promise:S.promise.bind(S)}}return b.promise()}if(typeof window>"u"&&s.push(j),!c&&typeof window<"u"){const S=g.webpack&&typeof zh.resolveWeak=="function"?g.webpack():g.modules;S&&a.push(P=>{for(const x of S)if(P.includes(x))return j()})}function v(){j();const S=r.default.useContext(n.LoadableContext);S&&Array.isArray(g.modules)&&g.modules.forEach(P=>{S(P)})}function A(S,P){v();const x=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:b.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:b.retry}):x.loaded?r.default.createElement(i(x.loaded),S):null,[S,x])}return A.preload=()=>j(),A.displayName="LoadableComponent",r.default.forwardRef(A)}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: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(b=>{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 p(h){return u(l,h)}function d(h,y){let g=[];for(;h.length;){let b=h.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(s).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(Vn)),Vn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Pe,i=n._(C),s=n._(Uh()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>i.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=s.default,m={loading:g=>{let{error:b,isLoading:j,pastDelay:v}=g;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(j)return null;if(b)return i.default.createElement("p",null,b.message,i.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,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)})(ao,ao.exports);var Gh=ao.exports,Wh=Gh;const Vh=er(Wh);var co={exports:{}},Gt={exports:{}},ea;function Kh(){return ea||(ea=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return s},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function s(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const b=p[y].nextSibling;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&d.push(b)}const h=u.map(i).filter(y=>{for(let g=0,b=d.length;g<b;g++){const j=d[g];if(s(j,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=y.parentNode)==null||j.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&m.push(b)}const y=u.map(i).filter(g=>{for(let b=0,j=m.length;b<j;b++){const v=m[b];if(s(v,g))return m.splice(b,1),!1}return!0});m.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.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 m=u[d.type]||[];m.push(d),u[d.type]=m});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{a(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)}(Gt,Gt.exports)),Gt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,P){for(var x in P)Object.defineProperty(S,x,{enumerable:!0,get:P[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return j},default:function(){return A}});const n=Pe,i=at,s=n._(la),a=i._(C),c=ru(),l=Kh(),u=rl(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=S=>{if(s.default.preinit){S.forEach(P=>{s.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;S.forEach(x=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=x,P.appendChild(I)})}},h=S=>{const{src:P,id:x,onLoad:I=()=>{},onReady:B=null,dangerouslySetInnerHTML:E,children:O="",strategy:N="afterInteractive",onError:$,stylesheets:R}=S,F=x||P;if(F&&p.has(F))return;if(f.has(P)){p.add(F),f.get(P).then(I,$);return}const H=()=>{B&&B(),p.add(F)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),H()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});E?(U.innerHTML=E.__html||"",H()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",H()):P&&(U.src=P,f.set(P,K));for(const[W,z]of Object.entries(S)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}N==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",N),R&&m(R),document.body.appendChild(U)};function y(S){const{strategy:P="afterInteractive"}=S;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))}):h(S)}function g(S){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(S)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const x=P.id||P.getAttribute("src");p.add(x)})}function j(S){S.forEach(y),b()}function v(S){const{id:P,src:x="",onLoad:I=()=>{},onReady:B=null,strategy:E="afterInteractive",onError:O,stylesheets:N,...$}=S,{updateScripts:R,scripts:F,getIsSsr:H,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||x;W.current||(B&&ne&&p.has(ne)&&B(),W.current=!0)},[B,P,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(E==="afterInteractive"?h(S):E==="lazyOnload"&&g(S),z.current=!0)},[S,E]),(E==="beforeInteractive"||E==="worker")&&(R?(F[E]=(F[E]||[]).concat([{id:P,src:x,onLoad:I,onReady:B,onError:O,...$}]),R(F)):H&&H()?p.add(P||x):H&&!H()&&h(S)),U){if(N&&N.forEach(ne=>{s.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return x?(s.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));E==="afterInteractive"&&x&&s.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const A=v;(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)})(co,co.exports);var Xh=co.exports,Qh=Xh;const Yh=er(Qh),Zh=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(Yh,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Jh=Vh(()=>Promise.resolve(Zh),{ssr:!1}),eg={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},gt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:i,className:s,Z_INDEX_WAR:a,...c})=>o.jsxs(_.SnackBar.Structure,{...c,size:e,className:_.helpers.classNameConcat(eg["snackbar-modifier"],s),width:360,style:{zIndex:a.snackbar},children:[o.jsx(_.SnackBar.Content,{adornment:t,title:r,subtitle:n}),i&&o.jsx(_.SnackBar.Support,{children:i})]});gt.displayName="SnackBar";const _u=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?o.jsx(Oe,{href:n,children:e}):e},Vo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Ko=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(n=>n.value===e))==null?void 0:r.color)??"#F2F2F2"},vu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(n=>n.key===e))==null?void 0:r.label},bu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(n=>n.key===e))==null?void 0:r.order)??0},lo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],n=Ie(Number(r));return`${Ie(Number(t))} até ${n}`},tg=({items:e})=>{const t=e.flatMap(i=>[i.range.from,i.range.to]),r=Math.min(...t.map(Math.abs)),n=Math.max(...t.map(Math.abs));return[r,n]},rg=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Vo,createTagPrice:lo,getAbsoluteMinMax:tg,getColor:Ko,getName:vu,getOrder:bu},Symbol.toStringTag,{value:"Module"})),Le={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},xu=({columns:e=2,CONSTANTS:t,...r})=>{var s;const{filters:n,onToggleFacet:i}=ut();return o.jsxs("div",{...r,className:Le["filter--modal--body--content"],children:[Array.isArray(n.facets)&&n.facets.map(a=>o.jsx(Fe.Item,{columns:e,facet:a,onToggleFacet:i,CONSTANTS:t},a.key)),!((s=n.facets)!=null&&s.length)&&o.jsx(Fe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};xu.displayName="Filter.Item.Content";const Cu=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return o.jsxs("div",{className:Le["filter--empty"],children:[o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h4",{children:e.title}),o.jsx("p",{children:e.subtitle})]}),o.jsx(_.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Cu.displayName="Filter.Empty";const Su=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:n,...i})=>{const s=bu({key:t.key,PLP_FILTERS:n.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return o.jsx(Fe.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:n.PLP_FILTERS,PLP_FILTERS_COLORS:n.PLP_FILTERS_COLORS});if(t.key==="tamanho")return o.jsx(Fe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:n.PLP_SIZE_ORDER});if(t.key==="category-2")return o.jsx(Fe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:n.ICONS})}return t.__typename==="FacetRange"?o.jsx(Fe.Price,{facet:t}):o.jsx("p",{children:"Filter not support!!!"})};return o.jsx("div",{...i,className:Le["filter--item"],style:{order:s},children:o.jsxs(_.Accordion.Wrapper,{style:{width:"100%"},children:[o.jsx(_.Accordion.Header,{id:t.key,closeIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_up}),openIndicator:o.jsx(_.Icon,{name:n.ICONS.arrow_down}),children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h4",{className:"typography-style-body-sm",children:vu({key:t.key,PLP_FILTERS:n.PLP_FILTERS})})})})}),o.jsx(_.Accordion.Body,{children:a()})]})})};Su.displayName="Filter.Item";const ju=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:n,...i})=>o.jsx(Ye.Root,{...i,children:o.jsx(Ye.List,{children:Array.isArray(t)&&t.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,"data-color":Vo({key:s,PLP_FILTERS:r}),fill:Ko({value:c,PLP_FILTERS_COLORS:n}),onClick:()=>e({key:s,value:c}),type:"color"},`${s}-${c}`))})});ju.displayName="Filter.Item.Color";const Au=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:n,onToggleFacet:i}=ut(),[s,a]=(n==null?void 0:n.split(":").map(Number))??[0,100],[c,l]=((f=(u=r==null?void 0:r.find(({key:p})=>p==="price"))==null?void 0:u.value)==null?void 0:f.split(":").map(Number))??[s,a];return o.jsx("div",{...t,className:Le["filter--item--price"],children:o.jsxs(_.Slider.SliderDual,{format:"price",initialValue:[c<s?s:c,l>a?a:l],min:s,max:a,type:"dual",step:1,onFinish:p=>{var d,m;p&&i({key:"price",value:`${(d=p.range)==null?void 0:d.min}:${(m=p.range)==null?void 0:m.max}`})},children:[o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-min-value":!0})})}),o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{"data-max-value":!0})})})]})})};Au.displayName="Filter.Item.Price";const Eu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...n})=>{const i=[...t].sort((s,a)=>{const c=r.indexOf(s.name),l=r.indexOf(a.name);return c-l});return o.jsx(Ye.Root,{...n,children:o.jsx(Ye.List,{children:Array.isArray(i)&&i.map(({key:s,selected:a,value:c})=>o.jsx(Ye.Option,{active:a,text:c,type:"size",onClick:()=>e({key:s,value:c})},c))})})};Eu.displayName="Filter.Item.Sizes";const Ru=({columns:e,facetKey:t,onToggleFacet:r,values:n,ICONS:i,...s})=>o.jsx("div",{...s,className:Le["filter--item--toggle"],children:o.jsx("div",{className:Le["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(n)&&n.map(a=>o.jsx(_.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:o.jsx(_.Icon,{name:i.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});Ru.displayName="Filter.Item.Toggle";const wu=({...e})=>{const{isLoading:t}=ut();return o.jsx("div",{className:Le["filter--loading"],"data-active":t,...e,children:o.jsx(_.Spinner,{indicatorColor:"#000",background:"#222"})})};wu.displayName="Filter.Loading";const Pu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:n,ICONS:i}})=>{var f;const{deleteAllFacets:s,filters:a,isOpen:c,target:l,setIsOpen:u}=ut();return o.jsxs(_.Modal.Root,{className:_.helpers.classNameConcat(Le["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[o.jsxs(_.Modal.Header,{navigation:"top",children:[o.jsx(_.Modal.Controls,{navigation:"top",isMobile:r,children:o.jsx(_.Button,{"data-close":!0,iconNameStart:i.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),o.jsx(_.Modal.Title,{navigation:"top",title:n})]}),o.jsxs(_.Modal.Body,{style:{width:500},children:[o.jsx("div",{className:Le["filter--modal--body"],children:e}),o.jsx(Fe.Loading,{})]}),o.jsx(_.Modal.Footer,{children:o.jsxs("div",{className:Le["filter--modal--footer"],children:[o.jsx(_.Button,{"data-close":!0,size:"large",variant:"primary",children:(f=a.facets)!=null&&f.length?"ver resultados":"fechar"}),o.jsx(_.Button,{"data-close":!0,onClick:()=>s(),variant:"tertiary",children:"limpar filtros"})]})})]})};Pu.displayName="Filter.Modal";const Iu=({children:e,className:t,isMobile:r,CONSTANTS:n,...i})=>o.jsx(Pc,{...i,PLP_FILTERS:n.PLP_FILTERS,children:o.jsx(Fe.Modal,{className:t,isMobile:r,CONSTANTS:n,children:e})});Iu.displayName="Filter.Root";const Nu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:n,onToggleFacet:i}=ut();return o.jsx("div",{className:Le["filter--selected"],children:o.jsx("div",{className:Le["filter--selected--content"],children:Array.isArray(n.selected)&&n.selected.map(({key:s,value:a})=>s==="productclusterids"?null:o.jsx(_.Tag,{title:s==="price"?lo({value:a}):a,adornment:{end:o.jsx(_.Icon,{name:e.close,size:"x-small"})},colorSquare:Ko({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>i({key:s,value:a}),squareShow:Vo({key:s,PLP_FILTERS:r}),size:"medium",variant:"primary",children:s==="price"?lo({value:a}):a},a))})})};Nu.displayName="Filter.Selected";const Fe={Colors:ju,Content:xu,Empty:Cu,Modal:Pu,Item:Su,Root:Iu,Loading:wu,Selected:Nu,Price:Au,Sizes:Eu,Toggle:Ru},ng={teamComponents:{AddToCart:Mo,BackToTop:Mf,BuyPackage:Cp,Filter:{...Fe,helpers:rg},...Lh,FreightCalculation:mm,Header:Hl,Link:Ge,Media:Be,ProductCard:ye,ProductList:hm,ProductVariationList:Ye,Sort:Jl,UserMenu:Bo},template:{pdp:Fh},utils:{EventCollector:qh,ExternalScripts:Jh,LinkOrNotLink:Ct,ObserverWrapper:nr,SnackBarComponent:gt,DraftJsLinkWrapper:_u}},og=(e,t)=>{const r=e.map(i=>`'${i.source}'`).join(`,
|
|
40
|
+
*/const c=a(357),l=(C,I,B)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||C===I)return String(C);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...B};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let O=String(R.relaxZeros),N=String(R.shorthand),$=String(R.capture),E=String(R.wrap),F=C+":"+I+"="+O+N+$+E;if(l.cache.hasOwnProperty(F))return l.cache[F].result;let H=Math.min(C,I),U=Math.max(C,I);if(Math.abs(H-U)===1){let w=C+"|"+I;return R.capture?`(${w})`:R.wrap===!1?w:`(?:${w})`}let K=S(C)||S(I),W={min:C,max:I,a:H,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),H<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(H),W,R),H=W.a=0}return U>=0&&(z=d(H,U,W,R)),W.negatives=ne,W.positives=z,W.result=u(ne,z),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[F]=W,W.result};function u(C,I,B){let R=m(C,I,"-",!1)||[],O=m(I,C,"",!1)||[],N=m(C,I,"-?",!0)||[];return R.concat(N).concat(O).join("|")}function f(C,I){let B=1,R=1,O=b(C,B),N=new Set([I]);for(;C<=O&&O<=I;)N.add(O),B+=1,O=b(C,B);for(O=j(I+1,R)-1;C<O&&O<=I;)N.add(O),R+=1,O=j(I+1,R)-1;return N=[...N],N.sort(y),N}function p(C,I,B){if(C===I)return{pattern:C,count:[],digits:0};let R=h(C,I),O=R.length,N="",$=0;for(let E=0;E<O;E++){let[F,H]=R[E];F===H?N+=F:F!=="0"||H!=="9"?N+=A(F,H):$++}return $&&(N+=B.shorthand===!0?"\\d":"[0-9]"),{pattern:N,count:[$],digits:O}}function d(C,I,B,R){let O=f(C,I),N=[],$=C,E;for(let F=0;F<O.length;F++){let H=O[F],U=p(String($),String(H),R),K="";if(!B.isPadded&&E&&E.pattern===U.pattern){E.count.length>1&&E.count.pop(),E.count.push(U.count[0]),E.string=E.pattern+v(E.count),$=H+1;continue}B.isPadded&&(K=P(H,B,R)),U.string=K+U.pattern+v(U.count),N.push(U),$=H+1,E=U}return N}function m(C,I,B,R,O){let N=[];for(let $ of C){let{string:E}=$;!R&&!g(I,"string",E)&&N.push(B+E),R&&g(I,"string",E)&&N.push(B+E)}return N}function h(C,I){let B=[];for(let R=0;R<C.length;R++)B.push([C[R],I[R]]);return B}function y(C,I){return C>I?1:I>C?-1:0}function g(C,I,B){return C.some(R=>R[I]===B)}function b(C,I){return Number(String(C).slice(0,-I)+"9".repeat(I))}function j(C,I){return C-C%Math.pow(10,I)}function v(C){let[I=0,B=""]=C;return B||I>1?`{${I+(B?","+B:"")}}`:""}function A(C,I,B){return`[${C}${I-C===1?"":"-"}${I}]`}function S(C){return/^-?(0+)\d/.test(C)}function P(C,I,B){if(!I.isPadded)return C;let R=Math.abs(I.maxLen-String(C).length),O=B.relaxZeros!==!1;switch(R){case 0:return"";case 1:return O?"0?":"0";case 2:return O?"0{0,2}":"00";default:return O?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},i.exports=l},17:i=>{i.exports=fh},837:i=>{i.exports=Kh()}},t={};function r(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}},c=!0;try{e[i](a,a.exports,r),c=!1}finally{c&&delete t[i]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Vr.exports=n})()),Vr.exports}var Zs;function Qh(){return Zs||(Zs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var c in a)Object.defineProperty(s,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return i}});const r=Xh();function n(s,a){if(s.protocol!==void 0){const l=a.protocol.slice(0,-1);if(s.protocol!==l)return!1}if(s.port!==void 0&&s.port!==a.port)return!1;if(s.hostname===void 0)throw new Error(`Pattern should define hostname but found
|
|
41
|
+
`+JSON.stringify(s));if(!(0,r.makeRe)(s.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=s.pathname)!=null?c:"**").test(a.pathname)}function i(s,a,c){return s.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Wr)),Wr}var Js;function Bu(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:i,src:s,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(s||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:s,width:a,quality:c}));if(s.startsWith("//"))throw new Error('Failed to parse src "'+s+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!s.startsWith("/")&&(i.domains||i.remotePatterns)){let u;try{u=new URL(s)}catch(f){throw console.error(f),new Error('Failed to parse src "'+s+'" 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:f}=Qh();if(!f(i.domains,i.remotePatterns,u))throw new Error("Invalid src prop ("+s+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return i.path+"?url="+encodeURIComponent(s)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Gr)),Gr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Pe,i=ct._(x),s=r._(pa),a=r._(uh()),c=Vo,l=cr,u=dh(),f=At,p=al(),d=r._(Bu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,A,S,P,C,I){const B=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===B)return;v["data-loaded-src"]=B,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(A!=="empty"&&C(!0),S!=null&&S.current){const O=new Event("load");Object.defineProperty(O,"target",{writable:!1,value:v});let N=!1,$=!1;S.current({...O,nativeEvent:O,currentTarget:v,target:v,isDefaultPrevented:()=>N,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{N=!0,O.preventDefault()},stopPropagation:()=>{$=!0,O.stopPropagation()}})}if(P!=null&&P.current&&P.current(v),process.env.NODE_ENV!=="production"){const O=new URL(B,"http://n").searchParams.get("url")||B;if(v.getAttribute("data-nimg")==="fill"){if(!I&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+O+'" 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'),v.parentElement){const{position:E}=window.getComputedStyle(v.parentElement),F=["absolute","fixed","relative"];F.includes(E)||(0,f.warnOnce)('Image with src "'+O+'" has "fill" and parent element with invalid "position". Provided "'+E+'" should be one of '+F.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+O+'" 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 N=v.height.toString()!==v.getAttribute("height"),$=v.width.toString()!==v.getAttribute("width");(N&&!$||!N&&$)&&(0,f.warnOnce)('Image with src "'+O+`" 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(v){const[A,S]=i.version.split("."),P=parseInt(A,10),C=parseInt(S,10);return P>18||P===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const g=(0,i.forwardRef)((v,A)=>{let{src:S,srcSet:P,sizes:C,height:I,width:B,decoding:R,className:O,style:N,fetchPriority:$,placeholder:E,loading:F,unoptimized:H,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:M,...D}=v;return i.default.createElement("img",{...D,...y($),loading:F,width:B,height:I,decoding:R,"data-nimg":U?"fill":"1",className:O,style:N,sizes:C,srcSet:P,src:S,ref:(0,i.useCallback)(X=>{A&&(typeof A=="function"?A(X):typeof A=="object"&&(A.current=X)),X&&(M&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(S||console.error('Image is missing required "src" property:',X),X.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.')),X.complete&&h(X,E,K,W,z,H))},[S,E,K,W,z,M,H,A]),onLoad:X=>{const te=X.currentTarget;h(te,E,K,W,z,H)},onError:X=>{ne(!0),E!=="empty"&&z(!0),M&&M(X)}})});function b(v){let{isAppRouter:A,imgAttributes:S}=v;const P={as:"image",imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:S.crossOrigin,referrerPolicy:S.referrerPolicy,...y(S.fetchPriority)};return A&&s.default.preload?(s.default.preload(S.src,P),null):i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+S.src+S.srcSet+S.sizes,rel:"preload",href:S.srcSet?void 0:S.src,...P}))}const j=(0,i.forwardRef)((v,A)=>{const P=!(0,i.useContext)(p.RouterContext),C=(0,i.useContext)(u.ImageConfigContext),I=(0,i.useMemo)(()=>{const W=m||C||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,M)=>w-M),ne=W.deviceSizes.sort((w,M)=>w-M);return{...W,allSizes:z,deviceSizes:ne}},[C]),{onLoad:B,onLoadingComplete:R}=v,O=(0,i.useRef)(B);(0,i.useEffect)(()=>{O.current=B},[B]);const N=(0,i.useRef)(R);(0,i.useEffect)(()=>{N.current=R},[R]);const[$,E]=(0,i.useState)(!1),[F,H]=(0,i.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:I,blurComplete:$,showAltText:F});return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:O,onLoadingCompleteRef:N,setBlurComplete:E,setShowAltText:H,ref:A}),K.priority?i.default.createElement(b,{isAppRouter:P,imgAttributes:U}):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)})(uo,uo.exports);var Yh=uo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Pe,n=Vo,i=At,s=Yh,a=r._(Bu()),c=u=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=s.Image})(Eu);var Zh=Eu;const ea=nr(Zh),Jh=({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?o.jsxs(Oe,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(ea,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]}):o.jsxs("div",{className:pe["support-item"],children:[e.image&&o.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?o.jsx(ea,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]})},eg=({content:e,CONSTANTS:t})=>o.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>o.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[o.jsxs("div",{className:pe["support-text"],children:[r.title&&o.jsx("h3",{children:r.title}),r.description&&o.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&o.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((i,s)=>o.jsx(Jh,{item:i,CONSTANTS:t},`footer-support-item-${s}`))})]},`footer-support-${n}`))}),tg=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:i,columnAlignItems:s,textAlignContent:a,textAlignItems:c,children:l})=>o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:i,alignItems:s}},children:o.jsxs(_.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[o.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[o.jsx(_.Icon,{name:`${t}`,size:"small"}),e&&o.jsx("div",{children:e})]}),o.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),rg=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:i,...s})=>o.jsxs(_.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...s,children:[o.jsx(_.Accordion.Header,{id:(s==null?void 0:s.id)??"",className:pe.accordionHeader,closeIndicator:o.jsx(_.Icon,{name:i.arrow_up,size:"medium"}),openIndicator:o.jsx(_.Icon,{name:i.arrow_down,size:"medium"}),title:"accordion-header",children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[o.jsx(_.Icon,{name:`${t}`,size:"medium"}),o.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),o.jsx(_.Accordion.Body,{title:"accordion-body",children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Xn=e=>{const{isMobile:t}=Se();return t?o.jsx(rg,{...e}):o.jsx(tg,{...e})},Wt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:i,icons:s,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Re();switch(e){case"menu":b=o.jsx(Oe,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:o.jsx("span",{onClick:()=>{j({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=o.jsxs("div",{className:_.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,o.jsxs("div",{className:_.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,o.jsx("div",{className:pe.footer__iconList,children:s==null?void 0:s.map((A,S)=>o.jsx(v,{alt:A,src:`/assets/${A}.svg`,width:c??20,height:c??20},S))})]})]});break;case"social-media":b=o.jsx("div",{className:pe.footer__iconContainer,...g,children:o.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((A,S)=>o.jsx(Oe,{prefetch:!1,href:A.link??"#",target:"_blank",children:o.jsx(_.Icon,{size:"medium",name:A.icon,onClick:()=>j({content:`footer:redes-sociais:${A.icon}`})})},S))})});break;default:b=o.jsx("div",{className:r,...g,children:t})}return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:o.jsx(_.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:_.helpers.classNameConcat(pe.footer__item,r),children:b})})},ng=({className:e,text:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(pe.footer__legalInformation,e),children:o.jsx("span",{children:t})}),Fu=()=>{const{nextimage:e}=Re();return o.jsx("div",{className:pe["footer--stamps"],children:o.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Fu.displayName="Footer.Stamps";const qu=({children:e,legalTextSlot:t,adornment:r,className:n,...i})=>{const{isMobile:s}=Se(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return o.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&o.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&o.jsx("div",{...i,className:_.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${s?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&o.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&o.jsx("div",{className:pe.footer__legalText,children:t})]})};qu.displayName="Footer.Wrapper";const zu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:i,LEGAL_INFORMATION_TEXT:s,ICONS:a})=>{var c;return o.jsxs(qu,{adornment:i,legalTextSlot:o.jsx(ng,{text:s}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>o.jsx(Xn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>o.jsx(Wt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&o.jsx(Xn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:o.jsx(Wt,{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(Xn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?o.jsx(Wt,{children:r==null?void 0:r.subTitle}):null,o.jsx(Wt,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(Fu,{})]})]})};zu.displayName="Footer";const og=Object.freeze(Object.defineProperty({__proto__:null,Footer:zu,FooterSupport:eg},Symbol.toStringTag,{value:"Module"})),ta=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const i=_a(e.imageUrl,n.pdp),{nextimage:s}=Re();return o.jsx(s,{src:i,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},ig=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),i=x.useRef(!1);return o.jsx(Be.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{i.current||(i.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},sg={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Hu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:i})=>{var u,f;const{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(_.Carousel.Root,{innerRef:p=>{s(p)},className:sg["gallery-carousel-modifier"],children:[o.jsx(_.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),o.jsxs(_.Carousel.Body,{children:[o.jsx(_.Carousel.Item,{style:l,children:o.jsx(ta,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},"PDP_gallery_0"),t&&o.jsx(_.Carousel.Item,{style:l,children:o.jsx(ig,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:o.jsx(_.Carousel.Item,{style:l,children:o.jsx(ta,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},`PDP_gallery_${d}`))]})]})};Hu.displayName="PDP.Carousel";const ag=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Ro(),[i,s]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const a=c=>{s({show:!0,initialIndex:c})};return o.jsx(o.Fragment,{children:o.jsx(Hu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Uu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Ro(),n=x.useMemo(()=>{const i=r.filter(s=>!e.includes(s.imageLabel));return i.length>0?i:r},[]);return o.jsx(ag,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Uu.displayName="PDP.Gallery";const cg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Uu},Symbol.toStringTag,{value:"Module"})),lg=({page:e,data:t})=>{const{pathname:r}=Re(),n=x.useRef(null),{sendDataLayerEvent:i,currentLocalRef:s,itemListRef:a,promotionEventRef:c}=ge();return x.useEffect(()=>{const l=Ic("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);i({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),To("login_event","",{expires:f})}},[]),x.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=Ra(),h=m,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&i({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};s.current=e,i({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var fo={exports:{}};function ug(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 Qn={},Yn={},ra;function dg(){return ra||(ra=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Pe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Yn)),Yn}var na;function fg(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Pe._(x),n=dg();function i(h){return h&&h.default?h.default:h}const s=[],a=[];let c=!1;function l(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function u(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function j(){if(!b){const S=new f(h,g);b={getCurrentValue:S.getCurrentValue.bind(S),subscribe:S.subscribe.bind(S),retry:S.retry.bind(S),promise:S.promise.bind(S)}}return b.promise()}if(typeof window>"u"&&s.push(j),!c&&typeof window<"u"){const S=g.webpack&&typeof ug.resolveWeak=="function"?g.webpack():g.modules;S&&a.push(P=>{for(const C of S)if(P.includes(C))return j()})}function v(){j();const S=r.default.useContext(n.LoadableContext);S&&Array.isArray(g.modules)&&g.modules.forEach(P=>{S(P)})}function A(S,P){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(g.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(i(C.loaded),S):null,[S,C])}return A.preload=()=>j(),A.displayName="LoadableComponent",r.default.forwardRef(A)}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: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(b=>{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 p(h){return u(l,h)}function d(h,y){let g=[];for(;h.length;){let b=h.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(s).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(Qn)),Qn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Pe,i=n._(x),s=n._(fg()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>i.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=s.default,m={loading:g=>{let{error:b,isLoading:j,pastDelay:v}=g;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(j)return null;if(b)return i.default.createElement("p",null,b.message,i.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,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)})(fo,fo.exports);var pg=fo.exports,mg=pg;const hg=nr(mg);var po={exports:{}},Vt={exports:{}},oa;function gg(){return oa||(oa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return s},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function s(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const b=p[y].nextSibling;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&d.push(b)}const h=u.map(i).filter(y=>{for(let g=0,b=d.length;g<b;g++){const j=d[g];if(s(j,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=y.parentNode)==null||j.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&m.push(b)}const y=u.map(i).filter(g=>{for(let b=0,j=m.length;b<j;b++){const v=m[b];if(s(v,g))return m.splice(b,1),!1}return!0});m.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.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 m=u[d.type]||[];m.push(d),u[d.type]=m});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{a(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)}(Vt,Vt.exports)),Vt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,P){for(var C in P)Object.defineProperty(S,C,{enumerable:!0,get:P[C]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return j},default:function(){return A}});const n=Pe,i=ct,s=n._(pa),a=i._(x),c=Pu(),l=gg(),u=cl(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=S=>{if(s.default.preinit){S.forEach(P=>{s.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;S.forEach(C=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=C,P.appendChild(I)})}},h=S=>{const{src:P,id:C,onLoad:I=()=>{},onReady:B=null,dangerouslySetInnerHTML:R,children:O="",strategy:N="afterInteractive",onError:$,stylesheets:E}=S,F=C||P;if(F&&p.has(F))return;if(f.has(P)){p.add(F),f.get(P).then(I,$);return}const H=()=>{B&&B(),p.add(F)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),H()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});R?(U.innerHTML=R.__html||"",H()):O?(U.textContent=typeof O=="string"?O:Array.isArray(O)?O.join(""):"",H()):P&&(U.src=P,f.set(P,K));for(const[W,z]of Object.entries(S)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}N==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",N),E&&m(E),document.body.appendChild(U)};function y(S){const{strategy:P="afterInteractive"}=S;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))}):h(S)}function g(S){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(S)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const C=P.id||P.getAttribute("src");p.add(C)})}function j(S){S.forEach(y),b()}function v(S){const{id:P,src:C="",onLoad:I=()=>{},onReady:B=null,strategy:R="afterInteractive",onError:O,stylesheets:N,...$}=S,{updateScripts:E,scripts:F,getIsSsr:H,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||C;W.current||(B&&ne&&p.has(ne)&&B(),W.current=!0)},[B,P,C]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?h(S):R==="lazyOnload"&&g(S),z.current=!0)},[S,R]),(R==="beforeInteractive"||R==="worker")&&(E?(F[R]=(F[R]||[]).concat([{id:P,src:C,onLoad:I,onReady:B,onError:O,...$}]),E(F)):H&&H()?p.add(P||C):H&&!H()&&h(S)),U){if(N&&N.forEach(ne=>{s.default.preinit(ne,{as:"style"})}),R==="beforeInteractive")return C?(s.default.preload(C,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));R==="afterInteractive"&&C&&s.default.preload(C,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const A=v;(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)})(po,po.exports);var yg=po.exports,_g=yg;const vg=nr(_g),bg=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx(vg,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),xg=hg(()=>Promise.resolve(bg),{ssr:!1}),Cg={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},_t=({size:e,adornment:t,title:r,subtitle:n,supportChildren:i,className:s,Z_INDEX_WAR:a,...c})=>o.jsxs(_.SnackBar.Structure,{...c,size:e,className:_.helpers.classNameConcat(Cg["snackbar-modifier"],s),width:360,style:{zIndex:a.snackbar},children:[o.jsx(_.SnackBar.Content,{adornment:t,title:r,subtitle:n}),i&&o.jsx(_.SnackBar.Support,{children:i})]});_t.displayName="SnackBar";const Gu=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?o.jsx(Oe,{href:n,children:e}):e},Sg={teamComponents:{AddToCart:Lo,BackToTop:Qf,BuyPackage:$p,Filter:{...Fe,helpers:iu},...og,FreightCalculation:Im,Header:Xl,Link:qe,Media:Be,PLPNavigation:lt,ProductCard:ye,ProductList:zm,ProductVariationList:Ye,Sort:zo,UserMenu:qo},template:{pdp:cg},utils:{EventCollector:lg,ExternalScripts:xg,LinkOrNotLink:jt,ObserverWrapper:sr,SnackBarComponent:_t,DraftJsLinkWrapper:Gu}},jg=(e,t)=>{const r=e.map(i=>`'${i.source}'`).join(`,
|
|
42
42
|
`);return`
|
|
43
43
|
import type { NextRequest } from 'next/server'
|
|
44
44
|
import { NextResponse } from 'next/server'
|
|
@@ -78,4 +78,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
|
|
|
78
78
|
${r}
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
|
-
`},ig=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:og},Symbol.toStringTag,{value:"Module"})),sg={helpers:ig},ag=(e,t,r)=>{e.findEntityRanges(n=>{const i=n.getEntity();return i===null?!1:r.getEntity(i).getType()==="LINK"},t)},Qt=e=>{const t=new $e.CompositeDecorator([{strategy:ag,component:_u}]),r=$e.convertFromRaw(e);return $e.EditorState.createWithContent(r,t)},cg=e=>$e.convertFromRaw(e),Yt=$e.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ta="superior-direita",Wt="dentro-inferior-centro",lg="inferior-direita",Xn="dentro-inferior-esquerda",Ou=e=>({position:e===Wt||e===Xn?"absolute":"default",shouldRender:[ta,Wt,Xn].includes(e)?"top":"bottom",alignItems:[Wt].includes(e)?"center":[ta,lg].includes(e)?"flex-end":"flex-start",left:e===Xn?"16px":e===Wt?"45%":"unset"}),ug=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Qt,EXTENDED_BLOCK_RENDER_MAP:Yt,GET_CONTENT_STATE:cg,controllersPositionsAdapter:Ou},Symbol.toStringTag,{value:"Module"})),rt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],dg=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:r=>r.preventDefault(),children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Yt,editorState:t!=null&&t.textStructureReduced?Qt(JSON.parse(t.textStructureReduced)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Yt,editorState:t.textStructure?Qt(JSON.parse(t.textStructure)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),uo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},fg="_textContentWrapper_1bigo_5",pg="_textContentSection_1bigo_13",fo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:fg,textContentSection:pg},Tu=({data:e,ICONS:t})=>{var i;const[r,n]=C.useState(!1);return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:rt(e.textStructureAlignment),alignItems:rt(e.textStructureAlignment)},columnWrapper:{alignContent:rt(e.textStructureAlignment),alignItems:rt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(_.Button,{variant:"tertiary",adornment:{end:o.jsx(_.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(s=>!s),size:"small",children:r?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(_.Utils.Column,{className:fo.textContentWrapper,style:{alignItems:rt(e.textStructureAlignment)},children:[o.jsx(_.TextStructure.DivWrapper,{style:{textAlign:rt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:uo["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(dg,{content:e,expanded:r}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(Ge,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:fo["link-modifier"],adornments:(i=e.textStructureButtonIcon)!=null&&i.length&&e.enableIcon?{end:o.jsx(_.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},mg=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],ra=e=>({centro:"center",esquerda:"start",direita:"end"})[e],po=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[i,s]=C.useState(Ic(new Yo.TZDate(Date.now(),r),new Yo.TZDate(e,r))),[a,c]=C.useState(!1);C.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(i<=0){clearInterval(u);return}s(i-1e3)},1e3);return()=>{clearInterval(u)}},[i,s,a]);const l=mt(i,"days");return a&&i>0?o.jsxs(_.Timer.Root,{...n,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(_.Timer.Digit,{label:"dias",value:l}),o.jsx(_.Timer.Separator,{})]}):null,o.jsx(_.Timer.Digit,{label:"horas",value:mt(i,"hours")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"min",value:mt(i,"minutes")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"segs",value:mt(i),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},na={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},oa=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:i,...s})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:b,timerInit:j,textStructure:v,textStructureReduced:A}=e.banner,S=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Ee();return o.jsxs(_.Banner.Container,{...s,children:[o.jsxs(_.Banner.ImageWrapper,{className:na["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&o.jsx(Be.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),S&&!(a!=null&&a.length)&&o.jsx(P,{src:S,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:p}})]}),h||A||v?o.jsx(_.Banner.Slot,{...mg(d??"centro"),className:na["content-modifier"],style:{textAlign:ra(m)},children:o.jsxs(_.Utils.Column,{gap:"16px",alignItems:ra(m),children:[h&&y==="timer-first"&&o.jsx(po,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),o.jsx(Tu,{data:e.banner,ICONS:i}),h&&y!=="timer-first"&&o.jsx(po,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):o.jsx(o.Fragment,{})]})},Xo=({data:e,className:t,priority:r,creative:n,...i})=>{const{handleSelectPromotionEvent:s,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=C.useRef(null),m=C.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),j=b==null?void 0:b.filter(A=>A.includes("loc")||A.includes("signature")||A.includes("user_id")),v=j==null?void 0:j.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return o.jsx(nr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?o.jsx(Oe,{href:e.banner.href,onClick:()=>{s({updatePromotionRef:!0,promotion:p,index:l})},children:o.jsx(oa,{data:e,videoUrl:m,priority:r,videoRef:d,...i})}):o.jsx(oa,{data:e,videoUrl:m,priority:r,videoRef:d,...i})})},Mu=e=>o.jsx(Xo,{...e}),mo={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function hg(e,t){const{mediatorRef:r}=Se();C.useEffect(()=>r.current.subscribe(e,t),[e,t])}const ia=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:i,position:s,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=C.useState("default");return hg("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),o.jsxs(_.Carousel.Controller,{className:mo["carousel-controllers-modifier"],position:s??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[o.jsxs(_.Carousel.Arrows,{className:mo["carrousel-arrows-display-controller"],children:[o.jsx(_.Button,{variant:"tertiary",onClick:e,adornment:{start:o.jsx(_.Icon,{name:u.arrow_left})},mode:f}),o.jsx(_.Button,{variant:"tertiary",onClick:t,adornment:{start:o.jsx(_.Icon,{name:u.arrow_right})},mode:f})]}),o.jsx(_.Carousel.Bullets,{page:n,total:i,onBulletClick:r,mode:f})]})},gg=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:i}=Se();return t.data.first?o.jsx(nr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{i.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):o.jsx(o.Fragment,{children:e})},yg=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:i,itemsStyles:s}=_.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=C.useRef(void 0),c=C.useMemo(()=>Ou(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=C.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{i==null||i.nextPage()},e.data.config.slideDuration*1e3))},[i,e.data.config.slideDuration,n.totalPages]),u=C.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=C.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>i==null?void 0:i.nextPage()),prevOnClick:()=>u(()=>i==null?void 0:i.prevPage()),onBulletClick:m=>u(()=>i==null?void 0:i.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,i]);return C.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),o.jsxs(_.Carousel.Root,{innerRef:d=>{r(d)},className:_.helpers.classNameConcat(mo["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?o.jsx(ia,{ICONS:t,...f,isFirst:e.data.first}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>o.jsx(_.Carousel.Item,{style:s,children:o.jsx(gg,{data:e,banner:d,children:o.jsx(Xo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?o.jsx(ia,{ICONS:t,...f}):o.jsx(o.Fragment,{})]})},_g={Banner:Mu},ft={"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"},vg=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Se(),n=e.config.size??"medium",i=e.config.disableCarouselMobile??!1,{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&i?"column":"row"});return o.jsx(_.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(_.Carousel.Root,{innerRef:f=>{s(f)},className:_.helpers.classNameConcat(ft["carousel-modifier"],"common-section"),children:[n==="medium"?o.jsxs(_.TextStructure.Root,{children:[o.jsx(_.TextStructure.DivWrapper,{className:ft["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?o.jsx(_.Carousel.Controller,{className:ft["row-controller-modifier"],children:o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:e.bennefit.map((f,p)=>o.jsx(_.Carousel.Item,{className:ft["card-modifier"],style:l,children:o.jsx(_.Card,{stroke:!0,padding:"small",children:o.jsx(_.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:o.jsx(_.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:o.jsxs(_.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=${p}`))}),!r&&a.totalPages>1?o.jsxs(_.Carousel.Controller,{className:ft["row-controller-modifier"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},bg=({data:e,ICONS:t})=>o.jsx("div",{className:_.helpers.classNameConcat(fo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(Tu,{data:e,ICONS:t})}),sa={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},xg=({data:e,id:t,ICONS:r})=>{var s;const[n,i]=C.useState([]);return o.jsxs(_.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):o.jsx(o.Fragment,{}),(s=e.accordions)==null?void 0:s.map((a,c)=>o.jsxs(_.Accordion.Wrapper,{className:sa["accordion-modifier"],children:[o.jsx(_.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:o.jsx(_.Icon,{name:r.arrow_down}),closeIndicator:o.jsx(_.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>i(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:uo["draftjs-text-modifier"],children:[o.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?o.jsx("h2",{children:a.subtitle}):o.jsx(o.Fragment,{})]})})}),o.jsx(_.Accordion.Body,{children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:_.helpers.classNameConcat(sa["accordion-body-modifier"],uo["draftjs-text-modifier"]),children:o.jsx($e.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Yt,editorState:a.text?Qt(JSON.parse(a.text)):$e.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},ku=C.createContext({}),Cg=({data:e,children:t,...r})=>{var h,y,g,b,j,v,A,S,P,x,I,B,E;const[n,i]=C.useState(!0),{initialize:s,controller:a,itemsStyles:c}=_.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(S=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:S.backgroundColor,textColorVariant:(x=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:x.textColorVariant,content:((B=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:B.items)??[]},u=(E=l.content)==null?void 0:E.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{i(!1)},m=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(ku.Provider,{value:{isOpen:n,setIsOpen:i,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:a,itemsStyles:c},...r},children:t})},ze=()=>C.useContext(ku),Sg=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=ze();return o.jsx(po,{dateEnd:new Date(e),TIME_ZONE:r,...t})},jg="_tipbar_bt3p0_1",Ag="_tipbar__carousel_bt3p0_15",Rt={tipbar:jg,tipbar__carousel:Ag,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Eg=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:i}=ze(),{addCouponSeller:s,cartStore:a}=qe(),[c,l]=C.useState({status:!1,showSnackBar:!1}),[u,f]=C.useState(!1),[p,d]=C.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await s(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return C.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},i.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),C.useEffect(()=>{u&&setTimeout(()=>{f(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[u]),C.useEffect(()=>{p&&setTimeout(()=>{d(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[p]),o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...n,onClick:m,disabled:c.status,className:Rt["tipbar-item__coupon"],children:c.status?`${i.TIPBAR_CONFIGS.coupon_applied_message}`:`${i.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&o.jsx(gt,{title:t,subtitle:r,Z_INDEX_WAR:i.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&o.jsx(gt,{title:i.TIPBAR_CONFIGS.coupon_error_title,subtitle:i.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-coupon-${e}`),p&&o.jsx(gt,{title:i.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:i.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Rg=({title:e,description:t,style:r,mode:n,className:i})=>o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{mode:n,className:i,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),wg=({coupon:e,...t})=>{const{CONSTANTS:r}=ze();return o.jsx(_.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Pg=({staticZone:e,type:t,className:r,description:n,title:i})=>{const{mode:s}=ze();if(t==="countdown")return o.jsx(Sg,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:e.couponButtonMode,fallback:"default"}),c=_.helpers.ValidateProp({fieldTypes:ot.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Eg,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=_.helpers.ValidateProp({fieldTypes:ot.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?o.jsx(wg,{coupon:e.coupon,mode:a}):null}return o.jsx(Rg,{title:i,description:n,mode:s,className:r})},aa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=ze();return o.jsx(_.Button,{title:"fechar tipbar",className:Rt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(_.Icon,{name:r.ICONS.close})}})},Ig=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:i,CONSTANTS:s}=ze(),a=C.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=i.controller)==null||p.prevPage():(d=i.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=C.useCallback(()=>{if(n&&i.controller){const u=setInterval(()=>{var f;(f=i.controller)==null||f.nextPage()},n);a.current=u}},[n,i]);return C.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),o.jsxs(_.Carousel.Root,{innerRef:u=>{i.initialize(u)},className:Rt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_left})}}),o.jsx(_.Carousel.Body,{children:e}),r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_right})}})]})},Ng=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:i,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=ze(),u=r&&a;return o.jsx("div",{style:s,"data-hasclosebtn":i,className:_.helpers.classNameConcat(Rt.tipbar,t),children:r?o.jsxs(o.Fragment,{children:[o.jsx(Ig,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),i&&o.jsx(aa,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):o.jsxs(o.Fragment,{children:[e,i&&o.jsx(aa,{handleCloseTipbar:l,mode:n})]})})},Og=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:i}=ze(),s=o.jsx("div",{...r,className:Rt["tipbar-item"],children:e});return n?o.jsx(_.Carousel.Item,{style:i.itemsStyles,children:s}):s},Lu=({className:e})=>{const{isOpen:t,slices:r}=ze();return r.length&&t?o.jsx(Ng,{children:r.map((n,i)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(Ct,{href:n.link,children:o.jsx(Og,{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,c)=>o.jsx(Pg,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${i}`)})}):null};Lu.displayName="TipBar.Root";const ho=({className:e,...t})=>o.jsx(Cg,{...t,children:o.jsx(Lu,{className:e})});ho.displayName="TipBar";const Tg=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),i=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return o.jsxs("div",{ref:r,className:Me.responsive["responsive-flex"],children:[i?o.jsx("div",{className:Me.responsive["responsive-mobile-flex"],children:o.jsx(ho,{data:i,CONSTANTS:e})}):null,n?o.jsx("div",{className:Me.responsive["responsive-desktop-flex"],children:o.jsx(ho,{data:n,CONSTANTS:e})}):null]})},ca={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Mg=e=>{const{nextimage:t}=Ee();return o.jsx(o.Fragment,{children:e.data.banners.map((r,n)=>o.jsx("div",{className:ca["card-image-wrapper"],children:o.jsx("div",{className:ca["card-image-container"],children:o.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},kg={Banner:_g,BannerSection:Xo,BennefitsBarSection:vg,SingleBannerSection:Mu,TextContentSection:bg,BannerCarousel:yg,TextAccordionSection:xg,TipbarScreening:Tg,ImageGrid:Mg},Lg={Components:kg,helpers:ug};exports.cms=Lg;exports.contexts=hf;exports.data=To;exports.layout=ng;exports.scripts=sg;
|
|
81
|
+
`},Ag=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:jg},Symbol.toStringTag,{value:"Module"})),Rg={helpers:Ag},Eg=(e,t,r)=>{e.findEntityRanges(n=>{const i=n.getEntity();return i===null?!1:r.getEntity(i).getType()==="LINK"},t)},Zt=e=>{const t=new $e.CompositeDecorator([{strategy:Eg,component:Gu}]),r=$e.convertFromRaw(e);return $e.EditorState.createWithContent(r,t)},wg=e=>$e.convertFromRaw(e),Jt=$e.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ia="superior-direita",Kt="dentro-inferior-centro",Pg="inferior-direita",Zn="dentro-inferior-esquerda",Wu=e=>({position:e===Kt||e===Zn?"absolute":"default",shouldRender:[ia,Kt,Zn].includes(e)?"top":"bottom",alignItems:[Kt].includes(e)?"center":[ia,Pg].includes(e)?"flex-end":"flex-start",left:e===Zn?"16px":e===Kt?"45%":"unset"}),Ig=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Zt,EXTENDED_BLOCK_RENDER_MAP:Jt,GET_CONTENT_STATE:wg,controllersPositionsAdapter:Wu},Symbol.toStringTag,{value:"Module"})),nt=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Ng=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:r=>r.preventDefault(),children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t!=null&&t.textStructureReduced?Zt(JSON.parse(t.textStructureReduced)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx($e.Editor,{editorKey:"draft-editor-1",blockRenderMap:Jt,editorState:t.textStructure?Zt(JSON.parse(t.textStructure)):$e.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),mo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Og="_textContentWrapper_1bigo_5",Tg="_textContentSection_1bigo_13",ho={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Og,textContentSection:Tg},Vu=({data:e,ICONS:t})=>{var i;const[r,n]=x.useState(!1);return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:nt(e.textStructureAlignment),alignItems:nt(e.textStructureAlignment)},columnWrapper:{alignContent:nt(e.textStructureAlignment),alignItems:nt(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?o.jsx(_.Button,{variant:"tertiary",adornment:{end:o.jsx(_.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(s=>!s),size:"small",children:r?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(_.Utils.Column,{className:ho.textContentWrapper,style:{alignItems:nt(e.textStructureAlignment)},children:[o.jsx(_.TextStructure.DivWrapper,{style:{textAlign:nt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:mo["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(Ng,{content:e,expanded:r}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(qe,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:ho["link-modifier"],adornments:(i=e.textStructureButtonIcon)!=null&&i.length&&e.enableIcon?{end:o.jsx(_.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},Mg=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],sa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],go=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[i,s]=x.useState(Lc(new ei.TZDate(Date.now(),r),new ei.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(i<=0){clearInterval(u);return}s(i-1e3)},1e3);return()=>{clearInterval(u)}},[i,s,a]);const l=gt(i,"days");return a&&i>0?o.jsxs(_.Timer.Root,{...n,children:[l?o.jsxs(o.Fragment,{children:[o.jsx(_.Timer.Digit,{label:"dias",value:l}),o.jsx(_.Timer.Separator,{})]}):null,o.jsx(_.Timer.Digit,{label:"horas",value:gt(i,"hours")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"min",value:gt(i,"minutes")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"segs",value:gt(i),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},aa={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ca=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:i,...s})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:b,timerInit:j,textStructure:v,textStructureReduced:A}=e.banner,S=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Re();return o.jsxs(_.Banner.Container,{...s,children:[o.jsxs(_.Banner.ImageWrapper,{className:aa["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&o.jsx(Be.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),S&&!(a!=null&&a.length)&&o.jsx(P,{src:S,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:p}})]}),h||A||v?o.jsx(_.Banner.Slot,{...Mg(d??"centro"),className:aa["content-modifier"],style:{textAlign:sa(m)},children:o.jsxs(_.Utils.Column,{gap:"16px",alignItems:sa(m),children:[h&&y==="timer-first"&&o.jsx(go,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),o.jsx(Vu,{data:e.banner,ICONS:i}),h&&y!=="timer-first"&&o.jsx(go,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):o.jsx(o.Fragment,{})]})},Zo=({data:e,className:t,priority:r,creative:n,...i})=>{const{handleSelectPromotionEvent:s,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),m=x.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),j=b==null?void 0:b.filter(A=>A.includes("loc")||A.includes("signature")||A.includes("user_id")),v=j==null?void 0:j.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return o.jsx(sr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?o.jsx(Oe,{href:e.banner.href,onClick:()=>{s({updatePromotionRef:!0,promotion:p,index:l})},children:o.jsx(ca,{data:e,videoUrl:m,priority:r,videoRef:d,...i})}):o.jsx(ca,{data:e,videoUrl:m,priority:r,videoRef:d,...i})})},Ku=e=>o.jsx(Zo,{...e}),yo={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function kg(e,t){const{mediatorRef:r}=Se();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const la=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:i,position:s,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=x.useState("default");return kg("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),o.jsxs(_.Carousel.Controller,{className:yo["carousel-controllers-modifier"],position:s??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[o.jsxs(_.Carousel.Arrows,{className:yo["carrousel-arrows-display-controller"],children:[o.jsx(_.Button,{variant:"tertiary",onClick:e,adornment:{start:o.jsx(_.Icon,{name:u.arrow_left})},mode:f}),o.jsx(_.Button,{variant:"tertiary",onClick:t,adornment:{start:o.jsx(_.Icon,{name:u.arrow_right})},mode:f})]}),o.jsx(_.Carousel.Bullets,{page:n,total:i,onBulletClick:r,mode:f})]})},Lg=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:i}=Se();return t.data.first?o.jsx(sr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{i.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):o.jsx(o.Fragment,{children:e})},Dg=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:i,itemsStyles:s}=_.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),c=x.useMemo(()=>Wu(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{i==null||i.nextPage()},e.data.config.slideDuration*1e3))},[i,e.data.config.slideDuration,n.totalPages]),u=x.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>i==null?void 0:i.nextPage()),prevOnClick:()=>u(()=>i==null?void 0:i.prevPage()),onBulletClick:m=>u(()=>i==null?void 0:i.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,i]);return x.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),o.jsxs(_.Carousel.Root,{innerRef:d=>{r(d)},className:_.helpers.classNameConcat(yo["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?o.jsx(la,{ICONS:t,...f,isFirst:e.data.first}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>o.jsx(_.Carousel.Item,{style:s,children:o.jsx(Lg,{data:e,banner:d,children:o.jsx(Zo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?o.jsx(la,{ICONS:t,...f}):o.jsx(o.Fragment,{})]})},$g={Banner:Ku},mt={"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"},Bg=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Se(),n=e.config.size??"medium",i=e.config.disableCarouselMobile??!1,{initialize:s,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&i?"column":"row"});return o.jsx(_.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:o.jsxs(_.Carousel.Root,{innerRef:f=>{s(f)},className:_.helpers.classNameConcat(mt["carousel-modifier"],"common-section"),children:[n==="medium"?o.jsxs(_.TextStructure.Root,{children:[o.jsx(_.TextStructure.DivWrapper,{className:mt["carousel-title-modifier"],children:o.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?o.jsx(_.Carousel.Controller,{className:mt["row-controller-modifier"],children:o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]})}):o.jsx(o.Fragment,{})]}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:e.bennefit.map((f,p)=>o.jsx(_.Carousel.Item,{className:mt["card-modifier"],style:l,children:o.jsx(_.Card,{stroke:!0,padding:"small",children:o.jsx(_.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:o.jsx(_.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:o.jsxs(_.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=${p}`))}),!r&&a.totalPages>1?o.jsxs(_.Carousel.Controller,{className:mt["row-controller-modifier"],children:[o.jsxs(_.Carousel.Arrows,{children:[o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_left})}}),o.jsx(_.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:o.jsx(_.Icon,{name:t.ICONS.arrow_right})}})]}),o.jsx(_.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):o.jsx(o.Fragment,{})]})})},Fg=({data:e,ICONS:t})=>o.jsx("div",{className:_.helpers.classNameConcat(ho.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(Vu,{data:e,ICONS:t})}),ua={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},qg=({data:e,id:t,ICONS:r})=>{var s;const[n,i]=x.useState([]);return o.jsxs(_.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):o.jsx(o.Fragment,{}),(s=e.accordions)==null?void 0:s.map((a,c)=>o.jsxs(_.Accordion.Wrapper,{className:ua["accordion-modifier"],children:[o.jsx(_.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:o.jsx(_.Icon,{name:r.arrow_down}),closeIndicator:o.jsx(_.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>i(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:mo["draftjs-text-modifier"],children:[o.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?o.jsx("h2",{children:a.subtitle}):o.jsx(o.Fragment,{})]})})}),o.jsx(_.Accordion.Body,{children:o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{className:_.helpers.classNameConcat(ua["accordion-body-modifier"],mo["draftjs-text-modifier"]),children:o.jsx($e.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Jt,editorState:a.text?Zt(JSON.parse(a.text)):$e.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Xu=x.createContext({}),zg=({data:e,children:t,...r})=>{var h,y,g,b,j,v,A,S,P,C,I,B,R;const[n,i]=x.useState(!0),{initialize:s,controller:a,itemsStyles:c}=_.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(S=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:S.backgroundColor,textColorVariant:(C=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:C.textColorVariant,content:((B=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:B.items)??[]},u=(R=l.content)==null?void 0:R.filter(O=>!O.countDownEndDate||new Date(O.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{i(!1)},m=_.helpers.ValidateProp({fieldTypes:it.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Xu.Provider,{value:{isOpen:n,setIsOpen:i,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:a,itemsStyles:c},...r},children:t})},He=()=>x.useContext(Xu),Hg=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=He();return o.jsx(go,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Ug="_tipbar_bt3p0_1",Gg="_tipbar__carousel_bt3p0_15",Pt={tipbar:Ug,tipbar__carousel:Gg,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Wg=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:i}=He(),{addCouponSeller:s,cartStore:a}=ze(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,f]=x.useState(!1),[p,d]=x.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await s(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},i.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{f(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{p&&setTimeout(()=>{d(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[p]),o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...n,onClick:m,disabled:c.status,className:Pt["tipbar-item__coupon"],children:c.status?`${i.TIPBAR_CONFIGS.coupon_applied_message}`:`${i.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&o.jsx(_t,{title:t,subtitle:r,Z_INDEX_WAR:i.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&o.jsx(_t,{title:i.TIPBAR_CONFIGS.coupon_error_title,subtitle:i.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-coupon-${e}`),p&&o.jsx(_t,{title:i.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:i.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},Vg=({title:e,description:t,style:r,mode:n,className:i})=>o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{mode:n,className:i,children:[e&&o.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&o.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Kg=({coupon:e,...t})=>{const{CONSTANTS:r}=He();return o.jsx(_.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},Xg=({staticZone:e,type:t,className:r,description:n,title:i})=>{const{mode:s}=He();if(t==="countdown")return o.jsx(Hg,{dateEnd:e.countDownEndDate,size:"x-small",mode:s});if(t==="coupon"){const a=_.helpers.ValidateProp({fieldTypes:it.Mode,property:e.couponButtonMode,fallback:"default"}),c=_.helpers.ValidateProp({fieldTypes:it.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?o.jsx(Wg,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=_.helpers.ValidateProp({fieldTypes:it.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?o.jsx(Kg,{coupon:e.coupon,mode:a}):null}return o.jsx(Vg,{title:i,description:n,mode:s,className:r})},da=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=He();return o.jsx(_.Button,{title:"fechar tipbar",className:Pt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(_.Icon,{name:r.ICONS.close})}})},Qg=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:i,CONSTANTS:s}=He(),a=x.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=i.controller)==null||p.prevPage():(d=i.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(n&&i.controller){const u=setInterval(()=>{var f;(f=i.controller)==null||f.nextPage()},n);a.current=u}},[n,i]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),o.jsxs(_.Carousel.Root,{innerRef:u=>{i.initialize(u)},className:Pt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_left})}}),o.jsx(_.Carousel.Body,{children:e}),r&&o.jsx(_.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:o.jsx(_.Icon,{name:s.ICONS.arrow_right})}})]})},Yg=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:i,backgroundStyle:s,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=He(),u=r&&a;return o.jsx("div",{style:s,"data-hasclosebtn":i,className:_.helpers.classNameConcat(Pt.tipbar,t),children:r?o.jsxs(o.Fragment,{children:[o.jsx(Qg,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),i&&o.jsx(da,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):o.jsxs(o.Fragment,{children:[e,i&&o.jsx(da,{handleCloseTipbar:l,mode:n})]})})},Zg=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:i}=He(),s=o.jsx("div",{...r,className:Pt["tipbar-item"],children:e});return n?o.jsx(_.Carousel.Item,{style:i.itemsStyles,children:s}):s},Qu=({className:e})=>{const{isOpen:t,slices:r}=He();return r.length&&t?o.jsx(Yg,{children:r.map((n,i)=>{var s;return o.jsx(o.Fragment,{children:o.jsx(jt,{href:n.link,children:o.jsx(Zg,{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,c)=>o.jsx(Xg,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${i}`)})}):null};Qu.displayName="TipBar.Root";const _o=({className:e,...t})=>o.jsx(zg,{...t,children:o.jsx(Qu,{className:e})});_o.displayName="TipBar";const Jg=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),i=t==null?void 0:t.find(s=>{var a,c;return((c=(a=s.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return o.jsxs("div",{ref:r,className:Me.responsive["responsive-flex"],children:[i?o.jsx("div",{className:Me.responsive["responsive-mobile-flex"],children:o.jsx(_o,{data:i,CONSTANTS:e})}):null,n?o.jsx("div",{className:Me.responsive["responsive-desktop-flex"],children:o.jsx(_o,{data:n,CONSTANTS:e})}):null]})},fa={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},ey=e=>{const{nextimage:t}=Re();return o.jsx(o.Fragment,{children:e.data.banners.map((r,n)=>o.jsx("div",{className:fa["card-image-wrapper"],children:o.jsx("div",{className:fa["card-image-container"],children:o.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},ty={Banner:$g,BannerSection:Zo,BennefitsBarSection:Bg,SingleBannerSection:Ku,TextContentSection:Fg,BannerCarousel:Dg,TextAccordionSection:qg,TipbarScreening:Jg,ImageGrid:ey},ry={Components:ty,helpers:Ig};exports.cms=ry;exports.contexts=Nf;exports.data=ko;exports.layout=Sg;exports.scripts=Rg;
|