@soma-vertical-web/multi-lib 0.0.50 → 0.0.51
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/Sections/Newsletter/Component.d.ts +5 -0
- package/cms/index.d.ts +3 -0
- package/contexts/contexts/newsletter/Context.d.ts +6 -0
- package/contexts/contexts/pdp/PDPDataContext.d.ts +1 -1
- package/contexts/hooks/useDisableZoom.d.ts +1 -0
- package/contexts/hooks/useLocalStorage.d.ts +1 -0
- package/contexts/hooks/useSentinel.d.ts +11 -0
- package/contexts/hooks/useTouchZoomPan.d.ts +8 -0
- package/contexts/index.d.ts +29 -1
- package/data/api/checkout/order-form/attachments/marketing-data/index.d.ts +1 -1
- package/data/api/checkout/order-form/seller-code/index.d.ts +1 -1
- package/data/api/master-data/index.d.ts +3 -0
- package/data/api/master-data/masterdata/index.d.ts +26 -0
- package/data/api/master-data/search/index.d.ts +61 -0
- package/data/api/master-data/update/index.d.ts +29 -0
- package/data/helpers/events/index.d.ts +1 -1
- package/data/helpers/product/thumb.d.ts +2 -2
- package/index-CkcBCfzG.js +1 -0
- package/index-catAI5a3.mjs +258 -0
- package/index.js +26 -26
- package/index.mjs +5787 -5069
- package/index2.js +1 -1
- package/index2.mjs +789 -692
- package/layout/index.d.ts +4 -0
- package/layout/team-component/Newsletter/Composite/Form.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/FormFields.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/Input.d.ts +7 -0
- package/layout/team-component/Newsletter/Composite/SubmitButton.d.ts +8 -0
- package/layout/team-component/Newsletter/Composite/Success.d.ts +10 -0
- package/layout/team-component/Newsletter/Composite/Terms.d.ts +7 -0
- package/layout/team-component/Newsletter/helpers.d.ts +21 -0
- package/layout/team-component/Newsletter/index.d.ts +7 -0
- package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +1 -1
- package/layout/template/PDP/Composite/Gallery/index.d.ts +1 -1
- package/package.json +1 -1
- package/server.d.ts +4 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Tipbar/index.d.ts +1 -0
- package/types/constants.d.ts +34 -0
- package/types/contexts/contexts/pdp.d.ts +3 -1
- package/types/contexts/store/cart.d.ts +3 -0
- package/types/data/events/index.d.ts +1 -0
- package/types/data/helpers/index.d.ts +5 -1
- package/types/layout/team-components/Newsletter/index.d.ts +13 -2
- package/types/layout/templates/PDP/index.d.ts +1 -0
package/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";var Zu=Object.defineProperty;var Ju=(e,t,r)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pr=(e,t,r)=>Ju(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"),lt=require("zustand"),eo=require("js-cookie"),_=require("@soma-vertical-web/core-components"),Ie=require("./index-BJzBUeMp.js"),ed=require("jose"),it=require("@soma-vertical-web/foundations"),ei=require("axios"),ha=require("react-dom"),$e=require("draft-js"),ti=require("@date-fns/tz"),bo=x.createContext({}),td=({data:e,children:t})=>o.jsx(bo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),xo=()=>{const{tags:e}=x.useContext(bo),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(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),i=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var f;return(f=r??[])==null?void 0:f.find(d=>d.id===p.key)}),s=e==null?void 0:e.flagPdp;return{commercial:n,institucional:i,flagPdp:s}},[e]);return{tags:e,getAvailableProductTag:t}},ga=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ya=x.createContext({}),rd=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return ga({gridScrollBack:t}),o.jsx(ya.Provider,{value:{sizesContainerRef:r},children:e})},nd=()=>{const e=x.useContext(ya);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ne=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Co=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Ne(0):Ne(e/100),So=(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()}},jo=(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},od=(e,t)=>e.replace(t,"").trim(),id=e=>e.replace(/\//g,""),_a=({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:p}}=a.commertialOffer;r.price=l,r.listPrice=u;const f=(d=p==null?void 0:p[0])==null?void 0:d.installments;if(f){const{count:h,value:m}=f[f.length-1];r.installments={count:h,value:m/100}}};let i=!0;const s=e.reduce((a,c)=>{var p;const l={name:c.name,sku:c.itemId,value:((p=c.Tamanho)==null?void 0:p[0])??So(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(f=>(f.sellerDefault&&f.commertialOffer.IsAvailable&&(l.available=!0,n(f,l)),f.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}},Ao=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,Ro=(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)},va=e=>e.find(t=>t.imageLabel==="10"),ba=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},xa=(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},Ca=({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},sd=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},Sa=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},ad=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ao,formatPriceToCurrency:Ne,freightParsePrice:Co,getAspectRatio:sd,getColorAndSizeFromSkuName:er,getFirstImages:Ca,getProductNameWithoutSku:od,getSKUName:jo,getSkuInfos:_a,getThumbImage:va,getValidOffer:Ro,removeSlashes:id,resizingImg:ba,setVideoPlay:Sa,splitNameAndSizeFromFullName:So,updatedResizedImg:xa},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:p}=n,f={...r==="view_item"?{currency:xe.configs.currency,value:p,grade_disponivel:l??(u?ja(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:xe.configs.currency}:{}},d=It({data:n,customData:{...i,...a,...s},configs:xe.configs});Ue({event:r,data:{...c,ecommerce:{...a,...f,items:[d]}}}),typeof t=="function"&&t(d,f)},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)=>It({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 p=r.map(f=>{var y,g,b,j,v,A,S,P,C;const d=i==null?void 0:i.find(I=>(f.productId??f.id)===I.productId);let h={...a,...c};if(d){const I=Ra(),B=Ea(I,d);B&&(h={...h,...B}),t==="add_to_cart"&&(a||c)&&to({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"&&to({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=f.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 m=(d==null?void 0:d.size)??er((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=f.itemOffered)==null?void 0:j.skuName),xe.configs.NAME_SPLIT_SYMBOL).size;return It({data:f,customData:{...n,...h??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=f.itemOffered)==null?void 0:v.sku),quantity:(n==null?void 0:n.quantity)??f.quantity??1,item_variant2:m,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)??f.seller},configs:xe.configs})});Ue({event:t,data:{...l,ecommerce:{value:s??u,currency:xe.configs.currency,items:p}}})},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 f;const u=((f=xe.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:f.eventLabel)??c,p=(i==null?void 0:i[u])||[];u==="price_range"&&l.replace(":","-"),i[u]=[...p,l]}),Object.keys(i).forEach(c=>s[c]=i[c].join(", "))),Ue({event:"filter",data:{...n,...s,...r}})},viewCartEvent:e=>{var p,f,d,h,m,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 It({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=(((p=n.totalizers.find(A=>A.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((f=n.totalizers.find(A=>A.name==="Total dos Descontos"))==null?void 0:f.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(h=n.marketingData)==null?void 0:h.utmCampaign:(y=String((m=n.openTextField)==null?void 0:m.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}})}},ja=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),cd=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]}:{}}:{}}},It=({data:e,customData:t,configs:r})=>({...ld(e,r==null?void 0:r.MAIN_IMAGE),...ud(e),...dd(e),...fd(e),...t}),Aa=()=>{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("_"))??[]:[]},Ra=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ea=(e,t)=>e==null?void 0:e[t],to=({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)))},ld=(e,t="1")=>{var s,a,c,l,u,p,f,d,h,m,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)??((f=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:f.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??So((d=e.itemOffered)==null?void 0:d.name,xe.configs.NAME_SPLIT_SYMBOL).name,item_brand:((h=e.brand)==null?void 0:h.brandName)??((m=e.brand)==null?void 0:m.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)}},ri=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,ud=e=>{var u,p;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),i=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),s=ri(n),a=ri(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]}}},dd=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}}},fd=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}},wa=()=>{const[e,t]=Aa(),[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}},pd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:xe,findDataInPersistedData:Ea,getAvailablesSizes:ja,getCategories:cd,getPageCategoryAndDepartmentFromSlug:wa,getPersistedData:Ra,getProductListInfoFromHead:Aa,pushDatalayer:Ue,updatePersistedData:to},Symbol.toStringTag,{value:"Module"})),Pa=x.createContext({}),md=({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:p,data:f,callBack:d,timeout:h=100})=>{window.dataLayer||(window.dataLayer=[]),xe.configs=t;try{typeof xe[p]=="function"&&setTimeout(()=>{var m;f.promotionInfo=r.current,(m=i.current)!=null&&m.item_list_name&&(f.itemList=i.current),xe[p](f,d)},h)}catch(m){Ue({event:"error_event",data:{error_message:(m==null?void 0:m.message)??m}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:f,index:d})=>{p&&(r.current={...f}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...f,...d!==void 0&&{index:d}}}}})};return o.jsx(Pa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:i,cartProductsFullDataRef:s,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>x.useContext(Pa),Ia=x.createContext({}),hd=({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:p,Videos:f}],description:d,["Composição"]:h="",productReference:m,categories:[y]}=t,{getAvailableProductTag:g}=xo(),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}=_a({items:u,NAME_SPLIT_SYMBOL:i}),I=va(p),B=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:h}],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(Ia.Provider,{value:{productData:t,productId:c,productName:l,productReference:m,tag:b,items:u,sizes:P,allSizesAvailable:C,installments:v,price:A,listPrice:S,thumbImage:I,images:p,video:f[0],descriptionContent:B,breadcrumbList:j,isKit:r,colorName:R,handleViewItemEvent:N},children:e})},Eo=()=>{const e=x.useContext(Ia);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},gd={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Me=Promise.resolve(!1),ro={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Me,addItem:()=>Me,addSellerCode:()=>Me,addMarketingData:()=>Me,emptyCart:()=>{},removeItem:()=>Me,setIsOpen:()=>{},shipping:()=>Me,shippingUpdate:()=>Me,toggleServiceToProduct:()=>Me,updateItemQuantity:()=>Me,insertProfileEmail:()=>Me,setRecentlyAddedProducts:()=>{}},wo=e=>e===0,Na=(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},Oa=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:i,id:s,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:f,quantity:d,price:h,priceDefinition:m,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:Na(g,y),categoriesIds:g,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:s,slug:c,skuName:C},listPrice:f,quantity:d,offerings:S,price:h,priceDefinition:m,sellingPrice:I,seller:v}},Ta=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ma=(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:[]}},ka=(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)??""}}),no=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),yd=(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},_d=e=>{const t=e.reduce((i,s)=>{const a=wo(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}},vd=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(wo(r==null?void 0:r.price)?0:r.quantity),0):0,La=(e,t)=>{const{items:r,itemMetadata:n,marketingData:i,messages:s,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(f=>Oa(f,t)):[],marketingData:i,messages:s,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Da=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},bd=(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},xd=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},$a=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),Ba=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Fa=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},qa=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},za=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ha=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:La(c,n)})},Ua=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Cd=e=>[...Array.isArray(e)?e:[e],"faststore"],Ga=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},Sd=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:gd,addItemOrder:Ta,addNotification:Ua,createItemOrder:Oa,fetchCartAPI:we,findItemIndex:no,findOptions:za,findTotalizerValue:yd,getCategories:Na,getCode:ot,getQuantity:qa,getRemoveId:$a,getSize:bd,getTotalItems:vd,getTotalizer:_d,getUrlParameter:Ve,getValue:Ba,initialState:ro,isGift:wo,marketingTagsBuilder:Cd,mergeOptionsPromise:Ha,mountMarketingData:Ga,orderFormValues:La,promiseDefault:Me,removeQuantity:Ma,updateItemSellerExternal:Da,updateOrderFormPromise:Fa,updateQuantity:ka,wishlistArray:xd},Symbol.toStringTag,{value:"Module"})),jd=()=>{const e=async(h,m)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:h,coupon:m}}),t=async(h,m)=>{if(m){const y=m.includes(" - ")?m.split(" - ")[0]:m,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:h,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:h,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:h,sellerCode:"",sellerName:""}})},r=async(h,m)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:h,marketingData:m}}),n=async(h,m,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:h,orderItems:Ta(m,y)}}),i=async(h,m,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:m,itemIndex:y,orderFormId:h,remove:g}}),s=async h=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:h}}),a=async(h,m="low")=>we("/api/checkout/order-form",{priority:m,body:{orderFormId:h??""}}),c=async(h,m)=>we("/api/checkout/order-form/profile",{body:{orderFormId:h,email:m}}),l=async(h,m,y)=>{const g=Ma(m,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:h}})},u=async(h,m,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:h,country:y,postalCode:m}}),p=async(h,m,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:h,options:m,selectedAddresses:y}}),f=async(h,m,y,g)=>{const b=ka(m,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:h,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:i,emptyCart:s,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(h,m,y,g,b)=>f(h,m,y,g).then(j=>j&&Array.isArray(j.items)?Da(j.items,y)?f(h,m,y,b):j:!1)}},oo="soma::cart",mt="soma::options",st=lt.create((e,t)=>{const r=jd(),n=async(i,s,a)=>{e({loading:!0});const c=await Fa(i);if(typeof c!="boolean"){e({...c});const l=await Ha(rt.get(mt),a);return rt.set(mt,l),Ba(c,s).finally(()=>e({loading:!1,options:l}))}return Me};if(typeof window<"u"){const i=async s=>{if(s){const a=await rt.get(mt).then(u=>za(u,s.items));rt.set(oo,s),rt.set(mt,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(oo).then(s=>r.getOrderForm(s?s.id:"").then(i)),{...ro,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 $a(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 p;return r.updateItemQuantity(l,u,s,a,((p=u.find(f=>f.id===s))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async s=>n(()=>r.insertProfileEmail(t().id,s),"clientProfileData"),setIsOpen:s=>e({isOpen:s})}}return ro}),Ad=()=>st(e=>e),Wa=lt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Ua(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Va=()=>Wa(e=>e.notifications),Ka=()=>Wa(e=>e.actions),Rd=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:mt,KEY_INDEXED_STORE:oo,useCartStore:st,useGetCartStoreState:Ad,useGetNotificationActions:Ka,useGetNotificationsStore:Va},Symbol.toStringTag,{value:"Module"})),Ed=6e3,Xa=x.createContext({}),Qa=({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([])},Ed))},[n]),o.jsx(Xa.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:i,recentlyAddedProducts:a}),[t,i,a]),children:e})},vt=()=>{const e=x.useContext(Xa);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Ya{constructor(){pr(this,"events",{});pr(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 Za=x.createContext({}),wd=({children:e,headerConfigs:t,pathname:r,...n})=>{const[i,s]=x.useState(!0),a=r==="/",c=x.useRef(new Ya),l=f=>f?{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),p=x.useRef(u);return x.useEffect(()=>{var h;const f=((h=new URLSearchParams(window.location.search))==null?void 0:h.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(eo.get("lastMedias")||eo.set("lastMedias",`${f}`,{expires:1/24}));const d=()=>{const m=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=window.innerWidth<1024||!!m.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 f=l(a);c.current.publish("header:change_variant",f.headerVariant),c.current.publish("header:change_position",f.position),p.current=f},[a]),o.jsx(Za.Provider,{value:{isMobile:i,mediatorRef:c,currentHeaderConfigsRef:p,...n},children:o.jsx(Qa,{children:e})})},Se=()=>x.useContext(Za),Ja=x.createContext({}),Pd=({children:e,...t})=>o.jsx(Ja.Provider,{value:{...t},children:e}),Re=()=>x.useContext(Ja),Je=(e,t)=>lt.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}}}),_t={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},bt=new Set,Id=()=>{bt.forEach(e=>{e()})},ec=lt.create((e,t)=>{const r=()=>e({value:_t.category});return bt.add(r),{value:_t.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),tr=()=>ec(e=>e.value),We=()=>ec(e=>e.actions),tc=Je(_t.menuMobileIsOpen,bt),Po=()=>tc(e=>e.value),et=()=>tc(e=>e.actions),rc=Je(_t.searchModalIsOpen,bt),Nd=()=>rc(e=>e.value),Io=()=>rc(e=>e.actions),nc=Je(_t.userMenuIsOpen,bt),oc=()=>nc(e=>e.value),xt=()=>nc(e=>e.actions),Od=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Id,useActionsHeaderCategory:We,useActionsMenuMobileIsOpen:et,useActionsSearchModalIsOpen:Io,useActionsUserMenuIsOpen:xt,useGetHeaderCategoryStore:tr,useGetMenuMobileIsOpen:Po,useGetSearchModalIsOpen:Nd,useGetUserMenuIsOpen:oc},Symbol.toStringTag,{value:"Module"})),at={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},ut=new Set,Td=()=>{ut.forEach(e=>{e()})},ic=lt.create(e=>{const t=()=>e({value:at.selectedSkuInfo});return ut.add(t),{value:at.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Md=()=>ic(e=>e.value),kd=()=>ic(e=>e.actions),sc=Je(at.openLetMeKnow,ut),Ld=()=>sc(e=>e.value),Dd=()=>sc(e=>e.actions),ac=Je(at.showNotify,ut),$d=()=>ac(e=>e.value),Bd=()=>ac(e=>e.actions),cc=Je(at.showBottomNavigation,ut),Fd=()=>cc(e=>e.value),qd=()=>cc(e=>e.actions),lc=Je(at.openMeasurements,ut),zd=()=>lc(e=>e.value),Hd=()=>lc(e=>e.actions),Ud=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Td,useActionsPDPOpenLetMeKnow:Dd,useActionsPDPOpenMeasurements:Hd,useActionsPDPSelectedSkuInfo:kd,useActionsPDPShowBottomNavigation:qd,useActionsPDPShowNotify:Bd,useGetPDPOpenLetMeKnow:Ld,useGetPDPOpenMeasurements:zd,useGetPDPSelectedSkuInfo:Md,useGetPDPShowBottomNavigation:Fd,useGetPDPShowNotify:$d},Symbol.toStringTag,{value:"Module"})),uc=x.createContext({}),Gd=({children:e,headerData:t,...r})=>{var p,f;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(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!n.current)return;const m=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=m?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(m)),n.current.setAttribute("data-variant",String(g)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",g),u.current&&(u.current.headerVariant=g))}),(f=l.current)==null||f.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,h=_.helpers.throttle(()=>{var y;return(y=l.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",h,{passive:!0,signal:d.signal});const m=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",m,{signal:d.signal}),n.current.addEventListener("touchend",m,{signal:d.signal})),()=>{d.abort()}},[]),o.jsx(uc.Provider,{value:{headerData:t,structureRef:i,rootRef:n,tipbarRef:s,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},be=()=>x.useContext(uc),dc=x.createContext({}),fc=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),n=Po(),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(dc.Provider,{value:{bodyRef:t,handleCloseSubMenu:i,documentBodyRef:r},children:e})},Ct=()=>x.useContext(dc),Wd=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Vd=(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?Wd(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(i.width+s),top:n.top+n.height+r}},pc=x.createContext({}),mc=({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,p]=x.useState({left:0,top:0}),f=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"),h=window.document.querySelector("#add-to-cart--tooltip");if(d&&h){const{left:m,top:y}=Vd(h,d,r??0);p({left:m,top:y}),l(!1)}},[r,i]),o.jsx(pc.Provider,{value:x.useMemo(()=>({...n,...u,handleClose:f,isLeaving:c,isOpen:i,setIsOpen:s,setIsLeaving:l}),[n,u,f,c,i,s,l]),children:e})},tt=()=>{const e=x.useContext(pc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},hc=x.createContext({}),Kd=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=st(),{setRecentlyAdded:i}=vt(),s=x.useRef(""),a=Va(),{addNotification:c,removeNotification:l}=Ka(),{addCoupon:u,addItem:p,addSellerCode:f,addMarketingData:d,emptyCart:h,isOpen:m,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=n;x.useEffect(()=>{const E=eo.get("lastMedias");if(n.id&&E&&s.current!==E){s.current=E;const F=new URLSearchParams(E),H=Ga(F);d(H)}},[n,d]);const A=x.useCallback(async(E,F)=>(F==="coupon"?u(E):f(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,f]),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=no(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 p({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});m||i(W=>[...W,E])},[p,S,n.items,m,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=no(n.items,K),w=qa(W??1,ne);return{id:K,quantity:w,seller:z}});p(H,F)},[p,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&&h()},[h,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(hc.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(hc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},gc=x.createContext({}),No=({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(gc.Provider,{value:x.useMemo(()=>({data:n,isLoading:r.current??!1,isError:s}),[n,s,r]),children:e})},Oo=()=>{const e=x.useContext(gc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},yc=x.createContext({}),_c=({children:e,sort:t,state:r,count:n,collectionId:i,brand:s,CONSTANTS:a})=>{const c=x.useMemo(()=>{var l;return i?[{key:"productclusterids",value:i.toString()}]:s?[{key:"brand",value:s}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,i]);return o.jsx(yc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:n??a.ITEMS_PER_PAGE}),[c,n,t,r]),children:e})},rr=()=>{const e=x.useContext(yc);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"},Xd={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Qd="Imagem do produto",ni=1,Yd="Sair",Zd=e=>e.exit,Jd=({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"}],ef=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},tf=e=>"Seja bem vindo!",vc=x.createContext({}),rf=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...i}=Oo(),{router:s}=Re(),a=x.useCallback((f,d)=>{if(d){if(f.key.toLocaleLowerCase()==="price"){const h=d.getAll("facets");d.delete("facets"),h.forEach(m=>{const[y]=m.split("/");y!==f.key&&d.append("facets",m)})}d.set("page","1"),d.append("facets",`${f.key}/${f.value}`),s.push(`?${d.toString()}`)}},[s]),c=x.useCallback(()=>{const f=new URLSearchParams;f.set("sort",Ke.default_option),f.set("page","1"),s.push(`?${f.toString()}`)},[s]),l=x.useCallback((f,d)=>{if(!d||!d.has&&!d.has("facets"))return;const h=d.getAll("facets");d.delete("facets"),d.set("page","1"),h.forEach(m=>{const[y,g]=m.split("/");(y!==f.key||g!==f.value)&&d.append("facets",m)}),s.push(`?${d.toString()}`)},[s]),u=x.useCallback(f=>{const d=new URLSearchParams(Ie.convertSearchParams(t));for(const[,h]of d.entries()){const[m,y]=h.split("/");if(m===f.key&&y===f.value)return l(f,d)}return a(f,d)},[a,l,t]),p=x.useCallback(f=>{const d=new URLSearchParams(Ie.convertSearchParams(t));d.set("sort",f.replace("_",":")),s.push(`?${d.toString()}`)},[s,t]);return o.jsx(vc.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:p,searchParams:t}),[n,c,p,u,i,r,t]),children:e})},nf=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=rr();return o.jsx(No,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:o.jsx(rf,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},of=()=>{const e=x.useContext(vc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},bc=x.createContext({}),sf=({children:e})=>{const{data:t,...r}=Oo(),[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(bc.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:Xd,total:n}),[t,r,n]),children:e})},af=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:i})=>o.jsx(No,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:i,facets:n??[]})}),children:o.jsx(sf,{state:r,children:e})}),cf=()=>{const e=x.useContext(bc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},xc=x.createContext({}),lf=({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(xc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:i,setLoading:s}),[r,i]),children:e})},uf=({children:e,...t})=>o.jsx(lf,{...t,children:e}),df=()=>{const e=x.useContext(xc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Cc=x.createContext({searches:[],isLoading:!1,error:null}),ff=({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(Cc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:n,error:s}),[t,n,s]),children:e})},pf=()=>{const e=x.useContext(Cc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Sc=x.createContext({}),mf=({children:e,slug:t,searchParams:r,collectionId:n,brand:i,itemsPerPage:s=24})=>{const{pathname:a}=Re(),[c,l]=x.useState(!1),u=x.useMemo(()=>{const f=new URL(a,"http://localhost"),d=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],h=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ke.default_option);return f.searchParams.set("page",String(h)),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",d.join(",")),f)},[n,a,r,t]),p=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Ie.parseSearchState(u,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Ie.parseSearchState(u,f)},[u,r]);return o.jsx(Sc.Provider,{value:x.useMemo(()=>({openFilters:c,setOpenFilters:l}),[c,l]),children:o.jsx(_c,{CONSTANTS:{ITEMS_PER_PAGE:s},state:x.useMemo(()=>({...p}),[p]),collectionId:n,brand:i,children:e})})},hf=()=>{const e=x.useContext(Sc);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]))},jc=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Yt(t[n],e[n])),io=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},Ac=()=>({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}}}),Rc=(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 p=l%r;if(p+c.columns>r){l+=r-p;continue}if(!Array.from({length:c.columns}).some((h,m)=>i.has(l+m))){for(let h=0;h<c.columns;h++)i.add(l+h);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}},so=(e,t,r,n=24)=>{const{placedBanners:i,taken:s}=Rc(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:To(),products:t!=null&&t.products.length&&e===s?t==null?void 0:t.products:Array.from({length:r},()=>Ac())}}),Ec=(e,t)=>[...e,{loading:!1,page:t,pagination:To(),products:[]}],To=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),gf=(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,p)=>{const f=n[p];return f<=l||i>a&&f>l})},wc=(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},yf=(e,t)=>{if(!e)return[];const r=e.map((n,i)=>n.video&&n.video!==""?i:null).filter(n=>n);return wc(r,t)},Pc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],_f=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Pc,createPage:Ec,createPages:Xt,createPagination:To,createProduct:Ac,deepEqual:Yt,fetchPage:io,getBanners:Rc,getPositions:so,getProductsWithVideo:yf,getRandomVideoPerRow:wc,getVisibleBanners:gf,hasStateChangedExceptPage:jc},Symbol.toStringTag,{value:"Module"})),vf=50,bf=lt.create((e,t)=>{const r=a=>Math.min(a,vf),n=async(a,c)=>{const l=r(a.page);try{const u=await io({...a,page:l});i(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),i(l,p=>({...p,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 f,d,h;const p=r(Number(a==null?void 0:a.page));e({...c,pages:Xt(p,void 0,u)});try{const m=await io({...a,page:p});if(m){if(!m.products.length&&((f=m==null?void 0:m.pagination)==null?void 0:f.total)<p){s({...a,page:(d=m==null?void 0:m.pagination)==null?void 0:d.total},l),e({pages:Xt((h=m==null?void 0:m.pagination)==null?void 0:h.total)});return}typeof l=="function"&&l(m),e({load:!0,pages:Xt(p,m),total:Number(m.pagination.count)})}}catch(m){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${p} ${m}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),p=r(a==null?void 0:a.page);u.some(f=>f.page===p)||(e({...c,pages:Ec(u,p)}),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)}}}),xf=(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 p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=a+u,f=n+p,d=t.find(m=>m.position_grid===f+1),h=f+i+1;d&&(i+=d.columns),s.push({position:h,canPlayVideo:u===l})}}return s},Cf=(e,t,r)=>{const n=(t-1)*r,i=t*r;return e>=n&&e<=i},Ic=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:Ao(r),size:jo(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},Sf=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:xf,getSkusNotify:Ic,isPositionInCurrentPage:Cf},Symbol.toStringTag,{value:"Module"})),Nc=x.createContext({}),jf=({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:p,updateProducts:f,...d}=bf(),h=c?8:16,m=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=so(e,$,m,r);u({...l,page:$},E,C)}},[u,e,C,m,r,l]),B=x.useCallback(N=>{N.loading===!1&&f({...l,page:N.page},C)},[C,f,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=$?Ic([$]):null;P(N),A(E!=null&&E.length?E[0]:null),j(!0)},[]);return x.useEffect(()=>{const N=!y.current,$=jc(g.current,l),E=so(e,l.page,m);N?p(l,E,C,r):$&&(p(l,E,C,r),g.current=l),y.current=!0},[e,p,C,m,r,l]),o.jsxs(Nc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:I,createPages:p,gap:h,columns:m,handleNotify:O,updatePage:B,updateProducts:f,updateParamPage:R}),[u,I,p,O,h,m,d,B,f,R]),children:[t,o.jsx(i,{notify:b,sku:v,skus:S,setSku:A,setNotify:j})]})},Af=()=>{const e=x.useContext(Nc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Oc(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 Mo(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 Rf=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=ko(),{cartStore:r}=ze();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:i,email:s,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:p,street:f,number:d,city:h,gender:m}=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:p,street:f,street_number:d,city:h,gender:m,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Tc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Ef=({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(()=>{Mo(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(Tc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:s}),[r,a,s]),children:[o.jsx(Rf,{}),e]})},ko=()=>{const e=x.useContext(Tc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Mc=x.createContext({gridBanners:void 0,banners:[]}),wf=({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(f=>f.name!=="List Product Banners"))??[],c=a.slice(0,ni),l=a.slice(ni,a.length),u=t==null?void 0:t.sections.find(f=>f.name==="List Product Banners"),p=x.useMemo(()=>{var f,d;return((d=(f=u==null?void 0:u.data)==null?void 0:f.banners)==null?void 0:d.map(h=>({...h.banner,columns:h.bannerWidth,position_grid:h.bannerPosition})))??[]},[u]);return s&&r==="mobile"||!s&&r==="desktop"?o.jsxs(Mc.Provider,{value:{gridBanners:u,banners:p},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,{})},Pf=()=>{const e=x.useContext(Mc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},kc=x.createContext({}),Lc=({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(kc.Provider,{value:x.useMemo(()=>({...n,filters:{...t,facets:i}}),[t,i,n]),children:e})},dt=()=>{const e=x.useContext(kc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Dc=x.createContext({product:void 0}),If=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:n,SectionZone:i})=>o.jsxs(Dc.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)??[]})})]}),Nf=()=>{const e=x.useContext(Dc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Of={contexts:{addToCart:{hook:tt,provider:mc},cart:{hook:ze,provider:Kd},cms:{FlagsAndTags:{context:bo,hook:xo,provider:td}},events:{hook:ge,provider:md},global:{hook:Se,provider:wd,mediator:Ya},header:{hook:be,provider:Gd},menuMobile:{hook:Ct,provider:fc},next:{hook:Re,provider:Pd},pdp:{provider:rd,hook:nd},PDPContent:{provider:If,hook:Nf},plp:{provider:mf,hook:hf},plpFilter:{hook:dt,provider:Lc},PLPContent:{provider:wf,hook:Pf},plpInfinite:{provider:jf,hook:Af},pdpdata:{hook:Eo,provider:hd},searchFacets:{hook:of,provider:nf},searchProducts:{hook:cf,provider:af},searchRoot:{hook:Oo,provider:No},searchSearch:{hook:rr,provider:_c},searchSuggestedTerms:{hook:df,provider:uf},searchTopSearchs:{hook:pf,provider:ff},session:{hook:ko,provider:Ef},ui:{hook:vt,provider:Qa}},hooks:{useBackPDC:ga},stores:{cart:Rd,header:Od,pdp:Ud}},Tf=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Mf(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function kf(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const $c=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ht=(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),Lf=e=>{const t=ed.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Df=["name","email","phone","date","cpf","cep"],oi={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}$/},$f=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!oi[e])return!0;const n=t.trim();return oi[e].test(n)},Bf=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Qd},Ff=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Df,debounce:kf,getAltTextFromUrl:Bf,getAuthenticatedUser:Lf,getCookie:Oc,getDaysHoursMinutesSeconds:ht,getMilliSeconds:$c,removeAccentsAndReplaceSpaces:Tf,setCookie:Mo,throttle:Mf,validateInput:$f},Symbol.toStringTag,{value:"Module"})),qf={cart:Sd,events:pd,plp:_f,product:ad,utils:Ff},Lo={helpers:qf},Oe={"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"},Bc=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Oe["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})})})]});Bc.displayName="AddToCart.Card.Name";const Fc=({className:e,listPrice:t,price:r,quantity:n,productId:i,...s})=>{const a=Ne(r/100),c=Ne(t/100);return o.jsx("div",{...s,className:_.helpers.classNameConcat(Oe["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")})})})})};Fc.displayName="AddToCart.Card.PriceQuantity";const zf="_skeleton_12b79_1",Hf={skeleton:zf},Uf=({style:e})=>o.jsx("div",{style:e,className:Hf.skeleton}),Gf="_image_lypfr_1",Wf={image:Gf},Vf=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:i}=Re();return o.jsx(i,{quality:90,...n,alt:e??"",className:_.helpers.classNameConcat(Wf.image,t),"data-object-fit":r??"cover"})},Kf=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),Be={Image:Vf,Video:Kf},qc=({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 p=u.data[0].items[0];if(p){const f=p.images.find(d=>s.includes(d.imageLabel));f!=null&&f.imageUrl?l(f.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),o.jsxs("div",{...i,className:_.helpers.classNameConcat(Oe["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(Uf,{})})}),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})]})]})};qc.displayName="AddToCart.Card.StyleSize";const{helpers:Xf}=Lo,zc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:i,brand:s,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:f}}=tt(),{size:d}=Xf.product.getColorAndSizeFromSkuName(a??i,f);return o.jsxs("div",{...n,className:_.helpers.classNameConcat(Oe["add-to-cart--card--content"],e),children:[o.jsx(Bc,{brand:s.name,name:i}),o.jsx(Fc,{price:u,listPrice:p,quantity:l,productId:t.id}),o.jsx(qc,{size:d,texture:r,productGroupID:c})]})};zc.displayName="AddToCart.Card.Content";const Hc=({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});Hc.displayName="AddToCart.Card";const Uc=({className:e,item:t,texture:r,thumbnail:n,...i})=>{const{itemOffered:{image:[s]}}=t,a=xa(s.url,{width:200,height:300});return o.jsxs("div",{...i,className:_.helpers.classNameConcat(Oe["add-to-cart--card"],e),children:[o.jsx(Hc,{image:{alternateName:s.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&o.jsx(zc,{item:t,texture:r})]})};Uc.displayName="AddToCart.Card";const Gc=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Oe["add-to-cart--content"],e),children:[o.jsx("div",{className:Oe["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(Qe.Footer,{})]});Gc.displayName="AddToCart.Layout.Content";const Wc=({className:e,...t})=>{var h,m;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:i}}=tt(),{cartStore:{totalizers:s},setIsOpen:a}=ze(),c=(h=s.find(y=>y.id==="Discounts"))==null?void 0:h.value,l=((m=s.find(y=>y.id==="Items"))==null?void 0:m.value)??0,u=s.find(y=>y.id==="Shipping"),f=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Ne(f??0);return o.jsxs("div",{...t,className:_.helpers.classNameConcat(Oe["add-to-cart--footer"],e),children:[o.jsxs("div",{className:Oe["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})]})};Wc.displayName="AddToCart.Layout.Footer";const Vc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:i}}=ze(),{recentlyAddedProducts:s}=vt(),a=s.length>3?4:s.length;return o.jsxs("div",{...n,className:Oe["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(p=>p.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]})};Vc.displayName="AddToCart.Layout.Items";const Kc=({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:Oe["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})]})};Kc.displayName="AddToCart.Modal";const Qf=({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})},Xc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:i}=vt(),{isMobile:s}=Se(),a=i.length>3?4:i.length;return o.jsx(mc,{...n,count:a,isMobile:s,CONSTANTS:r,children:o.jsx(Qf,{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})})})};Xc.displayName="AddToCart.Root";const Qc=({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:Oe["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:Oe["add-to-cart--tooltip"],ref:c,children:e})})};Qc.displayName="AddToCart.Tooltip";const Qe={Card:Uc,Content:Gc,Footer:Wc,Items:Vc,Modal:Kc,Root:Xc,Tooltip:Qc},Do=({title:e,...t})=>{const{recentlyAddedProducts:r}=vt(),{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})};Do.displayName="AddToCart";const ii={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Yf=({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]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return o.jsx(_.Card,{...a,shadow:!0,padding:"small",className:_.helpers.classNameConcat(ii["card-modifier"],t),style:{...s,padding:0},children:o.jsxs("button",{className:ii["backtotop-btn"],onClick:p,style:{...u},"data-orientation":n,children:[r,e]})})},Zf="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Zf,"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"},Jf=({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:Co({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})]})},ep=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},[]),tp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:i,totalPrice:s}=r;try{if(!e){const{[t]:u,...p}=i;return{...r,totalPrice:s-u.price,products:p}}const a=Ro(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}},Yc=x.createContext({}),rp=({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:p}=ge(),f=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{f("add_to_wishlist")},h=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:s,selectedSkus:[s]},customData:{index:r}}})},m=()=>{n&&(p.current={item_list_name:n}),f("select_item")};return o.jsx(Yc.Provider,{value:x.useMemo(()=>({...i,index:r,item:t,element:c,selectedSku:s,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:m,sendAddToCartEvent:h}),[i,t,c,s]),children:e})},De=()=>{const e=x.useContext(Yc);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"},Zc=({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};Zc.displayName="ProductCard.Actions";const Jc=({className:e,isKit:t,...r})=>{const{addToCart:n}=ze(),{isMobile:i=!1,selectedSku:s,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=De(),p=()=>{var h;if(!s)return;const d=Ro(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:(h=c==null?void 0:c.image.find(m=>u.TEXTURE_IMAGE.includes(m.alternateName)))==null?void 0:h.url}),l()},f=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:p,children:a?"Avise-me quando chegar":f})};Jc.displayName="ProductCard.Actions.BuyButton";const el=({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"})]})};el.displayName="ProductCard.Actions.Header";var tl=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 np(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 ao={exports:{}},Pe={};Pe._=Pe._interop_require_default=op;function op(e){return e&&e.__esModule?e:{default:e}}var Nt={exports:{}},mr={},si;function rl(){return si||(si=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,p]=l;Array.isArray(p)?p.forEach(f=>c.append(u,n(f))):c.set(u,n(p))}),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(p=>{Array.from(p.keys()).forEach(f=>a.delete(f)),p.forEach((f,d)=>a.append(d,f))}),a}}(mr)),mr}var hr={},Ot={},ai;function or(){if(ai)return Ot;ai=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,i=new WeakMap;return(e=function(s){return s?i:n})(r)}Ot._=Ot._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var i=e(n);if(i&&i.has(r))return i.get(r);var s={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=a?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(s,c,l):s[c]=r[c]}return s.default=r,i&&i.set(r,s),s}return Ot}var ci;function nl(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return s},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=or()._(rl()),i=/https?|ftp|gopher|file/;function s(l){let{auth:u,hostname:p}=l,f=l.protocol||"",d=l.pathname||"",h=l.hash||"",m=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:p&&(y=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(y+=":"+l.port)),m&&typeof m=="object"&&(m=String(n.urlQueryToSearchParams(m)));let g=l.search||m&&"?"+m||"";return f&&!f.endsWith(":")&&(f+=":"),l.slashes||(!f||i.test(f))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),h&&h[0]!=="#"&&(h="#"+h),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+f+y+d+g+h}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)}}(hr)),hr}var gr={},li;function ip(){return li||(li=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}}(gr)),gr}var yr={},ui;function ir(){return ui||(ui=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 p},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return h},DecodeError:function(){return m},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 p(A){const S=A.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function f(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 f(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",h=d&&["mark","measure","getEntriesByName"].every(A=>typeof performance[A]=="function");class m 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})}}(yr)),yr}var Tt={exports:{}},_r={},di;function ol(){return di||(di=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(/\/$/,"")||"/"}}(_r)),_r}var vr={},fi;function $o(){return fi||(fi=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:""}}}(vr)),vr}var pi;function sr(){return pi||(pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});const r=ol(),n=$o(),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 br={},Mt={exports:{}},xr={},mi;function il(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=$o();function r(n,i){if(typeof n!="string")return!1;const{pathname:s}=(0,t.parsePath)(n);return s===i||s.startsWith(i+"/")}}(xr)),xr}var hi;function sp(){return hi||(hi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});const r=il(),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 gi;function sl(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=ir(),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}}}(br)),br}var Cr={},Sr={},yi;function ap(){return yi||(yi=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 p=function(f,d){if(f!==null&&f!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+f+"' !== '"+d+"').");s.forEach(h=>{if(h===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(h.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+h+'" 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]+'" ).');p(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]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+i[0]+'").');p(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()}}(Sr)),Sr}var jr={},_i;function cp(){return _i||(_i=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)}}(jr)),jr}var vi;function lp(){return vi||(vi=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()}(Cr)),Cr}var Ar={},Rr={},bi;function up(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=ir();function r(n){let{re:i,groups:s}=n;return a=>{const c=i.exec(a);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(s).forEach(p=>{const f=s[p],d=c[f.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(h=>l(h)):f.repeat?[l(d)]:l(d))}),u}}}(Rr)),Rr}var Er={},wr={},Pr={},Ir={},xi;function dp(){return xi||(xi=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}}(Ir)),Ir}var Nr={},Ci;function fp(){return Ci||(Ci=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(")")}}(Nr)),Nr}var Si;function pp(){return Si||(Si=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,p)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function s(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Pr)),Pr}var ji;function mp(){return ji||(ji=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 p of a.split("/"))if(l=n.find(f=>p.startsWith(f)),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 p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(wr)),wr}var Or={},Ai;function hp(){return Ai||(Ai=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}}(Or)),Or}var Ri;function gp(){return Ri||(Ri=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 h},getNamedMiddlewareRegex:function(){return m}});const r=mp(),n=hp(),i=ol(),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 p(){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 f(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=p(),v={};return{namedParameterizedRoute:b.map(A=>{const S=r.INTERCEPTION_ROUTE_MARKERS.some(C=>A.startsWith(C)),P=A.match(/\[((?:\[.*\])|.+)\]/);return S&&P?f({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?a:void 0}):P?f({getSafeRouteKey:j,segment:P[1],routeKeys:v,keyPrefix:g?s:void 0}):"/"+(0,n.escapeStringRegexp)(A)}).join(""),routeKeys:v}}function h(y,g){const b=d(y,g);return{...u(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(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+"$"}}}(Er)),Er}var Ei;function yp(){return Ei||(Ei=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,p=(s!==i?(0,t.getRouteMatcher)(l)(s):"")||a;c=i;const f=Object.keys(u);return f.every(d=>{let h=p[d]||"";const{repeat:m,optional:y}=u[d];let g="["+(m?"...":"")+d+"]";return y&&(g=(h?"":"/")+"["+g+"]"),m&&!Array.isArray(h)&&(h=[h]),(y||d in p)&&(c=c.replace(g,m?h.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(h))||"/")})||(c=""),{params:f,result:c}}}(Ar)),Ar}var wi;function _p(){return wi||(wi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=rl(),n=nl(),i=ip(),s=ir(),a=sr(),c=sl(),l=lp(),u=yp();function p(f,d,h){let m,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: '"+f.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 h?[y]:y;try{m=new URL(y.startsWith("#")?f.asPath:f.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const v=new URL(y,m);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let A="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&h){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===m.origin?v.href.slice(v.origin.length):v.href;return h?[S,A||S]:S}catch{return h?[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)}(Nt,Nt.exports)),Nt.exports}var kt={exports:{}},Tr={},Mr={},Pi;function al(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=$o();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}}(Mr)),Mr}var Ii;function vp(){return Ii||(Ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=al(),r=il();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)}}(Tr)),Tr}var Ni;function bp(){return Ni||(Ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=sr(),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 kr={},Oi;function cl(){return Oi||(Oi=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")}(kr)),kr}var Lr={},Ti;function xp(){return Ti||(Ti=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var f in p)Object.defineProperty(u,f,{enumerable:!0,get:p[f]})}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")}(Lr)),Lr}var Lt={exports:{}},Dt={exports:{}},Mi;function ll(){return Mi||(Mi=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 ki;function Cp(){return ki||(ki=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,n=ll(),i=typeof IntersectionObserver=="function",s=new Map,a=[];function c(p){const f={root:p.root||null,margin:p.rootMargin||""},d=a.find(g=>g.root===f.root&&g.margin===f.margin);let h;if(d&&(h=s.get(d),h))return h;const m=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const j=m.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},p);return h={id:f,observer:y,elements:m},a.push(f),s.set(f,h),h}function l(p,f,d){const{id:h,observer:m,elements:y}=c(d);return y.set(p,f),m.observe(p),function(){if(y.delete(p),m.unobserve(p),y.size===0){m.disconnect(),s.delete(h);const b=a.findIndex(j=>j.root===h.root&&j.margin===h.margin);b>-1&&a.splice(b,1)}}}function u(p){let{rootRef:f,rootMargin:d,disabled:h}=p;const m=h||!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(m||y)return;const A=b.current;if(A&&A.tagName)return l(A,P=>P&&g(P),{root:f==null?void 0:f.current,rootMargin:d})}else if(!y){const A=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(A)}},[m,d,f,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:{}},Dr={},Li;function Sp(){return Li||(Li=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}}}(Dr)),Dr}var Di;function jp(){return Di||(Di=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:{}},$r={},$i;function Ap(){return $i||($i=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}}}}($r)),$r}var Bi;function Rp(){return Bi||(Bi=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 Fi;function Ep(){return Fi||(Fi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});const r=sr(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=jp().normalizeLocalePath,p=Rp().detectDomainLocale,f=a||u(s,c).detectedLocale,d=p(l,void 0,f);if(d){const h="http"+(d.http?"":"s")+"://",m=f===d.defaultLocale?"":"/"+f;return""+h+d.domain+(0,r.normalizePathTrailingSlash)(""+n+m+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:{}},qi;function wp(){return qi||(qi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return s}});const r=al(),n=sr(),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:{}},zi;function Pp(){return zi||(zi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}r(t,{PrefetchKind:function(){return p},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 p;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(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=sl(),a=nl(),c=ir(),l=bp(),u=cl(),p=xp(),f=Cp(),d=Ep(),h=wp(),m=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(p.AppRouterContext),te=D??X,Z=!D,k=$!==!1,J=$===null?m.PrefetchKind.AUTO:m.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
|
|
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,f.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,h.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)})(ao,ao.exports);var Ip=ao.exports,Np=Ip;const Te=nr(Np),ul=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...i})=>{const{element:s,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:f,CONSTANTS:d}=De(),h=Ca({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(Te,{href:`/${l}/p`,onClick:p,onMouseUp:m=>{m.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(f))},children:o.jsx("div",{className:Ae["product-card--image--container"],children:Array.isArray(h)&&h.map(({url:m,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:m}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&o.jsx(ye.Video,{url:u,poster:h[0].url}),t]})};ul.displayName="ProductCard.Media.Media";const dl=({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})]})};dl.displayName="ProductCard.OutStock";const fl=({children:e,className:t="",index:r,isMobile:n=!1,item:i,size:s,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...f})=>o.jsx(rp,{item:i,isMobile:n,outStock:c,order:a,size:s,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:o.jsx("div",{...f,className:_.helpers.classNameConcat(Ae["product-card--wrapper"],t),"data-size":s,children:e})});fl.displayName="ProductCard.Root";const pl=({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})]});pl.displayName="ProductCard.SizeSelector.Item";const ml=({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=Ao(n),p=jo(n,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const f=x.useCallback(h=>{const m=r===h?null:h;typeof c=="function"&&c(m),typeof t=="function"&&t(m)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof i=="function"){i(s,n);return}f(n)},[n,i,f,u,s]);return o.jsx(pl,{active:e,disabled:u,label:p,onClick:()=>d(),size:a?"x-small":"small",value:n})};ml.displayName="ProductCard.SizeSelector.SkuItem";const hl=({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(ml,{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})]})};hl.displayName="ProductCard.SizeSelector";const co=({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(co,{callback:p=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(p)},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(co,{size:i,total:r.length-n,more:!0})]})},gl=({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(co,{active:!0,size:"x-small",src:l.url})})};gl.displayName="ProductCard.StyleSelector";const yl=({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=Ne(s,t),p=Ne(i,t),f=Ne(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:p!==u?o.jsxs(o.Fragment,{children:[o.jsx(_.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),o.jsx(_.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):o.jsx(_.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?o.jsx(_.ProductInfo.Price,{label:"installment",value:`${a}x ${f}`,size:"small"}):null]})})})};yl.displayName="ProductCard.Price";const _l=({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})})})})]})};_l.displayName="ProductCard.Title";const vl=({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(p=>{p.forEach(f=>{Sa(f.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})})};vl.displayName="ProductCard.Media.Video";const bl=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:_.helpers.classNameConcat(Ae[`product-card--${r}`],t),children:e});bl.displayName="ProductCard.Wrapper";const ye={Actions:Zc,BuyButton:Jc,Header:el,Media:ul,Root:fl,OutStock:dl,Price:yl,SizeSelector:hl,StyleSelector:gl,Title:_l,Video:vl,Wrapper:bl},Tp="_carousel_245ib_1",Mp="_shelf__container_245ib_14",kp="_shelf_without_carousel_245ib_34",gt={carousel:Tp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Mp,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:kp},Hi=({title:e})=>o.jsx("div",{className:gt.shelf__container,children:e&&o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{children:[o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-body-md",Ie.responsive["responsive-mobile-flex"]),children:e}),o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-md",Ie.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"}),p=x.Children.toArray(e).length;return i||p>=4?o.jsxs(_.Carousel.Root,{innerRef:d=>{a(d)},className:gt.carousel,children:[o.jsxs("div",{className:gt["custom-controllers"],children:[n&&o.jsx(Hi,{title:n}),s<p&&o.jsxs(_.Carousel.Controller,{className:gt["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,h)=>o.jsx(_.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${h}`))})]}):o.jsxs(o.Fragment,{children:[n&&o.jsx(Hi,{title:n}),o.jsx("div",{className:gt.shelf_without_carousel,children:e})]})},Dp={Shelf:Lp},$p=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:i})=>{const s=x.useMemo(()=>ep(r),[r]),{isMobile:a}=Se(),{addItemsToCart:c}=ze(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=xo(),[p,f]=x.useState({totalPrice:0,products:{}}),d=()=>{const m=Object.values(p.products);c(m),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:m.map(y=>{const g=s.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:m,price:p.totalPrice}}})},h=({selectedProduct:m,productId:y})=>{const g=tp({selectedProduct:m,productId:y,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});f(g)};return x.useEffect(()=>{if(!t||s.length===0)return;const m=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:s},customData:{item_list_name:m},outsideEcommerceData:{item_list_name:m}}})},[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:m},y)=>{var j,v,A;const g=u(m.cluster.highlights),{availability:{status:b}}=m;return b?o.jsxs(ye.Root,{item:{...m,image:Lo.helpers.product.getFirstImages({images:m.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:m,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=>h({selectedProduct:S,productId:m.id})})})]})]},m.id):null})})}),o.jsx("div",{className:Ge["add-cart-container"],children:o.jsx(Jf,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Bo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Fo=({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"})]})})};Fo.displayName="Header.Bag";const St=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(Te,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,xl=()=>{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(St,{href:s.link,onMouseEnter:()=>i(s.submenuId),onFocus:()=>i(s.submenuId),children:o.jsx(_.Header.CategoryItem,{className:Bo["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}`))})};xl.displayName="Header.Categories";function Bp(){const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be(),{setValue:r}=Io();return o.jsx(_.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:o.jsx(_.Icon,{name:t.header.ICONS.search,size:"medium"})})}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 ar=({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})},qo=({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(ar,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(Te,{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}`)})})};qo.displayName="Menu.Thumbnail";const lo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Hp="_link_w24h0_1",Up="_wrapper_w24h0_98",Gp="_text_w24h0_106",Br={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,...p})=>{const f=_.helpers.ValidateProp({fieldTypes:it.SizesSmallExtended,property:a,fallback:"medium"}),d=_.helpers.ValidateProp({fieldTypes:it.Mode,property:s,fallback:"default"});return o.jsx(Te,{...p,className:_.helpers.classNameConcat(Br.link,r),href:i&&i.length>0?i:"#","data-size":f,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:Br.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:Br.text,"data-size":f,children:e}),t==null?void 0:t.end]})})},Cl=({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:lo["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var h,m,y;const f=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.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(St,{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,...f,className:lo["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}-${p}`)}),t&&o.jsx(_.Utils.Divider,{size:"small",direction:"vertical"})]})};Cl.displayName="Menu.Categories";const Sl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:lo["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(_.Utils.Divider,{size:"small"})]})};Sl.displayName="Menu.MenuRoot";const Fr={Root:Sl,Categories:Cl,Thumbnail:qo},jl=()=>{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,p=a==null?void 0:a.some(f=>!!f.srcDesk);return o.jsxs(Fr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(Fr.Categories,{dividerOnRight:!!p,subMenu:i}),Array.isArray(a)&&o.jsx(Fr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${s}`)})})};jl.displayName="Header.SubMenu";const Al=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return o.jsx(Te,{href:"/favoritos",children:o.jsx(_.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(_.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Al.displayName="Header.WishList";const Rl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=be(),{handleSelectContent:r}=ge(),{reset:n}=We(),{setValue:i}=xt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[o.jsx(_.Header.Logo,{style:{width:"100%"},children:o.jsx(Te,{href:"/",onMouseEnter:n,children:o.jsx(_.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),o.jsx(xl,{}),o.jsxs(_.Header.Support,{onMouseEnter:n,style:{justifyContent:"flex-end"},children:[o.jsx(Bp,{}),o.jsx(_.Header.SupportItem,{onClick:()=>{i(!0),r({content:"header:user_menu"})},className:Bo["btn-login"],innerRef:t,children:o.jsx(_.Icon,{name:e.header.ICONS.person,size:"medium"})}),o.jsx(Al,{}),o.jsx(Fo,{id:"cart-button"})]})]}),o.jsx(jl,{})]})};Rl.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"},El=({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})});El.displayName="Menu.MenuCategories";const wl=({children:e,link:t})=>{const{reset:r}=et();return t?o.jsx(Te,{href:t??"#",onClick:r,children:e}):e};wl.displayName="Menu.MenuCategoriesWrapper";const Pl=({subcategory:e,submenuLabel:t})=>{var l,u,p;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(St,{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((f,d)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${f.label}-${d}`,divider:!0,children:o.jsx(qe,{href:f.link??"#",size:"x-small",title:f.label??"",disableUnderline:!0,onClick:()=>{n(),i({content:`menu:${e.label??""}:${f.label}:${t}`})},children:f.label})},`list-item-${f.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&o.jsx(_.ComponentList.Support,{...c,size:"small",onClick:()=>{var f;n(),i({content:`menu:${e.label??""}:${t}`}),(f=e.see_all)!=null&&f.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Pl.displayName="Menu.SubMenuSubCategory";const Il=({submenu:e})=>{var s;const t=tr(),{handleCloseSubMenu:r}=Ct(),{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(qo,{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(Pl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Il.displayName="Menu.SubMenuItem";const Nl=()=>{const{headerData:e}=be(),t=tr(),{reset:r}=We(),{bodyRef:n}=Ct();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(Il,{submenu:i},`submenu-${i.id}-${s}`))})})};Nl.displayName="Menu.SubMenu";const Ol=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=We(),{bodyRef:i}=Ct(),{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(wl,{link:a.submenuId?null:a.link,children:o.jsx(El,{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(Nl,{})]})};Ol.displayName="Menu.MenuBody";const Tl=({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})]})};Tl.displayName="Menu.MenuHeaderWrapper";const Ml=({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};Ml.displayName="Menu.MenuHeaderNavLinks";const kl=()=>{const{headerData:e}=be();return o.jsxs("div",{className:ve["menu-header-container"],children:[o.jsx(Tl,{title:e.title,subtitle:e.subtitle}),o.jsx(Ml,{navigationLinks:e.navigationLinks})]})};kl.displayName="Menu.MenuHeaderContainer";const Ll=({children:e})=>{const{documentBodyRef:t}=Ct(),{CONSTANTS:r}=be(),n=Po(),{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})})};Ll.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 Dl=()=>{const{setIsOpen:e}=ze(),{reset:t}=et(),{setValue:r}=xt(),{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})]})};Dl.displayName="Menu.NavigationBar";const Ht={Root:Ll,NavigationBar:Dl,Header:kl,Body:Ol},$l=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=be(),{MENU_NAVIGATION_BAR_ALLOWED:n,ICONS:i,MENU_MOB_BTN_SIDE:s="right"}=t.header,{handleSelectContent:a}=ge(),{setValue:c}=Io(),{setValue:l}=et(),{setValue:u}=xt();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[s==="left"&&o.jsx(_.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:o.jsx(_.Icon,{name:i.menu,size:"medium"})}),o.jsx(_.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(Te,{href:"/",children:o.jsx(_.Icon,{name:i.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),o.jsxs(_.Header.Support,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:o.jsx(_.Icon,{name:i.search,size:"medium"})}),o.jsx(_.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:o.jsx(_.Icon,{name:i.person,size:"medium"})}),o.jsx(Fo,{}),s==="right"&&o.jsx(_.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:o.jsx(_.Icon,{name:i.menu,size:"medium"})})]})]}),o.jsx(fc,{children:o.jsxs(Ht.Root,{children:[o.jsx(Ht.Header,{}),o.jsx(Ht.Body,{}),n?o.jsx(Ht.NavigationBar,{}):o.jsx(o.Fragment,{})]})})]})};$l.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},Bl=({className:e,children:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(ke["user-menu--content"],e),children:t});Bl.displayName="UserMenu.Content";var Fl=(e=>(e.Account="account",e))(Fl||{});const ql=({className:e,cashBack:t,credits:r,link:n,total:i,...s})=>{const a=t?Ne(t):void 0,c=r?Ne(r):void 0,l=i?Ne(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:Fl.Account})};ql.displayName="UserMenu.Credits";const zl=({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]})})};zl.displayName="UserMenu.Login";const Hl=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:i})=>{const{isMobile:s}=Se(),a=Jd({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:Zd(n)})},children:Yd})}):o.jsx(o.Fragment,{})]})};Hl.displayName="UserMenu.Menu";const Ul=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}},Gl=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),[p,f]=x.useState({left:0,top:0}),{ref:d}=Ul(()=>{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:h,top:m}=Xp(d.current,s,r??0);f({left:h,top:m}),u(!1)}},[r,n,s,d]),o.jsx(Gl.Provider,{value:x.useMemo(()=>({...a,...p,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:i,setIsLeaving:u,target:s}),[a,p,d,l,n,i,u,s]),children:e})},Wl=()=>{const e=x.useContext(Gl);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Vl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:i}=Wl();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})]})};Vl.displayName="UserMenu.Modal";const Kl=({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})});Kl.displayName="UserMenu.Root";const Xl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:i,left:s,isLeaving:a,isOpen:c,top:l}=Wl();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})})};Xl.displayName="UserMenu.Tooltip";const Xe={Credits:ql,Content:Bl,Login:zl,Menu:Hl,Modal:Vl,Root:Kl,Tooltip:Xl},zo=()=>{var y,g,b;const e=ko(),{isMobile:t}=Se(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:i},storeConfig:s}=be(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=i,u=oc(),{setValue:p}=xt(),f=()=>{window.location.href=`${s.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:h,credits:m}=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:tf(d),text:ef(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:()=>f(),children:l.login.button_text})}),m+h&&d?o.jsx(Xe.Credits,{credits:m,cashBack:h,link:`${s.secureSubdomain}/account#/meus-creditos`,total:m+h}):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:p,Z_INDEX_WAR:c})};zo.displayName="UserMenu";const Ql=({tipBar:e,miniCart:t})=>{const{structureRef:r,rootRef:n,CONSTANTS:i}=be(),{header:{HEADER_CONFIGS:s,Z_INDEX_WAR:a}}=i;return o.jsx(_.Header.Structure,{innerRef:r,adornment:{start:e},style:{position:"sticky",top:0,zIndex:a.header},className:Bo["header-animation"],children:o.jsxs(_.Header.Root,{innerRef:n,style:{zIndex:a.header},variant:s.default_variant,interactiveVariant:s.interactive_variant,children:[o.jsx("div",{className:Ie.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:a.header_mobile},children:o.jsx($l,{})}),o.jsx("div",{className:Ie.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:a.header_desktop},children:o.jsx(Rl,{})}),t,o.jsx(Do,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),o.jsx(zo,{})]})})};Ql.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),p=x.useRef(null),f=()=>u(d=>!d);return o.jsxs("div",{className:fe.deliveryInfo,ref:p,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:p.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:f,onMouseLeave:f,"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}),Ui=({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 p=st(),f=st(F=>F.shipping),[d,h]=x.useState(),[m,y]=x.useState(!1),[g,b]=x.useState(!1),[j,v]=x.useState(!1),A=(N=(O=p.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?h(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):h(U)},I=async F=>{const H=F.target.value.replace(/\D/g,"");try{if((await ei.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 ei.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),f(S,"BRA")}},R=async()=>{if(!n){v(!0),setTimeout(()=>v(!1),1500);return}await I({target:{value:S}}),m||(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=($=p.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:m?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,p]=x.useState(""),[f,d]=x.useState([]),[h,m]=x.useState(""),[y,g]=x.useState(!1),b=v=>p(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:m,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),h?o.jsx(Ui,{size:i,message:h,setError:m}):f.length>0&&o.jsx(Ui,{size:i,message:c.freightConfig.messages.delivered_by,seller:s})]}),y&&!h?f.length>0&&o.jsxs(xm,{children:[o.jsx(Cm,{children:f.filter(({id:v})=>!v.includes("Retirada")).map(v=>o.jsx(bm,{id:v.id,value:Co({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}),Yl=({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=Pc(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,p;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},(p=c.name)==null?void 0:p.replace(/-/g," "))})})})})};Yl.displayName="PLPNavigation.BreadCrumb";const Zl=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:n,...i})=>o.jsxs("div",{...i,className:Ze["pdc-navigation--content"],children:[o.jsx(ct.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:n}),e]});Zl.displayName="PLPNavigation.Content";const Om="_sort_35wro_1",cr={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:cr["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(cr["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(cr["sort-list-wrapper"],t),padding:n,height:i,children:e}),Jl=x.forwardRef(({children:e,className:t,...r},n)=>o.jsx("div",{...r,ref:n,className:_.helpers.classNameConcat(cr.sort,t),children:e}));Jl.displayName="SortRoot";const Ho=({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:p}=Ul(()=>r(!1)),f=h=>{const m=h.target.value;l(m),typeof e=="function"&&e(m),u({functionKey:"filterEvent",data:{customData:{ordering:Ke.options[m]}}}),r(!1)};return o.jsxs(Jl,{...s,ref:p,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:f,children:Object.keys(Ke.options).map(h=>o.jsx(Mm,{label:Ke.options[h],value:h},h))})})]})};Ho.displayName="Sort";const eu=x.createContext({}),Dm=({children:e,...t})=>{const[r,n]=x.useState(!1);return o.jsx(eu.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:n}),[t,r,n]),children:e})},$m=()=>{const e=x.useContext(eu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},tu=({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(ct.BreadCrumb,{ICONS:e}),o.jsxs("div",{className:Ze["pdc-navigation--filters--content"],children:[o.jsx(Ho,{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(ct.Total,{})]})]})};tu.displayName="PLPNavigation.Filters";const ru=({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(ct.Content,{ICONS:s,PDC_NAVIGATION:i,searchParams:a,children:e})})})};ru.displayName="Root";const nu=({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(ct.SelectedItem,{callback:e,facet:i,CONSTANTS:r},i.value)):o.jsx(o.Fragment,{})})});nu.displayName="PLPNavigation.Selected";const Uo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Go=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(n=>n.value===e))==null?void 0:r.color)??"#F2F2F2"},ou=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(n=>n.key===e))==null?void 0:r.label},iu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(n=>n.key===e))==null?void 0:r.order)??0},uo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],n=Ne(Number(r));return`${Ne(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]},su=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Uo,createTagPrice:uo,getAbsoluteMinMax:Bm,getColor:Go,getName:ou,getOrder:iu},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"},au=({columns:e=2,CONSTANTS:t,...r})=>{var s;const{filters:n,onToggleFacet:i}=dt();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})]})};au.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 lu=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:n,...i})=>{const s=iu({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:ou({key:t.key,PLP_FILTERS:n.PLP_FILTERS})})})})}),o.jsx(_.Accordion.Body,{children:a()})]})})};lu.displayName="Filter.Item";const Wo={"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"},uu=({children:e,...t})=>o.jsx("div",{...t,className:Wo["product-variation-list--list"],children:e});uu.displayName="ProductVariationList.List";const du=({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})})]})};du.displayName="ProductVariationList.Option";const fu=({children:e,...t})=>o.jsx("div",{className:Wo["product-variation-list"],...t,children:e});fu.displayName="ProductVariationList.Root";const pu=({children:e,title:t,...r})=>o.jsxs("div",{...r,className:Wo["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]});pu.displayName="ProductVariationList.Title";const Ye={List:uu,Option:du,Title:pu,Root:fu},mu=({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":Uo({key:s,PLP_FILTERS:r}),fill:Go({value:c,PLP_FILTERS_COLORS:n}),onClick:()=>e({key:s,value:c}),type:"color"},`${s}-${c}`))})});mu.displayName="Filter.Item.Color";const hu=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:n,onToggleFacet:i}=dt(),[s,a]=(n==null?void 0:n.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:f})=>f==="price"))==null?void 0:u.value)==null?void 0:p.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:f=>{var d,h;f&&i({key:"price",value:`${(d=f.range)==null?void 0:d.min}:${(h=f.range)==null?void 0:h.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})})})]})})};hu.displayName="Filter.Item.Price";const gu=({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))})})};gu.displayName="Filter.Item.Sizes";const yu=({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))})});yu.displayName="Filter.Item.Toggle";const _u=({...e})=>{const{isLoading:t}=dt();return o.jsx("div",{className:Le["filter--loading"],"data-active":t,...e,children:o.jsx(_.Spinner,{indicatorColor:"#000",background:"#222"})})};_u.displayName="Filter.Loading";const vu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:n,ICONS:i}})=>{var p;const{deleteAllFacets:s,filters:a,isOpen:c,target:l,setIsOpen:u}=dt();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:(p=a.facets)!=null&&p.length?"ver resultados":"fechar"}),o.jsx(_.Button,{"data-close":!0,onClick:()=>s(),variant:"tertiary",children:"limpar filtros"})]})})]})};vu.displayName="Filter.Modal";const bu=({children:e,className:t,isMobile:r,CONSTANTS:n,...i})=>o.jsx(Lc,{...i,PLP_FILTERS:n.PLP_FILTERS,children:o.jsx(Fe.Modal,{className:t,isMobile:r,CONSTANTS:n,children:e})});bu.displayName="Filter.Root";const xu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:n,onToggleFacet:i}=dt();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"?uo({value:a}):a,adornment:{end:o.jsx(_.Icon,{name:e.close,size:"x-small"})},colorSquare:Go({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>i({key:s,value:a}),squareShow:Uo({key:s,PLP_FILTERS:r}),size:"medium",variant:"primary",children:s==="price"?uo({value:a}):a},a))})})};xu.displayName="Filter.Selected";const Fe={Colors:mu,Content:au,Empty:cu,Modal:vu,Item:lu,Root:bu,Loading:_u,Selected:xu,Price:hu,Sizes:gu,Toggle:yu},{checkedColor:Fm,createTagPrice:Gi,getColor:qm}=su,Cu=({callback:e,facet:t,CONSTANTS:r})=>o.jsx(_.Tag,{title:(t==null?void 0:t.key)==="price"?Gi({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"?Gi({value:t.value}):t.value.toUpperCase()});Cu.displayName="PLPNavigation.Selected.Item";const Su=()=>o.jsx(_.TextStructure.Root,{children:o.jsx("p",{id:"pdc-navigation--total"})});Su.displayName="PLPNavigation.Total";const ct={BreadCrumb:Yl,Content:Zl,Filters:tu,Root:ru,Selected:nu,SelectedItem:Cu,Total:Su},Vo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},ju=({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(Vo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:s,padding:i/2},children:t})};ju.displayName="ProductList.Banner";const Au=({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([]),p=m=>s.push(m??""),f=async m=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:m,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(m=>{!r||!m||(typeof f=="function"&&f(r),a.current=!0)},[r]),h=x.useCallback((m,y)=>{if(!m.isIntersecting){i.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(m.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 m={root:null,threshold:.1},y=new IntersectionObserver(([g])=>{h(g,m)},m);return y.observe(t.current),()=>{c.current&&clearTimeout(c.current),y.disconnect()}},[h,t,e]),o.jsx(ye.Actions,{...l,callback:p,isKit:e,children:!e&&o.jsx(ye.SizeSelector,{setNotify:n})})};Au.displayName="ProductList.Card.Actions";const Ru=({className:e,children:t,gap:r=32,item:n,isMobile:i,order:s,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:f,WishListToggle:d,...h})=>{const m=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",{...h,className:_.helpers.classNameConcat(Vo["product-list--card"],e),"data-mobile":i,"data-order":s,ref:m,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:f,WishListToggle:d,children:[o.jsx(ye.Header,{product:n,tag:a==null?void 0:a.commercial}),o.jsx(ye.Media,{showVideo:p,hasPriority:!0}),o.jsxs(ye.Wrapper,{type:"body",children:[o.jsx(ye.Title,{tag:a==null?void 0:a.institucional}),o.jsx(Au,{productId:n.isVariantOf.productGroupID,parent:m,setNotify:g,isKit:b,CONSTANTS:f}),!b&&o.jsx(ye.OutStock,{callback:g})]}),o.jsx(ye.Wrapper,{type:"footer",children:y&&o.jsx(ye.BuyButton,{isKit:b})})]}),t]})};Ru.displayName="ProductList.Card";const Eu=({children:e,className:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Vo["product-list"],t),children:e});Eu.displayName="ProductList.Grid";const zm={Banner:ju,Card:Ru,Root:Eu,helpers:Sf},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 wu={},Ko={},jt={};(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)}}})(jt);var Pu={};(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,p=s?s*40:n,f=a?a*40:i,d=p&&f?"viewBox='0 0 "+p+" "+f+"'":"",h=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='"+h+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Pu);var lr={};(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}})(lr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return h}});const t=jt,r=Pu,n=lr,i=["lazy","eager",void 0];function s(m){return m.default!==void 0}function a(m){return m.src!==void 0}function c(m){return typeof m=="object"&&(s(m)||a(m))}const l=new Map;let u;function p(m){return typeof m>"u"?m:typeof m=="number"?Number.isFinite(m)?m:NaN:typeof m=="string"&&/^[0-9]+$/.test(m)?parseInt(m,10):NaN}function f(m,y,g){let{deviceSizes:b,allSizes:j}=m;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(m){let{config:y,src:g,unoptimized:b,width:j,quality:v,sizes:A,loader:S}=m;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:C}=f(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 h(m,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}=m;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=
|
|
1
|
+
"use strict";var dd=Object.defineProperty;var fd=(e,t,r)=>t in e?dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hr=(e,t,r)=>fd(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),nt=require("idb-keyval"),ut=require("zustand"),ro=require("js-cookie"),_=require("@soma-vertical-web/core-components"),Ne=require("./index-BJzBUeMp.js"),_t=require("axios"),pd=require("jose"),it=require("@soma-vertical-web/foundations"),ya=require("react-dom"),Be=require("draft-js"),ns=require("@date-fns/tz"),Co=x.createContext({}),md=({data:e,children:t})=>o.jsx(Co.Provider,{value:{tags:e==null?void 0:e.config},children:t}),So=()=>{const{tags:e}=x.useContext(Co),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)}),s=(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)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},_a=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},va=x.createContext({}),hd=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return _a({gridScrollBack:t}),o.jsx(va.Provider,{value:{sizesContainerRef:r},children:e})},gd=()=>{const e=x.useContext(va);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Oe=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),jo=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Oe(0):Oe(e/100),Eo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},rr=(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()}},wo=(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},yd=(e,t)=>e.replace(t,"").trim(),_d=e=>e.replace(/\//g,""),ba=({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 s=!0;const i=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Eo(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&&(s=!1),a.push(l),a},[]);return{...r,sizes:i,allSizesAvailable:s}},Ro=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)},xa=({images:e,TEXTURE_IMAGE:t})=>e.find(r=>t.includes(r.imageLabel))??e[0],Ca=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Sa=(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},ja=({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},vd=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},Ea=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},bd=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ro,formatPriceToCurrency:Oe,freightParsePrice:jo,getAspectRatio:vd,getColorAndSizeFromSkuName:rr,getFirstImages:ja,getProductNameWithoutSku:yd,getSKUName:wo,getSkuInfos:ba,getThumbImage:xa,getValidOffer:Ao,removeSlashes:_d,resizingImg:Ca,setVideoPlay:Ea,splitNameAndSizeFromFullName:Eo,updatedResizedImg:Sa},Symbol.toStringTag,{value:"Module"})),We=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:n,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?wa(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=Ot({data:n,customData:{...s,...a,...i},configs:ve.configs});We({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:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Ot({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));We({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,b,j,v,S,E,R,C;const d=s==null?void 0:s.find(A=>(p.productId??p.id)===A.productId);let m={...a,...c};if(d){const A=Aa(),k=Pa(A,d);k&&(m={...m,...k}),t==="add_to_cart"&&(a||c)&&no({persistedData:A,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&no({persistedData:A,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)??rr((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=p.itemOffered)==null?void 0:j.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return Ot({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=(R=(E=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:E[0])==null?void 0:R.seller)==null?void 0:C.identifier)??p.seller},configs:ve.configs})});We({event:t,data:{...l,ecommerce:{value:i??u,currency:ve.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,s={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var p;const u=((p=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...f,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),We({event:"filter",data:{...n,...i,...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 s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=n.items.map(S=>{const{promotionInfo:E,itemList:R}=i[S.id]??{};return Ot({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...E,...R,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),c=(((f=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)===ve.configs.VENDOR_CODE?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];We({event:"view_cart",data:{...r,ecommerce:{currency:ve.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;We({event:t,data:{...r}})}},wa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),xd=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Ot=({data:e,customData:t,configs:r})=>({...Cd(e,r==null?void 0:r.MAIN_IMAGE),...Sd(e),...jd(e),...Ed(e),...t}),Ra=()=>{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("_"))??[]:[]},Aa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Pa=(e,t)=>e==null?void 0:e[t],no=({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 i,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),s=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??Eo((d=e.itemOffered)==null?void 0:d.name,ve.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:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},os=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Sd=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=os(n),a=os(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.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]}}},jd=e=>{var s,i,a,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.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}=rr(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Ed=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-s:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:s??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},Ia=()=>{const[e,t]=Ra(),[r,n]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&n?n:"",page_departament:s,id:t,name:e}},wd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Pa,getAvailablesSizes:wa,getCategories:xd,getPageCategoryAndDepartmentFromSlug:Ia,getPersistedData:Aa,getProductListInfoFromHead:Ra,pushDatalayer:We,updatePersistedData:no},Symbol.toStringTag,{value:"Module"})),Na=x.createContext({}),Rd=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),n=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=s.current)!=null&&h.item_list_name&&(p.itemList=s.current),ve[f](p,d)},m)}catch(h){We({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(Na.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},he=()=>x.useContext(Na),Oa=x.createContext({}),Ad=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var O,H;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=he(),{productId:l,productName:u,items:f,items:[{images:p,Videos:d}],description:m,["Composição"]:h="",productReference:y,categories:[g]}=t,{getAvailableProductTag:b}=So(),j=b(Object.entries(t.clusterHighlights).map(U=>({id:U[0],name:U[1]}))),v=g.slice(1,-1).split("/"),{installments:S,price:E,listPrice:R,sizes:C,allSizesAvailable:A}=ba({items:f,NAME_SPLIT_SYMBOL:s}),k=xa({images:p,TEXTURE_IMAGE:i}),w=[{label:`${n.product.description}`,value:"description",content:m},{label:`${n.product.materiais}`,value:"composition",content:h}],N=((H=rr((O=t.items)==null?void 0:O[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:E,listPrice:R,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),B=({sku:U,size:z})=>{const{commonData:V,customData:W}=I();a({functionKey:"productEvents",data:{event:"view_item",commonData:V,customData:{...W,...U&&{item_sku:U},...z&&{item_variant2:z}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:U,customData:z}=I();a({functionKey:"productEvents",data:{event:"select_item",commonData:U,customData:{...z,index:c.current.index}}}),c.current.trigger=!1}B({})},[]),o.jsx(Oa.Provider,{value:{productData:t,productId:l,productName:u,productReference:y,tag:j,items:f,sizes:C,allSizesAvailable:A,installments:S,price:E,listPrice:R,thumbImage:k,images:p,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:B},children:e})},Po=()=>{const e=x.useContext(Oa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Pd=()=>{const[e,t]=x.useState(null);return[e,async n=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},Id=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},Nd=typeof window>"u",Od=(e,t)=>{const[r,n]=x.useState(()=>{if(Nd)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return x.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&n(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{n(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function Ta(e,t,r){const[n,s]=x.useState(!1),{threshold:i}=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(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Td=({callback:e,onEnterViewportOnce:t,options:r})=>{const n=x.useRef(null);return x.useEffect(()=>{const s=n.current;if(!s)return;const i=new IntersectionObserver(([a])=>{a.isIntersecting&&typeof e=="function"&&(e(),t&&(i.unobserve(s),i.disconnect()))},r);return i.observe(s),()=>{t&&i.unobserve(s),i.disconnect()}},[e,t,r]),{element:n}},kd=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),n=x.useRef(null),[s,i]=x.useState(e),a=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!n.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const m=r.current.getBoundingClientRect(),h=n.current.children[0].getBoundingClientRect(),y=h.width,g=h.height,b=Math.min(0,(m.width-y)/2),j=Math.max(0,(y-m.width)/2),v=Math.min(0,(m.height-g)/2),S=Math.max(0,(g-m.height)/2);return{minX:b,maxX:j,minY:v,maxY:S}},f=(m,h,y)=>{if(n.current){const g=n.current.children[0];g&&requestAnimationFrame(()=>{g.style.transform=`translate(calc(-50% + ${m}px), calc(-50% + ${h}px)) scale(${y})`})}},p=x.useCallback(m=>{const{minX:h,maxX:y,minY:g,maxY:b}=u(),{x:j,y:v}=l.current,S=Math.max(h,Math.min(y,j)),E=Math.max(g,Math.min(b,v));if(m.touches.length>1){const R=m.touches[0],C=m.touches[1],A=R.pageX-C.pageX,k=R.pageY-C.pageY;a.current=Math.sqrt(A*A+k*k),c.current={x:(R.pageX+C.pageX)/2,y:(R.pageY+C.pageY)/2}}else m.touches.length===1&&(c.current={x:m.touches[0].pageX-S,y:m.touches[0].pageY-E})},[s,l]),d=x.useCallback(m=>{if(!n.current||!r.current)return;const{minX:h,maxX:y,minY:g,maxY:b}=u();if(m.touches.length>1){m.preventDefault();const j=m.touches[0],v=m.touches[1],S=j.pageX-v.pageX,E=j.pageY-v.pageY,R=Math.sqrt(S*S+E*E);if(!a.current){a.current=R;return}const C=R/a.current,A=Math.max(1,Math.min(t,s*C));if(s===A)return;i(A);const k=(j.pageX+v.pageX)/2,w=(j.pageY+v.pageY)/2;let N=k-c.current.x,I=w-c.current.y;N=Math.max(h,Math.min(y,N)),I=Math.max(g,Math.min(b,I)),l.current={x:N,y:I},a.current=R,f(N,I,A)}else if(m.touches.length===1){const j=m.touches[0].pageX,v=m.touches[0].pageY;let S=j-c.current.x,E=v-c.current.y;S=Math.max(h,Math.min(y,S)),E=Math.max(g,Math.min(b,E)),l.current={x:S,y:E},f(S,E,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",p),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",p),document.removeEventListener("touchmove",d)}),[d,p]),{containerRef:r,imgRef:n,scale:s}},Md={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Me=Promise.resolve(!1),oo={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Me,addItem:()=>Me,addSellerCode:()=>Me,addMarketingData:()=>Me,emptyCart:()=>{},removeItem:()=>Me,setIsOpen:()=>{},shipping:()=>Me,shippingUpdate:()=>Me,toggleServiceToProduct:()=>Me,updateItemQuantity:()=>Me,insertProfileEmail:()=>Me,setRecentlyAddedProducts:()=>{}},Io=e=>e===0,ka=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},Ma=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:s,id:i,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:S,offerings:E,productRefId:R,skuName:C,sellingPrice:A}=e;return{availability:r,bundleItems:s,referenceId:S,productRefId:R,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:ka(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:i,slug:c,skuName:C},listPrice:p,quantity:d,offerings:E,price:m,priceDefinition:h,sellingPrice:A,seller:v}},La=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Da=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((s,i)=>{var a,c;return{id:((a=s.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:n,filterItems:n.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},$a=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,s)=>{var i,a;return n.id===t?{id:n.id,index:s,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:s,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),so=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Ld=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var s;return((s=n==null?void 0:n.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Dd=e=>{const t=e.reduce((s,i)=>{const a=Io(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),n=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},$d=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Io(r==null?void 0:r.price)?0:r.quantity),0):0,Ba=(e,t)=>{const{items:r,itemMetadata:n,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>Ma(p,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Fa=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Bd=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(s=>s.sku===r);return n?n.name.split(t)[1]:"--"},st=(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},Fd=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},qa=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),za=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ha=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ua=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Wa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Ga=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Pe=async(e,t,r,n)=>{const{priority:s="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Ba(c,n)})},Va=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),qd=e=>[...Array.isArray(e)?e:[e],"faststore"],Ka=e=>{const t=e.get("utm_source")||Ke("utm_source"),r=e.get("utm_campaign")||Ke("utm_campaign"),n=e.get("utm_medium")||Ke("utm_medium"),s=e.get("utmi_cp")||Ke("utmi_cp"),i=e.get("utmi_pc")||Ke("utmi_pc"),a=e.get("utmi_p")||Ke("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},Ke=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},zd=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Md,addItemOrder:La,addNotification:Va,createItemOrder:Ma,fetchCartAPI:Pe,findItemIndex:so,findOptions:Wa,findTotalizerValue:Ld,getCategories:ka,getCode:st,getQuantity:Ua,getRemoveId:qa,getSize:Bd,getTotalItems:$d,getTotalizer:Dd,getUrlParameter:Ke,getValue:za,initialState:oo,isGift:Io,marketingTagsBuilder:qd,mergeOptionsPromise:Ga,mountMarketingData:Ka,orderFormValues:Ba,promiseDefault:Me,removeQuantity:Da,updateItemSellerExternal:Fa,updateOrderFormPromise:Ha,updateQuantity:$a,wishlistArray:Fd},Symbol.toStringTag,{value:"Module"})),Hd=()=>{const e=async(m,h)=>Pe("/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 Pe("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return g instanceof Object&&"nome"in g&&(g==null?void 0:g.status)===!0?Pe("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g.nome}}).then(j=>({...j,openTextField:{...(j==null?void 0:j.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:y}})}else return Pe("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Pe("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Pe("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:La(h,y)}}),s=async(m,h,y,g=!1)=>Pe("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Pe("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>Pe("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Pe("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=Da(h,y);return Pe("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>Pe("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>Pe("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=$a(h,y,g);return Pe("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,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)?Fa(j.items,y)?p(m,h,y,b):j:!1)}},io="soma::cart",ht="soma::options",at=ut.create((e,t)=>{const r=Hd(),n=async(s,i,a)=>{e({loading:!0});const c=await Ha(s);if(typeof c!="boolean"){e({...c});const l=await Ga(nt.get(ht),a);return nt.set(ht,l),za(c,i).finally(()=>e({loading:!1,options:l}))}return Me};if(typeof window<"u"){const s=async i=>{if(i){const a=await nt.get(ht).then(u=>Wa(u,i.items));nt.set(io,i),nt.set(ht,a),e({...i,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 nt.get(io).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...oo,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return qa(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>n(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return oo}),Ud=()=>at(e=>e),Xa=ut.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Va(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Ya=()=>Xa(e=>e.notifications),Qa=()=>Xa(e=>e.actions),Wd=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ht,KEY_INDEXED_STORE:io,useCartStore:at,useGetCartStoreState:Ud,useGetNotificationActions:Qa,useGetNotificationsStore:Ya},Symbol.toStringTag,{value:"Module"})),Gd=6e3,Za=x.createContext({}),Ja=({children:e,...t})=>{const{items:r}=at(),[n,s]=x.useState([]),i=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(i.current??0),i.current=setTimeout(()=>{s([])},Gd))},[n]),o.jsx(Za.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},xt=()=>{const e=x.useContext(Za);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ec{constructor(){hr(this,"events",{});hr(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 tc=x.createContext({}),Vd=({children:e,headerConfigs:t,pathname:r,...n})=>{const[s,i]=x.useState(!0),a=r==="/",c=x.useRef(new ec),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"))&&(ro.get("lastMedias")||ro.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);s!==y&&i(y)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[s]),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(tc.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:o.jsx(Ja,{children:e})})},Ce=()=>x.useContext(tc),rc=x.createContext({}),Kd=({children:e,...t})=>o.jsx(rc.Provider,{value:{...t},children:e}),we=()=>x.useContext(rc),et=(e,t)=>ut.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:s=>r({value:s}),reset:n}}}),bt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Ct=new Set,Xd=()=>{Ct.forEach(e=>{e()})},nc=ut.create((e,t)=>{const r=()=>e({value:bt.category});return Ct.add(r),{value:bt.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),nr=()=>nc(e=>e.value),Ve=()=>nc(e=>e.actions),oc=et(bt.menuMobileIsOpen,Ct),No=()=>oc(e=>e.value),tt=()=>oc(e=>e.actions),sc=et(bt.searchModalIsOpen,Ct),Yd=()=>sc(e=>e.value),Oo=()=>sc(e=>e.actions),ic=et(bt.userMenuIsOpen,Ct),ac=()=>ic(e=>e.value),St=()=>ic(e=>e.actions),Qd=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Xd,useActionsHeaderCategory:Ve,useActionsMenuMobileIsOpen:tt,useActionsSearchModalIsOpen:Oo,useActionsUserMenuIsOpen:St,useGetHeaderCategoryStore:nr,useGetMenuMobileIsOpen:No,useGetSearchModalIsOpen:Yd,useGetUserMenuIsOpen:ac},Symbol.toStringTag,{value:"Module"})),ct={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},dt=new Set,Zd=()=>{dt.forEach(e=>{e()})},cc=ut.create(e=>{const t=()=>e({value:ct.selectedSkuInfo});return dt.add(t),{value:ct.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Jd=()=>cc(e=>e.value),ef=()=>cc(e=>e.actions),lc=et(ct.openLetMeKnow,dt),tf=()=>lc(e=>e.value),rf=()=>lc(e=>e.actions),uc=et(ct.showNotify,dt),nf=()=>uc(e=>e.value),of=()=>uc(e=>e.actions),dc=et(ct.showBottomNavigation,dt),sf=()=>dc(e=>e.value),af=()=>dc(e=>e.actions),fc=et(ct.openMeasurements,dt),cf=()=>fc(e=>e.value),lf=()=>fc(e=>e.actions),uf=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Zd,useActionsPDPOpenLetMeKnow:rf,useActionsPDPOpenMeasurements:lf,useActionsPDPSelectedSkuInfo:ef,useActionsPDPShowBottomNavigation:af,useActionsPDPShowNotify:of,useGetPDPOpenLetMeKnow:tf,useGetPDPOpenMeasurements:cf,useGetPDPSelectedSkuInfo:Jd,useGetPDPShowBottomNavigation:sf,useGetPDPShowNotify:nf},Symbol.toStringTag,{value:"Module"})),pc=x.createContext({}),df=({children:e,headerData:t,...r})=>{var f,p;const n=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=Ce();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(pc.Provider,{value:{headerData:t,structureRef:s,rootRef:n,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},xe=()=>x.useContext(pc),mc=x.createContext({}),hc=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),n=No(),s=x.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),x.useEffect(()=>{r.current=document.body},[]),o.jsx(mc.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},jt=()=>x.useContext(mc),ff=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},pf=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?ff(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(s.width+i),top:n.top+n.height+r}},gc=x.createContext({}),yc=({children:e,delay:t=600,gap:r=20,...n})=>{const[s,i]=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(()=>{i(!1),l(!1)},t))},[l,i,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}=pf(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,s]),o.jsx(gc.Provider,{value:x.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[n,u,p,c,s,i,l]),children:e})},rt=()=>{const e=x.useContext(gc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},_c=x.createContext({}),mf=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=at(),{setRecentlyAdded:s}=xt(),i=x.useRef(""),a=Ya(),{addNotification:c,removeNotification:l}=Qa(),{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 z=ro.get("lastMedias");if(n.id&&z&&i.current!==z){i.current=z;const V=new URLSearchParams(z),W=Ka(V);d(W)}},[n,d]);const S=x.useCallback(async(z,V)=>(V==="coupon"?u(z):p(z)).then(F=>{if(typeof F!="boolean"&&F instanceof Object){if(V==="seller"&&"value"in F){const{statusOk:Z,value:P}=F,T=String(P??"").split(" - ");return st((T==null?void 0:T[0])??"",z,!!Z)}return st(String(F.coupon),z,!0)}return st("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),E=x.useCallback((z,V,W)=>{const{id:F}=z;v(F,V,W)},[v]),R=x.useCallback((z,V,W=!1)=>{if(!z)return;const{id:F}=z,Z=so(n.items,F);if(Z!==-1&&!W){const P=Number(n.items[Z].quantity),T=n.items[Z]?P+1:1;E(z,T,V)}else f({id:F,quantity:(z==null?void 0:z.quantity)??1,seller:z.seller});h||s(P=>[...P,z])},[f,E,n.items,h,s]),C=x.useCallback((z,V)=>{if(!z||!Array.isArray(z))return;s(F=>[...F,...z]);const W=z.map(F=>{const{id:Z,quantity:P,seller:T}=F,D=so(n.items,Z),K=Ua(P??1,D);return{id:Z,quantity:K,seller:T}});f(W,V)},[f,n.items,s]),A=x.useCallback(async(z,V,W)=>z?y(z).then(()=>(c(V??`${t}`,W),st(z,z))):Promise.resolve(st("","Product id required")),[c,y]),k=x.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),w=x.useCallback((z,V="BRA")=>g(z,V),[g]),N=x.useCallback(z=>{z&&b(z)},[b]),I=x.useCallback(async(z,V,W)=>{const F=n.items.findIndex(P=>P.id===z);return n.items[F]&&F>=0?j(V,F,W??!1):!1},[n.items,j]),B=x.useCallback(async(z,V)=>v(z,V).then(W=>{if(Array.isArray(W)){const F=W.find(Z=>Z.id===z);if(F&&(F==null?void 0:F.quantity)<V)return String(F.quantity)}return!1}),[v]),O=x.useCallback(async()=>{await d({...n.marketingData,coupon:""})},[d,n.marketingData]),H=x.useCallback(async()=>{await d({...n.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,n.marketingData]),U=x.useCallback(async()=>{await g("","BRA")},[g]);return o.jsx(_c.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:S,addToCart:R,addItemsToCart:C,cartStore:n,notifications:a,clearCart:k,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:A,setIsOpen:n.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:B,removeCoupon:O,removeSellerCode:H,removeCEP:U}),[r,S,R,C,a,k,c,n,l,A,w,N,I,B,O,H,U]),children:e})},He=()=>{const e=x.useContext(_c);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},vc=x.createContext({}),To=({children:e,fetch:t})=>{const r=x.useRef(!0),[n,s]=x.useState(null),[i,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();s(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),o.jsx(vc.Provider,{value:x.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},ko=()=>{const e=x.useContext(vc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},bc=x.createContext({}),xc=({children:e,sort:t,state:r,count:n,collectionId:s,brand:i,CONSTANTS:a})=>{const c=x.useMemo(()=>{var l;return s?[{key:"productclusterids",value:s.toString()}]:i?[{key:"brand",value:i}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,f)=>({key:`category-${f+1}`,value:u})):[]},[r.base,s]);return o.jsx(bc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:n??a.ITEMS_PER_PAGE}),[c,n,t,r]),children:e})},or=()=>{const e=x.useContext(bc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Xe={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"},hf={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},gf="Imagem do produto",ss=1,yf="Sair",_f=e=>e.exit,vf=({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"}],bf=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},xf=e=>"Seja bem vindo!",Cc=x.createContext({}),Cf=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...s}=ko(),{router:i}=we(),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}`),i.push(`?${d.toString()}`)}},[i]),c=x.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Xe.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),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)}),i.push(`?${d.toString()}`)},[i]),u=x.useCallback(p=>{const d=new URLSearchParams(Ne.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(Ne.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return o.jsx(Cc.Provider,{value:x.useMemo(()=>({...s,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,s,r,t]),children:e})},Sf=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=or();return o.jsx(To,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:o.jsx(Cf,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},jf=()=>{const e=x.useContext(Cc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Sc=x.createContext({}),Ef=({children:e})=>{const{data:t,...r}=ko(),[n,s]=x.useState(0),{sendDataLayerEvent:i}=he();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&s(a)}},[t,i,s]),o.jsx(Sc.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:hf,total:n}),[t,r,n]),children:e})},wf=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:s})=>o.jsx(To,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:n??[]})}),children:o.jsx(Ef,{state:r,children:e})}),Rf=()=>{const e=x.useContext(Sc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},jc=x.createContext({}),Af=({children:e,term:t})=>{const[r,n]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!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(jc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Pf=({children:e,...t})=>o.jsx(Af,{...t,children:e}),If=()=>{const e=x.useContext(jc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Ec=x.createContext({searches:[],isLoading:!1,error:null}),Nf=({children:e})=>{const[t,r]=x.useState([]),[n,s]=x.useState(!0),[i,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!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{s(!1)}})()},[]),o.jsx(Ec.Provider,{value:x.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Of=()=>{const e=x.useContext(Ec);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},wc=x.createContext({}),Tf=({children:e,slug:t,searchParams:r,collectionId:n,brand:s,itemsPerPage:i=24})=>{const{pathname:a}=we(),[c,l]=x.useState(!1),u=x.useMemo(()=>{const p=new URL(a,"http://localhost"),d=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],m=(r==null?void 0:r.page)??"1",h=(r==null?void 0:r.sort)??(n?"":Xe.default_option);return p.searchParams.set("page",String(m)),p.searchParams.set("sort",String(h)),r!=null&&r.query?(p.searchParams.set("query",r.query),p):(p.searchParams.set("base",Array.isArray(t)?t.join("/"):t),p.searchParams.set("facets",d.join(",")),p)},[n,a,r,t]),f=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Ne.parseSearchState(u,r.facets);const p=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Ne.parseSearchState(u,p)},[u,r]);return o.jsx(wc.Provider,{value:x.useMemo(()=>({openFilters:c,setOpenFilters:l}),[c,l]),children:o.jsx(xc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:x.useMemo(()=>({...f}),[f]),collectionId:n,brand:s,children:e})})},kf=()=>{const e=x.useContext(wc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Jt=(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((s,i)=>Jt(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Jt(e[s],t[s]))},Rc=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Jt(t[n],e[n])),ao=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},Ac=()=>({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}}}),Pc=(e,t,r,n=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};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)=>s.has(l+h))){for(let m=0;m<c.columns;m++)s.add(l+m);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:i}},co=(e,t,r,n=24)=>{const{placedBanners:s,taken:i}=Pc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)i.has(c)||a.push(c),c++;return{banners:s,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},Qt=(e,t,r=24)=>Array.from({length:e},(n,s)=>{const i=s+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:Mo(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Ac())}}),Ic=(e,t)=>[...e,{loading:!1,page:t,pagination:Mo(),products:[]}],Mo=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Mf=(e,t,r,n,s)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??s,c=(e.length-1)*s+a-1,l=r[c];return t.filter((u,f)=>{const p=n[f];return p<=l||s>a&&p>l})},Nc=(e,t)=>{const r=new Map;for(const s of e){const i=Math.floor(s/t);r.has(i)||r.set(i,[]),r.get(i).push(s)}const n=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];n.push(i)}return n},Lf=(e,t)=>{if(!e)return[];const r=e.map((n,s)=>n.video&&n.video!==""?s:null).filter(n=>n);return Nc(r,t)},Oc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Df=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Oc,createPage:Ic,createPages:Qt,createPagination:Mo,createProduct:Ac,deepEqual:Jt,fetchPage:ao,getBanners:Pc,getPositions:co,getProductsWithVideo:Lf,getRandomVideoPerRow:Nc,getVisibleBanners:Mf,hasStateChangedExceptPage:Rc},Symbol.toStringTag,{value:"Module"})),$f=50,Bf=ut.create((e,t)=>{const r=a=>Math.min(a,$f),n=async(a,c)=>{const l=r(a.page);try{const u=await ao({...a,page:l});s(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,f=>({...f,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=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:Qt(f,void 0,u)});try{const h=await ao({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){i({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:Qt((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:Qt(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:Ic(u,f)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),Ff=(e,t,r,n=0)=>{if(!e.length)return[];let s=0;const i=[];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+s+1;d&&(s+=d.columns),i.push({position:m,canPlayVideo:u===l})}}return i},qf=(e,t,r)=>{const n=(t-1)*r,s=t*r;return e>=n&&e<=s},Tc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:Ro(r),size:wo(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},zf=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Ff,getSkusNotify:Tc,isPositionInCurrentPage:qf},Symbol.toStringTag,{value:"Module"})),kc=x.createContext({}),Hf=({banners:e,children:t,itemsPerPage:r=24,searchParams:n,Notification:s})=>{const{router:i}=we(),{sendDataLayerEvent:a}=he(),{isMobile:c}=Ce(),{state:l}=or(),{addPage:u,createPages:f,updateProducts:p,...d}=Bf(),m=c?8:16,h=c?2:4,y=x.useRef(!1),g=x.useRef(l),[b,j]=x.useState(!1),[v,S]=x.useState(null),[E,R]=x.useState([]),C=x.useCallback(I=>{I&&"pagination"in I&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[a]),A=x.useCallback(I=>{if(I.pagination.nextPage===!0){const B=I.page+1,O=co(e,B,h,r);u({...l,page:B},O,C)}},[u,e,C,h,r,l]),k=x.useCallback(I=>{I.loading===!1&&p({...l,page:I.page},C)},[C,p,l]),w=x.useCallback(I=>{const B=new URLSearchParams(n);I.page!==Number(B.get("page")??1)&&(B.set("page",String(I.page)),i.replace(`?${B.toString()}`,{scroll:!1}))},[i,n]),N=x.useCallback((I,B)=>{const O=B?Tc([B]):null;R(I),S(O!=null&&O.length?O[0]:null),j(!0)},[]);return x.useEffect(()=>{const I=!y.current,B=Rc(g.current,l),O=co(e,l.page,h);I?f(l,O,C,r):B&&(f(l,O,C,r),g.current=l),y.current=!0},[e,f,C,h,r,l]),o.jsxs(kc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:A,createPages:f,gap:m,columns:h,handleNotify:N,updatePage:k,updateProducts:p,updateParamPage:w}),[u,A,f,N,m,h,d,k,p,w]),children:[t,o.jsx(s,{notify:b,sku:v,skus:E,setSku:S,setNotify:j})]})},Uf=()=>{const e=x.useContext(kc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Mc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[s,i]=n.trim().split("=");if(s===e)return i}}function Lo(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in s)s[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${s[a].toUTCString()}`:typeof s[a]=="boolean"?i+=`; ${s[a]?"true":"false"}`:i+=`=${s[a]}`);window.document.cookie=i}const Wf=()=>{const{sendDataLayerEvent:e}=he(),{user:t}=Do(),{cartStore:r}=He();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(s),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:i,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},Lc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Gf=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=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]),i=x.useCallback(()=>{Lo(t),s()},[s]),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(()=>{s()},[s]),o.jsxs(Lc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[o.jsx(Wf,{}),e]})},Do=()=>{const e=x.useContext(Lc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Dc=x.createContext({gridBanners:void 0,banners:[]}),Vf=({children:e,data:t,device:r,SectionZone:n,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=Ce(),a=(t==null?void 0:t.sections.filter(p=>p.name!=="List Product Banners"))??[],c=a.slice(0,ss),l=a.slice(ss,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 i&&r==="mobile"||!i&&r==="desktop"?o.jsxs(Dc.Provider,{value:{gridBanners:u,banners:f},children:[o.jsx(n,{data:c??[]}),o.jsxs(_.Utils.Column,{gap:s,className:_.helpers.classNameConcat("utils-column-modifier"),children:[e,o.jsx(n,{data:l??[]})]})]}):o.jsx(o.Fragment,{})},Kf=()=>{const e=x.useContext(Dc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},$c=x.createContext({}),Bc=({children:e,filters:t,PLP_FILTERS:r,...n})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return o.jsx($c.Provider,{value:x.useMemo(()=>({...n,filters:{...t,facets:s}}),[t,s,n]),children:e})},ft=()=>{const e=x.useContext($c);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Fc=x.createContext({product:void 0}),Xf=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:n,SectionZone:s})=>o.jsxs(Fc.Provider,{value:{productId:r},children:[e,o.jsx(_.Utils.Column,{gap:n,className:_.helpers.classNameConcat("utils-column-modifier"),children:o.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),Yf=()=>{const e=x.useContext(Fc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},Qf=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Zf(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Jf(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const qc=(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),ep=e=>{const t=pd.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},tp=["name","email","phone","date","cpf","cep"],is={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}$/},zc=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!is[e])return!0;const n=t.trim();return is[e].test(n)},rp=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):gf},np=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:tp,debounce:Jf,getAltTextFromUrl:rp,getAuthenticatedUser:ep,getCookie:Mc,getDaysHoursMinutesSeconds:gt,getMilliSeconds:qc,removeAccentsAndReplaceSpaces:Qf,setCookie:Lo,throttle:Zf,validateInput:zc},Symbol.toStringTag,{value:"Module"})),op=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((n,s)=>(t[s.master_data_field]="none",{...n,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},sp=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:n,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return n&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,f)=>{var m;if(f==="terms-and-conditions")return;const p=(m=t[f])==null?void 0:m.required;if(p&&!u){l[f]="required",a=!0;return}zc({type:t[f].type,input:u,required:p})||(l[f]="error",c=!0),typeof u=="string"&&e.set(f,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Hc=x.createContext({}),Uc=({children:e,masterDataEmailField:t,fields:r,variant:n,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=he(),c=n==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>op({fields:r}),[r]),f=x.useRef(!1),[p,d]=x.useState("idle"),[m,h]=x.useState(u),y=async({searchFields:R,entity:C})=>{const A=await _t.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:R,headers:{"REST-Range":"resources=0-49"}}});return console.info(A),A.data},g=async({id:R,fieldsToBeUpdated:C,entity:A})=>(await _t.post("/api/master-data/update",{dataEntityName:A,id:R,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:R,response:C},A,k)=>{const{email:w,...N}=R,[I]=await y({searchFields:{[A]:w},entity:k??s.newsletter});return I&&await g({id:I.id,fieldsToBeUpdated:N,entity:k??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),j=x.useCallback(async({formData:R},C,A)=>{const k={status:"idle",inputsStatus:{}},w={};R.forEach((N,I)=>{w[I]=N});try{const I=(await _t.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:w,response:k},A,C):I!=null&&I.Id?{...k,status:"success"}:{...k,status:"error"}}catch(N){return console.error("error",N),{...k,status:"error"}}},[b]),v=x.useCallback(async(R,C,A)=>{R.preventDefault();const k=new FormData(R.target);C&&Object.keys(C).forEach(N=>{k.append(N,C[N])});const w=await j({formData:k},A??"",t);w&&(d(w==null?void 0:w.status),h(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,j,d,h,a]),S=x.useCallback(R=>{const C=new FormData(R.currentTarget.parentElement),{hasEmptyFields:A,hasErrors:k,inputStatusToUpdate:w}=sp({formData:C,mountedFields:l,inputsStatus:m,hasTermsAndConditions:c,checkboxRef:f,setFormStatus:d});if(h(w),A||k){R.preventDefault();return}d("loading")},[l,m,c,f]),E=x.useCallback(()=>{d("idle"),h(u)},[u]);return o.jsx(Hc.Provider,{value:x.useMemo(()=>({formStatus:p,handleSubmit:v,setFormStatus:d,inputsStatus:m,setInputsStatus:h,hasTermsAndConditions:c,handleClickToSubmit:S,checkboxRef:f,masterDataEmailField:t,fields:r,variant:n,resetNewsletter:E}),[p,v,d,m,h,S,c,f,t,r,n,E]),children:e})},$o=()=>{const e=x.useContext(Hc);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},ip={contexts:{addToCart:{hook:rt,provider:yc},cart:{hook:He,provider:mf},cms:{FlagsAndTags:{context:Co,hook:So,provider:md}},newsletter:{hook:$o,provider:Uc},events:{hook:he,provider:Rd},global:{hook:Ce,provider:Vd,mediator:ec},header:{hook:xe,provider:df},menuMobile:{hook:jt,provider:hc},next:{hook:we,provider:Kd},pdp:{provider:hd,hook:gd},PDPContent:{provider:Xf,hook:Yf},plp:{provider:Tf,hook:kf},plpFilter:{hook:ft,provider:Bc},PLPContent:{provider:Vf,hook:Kf},plpInfinite:{provider:Hf,hook:Uf},pdpdata:{hook:Po,provider:Ad},searchFacets:{hook:jf,provider:Sf},searchProducts:{hook:Rf,provider:wf},searchRoot:{hook:ko,provider:To},searchSearch:{hook:or,provider:xc},searchSuggestedTerms:{hook:If,provider:Pf},searchTopSearchs:{hook:Of,provider:Nf},session:{hook:Do,provider:Gf},ui:{hook:xt,provider:Ja}},hooks:{useBackPDC:_a,useClipboard:Pd,useDisableZoom:Id,useLocalStorage:Od,useOnScreen:Ta,useSentinel:Td,useTouchZoomPan:kd},stores:{cart:Wd,header:Qd,pdp:uf}},ap={cart:zd,events:wd,plp:Df,product:bd,utils:np},Bo={helpers:ap},Te={"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"},Wc=({brand:e,className:t,name:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Te["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})})})]});Wc.displayName="AddToCart.Card.Name";const Gc=({className:e,listPrice:t,price:r,quantity:n,productId:s,...i})=>{const a=Oe(r/100),c=Oe(t/100);return o.jsx("div",{...i,className:_.helpers.classNameConcat(Te["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")})})})})};Gc.displayName="AddToCart.Card.PriceQuantity";const cp="_skeleton_12b79_1",lp={skeleton:cp},up=({style:e})=>o.jsx("div",{style:e,className:lp.skeleton}),dp="_image_lypfr_1",fp={image:dp},pp=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:s}=we();return o.jsx(s,{quality:90,...n,alt:e??"",className:_.helpers.classNameConcat(fp.image,t),"data-object-fit":r??"cover"})},mp=({videoRef:e,...t})=>o.jsx("video",{...t,ref:e,children:o.jsx("track",{kind:"captions"})}),Fe={Image:pp,Video:mp},Vc=({className:e,productGroupID:t,size:r,texture:n,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=rt(),[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=>i.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",{...s,className:_.helpers.classNameConcat(Te["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(Fe.Image,{alt:"",src:c??"",width:164,height:164,style:a}):o.jsx(up,{})})}),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})]})]})};Vc.displayName="AddToCart.Card.StyleSize";const{helpers:hp}=Bo,Kc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=rt(),{size:d}=hp.product.getColorAndSizeFromSkuName(a??s,p);return o.jsxs("div",{...n,className:_.helpers.classNameConcat(Te["add-to-cart--card--content"],e),children:[o.jsx(Wc,{brand:i.name,name:s}),o.jsx(Gc,{price:u,listPrice:f,quantity:l,productId:t.id}),o.jsx(Vc,{size:d,texture:r,productGroupID:c})]})};Kc.displayName="AddToCart.Card.Content";const Xc=({image:e,thumbnail:t=!1})=>o.jsx(Fe.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Xc.displayName="AddToCart.Card";const Yc=({className:e,item:t,texture:r,thumbnail:n,...s})=>{const{itemOffered:{image:[i]}}=t,a=Sa(i.url,{width:200,height:300});return o.jsxs("div",{...s,className:_.helpers.classNameConcat(Te["add-to-cart--card"],e),children:[o.jsx(Xc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&o.jsx(Kc,{item:t,texture:r})]})};Yc.displayName="AddToCart.Card";const Qc=({className:e,children:t,title:r,...n})=>o.jsxs("div",{...n,className:_.helpers.classNameConcat(Te["add-to-cart--content"],e),children:[o.jsx("div",{className:Te["add-to-cart--content--title"],children:r&&o.jsx("h2",{children:r})}),t,o.jsx(Qe.Footer,{})]});Qc.displayName="AddToCart.Layout.Content";const Zc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:s}}=rt(),{cartStore:{totalizers:i},setIsOpen:a}=He(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Oe(p??0);return o.jsxs("div",{...t,className:_.helpers.classNameConcat(Te["add-to-cart--footer"],e),children:[o.jsxs("div",{className:Te["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:s.footer.bag}),r?o.jsx(_.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):o.jsx(_.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Zc.displayName="AddToCart.Layout.Footer";const Jc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:s}}=He(),{recentlyAddedProducts:i}=xt(),a=i.length>3?4:i.length;return o.jsxs("div",{...n,className:Te["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=s==null?void 0:s.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return o.jsx(Qe.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Jc.displayName="AddToCart.Layout.Items";const el=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=rt(),{isMobile:s}=Ce();return o.jsxs(_.Modal.Root,{"data-modal":"add-to-cart--modal",className:Te["add-to-cart__modal"],isMobile:s??!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})]})};el.displayName="AddToCart.Modal";const gp=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=rt(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&n(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,n]),o.jsx(o.Fragment,{children:e})},tl=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:s}=xt(),{isMobile:i}=Ce(),a=s.length>3?4:s.length;return o.jsx(yc,{...n,count:a,isMobile:i,CONSTANTS:r,children:o.jsx(gp,{children:i?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})})})};tl.displayName="AddToCart.Root";const rl=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=rt();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:s,children:t}),id:"add-to-cart--tooltip",className:Te["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:o.jsx("div",{className:Te["add-to-cart--tooltip"],ref:c,children:e})})};rl.displayName="AddToCart.Tooltip";const Qe={Card:Yc,Content:Qc,Footer:Zc,Items:Jc,Modal:el,Root:tl,Tooltip:rl},Fo=({title:e,...t})=>{const{recentlyAddedProducts:r}=xt(),{isMobile:n}=Ce(),s=r.length>3?4:r.length,i=r.length>(s??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:i&&o.jsx(_.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Fo.displayName="AddToCart";const as={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},yp=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:s,style:i,...a})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=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(as["card-modifier"],t),style:{...i,padding:0},children:o.jsxs("button",{className:as["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},_p="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:_p,"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"},vp=({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:jo({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})]})},bp=e=>e.reduce((t,r)=>{var s;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((s=n==null?void 0:n.node.isVariantOf)!=null&&s.hasVariant){const i=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(n.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),xp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=s;return{...r,totalPrice:i-u.price,products:f}}const a=Ao(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...s}}}return{totalPrice:i+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},nl=x.createContext({}),Cp=({children:e,item:t,index:r,shelfTitle:n,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=he(),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:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return o.jsx(nl.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[s,t,c,i]),children:e})},$e=()=>{const e=x.useContext(nl);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ee={"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"},ol=({callback:e,children:t,className:r,data:n,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=$e();return a?o.jsxs("div",{...i,className:_.helpers.classNameConcat(Ee["product-card--actions"],r),children:[o.jsxs(ye.Wrapper,{type:"actions--group",children:[o.jsx(ye.Price,{}),o.jsx("div",{className:Ee["product-card--actions--selectors"],children:!s&&o.jsx(ye.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};ol.displayName="ProductCard.Actions";const sl=({className:e,isKit:t,...r})=>{const{addToCart:n}=He(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=$e(),f=()=>{var m;if(!i)return;const d=Ao(i.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.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=i?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&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};sl.displayName="ProductCard.Actions.BuyButton";const il=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:s,WishListToggle:i}=$e();return o.jsxs(ye.Wrapper,{type:"header",style:{zIndex:s.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,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&o.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};il.displayName="ProductCard.Actions.Header";var al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sp(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 s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var lo={exports:{}},Ie={};Ie._=Ie._interop_require_default=jp;function jp(e){return e&&e.__esModule?e:{default:e}}var Tt={exports:{}},gr={},cs;function cl(){return cs||(cs=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 s},assign:function(){return i}});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 s(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 i(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}}(gr)),gr}var yr={},kt={},ls;function ir(){if(ls)return kt;ls=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(e=function(i){return i?s:n})(r)}kt._=kt._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=e(n);if(s&&s.has(r))return s.get(r);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=a?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(i,c,l):i[c]=r[c]}return i.default=r,s&&s.set(r,i),i}return kt}var us;function ll(){return us||(us=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 i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=ir()._(cl()),s=/https?|ftp|gopher|file/;function i(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||s.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)}),i(l)}}(yr)),yr}var _r={},ds;function Ep(){return ds||(ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const s={};return Object.keys(r).forEach(i=>{n.includes(i)||(s[i]=r[i])}),s}}(_r)),_r}var vr={},fs;function ar(){return fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,E){for(var R in E)Object.defineProperty(S,R,{enumerable:!0,get:E[R]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},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(S){let E=!1,R;return function(){for(var C=arguments.length,A=new Array(C),k=0;k<C;k++)A[k]=arguments[k];return E||(E=!0,R=S(...A)),R}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>s.test(S);function a(){const{protocol:S,hostname:E,port:R}=window.location;return S+"//"+E+(R?":"+R:"")}function c(){const{href:S}=window.location,E=a();return S.substring(E.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function f(S){const E=S.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function p(S,E){if(process.env.NODE_ENV!=="production"){var R;if((R=S.prototype)!=null&&R.getInitialProps){const k='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(k)}}const C=E.res||E.ctx&&E.ctx.res;if(!S.getInitialProps)return E.ctx&&E.Component?{pageProps:await p(E.Component,E.ctx)}:{};const A=await S.getInitialProps(E);if(C&&u(C))return A;if(!A){const k='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(k)}return process.env.NODE_ENV!=="production"&&Object.keys(A).length===0&&!E.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),A}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+E}}class b extends Error{constructor(E,R){super(),this.message="Failed to load static file for page: "+E+" "+R}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(S){return JSON.stringify({message:S.message,stack:S.stack})}}(vr)),vr}var Mt={exports:{}},br={},ps;function ul(){return ps||(ps=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(/\/$/,"")||"/"}}(br)),br}var xr={},ms;function qo(){return ms||(ms=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("#"),s=r.indexOf("?"),i=s>-1&&(n<0||s<n);return i||n>-1?{pathname:r.substring(0,i?s:n),query:i?r.substring(s,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(xr)),xr}var hs;function cr(){return hs||(hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=ul(),n=qo(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(i);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)}(Mt,Mt.exports)),Mt.exports}var Cr={},Lt={exports:{}},Sr={},gs;function dl(){return gs||(gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=qo();function r(n,s){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===s||i.startsWith(s+"/")}}(Sr)),Sr}var ys;function wp(){return ys||(ys=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=dl(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Lt,Lt.exports)),Lt.exports}var _s;function fl(){return _s||(_s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=ar(),r=wp();function n(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(s,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Cr)),Cr}var jr={},Er={},vs;function Rp(){return vs||(vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(s,i,a){if(s.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.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')}),i.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 "'+s[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const s=new t;return n.forEach(i=>s.insert(i)),s.smoosh()}}(Er)),Er}var wr={},bs;function Ap(){return bs||(bs=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)}}(wr)),wr}var xs;function Pp(){return xs||(xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Rp(),n=Ap()}(jr)),jr}var Rr={},Ar={},Cs;function Ip(){return Cs||(Cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=ar();function r(n){let{re:s,groups:i}=n;return a=>{const c=s.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(i).forEach(f=>{const p=i[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 Pr={},Ir={},Nr={},Or={},Ss;function Np(){return Ss||(Ss=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}}(Or)),Or}var Tr={},js;function Op(){return js||(js=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(")")}}(Tr)),Tr}var Es;function Tp(){return Es||(Es=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 s},normalizeRscPath:function(){return i}});const r=Np(),n=Op();function s(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 i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Nr)),Nr}var ws;function kp(){return ws||(ws=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 s},extractInterceptionRouteInformation:function(){return i}});const r=Tp(),n=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function i(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}}}(Ir)),Ir}var kr={},Rs;function Mp(){return Rs||(Rs=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(s){return t.test(s)?s.replace(r,"\\$&"):s}}(kr)),kr}var As;function Lp(){return As||(As=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=kp(),n=Mp(),s=ul(),i="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,s.removeTrailingSlash)(y).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:g.map(v=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(R=>v.startsWith(R)),E=v.match(/\[((?:\[.*\])|.+)\]/);if(S&&E){const{key:R,optional:C,repeat:A}=c(E[1]);return b[R]={pos:j++,repeat:A,optional:C},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(E){const{key:R,repeat:C,optional:A}=c(E[1]);return b[R]={pos:j++,repeat:C,optional:A},C?A?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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:S,optional:E,repeat:R}=c(b);let C=S.replace(/\W/g,"");v&&(C=""+v+C);let A=!1;return(C.length===0||C.length>30)&&(A=!0),isNaN(parseInt(C.slice(0,1)))||(A=!0),A&&(C=g()),v?j[C]=""+v+S:j[C]=""+S,R?E?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(y,g){const b=(0,s.removeTrailingSlash)(y).slice(1).split("/"),j=f(),v={};return{namedParameterizedRoute:b.map(S=>{const E=r.INTERCEPTION_ROUTE_MARKERS.some(C=>S.startsWith(C)),R=S.match(/\[((?:\[.*\])|.+)\]/);return E&&R?p({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:g?a:void 0}):R?p({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).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 S=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+S+"$"}}}(Pr)),Pr}var Ps;function Dp(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Ip(),r=Lp();function n(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,f=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;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}}}(Rr)),Rr}var Is;function $p(){return Is||(Is=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=cl(),n=ll(),s=Ep(),i=ar(),a=cr(),c=fl(),l=Pp(),u=Dp();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,i.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 S="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&m){const R=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:A}=(0,u.interpolateAs)(v.pathname,v.pathname,R);C&&(S=(0,n.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(R,A)}))}const E=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return m?[E,S||E]:E}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)}(Tt,Tt.exports)),Tt.exports}var Dt={exports:{}},Mr={},Lr={},Ns;function pl(){return Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=qo();function r(n,s){if(!n.startsWith("/")||!s)return n;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(n);return""+s+i+a+c}}(Lr)),Lr}var Os;function Bp(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=pl(),r=dl();function n(s,i,a,c){if(!i||i===a)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+i)}}(Mr)),Mr}var Ts;function Fp(){return Ts||(Ts=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=cr(),n=function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Bp().addLocale(s,...a)):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 Dr={},ks;function ml(){return ks||(ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ie._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Dr)),Dr}var $r={},Ms;function qp(){return Ms||(Ms=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 s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Ie._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}($r)),$r}var $t={exports:{}},Bt={exports:{}},Ls;function hl(){return Ls||(Ls=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return s}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Bt,Bt.exports)),Bt.exports}var Ds;function zp(){return Ds||(Ds=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,n=hl(),s=typeof IntersectionObserver=="function",i=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=i.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),i.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(),i.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||!s,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(S=>{b.current=S},[]);(0,r.useEffect)(()=>{if(s){if(h||y)return;const S=b.current;if(S&&S.tagName)return l(S,R=>R&&g(R),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[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)}($t,$t.exports)),$t.exports}var Ft={exports:{}},qt={exports:{}},Br={},$s;function Hp(){return $s||($s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let s;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Br)),Br}var Bs;function Up(){return Bs||(Bs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,s)=>process.env.__NEXT_I18N_SUPPORT?Hp().normalizeLocalePath(n,s):{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)}(qt,qt.exports)),qt.exports}var zt={exports:{}},Fr={},Fs;function Wp(){return Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(Fr)),Fr}var qs;function Gp(){return qs||(qs=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,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Wp().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(zt,zt.exports)),zt.exports}var zs;function Vp(){return zs||(zs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=cr(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Up().normalizeLocalePath,f=Gp().detectDomainLocale,p=a||u(i,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+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ft,Ft.exports)),Ft.exports}var Ht={exports:{}},Hs;function Kp(){return Hs||(Hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=pl(),n=cr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Ht,Ht.exports)),Ht.exports}var Ut={exports:{}},Us;function Xp(){return Us||(Us=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 s},ACTION_RESTORE:function(){return i},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",s="navigate",i="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)}(Ut,Ut.exports)),Ut.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});const n=Ie._(x),s=$p(),i=fl(),a=ll(),c=ar(),l=Fp(),u=ml(),f=qp(),p=zp(),d=Vp(),m=Kp(),h=Xp(),y=new Set;function g(R,C,A,k,w,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(C))return;if(!k.bypassPrefetchedCheck){const B=typeof k.locale<"u"?k.locale:"locale"in R?R.locale:void 0,O=C+"%"+A+"%"+B;if(y.has(O))return;y.add(O)}const I=N?R.prefetch(C,w):R.prefetch(C,A,k);Promise.resolve(I).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function b(R){const A=R.currentTarget.getAttribute("target");return A&&A!=="_self"||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&R.nativeEvent.which===2}function j(R,C,A,k,w,N,I,B,O,H){const{nodeName:U}=R.currentTarget;if(U.toUpperCase()==="A"&&(b(R)||!O&&!(0,i.isLocalURL)(A)))return;R.preventDefault();const V=()=>{const W=I??!0;"beforePopState"in C?C[w?"replace":"push"](A,k,{shallow:N,locale:B,scroll:W}):C[w?"replace":"push"](k||A,{forceOptimisticNavigation:!H,scroll:W})};O?n.default.startTransition(V):V()}function v(R){return typeof R=="string"?R:(0,a.formatUrl)(R)}const E=n.default.forwardRef(function(C,A){let k;const{href:w,as:N,children:I,prefetch:B=null,passHref:O,replace:H,shallow:U,scroll:z,locale:V,onClick:W,onMouseEnter:F,onTouchStart:Z,legacyBehavior:P=!1,...T}=C;k=I,P&&(typeof k=="string"||typeof k=="number")&&(k=n.default.createElement("a",null,k));const D=n.default.useContext(u.RouterContext),K=n.default.useContext(f.AppRouterContext),re=D??K,J=!D,L=B!==!1,ee=B===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let se=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 se({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 X=typeof C[oe];if(oe==="as"){if(C[oe]&&X!=="string"&&X!=="object")throw se({key:oe,expected:"`string` or `object`",actual:X})}else if(oe==="locale"){if(C[oe]&&X!=="string")throw se({key:oe,expected:"`string`",actual:X})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(C[oe]&&X!=="function")throw se({key:oe,expected:"`function`",actual:X})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&C[oe]!=null&&X!=="boolean")throw se({key:oe,expected:"`boolean`",actual:X})});const Y=n.default.useRef(!1);C.prefetch&&!Y.current&&!J&&(Y.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"&&J&&!N){let se;if(typeof w=="string"?se=w:typeof w=="object"&&typeof w.pathname=="string"&&(se=w.pathname),se&&se.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+se+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Q,as:te}=n.default.useMemo(()=>{if(!D){const G=v(w);return{href:G,as:N?v(N):G}}const[se,me]=(0,s.resolveHref)(D,w,!0);return{href:se,as:N?(0,s.resolveHref)(D,N):me||se}},[D,w,N]),$=n.default.useRef(Q),M=n.default.useRef(te);let ne;if(P)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{ne=n.default.Children.only(k)}catch{throw k?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` 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 `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else ne=n.default.Children.only(k);else if(process.env.NODE_ENV==="development"&&(k==null?void 0:k.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 ie=P?ne&&typeof ne=="object"&&ne.ref:A,[ce,le,ae]=(0,p.useIntersection)({rootMargin:"200px"}),q=n.default.useCallback(se=>{(M.current!==te||$.current!==Q)&&(ae(),M.current=te,$.current=Q),ce(se),ie&&(typeof ie=="function"?ie(se):typeof ie=="object"&&(ie.current=se))},[te,ie,Q,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&re&&(!le||!L||g(re,Q,te,{locale:V},{kind:ee},J))},[te,Q,le,V,L,D==null?void 0:D.locale,re,J,ee]);const ge={ref:q,onClick(se){if(process.env.NODE_ENV!=="production"&&!se)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!P&&typeof W=="function"&&W(se),P&&ne.props&&typeof ne.props.onClick=="function"&&ne.props.onClick(se),re&&(se.defaultPrevented||j(se,re,Q,te,H,U,z,V,J,L))},onMouseEnter(se){!P&&typeof F=="function"&&F(se),P&&ne.props&&typeof ne.props.onMouseEnter=="function"&&ne.props.onMouseEnter(se),re&&((!L||process.env.NODE_ENV==="development")&&J||g(re,Q,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))},onTouchStart(se){!P&&typeof Z=="function"&&Z(se),P&&ne.props&&typeof ne.props.onTouchStart=="function"&&ne.props.onTouchStart(se),re&&(!L&&J||g(re,Q,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))}};if((0,c.isAbsoluteUrl)(te))ge.href=te;else if(!P||O||ne.type==="a"&&!("href"in ne.props)){const se=typeof V<"u"?V:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(te,se,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);ge.href=me||(0,m.addBasePath)((0,l.addLocale)(te,se,D==null?void 0:D.defaultLocale))}return P?n.default.cloneElement(ne,ge):n.default.createElement("a",{...T,...ge},k)});(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)})(lo,lo.exports);var Yp=lo.exports,Qp=Yp;const ke=sr(Qp),gl=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=$e(),m=ja({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return o.jsxs("div",{...s,className:_.helpers.classNameConcat(Ee["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[o.jsx(ke,{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:Ee["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>x.createElement(Fe.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]})};gl.displayName="ProductCard.Media.Media";const yl=({className:e,callback:t,children:r,...n})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=$e(),{availability:{status:c}}=i;return c?null:o.jsxs("div",{...n,className:_.helpers.classNameConcat(Ee["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:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};yl.displayName="ProductCard.OutStock";const _l=({children:e,className:t="",index:r,isMobile:n=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>o.jsx(Cp,{item:s,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:o.jsx("div",{...p,className:_.helpers.classNameConcat(Ee["product-card--wrapper"],t),"data-size":i,children:e})});_l.displayName="ProductCard.Root";const vl=({disabled:e,label:t,size:r,value:n,onClick:s,...i})=>o.jsxs(_.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[o.jsx(_.ToggleSize.DisabledAdornment,{}),o.jsx(_.ToggleSize.Text,{children:t})]});vl.displayName="ProductCard.SizeSelector.Item";const bl=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=$e();n.productId=i.id;const u=Ro(n),f=wo(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 s=="function"){s(i,n);return}p(n)},[n,s,p,u,i]);return o.jsx(vl,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};bl.displayName="ProductCard.SizeSelector.SkuItem";const xl=({callback:e,className:t="",children:r,setNotify:n,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=$e();return o.jsxs("div",{...s,className:_.helpers.classNameConcat(Ee["product-card--selectors--size"],t),"data-mobile":i,children:[o.jsx("div",{className:Ee["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>o.jsx(bl,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),o.jsx("div",{className:Ee["product-card--selectors--size--button"],children:r})]})};xl.displayName="ProductCard.SizeSelector";const uo=({alt:e="",callback:t,more:r,total:n=4,src:s,url:i,...a})=>o.jsxs(_.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[o.jsx(_.ToggleStyle.DisabledAdornment,{}),o.jsxs(_.ToggleStyle.Texture,{children:[s&&o.jsx(Fe.Image,{alt:e??s,src:s,height:34,width:34}),r&&o.jsx(_.TextStructure.DivWrapper,{className:Ee["product-card--selectors--style--more"],children:o.jsxs("p",{children:["+ ",n]})})]})]}),Zp=({children:e,callback:t,data:r,total:n=4,size:s,...i})=>{const{index:a}=$e(),{triggerSelectItemEventRef:c}=he();return o.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>o.jsx(uo,{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:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&o.jsx(uo,{size:s,total:r.length-n,more:!0})]})},Cl=({callback:e,className:t,data:r,images:n=[],findTexture:s,...i})=>{const{CONSTANTS:a}=$e(),c=s||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return o.jsx(Zp,{...i,callback:e,className:_.helpers.classNameConcat(Ee["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&o.jsx(uo,{active:!0,size:"x-small",src:l.url})})};Cl.displayName="ProductCard.StyleSelector";const Sl=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=$e();l.current.priceInfo={price:s,listPrice:i};const u=Oe(i,t),f=Oe(s,t),p=Oe(c??0),d=n?"horizontal":"stacked";return o.jsx("div",{...r,className:_.helpers.classNameConcat(Ee["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]})})})};Sl.displayName="ProductCard.Price";const jl=({tag:e,className:t})=>{const{item:{name:r}}=$e();return o.jsxs("div",{className:_.helpers.classNameConcat(Ee["product-card--title"],t),children:[o.jsx("div",{className:Ee["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:Ee["product-card--title--content"],children:r&&o.jsx(_.TextStructure.Root,{children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("h3",{children:r})})})})]})};jl.displayName="ProductCard.Title";const El=({className:e,url:t,poster:r,...n})=>{const{element:s}=$e();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{Ea(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),o.jsx("div",{...n,className:_.helpers.classNameConcat(Ee["product-card--video"],e),children:t&&o.jsx(Fe.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};El.displayName="ProductCard.Media.Video";const wl=({children:e,className:t,type:r,...n})=>o.jsx("div",{...n,className:_.helpers.classNameConcat(Ee[`product-card--${r}`],t),children:e});wl.displayName="ProductCard.Wrapper";const ye={Actions:ol,BuyButton:sl,Header:il,Media:gl,Root:_l,OutStock:yl,Price:Sl,SizeSelector:xl,StyleSelector:Cl,Title:jl,Video:El,Wrapper:wl},Jp="_carousel_245ib_1",em="_shelf__container_245ib_14",tm="_shelf_without_carousel_245ib_34",yt={carousel:Jp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:em,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:tm},Ws=({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",Ne.responsive["responsive-mobile-flex"]),children:e}),o.jsx("h2",{className:_.helpers.classNameConcat("typography-style-heading-md",Ne.responsive["responsive-desktop-flex"]),children:e})]})})}),rm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:s}=Ce(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=_.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=x.Children.toArray(e).length;return s||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(Ws,{title:n}),i<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})}})]}),!s&&i>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(Ws,{title:n}),o.jsx("div",{className:yt.shelf_without_carousel,children:e})]})},nm={Shelf:rm},om=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:s})=>{const i=x.useMemo(()=>bp(r),[r]),{isMobile:a}=Ce(),{addItemsToCart:c}=He(),{sendDataLayerEvent:l}=he(),{getAvailableProductTag:u}=So(),[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=i.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=xp({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return x.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},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:i.length<=3?"max-content":"75%"},children:o.jsx(nm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var j,v,S;const g=u(h.cluster.highlights),{availability:{status:b}}=h;return b?o.jsxs(ye.Root,{item:{...h,image:Bo.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:s,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:(S=g.institucional)==null?void 0:S.icon}}),o.jsx(ye.Actions,{children:o.jsx(ye.SizeSelector,{callback:E=>m({selectedProduct:E,productId:h.id})})})]})]},h.id):null})})}),o.jsx("div",{className:Ge["add-cart-container"],children:o.jsx(vp,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},zo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Ho=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=He(),{handleSelectContent:n}=he(),{CONSTANTS:s}=xe(),i=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:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),o.jsx(_.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Ho.displayName="Header.Bag";const Et=({children:e,href:t,...r})=>t&&t!=="#"?o.jsx(ke,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Rl=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=he(),{reset:r,updateValue:n}=Ve(),s=i=>{i?n(i):r()};return o.jsx(_.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>o.jsx(Et,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:o.jsx(_.Header.CategoryItem,{className:zo["btn-header"],value:i.submenuId??null,adornment:{start:o.jsx(_.Icon,{name:i.iconStart}),end:o.jsx(_.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Rl.displayName="Header.Categories";function sm(){const{handleSelectContent:e}=he(),{CONSTANTS:t}=xe(),{setValue:r}=Oo();return o.jsx(_.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:o.jsx(_.Icon,{name:t.header.ICONS.search,size:"medium"})})}const im={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},am={"observer-wrapper":"_observer-wrapper_r43gk_1"},lr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=Ta(c,s,r),{sendDataLayerEvent:u}=he();return x.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),o.jsx("div",{...a,ref:c,className:_.helpers.classNameConcat(am["observer-wrapper"],i),children:e})},Uo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:s}=he(),i=50/e.length;return o.jsx("div",{className:im["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(lr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:o.jsxs(ke,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),s({updatePromotionRef:!0,promotion:u})},children:[o.jsx(Fe.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&o.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Uo.displayName="Menu.Thumbnail";const fo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},cm="_link_w24h0_1",lm="_wrapper_w24h0_98",um="_text_w24h0_106",qr={link:cm,wrapper:lm,text:um},ze=({children:e,adornments:t,className:r,disableUnderline:n,href:s,mode:i,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:i,fallback:"default"});return o.jsx(ke,{...f,className:_.helpers.classNameConcat(qr.link,r),href:s&&s.length>0?s:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:o.jsxs("div",{className:qr.wrapper,onClick:l,children:[t==null?void 0:t.start,o.jsx("p",{className:qr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},Al=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:s}=we(),{reset:i}=Ve(),{handleSelectContent:a}=he(),{CONSTANTS:c}=xe();return o.jsxs("div",{...n,className:fo["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(Et,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),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:fo["submenu-categories"],children:u.items.map((g,b)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:o.jsx(ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),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&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),s.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"})]})};Al.displayName="Menu.Categories";const Pl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();return o.jsxs(o.Fragment,{children:[o.jsx("div",{...r,className:fo["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&o.jsx(_.Utils.Divider,{size:"small"})]})};Pl.displayName="Menu.MenuRoot";const zr={Root:Pl,Categories:Al,Thumbnail:Uo},Il=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=nr(),{reset:n}=Ve();return o.jsx(_.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return o.jsxs(zr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[o.jsx(zr.Categories,{dividerOnRight:!!f,subMenu:s}),Array.isArray(a)&&o.jsx(zr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Il.displayName="Header.SubMenu";const Nl=()=>{const{handleSelectContent:e}=he(),{CONSTANTS:t}=xe();return o.jsx(ke,{href:"/favoritos",children:o.jsx(_.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:o.jsx(_.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Nl.displayName="Header.WishList";const Ol=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=xe(),{handleSelectContent:r}=he(),{reset:n}=Ve(),{setValue:s}=St();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[o.jsx(_.Header.Logo,{style:{width:"100%"},children:o.jsx(ke,{href:"/",onMouseEnter:n,children:o.jsx(_.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),o.jsx(Rl,{}),o.jsxs(_.Header.Support,{onMouseEnter:n,style:{justifyContent:"flex-end"},children:[o.jsx(sm,{}),o.jsx(_.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:zo["btn-login"],innerRef:t,children:o.jsx(_.Icon,{name:e.header.ICONS.person,size:"medium"})}),o.jsx(Nl,{}),o.jsx(Ho,{id:"cart-button"})]})]}),o.jsx(Il,{})]})};Ol.displayName="Header.HeaderDesktopWrapper";const dm="_divider_1lexj_199",be={"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:dm,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Tl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:s,...i})=>o.jsx("button",{onClick:n,className:be["menu-categories-btn"],children:r?o.jsxs(_.Banner.Container,{...i,className:be["menu-body-banner-container-modifier"],children:[o.jsx(_.Banner.ImageWrapper,{style:{width:"100%"},children:o.jsx(Fe.Image,{src:r,alt:t??r,className:be["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:be["menu-categories-textstructure-modifier"],children:o.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):o.jsx("h2",{...i,children:e})});Tl.displayName="Menu.MenuCategories";const kl=({children:e,link:t})=>{const{reset:r}=tt();return t?o.jsx(ke,{href:t??"#",onClick:r,children:e}):e};kl.displayName="Menu.MenuCategoriesWrapper";const Ml=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=we(),{reset:n}=tt(),{handleSelectContent:s}=he(),{CONSTANTS:i}=xe(),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:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:o.jsx(_.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return o.jsxs(_.ComponentList.Structure,{className:be["menu-submenu--component-list-modifier"],children:[o.jsx(Et,{href:e.linkLabel,title:e.label,onClick:()=>{n(),s({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:be["submenu-categories"],children:e.items.map((p,d)=>o.jsx(_.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:o.jsx(ze,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),s({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(),s({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})]})};Ml.displayName="Menu.SubMenuSubCategory";const Ll=({submenu:e})=>{var i;const t=nr(),{handleCloseSubMenu:r}=jt(),{reset:n}=Ve(),{CONSTANTS:s}=xe();return o.jsxs("div",{className:be["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:s.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:be["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&o.jsx(Uo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>o.jsx(Ml,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Ll.displayName="Menu.SubMenuItem";const Dl=()=>{const{headerData:e}=xe(),t=nr(),{reset:r}=Ve(),{bodyRef:n}=jt();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:be["menu-submenu-modal-modifiier"],children:o.jsx("div",{className:be["menu-submenu"],children:e.subMenus.map((s,i)=>o.jsx(Ll,{submenu:s},`submenu-${s.id}-${i}`))})})};Dl.displayName="Menu.SubMenu";const $l=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=Ve(),{bodyRef:s}=jt(),{handleSelectContent:i}=he();return o.jsxs("div",{...t,ref:s,id:"menu-body",className:be["menu-body"],children:[o.jsx("div",{className:be["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return o.jsx(kl,{link:a.submenuId?null:a.link,children:o.jsx(Tl,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),o.jsx(Dl,{})]})};$l.displayName="Menu.MenuBody";const Bl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();return o.jsxs("div",{className:be["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:be["menu-close"],"data-close":!0})]})};Bl.displayName="Menu.MenuHeaderWrapper";const Fl=({navigationLinks:e})=>{const{reset:t}=tt(),{handleSelectContent:r}=he();return e?o.jsx("nav",{className:be["menu-header-navlinks"],children:e.map((n,s)=>o.jsx(ze,{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},s))}):null};Fl.displayName="Menu.MenuHeaderNavLinks";const ql=()=>{const{headerData:e}=xe();return o.jsxs("div",{className:be["menu-header-container"],children:[o.jsx(Bl,{title:e.title,subtitle:e.subtitle}),o.jsx(Fl,{navigationLinks:e.navigationLinks})]})};ql.displayName="Menu.MenuHeaderContainer";const zl=({children:e})=>{const{documentBodyRef:t}=jt(),{CONSTANTS:r}=xe(),n=No(),{setValue:s}=tt();return o.jsx(_.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:be["modal-modifier"],children:o.jsx("div",{className:be["menu-mobile"],children:e})})};zl.displayName="Menu.MenuRoot";const Zt=({children:e,...t})=>o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...t,className:be["menu-navigationbar-item"],children:e}),o.jsx(_.Utils.Divider,{direction:"vertical",size:"small",className:be.divider})]});Zt.displayName="Menu.NavigationBarItem";const Hl=()=>{const{setIsOpen:e}=He(),{reset:t}=tt(),{setValue:r}=St(),{handleSelectContent:n}=he(),{CONSTANTS:s}=xe(),{router:i}=we();return o.jsxs(_.Card,{id:"menu-navigationbar",shadow:!0,className:be["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[o.jsx(Zt,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:s.header.MENU_INFO.login.button_text}),o.jsx(Zt,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:s.header.MENU_INFO.bag.button_text}),o.jsx(Zt,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:s.header.MENU_INFO.store.button_text})]})};Hl.displayName="Menu.NavigationBar";const Wt={Root:zl,NavigationBar:Hl,Header:ql,Body:$l},Ul=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:n,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=he(),{setValue:c}=Oo(),{setValue:l}=tt(),{setValue:u}=St();return o.jsxs(o.Fragment,{children:[o.jsxs(_.Header.Wrapper,{children:[i==="left"&&o.jsx(_.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})}),o.jsx(_.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:o.jsx(ke,{href:"/",children:o.jsx(_.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),o.jsxs(_.Header.Support,{children:[o.jsx(_.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:o.jsx(_.Icon,{name:s.search,size:"medium"})}),o.jsx(_.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:o.jsx(_.Icon,{name:s.person,size:"medium"})}),o.jsx(Ho,{}),i==="right"&&o.jsx(_.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:o.jsx(_.Icon,{name:s.menu,size:"medium"})})]})]}),o.jsx(hc,{children:o.jsxs(Wt.Root,{children:[o.jsx(Wt.Header,{}),o.jsx(Wt.Body,{}),n?o.jsx(Wt.NavigationBar,{}):o.jsx(o.Fragment,{})]})})]})};Ul.displayName="Header.HeaderMobileWrapper";const fm="_root_wvekm_126",Le={"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:fm},Wl=({className:e,children:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Le["user-menu--content"],e),children:t});Wl.displayName="UserMenu.Content";var Gl=(e=>(e.Account="account",e))(Gl||{});const Vl=({className:e,cashBack:t,credits:r,link:n,total:s,...i})=>{const a=t?Oe(t):void 0,c=r?Oe(r):void 0,l=s?Oe(s):void 0;return o.jsx(_.Credits.Account,{...i,className:_.helpers.classNameConcat(Le["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:l,type:Gl.Account})};Vl.displayName="UserMenu.Credits";const Kl=({className:e,children:t,description:r,text:n,...s})=>{const{isMobile:i}=Ce();return o.jsx("div",{...s,className:_.helpers.classNameConcat(Le["user-menu--login"],e),"data-mobile":i,children:o.jsxs("div",{className:Le["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 Xl=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:s})=>{const{isMobile:i}=Ce(),a=vf({ICONS:n,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return o.jsxs("ul",{className:_.helpers.classNameConcat(Le["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>o.jsx("li",{children:o.jsx(ze,{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(ze,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:o.jsx(_.Icon,{name:_f(n)})},children:yf})}):o.jsx(o.Fragment,{})]})};Xl.displayName="UserMenu.Menu";const Yl=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),n=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=x.useCallback(i=>{i.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",n)}),[r,s,n]),{ref:t}},pm=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},mm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?pm(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+n+r}},Ql=x.createContext({}),hm=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[f,p]=x.useState({left:0,top:0}),{ref:d}=Yl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:m,top:h}=mm(d.current,i,r??0);p({left:m,top:h}),u(!1)}},[r,n,i,d]),o.jsx(Ql.Provider,{value:x.useMemo(()=>({...a,...f,contentRef:d,isLeaving:l,isOpen:n,setIsOpen:s,setIsLeaving:u,target:i}),[a,f,d,l,n,s,u,i]),children:e})},Zl=()=>{const e=x.useContext(Ql);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Jl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:s}=Zl();return o.jsxs(_.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:s,variant:"sideBottom",className:Le["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[o.jsx(_.Modal.Header,{navigation:"top",className:Le["modal-header-modifier"],children:o.jsx(_.Modal.Controls,{navigation:"top",isMobile:!0,className:Le["modal-controls-modifier"]})}),o.jsx(_.Modal.Body,{children:e})]})};Jl.displayName="UserMenu.Modal";const eu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...s})=>o.jsx(hm,{...s,className:Le.root,children:n?o.jsxs(o.Fragment,{children:[o.jsx(Ye.Modal,{Z_INDEX_WAR:r,children:t}),e]}):o.jsx(Ye.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});eu.displayName="UserMenu.Root";const tu=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=Zl();return o.jsx(_.Tooltip.Root,{arrow:"top-right",component:o.jsx("div",{...n,ref:s,children:t}),className:_.helpers.classNameConcat(Le["user-menu--tooltip"],Le["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:o.jsx("div",{className:Le["user-menu--tooltip"],children:e})})};tu.displayName="UserMenu.Tooltip";const Ye={Credits:Vl,Content:Wl,Login:Kl,Menu:Xl,Modal:Jl,Root:eu,Tooltip:tu},Wo=()=>{var y,g,b;const e=Do(),{isMobile:t}=Ce(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:s},storeConfig:i}=xe(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=ac(),{setValue:f}=St(),p=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.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(Ye.Root,{component:o.jsxs(Ye.Content,{children:[o.jsx(Ye.Login,{description:xf(d),text:bf(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(Ye.Credits,{credits:h,cashBack:m,link:`${i.secureSubdomain}/account#/meus-creditos`,total:h+m}):o.jsx(o.Fragment,{}),o.jsx(_.Utils.Divider,{}),o.jsx(Ye.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:n.current,isOpen:u,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};Wo.displayName="UserMenu";const ru=({tipBar:e,miniCart:t})=>{const{structureRef:r,rootRef:n,CONSTANTS:s}=xe(),{header:{HEADER_CONFIGS:i,Z_INDEX_WAR:a}}=s;return o.jsx(_.Header.Structure,{innerRef:r,adornment:{start:e},style:{position:"sticky",top:0,zIndex:a.header},className:zo["header-animation"],children:o.jsxs(_.Header.Root,{innerRef:n,style:{zIndex:a.header},variant:i.default_variant,interactiveVariant:i.interactive_variant,children:[o.jsx("div",{className:Ne.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:a.header_mobile},children:o.jsx(Ul,{})}),o.jsx("div",{className:Ne.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:a.header_desktop},children:o.jsx(Ol,{})}),t,o.jsx(Fo,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),o.jsx(Wo,{})]})})};ru.displayName="Header";const gm="_shippingFreight_6z8rf_6",ym="_shippingFreight__postalCodeGrid_6z8rf_10",_m="_shippingFreight__grid_6z8rf_14",vm="_shippingFreight__grid__title_6z8rf_18",bm="_shippingFreight__grid__remember_6z8rf_29",xm="_postalCodeContainer_6z8rf_44",Cm="_deliveryStatusBar__tag_6z8rf_49",Sm="_deliveryStatusBarError__tag_6z8rf_66",jm="_deliveryInfo_6z8rf_74",Em="_deliveryInfo__content_6z8rf_78",wm="_deliveryInfo__text_6z8rf_84",Rm="_deliveryInfo__title_6z8rf_89",Am="_deliveryInfo__subtitle_6z8rf_99",Pm="_deliveryInfo__tooltipIcon_6z8rf_109",Im="_deliveryInfo__tooltip_6z8rf_109",Nm="_freightGrid_6z8rf_148",Om="_freightContainer_6z8rf_155",Tm="_freightOption__content_6z8rf_160",km="_freightOption__value_6z8rf_166",Mm="_freightOption__title_6z8rf_177",Lm="_freightOption__title_item_6z8rf_181",Dm="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:gm,shippingFreight__postalCodeGrid:ym,shippingFreight__grid:_m,shippingFreight__grid__title:vm,shippingFreight__grid__remember:bm,postalCodeContainer:xm,deliveryStatusBar__tag:Cm,deliveryStatusBarError__tag:Sm,deliveryInfo:jm,deliveryInfo__content:Em,deliveryInfo__text:wm,deliveryInfo__title:Rm,deliveryInfo__subtitle:Am,deliveryInfo__tooltipIcon:Pm,deliveryInfo__tooltip:Im,freightGrid:Nm,freightContainer:Om,freightOption__content:Tm,freightOption__value:km,freightOption__title:Mm,freightOption__title_item:Lm,freightOption__paragraph:Dm,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},$m=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:s="",labelDescription:i,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," ",s]}),r&&o.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&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:i})]})]})]})},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})]})})})]})}),Fm=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),qm=({children:e})=>o.jsx("div",{className:fe.freightGrid,children:e}),zm=({children:e})=>o.jsx("div",{className:fe.postalCodeContainer,children:e}),Gs=({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]})}),Hm=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Um=e=>{var r,n,s;const t=[];return(s=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Wm=({component:e,parent:t,top:r,left:n,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Ce();return o.jsx(o.Fragment,{children:u?o.jsx(_.Tooltip.Root,{arrow:"bottom",component:o.jsxs("div",{...l,ref:i,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:i,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})})},Gm=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,B,O;const f=at(),p=at(H=>H.shipping),[d,m]=x.useState(),[h,y]=x.useState(!1),[g,b]=x.useState(!1),[j,v]=x.useState(!1),S=(I=(N=f.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,E=!(d!=null&&d.length)&&S?S:d,R=x.useRef(null),C=async H=>{const z=H.target.value.replace(/\D/g,"").slice(0,8);z.length>5?m(z.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(z)},A=async H=>{const U=H.target.value.replace(/\D/g,"");try{if((await _t.get(`https://viacep.com.br/ws/${U}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},k=async()=>{y(!0);try{const H=await _t.post("/api/checkout/simulation",{items:[{id:n,quantity:s,seller:t}],country:"BRA",postalCode:E});e(Um(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{y(!1),p(E,"BRA")}},w=async()=>{if(!n){v(!0),setTimeout(()=>v(!1),1500);return}await A({target:{value:E}}),h||(k(),a(!0))};return o.jsxs("div",{ref:R,style:{position:"relative"},children:[!n&&j?o.jsx(Wm,{component:c,isOpen:j,parent:R.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:(O=(B=f.shippingData)==null?void 0:B.address)==null?void 0:O.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:H=>{H.key==="Enter"&&w()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:o.jsx(_.Button,{onClick:w,size:r,title:"button",children:h?o.jsx(_.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Vm=({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(ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),o.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Km=({children:e})=>o.jsx("div",{className:fe.freightContainer,children:e}),Xm=({className:e,sellerId:t,skuId:r,quantity:n,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=he(),[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(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return o.jsxs(Km,{className:e,children:[o.jsxs(Vm,{freightConfig:c.freightConfig,children:[o.jsx(zm,{children:o.jsx(Gm,{onUpdateFreightItems:j,skuId:r,quantity:n,size:s,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?o.jsx(Gs,{size:s,message:m,setError:h}):p.length>0&&o.jsx(Gs,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?p.length>0&&o.jsxs(Fm,{children:[o.jsx(qm,{children:p.filter(({id:v})=>!v.includes("Retirada")).map(v=>o.jsx(Bm,{id:v.id,value:jo({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${Hm(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?o.jsx($m,{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]})},Je={"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"},Ym=({children:e,href:t,isLast:r,title:n,ICONS:s})=>o.jsx(_.BreadCrumb.Item,{adornment:{end:r&&o.jsx(_.Icon,{name:s.arrow_right})},children:r?o.jsx(ze,{href:t??"/",size:"medium",title:n,disableUnderline:!0,children:e}):e}),nu=({ICONS:e,...t})=>{var a;const{state:r}=or(),n=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:n??n).slice(1).split("/"),i=Oc(s);return o.jsx("div",{...t,className:Je["pcd-navigation--breadcrumb"],children:o.jsx(_.BreadCrumb.DivWrapper,{children:o.jsx(_.BreadCrumb.List,{children:Array.isArray(i)&&i.map((c,l)=>{var u,f;return x.createElement(Ym,{...c,isLast:l!==i.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," "))})})})})};nu.displayName="PLPNavigation.BreadCrumb";const ou=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:n,...s})=>o.jsxs("div",{...s,className:Je["pdc-navigation--content"],children:[o.jsx(lt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:n}),e]});ou.displayName="PLPNavigation.Content";const Qm="_sort_35wro_1",ur={sort:Qm,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Zm=({children:e,sortListOpen:t,btnAdornment:r,style:n,...s})=>o.jsx(_.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...n,textDecoration:"none"},className:ur["sort-button"],children:e}),Jm=e=>o.jsx(_.RadioButton.Radio,{...e}),eh=({children:e,className:t,name:r,...n})=>o.jsx(_.RadioButton.Group,{...n,name:r||"sort-group",className:_.helpers.classNameConcat(ur["sort-list"],t),children:e}),th=({children:e,className:t,shadow:r=!0,padding:n="small",height:s="fit-content",...i})=>o.jsx(_.Card,{...i,shadow:r,className:_.helpers.classNameConcat(ur["sort-list-wrapper"],t),padding:n,height:s,children:e}),su=x.forwardRef(({children:e,className:t,...r},n)=>o.jsx("div",{...r,ref:n,className:_.helpers.classNameConcat(ur.sort,t),children:e}));su.displayName="SortRoot";const Go=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:n,CONSTANTS:s,...i})=>{var d;const a=(d=n==null?void 0:n.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=he();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:f}=Yl(()=>r(!1)),p=m=>{const h=m.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:Xe.options[h]}}}),r(!1)};return o.jsxs(su,{...i,ref:f,children:[o.jsx(Zm,{btnAdornment:{listOpen:o.jsx(_.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:o.jsx(_.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?Xe.options[c]:Xe.placeholder},"sort-button"),t&&o.jsx(th,{children:o.jsx(eh,{name:"sort-group",value:c??"",onChange:p,children:Object.keys(Xe.options).map(m=>o.jsx(Jm,{label:Xe.options[m],value:m},m))})})]})};Go.displayName="Sort";const iu=x.createContext({}),rh=({children:e,...t})=>{const[r,n]=x.useState(!1);return o.jsx(iu.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:n}),[t,r,n]),children:e})},nh=()=>{const e=x.useContext(iu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},au=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:n,onSort:s,setOpenFilters:i,setOpenOrderBy:a}=nh();return o.jsxs("div",{className:Je["pdc-navigation--filters"],children:[o.jsx(lt.BreadCrumb,{ICONS:e}),o.jsxs("div",{className:Je["pdc-navigation--filters--content"],children:[o.jsx(Go,{handleSelectValue:c=>s(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:()=>i(!0),size:"small",variant:"tertiary",children:t.filter_button}),o.jsx(lt.Total,{})]})]})};au.displayName="PLPNavigation.Filters";const cu=({children:e,onSort:t,setOpenFilters:r,style:n,PDC_NAVIGATION:s,ICONS:i,searchParams:a,...c})=>{const l=x.useRef(null);return o.jsx(rh,{onSort:t,setOpenFilters:r,children:o.jsx("div",{...c,className:Je["pdc-navigation"],ref:l,style:{...n},children:o.jsx(lt.Content,{ICONS:i,PDC_NAVIGATION:s,searchParams:a,children:e})})})};cu.displayName="Root";const lu=({callback:e,selected:t,CONSTANTS:r,...n})=>o.jsx("div",{...n,className:Je["pdc-navigation--selected"],children:o.jsx("div",{className:Je["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:o.jsx(lt.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):o.jsx(o.Fragment,{})})});lu.displayName="PLPNavigation.Selected";const 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"},uu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(n=>n.key===e))==null?void 0:r.label},du=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(n=>n.key===e))==null?void 0:r.order)??0},po=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],n=Oe(Number(r));return`${Oe(Number(t))} até ${n}`},oh=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),n=Math.max(...t.map(Math.abs));return[r,n]},fu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Vo,createTagPrice:po,getAbsoluteMinMax:oh,getColor:Ko,getName:uu,getOrder:du},Symbol.toStringTag,{value:"Module"})),De={"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"},pu=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:n,onToggleFacet:s}=ft();return o.jsxs("div",{...r,className:De["filter--modal--body--content"],children:[Array.isArray(n.facets)&&n.facets.map(a=>o.jsx(qe.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=n.facets)!=null&&i.length)&&o.jsx(qe.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};pu.displayName="Filter.Item.Content";const mu=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return o.jsxs("div",{className:De["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})]})};mu.displayName="Filter.Empty";const hu=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:n,...s})=>{const i=du({key:t.key,PLP_FILTERS:n.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return o.jsx(qe.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(qe.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:n.PLP_SIZE_ORDER});if(t.key==="category-2")return o.jsx(qe.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:n.ICONS})}return t.__typename==="FacetRange"?o.jsx(qe.Price,{facet:t}):o.jsx("p",{children:"Filter not support!!!"})};return o.jsx("div",{...s,className:De["filter--item"],style:{order:i},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:uu({key:t.key,PLP_FILTERS:n.PLP_FILTERS})})})})}),o.jsx(_.Accordion.Body,{children:a()})]})})};hu.displayName="Filter.Item";const Xo={"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"},gu=({children:e,...t})=>o.jsx("div",{...t,className:Xo["product-variation-list--list"],children:e});gu.displayName="ProductVariationList.List";const yu=({fill:e="#1352C7",src:t="",type:r="size",text:n,...s})=>{const{nextimage:i}=we();return r==="size"?o.jsxs(_.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[o.jsx(_.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),o.jsx(_.ToggleSize.Text,{children:n})]}):o.jsxs(_.ToggleStyle.Wrapper,{...s,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(i,{alt:n??"image",height:40,src:t,width:40})})]})};yu.displayName="ProductVariationList.Option";const _u=({children:e,...t})=>o.jsx("div",{className:Xo["product-variation-list"],...t,children:e});_u.displayName="ProductVariationList.Root";const vu=({children:e,title:t,...r})=>o.jsxs("div",{...r,className:Xo["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]});vu.displayName="ProductVariationList.Title";const Ze={List:gu,Option:yu,Title:vu,Root:_u},bu=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:n,...s})=>o.jsx(Ze.Root,{...s,children:o.jsx(Ze.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>o.jsx(Ze.Option,{active:a,"data-color":Vo({key:i,PLP_FILTERS:r}),fill:Ko({value:c,PLP_FILTERS_COLORS:n}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});bu.displayName="Filter.Item.Color";const xu=({facet:e,...t})=>{var u,f;const{filters:{selected:r},price:n,onToggleFacet:s}=ft(),[i,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))??[i,a];return o.jsx("div",{...t,className:De["filter--item--price"],children:o.jsxs(_.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:p=>{var d,m;p&&s({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})})})]})})};xu.displayName="Filter.Item.Price";const Cu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...n})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return o.jsx(Ze.Root,{...n,children:o.jsx(Ze.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>o.jsx(Ze.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};Cu.displayName="Filter.Item.Sizes";const Su=({columns:e,facetKey:t,onToggleFacet:r,values:n,ICONS:s,...i})=>o.jsx("div",{...i,className:De["filter--item--toggle"],children:o.jsx("div",{className:De["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:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});Su.displayName="Filter.Item.Toggle";const ju=({...e})=>{const{isLoading:t}=ft();return o.jsx("div",{className:De["filter--loading"],"data-active":t,...e,children:o.jsx(_.Spinner,{indicatorColor:"#000",background:"#222"})})};ju.displayName="Filter.Loading";const Eu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:n,ICONS:s}})=>{var f;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=ft();return o.jsxs(_.Modal.Root,{className:_.helpers.classNameConcat(De["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:s.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:De["filter--modal--body"],children:e}),o.jsx(qe.Loading,{})]}),o.jsx(_.Modal.Footer,{children:o.jsxs("div",{className:De["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:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};Eu.displayName="Filter.Modal";const wu=({children:e,className:t,isMobile:r,CONSTANTS:n,...s})=>o.jsx(Bc,{...s,PLP_FILTERS:n.PLP_FILTERS,children:o.jsx(qe.Modal,{className:t,isMobile:r,CONSTANTS:n,children:e})});wu.displayName="Filter.Root";const Ru=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:n,onToggleFacet:s}=ft();return o.jsx("div",{className:De["filter--selected"],children:o.jsx("div",{className:De["filter--selected--content"],children:Array.isArray(n.selected)&&n.selected.map(({key:i,value:a})=>i==="productclusterids"?null:o.jsx(_.Tag,{title:i==="price"?po({value:a}):a,adornment:{end:o.jsx(_.Icon,{name:e.close,size:"x-small"})},colorSquare:Ko({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:Vo({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?po({value:a}):a},a))})})};Ru.displayName="Filter.Selected";const qe={Colors:bu,Content:pu,Empty:mu,Modal:Eu,Item:hu,Root:wu,Loading:ju,Selected:Ru,Price:xu,Sizes:Cu,Toggle:Su},{checkedColor:sh,createTagPrice:Vs,getColor:ih}=fu,Au=({callback:e,facet:t,CONSTANTS:r})=>o.jsx(_.Tag,{title:(t==null?void 0:t.key)==="price"?Vs({value:t.value}):t.value.toUpperCase(),adornment:{end:o.jsx(_.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:ih({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:sh({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Vs({value:t.value}):t.value.toUpperCase()});Au.displayName="PLPNavigation.Selected.Item";const Pu=()=>o.jsx(_.TextStructure.Root,{children:o.jsx("p",{id:"pdc-navigation--total"})});Pu.displayName="PLPNavigation.Total";const lt={BreadCrumb:nu,Content:ou,Filters:au,Root:cu,Selected:lu,SelectedItem:Au,Total:Pu},Yo={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Iu=({className:e,children:t,columns:r=1,isMobile:n=!1,gap:s=8,position_grid:i,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(Yo["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};Iu.displayName="ProductList.Banner";const Nu=({isKit:e,parent:t,productId:r,setNotify:n,CONSTANTS:s})=>{const{router:i}=we(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),f=h=>i.push(h??""),p=async h=>{try{const y=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:s.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){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=y.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.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})})};Nu.displayName="ProductList.Card.Actions";const Ou=({className:e,children:t,gap:r=32,item:n,isMobile:s,order:i,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 S;typeof u=="function"&&u((S=j.isVariantOf)==null?void 0:S.hasVariant,v)},[u]),b=n.name.substring(0,4).toLowerCase()==="kit ";return o.jsxs("div",{...m,className:_.helpers.classNameConcat(Yo["product-list--card"],e),"data-mobile":s,"data-order":i,ref:h,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[o.jsxs(ye.Root,{item:n,isMobile:s,index:l,size:s?"small":"medium",order:i,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(Nu,{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]})};Ou.displayName="ProductList.Card";const Tu=({children:e,className:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(Yo["product-list"],t),children:e});Tu.displayName="ProductList.Grid";const ah={Banner:Iu,Card:Ou,Root:Tu,helpers:zf},ch="_footer__bottom_1o9af_2",lh="_footer__wrapper_1o9af_10",uh="_footer__main_1o9af_39",dh="_footer__legalInformation_1o9af_55",fh="_footer__column_1o9af_77",ph="_footer__columnContent_1o9af_87",mh="_footer__item_1o9af_91",hh="_footer__itemLink_1o9af_107",gh="_footer__columnTitle_1o9af_122",yh="_footer__columnTitleIcon_1o9af_134",_h="_footer__iconList_1o9af_147",vh="_footer__itemSmallText_1o9af_157",bh="_payment_1o9af_168",xh="_footer__iconContainer_1o9af_173",Ch="_footer__iconListSubHeader_1o9af_178",Sh="_accordionWrapper_1o9af_200",jh="_accordionHeader_1o9af_204",Eh="_accordionTextWrapper_1o9af_208",pe={footer__bottom:ch,footer__wrapper:lh,footer__main:uh,footer__legalInformation:dh,footer__column:fh,footer__columnContent:ph,footer__item:mh,footer__itemLink:hh,footer__columnTitle:gh,footer__columnTitleIcon:yh,footer__iconList:_h,footer__itemSmallText:vh,payment:bh,footer__iconContainer:xh,footer__iconListSubHeader:Ch,accordionWrapper:Sh,accordionHeader:jh,accordionTextWrapper:Eh,"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 ku={},Qo={},wt={};(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)}}})(wt);var Mu={};(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:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:n,p=a?a*40:s,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"}})(Mu);var dr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(dr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=wt,r=Mu,n=dr,s=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(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 S=/(^|\s)(1?\d?\d)vw/g,E=[];for(let R;R=S.exec(g);R)E.push(parseInt(R[2]));if(E.length){const R=Math.min(...E)*.01;return{widths:j.filter(C=>C>=b[0]*R),kind:"w"}}return{widths:j,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>j.find(E=>E>=S)||j[j.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:j,quality:v,sizes:S,loader:E}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:R,kind:C}=p(y,j,S),A=R.length-1;return{sizes:!S&&C==="w"?"100vw":S,srcSet:R.map((k,w)=>E({config:y,src:g,quality:v,width:k})+" "+(C==="w"?k:w+1)+C).join(", "),src:E({config:y,src:g,quality:v,width:R[A]})}}function m(h,y){let{src:g,sizes:b,unoptimized:j=!1,priority:v=!1,loading:S,className:E,quality:R,width:C,height:A,fill:k=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:B="empty",blurDataURL:O,fetchPriority:H,layout:U,objectFit:z,objectPosition:V,lazyBoundary:W,lazyRoot:F,...Z}=h;const{imgConf:P,showAltText:T,blurComplete:D,defaultLoader:K}=y;let re,J=P||n.imageConfigDefault;if("allSizes"in J)re=J;else{const G=[...J.deviceSizes,...J.imageSizes].sort((je,Y)=>je-Y),ue=J.deviceSizes.sort((je,Y)=>je-Y);re={...J,allSizes:G,deviceSizes:ue}}let L=Z.loader||K;delete Z.loader,delete Z.srcSet;const ee="__next_img_default"in L;if(ee){if(re.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=L;L=ue=>{const{config:je,...Y}=ue;return G(Y)}}if(U){U==="fill"&&(k=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},je=G[U];je&&(w={...w,...je});const Y=ue[U];Y&&!b&&(b=Y)}let Q="",te=f(C),$=f(A),M,ne;if(c(g)){const G=i(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(M=G.blurWidth,ne=G.blurHeight,O=O||G.blurDataURL,Q=G.src,!k){if(!te&&!$)te=G.width,$=G.height;else if(te&&!$){const ue=te/G.width;$=Math.round(G.height*ue)}else if(!te&&$){const ue=$/G.height;te=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Q;let ie=!v&&(S==="lazy"||typeof S>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(j=!0,ie=!1),re.unoptimized&&(j=!0),ee&&g.endsWith(".svg")&&!re.dangerouslyAllowSVG&&(j=!0),v&&(H="high");const ce=f(R);if(process.env.NODE_ENV!=="production"){if(re.output==="export"&&ee&&!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(k){if(C)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(A)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.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(w!=null&&w.width&&w.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(w!=null&&w.height&&w.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 te>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(te))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+C+'".');if(typeof $>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+A+'".')}if(!s.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+s.map(String).join(",")+".");if(v&&S==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&te&&$&&te*$<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!O){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)
|
|
9
9
|
- Remove the "placeholder" property, effectively no blur effect
|
|
10
|
-
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in
|
|
11
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:
|
|
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
|
|
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(
|
|
14
|
-
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else
|
|
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 Gr={},Yi;function dh(){return Yi||(Yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return i}});const r=Pe._(x),n=lr,i=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(i.displayName="ImageConfigContext")}(Gr)),Gr}var Wr={},Vr={},Kr={exports:{}};const fh=np(Ie.__viteBrowserExternal);var Xr={},Qr={},Yr,Zi;function Nu(){return Zi||(Zi=1,Yr=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}),Yr}var Zr,Ji;function ur(){if(Ji)return Zr;Ji=1;var e=Nu();return Zr=function(){return e()&&!!Symbol.toStringTag},Zr}var Jr,es;function Ou(){return es||(es=1,Jr=Object),Jr}var en,ts;function ph(){return ts||(ts=1,en=Error),en}var tn,rs;function mh(){return rs||(rs=1,tn=EvalError),tn}var rn,ns;function hh(){return ns||(ns=1,rn=RangeError),rn}var nn,os;function gh(){return os||(os=1,nn=ReferenceError),nn}var on,is;function Tu(){return is||(is=1,on=SyntaxError),on}var sn,ss;function At(){return ss||(ss=1,sn=TypeError),sn}var an,as;function yh(){return as||(as=1,an=URIError),an}var cn,cs;function _h(){return cs||(cs=1,cn=Math.abs),cn}var ln,ls;function vh(){return ls||(ls=1,ln=Math.floor),ln}var un,us;function bh(){return us||(us=1,un=Math.max),un}var dn,ds;function xh(){return ds||(ds=1,dn=Math.min),dn}var fn,fs;function Ch(){return fs||(fs=1,fn=Math.pow),fn}var pn,ps;function Sh(){return ps||(ps=1,pn=Math.round),pn}var mn,ms;function jh(){return ms||(ms=1,mn=Number.isNaN||function(t){return t!==t}),mn}var hn,hs;function Ah(){if(hs)return hn;hs=1;var e=jh();return hn=function(r){return e(r)||r===0?r:r<0?-1:1},hn}var gn,gs;function Rh(){return gs||(gs=1,gn=Object.getOwnPropertyDescriptor),gn}var yn,ys;function ft(){if(ys)return yn;ys=1;var e=Rh();if(e)try{e([],"length")}catch{e=null}return yn=e,yn}var _n,_s;function dr(){if(_s)return _n;_s=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return _n=e,_n}var vn,vs;function Eh(){if(vs)return vn;vs=1;var e=typeof Symbol<"u"&&Symbol,t=Nu();return vn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},vn}var bn,bs;function Mu(){return bs||(bs=1,bn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),bn}var xn,xs;function ku(){if(xs)return xn;xs=1;var e=Ou();return xn=e.getPrototypeOf||null,xn}var Cn,Cs;function wh(){if(Cs)return Cn;Cs=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 p=[],f=0;f<l.length;f+=1)p[f]=l[f];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},s=function(l,u){for(var p=[],f=u,d=0;f<l.length;f+=1,d+=1)p[d]=l[f];return p},a=function(c,l){for(var u="",p=0;p<c.length;p+=1)u+=c[p],p+1<c.length&&(u+=l);return u};return Cn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var p=s(arguments,1),f,d=function(){if(this instanceof f){var b=u.apply(this,i(p,arguments));return Object(b)===b?b:this}return u.apply(l,i(p,arguments))},h=r(0,u.length-p.length),m=[],y=0;y<h;y++)m[y]="$"+y;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,f.prototype=new g,g.prototype=null}return f},Cn}var Sn,Ss;function Rt(){if(Ss)return Sn;Ss=1;var e=wh();return Sn=Function.prototype.bind||e,Sn}var jn,js;function Xo(){return js||(js=1,jn=Function.prototype.call),jn}var An,As;function Qo(){return As||(As=1,An=Function.prototype.apply),An}var Rn,Rs;function Ph(){return Rs||(Rs=1,Rn=typeof Reflect<"u"&&Reflect&&Reflect.apply),Rn}var En,Es;function Lu(){if(Es)return En;Es=1;var e=Rt(),t=Qo(),r=Xo(),n=Ph();return En=n||e.call(r,t),En}var wn,ws;function Yo(){if(ws)return wn;ws=1;var e=Rt(),t=At(),r=Xo(),n=Lu();return wn=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},wn}var Pn,Ps;function Ih(){if(Ps)return Pn;Ps=1;var e=Yo(),t=ft(),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 Pn=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(c){return s(c==null?c:i(c))}:!1,Pn}var In,Is;function Zo(){if(Is)return In;Is=1;var e=Mu(),t=ku(),r=Ih();return In=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,In}var Nn,Ns;function Du(){if(Ns)return Nn;Ns=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Rt();return Nn=r.call(e,t),Nn}var On,Os;function $u(){if(Os)return On;Os=1;var e,t=Ou(),r=ph(),n=mh(),i=hh(),s=gh(),a=Tu(),c=At(),l=yh(),u=_h(),p=vh(),f=bh(),d=xh(),h=Ch(),m=Sh(),y=Ah(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},j=ft(),v=dr(),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=Zo(),I=ku(),B=Mu(),R=Qo(),O=Xo(),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%":p,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":h,"%Math.round%":m,"%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=Rt(),W=Du(),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 On=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},On}var Tn,Ts;function Et(){if(Ts)return Tn;Ts=1;var e=$u(),t=Yo(),r=t([e("%String.prototype.indexOf%")]);return Tn=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Tn}var Mn,Ms;function Nh(){if(Ms)return Mn;Ms=1;var e=ur()(),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,Mn=s?n:i,Mn}var kn,ks;function Oh(){if(ks)return kn;ks=1;var e=Et(),t=ur()(),r=Du(),n=ft(),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 h=n(d,"lastIndex"),m=h&&r(h,"value");if(!m)return!1;try{s(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return kn=i,kn}var Ln,Ls;function Th(){if(Ls)return Ln;Ls=1;var e=Et(),t=Oh(),r=e("RegExp.prototype.exec"),n=At();return Ln=function(s){if(!t(s))throw new n("`regex` must be a RegExp");return function(c){return r(s,c)!==null}},Ln}var Dn,Ds;function Mh(){if(Ds)return Dn;Ds=1;var e=Et(),t=Th(),r=t(/^\s*(?:function)?\*/),n=ur()(),i=Zo(),s=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Dn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!n){var f=s(p);return f==="[object GeneratorFunction]"}if(!i)return!1;if(typeof l>"u"){var d=c();l=d?i(d):!1}return i(p)===l},Dn}var $n,$s;function kh(){if($s)return $n;$s=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]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",m=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===f||A===d||A===h||A===l)&&v("")==null}catch{}return!1})}return $n=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(m)return a(v);if(s(v))return!1;var A=c.call(v);return A!==u&&A!==p&&!/^\[object HTML/.test(A)?!1:a(v)},$n}var Bn,Bs;function Lh(){if(Bs)return Bn;Bs=1;var e=kh(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,p){for(var f=0,d=l.length;f<d;f++)r.call(l,f)&&(p==null?u(l[f],f,l):u.call(p,l[f],f,l))},i=function(l,u,p){for(var f=0,d=l.length;f<d;f++)p==null?u(l.charAt(f),f,l):u.call(p,l.charAt(f),f,l)},s=function(l,u,p){for(var f in l)r.call(l,f)&&(p==null?u(l[f],f,l):u.call(p,l[f],f,l))};function a(c){return t.call(c)==="[object Array]"}return Bn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),a(l)?n(l,u,f):typeof l=="string"?i(l,u,f):s(l,u,f)},Bn}var Fn,Fs;function Dh(){return Fs||(Fs=1,Fn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Fn}var qn,qs;function $h(){if(qs)return qn;qs=1;var e=Dh(),t=typeof globalThis>"u"?tl:globalThis;return qn=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},qn}var zn={exports:{}},Hn,zs;function Bh(){if(zs)return Hn;zs=1;var e=dr(),t=Tu(),r=At(),n=ft();return Hn=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,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(s,a);if(e)e(s,a,{configurable:p===null&&d?d.configurable:!p,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(f||!l&&!u&&!p)s[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hn}var Un,Hs;function Fh(){if(Hs)return Un;Hs=1;var e=dr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Un=t,Un}var Gn,Us;function qh(){if(Us)return Gn;Us=1;var e=$u(),t=Bh(),r=Fh()(),n=ft(),i=At(),s=e("%Math.floor%");return Gn=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],p=!0,f=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(f=!1)}return(p||f||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Gn}var Wn,Gs;function zh(){if(Gs)return Wn;Gs=1;var e=Rt(),t=Qo(),r=Lu();return Wn=function(){return r(e,t,arguments)},Wn}var Ws;function Hh(){return Ws||(Ws=1,function(e){var t=qh(),r=dr(),n=Yo(),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}(zn)),zn.exports}var Vn,Vs;function Bu(){if(Vs)return Vn;Vs=1;var e=Lh(),t=$h(),r=Hh(),n=Et(),i=ft(),s=Zo(),a=n("Object.prototype.toString"),c=ur()(),l=typeof globalThis>"u"?tl:globalThis,u=t(),p=n("String.prototype.slice"),f=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 h=function(g){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(g)===v&&(b=p(v,1))}catch{}}),b},m=function(g){var b=!1;return e(d,function(j,v){if(!b)try{j(g),b=p(v,1)}catch{}}),b};return Vn=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=p(a(g),8,-1);return f(u,b)>-1?b:b!=="Object"?!1:m(g)}return i?h(g):null},Vn}var Kn,Ks;function Uh(){if(Ks)return Kn;Ks=1;var e=Bu();return Kn=function(r){return!!e(r)},Kn}var Xs;function Gh(){return Xs||(Xs=1,function(e){var t=Nh(),r=Mh(),n=Bu(),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),p=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(c)var h=s(Symbol.prototype.valueOf);function m(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 m(q,u)}e.isNumberObject=L;function T(q){return m(q,p)}e.isStringObject=T;function re(q){return m(q,f)}e.isBooleanObject=re;function se(q){return a&&m(q,d)}e.isBigIntObject=se;function ce(q){return c&&m(q,h)}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")}})})}(Qr)),Qr}var Xn,Qs;function Wh(){return Qs||(Qs=1,Xn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Xn}var Gt={exports:{}},Ys;function Vh(){return Ys||(Ys=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 Zs;function Kh(){return Zs||(Zs=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),p(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 p(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=p(w,X,D)),X}var te=f(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=h(w,M,D,k,Z):re=Z.map(function(se){return m(w,M,D,k,se,ee)}),w.seen.pop(),y(re,Y,L)}function f(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 h(w,M,D,X,te){for(var Z=[],k=0,J=M.length;k<J;++k)K(M,String(k))?Z.push(m(w,M,D,X,String(k),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(m(w,M,D,X,Y,!0))}),Z}function m(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=p(w,Y.value,null):J=p(w,Y.value,D-1),J.indexOf(`
|
|
16
|
-
`)>-1&&(
|
|
17
|
-
`).map(function(
|
|
18
|
-
`).slice(2):
|
|
19
|
-
`+
|
|
20
|
-
`).map(function(
|
|
21
|
-
`))):
|
|
22
|
-
`)>=0,
|
|
23
|
-
`)+" "+
|
|
24
|
-
`)+" "+D[1]:D[0]+
|
|
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,
|
|
10
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in Z&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!j&&!ee){const G=L({config:re,src:g,width:te||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
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:U,objectFit:z,objectPosition:V,lazyBoundary:W,lazyRoot:F}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
|
|
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 Y=(je==null||(ue=je.element)==null?void 0:ue.src)||"",oe=l.get(Y);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(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:z,objectPosition:V}:{},T?{}:{color:"transparent"},w),ae=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:te,heightInt:$,blurWidth:M,blurHeight:ne,blurDataURL:O||"",objectFit:le.objectFit})+'")':'url("'+B+'")':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&&B==="blur"&&O!=null&&O.startsWith("/")&&(q.backgroundImage='url("'+O+'")');const ge=d({config:re,src:g,unoptimized:j,width:te,quality:ce,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(ge.src)}catch{G=new URL(ge.src,window.location.href)}l.set(G.href,{src:g,priority:v,placeholder:B})}return{props:{...Z,loading:ie?"lazy":S,fetchPriority:H,width:te,height:$,decoding:"async",className:E,style:{...le,...q},sizes:ge.sizes,srcSet:ge.srcSet,src:ge.src},meta:{unoptimized:j,priority:v,placeholder:B,fill:k}}}})(Qo);var mo={exports:{}},Gt={exports:{}},Hr={},Ks;function wh(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=x,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(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)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Hr)),Hr}var Ur={},Xs;function Rh(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ie._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Ur)),Ur}var Wr={},Ys;function Lu(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ie._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Wr)),Wr}var Gr={},Qs;function Ah(){return Qs||(Qs=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:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||s&&i}}(Gr)),Gr}var Zs;function Ph(){return Zs||(Zs=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(j,v){for(var S in v)Object.defineProperty(j,S,{enumerable:!0,get:v[S]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=Ie,i=ir()._(x),a=n._(wh()),c=Rh(),l=Lu(),u=Ah(),f=wt;function p(j){j===void 0&&(j=!1);const v=[i.default.createElement("meta",{charSet:"utf-8"})];return j||v.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(j,v){return typeof v=="string"||typeof v=="number"?j:v.type===i.default.Fragment?j.concat(i.default.Children.toArray(v.props.children).reduce((S,E)=>typeof E=="string"||typeof E=="number"?S:S.concat(E),[])):j.concat(v)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const j=new Set,v=new Set,S=new Set,E={};return R=>{let C=!0,A=!1;if(R.key&&typeof R.key!="number"&&R.key.indexOf("$")>0){A=!0;const k=R.key.slice(R.key.indexOf("$")+1);j.has(k)?C=!1:j.add(k)}switch(R.type){case"title":case"base":v.has(R.type)?C=!1:v.add(R.type);break;case"meta":for(let k=0,w=m.length;k<w;k++){const N=m[k];if(R.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?C=!1:S.add(N);else{const I=R.props[N],B=E[N]||new Set;(N!=="name"||!A)&&B.has(I)?C=!1:(B.add(I),E[N]=B)}}break}return C}}function y(j,v){const{inAmpMode:S}=v;return j.reduce(d,[]).reverse().concat(p(S).reverse()).filter(h()).reverse().map((E,R)=>{const C=E.key||R;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&E.type==="link"&&E.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(A=>E.props.href.startsWith(A))){const A={...E.props||{}};return A["data-href"]=A.href,A.href=void 0,A["data-optimized-fonts"]=!0,i.default.cloneElement(E,A)}if(process.env.NODE_ENV==="development")if(E.type==="script"&&E.props.type!=="application/ld+json"){const A=E.props.src?'<script> tag with src="'+E.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+A+`). Use next/script instead.
|
|
14
|
+
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else E.type==="link"&&E.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+E.props.href+`"). Use Document instead.
|
|
15
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(E,{key:C})})}function g(j){let{children:v}=j;const S=(0,i.useContext)(c.AmpStateContext),E=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:E,inAmpMode:(0,u.isInAmpMode)(S)},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)}(Gt,Gt.exports)),Gt.exports}var Vr={},Js;function Ih(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Ie._(x),n=dr,s=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(Vr)),Vr}var Kr={},Xr={},Yr={exports:{}};const Nh=Sp(Ne.__viteBrowserExternal);var Qr={},Zr={},Jr,ei;function Du(){return ei||(ei=1,Jr=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 s=42;t[r]=s;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Jr}var en,ti;function fr(){if(ti)return en;ti=1;var e=Du();return en=function(){return e()&&!!Symbol.toStringTag},en}var tn,ri;function $u(){return ri||(ri=1,tn=Object),tn}var rn,ni;function Oh(){return ni||(ni=1,rn=Error),rn}var nn,oi;function Th(){return oi||(oi=1,nn=EvalError),nn}var on,si;function kh(){return si||(si=1,on=RangeError),on}var sn,ii;function Mh(){return ii||(ii=1,sn=ReferenceError),sn}var an,ai;function Bu(){return ai||(ai=1,an=SyntaxError),an}var cn,ci;function Rt(){return ci||(ci=1,cn=TypeError),cn}var ln,li;function Lh(){return li||(li=1,ln=URIError),ln}var un,ui;function Dh(){return ui||(ui=1,un=Math.abs),un}var dn,di;function $h(){return di||(di=1,dn=Math.floor),dn}var fn,fi;function Bh(){return fi||(fi=1,fn=Math.max),fn}var pn,pi;function Fh(){return pi||(pi=1,pn=Math.min),pn}var mn,mi;function qh(){return mi||(mi=1,mn=Math.pow),mn}var hn,hi;function zh(){return hi||(hi=1,hn=Math.round),hn}var gn,gi;function Hh(){return gi||(gi=1,gn=Number.isNaN||function(t){return t!==t}),gn}var yn,yi;function Uh(){if(yi)return yn;yi=1;var e=Hh();return yn=function(r){return e(r)||r===0?r:r<0?-1:1},yn}var _n,_i;function Wh(){return _i||(_i=1,_n=Object.getOwnPropertyDescriptor),_n}var vn,vi;function pt(){if(vi)return vn;vi=1;var e=Wh();if(e)try{e([],"length")}catch{e=null}return vn=e,vn}var bn,bi;function pr(){if(bi)return bn;bi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return bn=e,bn}var xn,xi;function Gh(){if(xi)return xn;xi=1;var e=typeof Symbol<"u"&&Symbol,t=Du();return xn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},xn}var Cn,Ci;function Fu(){return Ci||(Ci=1,Cn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Cn}var Sn,Si;function qu(){if(Si)return Sn;Si=1;var e=$u();return Sn=e.getPrototypeOf||null,Sn}var jn,ji;function Vh(){if(ji)return jn;ji=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",s=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},i=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 jn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var b=u.apply(this,s(f,arguments));return Object(b)===b?b:this}return u.apply(l,s(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},jn}var En,Ei;function At(){if(Ei)return En;Ei=1;var e=Vh();return En=Function.prototype.bind||e,En}var wn,wi;function Zo(){return wi||(wi=1,wn=Function.prototype.call),wn}var Rn,Ri;function Jo(){return Ri||(Ri=1,Rn=Function.prototype.apply),Rn}var An,Ai;function Kh(){return Ai||(Ai=1,An=typeof Reflect<"u"&&Reflect&&Reflect.apply),An}var Pn,Pi;function zu(){if(Pi)return Pn;Pi=1;var e=At(),t=Jo(),r=Zo(),n=Kh();return Pn=n||e.call(r,t),Pn}var In,Ii;function es(){if(Ii)return In;Ii=1;var e=At(),t=Rt(),r=Zo(),n=zu();return In=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},In}var Nn,Ni;function Xh(){if(Ni)return Nn;Ni=1;var e=es(),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__"),s=Object,i=s.getPrototypeOf;return Nn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,Nn}var On,Oi;function ts(){if(Oi)return On;Oi=1;var e=Fu(),t=qu(),r=Xh();return On=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,On}var Tn,Ti;function Hu(){if(Ti)return Tn;Ti=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=At();return Tn=r.call(e,t),Tn}var kn,ki;function Uu(){if(ki)return kn;ki=1;var e,t=$u(),r=Oh(),n=Th(),s=kh(),i=Mh(),a=Bu(),c=Rt(),l=Lh(),u=Dh(),f=$h(),p=Bh(),d=Fh(),m=qh(),h=zh(),y=Uh(),g=Function,b=function(ee){try{return g('"use strict"; return ('+ee+").constructor;")()}catch{}},j=pt(),v=pr(),S=function(){throw new c},E=j?function(){try{return arguments.callee,S}catch{try{return j(arguments,"callee").get}catch{return S}}}():S,R=Gh()(),C=ts(),A=qu(),k=Fu(),w=Jo(),N=Zo(),I={},B=typeof Uint8Array>"u"||!C?e:C(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!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%":s,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&C?C(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":B,"%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%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":A,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":k};if(C)try{null.error}catch(ee){var H=C(C(ee));O["%Error.prototype%"]=H}var U=function ee(Q){var te;if(Q==="%AsyncFunction%")te=b("async function () {}");else if(Q==="%GeneratorFunction%")te=b("function* () {}");else if(Q==="%AsyncGeneratorFunction%")te=b("async function* () {}");else if(Q==="%AsyncGenerator%"){var $=ee("%AsyncGeneratorFunction%");$&&(te=$.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var M=ee("%AsyncGenerator%");M&&C&&(te=C(M.prototype))}return O[Q]=te,te},z={__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"]},V=At(),W=Hu(),F=V.call(N,Array.prototype.concat),Z=V.call(w,Array.prototype.splice),P=V.call(N,String.prototype.replace),T=V.call(N,String.prototype.slice),D=V.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,J=function(Q){var te=T(Q,0,1),$=T(Q,-1);if(te==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var M=[];return P(Q,K,function(ne,ie,ce,le){M[M.length]=ce?P(le,re,"$1"):ie||ne}),M},L=function(Q,te){var $=Q,M;if(W(z,$)&&(M=z[$],$="%"+M[0]+"%"),W(O,$)){var ne=O[$];if(ne===I&&(ne=U($)),typeof ne>"u"&&!te)throw new c("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:ne}}throw new a("intrinsic "+Q+" does not exist!")};return kn=function(Q,te){if(typeof Q!="string"||Q.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=J(Q),M=$.length>0?$[0]:"",ne=L("%"+M+"%",te),ie=ne.name,ce=ne.value,le=!1,ae=ne.alias;ae&&(M=ae[0],Z($,F([0,1],ae)));for(var q=1,ge=!0;q<$.length;q+=1){var se=$[q],me=T(se,0,1),G=T(se,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!ge)&&(le=!0),M+="."+se,ie="%"+M+"%",W(O,ie))ce=O[ie];else if(ce!=null){if(!(se in ce)){if(!te)throw new c("base intrinsic for "+Q+" exists, but the property is not available.");return}if(j&&q+1>=$.length){var ue=j(ce,se);ge=!!ue,ge&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[se]}else ge=W(ce,se),ce=ce[se];ge&&!le&&(O[ie]=ce)}}return ce},kn}var Mn,Mi;function Pt(){if(Mi)return Mn;Mi=1;var e=Uu(),t=es(),r=t([e("%String.prototype.indexOf%")]);return Mn=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},Mn}var Ln,Li;function Yh(){if(Li)return Ln;Li=1;var e=fr()(),t=Pt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=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]"},i=function(){return n(arguments)}();return n.isLegacyArguments=s,Ln=i?n:s,Ln}var Dn,Di;function Qh(){if(Di)return Dn;Di=1;var e=Pt(),t=fr()(),r=Hu(),n=pt(),s;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return Dn=s,Dn}var $n,$i;function Zh(){if($i)return $n;$i=1;var e=Pt(),t=Qh(),r=e("RegExp.prototype.exec"),n=Rt();return $n=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},$n}var Bn,Bi;function Jh(){if(Bi)return Bn;Bi=1;var e=Pt(),t=Zh(),r=t(/^\s*(?:function)?\*/),n=fr()(),s=ts(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Bn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(f)===l},Bn}var Fn,Fi;function eg(){if(Fi)return Fn;Fi=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 s=/^\s*class\b/,i=function(v){try{var S=e.call(v);return s.test(S)}catch{return!1}},a=function(v){try{return i(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 S=c.call(v);return(S===p||S===d||S===m||S===l)&&v("")==null}catch{}return!1})}return Fn=t?function(v){if(g(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(S){if(S!==n)return!1}return!i(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(i(v))return!1;var S=c.call(v);return S!==u&&S!==f&&!/^\[object HTML/.test(S)?!1:a(v)},Fn}var qn,qi;function tg(){if(qi)return qn;qi=1;var e=eg(),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))},s=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)},i=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 qn=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"?s(l,u,p):i(l,u,p)},qn}var zn,zi;function rg(){return zi||(zi=1,zn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),zn}var Hn,Hi;function ng(){if(Hi)return Hn;Hi=1;var e=rg(),t=typeof globalThis>"u"?al:globalThis;return Hn=function(){for(var n=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(n[n.length]=e[s]);return n},Hn}var Un={exports:{}},Wn,Ui;function og(){if(Ui)return Wn;Ui=1;var e=pr(),t=Bu(),r=Rt(),n=pt();return Wn=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var 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(i,a);if(e)e(i,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)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Wn}var Gn,Wi;function sg(){if(Wi)return Gn;Wi=1;var e=pr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Gn=t,Gn}var Vn,Gi;function ig(){if(Gi)return Vn;Gi=1;var e=Uu(),t=og(),r=sg()(),n=pt(),s=Rt(),i=e("%Math.floor%");return Vn=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new s("`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},Vn}var Kn,Vi;function ag(){if(Vi)return Kn;Vi=1;var e=At(),t=Jo(),r=zu();return Kn=function(){return r(e,t,arguments)},Kn}var Ki;function cg(){return Ki||(Ki=1,function(e){var t=ig(),r=pr(),n=es(),s=ag();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:s}):e.exports.apply=s}(Un)),Un.exports}var Xn,Xi;function Wu(){if(Xi)return Xn;Xi=1;var e=tg(),t=ng(),r=cg(),n=Pt(),s=pt(),i=ts(),a=n("Object.prototype.toString"),c=fr()(),l=typeof globalThis>"u"?al: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&&s&&i?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&i){var b=i(g),j=s(b,Symbol.toStringTag);if(!j&&b){var v=i(b);j=s(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 Xn=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 s?m(g):null},Xn}var Yn,Yi;function lg(){if(Yi)return Yn;Yi=1;var e=Wu();return Yn=function(r){return!!e(r)},Yn}var Qi;function ug(){return Qi||(Qi=1,function(e){var t=Yh(),r=Jh(),n=Wu(),s=lg();function i(q){return q.call.bind(q)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(q,ge){if(typeof q!="object")return!1;try{return ge(q),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;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):s(q)||T(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 S(q){return n(q)==="Uint32Array"}e.isUint32Array=S;function E(q){return n(q)==="Int8Array"}e.isInt8Array=E;function R(q){return n(q)==="Int16Array"}e.isInt16Array=R;function C(q){return n(q)==="Int32Array"}e.isInt32Array=C;function A(q){return n(q)==="Float32Array"}e.isFloat32Array=A;function k(q){return n(q)==="Float64Array"}e.isFloat64Array=k;function w(q){return n(q)==="BigInt64Array"}e.isBigInt64Array=w;function N(q){return n(q)==="BigUint64Array"}e.isBigUint64Array=N;function I(q){return l(q)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function B(q){return typeof Map>"u"?!1:I.working?I(q):q instanceof Map}e.isMap=B;function O(q){return l(q)==="[object Set]"}O.working=typeof Set<"u"&&O(new Set);function H(q){return typeof Set>"u"?!1:O.working?O(q):q instanceof Set}e.isSet=H;function U(q){return l(q)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function z(q){return typeof WeakMap>"u"?!1:U.working?U(q):q instanceof WeakMap}e.isWeakMap=z;function V(q){return l(q)==="[object WeakSet]"}V.working=typeof WeakSet<"u"&&V(new WeakSet);function W(q){return V(q)}e.isWeakSet=W;function F(q){return l(q)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function Z(q){return typeof ArrayBuffer>"u"?!1:F.working?F(q):q instanceof ArrayBuffer}e.isArrayBuffer=Z;function P(q){return l(q)==="[object DataView]"}P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1));function T(q){return typeof DataView>"u"?!1:P.working?P(q):q instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(q){return l(q)==="[object SharedArrayBuffer]"}function re(q){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(q):q instanceof D)}e.isSharedArrayBuffer=re;function J(q){return l(q)==="[object AsyncFunction]"}e.isAsyncFunction=J;function L(q){return l(q)==="[object Map Iterator]"}e.isMapIterator=L;function ee(q){return l(q)==="[object Set Iterator]"}e.isSetIterator=ee;function Q(q){return l(q)==="[object Generator]"}e.isGeneratorObject=Q;function te(q){return l(q)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=te;function $(q){return h(q,u)}e.isNumberObject=$;function M(q){return h(q,f)}e.isStringObject=M;function ne(q){return h(q,p)}e.isBooleanObject=ne;function ie(q){return a&&h(q,d)}e.isBigIntObject=ie;function ce(q){return c&&h(q,m)}e.isSymbolObject=ce;function le(q){return $(q)||M(q)||ne(q)||ie(q)||ce(q)}e.isBoxedPrimitive=le;function ae(q){return typeof Uint8Array<"u"&&(Z(q)||re(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")}})})}(Zr)),Zr}var Qn,Zi;function dg(){return Zi||(Zi=1,Qn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Qn}var Vt={exports:{}},Ji;function fg(){return Ji||(Ji=1,typeof Object.create=="function"?Vt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Vt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Vt.exports}var ea;function pg(){return ea||(ea=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),K={},re=0;re<D.length;re++)K[D[re]]=Object.getOwnPropertyDescriptor(T,D[re]);return K},r=/%[sdj%]/g;e.format=function(P){if(!E(P)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,K=arguments,re=K.length,J=String(P).replace(r,function(ee){if(ee==="%%")return"%";if(D>=re)return ee;switch(ee){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return ee}}),L=K[D];D<re;L=K[++D])j(L)||!k(L)?J+=" "+L:J+=" "+a(L);return J},e.deprecate=function(P,T){if(typeof process<"u"&&process.noDeprecation===!0)return P;if(typeof process>"u")return function(){return e.deprecate(P,T).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return P.apply(this,arguments)}return K};var n={},s=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(P){if(P=P.toUpperCase(),!n[P])if(s.test(P)){var T=process.pid;n[P]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",P,T,D)}}else n[P]=function(){};return n[P]};function a(P,T){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(T)?D.showHidden=T:T&&e._extend(D,T),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,P,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(P,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+P+"\x1B["+a.colors[D][1]+"m":P}function l(P,T){return P}function u(P){var T={};return P.forEach(function(D,K){T[D]=!0}),T}function f(P,T,D){if(P.customInspect&&T&&I(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var K=T.inspect(D,P);return E(K)||(K=f(P,K,D)),K}var re=p(P,T);if(re)return re;var J=Object.keys(T),L=u(J);if(P.showHidden&&(J=Object.getOwnPropertyNames(T)),N(T)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return d(T);if(J.length===0){if(I(T)){var ee=T.name?": "+T.name:"";return P.stylize("[Function"+ee+"]","special")}if(A(T))return P.stylize(RegExp.prototype.toString.call(T),"regexp");if(w(T))return P.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Q="",te=!1,$=["{","}"];if(g(T)&&(te=!0,$=["[","]"]),I(T)){var M=T.name?": "+T.name:"";Q=" [Function"+M+"]"}if(A(T)&&(Q=" "+RegExp.prototype.toString.call(T)),w(T)&&(Q=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Q=" "+d(T)),J.length===0&&(!te||T.length==0))return $[0]+Q+$[1];if(D<0)return A(T)?P.stylize(RegExp.prototype.toString.call(T),"regexp"):P.stylize("[Object]","special");P.seen.push(T);var ne;return te?ne=m(P,T,D,L,J):ne=J.map(function(ie){return h(P,T,D,L,ie,te)}),P.seen.pop(),y(ne,Q,$)}function p(P,T){if(C(T))return P.stylize("undefined","undefined");if(E(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(D,"string")}if(S(T))return P.stylize(""+T,"number");if(b(T))return P.stylize(""+T,"boolean");if(j(T))return P.stylize("null","null")}function d(P){return"["+Error.prototype.toString.call(P)+"]"}function m(P,T,D,K,re){for(var J=[],L=0,ee=T.length;L<ee;++L)V(T,String(L))?J.push(h(P,T,D,K,String(L),!0)):J.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||J.push(h(P,T,D,K,Q,!0))}),J}function h(P,T,D,K,re,J){var L,ee,Q;if(Q=Object.getOwnPropertyDescriptor(T,re)||{value:T[re]},Q.get?Q.set?ee=P.stylize("[Getter/Setter]","special"):ee=P.stylize("[Getter]","special"):Q.set&&(ee=P.stylize("[Setter]","special")),V(K,re)||(L="["+re+"]"),ee||(P.seen.indexOf(Q.value)<0?(j(D)?ee=f(P,Q.value,null):ee=f(P,Q.value,D-1),ee.indexOf(`
|
|
16
|
+
`)>-1&&(J?ee=ee.split(`
|
|
17
|
+
`).map(function(te){return" "+te}).join(`
|
|
18
|
+
`).slice(2):ee=`
|
|
19
|
+
`+ee.split(`
|
|
20
|
+
`).map(function(te){return" "+te}).join(`
|
|
21
|
+
`))):ee=P.stylize("[Circular]","special")),C(L)){if(J&&re.match(/^\d+$/))return ee;L=JSON.stringify(""+re),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=P.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=P.stylize(L,"string"))}return L+": "+ee}function y(P,T,D){var K=P.reduce(function(re,J){return J.indexOf(`
|
|
22
|
+
`)>=0,re+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?D[0]+(T===""?"":T+`
|
|
23
|
+
`)+" "+P.join(`,
|
|
24
|
+
`)+" "+D[1]:D[0]+T+" "+P.join(", ")+" "+D[1]}e.types=ug();function g(P){return Array.isArray(P)}e.isArray=g;function b(P){return typeof P=="boolean"}e.isBoolean=b;function j(P){return P===null}e.isNull=j;function v(P){return P==null}e.isNullOrUndefined=v;function S(P){return typeof P=="number"}e.isNumber=S;function E(P){return typeof P=="string"}e.isString=E;function R(P){return typeof P=="symbol"}e.isSymbol=R;function C(P){return P===void 0}e.isUndefined=C;function A(P){return k(P)&&O(P)==="[object RegExp]"}e.isRegExp=A,e.types.isRegExp=A;function k(P){return typeof P=="object"&&P!==null}e.isObject=k;function w(P){return k(P)&&O(P)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(P){return k(P)&&(O(P)==="[object Error]"||P instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(P){return typeof P=="function"}e.isFunction=I;function B(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P>"u"}e.isPrimitive=B,e.isBuffer=dg();function O(P){return Object.prototype.toString.call(P)}function H(P){return P<10?"0"+P.toString(10):P.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var P=new Date,T=[H(P.getHours()),H(P.getMinutes()),H(P.getSeconds())].join(":");return[P.getDate(),U[P.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",z(),e.format.apply(e,arguments))},e.inherits=fg(),e._extend=function(P,T){if(!T||!k(T))return P;for(var D=Object.keys(T),K=D.length;K--;)P[D[K]]=T[D[K]];return P};function V(P,T){return Object.prototype.hasOwnProperty.call(P,T)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&T[W]){var D=T[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 K,re,J=new Promise(function(Q,te){K=Q,re=te}),L=[],ee=0;ee<arguments.length;ee++)L.push(arguments[ee]);L.push(function(Q,te){Q?re(Q):K(te)});try{T.apply(this,L)}catch(Q){re(Q)}return J}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=W;function F(P,T){if(!P){var D=new Error("Promise was rejected with a falsy value");D.reason=P,P=D}return T(P)}function Z(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],K=0;K<arguments.length;K++)D.push(arguments[K]);var re=D.pop();if(typeof re!="function")throw new TypeError("The last argument must be of type Function");var J=this,L=function(){return re.apply(J,arguments)};P.apply(this,D).then(function(ee){process.nextTick(L.bind(null,null,ee))},function(ee){process.nextTick(F.bind(null,ee,L))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(P)),Object.defineProperties(T,t(P)),T}e.callbackify=Z}(Qr)),Qr}var ta;function mg(){return ta||(ta=1,(()=>{var e={333:(s,i,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),s.exports=p},179:(s,i,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 S=l.reduce(m.nodes),E=c(...S,{...p,wrap:!1,toRegex:!0});if(E.length!==0)return S.length>1&&E.length>1?`(${E})`:E}if(m.nodes)for(let S of m.nodes)v+=d(S,m);return v};return d(f)};s.exports=u},457:s=>{s.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:(s,i,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 A=c(...C,m);A.length===0&&(A=l(g,m)),v.push(f(v.pop(),A)),g.nodes=[];return}let S=u.encloseBrace(g),E=g.queue,R=g;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,E=R.queue;for(let C=0;C<g.nodes.length;C++){let A=g.nodes[C];if(A.type==="comma"&&g.type==="brace"){C===1&&E.push(""),E.push("");continue}if(A.type==="close"){v.push(f(v.pop(),E,S));continue}if(A.value&&A.type!=="open"){E.push(f(E.pop(),A.value));continue}A.nodes&&y(A,g)}return E};return u.flatten(y(d))};s.exports=p},719:(s,i,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:S,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:R}=a(457),C=(A,k={})=>{if(typeof A!="string")throw new TypeError("Expected a string");let w=k||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(A.length>N)throw new SyntaxError(`Input length (${A.length}), exceeds max characters (${N})`);let I={type:"root",input:A,nodes:[]},B=[I],O=I,H=I,U=0,z=A.length,V=0,W=0,F;const Z=()=>A[V++],P=T=>{if(T.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&T.type==="text"){H.value+=T.value;return}return O.nodes.push(T),T.parent=O,T.prev=H,H=T,T};for(P({type:"bos"});V<z;)if(O=B[B.length-1],F=Z(),!(F===R||F===E)){if(F===u){P({type:"text",value:(k.keepEscaping?F:"")+Z()});continue}if(F===j){P({type:"text",value:"\\"+F});continue}if(F===b){U++;let T;for(;V<z&&(T=Z());){if(F+=T,T===b){U++;continue}if(T===u){F+=Z();continue}if(T===j&&(U--,U===0))break}P({type:"text",value:F});continue}if(F===m){O=P({type:"paren",nodes:[]}),B.push(O),P({type:"text",value:F});continue}if(F===h){if(O.type!=="paren"){P({type:"text",value:F});continue}O=B.pop(),P({type:"text",value:F}),O=B[B.length-1];continue}if(F===v||F===S||F===f){let T=F,D;for(k.keepQuotes!==!0&&(F="");V<z&&(D=Z());){if(D===u){F+=D+Z();continue}if(D===T){k.keepQuotes===!0&&(F+=D);break}F+=D}P({type:"text",value:F});continue}if(F===y){W++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||O.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};O=P(D),B.push(O),P({type:"open",value:F});continue}if(F===g){if(O.type!=="brace"){P({type:"text",value:F});continue}let T="close";O=B.pop(),O.close=!0,P({type:T,value:F}),W--,O=B[B.length-1];continue}if(F===p&&W>0){if(O.ranges>0){O.ranges=0;let T=O.nodes.shift();O.nodes=[T,{type:"text",value:c(O)}]}P({type:"comma",value:F}),O.commas++;continue}if(F===d&&W>0&&O.commas===0){let T=O.nodes;if(W===0||T.length===0){P({type:"text",value:F});continue}if(H.type==="dot"){if(O.range=[],H.value+=F,H.type="range",O.nodes.length!==3&&O.nodes.length!==5){O.invalid=!0,O.ranges=0,H.type="text";continue}O.ranges++,O.args=[];continue}if(H.type==="range"){T.pop();let D=T[T.length-1];D.value+=H.value+F,H=D,O.ranges--;continue}P({type:"dot",value:F});continue}P({type:"text",value:F})}do if(O=B.pop(),O.type!=="root"){O.nodes.forEach(K=>{K.nodes||(K.type==="open"&&(K.isOpen=!0),K.type==="close"&&(K.isClose=!0),K.nodes||(K.type="text"),K.invalid=!0)});let T=B[B.length-1],D=T.nodes.indexOf(O);T.nodes.splice(D,1,...O.nodes)}while(B.length>0);return P({type:"eos"}),I};s.exports=C},137:(s,i,a)=>{const c=a(617);s.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:(s,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(l=>l.type===c),i.exceedsLimit=(a,c,l=1,u)=>u===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,i.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)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.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:(s,i,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=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),f=w=>N=>w===!0?Number(N):String(N),p=w=>typeof w=="number"||typeof w=="string"&&w!=="",d=w=>Number.isInteger(+w),m=w=>{let N=`${w}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},h=(w,N,I)=>typeof w=="string"||typeof N=="string"?!0:I.stringify===!0,y=(w,N,I)=>{if(N>0){let B=w[0]==="-"?"-":"";B&&(w=w.slice(1)),w=B+w.padStart(B?N-1:N,"0")}return I===!1?String(w):w},g=(w,N)=>{let I=w[0]==="-"?"-":"";for(I&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return I?"-"+w:w},b=(w,N)=>{w.negatives.sort((U,z)=>U<z?-1:U>z?1:0),w.positives.sort((U,z)=>U<z?-1:U>z?1:0);let I=N.capture?"":"?:",B="",O="",H;return w.positives.length&&(B=w.positives.join("|")),w.negatives.length&&(O=`-(${I}${w.negatives.join("|")})`),B&&O?H=`${B}|${O}`:H=B||O,N.wrap?`(${I}${H})`:H},j=(w,N,I,B)=>{if(I)return l(w,N,{wrap:!1,...B});let O=String.fromCharCode(w);if(w===N)return O;let H=String.fromCharCode(N);return`[${O}-${H}]`},v=(w,N,I)=>{if(Array.isArray(w)){let B=I.wrap===!0,O=I.capture?"":"?:";return B?`(${O}${w.join("|")})`:w.join("|")}return l(w,N,I)},S=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),E=(w,N,I)=>{if(I.strictRanges===!0)throw S([w,N]);return[]},R=(w,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},C=(w,N,I=1,B={})=>{let O=Number(w),H=Number(N);if(!Number.isInteger(O)||!Number.isInteger(H)){if(B.strictRanges===!0)throw S([w,N]);return[]}O===0&&(O=0),H===0&&(H=0);let U=O>H,z=String(w),V=String(N),W=String(I);I=Math.max(Math.abs(I),1);let F=m(z)||m(V)||m(W),Z=F?Math.max(z.length,V.length,W.length):0,P=F===!1&&h(w,N,B)===!1,T=B.transform||f(P);if(B.toRegex&&I===1)return j(g(w,Z),g(N,Z),!0,B);let D={negatives:[],positives:[]},K=L=>D[L<0?"negatives":"positives"].push(Math.abs(L)),re=[],J=0;for(;U?O>=H:O<=H;)B.toRegex===!0&&I>1?K(O):re.push(y(T(O,J),Z,P)),O=U?O-I:O+I,J++;return B.toRegex===!0?I>1?b(D,B):v(re,null,{wrap:!1,...B}):re},A=(w,N,I=1,B={})=>{if(!d(w)&&w.length>1||!d(N)&&N.length>1)return E(w,N,B);let O=B.transform||(P=>String.fromCharCode(P)),H=`${w}`.charCodeAt(0),U=`${N}`.charCodeAt(0),z=H>U,V=Math.min(H,U),W=Math.max(H,U);if(B.toRegex&&I===1)return j(V,W,!1,B);let F=[],Z=0;for(;z?H>=U:H<=U;)F.push(O(H,Z)),H=z?H-I:H+I,Z++;return B.toRegex===!0?v(F,null,{wrap:!1,options:B}):F},k=(w,N,I,B={})=>{if(N==null&&p(w))return[w];if(!p(w)||!p(N))return E(w,N,B);if(typeof I=="function")return k(w,N,1,{transform:I});if(u(I))return k(w,N,0,I);let O={...B};return O.capture===!0&&(O.wrap=!0),I=I||O.step||1,d(I)?d(w)&&d(N)?C(w,N,I,O):A(w,N,Math.max(Math.abs(I),1),O):I!=null&&!u(I)?R(I,O):k(w,N,1,I)};s.exports=k},357:s=>{/*!
|
|
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),p=a(513),f=h=>h===""||h==="./",d=(h,m,y)=>{m=[].concat(m),h=[].concat(h);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<m.length;C++){let I=u(String(m[C]),{...y,onResult:A},!0),B=I.state.negated||I.state.negatedExtglob;B&&v++;for(let R of h){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===m.length?[...j]:[...b]).filter(C=>!g.has(C));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${m.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?m.map(C=>C.replace(/\\/g,"")):m}return P};d.match=d,d.matcher=(h,m)=>u(h,m),d.isMatch=(h,m,y)=>u(m,y)(h),d.any=d.isMatch,d.not=(h,m,y={})=>{m=[].concat(m).map(String);let g=new Set,b=[],v=d(h,m,{...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=(h,m,y)=>{if(typeof h!="string")throw new TypeError(`Expected a string: "${c.inspect(h)}"`);if(Array.isArray(m))return m.some(g=>d.contains(h,g,y));if(typeof m=="string"){if(f(h)||f(m))return!1;if(h.includes(m)||h.startsWith("./")&&h.slice(2).includes(m))return!0}return d.isMatch(h,m,{...y,contains:!0})},d.matchKeys=(h,m,y)=>{if(!p.isObject(h))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(h),m,y),b={};for(let j of g)b[j]=h[j];return b},d.some=(h,m,y)=>{let g=[].concat(h);for(let b of[].concat(m)){let j=u(String(b),y);if(g.some(v=>j(v)))return!0}return!1},d.every=(h,m,y)=>{let g=[].concat(h);for(let b of[].concat(m)){let j=u(String(b),y);if(!g.every(v=>j(v)))return!1}return!0},d.all=(h,m,y)=>{if(typeof h!="string")throw new TypeError(`Expected a string: "${c.inspect(h)}"`);return[].concat(m).every(g=>u(g,y)(h))},d.capture=(h,m,y)=>{let g=p.isWindows(y),j=u.makeRe(String(h),{...y,capture:!0}).exec(g?p.toPosixSlashes(m):m);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...h)=>u.makeRe(...h),d.scan=(...h)=>u.scan(...h),d.parse=(h,m)=>{let y=[];for(let g of[].concat(h||[]))for(let b of l(String(g),m))y.push(u.parse(b,m));return y},d.braces=(h,m)=>{if(typeof h!="string")throw new TypeError("Expected a string");return m&&m.nobrace===!0||!/\{.*\}/.test(h)?[h]:l(h,m)},d.braceExpand=(h,m)=>{if(typeof h!="string")throw new TypeError("Expected a string");return d.braces(h,{...m,expand:!0})},i.exports=d},251:(i,s,a)=>{i.exports=a(683)},356:(i,s,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,p="\\.",f="\\+",d="\\?",h="\\/",m="(?=.)",y="[^/]",g=`(?:${h}|$)`,b=`(?:^|${h})`,j=`${p}{1,2}${g}`,v=`(?!${p})`,A=`(?!${b}${j})`,S=`(?!${p}{0,1}${g})`,P=`(?!${j})`,C=`[^.${h}]`,I=`${y}*?`,B={DOT_LITERAL:p,PLUS_LITERAL:f,QMARK_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:m,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:`${p}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${l}])${p}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${p}{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:p,REGEX_NON_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:h}=c,m=(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=h[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,fr)=>Ee==="\\"?(Q=!0,V):Ee==="?"?de?de+Ee+(Ce?z.repeat(Ce.length):""):fr===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=p[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=m(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=f.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"),fr=J.length&&(V.type==="pipe"||V.type==="paren");if(!_e&&V.type!=="paren"&&!Ce&&!fr){G({type:"star",value:T,output:""});continue}for(;Q.slice(0,3)==="/**";){const Pt=b[k.index+4];if(Pt&&Pt!=="/")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 Pt=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}${Pt})`,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=h[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),p=a(513),f=a(356),d=m=>m&&typeof m=="object"&&!Array.isArray(m),h=(m,y,g=!1)=>{if(Array.isArray(m)){const I=m.map(R=>h(R,y,g));return R=>{for(const O of I){const N=O(R);if(N)return N}return!1}}const b=d(m)&&m.tokens&&m.input;if(m===""||typeof m!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=y||{},v=p.isWindows(y),A=b?h.compileRe(m,y):h.makeRe(m,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=h(j.ignore,I,g)}const C=(I,B=!1)=>{const{isMatch:R,match:O,output:N}=h.test(I,A,y,{glob:m,posix:v}),$={glob:m,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};h.test=(m,y,g,{glob:b,posix:j}={})=>{if(typeof m!="string")throw new TypeError("Expected input to be a string");if(m==="")return{isMatch:!1,output:""};const v=g||{},A=v.format||(j?p.toPosixSlashes:null);let S=m===b,P=S&&A?A(m):m;return S===!1&&(P=A?A(m):m,S=P===b),(S===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?S=h.matchBase(m,y,g,j):S=y.exec(P)),{isMatch:!!S,match:S,output:P}},h.matchBase=(m,y,g,b=p.isWindows(g))=>(y instanceof RegExp?y:h.makeRe(y,g)).test(c.basename(m)),h.isMatch=(m,y,g)=>h(y,g)(m),h.parse=(m,y)=>Array.isArray(m)?m.map(g=>h.parse(g,y)):u(m,{...y,fastpaths:!1}),h.scan=(m,y)=>l(m,y),h.compileRe=(m,y,g=!1,b=!1)=>{if(g===!0)return m.output;const j=y||{},v=j.contains?"":"^",A=j.contains?"":"$";let S=`${v}(?:${m.output})${A}`;m&&m.negated===!0&&(S=`^(?!${S}).*$`);const P=h.toRegex(S,y);return b===!0&&(P.state=m),P},h.makeRe=(m,y,g=!1,b=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");const j=y||{};let v={negated:!1,fastpaths:!0},A="",S;return m.startsWith("./")&&(m=m.slice(2),A=v.prefix="./"),j.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&(S=u.fastpaths(m,y)),S===void 0?(v=u(m,y),v.prefix=A+(v.prefix||"")):v.output=S,h.compileRe(v,y,g,b)},h.toRegex=(m,y)=>{try{const g=y||{};return new RegExp(m,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},h.constants=f,i.exports=h},700:(i,s,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:f,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:h,CHAR_FORWARD_SLASH:m,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===m||R===p,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===p){k=re.backslashes=!0,T=le(),T===y&&(Z=!0);continue}if(Z===!0||T===y){for(ee++;se()!==!0&&(T=le());){if(T===p){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===f){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===m){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===h)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;se()!==!0&&(T=le());){if(T===p){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===p){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===h&&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:p,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);s.isObject=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),s.hasRegexChars=h=>f.test(h),s.isRegexChar=h=>h.length===1&&s.hasRegexChars(h),s.escapeRegex=h=>h.replace(d,"\\$1"),s.toPosixSlashes=h=>h.replace(u,"/"),s.removeBackslashes=h=>h.replace(p,m=>m==="\\"?"":m),s.supportsLookbehinds=()=>{const h=process.version.slice(1).split(".").map(Number);return h.length===3&&h[0]>=9||h[0]===8&&h[1]>=10},s.isWindows=h=>h&&typeof h.windows=="boolean"?h.windows:l===!0||c.sep==="\\",s.escapeLast=(h,m,y)=>{const g=h.lastIndexOf(m,y);return g===-1?h:h[g-1]==="\\"?s.escapeLast(h,m,g-1):`${h.slice(0,g)}\\${h.slice(g)}`},s.removePrefix=(h,m={})=>{let y=h;return y.startsWith("./")&&(y=y.slice(2),m.prefix="./"),y},s.wrapOutput=(h,m={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let j=`${g}(?:${h})${b}`;return m.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(i,s,a)=>{/*!
|
|
35
|
+
*/s.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(s,i,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,S=C=>{j.add(C.output),y&&y.onResult&&y.onResult(C)};for(let C=0;C<h.length;C++){let A=u(String(h[C]),{...y,onResult:S},!0),k=A.state.negated||A.state.negatedExtglob;k&&v++;for(let w of m){let N=A(w,!0);(k?!N.isMatch:N.isMatch)&&(k?g.add(N.output):(g.delete(N.output),b.add(N.output)))}}let R=(v===h.length?[...j]:[...b]).filter(C=>!g.has(C));if(y&&R.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 R};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:S=>{y.onResult&&y.onResult(S),b.push(S.output)}});for(let S of b)v.includes(S)||g.add(S);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})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,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})`,S=`(?!${b}${j})`,E=`(?!${f}{0,1}${g})`,R=`(?!${j})`,C=`[^.${m}]`,A=`${y}*?`,k={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:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:R,QMARK_NO_DOT:C,STAR:A,START_ANCHOR:b},w={...k,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}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?w:k}}},754:(s,i,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(E=>l.escapeRegex(E)).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},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);const R={type:"bos",value:"",output:v.prepend||""},C=[R],A=v.capture?"":"?:",k=l.isWindows(j),w=c.globChars(k),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:B,SLASH_LITERAL:O,ONE_CHAR:H,DOTS_SLASH:U,NO_DOT:z,NO_DOT_SLASH:V,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:T}=w,D=Y=>`(${A}(?:(?!${T}${Y.dot?U:I}).)*?)`,K=v.dot?"":z,re=v.dot?F:Z;let J=v.bash===!0?D(v):P;v.capture&&(J=`(${J})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={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,L),E=b.length;const ee=[],Q=[],te=[];let $=R,M;const ne=()=>L.index===E-1,ie=L.peek=(Y=1)=>b[L.index+Y],ce=L.advance=()=>b[++L.index],le=()=>b.slice(L.index+1),ae=(Y="",oe=0)=>{L.consumed+=Y,L.index+=oe},q=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ae(Y.value)},ge=()=>{let Y=1;for(;ie()==="!"&&(ie(2)!=="("||ie(3)==="?");)ce(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},se=Y=>{L[Y]++,te.push(Y)},me=Y=>{L[Y]--,te.pop()},G=Y=>{if($.type==="globstar"){const oe=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),X=Y.extglob===!0||ee.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!oe&&!X&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=J,L.output+=$.output)}if(ee.length&&Y.type!=="paren"&&!N[Y.value]&&(ee[ee.length-1].inner+=Y.value),(Y.value||Y.output)&&q(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},ue=(Y,oe)=>{const X={...N[oe],conditions:1,inner:""};X.prev=$,X.parens=L.parens,X.output=L.output;const de=(v.capture?"(":"")+X.open;se("parens"),G({type:Y,value:oe,output:L.output?"":H}),G({type:"paren",extglob:!0,value:ce(),output:de}),ee.push(X)},je=Y=>{let oe=Y.close+(v.capture?")":"");if(Y.type==="negate"){let X=J;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(X=D(v)),(X!==J||ne()||/^\)+$/.test(le()))&&(oe=Y.close=`)$))${X}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:M,output:oe}),me("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,oe=b.replace(d,(X,de,_e,Ae,Se,mr)=>Ae==="\\"?(Y=!0,X):Ae==="?"?de?de+Ae+(Se?F.repeat(Se.length):""):mr===0?re+(Se?F.repeat(Se.length):""):F.repeat(_e.length):Ae==="."?I.repeat(_e.length):Ae==="*"?de?de+Ae+(Se?J:""):J:de?X:`\\${X}`);return Y===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,X=>X.length%2===0?"\\\\":X?"\\":"")),oe===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(oe,L,j),L)}for(;!ne();){if(M=ce(),M==="\0")continue;if(M==="\\"){const X=ie();if(X==="/"&&v.bash!==!0||X==="."||X===";")continue;if(!X){M+="\\",G({type:"text",value:M});continue}const de=/^\\+/.exec(le());let _e=0;if(de&&de[0].length>2&&(_e=de[0].length,L.index+=_e,_e%2!==0&&(M+="\\")),v.unescape===!0?M=ce()||"":M+=ce()||"",L.brackets===0){G({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const X=$.value.slice(1);if(X.includes("[")&&($.posix=!0,X.includes(":"))){const de=$.value.lastIndexOf("["),_e=$.value.slice(0,de),Ae=$.value.slice(de+2),Se=f[Ae];if(Se){$.value=_e+Se,L.backtrack=!0,ce(),!R.output&&C.indexOf($)===1&&(R.output=H);continue}}}(M==="["&&ie()!==":"||M==="-"&&ie()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,q({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,q({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:M});continue}if(M==="("){se("parens"),G({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(y("opening","("));const X=ee[ee.length-1];if(X&&L.parens===X.parens+1){je(ee.pop());continue}G({type:"paren",value:M,output:L.parens?")":"\\)"}),me("parens");continue}if(M==="["){if(v.nobracket===!0||!le().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M=`\\${M}`}else se("brackets");G({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){G({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:M,output:`\\${M}`});continue}me("brackets");const X=$.value.slice(1);if($.posix!==!0&&X[0]==="^"&&!X.includes("/")&&(M=`/${M}`),$.value+=M,q({value:M}),v.literalBrackets===!1||l.hasRegexChars(X))continue;const de=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=de,$.value=de;continue}$.value=`(${A}${de}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){se("braces");const X={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Q.push(X),G(X);continue}if(M==="}"){const X=Q[Q.length-1];if(v.nobrace===!0||!X){G({type:"text",value:M,output:M});continue}let de=")";if(X.dots===!0){const _e=C.slice(),Ae=[];for(let Se=_e.length-1;Se>=0&&(C.pop(),_e[Se].type!=="brace");Se--)_e[Se].type!=="dots"&&Ae.unshift(_e[Se].value);de=h(Ae,v),L.backtrack=!0}if(X.comma!==!0&&X.dots!==!0){const _e=L.output.slice(0,X.outputIndex),Ae=L.tokens.slice(X.tokensIndex);X.value=X.output="\\{",M=de="\\}",L.output=_e;for(const Se of Ae)L.output+=Se.output||Se.value}G({type:"brace",value:M,output:de}),me("braces"),Q.pop();continue}if(M==="|"){ee.length>0&&ee[ee.length-1].conditions++,G({type:"text",value:M});continue}if(M===","){let X=M;const de=Q[Q.length-1];de&&te[te.length-1]==="braces"&&(de.comma=!0,X="|"),G({type:"comma",value:M,output:X});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=R;continue}G({type:"slash",value:M,output:O});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const X=Q[Q.length-1];$.type="dots",$.output+=M,$.value+=M,X.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){G({type:"text",value:M,output:I});continue}G({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){ue("qmark",M);continue}if($&&$.type==="paren"){const de=ie();let _e=M;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(_e=`\\${M}`),G({type:"text",value:M,output:_e});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){G({type:"qmark",value:M,output:Z});continue}G({type:"qmark",value:M,output:F});continue}if(M==="!"){if(v.noextglob!==!0&&ie()==="("&&(ie(2)!=="?"||!/[!=<:]/.test(ie(3)))){ue("negate",M);continue}if(v.nonegate!==!0&&L.index===0){ge();continue}}if(M==="+"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){ue("plus",M);continue}if($&&$.value==="("||v.regex===!1){G({type:"plus",value:M,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){G({type:"plus",value:M});continue}G({type:"plus",value:B});continue}if(M==="@"){if(v.noextglob!==!0&&ie()==="("&&ie(2)!=="?"){G({type:"at",extglob:!0,value:M,output:""});continue}G({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const X=p.exec(le());X&&(M+=X[0],L.index+=X[0].length),G({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=J,L.backtrack=!0,L.globstar=!0,ae(M);continue}let Y=le();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){ue("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ae(M);continue}const X=$.prev,de=X.prev,_e=X.type==="slash"||X.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(v.bash===!0&&(!_e||Y[0]&&Y[0]!=="/")){G({type:"star",value:M,output:""});continue}const Se=L.braces>0&&(X.type==="comma"||X.type==="brace"),mr=ee.length&&(X.type==="pipe"||X.type==="paren");if(!_e&&X.type!=="paren"&&!Se&&!mr){G({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const Nt=b[L.index+4];if(Nt&&Nt!=="/")break;Y=Y.slice(3),ae("/**",3)}if(X.type==="bos"&&ne()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ae(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&!Ae&&ne()){L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=X.output+$.output,ae(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&Y[0]==="/"){const Nt=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=`${D(v)}${O}|${O}${Nt})`,$.value+=M,L.output+=X.output+$.output,L.globstar=!0,ae(M+ce()),G({type:"slash",value:"/",output:""});continue}if(X.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${O}|${D(v)}${O})`,L.output=$.output,L.globstar=!0,ae(M+ce()),G({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=M,L.output+=$.output,L.globstar=!0,ae(M);continue}const oe={type:"star",value:M,output:J};if(v.bash===!0){oe.output=".*?",($.type==="bos"||$.type==="slash")&&(oe.output=K+oe.output),G(oe);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){oe.output=M,G(oe);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=V,$.output+=V):v.dot===!0?(L.output+=W,$.output+=W):(L.output+=K,$.output+=K),ie()!=="*"&&(L.output+=H,$.output+=H)),G(oe)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","]"));L.output=l.escapeLast(L.output,"["),me("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing",")"));L.output=l.escapeLast(L.output,"("),me("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(y("closing","}"));L.output=l.escapeLast(L.output,"{"),me("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${O}?`}),L.backtrack===!0){L.output="";for(const Y of L.tokens)L.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(L.output+=Y.suffix)}return L};g.fastpaths=(b,j)=>{const v={...j},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);b=m[b]||b;const R=l.isWindows(j),{DOT_LITERAL:C,SLASH_LITERAL:A,ONE_CHAR:k,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:B,STAR:O,START_ANCHOR:H}=c.globChars(R),U=v.dot?I:N,z=v.dot?B:N,V=v.capture?"":"?:",W={negated:!1,prefix:""};let F=v.bash===!0?".*?":O;v.capture&&(F=`(${F})`);const Z=K=>K.noglobstar===!0?F:`(${V}(?:(?!${H}${K.dot?w:C}).)*?)`,P=K=>{switch(K){case"*":return`${U}${k}${F}`;case".*":return`${C}${k}${F}`;case"*.*":return`${U}${F}${C}${k}${F}`;case"*/*":return`${U}${F}${A}${k}${z}${F}`;case"**":return U+Z(v);case"**/*":return`(?:${U}${Z(v)}${A})?${z}${k}${F}`;case"**/*.*":return`(?:${U}${Z(v)}${A})?${z}${F}${C}${k}${F}`;case"**/.*":return`(?:${U}${Z(v)}${A})?${C}${k}${F}`;default:{const re=/^(.*?)\.(\w+)$/.exec(K);if(!re)return;const J=P(re[1]);return J?J+C+re[2]:void 0}}},T=l.removePrefix(b,W);let D=P(T);return D&&v.strictSlashes!==!0&&(D+=`${A}?`),D},s.exports=g},683:(s,i,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 A=h.map(w=>m(w,y,g));return w=>{for(const N of A){const I=N(w);if(I)return I}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),S=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),E=S.state;delete S.state;let R=()=>!1;if(j.ignore){const A={...y,ignore:null,onMatch:null,onResult:null};R=m(j.ignore,A,g)}const C=(A,k=!1)=>{const{isMatch:w,match:N,output:I}=m.test(A,S,y,{glob:h,posix:v}),B={glob:h,state:E,regex:S,posix:v,input:A,output:I,match:N,isMatch:w};return typeof j.onResult=="function"&&j.onResult(B),w===!1?(B.isMatch=!1,k?B:!1):R(A)?(typeof j.onIgnore=="function"&&j.onIgnore(B),B.isMatch=!1,k?B:!1):(typeof j.onMatch=="function"&&j.onMatch(B),k?B:!0)};return g&&(C.state=E),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||{},S=v.format||(j?f.toPosixSlashes:null);let E=h===b,R=E&&S?S(h):h;return E===!1&&(R=S?S(h):h,E=R===b),(E===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?E=m.matchBase(h,y,g,j):E=y.exec(R)),{isMatch:!!E,match:E,output:R}},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?"":"^",S=j.contains?"":"$";let E=`${v}(?:${h.output})${S}`;h&&h.negated===!0&&(E=`^(?!${E}).*$`);const R=m.toRegex(E,y);return b===!0&&(R.state=h),R},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},S="",E;return h.startsWith("./")&&(h=h.slice(2),S=v.prefix="./"),j.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(E=u.fastpaths(h,y)),E===void 0?(v=u(h,y),v.prefix=S+(v.prefix||"")):v.output=E,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,s.exports=m},700:(s,i,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:S,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:R}=a(356),C=w=>w===h||w===f,A=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},k=(w,N)=>{const I=N||{},B=w.length-1,O=I.parts===!0||I.scanToEnd===!0,H=[],U=[],z=[];let V=w,W=-1,F=0,Z=0,P=!1,T=!1,D=!1,K=!1,re=!1,J=!1,L=!1,ee=!1,Q=!1,te=0,$,M,ne={value:"",depth:0,isGlob:!1};const ie=()=>W>=B,ce=()=>V.charCodeAt(W+1),le=()=>($=M,V.charCodeAt(++W));for(;W<B;){M=le();let me;if(M===f){L=ne.backslashes=!0,M=le(),M===y&&(J=!0);continue}if(J===!0||M===y){for(te++;ie()!==!0&&(M=le());){if(M===f){L=ne.backslashes=!0,le();continue}if(M===y){te++;continue}if(J!==!0&&M===d&&(M=le())===d){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,O===!0)continue;break}if(J!==!0&&M===p){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,O===!0)continue;break}if(M===S&&(te--,te===0)){J=!1,P=ne.isBrace=!0,Q=!0;break}}if(O===!0)continue;break}if(M===h){if(H.push(W),U.push(ne),ne={value:"",depth:0,isGlob:!1},Q===!0)continue;if($===d&&W===F+1){F+=2;continue}Z=W+1;continue}if(I.noext!==!0&&(M===j||M===u||M===l||M===v||M===m)===!0&&ce()===g){if(D=ne.isGlob=!0,K=ne.isExtglob=!0,Q=!0,O===!0){for(;ie()!==!0&&(M=le());){if(M===f){L=ne.backslashes=!0,M=le();continue}if(M===E){D=ne.isGlob=!0,Q=!0;break}}continue}break}if(M===l){if($===l&&(re=ne.isGlobstar=!0),D=ne.isGlob=!0,Q=!0,O===!0)continue;break}if(M===v){if(D=ne.isGlob=!0,Q=!0,O===!0)continue;break}if(M===b){for(;ie()!==!0&&(me=le());){if(me===f){L=ne.backslashes=!0,le();continue}if(me===R){T=ne.isBracket=!0,D=ne.isGlob=!0,Q=!0;break}}if(O===!0)continue;break}if(I.nonegate!==!0&&M===m&&W===F){ee=ne.negated=!0,F++;continue}if(I.noparen!==!0&&M===g){if(D=ne.isGlob=!0,O===!0){for(;ie()!==!0&&(M=le());){if(M===g){L=ne.backslashes=!0,M=le();continue}if(M===E){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,O===!0)continue;break}}I.noext===!0&&(K=!1,D=!1);let ae=V,q="",ge="";F>0&&(q=V.slice(0,F),V=V.slice(F),Z-=F),ae&&D===!0&&Z>0?(ae=V.slice(0,Z),ge=V.slice(Z)):D===!0?(ae="",ge=V):ae=V,ae&&ae!==""&&ae!=="/"&&ae!==V&&C(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),I.unescape===!0&&(ge&&(ge=c.removeBackslashes(ge)),ae&&L===!0&&(ae=c.removeBackslashes(ae)));const se={prefix:q,input:w,start:F,base:ae,glob:ge,isBrace:P,isBracket:T,isGlob:D,isExtglob:K,isGlobstar:re,negated:ee};if(I.tokens===!0&&(se.maxDepth=0,C(M)||U.push(ne),se.tokens=U),I.parts===!0||I.tokens===!0){let me;for(let G=0;G<H.length;G++){const ue=me?me+1:F,je=H[G],Y=w.slice(ue,je);I.tokens&&(G===0&&F!==0?(U[G].isPrefix=!0,U[G].value=q):U[G].value=Y,A(U[G]),se.maxDepth+=U[G].depth),(G!==0||Y!=="")&&z.push(Y),me=je}if(me&&me+1<w.length){const G=w.slice(me+1);z.push(G),I.tokens&&(U[U.length-1].value=G,A(U[U.length-1]),se.maxDepth+=U[U.length-1].depth)}se.slashes=H,se.parts=z}return se};s.exports=k},513:(s,i,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);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>p.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(u,"/"),i.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let j=`${g}(?:${m})${b}`;return h.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(s,i,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=(C,
|
|
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))}}(Vr)),Vr}var ta;function Fu(){return ta||(ta=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(p){throw console.error(p),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:p}=Qh();if(!p(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}(Wr)),Wr}(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=or()._(x),s=r._(ha),a=r._(uh()),c=Ko,l=lr,u=dh(),p=jt,f=cl(),d=r._(Fu()),h=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function m(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,p.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,p.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,p.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,p.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&&m(X,E,K,W,z,H))},[S,E,K,W,z,M,H,A]),onLoad:X=>{const te=X.currentTarget;m(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)(f.RouterContext),C=(0,i.useContext)(u.ImageConfigContext),I=(0,i.useMemo)(()=>{const W=h||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)})(fo,fo.exports);var Yh=fo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var f in p)Object.defineProperty(u,f,{enumerable:!0,get:p[f]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Pe,n=Ko,i=jt,s=Yh,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:p}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[f,d]of Object.entries(p))d===void 0&&delete p[f];return{props:p}},l=s.Image})(wu);var Zh=wu;const ra=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(Te,{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(ra,{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(ra,{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})})})]}),Qn=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:p,rowAlignContent:f,columnAlignContent:d,columnAlignItems:h,textAlignContent:m,textAlignItems:y,...g})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Re();switch(e){case"menu":b=o.jsx(Te,{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:[p,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(Te,{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:f,alignItems:f},columnWrapper:{alignContent:d,alignItems:h}},...g,children:o.jsx(_.TextStructure.DivWrapper,{alignContent:m,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})}),qu=()=>{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})})};qu.displayName="Footer.Stamps";const zu=({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})]})};zu.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(zu,{adornment:i,legalTextSlot:o.jsx(ng,{text:s}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>o.jsx(Qn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((p,f)=>o.jsx(Wt,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},f))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&o.jsx(Qn,{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(Qn,{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(qu,{})]})]})};Hu.displayName="Footer";const og=Object.freeze(Object.defineProperty({__proto__:null,Footer:Hu,FooterSupport:eg},Symbol.toStringTag,{value:"Module"})),na=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const i=ba(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"},Uu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:i})=>{var u,p;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:f=>{s(f)},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:f=>c==null?void 0:c.navigateTo(f)})}),o.jsxs(_.Carousel.Body,{children:[o.jsx(_.Carousel.Item,{style:l,children:o.jsx(na,{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:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((f,d)=>d===0?null:o.jsx(_.Carousel.Item,{style:l,children:o.jsx(na,{image:f,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:i})},`PDP_gallery_${d}`))]})]})};Uu.displayName="PDP.Carousel";const ag=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=Eo(),[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(Uu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Gu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=Eo(),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})};Gu.displayName="PDP.Gallery";const cg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Gu},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=Oc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);i({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Mo("login_event","",{expires:p})}},[]),x.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const p=t,f={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:h})=>f[d]=h[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:f,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:f,id:d,name:h}=wa(),m=h,y=d;l={page_category:"lista_produtos",...f&&{page_departament:f}},a.current={item_list_name:r==="/search"?"busca":m??void 0,item_list_id:r==="/search"?void 0:y??void 0},f&&i({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:f}}});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 po={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 Yn={},Zn={},oa;function dg(){return oa||(oa=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")}(Zn)),Zn}var ia;function fg(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});const r=Pe._(x),n=dg();function i(m){return m&&m.default?m.default:m}const s=[],a=[];let c=!1;function l(m){let y=m(),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(m,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 p(m,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 p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(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 f(m){return u(l,m)}function d(m,y){let g=[];for(;m.length;){let b=m.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(m.length)return d(m,y)})}f.preloadAll=()=>new Promise((m,y)=>{d(s).then(m,y)}),f.preloadReady=m=>(m===void 0&&(m=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,m).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=f.preloadReady);const h=f}(Yn)),Yn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,f){for(var d in f)Object.defineProperty(p,d,{enumerable:!0,get:f[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(p){return{default:(p==null?void 0:p.default)||p}}function l(p,f){if(delete f.webpack,delete f.modules,!a)return p(f);const d=f.loading;return()=>i.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,f){let d=s.default,h={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}};p instanceof Promise?h.loader=()=>p:typeof p=="function"?h.loader=p:typeof p=="object"&&(h={...h,...p}),h={...h,...f};const m=h.loader,y=()=>m!=null?m().then(c):Promise.resolve(c(()=>null));return h.loadableGenerated&&(h={...h,...h.loadableGenerated},delete h.loadableGenerated),typeof h.ssr=="boolean"&&!h.ssr?(delete h.webpack,delete h.modules,l(d,h)):d({...h,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)})(po,po.exports);var pg=po.exports,mg=pg;const hg=nr(mg);var mo={exports:{}},Vt={exports:{}},sa;function gg(){return sa||(sa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}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:p}=l;const f=document.createElement(u);for(const m in p){if(!p.hasOwnProperty(m)||m==="children"||m==="dangerouslySetInnerHTML"||p[m]===void 0)continue;const y=n[m]||m.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?f[y]=!!p[m]:f.setAttribute(y,p[m])}const{children:d,dangerouslySetInnerHTML:h}=p;return h?f.innerHTML=h.__html||"":d&&(f.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),f}function s(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const f=u.cloneNode(!0);return f.setAttribute("nonce",""),f.nonce=p,p===l.nonce&&l.isEqualNode(f)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const p=document.querySelector("head");if(!p)return;const f=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=p.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<f.length;y++){var h;const b=f[y].nextSibling;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===l&&d.push(b)}const m=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)}),m.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")||p.appendChild(b),p.appendChild(y)})}:a=(l,u)=>{const p=document.getElementsByTagName("head")[0],f=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!f){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(f.content),h=[];for(let g=0,b=f.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var m;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&h.push(b)}const y=u.map(i).filter(g=>{for(let b=0,j=h.length;b<j;b++){const v=h[b];if(s(v,g))return h.splice(b,1),!1}return!0});h.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>p.insertBefore(g,f)),f.content=(d-h.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 h=u[d.type]||[];h.push(d),u[d.type]=h});const p=u.title?u.title[0]:null;let f="";if(p){const{children:d}=p.props;f=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}f!==document.title&&(document.title=f),["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=or(),s=n._(ha),a=i._(x),c=Iu(),l=gg(),u=ll(),p=new Map,f=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=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)})}},m=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&&f.has(F))return;if(p.has(P)){f.add(F),p.get(P).then(I,$);return}const H=()=>{B&&B(),f.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,p.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&&h(E),document.body.appendChild(U)};function y(S){const{strategy:P="afterInteractive"}=S;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(S))}):m(S)}function g(S){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>m(S)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const C=P.id||P.getAttribute("src");f.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&&f.has(ne)&&B(),W.current=!0)},[B,P,C]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?m(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()?f.add(P||C):H&&!H()&&m(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)})(mo,mo.exports);var yg=mo.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"},yt=({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})]});yt.displayName="SnackBar";const Wu=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?o.jsx(Te,{href:n,children:e}):e},Sg={teamComponents:{AddToCart:Do,BackToTop:Yf,BuyPackage:$p,Filter:{...Fe,helpers:su},...og,FreightCalculation:Im,Header:Ql,Link:qe,Media:Be,PLPNavigation:ct,ProductCard:ye,ProductList:zm,ProductVariationList:Ye,Sort:Ho,UserMenu:zo},template:{pdp:cg},utils:{EventCollector:lg,ExternalScripts:xg,LinkOrNotLink:St,ObserverWrapper:ar,SnackBarComponent:yt,DraftJsLinkWrapper:Wu}},jg=(e,t)=>{const r=e.map(i=>`'${i.source}'`).join(`,
|
|
40
|
+
*/const c=a(357),l=(C,A,k)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A===void 0||C===A)return String(C);if(c(A)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...k};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),B=String(w.capture),O=String(w.wrap),H=C+":"+A+"="+N+I+B+O;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let U=Math.min(C,A),z=Math.max(C,A);if(Math.abs(U-z)===1){let P=C+"|"+A;return w.capture?`(${P})`:w.wrap===!1?P:`(?:${P})`}let V=E(C)||E(A),W={min:C,max:A,a:U,b:z},F=[],Z=[];if(V&&(W.isPadded=V,W.maxLen=String(W.max).length),U<0){let P=z<0?Math.abs(z):1;Z=d(P,Math.abs(U),W,w),U=W.a=0}return z>=0&&(F=d(U,z,W,w)),W.negatives=Z,W.positives=F,W.result=u(Z,F),w.capture===!0?W.result=`(${W.result})`:w.wrap!==!1&&F.length+Z.length>1&&(W.result=`(?:${W.result})`),l.cache[H]=W,W.result};function u(C,A,k){let w=m(C,A,"-",!1)||[],N=m(A,C,"",!1)||[],I=m(C,A,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function f(C,A){let k=1,w=1,N=b(C,k),I=new Set([A]);for(;C<=N&&N<=A;)I.add(N),k+=1,N=b(C,k);for(N=j(A+1,w)-1;C<N&&N<=A;)I.add(N),w+=1,N=j(A+1,w)-1;return I=[...I],I.sort(y),I}function p(C,A,k){if(C===A)return{pattern:C,count:[],digits:0};let w=h(C,A),N=w.length,I="",B=0;for(let O=0;O<N;O++){let[H,U]=w[O];H===U?I+=H:H!=="0"||U!=="9"?I+=S(H,U):B++}return B&&(I+=k.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[B],digits:N}}function d(C,A,k,w){let N=f(C,A),I=[],B=C,O;for(let H=0;H<N.length;H++){let U=N[H],z=p(String(B),String(U),w),V="";if(!k.isPadded&&O&&O.pattern===z.pattern){O.count.length>1&&O.count.pop(),O.count.push(z.count[0]),O.string=O.pattern+v(O.count),B=U+1;continue}k.isPadded&&(V=R(U,k,w)),z.string=V+z.pattern+v(z.count),I.push(z),B=U+1,O=z}return I}function m(C,A,k,w,N){let I=[];for(let B of C){let{string:O}=B;!w&&!g(A,"string",O)&&I.push(k+O),w&&g(A,"string",O)&&I.push(k+O)}return I}function h(C,A){let k=[];for(let w=0;w<C.length;w++)k.push([C[w],A[w]]);return k}function y(C,A){return C>A?1:A>C?-1:0}function g(C,A,k){return C.some(w=>w[A]===k)}function b(C,A){return Number(String(C).slice(0,-A)+"9".repeat(A))}function j(C,A){return C-C%Math.pow(10,A)}function v(C){let[A=0,k=""]=C;return k||A>1?`{${A+(k?","+k:"")}}`:""}function S(C,A,k){return`[${C}${A-C===1?"":"-"}${A}]`}function E(C){return/^-?(0+)\d/.test(C)}function R(C,A,k){if(!A.isPadded)return C;let w=Math.abs(A.maxLen-String(C).length),N=k.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=Nh},837:s=>{s.exports=pg()}},t={};function r(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}},c=!0;try{e[s](a,a.exports,r),c=!1}finally{c&&delete t[s]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Yr.exports=n})()),Yr.exports}var ra;function hg(){return ra||(ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return s}});const r=mg();function n(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
|
|
41
|
+
`+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function s(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Xr)),Xr}var na;function Gu(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:s,src:i,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(i||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:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(s.domains||s.remotePatterns)){let u;try{u=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=hg();if(!f(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+i+') 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 s.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Kr)),Kr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Ie,s=ir()._(x),i=r._(ya),a=r._(Ph()),c=Qo,l=dr,u=Ih(),f=wt,p=ml(),d=r._(Gu()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,S,E,R,C,A){const k=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===k)return;v["data-loaded-src"]=k,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(S!=="empty"&&C(!0),E!=null&&E.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,B=!1;E.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>I,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(R!=null&&R.current&&R.current(v),process.env.NODE_ENV!=="production"){const N=new URL(k,"http://n").searchParams.get("url")||k;if(v.getAttribute("data-nimg")==="fill"){if(!A&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:O}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(O)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+O+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const I=v.height.toString()!==v.getAttribute("height"),B=v.width.toString()!==v.getAttribute("width");(I&&!B||!I&&B)&&(0,f.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(v){const[S,E]=s.version.split("."),R=parseInt(S,10),C=parseInt(E,10);return R>18||R===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const g=(0,s.forwardRef)((v,S)=>{let{src:E,srcSet:R,sizes:C,height:A,width:k,decoding:w,className:N,style:I,fetchPriority:B,placeholder:O,loading:H,unoptimized:U,fill:z,onLoadRef:V,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:Z,onLoad:P,onError:T,...D}=v;return s.default.createElement("img",{...D,...y(B),loading:H,width:k,height:A,decoding:w,"data-nimg":z?"fill":"1",className:N,style:I,sizes:C,srcSet:R,src:E,ref:(0,s.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(T&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(E||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&h(K,O,V,W,F,U))},[E,O,V,W,F,T,U,S]),onLoad:K=>{const re=K.currentTarget;h(re,O,V,W,F,U)},onError:K=>{Z(!0),O!=="empty"&&F(!0),T&&T(K)}})});function b(v){let{isAppRouter:S,imgAttributes:E}=v;const R={as:"image",imageSrcSet:E.srcSet,imageSizes:E.sizes,crossOrigin:E.crossOrigin,referrerPolicy:E.referrerPolicy,...y(E.fetchPriority)};return S&&i.default.preload?(i.default.preload(E.src,R),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+E.src+E.srcSet+E.sizes,rel:"preload",href:E.srcSet?void 0:E.src,...R}))}const j=(0,s.forwardRef)((v,S)=>{const R=!(0,s.useContext)(p.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),A=(0,s.useMemo)(()=>{const W=m||C||l.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((P,T)=>P-T),Z=W.deviceSizes.sort((P,T)=>P-T);return{...W,allSizes:F,deviceSizes:Z}},[C]),{onLoad:k,onLoadingComplete:w}=v,N=(0,s.useRef)(k);(0,s.useEffect)(()=>{N.current=k},[k]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[B,O]=(0,s.useState)(!1),[H,U]=(0,s.useState)(!1),{props:z,meta:V}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:A,blurComplete:B,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(g,{...z,unoptimized:V.unoptimized,placeholder:V.placeholder,fill:V.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:O,setShowAltText:U,ref:S}),V.priority?s.default.createElement(b,{isAppRouter:R,imgAttributes:z}):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)})(mo,mo.exports);var gg=mo.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=Ie,n=Qo,s=wt,i=gg,a=r._(Gu()),c=u=>{(0,s.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=i.Image})(ku);var yg=ku;const oa=sr(yg),_g=({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(ke,{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(oa,{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(oa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):o.jsx(_.Icon,{size:"small",name:n})]})},vg=({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((s,i)=>o.jsx(_g,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),bg=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:s,alignItems:i}},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})]})}),xg=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:s,...i})=>o.jsxs(_.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[o.jsx(_.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:o.jsx(_.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:o.jsx(_.Icon,{name:s.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})})})]}),Zn=e=>{const{isMobile:t}=Ce();return t?o.jsx(xg,{...e}):o.jsx(bg,{...e})},Kt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:s,icons:i,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}=he(),{nextimage:v}=we();switch(e){case"menu":b=o.jsx(ke,{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:i==null?void 0:i.map((S,E)=>o.jsx(v,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},E))})]})]});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((S,E)=>o.jsx(ke,{prefetch:!1,href:S.link??"#",target:"_blank",children:o.jsx(_.Icon,{size:"medium",name:S.icon,onClick:()=>j({content:`footer:redes-sociais:${S.icon}`})})},E))})});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})})},Cg=({className:e,text:t,...r})=>o.jsx("div",{...r,className:_.helpers.classNameConcat(pe.footer__legalInformation,e),children:o.jsx("span",{children:t})}),Vu=()=>{const{nextimage:e}=we();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})})};Vu.displayName="Footer.Stamps";const Ku=({children:e,legalTextSlot:t,adornment:r,className:n,...s})=>{const{isMobile:i}=Ce(),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",{...s,className:_.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>o.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?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})]})};Ku.displayName="Footer.Wrapper";const Xu=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return o.jsxs(Ku,{adornment:s,legalTextSlot:o.jsx(Cg,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>o.jsx(Zn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>o.jsx(Kt,{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(Zn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:o.jsx(Kt,{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(Zn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?o.jsx(Kt,{children:r==null?void 0:r.subTitle}):null,o.jsx(Kt,{type:"social-media",iconSize:24,iconLink:n}),o.jsx(Vu,{})]})]})};Xu.displayName="Footer";const Sg=Object.freeze(Object.defineProperty({__proto__:null,Footer:Xu,FooterSupport:vg},Symbol.toStringTag,{value:"Module"})),sa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const s=Ca(e.imageUrl,n.pdp),{nextimage:i}=we();return o.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},jg=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=he(),s=x.useRef(!1);return o.jsx(Fe.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Eg={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Yu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=_.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return o.jsxs(_.Carousel.Root,{innerRef:p=>{i(p)},className:Eg["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(sa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&o.jsx(_.Carousel.Item,{style:l,children:o.jsx(jg,{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(sa,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};Yu.displayName="PDP.Carousel";const wg=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{video:n,productName:s}=Po(),[i,a]=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 c=l=>{a({show:!0,initialIndex:l})};return o.jsxs(o.Fragment,{children:[o.jsx(Yu,{images:e,video:n,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&o.jsx(r,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a})]})},Qu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{images:n}=Po(),s=x.useMemo(()=>{const i=n.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:n},[]);return o.jsx(wg,{productImgs:s,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})};Qu.displayName="PDP.Gallery";const Rg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Qu},Symbol.toStringTag,{value:"Module"})),Ag=({page:e,data:t})=>{const{pathname:r}=we(),n=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=he();return x.useEffect(()=>{const l=Mc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Lo("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}=Ia(),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&&s({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};i.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var ho={exports:{}};function Pg(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 Jn={},eo={},ia;function Ig(){return ia||(ia=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Ie._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(eo)),eo}var aa;function Ng(){return aa||(aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Ie._(x),n=Ig();function s(h){return h&&h.default?h.default:h}const i=[],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 E=new f(h,g);b={getCurrentValue:E.getCurrentValue.bind(E),subscribe:E.subscribe.bind(E),retry:E.retry.bind(E),promise:E.promise.bind(E)}}return b.promise()}if(typeof window>"u"&&i.push(j),!c&&typeof window<"u"){const E=g.webpack&&typeof Pg.resolveWeak=="function"?g.webpack():g.modules;E&&a.push(R=>{for(const C of E)if(R.includes(C))return j()})}function v(){j();const E=r.default.useContext(n.LoadableContext);E&&Array.isArray(g.modules)&&g.modules.forEach(R=>{E(R)})}function S(E,R){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(R,()=>({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(s(C.loaded),E):null,[E,C])}return S.preload=()=>j(),S.displayName="LoadableComponent",r.default.forwardRef(S)}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(i).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}(Jn)),Jn}(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=Ie,s=n._(x),i=n._(Ng()),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()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=i.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 s.default.createElement("p",null,b.message,s.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)})(ho,ho.exports);var Og=ho.exports,Tg=Og;const kg=sr(Tg);var go={exports:{}},Xt={exports:{}},ca;function Mg(){return ca||(ca=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 i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(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 i(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(s).filter(y=>{for(let g=0,b=d.length;g<b;g++){const j=d[g];if(i(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(s).filter(g=>{for(let b=0,j=m.length;b<j;b++){const v=m[b];if(i(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)}(Xt,Xt.exports)),Xt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(E,R){for(var C in R)Object.defineProperty(E,C,{enumerable:!0,get:R[C]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return j},default:function(){return S}});const n=Ie,s=ir(),i=n._(ya),a=s._(x),c=Lu(),l=Mg(),u=hl(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=E=>{if(i.default.preinit){E.forEach(R=>{i.default.preinit(R,{as:"style"})});return}if(typeof window<"u"){let R=document.head;E.forEach(C=>{let A=document.createElement("link");A.type="text/css",A.rel="stylesheet",A.href=C,R.appendChild(A)})}},h=E=>{const{src:R,id:C,onLoad:A=()=>{},onReady:k=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:B,stylesheets:O}=E,H=C||R;if(H&&p.has(H))return;if(f.has(R)){p.add(H),f.get(R).then(A,B);return}const U=()=>{k&&k(),p.add(H)},z=document.createElement("script"),V=new Promise((W,F)=>{z.addEventListener("load",function(Z){W(),A&&A.call(this,Z),U()}),z.addEventListener("error",function(Z){F(Z)})}).catch(function(W){B&&B(W)});w?(z.innerHTML=w.__html||"",U()):N?(z.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",U()):R&&(z.src=R,f.set(R,V));for(const[W,F]of Object.entries(E)){if(F===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();z.setAttribute(Z,F)}I==="worker"&&z.setAttribute("type","text/partytown"),z.setAttribute("data-nscript",I),O&&m(O),document.body.appendChild(z)};function y(E){const{strategy:R="afterInteractive"}=E;R==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(E))}):h(E)}function g(E){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(E)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(E))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(R=>{const C=R.id||R.getAttribute("src");p.add(C)})}function j(E){E.forEach(y),b()}function v(E){const{id:R,src:C="",onLoad:A=()=>{},onReady:k=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...B}=E,{updateScripts:O,scripts:H,getIsSsr:U,appDir:z,nonce:V}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const Z=R||C;W.current||(k&&Z&&p.has(Z)&&k(),W.current=!0)},[k,R,C]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(w==="afterInteractive"?h(E):w==="lazyOnload"&&g(E),F.current=!0)},[E,w]),(w==="beforeInteractive"||w==="worker")&&(O?(H[w]=(H[w]||[]).concat([{id:R,src:C,onLoad:A,onReady:k,onError:N,...B}]),O(H)):U&&U()?p.add(R||C):U&&!U()&&h(E)),z){if(I&&I.forEach(Z=>{i.default.preinit(Z,{as:"style"})}),w==="beforeInteractive")return C?(i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:V,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));w==="afterInteractive"&&C&&i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const S=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)})(go,go.exports);var Lg=go.exports,Dg=Lg;const $g=sr(Dg),Bg=({children:e,ONE_TRUST:t})=>o.jsxs(o.Fragment,{children:[o.jsx($g,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Fg=kg(()=>Promise.resolve(Bg),{ssr:!1}),qg={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},vt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>o.jsxs(_.SnackBar.Structure,{...c,size:e,className:_.helpers.classNameConcat(qg["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[o.jsx(_.SnackBar.Content,{adornment:t,title:r,subtitle:n}),s&&o.jsx(_.SnackBar.Support,{children:s})]});vt.displayName="SnackBar";const Zu=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?o.jsx(ke,{href:n,children:e}):e},zg="_container_1kcm0_20",Hg="_lgpd_1kcm0_71",Ug="_success_1kcm0_205",Wg="_error_1kcm0_225",Re={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:zg,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:Hg,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:Ug,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:Wg},Ju=({invalid_message:e,master_data_field:t,placeholder:r,required:n=!1,CONSTANTS:s})=>{const{isMobile:i}=Ce(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=$o();return o.jsx(_.TextField.Structure,{className:`${Re["textfield-structure-modifier"]} ${u}`,input:o.jsx(_.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Re["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(f=>({...f,[t]:"none"})),l("idle"))},required:n}),supportText:a[t]==="error"||a[t]==="required"?o.jsx("div",{className:u==="horizontal"?Re["support-text-modifier"]:"",children:o.jsx(_.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};Ju.displayName="Newsletter.Input";const ed=({title:e,description:t,CONSTANTS:r})=>o.jsx("div",{className:Re.success,children:o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:r.ICONS.check_circle,size:"small"})},children:o.jsxs(_.TextStructure.DivWrapper,{className:Re["text-structure-modifier"],children:[o.jsx("h3",{children:e}),o.jsx("p",{children:t})]})})});ed.displayName="Newsletter.Success";const td=({formStatus:e,fields:t,CONSTANTS:r})=>o.jsx(o.Fragment,{children:e==="success"?o.jsx(ed,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):o.jsxs(o.Fragment,{children:[Array.isArray(t)&&t.map((n,s)=>o.jsx(Ju,{invalid_message:n.invalid_message,master_data_field:n.master_data_field,placeholder:n.placeholder,required:n.required,type:n.type,CONSTANTS:r},`nt-field-${n.master_data_field}-${s}`)),e==="error"&&o.jsx("div",{className:Re.error,children:o.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});td.displayName="Newsletter.FormFields";const rd=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:n}=Ce();return o.jsxs(_.Button,{...r,className:Re["submit-btn"],disabled:e==="success",size:n?"medium":"large",children:[o.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&o.jsx(_.Spinner,{className:Re["loading-spinner"],size:"small"})]})};rd.displayName="Newsletter.SubmitButton";const nd=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:n})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return o.jsxs(o.Fragment,{children:[o.jsx(_.Checkbox,{adornment:o.jsx(_.Icon,{name:n.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:n.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&o.jsx("div",{className:Re["terms-and-conditions-unchecked"],children:o.jsx(_.TextStructure.Root,{adornment:{start:o.jsx(_.Icon,{name:n.ICONS.alert_circle,size:"small"})},children:o.jsx(_.TextStructure.DivWrapper,{children:o.jsx("p",{children:n.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};nd.displayName="Newsletter.Terms";const od=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:n,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=$o();return o.jsxs("form",{className:Re["form-wrapper"],onSubmit:f=>l(f,e,t),children:[o.jsx(td,{formStatus:i,fields:s,CONSTANTS:r}),a&&o.jsx(nd,{checkboxRef:n,formStatus:i,setFormStatus:u,CONSTANTS:r}),o.jsx(rd,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};od.displayName="Newsletter.Form";const Gg=["horizontal","vertical"],sd=({className:e,description:t,formPayloadOptionals:r,fields:n,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:f,borderBottom:p,CONSTANTS:d,...m})=>{if(!i||!a)return null;const h=_.helpers.ValidateProp({fieldTypes:Gg,property:u,fallback:"horizontal"});return o.jsx(Uc,{fields:n,masterDataEmailField:i,masterDataNameField:a,variant:h,CONSTANTS:d,children:o.jsxs("div",{...m,className:_.helpers.classNameConcat(Re["newsletter-root"],[f&&Re["has-border-top"],p&&Re["has-border-bottom"],e].filter(Boolean)),"data-variant":h,children:[o.jsxs("div",{className:Re.container,children:[o.jsxs("div",{className:Re["content-text"],children:[l&&o.jsx("h2",{children:l}),t&&o.jsx("p",{children:t})]}),o.jsx(od,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),o.jsx("div",{className:Re.lgpd,children:o.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};sd.displayName="Newsletter";const Vg={teamComponents:{AddToCart:Fo,BackToTop:yp,BuyPackage:om,Filter:{...qe,helpers:fu},...Sg,FreightCalculation:Xm,Header:ru,Link:ze,Media:Fe,PLPNavigation:lt,ProductCard:ye,ProductList:ah,ProductVariationList:Ze,Sort:Go,UserMenu:Wo,Newsletter:sd},template:{pdp:Rg},utils:{EventCollector:Ag,ExternalScripts:Fg,LinkOrNotLink:Et,ObserverWrapper:lr,SnackBarComponent:vt,DraftJsLinkWrapper:Zu}},Kg=(e,t)=>{const r=e.map(s=>`'${s.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
|
-
`},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:Wu}]),r=$e.convertFromRaw(e);return $e.EditorState.createWithContent(r,t)},wg=e=>$e.convertFromRaw(e),Jt=$e.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),aa="superior-direita",Kt="dentro-inferior-centro",Pg="inferior-direita",Jn="dentro-inferior-esquerda",Vu=e=>({position:e===Kt||e===Jn?"absolute":"default",shouldRender:[aa,Kt,Jn].includes(e)?"top":"bottom",alignItems:[Kt].includes(e)?"center":[aa,Pg].includes(e)?"flex-end":"flex-start",left:e===Jn?"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:Vu},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,{})]}),ho={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Og="_textContentWrapper_1bigo_5",Tg="_textContentSection_1bigo_13",go={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Og,textContentSection:Tg},Ku=({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:go.textContentWrapper,style:{alignItems:nt(e.textStructureAlignment)},children:[o.jsx(_.TextStructure.DivWrapper,{style:{textAlign:nt(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:ho["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:go["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],ca=e=>({centro:"center",esquerda:"start",direita:"end"})[e],yo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[i,s]=x.useState($c(new ti.TZDate(Date.now(),r),new ti.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=ht(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:ht(i,"hours")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"min",value:ht(i,"minutes")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"segs",value:ht(i),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},la={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ua=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:i,...s})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:f,position:d,contentAlignment:h,showTimer:m,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:la["banner-image-wrapper-modifier"],style:u?{background:f}: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:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&o.jsx("div",{style:{background:f}})]}),m||A||v?o.jsx(_.Banner.Slot,{...Mg(d??"centro"),className:la["content-modifier"],style:{textAlign:ca(h)},children:o.jsxs(_.Utils.Column,{gap:"16px",alignItems:ca(h),children:[m&&y==="timer-first"&&o.jsx(yo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),o.jsx(Ku,{data:e.banner,ICONS:i}),m&&y!=="timer-first"&&o.jsx(yo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):o.jsx(o.Fragment,{})]})},Jo=({data:e,className:t,priority:r,creative:n,...i})=>{const{handleSelectPromotionEvent:s,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",f={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),h=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]),m=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return o.jsx(ar,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...f,index:l}}}},observerOptions:{delay:100,...h&&{threshold:.1}},...h&&{callBackWhenVisible:m},children:e.banner.href?o.jsx(Te,{href:e.banner.href,onClick:()=>{s({updatePromotionRef:!0,promotion:f,index:l})},children:o.jsx(ua,{data:e,videoUrl:h,priority:r,videoRef:d,...i})}):o.jsx(ua,{data:e,videoUrl:h,priority:r,videoRef:d,...i})})},Xu=e=>o.jsx(Jo,{...e}),_o={"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 da=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:i,position:s,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[p,f]=x.useState("default");return kg("herobanner:change_controllers_variant",d=>{l&&f(d.includes("white")?"inverse":"default")}),o.jsxs(_.Carousel.Controller,{className:_o["carousel-controllers-modifier"],position:s??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[o.jsxs(_.Carousel.Arrows,{className:_o["carrousel-arrows-display-controller"],children:[o.jsx(_.Button,{variant:"tertiary",onClick:e,adornment:{start:o.jsx(_.Icon,{name:u.arrow_left})},mode:p}),o.jsx(_.Button,{variant:"tertiary",onClick:t,adornment:{start:o.jsx(_.Icon,{name:u.arrow_right})},mode:p})]}),o.jsx(_.Carousel.Bullets,{page:n,total:i,onBulletClick:r,mode:p})]})},Lg=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:i}=Se();return t.data.first?o.jsx(ar,{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 f;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(()=>Vu(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]),p=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>i==null?void 0:i.nextPage()),prevOnClick:()=>u(()=>i==null?void 0:i.prevPage()),onBulletClick:h=>u(()=>i==null?void 0:i.navigateTo(h)),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(_o["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(da,{ICONS:t,...p,isFirst:e.data.first}):o.jsx(o.Fragment,{}),o.jsx(_.Carousel.Body,{children:(f=e==null?void 0:e.data)==null?void 0:f.banners.map((d,h)=>o.jsx(_.Carousel.Item,{style:s,children:o.jsx(Lg,{data:e,banner:d,children:o.jsx(Jo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:h,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&h===0&&{priority:!0}})})},`hero-banner-item-${h}`))}),c.shouldRender==="bottom"&&n.totalPages>1?o.jsx(da,{ICONS:t,...p}):o.jsx(o.Fragment,{})]})},$g={Banner:Xu},pt={"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:p=>{s(p)},className:_.helpers.classNameConcat(pt["carousel-modifier"],"common-section"),children:[n==="medium"?o.jsxs(_.TextStructure.Root,{children:[o.jsx(_.TextStructure.DivWrapper,{className:pt["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:pt["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((p,f)=>o.jsx(_.Carousel.Item,{className:pt["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:p.icon,size:n==="medium"?"medium":"small"})},children:o.jsxs(_.TextStructure.DivWrapper,{alignItems:"start",children:[o.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?o.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):o.jsx(o.Fragment,{})]})})})},`bennefit=${f}`))}),!r&&a.totalPages>1?o.jsxs(_.Carousel.Controller,{className:pt["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:p=>c==null?void 0:c.navigateTo(p)})]}):o.jsx(o.Fragment,{})]})})},Fg=({data:e,ICONS:t})=>o.jsx("div",{className:_.helpers.classNameConcat(go.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(Ku,{data:e,ICONS:t})}),fa={"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:fa["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:ho["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(fa["accordion-body-modifier"],ho["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)}`))]})},Qu=x.createContext({}),zg=({data:e,children:t,...r})=>{var m,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=(m=e==null?void 0:e.staticConfig)==null?void 0:m.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),p=u.length>1,f={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{i(!1)},h=_.helpers.ValidateProp({fieldTypes:it.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(Qu.Provider,{value:{isOpen:n,setIsOpen:i,hasCarousel:p,backgroundStyle:f,handleCloseTipbar:d,mode:h,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:s,controller:a,itemsStyles:c},...r},children:t})},He=()=>x.useContext(Qu),Hg=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=He();return o.jsx(yo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Ug="_tipbar_bt3p0_1",Gg="_tipbar__carousel_bt3p0_15",wt={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,p]=x.useState(!1),[f,d]=x.useState(!1),h=async()=>{if(!a.items.length){d(!0);return}(await s(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(m=>({...m,showSnackBar:!1}))},i.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{p(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{f&&setTimeout(()=>{d(!1)},i.TIPBAR_CONFIGS.snackbar_timeout)},[f]),o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...n,onClick:h,disabled:c.status,className:wt["tipbar-item__coupon"],children:c.status?`${i.TIPBAR_CONFIGS.coupon_applied_message}`:`${i.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&o.jsx(yt,{title:t,subtitle:r,Z_INDEX_WAR:i.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&o.jsx(yt,{title:i.TIPBAR_CONFIGS.coupon_error_title,subtitle:i.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:i.Z_INDEX_WAR},`error-coupon-${e}`),f&&o.jsx(yt,{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})},pa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=He();return o.jsx(_.Button,{title:"fechar tipbar",className:wt["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,p)=>{var f,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(f=i.controller)==null||f.prevPage():(d=i.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(n&&i.controller){const u=setInterval(()=>{var p;(p=i.controller)==null||p.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:wt.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(wt.tipbar,t),children:r?o.jsxs(o.Fragment,{children:[o.jsx(Qg,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),i&&o.jsx(pa,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):o.jsxs(o.Fragment,{children:[e,i&&o.jsx(pa,{handleCloseTipbar:l,mode:n})]})})},Zg=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:i}=He(),s=o.jsx("div",{...r,className:wt["tipbar-item"],children:e});return n?o.jsx(_.Carousel.Item,{style:i.itemsStyles,children:s}):s},Yu=({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(St,{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};Yu.displayName="TipBar.Root";const vo=({className:e,...t})=>o.jsx(zg,{...t,children:o.jsx(Yu,{className:e})});vo.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:Ie.responsive["responsive-flex"],children:[i?o.jsx("div",{className:Ie.responsive["responsive-mobile-flex"],children:o.jsx(vo,{data:i,CONSTANTS:e})}):null,n?o.jsx("div",{className:Ie.responsive["responsive-desktop-flex"],children:o.jsx(vo,{data:n,CONSTANTS:e})}):null]})},ma={"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:ma["card-image-wrapper"],children:o.jsx("div",{className:ma["card-image-container"],children:o.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},ty=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:n})=>{const[i,s]=x.useState();return x.useEffect(()=>{i||Ie.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:n}).then(a=>{s(a.data[0])})},[]),o.jsx(e,{data:i??[]})},ry={Banner:$g,BannerSection:Jo,BennefitsBarSection:Bg,SingleBannerSection:Xu,TextContentSection:Fg,BannerCarousel:Dg,TextAccordionSection:qg,TipbarScreening:Jg,ImageGrid:ey,SearchPageScreening:Ie.SearchPageScreening,SearchContent:ty},ny={Components:ry,helpers:Ig};exports.cms=ny;exports.contexts=Of;exports.data=Lo;exports.layout=Sg;exports.scripts=Rg;
|
|
81
|
+
`},Xg=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Kg},Symbol.toStringTag,{value:"Module"})),Yg={helpers:Xg},Qg=(e,t,r)=>{e.findEntityRanges(n=>{const s=n.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},er=e=>{const t=new Be.CompositeDecorator([{strategy:Qg,component:Zu}]),r=Be.convertFromRaw(e);return Be.EditorState.createWithContent(r,t)},Zg=e=>Be.convertFromRaw(e),tr=Be.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),la="superior-direita",Yt="dentro-inferior-centro",Jg="inferior-direita",to="dentro-inferior-esquerda",id=e=>({position:e===Yt||e===to?"absolute":"default",shouldRender:[la,Yt,to].includes(e)?"top":"bottom",alignItems:[Yt].includes(e)?"center":[la,Jg].includes(e)?"flex-end":"flex-start",left:e===to?"16px":e===Yt?"45%":"unset"}),ey=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:er,EXTENDED_BLOCK_RENDER_MAP:tr,GET_CONTENT_STATE:Zg,controllersPositionsAdapter:id},Symbol.toStringTag,{value:"Module"})),ot=e=>({centro:"center",esquerda:"start",direita:"end"})[e],ty=({expanded:e,content:t})=>o.jsxs("details",{open:e,children:[t.textStructureReduced?o.jsx("summary",{onClick:r=>r.preventDefault(),children:o.jsx(Be.Editor,{editorKey:"draft-editor-1",blockRenderMap:tr,editorState:t!=null&&t.textStructureReduced?er(JSON.parse(t.textStructureReduced)):Be.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{}),t.showTextStructureExpander&&t.textStructure?o.jsx(o.Fragment,{children:o.jsx(Be.Editor,{editorKey:"draft-editor-1",blockRenderMap:tr,editorState:t.textStructure?er(JSON.parse(t.textStructure)):Be.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):o.jsx(o.Fragment,{})]}),yo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},ry="_textContentWrapper_1bigo_5",ny="_textContentSection_1bigo_13",_o={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:ry,textContentSection:ny},ad=({data:e,ICONS:t})=>{var s;const[r,n]=x.useState(!1);return o.jsx(_.TextStructure.Root,{layoutProps:{textRow:{alignContent:ot(e.textStructureAlignment),alignItems:ot(e.textStructureAlignment)},columnWrapper:{alignContent:ot(e.textStructureAlignment),alignItems:ot(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(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):o.jsx(o.Fragment,{})},children:o.jsxs(_.Utils.Column,{className:_o.textContentWrapper,style:{alignItems:ot(e.textStructureAlignment)},children:[o.jsx(_.TextStructure.DivWrapper,{style:{textAlign:ot(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:yo["draftjs-text-modifier"],children:e.textStructureReduced?o.jsx(ty,{content:e,expanded:r}):o.jsx(o.Fragment,{})}),e.textStructureButtonLabel?o.jsx(ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:_o["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:o.jsx(_.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):o.jsx(o.Fragment,{})]})})},oy=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],ua=e=>({centro:"center",esquerda:"start",direita:"end"})[e],vo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[s,i]=x.useState(qc(new ns.TZDate(Date.now(),r),new ns.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}i(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,i,a]);const l=gt(s,"days");return a&&s>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(s,"hours")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"min",value:gt(s,"minutes")}),o.jsx(_.Timer.Separator,{}),o.jsx(_.Timer.Digit,{label:"segs",value:gt(s),suppressHydrationWarning:!0})]}):o.jsx(o.Fragment,{})},da={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},fa=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:s,...i})=>{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:S}=e.banner,E=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:R}=we();return o.jsxs(_.Banner.Container,{...i,children:[o.jsxs(_.Banner.ImageWrapper,{className:da["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&o.jsx(Fe.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),E&&!(a!=null&&a.length)&&o.jsx(R,{src:E,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||S||v?o.jsx(_.Banner.Slot,{...oy(d??"centro"),className:da["content-modifier"],style:{textAlign:ua(m)},children:o.jsxs(_.Utils.Column,{gap:"16px",alignItems:ua(m),children:[h&&y==="timer-first"&&o.jsx(vo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),o.jsx(ad,{data:e.banner,ICONS:s}),h&&y!=="timer-first"&&o.jsx(vo,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):o.jsx(o.Fragment,{})]})},rs=({data:e,className:t,priority:r,creative:n,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=he(),{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(S=>S.includes("loc")||S.includes("signature")||S.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(lr,{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(ke,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:l})},children:o.jsx(fa,{data:e,videoUrl:m,priority:r,videoRef:d,...s})}):o.jsx(fa,{data:e,videoUrl:m,priority:r,videoRef:d,...s})})},cd=e=>o.jsx(rs,{...e}),bo={"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 sy(e,t){const{mediatorRef:r}=Ce();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const pa=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=x.useState("default");return sy("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),o.jsxs(_.Carousel.Controller,{className:bo["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[o.jsxs(_.Carousel.Arrows,{className:bo["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:s,onBulletClick:r,mode:f})]})},iy=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:s}=Ce();return t.data.first?o.jsx(lr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):o.jsx(o.Fragment,{children:e})},ay=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:s,itemsStyles:i}=_.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),c=x.useMemo(()=>id(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,n.totalPages]),u=x.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:m=>u(()=>s==null?void 0:s.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,s]);return x.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),o.jsxs(_.Carousel.Root,{innerRef:d=>{r(d)},className:_.helpers.classNameConcat(bo["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(pa,{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:i,children:o.jsx(iy,{data:e,banner:d,children:o.jsx(rs,{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(pa,{ICONS:t,...f}):o.jsx(o.Fragment,{})]})},cy={Banner:cd},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"},ly=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Ce(),n=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,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&&s?"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=>{i(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,{})]})})},uy=({data:e,ICONS:t})=>o.jsx("div",{className:_.helpers.classNameConcat(_o.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:o.jsx(ad,{data:e,ICONS:t})}),ma={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},dy=({data:e,id:t,ICONS:r})=>{var i;const[n,s]=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,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>o.jsxs(_.Accordion.Wrapper,{className:ma["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:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{className:yo["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(ma["accordion-body-modifier"],yo["draftjs-text-modifier"]),children:o.jsx(Be.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:tr,editorState:a.text?er(JSON.parse(a.text)):Be.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},ld=x.createContext({}),fy=({data:e,children:t,...r})=>{var h,y,g,b,j,v,S,E,R,C,A,k,w;const[n,s]=x.useState(!0),{initialize:i,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:(E=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:E.backgroundColor,textColorVariant:(C=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:C.textColorVariant,content:((k=(A=e==null?void 0:e.content)==null?void 0:A.content)==null?void 0:k.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},m=_.helpers.ValidateProp({fieldTypes:it.Mode,property:l.textColorVariant,fallback:"default"});return o.jsx(ld.Provider,{value:{isOpen:n,setIsOpen:s,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},Ue=()=>x.useContext(ld),py=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=Ue();return o.jsx(vo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},my="_tipbar_bt3p0_1",hy="_tipbar__carousel_bt3p0_15",It={tipbar:my,tipbar__carousel:hy,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},gy=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:s}=Ue(),{addCouponSeller:i,cartStore:a}=He(),[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 i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{f(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{p&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[p]),o.jsxs(o.Fragment,{children:[o.jsx(_.Button,{...n,onClick:m,disabled:c.status,className:It["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&o.jsx(vt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&o.jsx(vt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),p&&o.jsx(vt,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},yy=({title:e,description:t,style:r,mode:n,className:s})=>o.jsx(_.TextStructure.Root,{children:o.jsxs(_.TextStructure.DivWrapper,{mode:n,className:s,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})]})}),_y=({coupon:e,...t})=>{const{CONSTANTS:r}=Ue();return o.jsx(_.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},vy=({staticZone:e,type:t,className:r,description:n,title:s})=>{const{mode:i}=Ue();if(t==="countdown")return o.jsx(py,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});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(gy,{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(_y,{coupon:e.coupon,mode:a}):null}return o.jsx(yy,{title:s,description:n,mode:i,className:r})},ha=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=Ue();return o.jsx(_.Button,{title:"fechar tipbar",className:It["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:o.jsx(_.Icon,{name:r.ICONS.close})}})},by=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:s,CONSTANTS:i}=Ue(),a=x.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=s.controller)==null||p.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(n&&s.controller){const u=setInterval(()=>{var f;(f=s.controller)==null||f.nextPage()},n);a.current=u}},[n,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),o.jsxs(_.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:It.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:i.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:i.ICONS.arrow_right})}})]})},xy=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=Ue(),u=r&&a;return o.jsx("div",{style:i,"data-hasclosebtn":s,className:_.helpers.classNameConcat(It.tipbar,t),children:r?o.jsxs(o.Fragment,{children:[o.jsx(by,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&o.jsx(ha,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):o.jsxs(o.Fragment,{children:[e,s&&o.jsx(ha,{handleCloseTipbar:l,mode:n})]})})},Cy=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:s}=Ue(),i=o.jsx("div",{...r,className:It["tipbar-item"],children:e});return n?o.jsx(_.Carousel.Item,{style:s.itemsStyles,children:i}):i},ud=({className:e})=>{const{isOpen:t,slices:r}=Ue();return r.length&&t?o.jsx(xy,{children:r.map((n,s)=>{var i;return o.jsx(o.Fragment,{children:o.jsx(Et,{href:n.link,children:o.jsx(Cy,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,c)=>o.jsx(vy,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};ud.displayName="TipBar.Root";const xo=({className:e,...t})=>o.jsx(fy,{...t,children:o.jsx(ud,{className:e})});xo.displayName="TipBar";const Sy=({CONSTANTS:e,data:t})=>{const{pathname:r}=we(),{tipbarRef:n}=xe(),s=c=>{const l=t==null?void 0:t.find(u=>{var f,p,d,m,h;return((p=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:p.deviceType)===c&&((h=(m=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:m.paths)==null?void 0:h.includes(r))});return l||(t==null?void 0:t.find(u=>{var f,p,d,m,h,y;return((p=(f=u.staticConfig)==null?void 0:f.staticConfig)==null?void 0:p.deviceType)===c&&(!((m=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&m.paths)||((y=(h=u.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return o.jsxs("div",{ref:n,className:Ne.responsive["responsive-flex"],children:[a&&o.jsx("div",{className:Ne.responsive["responsive-mobile-flex"],children:o.jsx(xo,{data:a,CONSTANTS:e})}),i&&o.jsx("div",{className:Ne.responsive["responsive-desktop-flex"],children:o.jsx(xo,{data:i,CONSTANTS:e})})]})},ga={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},jy=e=>{const{nextimage:t}=we();return o.jsx(o.Fragment,{children:e.data.banners.map((r,n)=>o.jsx("div",{className:ga["card-image-wrapper"],children:o.jsx("div",{className:ga["card-image-container"],children:o.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},Ey=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:n})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||Ne.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:n}).then(a=>{i(a.data[0])})},[]),o.jsx(e,{data:s??[]})},wy=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>o.jsx(r,{...t}),Ry={Banner:cy,BannerSection:rs,BennefitsBarSection:ly,SingleBannerSection:cd,TextContentSection:uy,BannerCarousel:ay,TextAccordionSection:dy,TipbarScreening:Sy,ImageGrid:jy,SearchPageScreening:Ne.SearchPageScreening,SearchContent:Ey,NewsletterSection:wy},Ay={Components:Ry,helpers:ey};exports.cms=Ay;exports.contexts=ip;exports.data=Bo;exports.layout=Vg;exports.scripts=Yg;
|