@soma-vertical-web/multi-lib 0.0.61 → 0.0.62

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/index.js CHANGED
@@ -1,44 +1,45 @@
1
- "use strict";var Id=Object.defineProperty;var Nd=(e,t,r)=>t in e?Id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yr=(e,t,r)=>Nd(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),ie=require("./index-BR5lPUsH.js"),st=require("idb-keyval"),tt=require("zustand"),oo=require("js-cookie"),g=require("@soma-vertical-web/core-components"),Qe=require("axios"),Td=require("jose"),lt=require("@soma-vertical-web/foundations"),ga=require("react-dom"),qe=require("draft-js"),ts=require("@date-fns/tz"),jo=x.createContext({}),Od=({data:e,children:t})=>n.jsx(jo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),St=()=>{const{tags:e}=x.useContext(jo),t=x.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ya=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},_a=x.createContext({}),kd=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return ya({gridScrollBack:t}),n.jsx(_a.Provider,{value:{sizesContainerRef:r},children:e})},Md=()=>{const e=x.useContext(_a);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ve=({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})},Ce={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:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=o,h={...r==="view_item"?{currency:Ce.configs.currency,value:p,grade_disponivel:l??(u?va(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Ce.configs.currency}:{}},d=Mt({data:o,customData:{...s,...a,...i},configs:Ce.configs});Ve({event:r,data:{...c,ecommerce:{...a,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Mt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Ce.configs}));Ve({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(h=>{var _,y,b,j,v,S,E,R,C;const d=s==null?void 0:s.find(A=>(h.productId??h.id)===A.productId);let f={...a,...c};if(d){const A=xa(),O=Ca(A,d);O&&(f={...f,...O}),t==="add_to_cart"&&(a||c)&&so({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"&&so({persistedData:A,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(y=(_=d==null?void 0:d.offers)==null?void 0:_.offers)==null?void 0:y[0])==null?void 0:b.price)??0;const m=(d==null?void 0:d.size)??ie.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=h.itemOffered)==null?void 0:j.skuName),Ce.configs.NAME_SPLIT_SYMBOL).size;return Mt({data:h,customData:{...o,...f??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:m,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)??h.seller},configs:Ce.configs})});Ve({event:t,data:{...l,ecommerce:{value:i??u,currency:Ce.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=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 h;const u=((h=Ce.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,p=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...p,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),Ve({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var p,h,d,f,m,_,y,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(S=>{const{promotionInfo:E,itemList:R}=i[S.id]??{};return Mt({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:Ce.configs})}),c=(((p=o.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((h=o.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Ce.configs.VENDOR_CODE?(f=o.marketingData)==null?void 0:f.utmCampaign:(_=String((m=o.openTextField)==null?void 0:m.value))==null?void 0:_.split(" - ")[0];Ve({event:"view_cart",data:{...r,ecommerce:{currency:Ce.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(y=o.shippingData)==null?void 0:y.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=o.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ve({event:t,data:{...r}})}},va=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Ld=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Mt=({data:e,customData:t,configs:r})=>({...Dd(e,r==null?void 0:r.MAIN_IMAGE),...$d(e),...Bd(e),...zd(e),...t}),ba=()=>{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("_"))??[]:[]},xa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Ca=(e,t)=>e==null?void 0:e[t],so=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Dd=(e,t="1")=>{var i,a,c,l,u,p,h,d,f,m,_;const r=e.productReference??e.gtin??e.productRefId,o=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=o==null?void 0:o.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??ie.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Ce.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((m=e.brand)==null?void 0:m.name)??e.brand??((_=e.itemOffered)==null?void 0:_.brand.name),item_url:`${Ce.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},rs=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,$d=e=>{var u,p;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=rs(o),a=rs(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Ce.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]}}},Bd=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:o}=ie.getColorAndSizeFromSkuName(t,Ce.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},zd=e=>{var l,u;const{price:t,listPrice:r,installments:o}=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},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Ce.configs.currency}},Sa=()=>{const[e,t]=ba(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},Fd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Ce,findDataInPersistedData:Ca,getAvailablesSizes:va,getCategories:Ld,getPageCategoryAndDepartmentFromSlug:Sa,getPersistedData:xa,getProductListInfoFromHead:ba,pushDatalayer:Ve,updatePersistedData:so},Symbol.toStringTag,{value:"Module"})),ja=x.createContext({}),qd=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:p,data:h,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Ce.configs=t;try{typeof Ce[p]=="function"&&setTimeout(()=>{var m;h.promotionInfo=r.current,(m=s.current)!=null&&m.item_list_name&&(h.itemList=s.current),Ce[p](h,d)},f)}catch(m){Ve({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:h,index:d})=>{p&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(ja.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>x.useContext(ja),Ea=x.createContext({}),Hd=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var T,H;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ge(),{productId:l,productName:u,items:p,items:[{images:h,Videos:d}],description:f,["Composição"]:m="",productReference:_,categories:[y]}=t,{getAvailableProductTag:b}=St(),j=b(Object.entries(t.clusterHighlights).map(U=>({id:U[0],name:U[1]}))),v=y.slice(1,-1).split("/"),{installments:S,price:E,listPrice:R,sizes:C,allSizesAvailable:A}=ie.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),O=ie.getThumbImage({images:h,TEXTURE_IMAGE:i}),w=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:m}],N=((H=ie.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[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:q})=>{const{commonData:G,customData:W}=I();a({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...W,...U&&{item_sku:U},...q&&{item_variant2:q}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:U,customData:q}=I();a({functionKey:"productEvents",data:{event:"select_item",commonData:U,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}B({})},[]),n.jsx(Ea.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:j,items:p,sizes:C,allSizesAvailable:A,installments:S,price:E,listPrice:R,thumbImage:O,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:B},children:e})},Eo=()=>{const e=x.useContext(Ea);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Ud=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},Wd=()=>{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)}},[])},Vd=typeof window>"u",Gd=(e,t)=>{const[r,o]=x.useState(()=>{if(Vd)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&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function wa(e,t,r){const[o,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]),o}const Kd=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.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:o}},Xd=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=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(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const f=r.current.getBoundingClientRect(),m=o.current.children[0].getBoundingClientRect(),_=m.width,y=m.height,b=Math.min(0,(f.width-_)/2),j=Math.max(0,(_-f.width)/2),v=Math.min(0,(f.height-y)/2),S=Math.max(0,(y-f.height)/2);return{minX:b,maxX:j,minY:v,maxY:S}},p=(f,m,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${m}px)) scale(${_})`})}},h=x.useCallback(f=>{const{minX:m,maxX:_,minY:y,maxY:b}=u(),{x:j,y:v}=l.current,S=Math.max(m,Math.min(_,j)),E=Math.max(y,Math.min(b,v));if(f.touches.length>1){const R=f.touches[0],C=f.touches[1],A=R.pageX-C.pageX,O=R.pageY-C.pageY;a.current=Math.sqrt(A*A+O*O),c.current={x:(R.pageX+C.pageX)/2,y:(R.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-S,y:f.touches[0].pageY-E})},[s,l]),d=x.useCallback(f=>{if(!o.current||!r.current)return;const{minX:m,maxX:_,minY:y,maxY:b}=u();if(f.touches.length>1){f.preventDefault();const j=f.touches[0],v=f.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 O=(j.pageX+v.pageX)/2,w=(j.pageY+v.pageY)/2;let N=O-c.current.x,I=w-c.current.y;N=Math.max(m,Math.min(_,N)),I=Math.max(y,Math.min(b,I)),l.current={x:N,y:I},a.current=R,p(N,I,A)}else if(f.touches.length===1){const j=f.touches[0].pageX,v=f.touches[0].pageY;let S=j-c.current.x,E=v-c.current.y;S=Math.max(m,Math.min(_,S)),E=Math.max(y,Math.min(b,E)),l.current={x:S,y:E},p(S,E,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},Yd={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},De=Promise.resolve(!1),io={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>De,addItem:()=>De,addSellerCode:()=>De,addMarketingData:()=>De,emptyCart:()=>{},removeItem:()=>De,setIsOpen:()=>{},shipping:()=>De,shippingUpdate:()=>De,toggleServiceToProduct:()=>De,updateItemQuantity:()=>De,insertProfileEmail:()=>De,setRecentlyAddedProducts:()=>{}},wo=e=>e===0,Ra=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},Aa=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:h,quantity:d,price:f,priceDefinition:m,productCategories:_,productCategoryIds:y,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:o},categories:Ra(y,_),categoriesIds:y,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:i,slug:c,skuName:C},listPrice:h,quantity:d,offerings:E,price:f,priceDefinition:m,sellingPrice:A,seller:v}},Pa=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ia=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=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:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Na=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),ao=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Qd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Zd=e=>{const t=e.reduce((s,i)=>{const a=wo(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},Jd=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,Ta=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(h=>Aa(h,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Oa=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},ef=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},at=(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},tf=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},ka=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Ma=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),La=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Da=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},$a=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],Ba=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Te=async(e,t,r,o)=>{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:Ta(c,o)})},za=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Fa=e=>[...Array.isArray(e)?e:[e],"faststore"],qa=e=>{const t=e.get("utm_source")||Xe("utm_source"),r=e.get("utm_campaign")||Xe("utm_campaign"),o=e.get("utm_medium")||Xe("utm_medium"),s=e.get("utmi_cp")||Xe("utmi_cp"),i=e.get("utmi_pc")||Xe("utmi_pc"),a=e.get("utmi_p")||Xe("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},Xe=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},rf=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Yd,addItemOrder:Pa,addNotification:za,createItemOrder:Aa,fetchCartAPI:Te,findItemIndex:ao,findOptions:$a,findTotalizerValue:Qd,getCategories:Ra,getCode:at,getQuantity:Da,getRemoveId:ka,getSize:ef,getTotalItems:Jd,getTotalizer:Zd,getUrlParameter:Xe,getValue:Ma,initialState:io,isGift:wo,marketingTagsBuilder:Fa,mergeOptionsPromise:Ba,mountMarketingData:qa,orderFormValues:Ta,promiseDefault:De,removeQuantity:Ia,updateItemSellerExternal:Oa,updateOrderFormPromise:La,updateQuantity:Na,wishlistArray:tf},Symbol.toStringTag,{value:"Module"})),nf=()=>{const e=async(f,m)=>Te("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:m}}),t=async(f,m)=>{if(m){const _=m.includes(" - ")?m.split(" - ")[0]:m,y=await Te("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:_}},!0);return y instanceof Object&&"nome"in y&&(y==null?void 0:y.status)===!0?Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(j=>({...j,openTextField:{...(j==null?void 0:j.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,m)=>Te("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:m}}),o=async(f,m,_)=>Te("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Pa(m,_)}}),s=async(f,m,_,y=!1)=>Te("/api/checkout/order-form/offerings",{body:{id:m,itemIndex:_,orderFormId:f,remove:y}}),i=async f=>Te("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),a=async(f,m="low")=>Te("/api/checkout/order-form",{priority:m,body:{orderFormId:f??""}}),c=async(f,m)=>Te("/api/checkout/order-form/profile",{body:{orderFormId:f,email:m}}),l=async(f,m,_)=>{const y=Ia(m,_);return Te("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,m,_)=>Te("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:m}}),p=async(f,m,_)=>Te("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:m,selectedAddresses:_}}),h=async(f,m,_,y)=>{const b=Na(m,_,y);return Te("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(f,m,_,y,b)=>h(f,m,_,y).then(j=>j&&Array.isArray(j.items)?Oa(j.items,_)?h(f,m,_,b):j:!1)}},co="soma::cart",_t="soma::options",ut=tt.create((e,t)=>{const r=nf(),o=async(s,i,a)=>{e({loading:!0});const c=await La(s);if(typeof c!="boolean"){e({...c});const l=await Ba(st.get(_t),a);return st.set(_t,l),Ma(c,i).finally(()=>e({loading:!1,options:l}))}return De};if(typeof window<"u"){const s=async i=>{if(i){const a=await st.get(_t).then(u=>$a(u,i.items));st.set(co,i),st.set(_t,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return st.get(co).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...io,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return ka(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var p;return r.updateItemQuantity(l,u,i,a,((p=u.find(h=>h.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return io}),of=()=>ut(e=>e),Ha=tt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>za(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),Ro=()=>Ha(e=>e.notifications),Ao=()=>Ha(e=>e.actions),sf=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:_t,KEY_INDEXED_STORE:co,useCartStore:ut,useGetCartStoreState:of,useGetNotificationActions:Ao,useGetNotificationsStore:Ro},Symbol.toStringTag,{value:"Module"})),af=6e3,Ua=x.createContext({}),Wa=({children:e,...t})=>{const{items:r}=ut(),[o,s]=x.useState([]),i=x.useRef(null),a=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},af))},[o]),n.jsx(Ua.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},jt=()=>{const e=x.useContext(Ua);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Va{constructor(){yr(this,"events",{});yr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const Ga=x.createContext({}),cf=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=x.useState(!0),[a,c]=x.useState(!1),l=r==="/",u=x.useRef(new Va),p=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},h=p(l),d=x.useRef(h);return x.useEffect(()=>{var _;const f=((_=new URLSearchParams(window.location.search))==null?void 0:_.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(oo.get("lastMedias")||oo.set("lastMedias",`${f}`,{expires:1/24}));const m=()=>{const y=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,b=window.innerWidth<1024||!!y.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a||c(!0),s!==b&&(i(b),c(!0))};return a||m(),window.addEventListener("resize",m,{passive:!0}),()=>window.removeEventListener("resize",m)},[s,a]),x.useEffect(()=>{const f=p(l);u.current.publish("header:change_variant",f.headerVariant),u.current.publish("header:change_position",f.position),d.current=f},[l]),n.jsx(Ga.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:a,...o},children:n.jsx(Wa,{children:e})})},be=()=>x.useContext(Ga),Ka=x.createContext({}),lf=({children:e,...t})=>n.jsx(Ka.Provider,{value:{...t},children:e}),Re=()=>x.useContext(Ka),rt=(e,t)=>tt.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),Ct={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},Et=new Set,uf=()=>{Et.forEach(e=>{e()})},Xa=tt.create((e,t)=>{const r=()=>e({value:Ct.category});return Et.add(r),{value:Ct.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),or=()=>Xa(e=>e.value),Ke=()=>Xa(e=>e.actions),Ya=rt(Ct.menuMobileIsOpen,Et),Po=()=>Ya(e=>e.value),nt=()=>Ya(e=>e.actions),Qa=rt(Ct.searchModalIsOpen,Et),df=()=>Qa(e=>e.value),Io=()=>Qa(e=>e.actions),Za=rt(Ct.userMenuIsOpen,Et),Ja=()=>Za(e=>e.value),wt=()=>Za(e=>e.actions),ff=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:uf,useActionsHeaderCategory:Ke,useActionsMenuMobileIsOpen:nt,useActionsSearchModalIsOpen:Io,useActionsUserMenuIsOpen:wt,useGetHeaderCategoryStore:or,useGetMenuMobileIsOpen:Po,useGetSearchModalIsOpen:df,useGetUserMenuIsOpen:Ja},Symbol.toStringTag,{value:"Module"})),dt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},pt=new Set,pf=()=>{pt.forEach(e=>{e()})},ec=tt.create(e=>{const t=()=>e({value:dt.selectedSkuInfo});return pt.add(t),{value:dt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),mf=()=>ec(e=>e.value),hf=()=>ec(e=>e.actions),tc=rt(dt.openLetMeKnow,pt),gf=()=>tc(e=>e.value),yf=()=>tc(e=>e.actions),rc=rt(dt.showNotify,pt),_f=()=>rc(e=>e.value),vf=()=>rc(e=>e.actions),nc=rt(dt.showBottomNavigation,pt),bf=()=>nc(e=>e.value),xf=()=>nc(e=>e.actions),oc=rt(dt.openMeasurements,pt),Cf=()=>oc(e=>e.value),Sf=()=>oc(e=>e.actions),jf=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:pf,useActionsPDPOpenLetMeKnow:yf,useActionsPDPOpenMeasurements:Sf,useActionsPDPSelectedSkuInfo:hf,useActionsPDPShowBottomNavigation:xf,useActionsPDPShowNotify:vf,useGetPDPOpenLetMeKnow:gf,useGetPDPOpenMeasurements:Cf,useGetPDPSelectedSkuInfo:mf,useGetPDPShowBottomNavigation:bf,useGetPDPShowNotify:_f},Symbol.toStringTag,{value:"Module"})),ns={feedback:{active:!1,action:"add"},list:[]},No=tt.create((e,t)=>({value:ns,actions:{reset:()=>e({value:ns}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),sc=()=>No(e=>e.value.list),Ef=()=>No(e=>e.value.feedback),ic=()=>No(e=>e.actions),wf=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:ic,useGetWishlistFeedbackStore:Ef,useGetWishlistStore:sc},Symbol.toStringTag,{value:"Module"})),ac=x.createContext({}),Rf=({children:e,headerData:t,...r})=>{var p,h;const o=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=be();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const m=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=m?_:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";y!==((j=u.current)==null?void 0:j.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(m)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,f=g.helpers.throttle(()=>{var _;return(_=l.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:d.signal});const m=_=>{var b;(b=_.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",m,{signal:d.signal}),o.current.addEventListener("touchend",m,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(ac.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(ac),cc=x.createContext({}),lc=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=Po(),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(o)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"}}},[o]),x.useEffect(()=>{r.current=document.body},[]),n.jsx(cc.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},Rt=()=>x.useContext(cc),Af=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 o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Af(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},uc=x.createContext({}),dc=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,p]=x.useState({left:0,top:0}),h=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"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:m,top:_}=Pf(f,d,r??0);p({left:m,top:_}),l(!1)}},[r,s]),n.jsx(uc.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,h,c,s,i,l]),children:e})},ot=()=>{const e=x.useContext(uc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},fc=x.createContext({}),If=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=ut(),{setRecentlyAdded:s}=jt(),i=x.useRef(""),a=Ro(),{addNotification:c,removeNotification:l}=Ao(),{addCoupon:u,addItem:p,addSellerCode:h,addMarketingData:d,emptyCart:f,isOpen:m,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=o;x.useEffect(()=>{const q=oo.get("lastMedias");if(o.id&&q&&i.current!==q){i.current=q;const G=new URLSearchParams(q),W=qa(G);d(W)}},[o,d]);const S=x.useCallback(async(q,G)=>(G==="coupon"?u(q):h(q)).then(z=>{if(typeof z!="boolean"&&z instanceof Object){if(G==="seller"&&"value"in z){const{statusOk:Z,value:P}=z,k=String(P??"").split(" - ");return at((k==null?void 0:k[0])??"",q,!!Z)}return at(String(z.coupon),q,!0)}return at("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),E=x.useCallback((q,G,W)=>{const{id:z}=q;v(z,G,W)},[v]),R=x.useCallback((q,G,W=!1)=>{if(!q)return;const{id:z}=q,Z=ao(o.items,z);if(Z!==-1&&!W){const P=Number(o.items[Z].quantity),k=o.items[Z]?P+1:1;E(q,k,G)}else p({id:z,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});m||s(P=>[...P,q])},[p,E,o.items,m,s]),C=x.useCallback((q,G)=>{if(!q||!Array.isArray(q))return;s(z=>[...z,...q]);const W=q.map(z=>{const{id:Z,quantity:P,seller:k}=z,D=ao(o.items,Z),K=Da(P??1,D);return{id:Z,quantity:K,seller:k}});p(W,G)},[p,o.items,s]),A=x.useCallback(async(q,G,W)=>q?_(q).then(()=>(c(G??`${t}`,W),at(q,q))):Promise.resolve(at("","Product id required")),[c,_]),O=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),w=x.useCallback((q,G="BRA")=>y(q,G),[y]),N=x.useCallback(q=>{q&&b(q)},[b]),I=x.useCallback(async(q,G,W)=>{const z=o.items.findIndex(P=>P.id===q);return o.items[z]&&z>=0?j(G,z,W??!1):!1},[o.items,j]),B=x.useCallback(async(q,G)=>v(q,G).then(W=>{if(Array.isArray(W)){const z=W.find(Z=>Z.id===q);if(z&&(z==null?void 0:z.quantity)<G)return String(z.quantity)}return!1}),[v]),T=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),U=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(fc.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:S,addToCart:R,addItemsToCart:C,cartStore:o,notifications:a,clearCart:O,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:A,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:B,removeCoupon:T,removeSellerCode:H,removeCEP:U}),[r,S,R,C,a,O,c,o,l,A,w,N,I,B,T,H,U]),children:e})},we=()=>{const e=x.useContext(fc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},pc=x.createContext({}),To=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,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]),n.jsx(pc.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},Oo=()=>{const e=x.useContext(pc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},mc=x.createContext({}),hc=({children:e,sort:t,state:r,count:o,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,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,s]);return n.jsx(mc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??a.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},sr=()=>{const e=x.useContext(mc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},gt={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"}},Nf={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Tf="Imagem do produto",os=1,Of="Sair",kf=e=>e.exit,Mf=({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"}],Lf=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Df=e=>"Seja bem vindo!",gc=x.createContext({}),$f=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...i}=Oo(),{router:a}=Re(),c=x.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const m=f.getAll("facets");f.delete("facets"),m.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),a.push(`?${f.toString()}`)}},[a]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),a.push(`?${d.toString()}`)},[a]),u=x.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const m=f.getAll("facets");f.delete("facets"),f.set("page","1"),m.forEach(_=>{const[y,b]=_.split("/");(y!==d.key||b!==d.value)&&f.append("facets",_)}),a.push(`?${f.toString()}`)},[a]),p=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));for(const[,m]of f.entries()){const[_,y]=m.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,t]),h=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));f.set("sort",d.replace("_",":")),a.push(`?${f.toString()}`)},[a,t]);return n.jsx(gc.Provider,{value:x.useMemo(()=>({...i,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:p,onSort:h,searchParams:t}),[s,l,h,p,i,r,t]),children:e})},Bf=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=sr();return n.jsx(To,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx($f,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},zf=()=>{const e=x.useContext(gc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},yc=x.createContext({}),Ff=({children:e})=>{const{data:t,...r}=Oo(),[o,s]=x.useState(0),{sendDataLayerEvent:i}=ge();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]),n.jsx(yc.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:Nf,total:o}),[t,r,o]),children:e})},qf=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(To,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(Ff,{state:r,children:e})}),Hf=()=>{const e=x.useContext(yc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},_c=x.createContext({}),Uf=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);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();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(_c.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Wf=({children:e,...t})=>n.jsx(Uf,{...t,children:e}),Vf=()=>{const e=x.useContext(_c);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},vc=x.createContext({searches:[],isLoading:!1,error:null}),Gf=({children:e})=>{const[t,r]=x.useState([]),[o,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)}})()},[]),n.jsx(vc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Kf=()=>{const e=x.useContext(vc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},bc=x.createContext({}),Xf=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=Re(),l=x.useRef(""),[u,p]=x.useState(!1),h=x.useMemo(()=>{const f=new URL(c,"http://localhost"),m=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":a);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),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",m.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return ie.parseSearchState(h,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return ie.parseSearchState(h,f)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(bc.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(hc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Yf=()=>{const e=x.useContext(bc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},tr=(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)=>tr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&tr(e[s],t[s]))},xc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!tr(t[o],e[o])),lo=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},Cc=()=>({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}}}),Sc=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*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((f,m)=>s.has(l+m))){for(let f=0;f<c.columns;f++)s.add(l+f);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}},uo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=Sc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)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}},er=(e,t,r=24)=>Array.from({length:e},(o,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:ko(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Cc())}}),jc=(e,t)=>[...e,{loading:!1,page:t,pagination:ko(),products:[]}],ko=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Qf=(e,t,r,o,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,p)=>{const h=o[p];return h<=l||s>a&&h>l})},Ec=(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 o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Zf=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Ec(r,t)},wc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Jf=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:wc,createPage:jc,createPages:er,createPagination:ko,createProduct:Cc,deepEqual:tr,fetchPage:lo,getBanners:Sc,getPositions:uo,getProductsWithVideo:Zf,getRandomVideoPerRow:Ec,getVisibleBanners:Qf,hasStateChangedExceptPage:xc},Symbol.toStringTag,{value:"Module"})),ep=50,tp=tt.create((e,t)=>{const r=a=>Math.min(a,ep),o=async(a,c)=>{const l=r(a.page);try{const u=await lo({...a,page:l});s(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,p=>({...p,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(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 h,d,f;const p=r(Number(a==null?void 0:a.page));e({...c,pages:er(p,void 0,u)});try{const m=await lo({...a,page:p});if(m){if(!m.products.length&&((h=m==null?void 0:m.pagination)==null?void 0:h.total)<p){i({...a,page:(d=m==null?void 0:m.pagination)==null?void 0:d.total},l),e({pages:er((f=m==null?void 0:m.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(m),e({load:!0,pages:er(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(h=>h.page===p)||(e({...c,pages:jc(u,p)}),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)}}}),rp=(e,t,r,o=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 p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=a+u,h=o+p,d=t.find(m=>m.position_grid===h+1),f=h+s+1;d&&(s+=d.columns),i.push({position:f,canPlayVideo:u===l})}}return i},np=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Rc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:ie.disableSKU(r),size:ie.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},op=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:rp,getSkusNotify:Rc,isPositionInCurrentPage:np},Symbol.toStringTag,{value:"Module"})),Ac=x.createContext({}),sp=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:i}=Re(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=be(),{state:l}=sr(),{addPage:u,createPages:p,updateProducts:h,...d}=tp(),f=c?8:16,m=c?2:4,_=x.useRef(!1),y=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,T=uo(e,B,m,r);u({...l,page:B},T,C)}},[u,e,C,m,r,l]),O=x.useCallback(I=>{I.loading===!1&&h({...l,page:I.page},C)},[C,h,l]),w=x.useCallback(I=>{const B=new URLSearchParams(o);I.page!==Number(B.get("page")??1)&&(B.set("page",String(I.page)),i.replace(`?${B.toString()}`,{scroll:!1}))},[i,o]),N=x.useCallback((I,B)=>{const T=B?Rc([B]):null;R(I),S(T!=null&&T.length?T[0]:null),j(!0)},[]);return x.useEffect(()=>{const I=!_.current,B=xc(y.current,l),T=uo(e,l.page,m);I?p(l,T,C,r):B&&(p(l,T,C,r),y.current=l),_.current=!0},[e,p,C,m,r,l]),n.jsxs(Ac.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:A,createPages:p,gap:f,columns:m,handleNotify:N,updatePage:O,updateProducts:h,updateParamPage:w}),[u,A,p,N,f,m,d,O,h,w]),children:[t,n.jsx(s,{notify:b,sku:v,skus:E,setSku:S,setNotify:j})]})},ip=()=>{const e=x.useContext(Ac);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Pc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function Mo(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 ap=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=ir(),{cartStore:r}=we();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:p,street:h,number:d,city:f,gender:m}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),j=Array.from(new Uint8Array(y)).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:p,street:h,street_number:d,city:f,gender:m,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Ic=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),cp=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=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,{wishlist:p,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof p=="string"?p.split(","):p)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=x.useCallback(()=>{Mo(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]),n.jsxs(Ic.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(ap,{}),e]})},ir=()=>{const e=x.useContext(Ic);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Nc=x.createContext({gridBanners:void 0,banners:[]}),lp=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=be(),a=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=a.slice(0,os),l=a.slice(os,a.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),p=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(f=>({...f.banner,columns:f.bannerWidth,position_grid:f.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Nc.Provider,{value:{gridBanners:u,banners:p},children:[n.jsx(o,{data:c??[]}),n.jsxs(g.Utils.Column,{gap:s,className:g.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},up=()=>{const e=x.useContext(Nc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Tc=x.createContext({}),Oc=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(Tc.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},mt=()=>{const e=x.useContext(Tc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},kc=x.createContext({product:void 0}),dp=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(kc.Provider,{value:{productId:r},children:[e,n.jsx(g.Utils.Column,{gap:o,className:g.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),fp=()=>{const e=x.useContext(kc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},pp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function mp(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function hp(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Mc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,vt=(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),gp=e=>{const t=Td.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},yp=["name","email","phone","date","cpf","cep"],ss={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}$/},Lc=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ss[e])return!0;const o=t.trim();return ss[e].test(o)},_p=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Tf},vp=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:yp,debounce:hp,getAltTextFromUrl:_p,getAuthenticatedUser:gp,getCookie:Pc,getDaysHoursMinutesSeconds:vt,getMilliSeconds:Mc,removeAccentsAndReplaceSpaces:pp,setCookie:Mo,throttle:mp,validateInput:Lc},Symbol.toStringTag,{value:"Module"})),bp=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},xp=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,p)=>{var f;if(p==="terms-and-conditions")return;const h=(f=t[p])==null?void 0:f.required;if(h&&!u){l[p]="required",a=!0;return}Lc({type:t[p].type,input:u,required:h})||(l[p]="error",c=!0),typeof u=="string"&&e.set(p,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Dc=x.createContext({}),$c=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ge(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>bp({fields:r}),[r]),p=x.useRef(!1),[h,d]=x.useState("idle"),[f,m]=x.useState(u),_=async({searchFields:R,entity:C})=>{const A=await Qe.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:R,headers:{"REST-Range":"resources=0-49"}}});return console.info(A),A.data},y=async({id:R,fieldsToBeUpdated:C,entity:A})=>(await Qe.post("/api/master-data/update",{dataEntityName:A,id:R,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:R,response:C},A,O)=>{const{email:w,...N}=R,[I]=await _({searchFields:{[A]:w},entity:O??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:O??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),j=x.useCallback(async({formData:R},C,A)=>{const O={status:"idle",inputsStatus:{}},w={};R.forEach((N,I)=>{w[I]=N});try{const I=(await Qe.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:O},A,C):I!=null&&I.Id?{...O,status:"success"}:{...O,status:"error"}}catch(N){return console.error("error",N),{...O,status:"error"}}},[b]),v=x.useCallback(async(R,C,A)=>{R.preventDefault();const O=new FormData(R.target);C&&Object.keys(C).forEach(N=>{O.append(N,C[N])});const w=await j({formData:O},A??"",t);w&&(d(w==null?void 0:w.status),m(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,j,d,m,a]),S=x.useCallback(R=>{const C=new FormData(R.currentTarget.parentElement),{hasEmptyFields:A,hasErrors:O,inputStatusToUpdate:w}=xp({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(m(w),A||O){R.preventDefault();return}d("loading")},[l,f,c,p]),E=x.useCallback(()=>{d("idle"),m(u)},[u]);return n.jsx(Dc.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:m,hasTermsAndConditions:c,handleClickToSubmit:S,checkboxRef:p,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:E}),[h,v,d,f,m,S,c,p,t,r,o,E]),children:e})},Lo=()=>{const e=x.useContext(Dc);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Cp={contexts:{addToCart:{hook:ot,provider:dc},cart:{hook:we,provider:If},cms:{FlagsAndTags:{context:jo,hook:St,provider:Od}},newsletter:{hook:Lo,provider:$c},events:{hook:ge,provider:qd},global:{hook:be,provider:cf,mediator:Va},header:{hook:je,provider:Rf},menuMobile:{hook:Rt,provider:lc},next:{hook:Re,provider:lf},pdp:{provider:kd,hook:Md},PDPContent:{provider:dp,hook:fp},plp:{provider:Xf,hook:Yf},plpFilter:{hook:mt,provider:Oc},PLPContent:{provider:lp,hook:up},plpInfinite:{provider:sp,hook:ip},pdpdata:{hook:Eo,provider:Hd},searchFacets:{hook:zf,provider:Bf},searchProducts:{hook:Hf,provider:qf},searchRoot:{hook:Oo,provider:To},searchSearch:{hook:sr,provider:hc},searchSuggestedTerms:{hook:Vf,provider:Wf},searchTopSearchs:{hook:Kf,provider:Gf},session:{hook:ir,provider:cp},ui:{hook:jt,provider:Wa}},hooks:{useBackPDC:ya,useClipboard:Ud,useDisableZoom:Wd,useLocalStorage:Gd,useOnScreen:wa,useSentinel:Kd,useTouchZoomPan:Xd},stores:{cart:sf,header:ff,pdp:jf,wishlist:wf}},Sp={cart:rf,events:Fd,plp:Jf,product:ie.productHelpers,utils:vp},Do={helpers:Sp},Le={"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,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--name"],t),children:[n.jsx(g.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});Bc.displayName="AddToCart.Card.Name";const zc=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=ie.formatPriceToCurrency(r/100),c=ie.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:g.helpers.classNameConcat(Le["add-to-cart--card--price-quantity"],e),children:n.jsx(g.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};zc.displayName="AddToCart.Card.PriceQuantity";const jp="_skeleton_12b79_1",Ep={skeleton:jp},Fc=({style:e})=>n.jsx("div",{style:e,className:Ep.skeleton}),wp="_image_lypfr_1",Rp={image:wp},Ap=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=Re();return n.jsx(s,{quality:90,...o,alt:e??"",className:g.helpers.classNameConcat(Rp.image,t),"data-object-fit":r??"cover"})},Pp=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:Ap,Video:Pp},qc=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ot(),[c,l]=x.useState(o??"");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 h=p.images.find(d=>i.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card--style-size"],e),children:[n.jsx(g.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(g.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(Fc,{})})}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(g.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(g.ToggleSize.Text,{children:r})]})]})};qc.displayName="AddToCart.Card.StyleSize";const{helpers:Ip}=Do,Hc=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=ot(),{size:d}=Ip.product.getColorAndSizeFromSkuName(a??s,h);return n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--content"],e),children:[n.jsx(Bc,{brand:i.name,name:s}),n.jsx(zc,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(qc,{size:d,texture:r,productGroupID:c})]})};Hc.displayName="AddToCart.Card.Content";const Uc=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Uc.displayName="AddToCart.Card";const Wc=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=ie.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card"],e),children:[n.jsx(Uc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(Hc,{item:t,texture:r})]})};Wc.displayName="AddToCart.Card";const Vc=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--content"],e),children:[n.jsx("div",{className:Le["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(Ze.Footer,{})]});Vc.displayName="AddToCart.Layout.Content";const Gc=({className:e,...t})=>{var f,m;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ot(),{cartStore:{totalizers:i},setIsOpen:a}=we(),c=(f=i.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((m=i.find(_=>_.id==="Items"))==null?void 0:m.value)??0,u=i.find(_=>_.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=ie.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:g.helpers.classNameConcat(Le["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Le["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(g.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(g.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(g.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Gc.displayName="AddToCart.Layout.Footer";const Kc=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=we(),{recentlyAddedProducts:i}=jt(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:Le["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(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(Ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Kc.displayName="AddToCart.Layout.Items";const Xc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ot(),{isMobile:s}=be();return n.jsxs(g.Modal.Root,{"data-modal":"add-to-cart--modal",className:Le["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(g.Modal.Header,{navigation:"top",children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(g.Modal.Body,{children:e})]})};Xc.displayName="AddToCart.Modal";const Np=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ot(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},Yc=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=jt(),{isMobile:i}=be(),a=s.length>3?4:s.length;return n.jsx(dc,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(Np,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(Ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(Ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Yc.displayName="AddToCart.Root";const Qc=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=ot();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Le["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Le["add-to-cart--tooltip"],ref:c,children:e})})};Qc.displayName="AddToCart.Tooltip";const Ze={Card:Wc,Content:Vc,Footer:Gc,Items:Kc,Modal:Xc,Root:Yc,Tooltip:Qc},$o=({title:e,...t})=>{const{recentlyAddedProducts:r}=jt(),{isMobile:o}=be(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(Ze.Root,{isMobile:o,count:r.length,component:n.jsx(Ze.Content,{title:e,children:n.jsx(Ze.Items,{thumbnail:a,children:i&&n.jsx(g.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};$o.displayName="AddToCart";const is={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Tp=({children:e,className:t,adornment:r,iconPosition:o,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=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(g.Card,{...a,shadow:!0,padding:"small",className:g.helpers.classNameConcat(is["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:is["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},Op="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Op,"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"},kp=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ge["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ge["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ge["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:Ge["add-itens-to-cart-total"],children:n.jsx("span",{children:ie.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(g.Button,{onClick:t,className:Ge["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Mp=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),Lp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...p}=s;return{...r,totalPrice:i-u.price,products:p}}const a=ie.getValidOffer(e.offers.offers,o);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}},Zc=x.createContext({}),Dp=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=ge(),h=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{h("add_to_wishlist")},f=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},m=()=>{o&&(p.current={item_list_name:o}),h("select_item")};return n.jsx(Zc.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:m,sendAddToCartEvent:f}),[s,t,c,i]),children:e})},Fe=()=>{const e=x.useContext(Zc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Pe={"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"},Jc=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=Fe();return a?n.jsxs("div",{...i,className:g.helpers.classNameConcat(Pe["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Pe["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};Jc.displayName="ProductCard.Actions";const el=({className:e,isKit:t,...r})=>{const{addToCart:o}=we(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Fe(),p=()=>{var f;if(!i)return;const d=ie.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(f=c==null?void 0:c.image.find(m=>u.TEXTURE_IMAGE.includes(m.alternateName)))==null?void 0:f.url}),l()},h=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(g.Button,{...r,className:g.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":h})};el.displayName="ProductCard.Actions.BuyButton";const tl=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:i}=Fe();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(g.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(g.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&&n.jsx(i,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card"})]})};tl.displayName="ProductCard.Actions.Header";var rl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $p(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?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(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var fo={exports:{}},Oe={};Oe._=Oe._interop_require_default=Bp;function Bp(e){return e&&e.__esModule?e:{default:e}}var Lt={exports:{}},_r={},as;function nl(){return as||(as=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 o(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,p]=l;Array.isArray(p)?p.forEach(h=>c.append(u,o(h))):c.set(u,o(p))}),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(p=>{Array.from(p.keys()).forEach(h=>a.delete(h)),p.forEach((h,d)=>a.append(d,h))}),a}}(_r)),_r}var vr={},Dt={},cs;function cr(){if(cs)return Dt;cs=1;function e(r){if(typeof WeakMap!="function")return null;var o=new WeakMap,s=new WeakMap;return(e=function(i){return i?s:o})(r)}Dt._=Dt._interop_require_wildcard=t;function t(r,o){if(!o&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=e(o);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 Dt}var ls;function ol(){return ls||(ls=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 i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=cr()._(nl()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:p}=l,h=l.protocol||"",d=l.pathname||"",f=l.hash||"",m=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:p&&(_=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(_+=":"+l.port)),m&&typeof m=="object"&&(m=String(o.urlQueryToSearchParams(m)));let y=l.search||m&&"?"+m||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&_!==!1?(_="//"+(_||""),d&&d[0]!=="/"&&(d="/"+d)):_||(_=""),f&&f[0]!=="#"&&(f="#"+f),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+h+_+d+y+f}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)}}(vr)),vr}var br={},us;function zp(){return us||(us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(br)),br}var xr={},ds;function lr(){return ds||(ds=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 o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return f},DecodeError:function(){return m},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(S){let E=!1,R;return function(){for(var C=arguments.length,A=new Array(C),O=0;O<C;O++)A[O]=arguments[O];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 p(S){const E=S.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function h(S,E){if(process.env.NODE_ENV!=="production"){var R;if((R=S.prototype)!=null&&R.getInitialProps){const O='"'+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(O)}}const C=E.res||E.ctx&&E.ctx.res;if(!S.getInitialProps)return E.ctx&&E.Component?{pageProps:await h(E.Component,E.ctx)}:{};const A=await S.getInitialProps(E);if(C&&u(C))return A;if(!A){const O='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(O)}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",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class m extends Error{}class _ extends Error{}class y 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})}}(xr)),xr}var $t={exports:{}},Cr={},fs;function sl(){return fs||(fs=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(/\/$/,"")||"/"}}(Cr)),Cr}var Sr={},ps;function Bo(){return ps||(ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Sr)),Sr}var ms;function ur(){return ms||(ms=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=sl(),o=Bo(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.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)}($t,$t.exports)),$t.exports}var jr={},Bt={exports:{}},Er={},hs;function il(){return hs||(hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(Er)),Er}var gs;function Fp(){return gs||(gs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=il(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Bt,Bt.exports)),Bt.exports}var ys;function al(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=lr(),r=Fp();function o(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}}}(jr)),jr}var wr={},Rr={},_s;function qp(){return _s||(_s=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 p=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},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]+'" ).');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 "'+s[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');p(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(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(Rr)),Rr}var Ar={},vs;function Hp(){return vs||(vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(Ar)),Ar}var bs;function Up(){return bs||(bs=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 o.isDynamicRoute}});const r=qp(),o=Hp()}(wr)),wr}var Pr={},Ir={},xs;function Wp(){return xs||(xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=lr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.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(i).forEach(p=>{const h=i[p],d=c[h.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(f=>l(f)):h.repeat?[l(d)]:l(d))}),u}}}(Ir)),Ir}var Nr={},Tr={},Or={},kr={},Cs;function Vp(){return Cs||(Cs=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}}(kr)),kr}var Mr={},Ss;function Gp(){return Ss||(Ss=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(")")}}(Mr)),Mr}var js;function Kp(){return js||(js=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=Vp(),o=Gp();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,p)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Or)),Or}var Es;function Xp(){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,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Kp(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const p of a.split("/"))if(l=o.find(h=>p.startsWith(h)),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}}}(Tr)),Tr}var Lr={},ws;function Yp(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(Lr)),Lr}var Rs;function Qp(){return Rs||(Rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,y){for(var b in y)Object.defineProperty(_,b,{enumerable:!0,get:y[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return m}});const r=Xp(),o=Yp(),s=sl(),i="nxtP",a="nxtI";function c(_){const y=_.startsWith("[")&&_.endsWith("]");y&&(_=_.slice(1,-1));const b=_.startsWith("...");return b&&(_=_.slice(3)),{key:_,repeat:b,optional:y}}function l(_){const y=(0,s.removeTrailingSlash)(_).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:y.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,o.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,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(_){const{parameterizedRoute:y,groups:b}=l(_);return{re:new RegExp("^"+y+"(?:/)?$"),groups:b}}function p(){let _=0;return()=>{let y="",b=++_;for(;b>0;)y+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return y}}function h(_){let{getSafeRouteKey:y,segment:b,routeKeys:j,keyPrefix:v}=_;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=y()),v?j[C]=""+v+S:j[C]=""+S,R?E?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),j=p(),v={};return{namedParameterizedRoute:b.map(S=>{const E=r.INTERCEPTION_ROUTE_MARKERS.some(C=>S.startsWith(C)),R=S.match(/\[((?:\[.*\])|.+)\]/);return E&&R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?a:void 0}):R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?i:void 0}):"/"+(0,o.escapeStringRegexp)(S)}).join(""),routeKeys:v}}function f(_,y){const b=d(_,y);return{...u(_),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(_,y){const{parameterizedRoute:b}=l(_),{catchAll:j=!0}=y;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let S=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+S+"$"}}}(Nr)),Nr}var As;function Zp(){return As||(As=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Wp(),r=Qp();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,p=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const h=Object.keys(u);return h.every(d=>{let f=p[d]||"";const{repeat:m,optional:_}=u[d];let y="["+(m?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),m&&!Array.isArray(f)&&(f=[f]),(_||d in p)&&(c=c.replace(y,m?f.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:h,result:c}}}(Pr)),Pr}var Ps;function Jp(){return Ps||(Ps=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=nl(),o=ol(),s=zp(),i=lr(),a=ur(),c=al(),l=Up(),u=Zp();function p(h,d,f){let m,_=typeof d=="string"?d:(0,o.formatWithValidation)(d);const y=_.match(/^[a-zA-Z]{1,}:\/\//),b=y?_.slice(y[0].length):_;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+_+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(b);_=(y?y[0]:"")+v}if(!(0,c.isLocalURL)(_))return f?[_]:_;try{m=new URL(_.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const v=new URL(_,m);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let S="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&f){const R=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:A}=(0,u.interpolateAs)(v.pathname,v.pathname,R);C&&(S=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(R,A)}))}const E=v.origin===m.origin?v.href.slice(v.origin.length):v.href;return f?[E,S||E]:E}catch{return 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)}(Lt,Lt.exports)),Lt.exports}var zt={exports:{}},Dr={},$r={},Is;function cl(){return Is||(Is=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}($r)),$r}var Ns;function em(){return Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=cl(),r=il();function o(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)}}(Dr)),Dr}var Ts;function tm(){return Ts||(Ts=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=ur(),o=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)(em().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)}(zt,zt.exports)),zt.exports}var Br={},Os;function ll(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(Br)),Br}var zr={},ks;function rm(){return ks||(ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(zr)),zr}var Ft={exports:{}},qt={exports:{}},Ms;function ul(){return Ms||(Ms=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 o},cancelIdleCallback:function(){return s}});const o=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)}(qt,qt.exports)),qt.exports}var Ls;function nm(){return Ls||(Ls=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=ul(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(p){const h={root:p.root||null,margin:p.rootMargin||""},d=a.find(y=>y.root===h.root&&y.margin===h.margin);let f;if(d&&(f=i.get(d),f))return f;const m=new Map,_=new IntersectionObserver(y=>{y.forEach(b=>{const j=m.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},p);return f={id:h,observer:_,elements:m},a.push(h),i.set(h,f),f}function l(p,h,d){const{id:f,observer:m,elements:_}=c(d);return _.set(p,h),m.observe(p),function(){if(_.delete(p),m.unobserve(p),_.size===0){m.disconnect(),i.delete(f);const b=a.findIndex(j=>j.root===f.root&&j.margin===f.margin);b>-1&&a.splice(b,1)}}}function u(p){let{rootRef:h,rootMargin:d,disabled:f}=p;const m=f||!s,[_,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(S=>{b.current=S},[]);(0,r.useEffect)(()=>{if(s){if(m||_)return;const S=b.current;if(S&&S.tagName)return l(S,R=>R&&y(R),{root:h==null?void 0:h.current,rootMargin:d})}else if(!_){const S=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(S)}},[m,d,h,_,b.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[j,_,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)}(Ft,Ft.exports)),Ft.exports}var Ht={exports:{}},Ut={exports:{}},Fr={},Ds;function om(){return Ds||(Ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Fr)),Fr}var $s;function sm(){return $s||($s=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?om().normalizeLocalePath(o,s):{pathname:o,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)}(Ut,Ut.exports)),Ut.exports}var Wt={exports:{}},qr={},Bs;function im(){return Bs||(Bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,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(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(qr)),qr}var zs;function am(){return zs||(zs=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 o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return im().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)}(Wt,Wt.exports)),Wt.exports}var Fs;function cm(){return Fs||(Fs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=ur(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=sm().normalizeLocalePath,p=am().detectDomainLocale,h=a||u(i,c).detectedLocale,d=p(l,void 0,h);if(d){const f="http"+(d.http?"":"s")+"://",m=h===d.defaultLocale?"":"/"+h;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+m+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)}(Ht,Ht.exports)),Ht.exports}var Vt={exports:{}},qs;function lm(){return qs||(qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=cl(),o=ur(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.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)}(Vt,Vt.exports)),Vt.exports}var Gt={exports:{}},Hs;function um(){return Hs||(Hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var f in d)Object.defineProperty(h,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return o},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 o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(h){h.AUTO="auto",h.FULL="full",h.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)}(Gt,Gt.exports)),Gt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});const o=Oe._(x),s=Jp(),i=al(),a=ol(),c=lr(),l=tm(),u=ll(),p=rm(),h=nm(),d=cm(),f=lm(),m=um(),_=new Set;function y(R,C,A,O,w,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(C))return;if(!O.bypassPrefetchedCheck){const B=typeof O.locale<"u"?O.locale:"locale"in R?R.locale:void 0,T=C+"%"+A+"%"+B;if(_.has(T))return;_.add(T)}const I=N?R.prefetch(C,w):R.prefetch(C,A,O);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,O,w,N,I,B,T,H){const{nodeName:U}=R.currentTarget;if(U.toUpperCase()==="A"&&(b(R)||!T&&!(0,i.isLocalURL)(A)))return;R.preventDefault();const G=()=>{const W=I??!0;"beforePopState"in C?C[w?"replace":"push"](A,O,{shallow:N,locale:B,scroll:W}):C[w?"replace":"push"](O||A,{forceOptimisticNavigation:!H,scroll:W})};T?o.default.startTransition(G):G()}function v(R){return typeof R=="string"?R:(0,a.formatUrl)(R)}const E=o.default.forwardRef(function(C,A){let O;const{href:w,as:N,children:I,prefetch:B=null,passHref:T,replace:H,shallow:U,scroll:q,locale:G,onClick:W,onMouseEnter:z,onTouchStart:Z,legacyBehavior:P=!1,...k}=C;O=I,P&&(typeof O=="string"||typeof O=="number")&&(O=o.default.createElement("a",null,O));const D=o.default.useContext(u.RouterContext),K=o.default.useContext(p.AppRouterContext),re=D??K,J=!D,L=B!==!1,ee=B===null?m.PrefetchKind.AUTO:m.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=o.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(V=>V.startsWith("[")&&V.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}=o.default.useMemo(()=>{if(!D){const V=v(w);return{href:V,as:N?v(N):V}}const[se,ye]=(0,s.resolveHref)(D,w,!0);return{href:se,as:N?(0,s.resolveHref)(D,N):ye||se}},[D,w,N]),$=o.default.useRef(Q),M=o.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'),z&&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=o.default.Children.only(O)}catch{throw O?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=o.default.Children.only(O);else if(process.env.NODE_ENV==="development"&&(O==null?void 0:O.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=P?ne&&typeof ne=="object"&&ne.ref:A,[ue,de,ce]=(0,h.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(se=>{(M.current!==te||$.current!==Q)&&(ce(),M.current=te,$.current=Q),ue(se),ae&&(typeof ae=="function"?ae(se):typeof ae=="object"&&(ae.current=se))},[te,ae,Q,ce,ue]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&re&&(!de||!L||y(re,Q,te,{locale:G},{kind:ee},J))},[te,Q,de,G,L,D==null?void 0:D.locale,re,J,ee]);const _e={ref:F,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,q,G,J,L))},onMouseEnter(se){!P&&typeof z=="function"&&z(se),P&&ne.props&&typeof ne.props.onMouseEnter=="function"&&ne.props.onMouseEnter(se),re&&((!L||process.env.NODE_ENV==="development")&&J||y(re,Q,te,{locale:G,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||y(re,Q,te,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))}};if((0,c.isAbsoluteUrl)(te))_e.href=te;else if(!P||T||ne.type==="a"&&!("href"in ne.props)){const se=typeof G<"u"?G:D==null?void 0:D.locale,ye=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(te,se,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);_e.href=ye||(0,f.addBasePath)((0,l.addLocale)(te,se,D==null?void 0:D.defaultLocale))}return P?o.default.cloneElement(ne,_e):o.default.createElement("a",{...k,..._e},O)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(fo,fo.exports);var dm=fo.exports,fm=dm;const Me=ar(fm),dl=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:h,CONSTANTS:d}=Fe(),f=ie.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:p,onMouseUp:m=>{m.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Pe["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:m,alternateName:_},y)=>x.createElement(ze.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:_??"product image",key:y,...r&&{priority:y===0&&a<4},objectFit:"cover",src:m}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:f[0].url}),t]})};dl.displayName="ProductCard.Media.Media";const fl=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Fe(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--outstock"],e),children:[n.jsx(g.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(g.Button,{className:g.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};fl.displayName="ProductCard.OutStock";const pl=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...h})=>n.jsx(Dp,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:n.jsx("div",{...h,className:g.helpers.classNameConcat(Pe["product-card--wrapper"],t),"data-size":i,children:e})});pl.displayName="ProductCard.Root";const ml=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(g.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(g.ToggleSize.DisabledAdornment,{}),n.jsx(g.ToggleSize.Text,{children:t})]});ml.displayName="ProductCard.SizeSelector.Item";const hl=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Fe();o.productId=i.id;const u=ie.disableSKU(o),p=ie.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const h=x.useCallback(f=>{const m=r===f?null:f;typeof c=="function"&&c(m),typeof t=="function"&&t(m)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}h(o)},[o,s,h,u,i]);return n.jsx(ml,{active:e,disabled:u,label:p,onClick:()=>d(),size:a?"x-small":"small",value:o})};hl.displayName="ProductCard.SizeSelector.SkuItem";const gl=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Fe();return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Pe["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(hl,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Pe["product-card--selectors--size--button"],children:r})]})};gl.displayName="ProductCard.SizeSelector";const po=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(g.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(g.ToggleStyle.DisabledAdornment,{}),n.jsxs(g.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(g.TextStructure.DivWrapper,{className:Pe["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),pm=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=Fe(),{triggerSelectItemEventRef:c}=ge();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(po,{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:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(po,{size:s,total:r.length-o,more:!0})]})},yl=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=Fe(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(pm,{...i,callback:e,className:g.helpers.classNameConcat(Pe["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(po,{active:!0,size:"x-small",src:l.url})})};yl.displayName="ProductCard.StyleSelector";const _l=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Fe();l.current.priceInfo={price:s,listPrice:i};const u=ie.formatPriceToCurrency(i,t),p=ie.formatPriceToCurrency(s,t),h=ie.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:g.helpers.classNameConcat(Pe["product-card--price"],e),"data-mobile":o,children:n.jsx(g.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(g.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(g.ProductInfo.ValuesWrapper,{children:p!==u?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?n.jsx(g.ProductInfo.Price,{label:"installment",value:`${a}x ${h}`,size:"small"}):null]})})})};_l.displayName="ProductCard.Price";const vl=({tag:e,className:t})=>{const{item:{name:r}}=Fe();return n.jsxs("div",{className:g.helpers.classNameConcat(Pe["product-card--title"],t),children:[n.jsx("div",{className:Pe["product-card--title--tag"],children:e?n.jsx(g.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(g.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Pe["product-card--title--content"],children:r&&n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};vl.displayName="ProductCard.Title";const bl=({className:e,url:t,poster:r,...o})=>{const{element:s}=Fe();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(p=>{p.forEach(h=>{ie.setVideoPlay(h.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]),n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};bl.displayName="ProductCard.Media.Video";const xl=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe[`product-card--${r}`],t),children:e});xl.displayName="ProductCard.Wrapper";const ve={Actions:Jc,BuyButton:el,Header:tl,Media:dl,Root:pl,OutStock:fl,Price:_l,SizeSelector:gl,StyleSelector:yl,Title:vl,Video:bl,Wrapper:xl},mm="_carousel_245ib_1",hm="_shelf__container_245ib_14",gm="_shelf_without_carousel_245ib_34",bt={carousel:mm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:hm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:gm},Us=({title:e})=>n.jsx("div",{className:bt.shelf__container,children:e&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-body-md",ie.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-md",ie.responsive["responsive-desktop-flex"]),children:e})]})})}),ym=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=be(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=g.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=x.Children.toArray(e).length;return s||p>=4?n.jsxs(g.Carousel.Root,{innerRef:d=>{a(d)},className:bt.carousel,children:[n.jsxs("div",{className:bt["custom-controllers"],children:[o&&n.jsx(Us,{title:o}),i<p&&n.jsxs(g.Carousel.Controller,{className:bt["controllers-arrows-bullets"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(g.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(g.Carousel.Body,{children:x.Children.map(e,(d,f)=>n.jsx(g.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(Us,{title:o}),n.jsx("div",{className:bt.shelf_without_carousel,children:e})]})},_m={Shelf:ym},vm=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const i=x.useMemo(()=>Mp(r),[r]),{isMobile:a}=be(),{addItemsToCart:c}=we(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=St(),[p,h]=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(_=>{const y=i.find(b=>b.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:m,price:p.totalPrice}}})},f=({selectedProduct:m,productId:_})=>{const y=Lp({selectedProduct:m,productId:_,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});h(y)};return x.useEffect(()=>{if(!t||i.length===0)return;const m=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:m},outsideEcommerceData:{item_list_name:m}}})},[t]),n.jsxs("div",{className:Ge.container,ref:o,children:[n.jsx("div",{className:Ge["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:n.jsx(_m.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:m},_)=>{var j,v,S;const y=u(m.cluster.highlights),{availability:{status:b}}=m;return b?n.jsxs(ve.Root,{item:{...m,image:Do.helpers.product.getFirstImages({images:m.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:_,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:s,children:[n.jsx(ve.Header,{product:m,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(j=y.institucional)==null?void 0:j.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(S=y.institucional)==null?void 0:S.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:E=>f({selectedProduct:E,productId:m.id})})})]})]},m.id):null})})}),n.jsx("div",{className:Ge["add-cart-container"],children:n.jsx(kp,{handleAddAllToCart:d,selectedProducts:p,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"},Fo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=we(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(g.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(g.Badge.AutoPositioner,{children:[n.jsx(g.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(g.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Fo.displayName="Header.Bag";const At=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Cl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ge(),{reset:r,updateValue:o}=Ke(),s=i=>{i?o(i):r()};return n.jsx(g.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(At,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(g.Header.CategoryItem,{className:zo["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(g.Icon,{name:i.iconStart}),end:n.jsx(g.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Cl.displayName="Header.Categories";function bm(){const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je(),{setValue:r}=Io();return n.jsx(g.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(g.Icon,{name:t.header.ICONS.search,size:"medium"})})}const xm={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Cm={"observer-wrapper":"_observer-wrapper_r43gk_1"},dr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=wa(c,s,r),{sendDataLayerEvent:u}=ge();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:g.helpers.classNameConcat(Cm["observer-wrapper"],i),children:e})},qo=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ge(),i=50/e.length;return n.jsx("div",{className:xm["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 n.jsx(dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(ze.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};qo.displayName="Menu.Thumbnail";const mo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Sm="_link_w24h0_1",jm="_wrapper_w24h0_98",Em="_text_w24h0_106",Hr={link:Sm,wrapper:jm,text:Em},Ue=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...p})=>{const h=g.helpers.ValidateProp({fieldTypes:lt.SizesSmallExtended,property:a,fallback:"medium"}),d=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:i,fallback:"default"});return n.jsx(Me,{...p,className:g.helpers.classNameConcat(Hr.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:Hr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:Hr.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},Sl=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=Re(),{reset:i}=Ke(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:mo["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var f,m,_;const h=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.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:n.jsx(g.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{children:[n.jsx(At,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...h,className:mo["submenu-categories"],children:u.items.map((y,b)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ue,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${b}`))}),((_=u.see_all)==null?void 0:_.link)&&n.jsx(g.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.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}-${p}`)}),t&&n.jsx(g.Utils.Divider,{size:"small",direction:"vertical"})]})};Sl.displayName="Menu.Categories";const jl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:mo["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(g.Utils.Divider,{size:"small"})]})};jl.displayName="Menu.MenuRoot";const Ur={Root:jl,Categories:Sl,Thumbnail:qo},El=()=>{const{headerData:e,CONSTANTS:t}=je(),r=or(),{reset:o}=Ke();return n.jsx(g.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,p=a==null?void 0:a.some(h=>!!h.srcDesk);return n.jsxs(Ur.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Ur.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(a)&&n.jsx(Ur.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};El.displayName="Header.SubMenu";const wl=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(g.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(g.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};wl.displayName="Header.WishList";const Rl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ge(),{reset:o}=Ke(),{setValue:s}=wt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[n.jsx(g.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(g.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(Cl,{}),n.jsxs(g.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(bm,{}),n.jsx(g.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:zo["btn-login"],innerRef:t,children:n.jsx(g.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(wl,{}),n.jsx(Fo,{id:"cart-button"})]})]}),n.jsx(El,{})]})};Rl.displayName="Header.HeaderDesktopWrapper";const wm="_divider_1lexj_199",Se={"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:wm,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Al=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...i})=>n.jsx("button",{onClick:o,className:Se["menu-categories-btn"],children:r?n.jsxs(g.Banner.Container,{...i,className:Se["menu-body-banner-container-modifier"],children:[n.jsx(g.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(ze.Image,{src:r,alt:t??r,className:Se["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(g.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:Se["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...i,children:e})});Al.displayName="Menu.MenuCategories";const Pl=({children:e,link:t})=>{const{reset:r}=nt();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Pl.displayName="Menu.MenuCategoriesWrapper";const Il=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=Re(),{reset:o}=nt(),{handleSelectContent:s}=ge(),{CONSTANTS:i}=je(),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:n.jsx(g.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{className:Se["menu-submenu--component-list-modifier"],children:[n.jsx(At,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...a,className:Se["submenu-categories"],children:e.items.map((h,d)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ue,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${h.label}:${t}`})},children:h.label})},`list-item-${h.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&n.jsx(g.ComponentList.Support,{...c,size:"small",onClick:()=>{var h;o(),s({content:`menu:${e.label??""}:${t}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Il.displayName="Menu.SubMenuSubCategory";const Nl=({submenu:e})=>{var i;const t=or(),{handleCloseSubMenu:r}=Rt(),{reset:o}=Ke(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Se["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.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&&n.jsx(g.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:Se["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(qo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>n.jsx(Il,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Nl.displayName="Menu.SubMenuItem";const Tl=()=>{const{headerData:e}=je(),t=or(),{reset:r}=Ke(),{bodyRef:o}=Rt();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Se["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Se["menu-submenu"],children:e.subMenus.map((s,i)=>n.jsx(Nl,{submenu:s},`submenu-${s.id}-${i}`))})})};Tl.displayName="Menu.SubMenu";const Ol=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Ke(),{bodyRef:s}=Rt(),{handleSelectContent:i}=ge();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Se["menu-body"],children:[n.jsx("div",{className:Se["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return n.jsx(Pl,{link:a.submenuId?null:a.link,children:n.jsx(Al,{onClick:()=>{o(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(Tl,{})]})};Ol.displayName="Menu.MenuBody";const kl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Se["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:Se["menu-close"],"data-close":!0})]})};kl.displayName="Menu.MenuHeaderWrapper";const Ml=({navigationLinks:e})=>{const{reset:t}=nt(),{handleSelectContent:r}=ge();return e?n.jsx("nav",{className:Se["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ue,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(g.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(g.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};Ml.displayName="Menu.MenuHeaderNavLinks";const Ll=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Se["menu-header-container"],children:[n.jsx(kl,{title:e.title,subtitle:e.subtitle}),n.jsx(Ml,{navigationLinks:e.navigationLinks})]})};Ll.displayName="Menu.MenuHeaderContainer";const Dl=({children:e})=>{const{documentBodyRef:t}=Rt(),{CONSTANTS:r}=je(),o=Po(),{setValue:s}=nt();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:o,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:Se["modal-modifier"],children:n.jsx("div",{className:Se["menu-mobile"],children:e})})};Dl.displayName="Menu.MenuRoot";const $l=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...t,className:Se["menu-navigationbar-item"],children:e}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",className:Se.divider})]});$l.displayName="Menu.NavigationBarItem";const Bl=()=>{const{setIsOpen:e}=we(),{reset:t}=nt(),{setValue:r}=wt(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),{router:i}=Re();return n.jsx(g.Card,{id:"menu-navigationbar",shadow:!0,className:Se["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:s.header.MENU_INFO.navigation_bar.items.map(a=>n.jsx($l,{size:"small",variant:"tertiary",iconNameStart:a.button_icon,onClick:()=>{a.href&&i.push(a.href),t(),a.openUserMenu&&r(!0),a.openCart&&e(!0),o({content:`menu:${a.eventContent}`})},children:a.button_text}))})};Bl.displayName="Menu.NavigationBar";const Kt={Root:Dl,NavigationBar:Bl,Header:Ll,Body:Ol},zl=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=ge(),{setValue:c}=Io(),{setValue:l}=nt(),{setValue:u}=wt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[i==="left"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})}),n.jsx(g.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(g.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(g.Header.Support,{children:[n.jsx(g.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(g.Icon,{name:s.search,size:"medium"})}),n.jsx(g.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:n.jsx(g.Icon,{name:s.person,size:"medium"})}),n.jsx(Fo,{}),i==="right"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(lc,{children:n.jsxs(Kt.Root,{children:[n.jsx(Kt.Header,{}),n.jsx(Kt.Body,{}),o?n.jsx(Kt.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};zl.displayName="Header.HeaderMobileWrapper";const Rm="_root_wvekm_126",$e={"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:Rm},Fl=({className:e,children:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat($e["user-menu--content"],e),children:t});Fl.displayName="UserMenu.Content";var ql=(e=>(e.Account="account",e))(ql||{});const Hl=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?ie.formatPriceToCurrency(t):void 0,c=r?ie.formatPriceToCurrency(r):void 0,l=s?ie.formatPriceToCurrency(s):void 0;return n.jsx(g.Credits.Account,{...i,className:g.helpers.classNameConcat($e["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:ql.Account})};Hl.displayName="UserMenu.Credits";const Ul=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=be();return n.jsx("div",{...s,className:g.helpers.classNameConcat($e["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:$e["user-menu--login--content"],children:[n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};Ul.displayName="UserMenu.Login";const Wl=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:i}=be(),a=Mf({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:g.helpers.classNameConcat($e["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(Ue,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(g.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ue,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(g.Icon,{name:kf(o)})},children:Of})}):n.jsx(n.Fragment,{})]})};Wl.displayName="UserMenu.Menu";const Vl=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=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",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},Am=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Pm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Am(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},Gl=x.createContext({}),Im=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[p,h]=x.useState({left:0,top:0}),{ref:d}=Vl(()=>{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:f,top:m}=Pm(d.current,i,r??0);h({left:f,top:m}),u(!1)}},[r,o,i,d]),n.jsx(Gl.Provider,{value:x.useMemo(()=>({...a,...p,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,p,d,l,o,s,u,i]),children:e})},Kl=()=>{const e=x.useContext(Gl);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Xl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=Kl();return n.jsxs(g.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:$e["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(g.Modal.Header,{navigation:"top",className:$e["modal-header-modifier"],children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0,className:$e["modal-controls-modifier"]})}),n.jsx(g.Modal.Body,{children:e})]})};Xl.displayName="UserMenu.Modal";const Yl=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(Im,{...s,className:$e.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(Ye.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(Ye.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});Yl.displayName="UserMenu.Root";const Ql=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=Kl();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:g.helpers.classNameConcat($e["user-menu--tooltip"],$e["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:$e["user-menu--tooltip"],children:e})})};Ql.displayName="UserMenu.Tooltip";const Ye={Credits:Hl,Content:Fl,Login:Ul,Menu:Wl,Modal:Xl,Root:Yl,Tooltip:Ql},Ho=()=>{var _,y,b;const e=ir(),{isMobile:t}=be(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:i}=je(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=Ja(),{setValue:p}=wt(),h=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,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 n.jsx(Ye.Root,{component:n.jsxs(Ye.Content,{children:[n.jsx(Ye.Login,{description:Df(d),text:Lf(d,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&n.jsx(g.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:l.login.button_text})}),m+f&&d?n.jsx(Ye.Credits,{credits:m,cashBack:f,link:`${i.secureSubdomain}/account#/meus-creditos`,total:m+f}):n.jsx(n.Fragment,{}),n.jsx(g.Utils.Divider,{}),n.jsx(Ye.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:p,Z_INDEX_WAR:c})};Ho.displayName="UserMenu";const Nm=x.createContext({}),Tm=({children:e})=>{const{sendDataLayerEvent:t}=ge(),{cartStore:r,isOpen:o}=we();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;Qe.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:Fa(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(Nm.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Om="_fadeInOut_ottz1_1",km="_fadeOut_ottz1_1",le={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:Om,fadeOut:km,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},Zl=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=x.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:le["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(g.SnackBar.Structure,{size:"medium",children:[n.jsx(g.SnackBar.Content,{title:t}),n.jsxs(g.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(g.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(g.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};Zl.displayName="MiniCart.Notify.Item";const Jl=({ICONS:e})=>{const t=Ro(),{removeNotification:r}=Ao(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:le["mc--notify"],children:n.jsx("div",{className:le["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(Zl,{item:s,removeNotification:r,ICONS:e},s.id))})})};Jl.displayName="MiniCart.Notifications";const Mm=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=sc(),{toggleProduct:a}=ic(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},eu=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=we(),{bundleItems:c=[],id:l,uniqueId:u,seller:p,offerings:h,quantity:d}=t,f=(m,_,y)=>{a(l,m.title,()=>{typeof y=="function"&&y(),i({id:l,quantity:_,seller:p},{id:l,texture:m.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:le["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(Mm,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{f({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};eu.displayName="MiniCart.Card.Actions";const tu=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=x.useState(!1),{toggleGiftItemCart:c}=we(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){a(!0);const d=e.some(f=>f.id===h.id);c(r,String(h.id),d).then(()=>a(!1))}}},u=t[0],p=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:le["mc--card--actions--gift"],children:n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.check}),checked:!!p,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};tu.displayName="MiniCart.Card.Gift";const ru=({itemOffered:e})=>{const t=ie.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:le["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};ru.displayName="MiniCart.Card.Media";const nu=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(g.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:g.helpers.classNameConcat(le["mc--card--name"],o),children:ie.getProductNameWithoutSku(e??"",t??"")})]});nu.displayName="MiniCart.Card.Name";const ou=({total:e,totalList:t})=>n.jsx(g.ProductInfo.Root,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:le["mc--card--price"],children:n.jsx(g.ProductInfo.Wrapper,{className:le["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:ie.formatPriceToCurrency(t),size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:ie.formatPriceToCurrency(e),size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:ie.formatPriceToCurrency(e),size:"small"})})})})});ou.displayName="MiniCart.ProductPrice";const su=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),i=x.useRef(null),{cartStore:{options:a}}=we(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const p=(h=a==null?void 0:a.find(d=>d.id===c))==null?void 0:h.texture;if(p){s(p);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const f=d.data[0].items.find(m=>m.itemId===e.id);if(f){const m=f.images.find(_=>t.includes(_.imageLabel));if(m!=null&&m.imageUrl){s(m.imageUrl);return}s(f.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return x.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(g.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(g.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(Fc,{})})})})};su.displayName="MiniCart.Card.Style";const iu=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=ie.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(g.Utils.Row,{alignItems:"center",children:[n.jsx(su,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(g.ToggleSize.Wrapper,{size:"small",variation:"fill",className:le["mc-container-actions--toggle-size-modifier"],children:n.jsx(g.ToggleSize.Text,{children:s})})]})};iu.displayName="MiniCart.Card.Sku";const ct={Actions:eu,Gift:tu,Media:ru,Name:nu,Price:ou,Sku:iu},Lm=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},au=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=ge(),u=Lm(r),p=(f,m)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(m==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:m,data:_})};return n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--card"],e?"":le["mc--card--unavailable"]),children:[n.jsx(ct.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:le["mc--card--content-info"],children:[n.jsx(ct.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:le["mc--card--details"],children:[n.jsx("div",{className:le["mc--card--actions"],children:e?n.jsx(ct.Price,{total:u.price,totalList:u.listPrice}):n.jsx(g.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:le["mc--card--actions--secondary"],children:[e&&n.jsx(ct.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ct.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};au.displayName="MiniCart.Card";const cu=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=ir(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--cashback"],le[`mc--cashback--${e}`]),children:[n.jsx(g.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:ie.formatPriceToCurrency(s)})," ",r.title]})]}):null};cu.displayName="MiniCart.Cashback";const lu=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=we(),[l,u]=x.useState(!1),[p,h]=x.useState(!1),d=x.useCallback(()=>{let y="";return e==="coupon"?y=(a==null?void 0:a.coupon)??"":y=String((c==null?void 0:c.value)??""),y.toUpperCase()??""},[a,c,e]),[f,m]=x.useState(!!d()),_=async y=>{h(!0),!!d()&&(e==="coupon"?await s():await i(),m(!1),u(!1)),await o(y,e).then(j=>{if(!j.statusOk&&y||j.code!==200){y?(u(!0),m(!1)):u(!1);return}m(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return n.jsx(ke.Field,{hasError:l,hasSuccess:f,isLoading:p,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};lu.displayName="MiniCart.CouponSeller";const uu=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=Re(),s=()=>{o.push(r.link)};return n.jsxs(g.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:le["mc--body--empty--feedback"],children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${le["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(g.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(g.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};uu.displayName="MiniCart.Feedback";const Dm=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},du=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=x.useState(a);x.useEffect(()=>{t||u(a)},[a,t]);const p=()=>t?n.jsx(g.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(g.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const _=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(_)}},d=()=>{if(s==="seller"){const _=String(a).includes(" - ")?a:l;u(_)}},f=_=>{const y=_.currentTarget.value;if(y===""&&typeof r=="function"||o&&String(a).length>0&&y!==String(a)||t&&y!==String(a)){u(""),r("");return}if(s==="cep"){const j=Dm(y);u(j)}else u(y)},m=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(g.TextField.Input,{adornment:{end:p()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:f,onKeyDown:m})};du.displayName="MiniCart.Field.Input";const fu=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:p}=o,h=()=>a?"error":String(p).length&&i?"success":"none",d=x.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(p!==""||a?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,p,a]),f=h();return n.jsx("div",{ref:s,children:n.jsx(g.TextField.Structure,{className:le["mc--field"],input:n.jsx(du,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(g.Button,{"data-has-success":!i,size:"medium",title:String(p).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(p).length&&i||a?n.jsx(g.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(g.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};fu.displayName="MiniCart.Field";const pu=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=we();return n.jsxs(g.Modal.Body,{className:le["mc--body"],children:[e,n.jsx("div",{className:le["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,p)=>{const h=l.find(d=>{var f;return d.code==="withoutStock"&&((f=d.fields)==null?void 0:f.ean)===u.ean})!==void 0;return n.jsx(ke.Card,{available:!u.availability.includes("outStock")||!h,index:p,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${p}`)}):n.jsx(ke.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};pu.displayName="MiniCart.Body";const mu=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=we();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(g.Modal.Footer,{className:le["mc--footer"],children:[e,n.jsx("div",{className:le["mc--footer--actions"],children:n.jsx(g.Button,{variant:"primary",size:"large","data-close":!0,className:le["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};mu.displayName="MiniCart.Modal.Footer";const hu=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(g.Accordion.Wrapper,{className:le["mc--discount"],children:[n.jsx(g.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(g.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:r.arrow_down,size:"medium"}),className:g.helpers.classNameConcat(le["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(g.Accordion.Body,{className:le["mc--discount--body"],children:e}),n.jsx(g.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});hu.displayName="MiniCart.Discount";const gu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=St(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":ie.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:ie.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:ie.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${ie.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:le["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:le["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:le["mc--footer--total--info--content"],children:[l.message&&n.jsx(g.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(g.ProductInfo.Price,{className:le["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};gu.displayName="MiniCart.Modal.Footer.Resume.Items";const yu=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(gu,{discount:r??0,total:t,shipping:o})};yu.displayName="MiniCart.Modal.Footer.Totals";const _u=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=be(),{cartStore:{items:o}}=we(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(g.Modal.Header,{navigation:"top",className:le["mc--header"],children:n.jsxs(g.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(g.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:le["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(g.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};_u.displayName="MiniCart.Modal.Header";const vu=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=we(),{sendDataLayerEvent:i}=ge(),[a,c]=x.useState(!1),[l,u]=x.useState(!1),p=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!p()),f=()=>{d(!1),c(!1)},m=b=>{var j;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(j=b.logisticsInfo)==null?void 0:j.reduce((v,S)=>{var O;const E=(O=S==null?void 0:S.slas)==null?void 0:O.find(w=>(w==null?void 0:w.id)===(S==null?void 0:S.selectedSla));if(!E)return v;const R=parseInt(String((E==null?void 0:E.shippingEstimate)??"").replace("bd","")),C=Number((((E==null?void 0:E.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=S==null?void 0:S.selectedSla,v.delivery_time=R.toString(),v.shipping=C,v.flag_retirada=(S==null?void 0:S.selectedDeliveryChannel)==="delivery"?"false":"true",v;const A=parseInt(v.delivery_time??"0");return R>A&&(v.delivery_time=R.toString()),v.shipping=(v.shipping??0)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const j=b.replace(/\D/g,"");if(j.length!==8)return!1;try{return!(await Qe.get(`https://viacep.com.br/ws/${j}/json/`)).data.erro}catch{return!1}},y=async b=>{if(u(!0),!!p()||!(b!=null&&b.trim())){await s(),f(),u(!1);return}if(!await _(b)){c(!0),d(!1),u(!1);return}try{const E=await o(b);if(c(!1),E){d(!0);const R=m(E);R&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:R}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(ke.Field,{hasSuccess:h,hasError:a,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:p(),ICONS:e,MINICART_CONFIG:t})};vu.displayName="MiniCart.Shipping";const bu=()=>{var r;const{tags:e}=St(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(g.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(g.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};bu.displayName="MiniCart.TagMessage";const ke={Body:pu,Card:au,Cashback:cu,CouponSeller:lu,Discount:hu,Field:fu,Feedback:uu,Shipping:vu,Footer:mu,Header:_u,TagMessage:bu,Totals:yu},$m=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:p,cartStore:h}=we(),{isMobile:d}=be();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(le["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:p,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(ke.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(ke.TagMessage,{})}),n.jsxs(ke.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(ke.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(ke.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(ke.Totals,{totalizers:h.totalizers})]}),n.jsx(Jl,{ICONS:e})]})},xu=({tipBar:e,minicartStyleModifiers:t,menuV2:r})=>{const{structureRef:o,rootRef:s,CONSTANTS:i}=je(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c},minicart:l}=i;return n.jsx(g.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:zo["header-animation"],children:n.jsxs(g.Header.Root,{innerRef:s,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[r??n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ie.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:n.jsx(zl,{})}),n.jsx("div",{className:ie.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(Rl,{})})]}),n.jsx(Tm,{children:n.jsx($m,{...l,minicartStyleModifiers:t})}),n.jsx($o,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),n.jsx(Ho,{})]})})};xu.displayName="Header";const Bm="_shippingFreight_6z8rf_6",zm="_shippingFreight__postalCodeGrid_6z8rf_10",Fm="_shippingFreight__grid_6z8rf_14",qm="_shippingFreight__grid__title_6z8rf_18",Hm="_shippingFreight__grid__remember_6z8rf_29",Um="_postalCodeContainer_6z8rf_44",Wm="_deliveryStatusBar__tag_6z8rf_49",Vm="_deliveryStatusBarError__tag_6z8rf_66",Gm="_deliveryInfo_6z8rf_74",Km="_deliveryInfo__content_6z8rf_78",Xm="_deliveryInfo__text_6z8rf_84",Ym="_deliveryInfo__title_6z8rf_89",Qm="_deliveryInfo__subtitle_6z8rf_99",Zm="_deliveryInfo__tooltipIcon_6z8rf_109",Jm="_deliveryInfo__tooltip_6z8rf_109",eh="_freightGrid_6z8rf_148",th="_freightContainer_6z8rf_155",rh="_freightOption__content_6z8rf_160",nh="_freightOption__value_6z8rf_166",oh="_freightOption__title_6z8rf_177",sh="_freightOption__title_item_6z8rf_181",ih="_freightOption__paragraph_6z8rf_192",me={shippingFreight:Bm,shippingFreight__postalCodeGrid:zm,shippingFreight__grid:Fm,shippingFreight__grid__title:qm,shippingFreight__grid__remember:Hm,postalCodeContainer:Um,deliveryStatusBar__tag:Wm,deliveryStatusBarError__tag:Vm,deliveryInfo:Gm,deliveryInfo__content:Km,deliveryInfo__text:Xm,deliveryInfo__title:Ym,deliveryInfo__subtitle:Qm,deliveryInfo__tooltipIcon:Zm,deliveryInfo__tooltip:Jm,freightGrid:eh,freightContainer:th,freightOption__content:rh,freightOption__value:nh,freightOption__title:oh,freightOption__title_item:sh,freightOption__paragraph:ih,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ah=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),p=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:me.deliveryInfo,ref:p,children:[n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),n.jsxs("div",{className:me.deliveryInfo__content,children:[n.jsx("div",{className:me.deliveryInfo__icon,children:n.jsx(g.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:me.deliveryInfo__text,children:[n.jsxs("span",{className:me.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:me.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:me.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(g.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:me.deliveryInfo__tooltip,children:i})]})]})]})},ch=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:me.freightOption,children:n.jsxs("div",{className:me.freightOption__content,children:[n.jsx("span",{className:me.freightOption__value,children:e}),n.jsx("span",{className:me.freightOption__title,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:me.footer__item,children:[n.jsx("span",{className:me.freightOption__title_item,children:t}),r&&n.jsx("span",{className:me.freightOption__paragraph,children:r})]})})})]})}),lh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),uh=({children:e})=>n.jsx("div",{className:me.freightGrid,children:e}),dh=({children:e})=>n.jsx("div",{className:me.postalCodeContainer,children:e}),Ws=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?me.deliveryStatusBarError:me.deliveryStatusBar,children:n.jsxs(g.Tag,{title:e,className:o?me.deliveryStatusBarError__tag:me.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),fh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},ph=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},mh=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=be();return n.jsx(n.Fragment,{children:u?n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},hh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,B,T;const p=ut(),h=ut(H=>H.shipping),[d,f]=x.useState(),[m,_]=x.useState(!1),[y,b]=x.useState(!1),[j,v]=x.useState(!1),S=(I=(N=p.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 q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},A=async H=>{const U=H.target.value.replace(/\D/g,"");try{if((await Qe.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.")}},O=async()=>{_(!0);try{const H=await Qe.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:E});e(ph(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),h(E,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await A({target:{value:E}}),m||(O(),a(!0))};return n.jsxs("div",{ref:R,style:{position:"relative"},children:[!o&&j?n.jsx(mh,{component:c,isOpen:j,parent:R.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(g.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(g.TextField.Input,{defaultValue:(T=(B=p.shippingData)==null?void 0:B.address)==null?void 0:T.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:H=>{H.key==="Enter"&&w()},className:me["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(g.Button,{onClick:w,size:r,title:"button",children:m?n.jsx(g.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},gh=({children:e,freightConfig:t})=>n.jsxs("div",{className:me.shippingFreight,children:[n.jsxs("div",{className:me.shippingFreight__grid,children:[n.jsx("span",{className:me.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:me.shippingFreight__grid__remember,children:n.jsx(Ue,{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})})]}),n.jsx("div",{className:me.shippingFreight__postalCodeGrid,children:e})]}),yh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),_h=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,p]=x.useState(""),[h,d]=x.useState([]),[f,m]=x.useState(""),[_,y]=x.useState(!1),b=v=>p(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 n.jsxs(yh,{className:e,children:[n.jsxs(gh,{freightConfig:c.freightConfig,children:[n.jsx(dh,{children:n.jsx(hh,{onUpdateFreightItems:j,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:m,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(Ws,{size:s,message:f,setError:m}):h.length>0&&n.jsx(Ws,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),_&&!f?h.length>0&&n.jsxs(lh,{children:[n.jsx(uh,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(ch,{id:v.id,value:ie.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${fh(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(ah,{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}):n.jsx(n.Fragment,{})]}):null]})},et={"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"},vh=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(g.BreadCrumb.Item,{adornment:{end:r&&n.jsx(g.Icon,{name:s.arrow_right})},children:r?n.jsx(Ue,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),Cu=({ICONS:e,...t})=>{var a;const{state:r}=sr(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:o??o).slice(1).split("/"),i=wc(s);return n.jsx("div",{...t,className:et["pcd-navigation--breadcrumb"],children:n.jsx(g.BreadCrumb.DivWrapper,{children:n.jsx(g.BreadCrumb.List,{children:Array.isArray(i)&&i.map((c,l)=>{var u,p;return x.createElement(vh,{...c,isLast:l!==i.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," "))})})})})};Cu.displayName="PLPNavigation.BreadCrumb";const Su=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:et["pdc-navigation--content"],children:[n.jsx(ft.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Su.displayName="PLPNavigation.Content";const bh="_sort_35wro_1",fr={sort:bh,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},xh=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(g.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:fr["sort-button"],children:e}),Ch=e=>n.jsx(g.RadioButton.Radio,{...e}),Sh=({children:e,className:t,name:r,...o})=>n.jsx(g.RadioButton.Group,{...o,name:r||"sort-group",className:g.helpers.classNameConcat(fr["sort-list"],t),children:e}),jh=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(g.Card,{...i,shadow:r,className:g.helpers.classNameConcat(fr["sort-list-wrapper"],t),padding:o,height:s,children:e}),ju=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:g.helpers.classNameConcat(fr.sort,t),children:e}));ju.displayName="SortRoot";const Uo=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS:s,...i})=>{var d;const a=(d=o==null?void 0:o.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}=Vl(()=>r(!1)),h=f=>{const m=f.target.value;l(m),typeof e=="function"&&e(m),u({functionKey:"filterEvent",data:{customData:{ordering:gt.options[m]}}}),r(!1)};return n.jsxs(ju,{...i,ref:p,children:[n.jsx(xh,{btnAdornment:{listOpen:n.jsx(g.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(g.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?gt.options[c]:gt.placeholder},"sort-button"),t&&n.jsx(jh,{children:n.jsx(Sh,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(gt.options).map(f=>n.jsx(Ch,{label:gt.options[f],value:f},f))})})]})};Uo.displayName="Sort";const Eu=x.createContext({}),Eh=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(Eu.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},wh=()=>{const e=x.useContext(Eu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},wu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:i,setOpenOrderBy:a}=wh();return n.jsxs("div",{className:et["pdc-navigation--filters"],children:[n.jsx(ft.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:et["pdc-navigation--filters--content"],children:[n.jsx(Uo,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:a,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:e.arrow_down})},onClick:()=>i(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(ft.Total,{})]})]})};wu.displayName="PLPNavigation.Filters";const Ru=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:i,searchParams:a,...c})=>{const l=x.useRef(null);return n.jsx(Eh,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:et["pdc-navigation"],ref:l,style:{...o},children:n.jsx(ft.Content,{ICONS:i,PDC_NAVIGATION:s,searchParams:a,children:e})})})};Ru.displayName="Root";const Au=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:et["pdc-navigation--selected"],children:n.jsx("div",{className:et["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(ft.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});Au.displayName="PLPNavigation.Selected";const Wo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Vo=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Pu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Iu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},ho=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=ie.formatPriceToCurrency(Number(r));return`${ie.formatPriceToCurrency(Number(t))} até ${o}`},Rh=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},Nu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Wo,createTagPrice:ho,getAbsoluteMinMax:Rh,getColor:Vo,getName:Pu,getOrder:Iu},Symbol.toStringTag,{value:"Module"})),Be={"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"},Tu=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=mt();return n.jsxs("div",{...r,className:Be["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(He.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(He.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Tu.displayName="Filter.Item.Content";const Ou=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Be["filter--empty"],children:[n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(g.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Ou.displayName="Filter.Empty";const ku=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=Iu({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(He.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(He.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(He.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(He.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Be["filter--item"],style:{order:i},children:n.jsxs(g.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(g.Accordion.Header,{id:t.key,closeIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Pu({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(g.Accordion.Body,{children:a()})]})})};ku.displayName="Filter.Item";const Go={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},Mu=({children:e,...t})=>n.jsx("div",{...t,className:Go["product-variation-list--list"],children:e});Mu.displayName="ProductVariationList.List";const Lu=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=Re();return r==="size"?n.jsxs(g.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(g.ToggleSize.Text,{children:o})]}):n.jsxs(g.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(g.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(g.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};Lu.displayName="ProductVariationList.Option";const Du=({children:e,...t})=>n.jsx("div",{className:Go["product-variation-list"],...t,children:e});Du.displayName="ProductVariationList.Root";const $u=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:Go["product-variation-list--title"],children:[t?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});$u.displayName="ProductVariationList.Title";const Je={List:Mu,Option:Lu,Title:$u,Root:Du},Bu=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Je.Root,{...s,children:n.jsx(Je.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,"data-color":Wo({key:i,PLP_FILTERS:r}),fill:Vo({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});Bu.displayName="Filter.Item.Color";const zu=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=mt(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:p.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:Be["filter--item--price"],children:n.jsxs(g.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:h=>{var d,f;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(f=h.range)==null?void 0:f.max}`})},children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};zu.displayName="Filter.Item.Price";const Fu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Je.Root,{...o,children:n.jsx(Je.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};Fu.displayName="Filter.Item.Sizes";const qu=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:Be["filter--item--toggle"],children:n.jsx("div",{className:Be["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(g.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(g.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});qu.displayName="Filter.Item.Toggle";const Hu=({...e})=>{const{isLoading:t}=mt();return n.jsx("div",{className:Be["filter--loading"],"data-active":t,...e,children:n.jsx(g.Spinner,{indicatorColor:"#000",background:"#222"})})};Hu.displayName="Filter.Loading";const Uu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var p;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=mt();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(Be["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(g.Modal.Header,{navigation:"top",children:[n.jsx(g.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(g.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(g.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(g.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Be["filter--modal--body"],children:e}),n.jsx(He.Loading,{})]}),n.jsx(g.Modal.Footer,{children:n.jsxs("div",{className:Be["filter--modal--footer"],children:[n.jsx(g.Button,{"data-close":!0,size:"large",variant:"primary",children:(p=a.facets)!=null&&p.length?"ver resultados":"fechar"}),n.jsx(g.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};Uu.displayName="Filter.Modal";const Wu=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Oc,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(He.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});Wu.displayName="Filter.Root";const Vu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=mt();return n.jsx("div",{className:Be["filter--selected"],children:n.jsx("div",{className:Be["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(g.Tag,{title:i==="price"?ho({value:a}):a,adornment:{end:n.jsx(g.Icon,{name:e.close,size:"x-small"})},colorSquare:Vo({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:Wo({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?ho({value:a}):a},a))})})};Vu.displayName="Filter.Selected";const He={Colors:Bu,Content:Tu,Empty:Ou,Modal:Uu,Item:ku,Root:Wu,Loading:Hu,Selected:Vu,Price:zu,Sizes:Fu,Toggle:qu},{checkedColor:Ah,createTagPrice:Vs,getColor:Ph}=Nu,Gu=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(g.Tag,{title:(t==null?void 0:t.key)==="price"?Vs({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(g.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:Ph({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:Ah({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()});Gu.displayName="PLPNavigation.Selected.Item";const Ku=()=>n.jsx(g.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});Ku.displayName="PLPNavigation.Total";const ft={BreadCrumb:Cu,Content:Su,Filters:wu,Root:Ru,Selected:Au,SelectedItem:Gu,Total:Ku},Ko={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Xu=({className:e,children:t,columns:r=1,isMobile:o=!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":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:g.helpers.classNameConcat(Ko["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};Xu.displayName="ProductList.Banner";const Yu=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=Re(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),p=m=>i.push(m??""),h=async m=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:m,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!_.ok)throw new Error("Erro ao buscar similares.");const y=await _.json();u(y)}catch(_){console.error(_)}},d=x.useCallback(m=>{!r||!m||(typeof h=="function"&&h(r),a.current=!0)},[r]),f=x.useCallback((m,_)=>{if(!m.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(m.intersectionRatio>=_.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 m={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,m)},m);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(ve.Actions,{...l,callback:p,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};Yu.displayName="ProductList.Card.Actions";const Qu=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:h,WishListToggle:d,...f})=>{const m=x.useRef(null),{availability:{status:_}}=o,y=x.useCallback((j,v)=>{var S;typeof u=="function"&&u((S=j.isVariantOf)==null?void 0:S.hasVariant,v)},[u]),b=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:g.helpers.classNameConcat(Ko["product-list--card"],e),"data-mobile":s,"data-order":i,ref:m,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!_,CONSTANTS:h,WishListToggle:d,children:[n.jsx(ve.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(ve.Media,{showVideo:p,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:a==null?void 0:a.institucional}),n.jsx(Yu,{productId:o.isVariantOf.productGroupID,parent:m,setNotify:y,isKit:b,CONSTANTS:h}),!b&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:_&&n.jsx(ve.BuyButton,{isKit:b})})]}),t]})};Qu.displayName="ProductList.Card";const Zu=({children:e,className:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(Ko["product-list"],t),children:e});Zu.displayName="ProductList.Grid";const Ih={Banner:Xu,Card:Qu,Root:Zu,helpers:op},Nh="_footer__bottom_1o9af_2",Th="_footer__wrapper_1o9af_10",Oh="_footer__main_1o9af_39",kh="_footer__legalInformation_1o9af_55",Mh="_footer__column_1o9af_77",Lh="_footer__columnContent_1o9af_87",Dh="_footer__item_1o9af_91",$h="_footer__itemLink_1o9af_107",Bh="_footer__columnTitle_1o9af_122",zh="_footer__columnTitleIcon_1o9af_134",Fh="_footer__iconList_1o9af_147",qh="_footer__itemSmallText_1o9af_157",Hh="_payment_1o9af_168",Uh="_footer__iconContainer_1o9af_173",Wh="_footer__iconListSubHeader_1o9af_178",Vh="_accordionWrapper_1o9af_200",Gh="_accordionHeader_1o9af_204",Kh="_accordionTextWrapper_1o9af_208",he={footer__bottom:Nh,footer__wrapper:Th,footer__main:Oh,footer__legalInformation:kh,footer__column:Mh,footer__columnContent:Lh,footer__item:Dh,footer__itemLink:$h,footer__columnTitle:Bh,footer__columnTitleIcon:zh,footer__iconList:Fh,footer__itemSmallText:qh,payment:Hh,footer__iconContainer:Uh,footer__iconListSubHeader:Wh,accordionWrapper:Vh,accordionHeader:Gh,accordionTextWrapper:Kh,"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 Ju={},Xo={},Pt={};(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=o=>{r.has(o)||console.warn(o),r.add(o)}}})(Pt);var ed={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,p=i?i*40:o,h=a?a*40:s,d=p&&h?"viewBox='0 0 "+p+" "+h+"'":"",f=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='"+f+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(ed);var pr={};(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 o}});const r=["default","imgix","cloudinary","akamai","custom"],o={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}})(pr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=Pt,r=ed,o=pr,s=["lazy","eager",void 0];function i(m){return m.default!==void 0}function a(m){return m.src!==void 0}function c(m){return typeof m=="object"&&(i(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 h(m,_,y){let{deviceSizes:b,allSizes:j}=m;if(y){const S=/(^|\s)(1?\d?\d)vw/g,E=[];for(let R;R=S.exec(y);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 _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(S=>j.find(E=>E>=S)||j[j.length-1]))],kind:"x"}}function d(m){let{config:_,src:y,unoptimized:b,width:j,quality:v,sizes:S,loader:E}=m;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:R,kind:C}=h(_,j,S),A=R.length-1;return{sizes:!S&&C==="w"?"100vw":S,srcSet:R.map((O,w)=>E({config:_,src:y,quality:v,width:O})+" "+(C==="w"?O:w+1)+C).join(", "),src:E({config:_,src:y,quality:v,width:R[A]})}}function f(m,_){let{src:y,sizes:b,unoptimized:j=!1,priority:v=!1,loading:S,className:E,quality:R,width:C,height:A,fill:O=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:B="empty",blurDataURL:T,fetchPriority:H,layout:U,objectFit:q,objectPosition:G,lazyBoundary:W,lazyRoot:z,...Z}=m;const{imgConf:P,showAltText:k,blurComplete:D,defaultLoader:K}=_;let re,J=P||o.imageConfigDefault;if("allSizes"in J)re=J;else{const V=[...J.deviceSizes,...J.imageSizes].sort((Ae,Y)=>Ae-Y),fe=J.deviceSizes.sort((Ae,Y)=>Ae-Y);re={...J,allSizes:V,deviceSizes:fe}}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 "'+y+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const V=L;L=fe=>{const{config:Ae,...Y}=fe;return V(Y)}}if(U){U==="fill"&&(O=!0);const V={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},fe={responsive:"100vw",fill:"100vw"},Ae=V[U];Ae&&(w={...w,...Ae});const Y=fe[U];Y&&!b&&(b=Y)}let Q="",te=p(C),$=p(A),M,ne;if(c(y)){const V=i(y)?y.default:y;if(!V.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(V));if(!V.height||!V.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(V));if(M=V.blurWidth,ne=V.blurHeight,T=T||V.blurDataURL,Q=V.src,!O){if(!te&&!$)te=V.width,$=V.height;else if(te&&!$){const fe=te/V.width;$=Math.round(V.height*fe)}else if(!te&&$){const fe=$/V.height;te=Math.round(V.width*fe)}}}y=typeof y=="string"?y:Q;let ae=!v&&(S==="lazy"||typeof S>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(j=!0,ae=!1),re.unoptimized&&(j=!0),ee&&y.endsWith(".svg")&&!re.dangerouslyAllowSVG&&(j=!0),v&&(H="high");const ue=p(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(!y)j=!0;else if(O){if(C)throw new Error('Image with src "'+y+'" has both "width" and "fill" properties. Only one should be used.');if(A)throw new Error('Image with src "'+y+'" 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 "'+y+'" 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 "'+y+'" 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 "'+y+'" 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 "'+y+'" is missing required "width" property.');if(isNaN(te))throw new Error('Image with src "'+y+'" has invalid "width" property. Expected a numeric value in pixels but received "'+C+'".');if(typeof $>"u")throw new Error('Image with src "'+y+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+y+'" has invalid "height" property. Expected a numeric value in pixels but received "'+A+'".')}if(!s.includes(S))throw new Error('Image with src "'+y+'" has invalid "loading" property. Provided "'+S+'" should be one of '+s.map(String).join(",")+".");if(v&&S==="lazy")throw new Error('Image with src "'+y+`" 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 "'+y+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&te&&$&&te*$<1600&&(0,t.warnOnce)('Image with src "'+y+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!T){const V=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
1
+ "use strict";var hf=Object.defineProperty;var gf=(e,t,r)=>t in e?hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>gf(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),b=require("react"),U=require("./index-DJeLEsRl.js"),lt=require("idb-keyval"),st=require("zustand"),mo=require("js-cookie"),m=require("@soma-vertical-web/core-components"),rt=require("axios"),yf=require("jose"),pt=require("@soma-vertical-web/foundations"),Na=require("react-dom"),We=require("draft-js"),hs=require("@date-fns/tz"),Oo=b.createContext({}),_f=({data:e,children:t})=>n.jsx(Oo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Et=()=>{const{tags:e}=b.useContext(Oo),t=b.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(p=>{var g;return(g=r??[])==null?void 0:g.find(d=>d.id===p.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var g;return(g=r??[])==null?void 0:g.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},Ta=({gridScrollBack:e})=>{b.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ka=b.createContext({}),vf=({children:e,gridScrollBack:t})=>{const r=b.useRef(null);return Ta({gridScrollBack:t}),n.jsx(ka.Provider,{value:{sizesContainerRef:r},children:e})},Oa=()=>{const e=b.useContext(ka);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ye=({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})},Se={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:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=o,g={...r==="view_item"?{currency:Se.configs.currency,value:p,grade_disponivel:l??(u?Ma(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Se.configs.currency}:{}},d=qt({data:o,customData:{...s,...a,...i},configs:Se.configs});Ye({event:r,data:{...c,ecommerce:{...a,...g,items:[d]}}}),typeof t=="function"&&t(d,g)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>qt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Se.configs}));Ye({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(g=>{var _,y,x,S,v,j,w,R,C;const d=s==null?void 0:s.find(E=>(g.productId??g.id)===E.productId);let f={...a,...c};if(d){const E=Da(),k=$a(E,d);k&&(f={...f,...k}),t==="add_to_cart"&&(a||c)&&ho({persistedData:E,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&ho({persistedData:E,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=g.price??((x=(y=(_=d==null?void 0:d.offers)==null?void 0:_.offers)==null?void 0:y[0])==null?void 0:x.price)??0;const h=(d==null?void 0:d.size)??U.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((S=g.itemOffered)==null?void 0:S.skuName),Se.configs.NAME_SPLIT_SYMBOL).size;return qt({data:g,customData:{...o,...f??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=g.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??g.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(R=(w=(j=d==null?void 0:d.offers)==null?void 0:j.offers)==null?void 0:w[0])==null?void 0:R.seller)==null?void 0:C.identifier)??g.seller},configs:Se.configs})});Ye({event:t,data:{...l,ecommerce:{value:i??u,currency:Se.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=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 g;const u=((g=Se.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:g.eventLabel)??c,p=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...p,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),Ye({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var p,g,d,f,h,_,y,x,S,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(j=>{const{promotionInfo:w,itemList:R}=i[j.id]??{};return qt({data:{...j,price:j.price/100,listPrice:j.listPrice/100},customData:{...w,...R,item_sku:j.id??j.itemOffered.sku,quantity:j.quantity??1},configs:Se.configs})}),c=(((p=o.totalizers.find(j=>j.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((g=o.totalizers.find(j=>j.name==="Total dos Descontos"))==null?void 0:g.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Se.configs.VENDOR_CODE?(f=o.marketingData)==null?void 0:f.utmCampaign:(_=String((h=o.openTextField)==null?void 0:h.value))==null?void 0:_.split(" - ")[0];Ye({event:"view_cart",data:{...r,ecommerce:{currency:Se.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((x=(y=o.shippingData)==null?void 0:y.address)!=null&&x.postalCode),...u?{seller_coupon_name:u}:{},...((S=o.marketingData)==null?void 0:S.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ye({event:t,data:{...r}})}},Ma=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),xf=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Se.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},qt=({data:e,customData:t,configs:r})=>({...bf(e,r==null?void 0:r.MAIN_IMAGE),...jf(e),...Cf(e),...Sf(e),...t}),La=()=>{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("_"))??[]:[]},Da=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},$a=(e,t)=>e==null?void 0:e[t],ho=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},bf=(e,t="1")=>{var i,a,c,l,u,p,g,d,f,h,_;const r=e.productReference??e.gtin??e.productRefId,o=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=o==null?void 0:o.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((g=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:g.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??U.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Se.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((_=e.itemOffered)==null?void 0:_.brand.name),item_url:`${Se.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},gs=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,jf=e=>{var u,p;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=gs(o),a=gs(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Se.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]}}},Cf=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:o}=U.getColorAndSizeFromSkuName(t,Se.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Sf=e=>{var l,u;const{price:t,listPrice:r,installments:o}=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},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Se.configs.currency}},za=()=>{const[e,t]=La(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},wf=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Se,findDataInPersistedData:$a,getAvailablesSizes:Ma,getCategories:xf,getPageCategoryAndDepartmentFromSlug:za,getPersistedData:Da,getProductListInfoFromHead:La,pushDatalayer:Ye,updatePersistedData:ho},Symbol.toStringTag,{value:"Module"})),Ba=b.createContext({}),Pf=({children:e,evtFunctionsConfigs:t})=>{const r=b.useRef({}),o=b.useRef(null),s=b.useRef(null),i=b.useRef({}),a=b.useRef({trigger:!1,index:0}),c=({functionKey:p,data:g,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Se.configs=t;try{typeof Se[p]=="function"&&setTimeout(()=>{var h;g.promotionInfo=r.current,(h=s.current)!=null&&h.item_list_name&&(g.itemList=s.current),Se[p](g,d)},f)}catch(h){Ye({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:g,index:d})=>{p&&(r.current={...g}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...g,...d!==void 0&&{index:d}}}}})};return n.jsx(Ba.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ue=()=>b.useContext(Ba),Fa=b.createContext({}),Rf=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var T,H;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ue(),{productId:l,productName:u,items:p,items:[{images:g,Videos:d}],description:f,["Composição"]:h="",productReference:_,categories:[y]}=t,{getAvailableProductTag:x}=Et(),S=x(Object.entries(t.clusterHighlights).map(W=>({id:W[0],name:W[1]}))),v=y.slice(1,-1).split("/"),{installments:j,price:w,listPrice:R,sizes:C,allSizesAvailable:E}=U.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),k=U.getThumbImage({images:g,TEXTURE_IMAGE:i}),P=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:h}],N=((H=U.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:w,listPrice:R,installments:j},customData:{installments:j==null?void 0:j.count,installment_value:Number(j==null?void 0:j.value).toFixed(2)}}),z=({sku:W,size:q})=>{const{commonData:K,customData:V}=I();a({functionKey:"productEvents",data:{event:"view_item",commonData:K,customData:{...V,...W&&{item_sku:W},...q&&{item_variant2:q}}}})};return b.useEffect(()=>{if(c.current.trigger){const{commonData:W,customData:q}=I();a({functionKey:"productEvents",data:{event:"select_item",commonData:W,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}z({})},[]),n.jsx(Fa.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:S,items:p,sizes:C,allSizesAvailable:E,installments:j,price:w,listPrice:R,thumbImage:k,images:g,video:d[0],descriptionContent:P,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:z},children:e})},De=()=>{const e=b.useContext(Fa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Ef=()=>{const[e,t]=b.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},qa=()=>{b.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)}},[])},Af=typeof window>"u",If=(e,t)=>{const[r,o]=b.useState(()=>{if(Af)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return b.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function Mo(e,t,r){const[o,s]=b.useState(!1),{threshold:i}=r||{};return b.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]),o}const Nf=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=b.useRef(null);return b.useEffect(()=>{const s=o.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:o}},Ha=({defaultScale:e=1,maxScale:t=3})=>{const r=b.useRef(null),o=b.useRef(null),[s,i]=b.useState(e),a=b.useRef(0),c=b.useRef({x:0,y:0}),l=b.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const f=r.current.getBoundingClientRect(),h=o.current.children[0].getBoundingClientRect(),_=h.width,y=h.height,x=Math.min(0,(f.width-_)/2),S=Math.max(0,(_-f.width)/2),v=Math.min(0,(f.height-y)/2),j=Math.max(0,(y-f.height)/2);return{minX:x,maxX:S,minY:v,maxY:j}},p=(f,h,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${h}px)) scale(${_})`})}},g=b.useCallback(f=>{const{minX:h,maxX:_,minY:y,maxY:x}=u(),{x:S,y:v}=l.current,j=Math.max(h,Math.min(_,S)),w=Math.max(y,Math.min(x,v));if(f.touches.length>1){const R=f.touches[0],C=f.touches[1],E=R.pageX-C.pageX,k=R.pageY-C.pageY;a.current=Math.sqrt(E*E+k*k),c.current={x:(R.pageX+C.pageX)/2,y:(R.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-j,y:f.touches[0].pageY-w})},[s,l]),d=b.useCallback(f=>{if(!o.current||!r.current)return;const{minX:h,maxX:_,minY:y,maxY:x}=u();if(f.touches.length>1){f.preventDefault();const S=f.touches[0],v=f.touches[1],j=S.pageX-v.pageX,w=S.pageY-v.pageY,R=Math.sqrt(j*j+w*w);if(!a.current){a.current=R;return}const C=R/a.current,E=Math.max(1,Math.min(t,s*C));if(s===E)return;i(E);const k=(S.pageX+v.pageX)/2,P=(S.pageY+v.pageY)/2;let N=k-c.current.x,I=P-c.current.y;N=Math.max(h,Math.min(_,N)),I=Math.max(y,Math.min(x,I)),l.current={x:N,y:I},a.current=R,p(N,I,E)}else if(f.touches.length===1){const S=f.touches[0].pageX,v=f.touches[0].pageY;let j=S-c.current.x,w=v-c.current.y;j=Math.max(h,Math.min(_,j)),w=Math.max(y,Math.min(x,w)),l.current={x:j,y:w},p(j,w,s)}},[t,s]);return b.useEffect(()=>(document.addEventListener("touchstart",g),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",g),document.removeEventListener("touchmove",d)}),[d,g]),{containerRef:r,imgRef:o,scale:s}},Tf={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Be=Promise.resolve(!1),go={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Be,addItem:()=>Be,addSellerCode:()=>Be,addMarketingData:()=>Be,emptyCart:()=>{},removeItem:()=>Be,setIsOpen:()=>{},shipping:()=>Be,shippingUpdate:()=>Be,toggleServiceToProduct:()=>Be,updateItemQuantity:()=>Be,insertProfileEmail:()=>Be,setRecentlyAddedProducts:()=>{}},Lo=e=>e===0,Ua=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},Wa=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:g,quantity:d,price:f,priceDefinition:h,productCategories:_,productCategoryIds:y,productId:x,refId:S,seller:v,referenceId:j,offerings:w,productRefId:R,skuName:C,sellingPrice:E}=e;return{availability:r,bundleItems:s,referenceId:j,productRefId:R,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:o},categories:Ua(y,_),categoriesIds:y,gtin:S,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:x},sku:i,slug:c,skuName:C},listPrice:g,quantity:d,offerings:w,price:f,priceDefinition:h,sellingPrice:E,seller:v}},Va=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Ga=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=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:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Ka=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),yo=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),kf=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Of=e=>{const t=e.reduce((s,i)=>{const a=Lo(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},Mf=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Lo(r==null?void 0:r.price)?0:r.quantity),0):0,Xa=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(g=>Wa(g,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Qa=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Lf=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},dt=(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},Df=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ya=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Za=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ja=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ec=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},tc=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],rc=async(e,t)=>e.then(r=>[...r??[],...t??[]]),ke=async(e,t,r,o)=>{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:Xa(c,o)})},nc=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),oc=e=>[...Array.isArray(e)?e:[e],"faststore"],sc=e=>{const t=e.get("utm_source")||et("utm_source"),r=e.get("utm_campaign")||et("utm_campaign"),o=e.get("utm_medium")||et("utm_medium"),s=e.get("utmi_cp")||et("utmi_cp"),i=e.get("utmi_pc")||et("utmi_pc"),a=e.get("utmi_p")||et("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},et=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},$f=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Tf,addItemOrder:Va,addNotification:nc,createItemOrder:Wa,fetchCartAPI:ke,findItemIndex:yo,findOptions:tc,findTotalizerValue:kf,getCategories:Ua,getCode:dt,getQuantity:ec,getRemoveId:Ya,getSize:Lf,getTotalItems:Mf,getTotalizer:Of,getUrlParameter:et,getValue:Za,initialState:go,isGift:Lo,marketingTagsBuilder:oc,mergeOptionsPromise:rc,mountMarketingData:sc,orderFormValues:Xa,promiseDefault:Be,removeQuantity:Ga,updateItemSellerExternal:Qa,updateOrderFormPromise:Ja,updateQuantity:Ka,wishlistArray:Df},Symbol.toStringTag,{value:"Module"})),zf=()=>{const e=async(f,h)=>ke("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:h}}),t=async(f,h)=>{if(h){const _=h.includes(" - ")?h.split(" - ")[0]:h,y=await ke("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:_}},!0);return y instanceof Object&&"nome"in y&&(y==null?void 0:y.status)===!0?ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(S=>({...S,openTextField:{...(S==null?void 0:S.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return ke("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,h)=>ke("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:h}}),o=async(f,h,_)=>ke("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Va(h,_)}}),s=async(f,h,_,y=!1)=>ke("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:_,orderFormId:f,remove:y}}),i=async f=>ke("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),a=async(f,h="low")=>ke("/api/checkout/order-form",{priority:h,body:{orderFormId:f??""}}),c=async(f,h)=>ke("/api/checkout/order-form/profile",{body:{orderFormId:f,email:h}}),l=async(f,h,_)=>{const y=Ga(h,_);return ke("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,h,_)=>ke("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:h}}),p=async(f,h,_)=>ke("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:h,selectedAddresses:_}}),g=async(f,h,_,y)=>{const x=Ka(h,_,y);return ke("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:x}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(f,h,_,y,x)=>g(f,h,_,y).then(S=>S&&Array.isArray(S.items)?Qa(S.items,_)?g(f,h,_,x):S:!1)}},_o="soma::cart",jt="soma::options",mt=st.create((e,t)=>{const r=zf(),o=async(s,i,a)=>{e({loading:!0});const c=await Ja(s);if(typeof c!="boolean"){e({...c});const l=await rc(lt.get(jt),a);return lt.set(jt,l),Za(c,i).finally(()=>e({loading:!1,options:l}))}return Be};if(typeof window<"u"){const s=async i=>{if(i){const a=await lt.get(jt).then(u=>tc(u,i.items));lt.set(_o,i),lt.set(jt,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return lt.get(_o).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...go,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return Ya(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var p;return r.updateItemQuantity(l,u,i,a,((p=u.find(g=>g.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return go}),Bf=()=>mt(e=>e),ic=st.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>nc(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),Do=()=>ic(e=>e.notifications),$o=()=>ic(e=>e.actions),Ff=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:jt,KEY_INDEXED_STORE:_o,useCartStore:mt,useGetCartStoreState:Bf,useGetNotificationActions:$o,useGetNotificationsStore:Do},Symbol.toStringTag,{value:"Module"})),qf=6e3,ac=b.createContext({}),cc=({children:e,...t})=>{const{items:r}=mt(),[o,s]=b.useState([]),i=b.useRef(null),a=b.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return b.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},qf))},[o]),n.jsx(ac.Provider,{value:b.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},At=()=>{const e=b.useContext(ac);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class lc{constructor(){wr(this,"events",{});wr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const uc=b.createContext({}),Hf=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=b.useState(!0),[a,c]=b.useState(!1),l=r==="/",u=b.useRef(new lc),p=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},g=p(l),d=b.useRef(g);return b.useEffect(()=>{var _;const f=((_=new URLSearchParams(window.location.search))==null?void 0:_.toString())??"";(f.includes("utm_")||f.includes("gclid"))&&(mo.get("lastMedias")||mo.set("lastMedias",`${f}`,{expires:1/24}));const h=()=>{const y=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,x=window.innerWidth<1024||!!y.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);a||c(!0),s!==x&&(i(x),c(!0))};return a||h(),window.addEventListener("resize",h,{passive:!0}),()=>window.removeEventListener("resize",h)},[s,a]),b.useEffect(()=>{const f=p(l);u.current.publish("header:change_variant",f.headerVariant),u.current.publish("header:change_position",f.position),d.current=f},[l]),n.jsx(uc.Provider,{value:{isMobile:s,mediatorRef:u,currentHeaderConfigsRef:d,deviceValidated:a,...o},children:n.jsx(cc,{children:e})})},ge=()=>b.useContext(uc),dc=b.createContext({}),Uf=({children:e,...t})=>n.jsx(dc.Provider,{value:{...t},children:e}),be=()=>b.useContext(dc),it=(e,t)=>st.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),Rt={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},It=new Set,Wf=()=>{It.forEach(e=>{e()})},fc=st.create((e,t)=>{const r=()=>e({value:Rt.category});return It.add(r),{value:Rt.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),fr=()=>fc(e=>e.value),Je=()=>fc(e=>e.actions),pc=it(Rt.menuMobileIsOpen,It),zo=()=>pc(e=>e.value),at=()=>pc(e=>e.actions),mc=it(Rt.searchModalIsOpen,It),Vf=()=>mc(e=>e.value),Bo=()=>mc(e=>e.actions),hc=it(Rt.userMenuIsOpen,It),gc=()=>hc(e=>e.value),Nt=()=>hc(e=>e.actions),Gf=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:Wf,useActionsHeaderCategory:Je,useActionsMenuMobileIsOpen:at,useActionsSearchModalIsOpen:Bo,useActionsUserMenuIsOpen:Nt,useGetHeaderCategoryStore:fr,useGetMenuMobileIsOpen:zo,useGetSearchModalIsOpen:Vf,useGetUserMenuIsOpen:gc},Symbol.toStringTag,{value:"Module"})),ht={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},yt=new Set,Kf=()=>{yt.forEach(e=>{e()})},yc=st.create(e=>{const t=()=>e({value:ht.selectedSkuInfo});return yt.add(t),{value:ht.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),Tt=()=>yc(e=>e.value),_c=()=>yc(e=>e.actions),vc=it(ht.openLetMeKnow,yt),Xf=()=>vc(e=>e.value),Qf=()=>vc(e=>e.actions),xc=it(ht.showNotify,yt),bc=()=>xc(e=>e.value),Fo=()=>xc(e=>e.actions),jc=it(ht.showBottomNavigation,yt),Yf=()=>jc(e=>e.value),Zf=()=>jc(e=>e.actions),Cc=it(ht.openMeasurements,yt),Sc=()=>Cc(e=>e.value),wc=()=>Cc(e=>e.actions),Jf=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Kf,useActionsPDPOpenLetMeKnow:Qf,useActionsPDPOpenMeasurements:wc,useActionsPDPSelectedSkuInfo:_c,useActionsPDPShowBottomNavigation:Zf,useActionsPDPShowNotify:Fo,useGetPDPOpenLetMeKnow:Xf,useGetPDPOpenMeasurements:Sc,useGetPDPSelectedSkuInfo:Tt,useGetPDPShowBottomNavigation:Yf,useGetPDPShowNotify:bc},Symbol.toStringTag,{value:"Module"})),ys={feedback:{active:!1,action:"add"},list:[]},qo=st.create((e,t)=>({value:ys,actions:{reset:()=>e({value:ys}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),Ho=()=>qo(e=>e.value.list),ep=()=>qo(e=>e.value.feedback),Uo=()=>qo(e=>e.actions),tp=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:Uo,useGetWishlistFeedbackStore:ep,useGetWishlistStore:Ho},Symbol.toStringTag,{value:"Module"})),Pc=b.createContext({}),rp=({children:e,headerData:t,...r})=>{var p,g;const o=b.useRef(null),s=b.useRef(null),i=b.useRef(null),a=b.useRef(null),c=b.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=ge();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var x,S,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const h=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=h?_:d??((x=u.current)==null?void 0:x.bannerVariant)??"default";y!==((S=u.current)==null?void 0:S.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(h)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(g=l.current)==null||g.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),b.useEffect(()=>{const d=new AbortController,f=m.helpers.throttle(()=>{var _;return(_=l.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:d.signal});const h=_=>{var x;(x=_.target.closest("a"))==null||x.blur()};return o.current&&(o.current.addEventListener("click",h,{signal:d.signal}),o.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(Pc.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},je=()=>b.useContext(Pc),Rc=b.createContext({}),Ec=({children:e})=>{const t=b.useRef(null),r=b.useRef(null),o=zo(),s=b.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 b.useEffect(()=>{var i;if(o)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"}}},[o]),b.useEffect(()=>{r.current=document.body},[]),n.jsx(Rc.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},kt=()=>b.useContext(Rc),np=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},op=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?np(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},Ac=b.createContext({}),Ic=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=b.useState(!1),a=b.useRef(null),[c,l]=b.useState(!1),[u,p]=b.useState({left:0,top:0}),g=b.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return b.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:h,top:_}=op(f,d,r??0);p({left:h,top:_}),l(!1)}},[r,s]),n.jsx(Ac.Provider,{value:b.useMemo(()=>({...o,...u,handleClose:g,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,g,c,s,i,l]),children:e})},ct=()=>{const e=b.useContext(Ac);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Nc=b.createContext({}),sp=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=mt(),{setRecentlyAdded:s}=At(),i=b.useRef(""),a=Do(),{addNotification:c,removeNotification:l}=$o(),{addCoupon:u,addItem:p,addSellerCode:g,addMarketingData:d,emptyCart:f,isOpen:h,removeItem:_,shipping:y,shippingUpdate:x,toggleServiceToProduct:S,updateItemQuantity:v}=o;b.useEffect(()=>{const q=mo.get("lastMedias");if(o.id&&q&&i.current!==q){i.current=q;const K=new URLSearchParams(q),V=sc(K);d(V)}},[o,d]);const j=b.useCallback(async(q,K)=>(K==="coupon"?u(q):g(q)).then(B=>{if(typeof B!="boolean"&&B instanceof Object){if(K==="seller"&&"value"in B){const{statusOk:J,value:A}=B,O=String(A??"").split(" - ");return dt((O==null?void 0:O[0])??"",q,!!J)}return dt(String(B.coupon),q,!0)}return dt("","")}).catch(()=>Promise.resolve({code:400})),[u,g]),w=b.useCallback((q,K,V)=>{const{id:B}=q;v(B,K,V)},[v]),R=b.useCallback((q,K,V=!1)=>{if(!q)return;const{id:B}=q,J=yo(o.items,B);if(J!==-1&&!V){const A=Number(o.items[J].quantity),O=o.items[J]?A+1:1;w(q,O,K)}else p({id:B,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});h||s(A=>[...A,q])},[p,w,o.items,h,s]),C=b.useCallback((q,K)=>{if(!q||!Array.isArray(q))return;s(B=>[...B,...q]);const V=q.map(B=>{const{id:J,quantity:A,seller:O}=B,D=yo(o.items,J),X=ec(A??1,D);return{id:J,quantity:X,seller:O}});p(V,K)},[p,o.items,s]),E=b.useCallback(async(q,K,V)=>q?_(q).then(()=>(c(K??`${t}`,V),dt(q,q))):Promise.resolve(dt("","Product id required")),[c,_]),k=b.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),P=b.useCallback((q,K="BRA")=>y(q,K),[y]),N=b.useCallback(q=>{q&&x(q)},[x]),I=b.useCallback(async(q,K,V)=>{const B=o.items.findIndex(A=>A.id===q);return o.items[B]&&B>=0?S(K,B,V??!1):!1},[o.items,S]),z=b.useCallback(async(q,K)=>v(q,K).then(V=>{if(Array.isArray(V)){const B=V.find(J=>J.id===q);if(B&&(B==null?void 0:B.quantity)<K)return String(B.quantity)}return!1}),[v]),T=b.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=b.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),W=b.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(Nc.Provider,{value:b.useMemo(()=>({...r,addCouponSeller:j,addToCart:R,addItemsToCart:C,cartStore:o,notifications:a,clearCart:k,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:E,setIsOpen:o.setIsOpen,shipping:P,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:z,removeCoupon:T,removeSellerCode:H,removeCEP:W}),[r,j,R,C,a,k,c,o,l,E,P,N,I,z,T,H,W]),children:e})},Re=()=>{const e=b.useContext(Nc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Tc=b.createContext({}),Wo=({children:e,fetch:t})=>{const r=b.useRef(!0),[o,s]=b.useState(null),[i,a]=b.useState(!1);return b.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]),n.jsx(Tc.Provider,{value:b.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},Vo=()=>{const e=b.useContext(Tc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},kc=b.createContext({}),Oc=({children:e,sort:t,state:r,count:o,collectionId:s,brand:i,CONSTANTS:a})=>{const c=b.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,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,s]);return n.jsx(kc.Provider,{value:b.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??a.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},pr=()=>{const e=b.useContext(kc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},xt={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"}},ip={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},ap="Imagem do produto",_s=1,cp="Sair",lp=e=>e.exit,up=({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"}],dp=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},fp=e=>"Seja bem vindo!",Mc=b.createContext({}),pp=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...i}=Vo(),{router:a}=be(),c=b.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const h=f.getAll("facets");f.delete("facets"),h.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),a.push(`?${f.toString()}`)}},[a]),l=b.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),a.push(`?${d.toString()}`)},[a]),u=b.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const h=f.getAll("facets");f.delete("facets"),f.set("page","1"),h.forEach(_=>{const[y,x]=_.split("/");(y!==d.key||x!==d.value)&&f.append("facets",_)}),a.push(`?${f.toString()}`)},[a]),p=b.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));for(const[,h]of f.entries()){const[_,y]=h.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,t]),g=b.useCallback(d=>{const f=new URLSearchParams(U.convertSearchParams(t));f.set("sort",d.replace("_",":")),a.push(`?${f.toString()}`)},[a,t]);return n.jsx(Mc.Provider,{value:b.useMemo(()=>({...i,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:p,onSort:g,searchParams:t}),[s,l,g,p,i,r,t]),children:e})},mp=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=pr();return n.jsx(Wo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx(pp,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},hp=()=>{const e=b.useContext(Mc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Lc=b.createContext({}),gp=({children:e})=>{const{data:t,...r}=Vo(),[o,s]=b.useState(0),{sendDataLayerEvent:i}=ue();return b.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]),n.jsx(Lc.Provider,{value:b.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:ip,total:o}),[t,r,o]),children:e})},yp=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(Wo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(gp,{state:r,children:e})}),_p=()=>{const e=b.useContext(Lc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Dc=b.createContext({}),vp=({children:e,term:t})=>{const[r,o]=b.useState([]),[s,i]=b.useState(!1);return b.useEffect(()=>{if(!t){o([]);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();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(Dc.Provider,{value:b.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},xp=({children:e,...t})=>n.jsx(vp,{...t,children:e}),bp=()=>{const e=b.useContext(Dc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},$c=b.createContext({searches:[],isLoading:!1,error:null}),jp=({children:e})=>{const[t,r]=b.useState([]),[o,s]=b.useState(!0),[i,a]=b.useState(null);return b.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)}})()},[]),n.jsx($c.Provider,{value:b.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Cp=()=>{const e=b.useContext($c);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},zc=b.createContext({}),Sp=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=be(),l=b.useRef(""),[u,p]=b.useState(!1),g=b.useMemo(()=>{const f=new URL(c,"http://localhost"),h=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":a);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),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",h.join(",")),f)},[o,c,r,t]),d=b.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return U.parseSearchState(g,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return U.parseSearchState(g,f)},[g,r]);return b.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(zc.Provider,{value:b.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(Oc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:b.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},wp=()=>{const e=b.useContext(zc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},cr=(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)=>cr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&cr(e[s],t[s]))},Bc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!cr(t[o],e[o])),vo=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},Fc=()=>({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}}}),qc=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*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((f,h)=>s.has(l+h))){for(let f=0;f<c.columns;f++)s.add(l+f);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}},xo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=qc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)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}},ar=(e,t,r=24)=>Array.from({length:e},(o,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:Go(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Fc())}}),Hc=(e,t)=>[...e,{loading:!1,page:t,pagination:Go(),products:[]}],Go=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Pp=(e,t,r,o,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,p)=>{const g=o[p];return g<=l||s>a&&g>l})},Uc=(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 o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Rp=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Uc(r,t)},Wc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Ep=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Wc,createPage:Hc,createPages:ar,createPagination:Go,createProduct:Fc,deepEqual:cr,fetchPage:vo,getBanners:qc,getPositions:xo,getProductsWithVideo:Rp,getRandomVideoPerRow:Uc,getVisibleBanners:Pp,hasStateChangedExceptPage:Bc},Symbol.toStringTag,{value:"Module"})),Ap=50,Ip=st.create((e,t)=>{const r=a=>Math.min(a,Ap),o=async(a,c)=>{const l=r(a.page);try{const u=await vo({...a,page:l});s(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,p=>({...p,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(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 g,d,f;const p=r(Number(a==null?void 0:a.page));e({...c,pages:ar(p,void 0,u)});try{const h=await vo({...a,page:p});if(h){if(!h.products.length&&((g=h==null?void 0:h.pagination)==null?void 0:g.total)<p){i({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:ar((f=h==null?void 0:h.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:ar(p,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${p} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),p=r(a==null?void 0:a.page);u.some(g=>g.page===p)||(e({...c,pages:Hc(u,p)}),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)}}}),Np=(e,t,r,o=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 p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=a+u,g=o+p,d=t.find(h=>h.position_grid===g+1),f=g+s+1;d&&(s+=d.columns),i.push({position:f,canPlayVideo:u===l})}}return i},Tp=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Vc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:U.disableSKU(r),size:U.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},kp=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:Np,getSkusNotify:Vc,isPositionInCurrentPage:Tp},Symbol.toStringTag,{value:"Module"})),Gc=b.createContext({}),Op=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:i}=be(),{sendDataLayerEvent:a}=ue(),{isMobile:c}=ge(),{state:l}=pr(),{addPage:u,createPages:p,updateProducts:g,...d}=Ip(),f=c?8:16,h=c?2:4,_=b.useRef(!1),y=b.useRef(l),[x,S]=b.useState(!1),[v,j]=b.useState(null),[w,R]=b.useState([]),C=b.useCallback(I=>{I&&"pagination"in I&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[a]),E=b.useCallback(I=>{if(I.pagination.nextPage===!0){const z=I.page+1,T=xo(e,z,h,r);u({...l,page:z},T,C)}},[u,e,C,h,r,l]),k=b.useCallback(I=>{I.loading===!1&&g({...l,page:I.page},C)},[C,g,l]),P=b.useCallback(I=>{const z=new URLSearchParams(o);I.page!==Number(z.get("page")??1)&&(z.set("page",String(I.page)),i.replace(`?${z.toString()}`,{scroll:!1}))},[i,o]),N=b.useCallback((I,z)=>{const T=z?Vc([z]):null;R(I),j(T!=null&&T.length?T[0]:null),S(!0)},[]);return b.useEffect(()=>{const I=!_.current,z=Bc(y.current,l),T=xo(e,l.page,h);I?p(l,T,C,r):z&&(p(l,T,C,r),y.current=l),_.current=!0},[e,p,C,h,r,l]),n.jsxs(Gc.Provider,{value:b.useMemo(()=>({...d,addPage:u,addNewPage:E,createPages:p,gap:f,columns:h,handleNotify:N,updatePage:k,updateProducts:g,updateParamPage:P}),[u,E,p,N,f,h,d,k,g,P]),children:[t,n.jsx(s,{notify:x,sku:v,skus:w,setSku:j,setNotify:S})]})},Mp=()=>{const e=b.useContext(Gc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Kc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function Ko(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 Lp=()=>{const{sendDataLayerEvent:e}=ue(),{user:t}=Ot(),{cartStore:r}=Re();return b.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:p,street:g,number:d,city:f,gender:h}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),S=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:S,email:i,first_name:a,last_name:c,phone:l||u,zip:p,street:g,street_number:d,city:f,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Xc=b.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),Dp=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=b.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=b.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:p,...g}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:g,loading:!1,wishlist:(typeof p=="string"?p.split(","):p)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=b.useCallback(()=>{Ko(t),s()},[s]),a=b.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 b.useEffect(()=>{s()},[s]),n.jsxs(Xc.Provider,{value:b.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(Lp,{}),e]})},Ot=()=>{const e=b.useContext(Xc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Qc=b.createContext({gridBanners:void 0,banners:[]}),$p=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=ge(),a=(t==null?void 0:t.sections.filter(g=>g.name!=="List Product Banners"))??[],c=a.slice(0,_s),l=a.slice(_s,a.length),u=t==null?void 0:t.sections.find(g=>g.name==="List Product Banners"),p=b.useMemo(()=>{var g,d;return((d=(g=u==null?void 0:u.data)==null?void 0:g.banners)==null?void 0:d.map(f=>({...f.banner,columns:f.bannerWidth,position_grid:f.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Qc.Provider,{value:{gridBanners:u,banners:p},children:[n.jsx(o,{data:c??[]}),n.jsxs(m.Utils.Column,{gap:s,className:m.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},zp=()=>{const e=b.useContext(Qc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Yc=b.createContext({}),Zc=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(Yc.Provider,{value:b.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},_t=()=>{const e=b.useContext(Yc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Jc=b.createContext({product:void 0}),Bp=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Jc.Provider,{value:{productId:r},children:[e,n.jsx(m.Utils.Column,{gap:o,className:m.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),Fp=()=>{const e=b.useContext(Jc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},qp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Hp(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function Up(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const el=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,Ct=(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),Wp=e=>{const t=yf.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Vp=["name","email","phone","date","cpf","cep"],vs={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}$/},tl=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!vs[e])return!0;const o=t.trim();return vs[e].test(o)},Gp=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):ap},Kp=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Vp,debounce:Up,getAltTextFromUrl:Gp,getAuthenticatedUser:Wp,getCookie:Kc,getDaysHoursMinutesSeconds:Ct,getMilliSeconds:el,removeAccentsAndReplaceSpaces:qp,setCookie:Ko,throttle:Hp,validateInput:tl},Symbol.toStringTag,{value:"Module"})),Xp=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},Qp=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,p)=>{var f;if(p==="terms-and-conditions")return;const g=(f=t[p])==null?void 0:f.required;if(g&&!u){l[p]="required",a=!0;return}tl({type:t[p].type,input:u,required:g})||(l[p]="error",c=!0),typeof u=="string"&&e.set(p,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},rl=b.createContext({}),nl=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ue(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=b.useMemo(()=>Xp({fields:r}),[r]),p=b.useRef(!1),[g,d]=b.useState("idle"),[f,h]=b.useState(u),_=async({searchFields:R,entity:C})=>{const E=await rt.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:R,headers:{"REST-Range":"resources=0-49"}}});return console.info(E),E.data},y=async({id:R,fieldsToBeUpdated:C,entity:E})=>(await rt.post("/api/master-data/update",{dataEntityName:E,id:R,fieldsToBeUpdated:C})).status,x=b.useCallback(async({payload:R,response:C},E,k)=>{const{email:P,...N}=R,[I]=await _({searchFields:{[E]:P},entity:k??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:k??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),S=b.useCallback(async({formData:R},C,E)=>{const k={status:"idle",inputsStatus:{}},P={};R.forEach((N,I)=>{P[I]=N});try{const I=(await rt.post("/api/master-data",{body:{payload:P,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?x({payload:P,response:k},E,C):I!=null&&I.Id?{...k,status:"success"}:{...k,status:"error"}}catch(N){return console.error("error",N),{...k,status:"error"}}},[x]),v=b.useCallback(async(R,C,E)=>{R.preventDefault();const k=new FormData(R.target);C&&Object.keys(C).forEach(N=>{k.append(N,C[N])});const P=await S({formData:k},E??"",t);P&&(d(P==null?void 0:P.status),h(P.inputsStatus),P.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,S,d,h,a]),j=b.useCallback(R=>{const C=new FormData(R.currentTarget.parentElement),{hasEmptyFields:E,hasErrors:k,inputStatusToUpdate:P}=Qp({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(h(P),E||k){R.preventDefault();return}d("loading")},[l,f,c,p]),w=b.useCallback(()=>{d("idle"),h(u)},[u]);return n.jsx(rl.Provider,{value:b.useMemo(()=>({formStatus:g,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:h,hasTermsAndConditions:c,handleClickToSubmit:j,checkboxRef:p,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:w}),[g,v,d,f,h,j,c,p,t,r,o,w]),children:e})},Xo=()=>{const e=b.useContext(rl);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},Yp={contexts:{addToCart:{hook:ct,provider:Ic},cart:{hook:Re,provider:sp},cms:{FlagsAndTags:{context:Oo,hook:Et,provider:_f}},newsletter:{hook:Xo,provider:nl},events:{hook:ue,provider:Pf},global:{hook:ge,provider:Hf,mediator:lc},header:{hook:je,provider:rp},menuMobile:{hook:kt,provider:Ec},next:{hook:be,provider:Uf},pdp:{provider:vf},PDPContent:{provider:Bp,hook:Fp},plp:{provider:Sp,hook:wp},plpFilter:{hook:_t,provider:Zc},PLPContent:{provider:$p,hook:zp},plpInfinite:{provider:Op,hook:Mp},pdpdata:{provider:Rf},searchFacets:{hook:hp,provider:mp},searchProducts:{hook:_p,provider:yp},searchRoot:{hook:Vo,provider:Wo},searchSearch:{hook:pr,provider:Oc},searchSuggestedTerms:{hook:bp,provider:xp},searchTopSearchs:{hook:Cp,provider:jp},session:{hook:Ot,provider:Dp},ui:{hook:At,provider:cc}},hooks:{useBackPDC:Ta,useClipboard:Ef,useDisableZoom:qa,useLocalStorage:If,useOnScreen:Mo,useSentinel:Nf,useTouchZoomPan:Ha},stores:{cart:Ff,header:Gf,pdp:Jf,wishlist:tp}},Zp={cart:$f,events:wf,plp:Ep,product:U.productHelpers,utils:Kp},Qo={helpers:Zp},$e={"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"},ol=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat($e["add-to-cart--card--name"],t),children:[n.jsx(m.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});ol.displayName="AddToCart.Card.Name";const sl=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=U.formatPriceToCurrency(r/100),c=U.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:m.helpers.classNameConcat($e["add-to-cart--card--price-quantity"],e),children:n.jsx(m.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(m.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};sl.displayName="AddToCart.Card.PriceQuantity";const Jp="_skeleton_12b79_1",em={skeleton:Jp},il=({style:e})=>n.jsx("div",{style:e,className:em.skeleton}),tm="_image_lypfr_1",rm={image:tm},nm=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=be();return n.jsx(s,{quality:90,...o,alt:e??"",className:m.helpers.classNameConcat(rm.image,t),"data-object-fit":r??"cover"})},om=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:nm,Video:om},al=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ct(),[c,l]=b.useState(o??"");return b.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 g=p.images.find(d=>i.includes(d.imageLabel));g!=null&&g.imageUrl?l(g.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:m.helpers.classNameConcat($e["add-to-cart--card--style-size"],e),children:[n.jsx(m.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(m.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(il,{})})}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(m.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:r})]})]})};al.displayName="AddToCart.Card.StyleSize";const{helpers:sm}=Qo,cl=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:g}}=ct(),{size:d}=sm.product.getColorAndSizeFromSkuName(a??s,g);return n.jsxs("div",{...o,className:m.helpers.classNameConcat($e["add-to-cart--card--content"],e),children:[n.jsx(ol,{brand:i.name,name:s}),n.jsx(sl,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(al,{size:d,texture:r,productGroupID:c})]})};cl.displayName="AddToCart.Card.Content";const ll=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});ll.displayName="AddToCart.Card";const ul=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=U.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:m.helpers.classNameConcat($e["add-to-cart--card"],e),children:[n.jsx(ll,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(cl,{item:t,texture:r})]})};ul.displayName="AddToCart.Card";const dl=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:m.helpers.classNameConcat($e["add-to-cart--content"],e),children:[n.jsx("div",{className:$e["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(nt.Footer,{})]});dl.displayName="AddToCart.Layout.Content";const fl=({className:e,...t})=>{var f,h;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ct(),{cartStore:{totalizers:i},setIsOpen:a}=Re(),c=(f=i.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((h=i.find(_=>_.id==="Items"))==null?void 0:h.value)??0,u=i.find(_=>_.id==="Shipping"),g=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=U.formatPriceToCurrency(g??0);return n.jsxs("div",{...t,className:m.helpers.classNameConcat($e["add-to-cart--footer"],e),children:[n.jsxs("div",{className:$e["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(m.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(m.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(m.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};fl.displayName="AddToCart.Layout.Footer";const pl=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=Re(),{recentlyAddedProducts:i}=At(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:$e["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(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(nt.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};pl.displayName="AddToCart.Layout.Items";const ml=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ct(),{isMobile:s}=ge();return n.jsxs(m.Modal.Root,{"data-modal":"add-to-cart--modal",className:$e["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(m.Modal.Header,{navigation:"top",children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(m.Modal.Body,{children:e})]})};ml.displayName="AddToCart.Modal";const im=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ct(),s=b.useRef(t);return b.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},hl=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=At(),{isMobile:i}=ge(),a=s.length>3?4:s.length;return n.jsx(Ic,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(im,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(nt.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(nt.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};hl.displayName="AddToCart.Root";const gl=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=ct();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:$e["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:$e["add-to-cart--tooltip"],ref:c,children:e})})};gl.displayName="AddToCart.Tooltip";const nt={Card:ul,Content:dl,Footer:fl,Items:pl,Modal:ml,Root:hl,Tooltip:gl},Yo=({title:e,...t})=>{const{recentlyAddedProducts:r}=At(),{isMobile:o}=ge(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(nt.Root,{isMobile:o,count:r.length,component:n.jsx(nt.Content,{title:e,children:n.jsx(nt.Items,{thumbnail:a,children:i&&n.jsx(m.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Yo.displayName="AddToCart";const xs={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},am=({children:e,className:t,adornment:r,iconPosition:o,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=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(m.Card,{...a,shadow:!0,padding:"small",className:m.helpers.classNameConcat(xs["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:xs["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},cm="_container_1sy8s_16",Ze={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:cm,"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"},lm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ze["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ze["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ze["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:Ze["add-itens-to-cart-total"],children:n.jsx("span",{children:U.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(m.Button,{onClick:t,className:Ze["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},um=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),dm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...p}=s;return{...r,totalPrice:i-u.price,products:p}}const a=U.getValidOffer(e.offers.offers,o);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}},yl=b.createContext({}),fm=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=b.useState(null),c=b.useRef(null),l=b.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=ue(),g=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{g("add_to_wishlist")},f=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{o&&(p.current={item_list_name:o}),g("select_item")};return n.jsx(yl.Provider,{value:b.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:f}),[s,t,c,i]),children:e})},He=()=>{const e=b.useContext(yl);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Ie={"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"},_l=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=He();return a?n.jsxs("div",{...i,className:m.helpers.classNameConcat(Ie["product-card--actions"],r),children:[n.jsxs(xe.Wrapper,{type:"actions--group",children:[n.jsx(xe.Price,{}),n.jsx("div",{className:Ie["product-card--actions--selectors"],children:!s&&n.jsx(xe.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};_l.displayName="ProductCard.Actions";const vl=({className:e,isKit:t,...r})=>{const{addToCart:o}=Re(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=He(),p=()=>{var f;if(!i)return;const d=U.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(f=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:f.url}),l()},g=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(m.Button,{...r,className:m.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":g})};vl.displayName="ProductCard.Actions.BuyButton";const xl=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:i}=He();return n.jsxs(xe.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(m.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(m.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&&n.jsx(i,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card"})]})};xl.displayName="ProductCard.Actions.Header";var bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?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(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var bo={exports:{}},Oe={};Oe._=Oe._interop_require_default=mm;function mm(e){return e&&e.__esModule?e:{default:e}}var Ht={exports:{}},Pr={},bs;function jl(){return bs||(bs=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 o(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,p]=l;Array.isArray(p)?p.forEach(g=>c.append(u,o(g))):c.set(u,o(p))}),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(p=>{Array.from(p.keys()).forEach(g=>a.delete(g)),p.forEach((g,d)=>a.append(d,g))}),a}}(Pr)),Pr}var Rr={},Ut={},js;function hr(){if(js)return Ut;js=1;function e(r){if(typeof WeakMap!="function")return null;var o=new WeakMap,s=new WeakMap;return(e=function(i){return i?s:o})(r)}Ut._=Ut._interop_require_wildcard=t;function t(r,o){if(!o&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var s=e(o);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 Ut}var Cs;function Cl(){return Cs||(Cs=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 i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=hr()._(jl()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:p}=l,g=l.protocol||"",d=l.pathname||"",f=l.hash||"",h=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:p&&(_=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(_+=":"+l.port)),h&&typeof h=="object"&&(h=String(o.urlQueryToSearchParams(h)));let y=l.search||h&&"?"+h||"";return g&&!g.endsWith(":")&&(g+=":"),l.slashes||(!g||s.test(g))&&_!==!1?(_="//"+(_||""),d&&d[0]!=="/"&&(d="/"+d)):_||(_=""),f&&f[0]!=="#"&&(f="#"+f),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+g+_+d+y+f}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)}}(Rr)),Rr}var Er={},Ss;function hm(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(Er)),Er}var Ar={},ws;function gr(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(j,w){for(var R in w)Object.defineProperty(j,R,{enumerable:!0,get:w[R]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return g},SP:function(){return d},ST:function(){return f},DecodeError:function(){return h},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return x},MiddlewareNotFoundError:function(){return S},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(j){let w=!1,R;return function(){for(var C=arguments.length,E=new Array(C),k=0;k<C;k++)E[k]=arguments[k];return w||(w=!0,R=j(...E)),R}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=j=>s.test(j);function a(){const{protocol:j,hostname:w,port:R}=window.location;return j+"//"+w+(R?":"+R:"")}function c(){const{href:j}=window.location,w=a();return j.substring(w.length)}function l(j){return typeof j=="string"?j:j.displayName||j.name||"Unknown"}function u(j){return j.finished||j.headersSent}function p(j){const w=j.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function g(j,w){if(process.env.NODE_ENV!=="production"){var R;if((R=j.prototype)!=null&&R.getInitialProps){const k='"'+l(j)+'.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=w.res||w.ctx&&w.ctx.res;if(!j.getInitialProps)return w.ctx&&w.Component?{pageProps:await g(w.Component,w.ctx)}:{};const E=await j.getInitialProps(w);if(C&&u(C))return E;if(!E){const k='"'+l(j)+'.getInitialProps()" should resolve to an object. But found "'+E+'" instead.';throw new Error(k)}return process.env.NODE_ENV!=="production"&&Object.keys(E).length===0&&!w.ctx&&console.warn(""+l(j)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),E}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(j=>typeof performance[j]=="function");class h extends Error{}class _ extends Error{}class y extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class x extends Error{constructor(w,R){super(),this.message="Failed to load static file for page: "+w+" "+R}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(j){return JSON.stringify({message:j.message,stack:j.stack})}}(Ar)),Ar}var Wt={exports:{}},Ir={},Ps;function Sl(){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(/\/$/,"")||"/"}}(Ir)),Ir}var Nr={},Rs;function Zo(){return Rs||(Rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Nr)),Nr}var Es;function yr(){return Es||(Es=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=Sl(),o=Zo(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.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)}(Wt,Wt.exports)),Wt.exports}var Tr={},Vt={exports:{}},kr={},As;function wl(){return As||(As=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Zo();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(kr)),kr}var Is;function gm(){return Is||(Is=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=wl(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Vt,Vt.exports)),Vt.exports}var Ns;function Pl(){return Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=gr(),r=gm();function o(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}}}(Tr)),Tr}var Or={},Mr={},Ts;function ym(){return Ts||(Ts=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 p=function(g,d){if(g!==null&&g!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+g+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},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]+'" ).');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 "'+s[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');p(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(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(Mr)),Mr}var Lr={},ks;function _m(){return ks||(ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(Lr)),Lr}var Os;function vm(){return Os||(Os=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 o.isDynamicRoute}});const r=ym(),o=_m()}(Or)),Or}var Dr={},$r={},Ms;function xm(){return Ms||(Ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=gr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.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(i).forEach(p=>{const g=i[p],d=c[g.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(f=>l(f)):g.repeat?[l(d)]:l(d))}),u}}}($r)),$r}var zr={},Br={},Fr={},qr={},Ls;function bm(){return Ls||(Ls=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}}(qr)),qr}var Hr={},Ds;function jm(){return Ds||(Ds=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(")")}}(Hr)),Hr}var $s;function Cm(){return $s||($s=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=bm(),o=jm();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,p)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Fr)),Fr}var zs;function Sm(){return zs||(zs=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 o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Cm(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const p of a.split("/"))if(l=o.find(g=>p.startsWith(g)),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}}}(Br)),Br}var Ur={},Bs;function wm(){return Bs||(Bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(Ur)),Ur}var Fs;function Pm(){return Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,y){for(var x in y)Object.defineProperty(_,x,{enumerable:!0,get:y[x]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return h}});const r=Sm(),o=wm(),s=Sl(),i="nxtP",a="nxtI";function c(_){const y=_.startsWith("[")&&_.endsWith("]");y&&(_=_.slice(1,-1));const x=_.startsWith("...");return x&&(_=_.slice(3)),{key:_,repeat:x,optional:y}}function l(_){const y=(0,s.removeTrailingSlash)(_).slice(1).split("/"),x={};let S=1;return{parameterizedRoute:y.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.find(R=>v.startsWith(R)),w=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&w){const{key:R,optional:C,repeat:E}=c(w[1]);return x[R]={pos:S++,repeat:E,optional:C},"/"+(0,o.escapeStringRegexp)(j)+"([^/]+?)"}else if(w){const{key:R,repeat:C,optional:E}=c(w[1]);return x[R]={pos:S++,repeat:C,optional:E},C?E?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:x}}function u(_){const{parameterizedRoute:y,groups:x}=l(_);return{re:new RegExp("^"+y+"(?:/)?$"),groups:x}}function p(){let _=0;return()=>{let y="",x=++_;for(;x>0;)y+=String.fromCharCode(97+(x-1)%26),x=Math.floor((x-1)/26);return y}}function g(_){let{getSafeRouteKey:y,segment:x,routeKeys:S,keyPrefix:v}=_;const{key:j,optional:w,repeat:R}=c(x);let C=j.replace(/\W/g,"");v&&(C=""+v+C);let E=!1;return(C.length===0||C.length>30)&&(E=!0),isNaN(parseInt(C.slice(0,1)))||(E=!0),E&&(C=y()),v?S[C]=""+v+j:S[C]=""+j,R?w?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const x=(0,s.removeTrailingSlash)(_).slice(1).split("/"),S=p(),v={};return{namedParameterizedRoute:x.map(j=>{const w=r.INTERCEPTION_ROUTE_MARKERS.some(C=>j.startsWith(C)),R=j.match(/\[((?:\[.*\])|.+)\]/);return w&&R?g({getSafeRouteKey:S,segment:R[1],routeKeys:v,keyPrefix:y?a:void 0}):R?g({getSafeRouteKey:S,segment:R[1],routeKeys:v,keyPrefix:y?i:void 0}):"/"+(0,o.escapeStringRegexp)(j)}).join(""),routeKeys:v}}function f(_,y){const x=d(_,y);return{...u(_),namedRegex:"^"+x.namedParameterizedRoute+"(?:/)?$",routeKeys:x.routeKeys}}function h(_,y){const{parameterizedRoute:x}=l(_),{catchAll:S=!0}=y;if(x==="/")return{namedRegex:"^/"+(S?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let j=S?"(?:(/.*)?)":"";return{namedRegex:"^"+v+j+"$"}}}(zr)),zr}var qs;function Rm(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=xm(),r=Pm();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,p=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const g=Object.keys(u);return g.every(d=>{let f=p[d]||"";const{repeat:h,optional:_}=u[d];let y="["+(h?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),h&&!Array.isArray(f)&&(f=[f]),(_||d in p)&&(c=c.replace(y,h?f.map(x=>encodeURIComponent(x)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:g,result:c}}}(Dr)),Dr}var Hs;function Em(){return Hs||(Hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=jl(),o=Cl(),s=hm(),i=gr(),a=yr(),c=Pl(),l=vm(),u=Rm();function p(g,d,f){let h,_=typeof d=="string"?d:(0,o.formatWithValidation)(d);const y=_.match(/^[a-zA-Z]{1,}:\/\//),x=y?_.slice(y[0].length):_;if((x.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+_+"' passed to next/router in page: '"+g.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(x);_=(y?y[0]:"")+v}if(!(0,c.isLocalURL)(_))return f?[_]:_;try{h=new URL(_.startsWith("#")?g.asPath:g.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const v=new URL(_,h);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let j="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&f){const R=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:E}=(0,u.interpolateAs)(v.pathname,v.pathname,R);C&&(j=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(R,E)}))}const w=v.origin===h.origin?v.href.slice(v.origin.length):v.href;return f?[w,j||w]:w}catch{return 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)}(Ht,Ht.exports)),Ht.exports}var Gt={exports:{}},Wr={},Vr={},Us;function Rl(){return Us||(Us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Zo();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}(Vr)),Vr}var Ws;function Am(){return Ws||(Ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Rl(),r=wl();function o(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)}}(Wr)),Wr}var Vs;function Im(){return Vs||(Vs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=yr(),o=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)(Am().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)}(Gt,Gt.exports)),Gt.exports}var Gr={},Gs;function El(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(Gr)),Gr}var Kr={},Ks;function Nm(){return Ks||(Ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var g in p)Object.defineProperty(u,g,{enumerable:!0,get:p[g]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(b);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Kr)),Kr}var Kt={exports:{}},Xt={exports:{}},Xs;function Al(){return Xs||(Xs=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 o},cancelIdleCallback:function(){return s}});const o=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)}(Xt,Xt.exports)),Xt.exports}var Qs;function Tm(){return Qs||(Qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=b,o=Al(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(p){const g={root:p.root||null,margin:p.rootMargin||""},d=a.find(y=>y.root===g.root&&y.margin===g.margin);let f;if(d&&(f=i.get(d),f))return f;const h=new Map,_=new IntersectionObserver(y=>{y.forEach(x=>{const S=h.get(x.target),v=x.isIntersecting||x.intersectionRatio>0;S&&v&&S(v)})},p);return f={id:g,observer:_,elements:h},a.push(g),i.set(g,f),f}function l(p,g,d){const{id:f,observer:h,elements:_}=c(d);return _.set(p,g),h.observe(p),function(){if(_.delete(p),h.unobserve(p),_.size===0){h.disconnect(),i.delete(f);const x=a.findIndex(S=>S.root===f.root&&S.margin===f.margin);x>-1&&a.splice(x,1)}}}function u(p){let{rootRef:g,rootMargin:d,disabled:f}=p;const h=f||!s,[_,y]=(0,r.useState)(!1),x=(0,r.useRef)(null),S=(0,r.useCallback)(j=>{x.current=j},[]);(0,r.useEffect)(()=>{if(s){if(h||_)return;const j=x.current;if(j&&j.tagName)return l(j,R=>R&&y(R),{root:g==null?void 0:g.current,rootMargin:d})}else if(!_){const j=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(j)}},[h,d,g,_,x.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[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)}(Kt,Kt.exports)),Kt.exports}var Qt={exports:{}},Yt={exports:{}},Xr={},Ys;function km(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Xr)),Xr}var Zs;function Om(){return Zs||(Zs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?km().normalizeLocalePath(o,s):{pathname:o,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)}(Yt,Yt.exports)),Yt.exports}var Zt={exports:{}},Qr={},Js;function Mm(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,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(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(Qr)),Qr}var ei;function Lm(){return ei||(ei=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 o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Mm().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 ti;function Dm(){return ti||(ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=yr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Om().normalizeLocalePath,p=Lm().detectDomainLocale,g=a||u(i,c).detectedLocale,d=p(l,void 0,g);if(d){const f="http"+(d.http?"":"s")+"://",h=g===d.defaultLocale?"":"/"+g;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+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)}(Qt,Qt.exports)),Qt.exports}var Jt={exports:{}},ri;function $m(){return ri||(ri=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Rl(),o=yr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.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)}(Jt,Jt.exports)),Jt.exports}var er={exports:{}},ni;function zm(){return ni||(ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(g,d){for(var f in d)Object.defineProperty(g,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return o},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 o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(g){g.AUTO="auto",g.FULL="full",g.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)}(er,er.exports)),er.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});const o=Oe._(b),s=Em(),i=Pl(),a=Cl(),c=gr(),l=Im(),u=El(),p=Nm(),g=Tm(),d=Dm(),f=$m(),h=zm(),_=new Set;function y(R,C,E,k,P,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(C))return;if(!k.bypassPrefetchedCheck){const z=typeof k.locale<"u"?k.locale:"locale"in R?R.locale:void 0,T=C+"%"+E+"%"+z;if(_.has(T))return;_.add(T)}const I=N?R.prefetch(C,P):R.prefetch(C,E,k);Promise.resolve(I).catch(z=>{if(process.env.NODE_ENV!=="production")throw z})}function x(R){const E=R.currentTarget.getAttribute("target");return E&&E!=="_self"||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&R.nativeEvent.which===2}function S(R,C,E,k,P,N,I,z,T,H){const{nodeName:W}=R.currentTarget;if(W.toUpperCase()==="A"&&(x(R)||!T&&!(0,i.isLocalURL)(E)))return;R.preventDefault();const K=()=>{const V=I??!0;"beforePopState"in C?C[P?"replace":"push"](E,k,{shallow:N,locale:z,scroll:V}):C[P?"replace":"push"](k||E,{forceOptimisticNavigation:!H,scroll:V})};T?o.default.startTransition(K):K()}function v(R){return typeof R=="string"?R:(0,a.formatUrl)(R)}const w=o.default.forwardRef(function(C,E){let k;const{href:P,as:N,children:I,prefetch:z=null,passHref:T,replace:H,shallow:W,scroll:q,locale:K,onClick:V,onMouseEnter:B,onTouchStart:J,legacyBehavior:A=!1,...O}=C;k=I,A&&(typeof k=="string"||typeof k=="number")&&(k=o.default.createElement("a",null,k));const D=o.default.useContext(u.RouterContext),X=o.default.useContext(p.AppRouterContext),ne=D??X,ee=!D,L=z!==!1,te=z===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(se){return new Error("Failed prop type: The prop `"+se.key+"` expects a "+se.expected+" in `<Link>`, but got `"+se.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(se=>{if(se==="href"&&(C[se]==null||typeof C[se]!="string"&&typeof C[se]!="object"))throw ie({key:se,expected:"`string` or `object`",actual:C[se]===null?"null":typeof C[se]})}),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(se=>{const Q=typeof C[se];if(se==="as"){if(C[se]&&Q!=="string"&&Q!=="object")throw ie({key:se,expected:"`string` or `object`",actual:Q})}else if(se==="locale"){if(C[se]&&Q!=="string")throw ie({key:se,expected:"`string`",actual:Q})}else if(se==="onClick"||se==="onMouseEnter"||se==="onTouchStart"){if(C[se]&&Q!=="function")throw ie({key:se,expected:"`function`",actual:Q})}else if((se==="replace"||se==="scroll"||se==="shallow"||se==="passHref"||se==="prefetch"||se==="legacyBehavior")&&C[se]!=null&&Q!=="boolean")throw ie({key:se,expected:"`boolean`",actual:Q})});const Y=o.default.useRef(!1);C.prefetch&&!Y.current&&!ee&&(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"&&ee&&!N){let ie;if(typeof P=="string"?ie=P:typeof P=="object"&&typeof P.pathname=="string"&&(ie=P.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Z,as:re}=o.default.useMemo(()=>{if(!D){const G=v(P);return{href:G,as:N?v(N):G}}const[ie,_e]=(0,s.resolveHref)(D,P,!0);return{href:ie,as:N?(0,s.resolveHref)(D,N):_e||ie}},[D,P,N]),$=o.default.useRef(Z),M=o.default.useRef(re);let oe;if(A)if(process.env.NODE_ENV==="development"){V&&console.warn('"onClick" was passed to <Link> with `href` of `'+P+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),B&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+P+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{oe=o.default.Children.only(k)}catch{throw k?new Error("Multiple children were passed to <Link> with `href` of `"+P+"` 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 `"+P+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else oe=o.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 ae=A?oe&&typeof oe=="object"&&oe.ref:E,[de,fe,ce]=(0,g.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(ie=>{(M.current!==re||$.current!==Z)&&(ce(),M.current=re,$.current=Z),de(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[re,ae,Z,ce,de]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&ne&&(!fe||!L||y(ne,Z,re,{locale:K},{kind:te},ee))},[re,Z,fe,K,L,D==null?void 0:D.locale,ne,ee,te]);const ve={ref:F,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.');!A&&typeof V=="function"&&V(ie),A&&oe.props&&typeof oe.props.onClick=="function"&&oe.props.onClick(ie),ne&&(ie.defaultPrevented||S(ie,ne,Z,re,H,W,q,K,ee,L))},onMouseEnter(ie){!A&&typeof B=="function"&&B(ie),A&&oe.props&&typeof oe.props.onMouseEnter=="function"&&oe.props.onMouseEnter(ie),ne&&((!L||process.env.NODE_ENV==="development")&&ee||y(ne,Z,re,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))},onTouchStart(ie){!A&&typeof J=="function"&&J(ie),A&&oe.props&&typeof oe.props.onTouchStart=="function"&&oe.props.onTouchStart(ie),ne&&(!L&&ee||y(ne,Z,re,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:te},ee))}};if((0,c.isAbsoluteUrl)(re))ve.href=re;else if(!A||T||oe.type==="a"&&!("href"in oe.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,_e=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(re,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);ve.href=_e||(0,f.addBasePath)((0,l.addLocale)(re,ie,D==null?void 0:D.defaultLocale))}return A?o.default.cloneElement(oe,ve):o.default.createElement("a",{...O,...ve},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)})(bo,bo.exports);var Bm=bo.exports,Fm=Bm;const Me=mr(Fm),Il=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:g,CONSTANTS:d}=He(),f=U.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ie["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:p,onMouseUp:h=>{h.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(g))},children:n.jsx("div",{className:Ie["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:h,alternateName:_},y)=>b.createElement(ze.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:_??"product image",key:y,...r&&{priority:y===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(xe.Video,{url:u,poster:f[0].url}),t]})};Il.displayName="ProductCard.Media.Media";const Nl=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=He(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:m.helpers.classNameConcat(Ie["product-card--outstock"],e),children:[n.jsx(m.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(m.Button,{className:m.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Nl.displayName="ProductCard.OutStock";const Tl=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...g})=>n.jsx(fm,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:n.jsx("div",{...g,className:m.helpers.classNameConcat(Ie["product-card--wrapper"],t),"data-size":i,children:e})});Tl.displayName="ProductCard.Root";const kl=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(m.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(m.ToggleSize.DisabledAdornment,{}),n.jsx(m.ToggleSize.Text,{children:t})]});kl.displayName="ProductCard.SizeSelector.Item";const Ol=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=He();o.productId=i.id;const u=U.disableSKU(o),p=U.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const g=b.useCallback(f=>{const h=r===f?null:f;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=b.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}g(o)},[o,s,g,u,i]);return n.jsx(kl,{active:e,disabled:u,label:p,onClick:()=>d(),size:a?"x-small":"small",value:o})};Ol.displayName="ProductCard.SizeSelector.SkuItem";const Ml=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=He();return n.jsxs("div",{...s,className:m.helpers.classNameConcat(Ie["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Ie["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(Ol,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Ie["product-card--selectors--size--button"],children:r})]})};Ml.displayName="ProductCard.SizeSelector";const jo=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(m.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsxs(m.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(m.TextStructure.DivWrapper,{className:Ie["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),qm=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=He(),{triggerSelectItemEventRef:c}=ue();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(jo,{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:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(jo,{size:s,total:r.length-o,more:!0})]})},Ll=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=He(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(qm,{...i,callback:e,className:m.helpers.classNameConcat(Ie["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(jo,{active:!0,size:"x-small",src:l.url})})};Ll.displayName="ProductCard.StyleSelector";const Dl=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=He();l.current.priceInfo={price:s,listPrice:i};const u=U.formatPriceToCurrency(i,t),p=U.formatPriceToCurrency(s,t),g=U.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:m.helpers.classNameConcat(Ie["product-card--price"],e),"data-mobile":o,children:n.jsx(m.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(m.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:p!==u?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?n.jsx(m.ProductInfo.Price,{label:"installment",value:`${a}x ${g}`,size:"small"}):null]})})})};Dl.displayName="ProductCard.Price";const $l=({tag:e,className:t})=>{const{item:{name:r}}=He();return n.jsxs("div",{className:m.helpers.classNameConcat(Ie["product-card--title"],t),children:[n.jsx("div",{className:Ie["product-card--title--tag"],children:e?n.jsx(m.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(m.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Ie["product-card--title--content"],children:r&&n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};$l.displayName="ProductCard.Title";const zl=({className:e,url:t,poster:r,...o})=>{const{element:s}=He();return b.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(p=>{p.forEach(g=>{U.setVideoPlay(g.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]),n.jsx("div",{...o,className:m.helpers.classNameConcat(Ie["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};zl.displayName="ProductCard.Media.Video";const Bl=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:m.helpers.classNameConcat(Ie[`product-card--${r}`],t),children:e});Bl.displayName="ProductCard.Wrapper";const xe={Actions:_l,BuyButton:vl,Header:xl,Media:Il,Root:Tl,OutStock:Nl,Price:Dl,SizeSelector:Ml,StyleSelector:Ll,Title:$l,Video:zl,Wrapper:Bl},Hm="_carousel_245ib_1",Um="_shelf__container_245ib_14",Wm="_shelf_without_carousel_245ib_34",St={carousel:Hm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Um,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Wm},oi=({title:e})=>n.jsx("div",{className:St.shelf__container,children:e&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-body-md",U.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-md",U.responsive["responsive-desktop-flex"]),children:e})]})})}),Vm=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=ge(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=m.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=b.Children.toArray(e).length;return s||p>=4?n.jsxs(m.Carousel.Root,{innerRef:d=>{a(d)},className:St.carousel,children:[n.jsxs("div",{className:St["custom-controllers"],children:[o&&n.jsx(oi,{title:o}),i<p&&n.jsxs(m.Carousel.Controller,{className:St["controllers-arrows-bullets"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(m.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(m.Carousel.Body,{children:b.Children.map(e,(d,f)=>n.jsx(m.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(oi,{title:o}),n.jsx("div",{className:St.shelf_without_carousel,children:e})]})},Gm={Shelf:Vm},Km=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const i=b.useMemo(()=>um(r),[r]),{isMobile:a}=ge(),{addItemsToCart:c}=Re(),{sendDataLayerEvent:l}=ue(),{getAvailableProductTag:u}=Et(),[p,g]=b.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(p.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(_=>{const y=i.find(x=>x.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:h,price:p.totalPrice}}})},f=({selectedProduct:h,productId:_})=>{const y=dm({selectedProduct:h,productId:_,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});g(y)};return b.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]),n.jsxs("div",{className:Ze.container,ref:o,children:[n.jsx("div",{className:Ze["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:n.jsx(Gm.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},_)=>{var S,v,j;const y=u(h.cluster.highlights),{availability:{status:x}}=h;return x?n.jsxs(xe.Root,{item:{...h,image:Qo.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:_,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:s,children:[n.jsx(xe.Header,{product:h,tag:y.commercial}),n.jsx(xe.Media,{}),n.jsxs(xe.Wrapper,{type:"body",children:[n.jsx(xe.Title,{tag:{value:(S=y.institucional)==null?void 0:S.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(j=y.institucional)==null?void 0:j.icon}}),n.jsx(xe.Actions,{children:n.jsx(xe.SizeSelector,{callback:w=>f({selectedProduct:w,productId:h.id})})})]})]},h.id):null})})}),n.jsx("div",{className:Ze["add-cart-container"],children:n.jsx(lm,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Jo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},es=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Re(),{handleSelectContent:o}=ue(),{CONSTANTS:s}=je(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(m.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(m.Badge.AutoPositioner,{children:[n.jsx(m.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(m.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};es.displayName="Header.Bag";const Mt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Fl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ue(),{reset:r,updateValue:o}=Je(),s=i=>{i?o(i):r()};return n.jsx(m.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(Mt,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(m.Header.CategoryItem,{className:Jo["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(m.Icon,{name:i.iconStart}),end:n.jsx(m.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Fl.displayName="Header.Categories";function Xm(){const{handleSelectContent:e}=ue(),{CONSTANTS:t}=je(),{setValue:r}=Bo();return n.jsx(m.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(m.Icon,{name:t.header.ICONS.search,size:"medium"})})}const Qm={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Ym={"observer-wrapper":"_observer-wrapper_r43gk_1"},_r=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=b.useRef(null),l=Mo(c,s,r),{sendDataLayerEvent:u}=ue();return b.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:m.helpers.classNameConcat(Ym["observer-wrapper"],i),children:e})},ts=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ue(),i=50/e.length;return n.jsx("div",{className:Qm["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 n.jsx(_r,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(ze.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};ts.displayName="Menu.Thumbnail";const Co={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Zm="_link_w24h0_1",Jm="_wrapper_w24h0_98",eh="_text_w24h0_106",Yr={link:Zm,wrapper:Jm,text:eh},Xe=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...p})=>{const g=m.helpers.ValidateProp({fieldTypes:pt.SizesSmallExtended,property:a,fallback:"medium"}),d=m.helpers.ValidateProp({fieldTypes:pt.Mode,property:i,fallback:"default"});return n.jsx(Me,{...p,className:m.helpers.classNameConcat(Yr.link,r),href:s&&s.length>0?s:"#","data-size":g,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:Yr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:Yr.text,"data-size":g,children:e}),t==null?void 0:t.end]})})},ql=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=be(),{reset:i}=Je(),{handleSelectContent:a}=ue(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:Co["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var f,h,_;const g=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.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:n.jsx(m.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{children:[n.jsx(Mt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...g,className:Co["submenu-categories"],children:u.items.map((y,x)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${y.label}-${x}`,children:n.jsx(Xe,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${x}`))}),((_=u.see_all)==null?void 0:_.link)&&n.jsx(m.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.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}-${p}`)}),t&&n.jsx(m.Utils.Divider,{size:"small",direction:"vertical"})]})};ql.displayName="Menu.Categories";const Hl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:Co["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(m.Utils.Divider,{size:"small"})]})};Hl.displayName="Menu.MenuRoot";const Zr={Root:Hl,Categories:ql,Thumbnail:ts},Ul=()=>{const{headerData:e,CONSTANTS:t}=je(),r=fr(),{reset:o}=Je();return n.jsx(m.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,p=a==null?void 0:a.some(g=>!!g.srcDesk);return n.jsxs(Zr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Zr.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(a)&&n.jsx(Zr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};Ul.displayName="Header.SubMenu";const Wl=()=>{const{handleSelectContent:e}=ue(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(m.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(m.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Wl.displayName="Header.WishList";const Vl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ue(),{reset:o}=Je(),{setValue:s}=Nt();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[n.jsx(m.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(m.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(Fl,{}),n.jsxs(m.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(Xm,{}),n.jsx(m.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:Jo["btn-login"],innerRef:t,children:n.jsx(m.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(Wl,{}),n.jsx(es,{id:"cart-button"})]})]}),n.jsx(Ul,{})]})};Vl.displayName="Header.HeaderDesktopWrapper";const th="_divider_1lexj_199",Pe={"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:th,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Gl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...i})=>n.jsx("button",{onClick:o,className:Pe["menu-categories-btn"],children:r?n.jsxs(m.Banner.Container,{...i,className:Pe["menu-body-banner-container-modifier"],children:[n.jsx(m.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(ze.Image,{src:r,alt:t??r,className:Pe["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(m.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:Pe["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...i,children:e})});Gl.displayName="Menu.MenuCategories";const Kl=({children:e,link:t})=>{const{reset:r}=at();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Kl.displayName="Menu.MenuCategoriesWrapper";const Xl=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=be(),{reset:o}=at(),{handleSelectContent:s}=ue(),{CONSTANTS:i}=je(),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:n.jsx(m.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(m.ComponentList.Structure,{className:Pe["menu-submenu--component-list-modifier"],children:[n.jsx(Mt,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(m.ComponentList.List,{columns:1,...a,className:Pe["submenu-categories"],children:e.items.map((g,d)=>n.jsx(m.ComponentList.ListItem,{id:`list-item-${g.label}-${d}`,divider:!0,children:n.jsx(Xe,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${g.label}:${t}`})},children:g.label})},`list-item-${g.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&n.jsx(m.ComponentList.Support,{...c,size:"small",onClick:()=>{var g;o(),s({content:`menu:${e.label??""}:${t}`}),(g=e.see_all)!=null&&g.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Xl.displayName="Menu.SubMenuSubCategory";const Ql=({submenu:e})=>{var i;const t=fr(),{handleCloseSubMenu:r}=kt(),{reset:o}=Je(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Pe["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.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&&n.jsx(m.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:Pe["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(ts,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>n.jsx(Xl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Ql.displayName="Menu.SubMenuItem";const Yl=()=>{const{headerData:e}=je(),t=fr(),{reset:r}=Je(),{bodyRef:o}=kt();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Pe["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Pe["menu-submenu"],children:e.subMenus.map((s,i)=>n.jsx(Ql,{submenu:s},`submenu-${s.id}-${i}`))})})};Yl.displayName="Menu.SubMenu";const Zl=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Je(),{bodyRef:s}=kt(),{handleSelectContent:i}=ue();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Pe["menu-body"],children:[n.jsx("div",{className:Pe["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return n.jsx(Kl,{link:a.submenuId?null:a.link,children:n.jsx(Gl,{onClick:()=>{o(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(Yl,{})]})};Zl.displayName="Menu.MenuBody";const Jl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Pe["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:Pe["menu-close"],"data-close":!0})]})};Jl.displayName="Menu.MenuHeaderWrapper";const eu=({navigationLinks:e})=>{const{reset:t}=at(),{handleSelectContent:r}=ue();return e?n.jsx("nav",{className:Pe["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Xe,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(m.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(m.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};eu.displayName="Menu.MenuHeaderNavLinks";const tu=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Pe["menu-header-container"],children:[n.jsx(Jl,{title:e.title,subtitle:e.subtitle}),n.jsx(eu,{navigationLinks:e.navigationLinks})]})};tu.displayName="Menu.MenuHeaderContainer";const ru=({children:e})=>{const{documentBodyRef:t}=kt(),{CONSTANTS:r}=je(),o=zo(),{setValue:s}=at();return n.jsx(m.Modal.RootWithoutPortal,{isOpen:o,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:Pe["modal-modifier"],children:n.jsx("div",{className:Pe["menu-mobile"],children:e})})};ru.displayName="Menu.MenuRoot";const nu=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...t,className:Pe["menu-navigationbar-item"],children:e}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",className:Pe.divider})]});nu.displayName="Menu.NavigationBarItem";const ou=()=>{const{setIsOpen:e}=Re(),{reset:t}=at(),{setValue:r}=Nt(),{handleSelectContent:o}=ue(),{CONSTANTS:s}=je(),{router:i}=be();return n.jsx(m.Card,{id:"menu-navigationbar",shadow:!0,className:Pe["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:s.header.MENU_INFO.navigation_bar.items.map(a=>n.jsx(nu,{size:"small",variant:"tertiary",iconNameStart:a.button_icon,onClick:()=>{a.href&&i.push(a.href),t(),a.openUserMenu&&r(!0),a.openCart&&e(!0),o({content:`menu:${a.eventContent}`})},children:a.button_text}))})};ou.displayName="Menu.NavigationBar";const tr={Root:ru,NavigationBar:ou,Header:tu,Body:Zl},su=()=>{const e=b.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=ue(),{setValue:c}=Bo(),{setValue:l}=at(),{setValue:u}=Nt();return n.jsxs(n.Fragment,{children:[n.jsxs(m.Header.Wrapper,{children:[i==="left"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})}),n.jsx(m.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(m.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(m.Header.Support,{children:[n.jsx(m.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(m.Icon,{name:s.search,size:"medium"})}),n.jsx(m.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:n.jsx(m.Icon,{name:s.person,size:"medium"})}),n.jsx(es,{}),i==="right"&&n.jsx(m.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(m.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(Ec,{children:n.jsxs(tr.Root,{children:[n.jsx(tr.Header,{}),n.jsx(tr.Body,{}),o?n.jsx(tr.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};su.displayName="Header.HeaderMobileWrapper";const rh="_root_wvekm_126",Fe={"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:rh},iu=({className:e,children:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(Fe["user-menu--content"],e),children:t});iu.displayName="UserMenu.Content";var au=(e=>(e.Account="account",e))(au||{});const cu=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?U.formatPriceToCurrency(t):void 0,c=r?U.formatPriceToCurrency(r):void 0,l=s?U.formatPriceToCurrency(s):void 0;return n.jsx(m.Credits.Account,{...i,className:m.helpers.classNameConcat(Fe["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:au.Account})};cu.displayName="UserMenu.Credits";const lu=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=ge();return n.jsx("div",{...s,className:m.helpers.classNameConcat(Fe["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:Fe["user-menu--login--content"],children:[n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};lu.displayName="UserMenu.Login";const uu=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:i}=ge(),a=up({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:m.helpers.classNameConcat(Fe["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(Xe,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(m.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Xe,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(m.Icon,{name:lp(o)})},children:cp})}):n.jsx(n.Fragment,{})]})};uu.displayName="UserMenu.Menu";const du=e=>{const t=b.useRef(null),r=b.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=b.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=b.useCallback(i=>{i.key==="Escape"&&e()},[e]);return b.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},nh=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},oh=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?nh(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},fu=b.createContext({}),sh=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=b.useRef(null),[l,u]=b.useState(!1),[p,g]=b.useState({left:0,top:0}),{ref:d}=du(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return b.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:f,top:h}=oh(d.current,i,r??0);g({left:f,top:h}),u(!1)}},[r,o,i,d]),n.jsx(fu.Provider,{value:b.useMemo(()=>({...a,...p,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,p,d,l,o,s,u,i]),children:e})},pu=()=>{const e=b.useContext(fu);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},mu=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=pu();return n.jsxs(m.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:Fe["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(m.Modal.Header,{navigation:"top",className:Fe["modal-header-modifier"],children:n.jsx(m.Modal.Controls,{navigation:"top",isMobile:!0,className:Fe["modal-controls-modifier"]})}),n.jsx(m.Modal.Body,{children:e})]})};mu.displayName="UserMenu.Modal";const hu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(sh,{...s,className:Fe.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(tt.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(tt.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});hu.displayName="UserMenu.Root";const gu=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=pu();return n.jsx(m.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:m.helpers.classNameConcat(Fe["user-menu--tooltip"],Fe["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:Fe["user-menu--tooltip"],children:e})})};gu.displayName="UserMenu.Tooltip";const tt={Credits:cu,Content:iu,Login:lu,Menu:uu,Modal:mu,Root:hu,Tooltip:gu},rs=()=>{var _,y,x;const e=Ot(),{isMobile:t}=ge(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:i}=je(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=gc(),{setValue:p}=Nt(),g=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,credits:h}=b.useMemo(()=>{var S,v;return{credits:((S=e==null?void 0:e.getCurrentCredits())==null?void 0:S.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(tt.Root,{component:n.jsxs(tt.Content,{children:[n.jsx(tt.Login,{description:fp(d),text:dp(d,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((x=e==null?void 0:e.user)==null?void 0:x.email)),children:!d&&n.jsx(m.Button,{size:"medium",variant:"quaternary",onClick:()=>g(),children:l.login.button_text})}),h+f&&d?n.jsx(tt.Credits,{credits:h,cashBack:f,link:`${i.secureSubdomain}/account#/meus-creditos`,total:h+f}):n.jsx(n.Fragment,{}),n.jsx(m.Utils.Divider,{}),n.jsx(tt.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:p,Z_INDEX_WAR:c})};rs.displayName="UserMenu";const ih=b.createContext({}),ah=({children:e})=>{const{sendDataLayerEvent:t}=ue(),{cartStore:r,isOpen:o}=Re();b.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),b.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;rt.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:oc(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(ih.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},ch="_fadeInOut_ottz1_1",lh="_fadeOut_ottz1_1",le={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:ch,fadeOut:lh,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},yu=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=b.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:le["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(m.SnackBar.Structure,{size:"medium",children:[n.jsx(m.SnackBar.Content,{title:t}),n.jsxs(m.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(m.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(m.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};yu.displayName="MiniCart.Notify.Item";const _u=({ICONS:e})=>{const t=Do(),{removeNotification:r}=$o(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:le["mc--notify"],children:n.jsx("div",{className:le["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(yu,{item:s,removeNotification:r,ICONS:e},s.id))})})};_u.displayName="MiniCart.Notifications";const uh=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=Ho(),{toggleProduct:a}=Uo(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},vu=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=Re(),{bundleItems:c=[],id:l,uniqueId:u,seller:p,offerings:g,quantity:d}=t,f=(h,_,y)=>{a(l,h.title,()=>{typeof y=="function"&&y(),i({id:l,quantity:_,seller:p},{id:l,texture:h.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:le["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(uh,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(m.Button,{...s,adornment:{end:n.jsx(m.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{f({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(ft.Gift,{uniqueId:u,bundleItems:c,offerings:g,ICONS:r,MINICART_CONFIG:o})]})};vu.displayName="MiniCart.Card.Actions";const xu=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=b.useState(!1),{toggleGiftItemCart:c}=Re(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[g]=t;if(g){a(!0);const d=e.some(f=>f.id===g.id);c(r,String(g.id),d).then(()=>a(!1))}}},u=t[0],p=e.find(g=>g.id===u.id);return u&&"id"in u?n.jsx("div",{className:le["mc--card--actions--gift"],children:n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.check}),checked:!!p,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};xu.displayName="MiniCart.Card.Gift";const bu=({itemOffered:e})=>{const t=U.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:le["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};bu.displayName="MiniCart.Card.Media";const ju=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(m.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:m.helpers.classNameConcat(le["mc--card--name"],o),children:U.getProductNameWithoutSku(e??"",t??"")})]});ju.displayName="MiniCart.Card.Name";const Cu=({total:e,totalList:t})=>n.jsx(m.ProductInfo.Root,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:le["mc--card--price"],children:n.jsx(m.ProductInfo.Wrapper,{className:le["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:U.formatPriceToCurrency(t),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:U.formatPriceToCurrency(e),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:U.formatPriceToCurrency(e),size:"small"})})})})});Cu.displayName="MiniCart.ProductPrice";const Su=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=b.useState(""),i=b.useRef(null),{cartStore:{options:a}}=Re(),c=e.itemOffered.isVariationOf.productGroupID,l=b.useCallback(()=>{var g;const p=(g=a==null?void 0:a.find(d=>d.id===c))==null?void 0:g.texture;if(p){s(p);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const f=d.data[0].items.find(h=>h.itemId===e.id);if(f){const h=f.images.find(_=>t.includes(_.imageLabel));if(h!=null&&h.imageUrl){s(h.imageUrl);return}s(f.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return b.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(m.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(m.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(il,{})})})})};Su.displayName="MiniCart.Card.Style";const wu=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=U.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(m.Utils.Row,{alignItems:"center",children:[n.jsx(Su,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(m.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(m.ToggleSize.Wrapper,{size:"small",variation:"fill",className:le["mc-container-actions--toggle-size-modifier"],children:n.jsx(m.ToggleSize.Text,{children:s})})]})};wu.displayName="MiniCart.Card.Sku";const ft={Actions:vu,Gift:xu,Media:bu,Name:ju,Price:Cu,Sku:wu},dh=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},Pu=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var g,d;const{sendDataLayerEvent:l}=ue(),u=dh(r),p=(f,h)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(h==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:h,data:_})};return n.jsxs("div",{className:m.helpers.classNameConcat(le["mc--card"],e?"":le["mc--card--unavailable"]),children:[n.jsx(ft.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:le["mc--card--content-info"],children:[n.jsx(ft.Name,{name:((g=r.itemOffered)==null?void 0:g.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:le["mc--card--details"],children:[n.jsx("div",{className:le["mc--card--actions"],children:e?n.jsx(ft.Price,{total:u.price,totalList:u.listPrice}):n.jsx(m.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:le["mc--card--actions--secondary"],children:[e&&n.jsx(ft.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ft.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};Pu.displayName="MiniCart.Card";const Ru=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=Ot(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:m.helpers.classNameConcat(le["mc--cashback"],le[`mc--cashback--${e}`]),children:[n.jsx(m.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:U.formatPriceToCurrency(s)})," ",r.title]})]}):null};Ru.displayName="MiniCart.Cashback";const Eu=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=Re(),[l,u]=b.useState(!1),[p,g]=b.useState(!1),d=b.useCallback(()=>{let y="";return e==="coupon"?y=(a==null?void 0:a.coupon)??"":y=String((c==null?void 0:c.value)??""),y.toUpperCase()??""},[a,c,e]),[f,h]=b.useState(!!d()),_=async y=>{g(!0),!!d()&&(e==="coupon"?await s():await i(),h(!1),u(!1)),await o(y,e).then(S=>{if(!S.statusOk&&y||S.code!==200){y?(u(!0),h(!1)):u(!1);return}h(!0),u(!1)}).catch(()=>u(!0)).finally(()=>g(!1))};return n.jsx(Le.Field,{hasError:l,hasSuccess:f,isLoading:p,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};Eu.displayName="MiniCart.CouponSeller";const Au=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=be(),s=()=>{o.push(r.link)};return n.jsxs(m.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:le["mc--body--empty--feedback"],children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${le["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(m.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(m.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};Au.displayName="MiniCart.Feedback";const fh=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},Iu=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=b.useState(a);b.useEffect(()=>{t||u(a)},[a,t]);const p=()=>t?n.jsx(m.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(m.Icon,{name:c.check_circle}):null,g=()=>{if(s==="seller"){const _=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(_)}},d=()=>{if(s==="seller"){const _=String(a).includes(" - ")?a:l;u(_)}},f=_=>{const y=_.currentTarget.value;if(y===""&&typeof r=="function"||o&&String(a).length>0&&y!==String(a)||t&&y!==String(a)){u(""),r("");return}if(s==="cep"){const S=fh(y);u(S)}else u(y)},h=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(m.TextField.Input,{adornment:{end:p()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:g,onBlur:d,onChange:f,onKeyDown:h})};Iu.displayName="MiniCart.Field.Input";const Nu=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=b.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:p}=o,g=()=>a?"error":String(p).length&&i?"success":"none",d=b.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(p!==""||a?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,p,a]),f=g();return n.jsx("div",{ref:s,children:n.jsx(m.TextField.Structure,{className:le["mc--field"],input:n.jsx(Iu,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(m.Button,{"data-has-success":!i,size:"medium",title:String(p).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(p).length&&i||a?n.jsx(m.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(m.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};Nu.displayName="MiniCart.Field";const Tu=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=Re();return n.jsxs(m.Modal.Body,{className:le["mc--body"],children:[e,n.jsx("div",{className:le["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,p)=>{const g=l.find(d=>{var f;return d.code==="withoutStock"&&((f=d.fields)==null?void 0:f.ean)===u.ean})!==void 0;return n.jsx(Le.Card,{available:!u.availability.includes("outStock")||!g,index:p,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${p}`)}):n.jsx(Le.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};Tu.displayName="MiniCart.Body";const ku=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=Re();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(m.Modal.Footer,{className:le["mc--footer"],children:[e,n.jsx("div",{className:le["mc--footer--actions"],children:n.jsx(m.Button,{variant:"primary",size:"large","data-close":!0,className:le["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};ku.displayName="MiniCart.Modal.Footer";const Ou=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(m.Accordion.Wrapper,{className:le["mc--discount"],children:[n.jsx(m.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(m.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:r.arrow_down,size:"medium"}),className:m.helpers.classNameConcat(le["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(m.Accordion.Body,{className:le["mc--discount--body"],children:e}),n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});Ou.displayName="MiniCart.Discount";const Mu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=Et(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":U.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:U.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:U.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${U.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:le["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:le["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:le["mc--footer--total--info--content"],children:[l.message&&n.jsx(m.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(m.ProductInfo.Price,{className:le["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};Mu.displayName="MiniCart.Modal.Footer.Resume.Items";const Lu=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(Mu,{discount:r??0,total:t,shipping:o})};Lu.displayName="MiniCart.Modal.Footer.Totals";const Du=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=ge(),{cartStore:{items:o}}=Re(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(m.Modal.Header,{navigation:"top",className:le["mc--header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(m.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:le["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(m.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};Du.displayName="MiniCart.Modal.Header";const $u=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=Re(),{sendDataLayerEvent:i}=ue(),[a,c]=b.useState(!1),[l,u]=b.useState(!1),p=b.useCallback(()=>{var x;return((x=r==null?void 0:r.address)==null?void 0:x.postalCode)??""},[r]),[g,d]=b.useState(!!p()),f=()=>{d(!1),c(!1)},h=x=>{var S;if(typeof x=="object"&&(x!=null&&x.logisticsInfo))return(S=x.logisticsInfo)==null?void 0:S.reduce((v,j)=>{var k;const w=(k=j==null?void 0:j.slas)==null?void 0:k.find(P=>(P==null?void 0:P.id)===(j==null?void 0:j.selectedSla));if(!w)return v;const R=parseInt(String((w==null?void 0:w.shippingEstimate)??"").replace("bd","")),C=Number((((w==null?void 0:w.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=j==null?void 0:j.selectedSla,v.delivery_time=R.toString(),v.shipping=C,v.flag_retirada=(j==null?void 0:j.selectedDeliveryChannel)==="delivery"?"false":"true",v;const E=parseInt(v.delivery_time??"0");return R>E&&(v.delivery_time=R.toString()),v.shipping=(v.shipping??0)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async x=>{const S=x.replace(/\D/g,"");if(S.length!==8)return!1;try{return!(await rt.get(`https://viacep.com.br/ws/${S}/json/`)).data.erro}catch{return!1}},y=async x=>{if(u(!0),!!p()||!(x!=null&&x.trim())){await s(),f(),u(!1);return}if(!await _(x)){c(!0),d(!1),u(!1);return}try{const w=await o(x);if(c(!1),w){d(!0);const R=h(w);R&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:R}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(Le.Field,{hasSuccess:g,hasError:a,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:p(),ICONS:e,MINICART_CONFIG:t})};$u.displayName="MiniCart.Shipping";const zu=()=>{var r;const{tags:e}=Et(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(m.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(m.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};zu.displayName="MiniCart.TagMessage";const Le={Body:Tu,Card:Pu,Cashback:Ru,CouponSeller:Eu,Discount:Ou,Field:Nu,Feedback:Au,Shipping:$u,Footer:ku,Header:Du,TagMessage:zu,Totals:Lu},ph=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:p,cartStore:g}=Re(),{isMobile:d}=ge();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(le["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:p,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(Le.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(Le.TagMessage,{})}),n.jsxs(Le.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(Le.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(Le.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(Le.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(Le.Totals,{totalizers:g.totalizers})]}),n.jsx(_u,{ICONS:e})]})},Bu=({tipBar:e,minicartStyleModifiers:t,menuV2:r})=>{const{structureRef:o,rootRef:s,CONSTANTS:i}=je(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c},minicart:l}=i;return n.jsx(m.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Jo["header-animation"],children:n.jsxs(m.Header.Root,{innerRef:s,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[r??n.jsxs(n.Fragment,{children:[n.jsx("div",{className:U.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:n.jsx(su,{})}),n.jsx("div",{className:U.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:n.jsx(Vl,{})})]}),n.jsx(ah,{children:n.jsx(ph,{...l,minicartStyleModifiers:t})}),n.jsx(Yo,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),n.jsx(rs,{})]})})};Bu.displayName="Header";const mh="_shippingFreight_6z8rf_6",hh="_shippingFreight__postalCodeGrid_6z8rf_10",gh="_shippingFreight__grid_6z8rf_14",yh="_shippingFreight__grid__title_6z8rf_18",_h="_shippingFreight__grid__remember_6z8rf_29",vh="_postalCodeContainer_6z8rf_44",xh="_deliveryStatusBar__tag_6z8rf_49",bh="_deliveryStatusBarError__tag_6z8rf_66",jh="_deliveryInfo_6z8rf_74",Ch="_deliveryInfo__content_6z8rf_78",Sh="_deliveryInfo__text_6z8rf_84",wh="_deliveryInfo__title_6z8rf_89",Ph="_deliveryInfo__subtitle_6z8rf_99",Rh="_deliveryInfo__tooltipIcon_6z8rf_109",Eh="_deliveryInfo__tooltip_6z8rf_109",Ah="_freightGrid_6z8rf_148",Ih="_freightContainer_6z8rf_155",Nh="_freightOption__content_6z8rf_160",Th="_freightOption__value_6z8rf_166",kh="_freightOption__title_6z8rf_177",Oh="_freightOption__title_item_6z8rf_181",Mh="_freightOption__paragraph_6z8rf_192",he={shippingFreight:mh,shippingFreight__postalCodeGrid:hh,shippingFreight__grid:gh,shippingFreight__grid__title:yh,shippingFreight__grid__remember:_h,postalCodeContainer:vh,deliveryStatusBar__tag:xh,deliveryStatusBarError__tag:bh,deliveryInfo:jh,deliveryInfo__content:Ch,deliveryInfo__text:Sh,deliveryInfo__title:wh,deliveryInfo__subtitle:Ph,deliveryInfo__tooltipIcon:Rh,deliveryInfo__tooltip:Eh,freightGrid:Ah,freightContainer:Ih,freightOption__content:Nh,freightOption__value:Th,freightOption__title:kh,freightOption__title_item:Oh,freightOption__paragraph:Mh,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Lh=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=b.useState(!1),p=b.useRef(null),g=()=>u(d=>!d);return n.jsxs("div",{className:he.deliveryInfo,ref:p,children:[n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),n.jsxs("div",{className:he.deliveryInfo__content,children:[n.jsx("div",{className:he.deliveryInfo__icon,children:n.jsx(m.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:he.deliveryInfo__text,children:[n.jsxs("span",{className:he.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:he.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:he.deliveryInfo__tooltipIcon,onMouseEnter:g,onMouseLeave:g,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(m.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:he.deliveryInfo__tooltip,children:i})]})]})]})},Dh=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:he.freightOption,children:n.jsxs("div",{className:he.freightOption__content,children:[n.jsx("span",{className:he.freightOption__value,children:e}),n.jsx("span",{className:he.freightOption__title,children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:he.footer__item,children:[n.jsx("span",{className:he.freightOption__title_item,children:t}),r&&n.jsx("span",{className:he.freightOption__paragraph,children:r})]})})})]})}),$h=({children:e})=>n.jsx("div",{className:he.freightContainer,children:e}),zh=({children:e})=>n.jsx("div",{className:he.freightGrid,children:e}),Bh=({children:e})=>n.jsx("div",{className:he.postalCodeContainer,children:e}),si=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?he.deliveryStatusBarError:he.deliveryStatusBar,children:n.jsxs(m.Tag,{title:e,className:o?he.deliveryStatusBarError__tag:he.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),Fh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},qh=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Hh=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=ge();return n.jsx(n.Fragment,{children:u?n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(m.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:he["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},Uh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,z,T;const p=mt(),g=mt(H=>H.shipping),[d,f]=b.useState(),[h,_]=b.useState(!1),[y,x]=b.useState(!1),[S,v]=b.useState(!1),j=(I=(N=p.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,w=!(d!=null&&d.length)&&j?j:d,R=b.useRef(null),C=async H=>{const q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},E=async H=>{const W=H.target.value.replace(/\D/g,"");try{if((await rt.get(`https://viacep.com.br/ws/${W}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),x(!0);return}i&&i(""),x(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},k=async()=>{_(!0);try{const H=await rt.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:w});e(qh(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),g(w,"BRA")}},P=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await E({target:{value:w}}),h||(k(),a(!0))};return n.jsxs("div",{ref:R,style:{position:"relative"},children:[!o&&S?n.jsx(Hh,{component:c,isOpen:S,parent:R.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(m.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(m.TextField.Input,{defaultValue:(T=(z=p.shippingData)==null?void 0:z.address)==null?void 0:T.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:H=>{H.key==="Enter"&&P()},className:he["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(m.Button,{onClick:P,size:r,title:"button",children:h?n.jsx(m.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Wh=({children:e,freightConfig:t})=>n.jsxs("div",{className:he.shippingFreight,children:[n.jsxs("div",{className:he.shippingFreight__grid,children:[n.jsx("span",{className:he.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:he.shippingFreight__grid__remember,children:n.jsx(Xe,{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})})]}),n.jsx("div",{className:he.shippingFreight__postalCodeGrid,children:e})]}),Vh=({children:e})=>n.jsx("div",{className:he.freightContainer,children:e}),Fu=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ue(),[u,p]=b.useState(""),[g,d]=b.useState([]),[f,h]=b.useState(""),[_,y]=b.useState(!1),x=v=>p(v),S=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(j=>({shipping_tier:j.id,delivery_time:j.shippingEstimate.replace("bd",""),flag_pickup:j.name.toLowerCase().includes("retirada")?"true":"false",shipping:j.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(Vh,{className:e,children:[n.jsxs(Wh,{freightConfig:c.freightConfig,children:[n.jsx(Bh,{children:n.jsx(Uh,{onUpdateFreightItems:S,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:h,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(si,{size:s,message:f,setError:h}):g.length>0&&n.jsx(si,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),_&&!f?g.length>0&&n.jsxs($h,{children:[n.jsx(zh,{children:g.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(Dh,{id:v.id,value:U.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${Fh(v.shippingEstimate)}`,radioValue:u,changeValue:x},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(Lh,{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}):n.jsx(n.Fragment,{})]}):null]})},ot={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_e02qd_1","pdc-navigation--content":"_pdc-navigation--content_e02qd_28","pdc-navigation--filters":"_pdc-navigation--filters_e02qd_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_e02qd_67","pdc-navigation--selected":"_pdc-navigation--selected_e02qd_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_e02qd_150","pdc-navigation":"_pdc-navigation_e02qd_28"},Gh=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(m.BreadCrumb.Item,{adornment:{end:r&&n.jsx(m.Icon,{name:s.arrow_right})},children:r?n.jsx(Xe,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),qu=({ICONS:e,...t})=>{var a;const{state:r}=pr(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:o??o).slice(1).split("/"),i=Wc(s);return n.jsx("div",{...t,className:ot["pcd-navigation--breadcrumb"],children:n.jsx(m.BreadCrumb.DivWrapper,{children:n.jsx(m.BreadCrumb.List,{children:Array.isArray(i)&&i.map((c,l)=>{var u,p;return b.createElement(Gh,{...c,isLast:l!==i.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," "))})})})})};qu.displayName="PLPNavigation.BreadCrumb";const Hu=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:ot["pdc-navigation--content"],children:[n.jsx(gt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Hu.displayName="PLPNavigation.Content";const Kh="_sort_35wro_1",vr={sort:Kh,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},Xh=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(m.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:vr["sort-button"],children:e}),Qh=e=>n.jsx(m.RadioButton.Radio,{...e}),Yh=({children:e,className:t,name:r,...o})=>n.jsx(m.RadioButton.Group,{...o,name:r||"sort-group",className:m.helpers.classNameConcat(vr["sort-list"],t),children:e}),Zh=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(m.Card,{...i,shadow:r,className:m.helpers.classNameConcat(vr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Uu=b.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:m.helpers.classNameConcat(vr.sort,t),children:e}));Uu.displayName="SortRoot";const ns=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS:s,...i})=>{var d;const a=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=b.useState(a),{sendDataLayerEvent:u}=ue();b.useEffect(()=>{l(a||void 0)},[a]);const{ref:p}=du(()=>r(!1)),g=f=>{const h=f.target.value;l(h),typeof e=="function"&&e(h),u({functionKey:"filterEvent",data:{customData:{ordering:xt.options[h]}}}),r(!1)};return n.jsxs(Uu,{...i,ref:p,children:[n.jsx(Xh,{btnAdornment:{listOpen:n.jsx(m.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(m.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?xt.options[c]:xt.placeholder},"sort-button"),t&&n.jsx(Zh,{children:n.jsx(Yh,{name:"sort-group",value:c??"",onChange:g,children:Object.keys(xt.options).map(f=>n.jsx(Qh,{label:xt.options[f],value:f},f))})})]})};ns.displayName="Sort";const Wu=b.createContext({}),Jh=({children:e,...t})=>{const[r,o]=b.useState(!1);return n.jsx(Wu.Provider,{value:b.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},eg=()=>{const e=b.useContext(Wu);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Vu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:i,setOpenOrderBy:a}=eg();return n.jsxs("div",{className:ot["pdc-navigation--filters"],children:[n.jsx(gt.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:ot["pdc-navigation--filters--content"],children:[n.jsx(ns,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:a,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(m.Button,{adornment:{end:n.jsx(m.Icon,{name:e.arrow_down})},onClick:()=>i(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(gt.Total,{})]})]})};Vu.displayName="PLPNavigation.Filters";const Gu=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:i,searchParams:a,...c})=>{const l=b.useRef(null);return n.jsx(Jh,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:ot["pdc-navigation"],ref:l,style:{...o},children:n.jsx(gt.Content,{ICONS:i,PDC_NAVIGATION:s,searchParams:a,children:e})})})};Gu.displayName="Root";const Ku=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:ot["pdc-navigation--selected"],children:n.jsx("div",{className:ot["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(gt.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});Ku.displayName="PLPNavigation.Selected";const os=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,ss=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Xu=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Qu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},So=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=U.formatPriceToCurrency(Number(r));return`${U.formatPriceToCurrency(Number(t))} até ${o}`},tg=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},Yu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:os,createTagPrice:So,getAbsoluteMinMax:tg,getColor:ss,getName:Xu,getOrder:Qu},Symbol.toStringTag,{value:"Module"})),qe={"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"},Zu=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=_t();return n.jsxs("div",{...r,className:qe["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(Ke.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(Ke.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Zu.displayName="Filter.Item.Content";const Ju=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:qe["filter--empty"],children:[n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(m.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Ju.displayName="Filter.Empty";const ed=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=Qu({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(Ke.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(Ke.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(Ke.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(Ke.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:qe["filter--item"],style:{order:i},children:n.jsxs(m.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(m.Accordion.Header,{id:t.key,closeIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(m.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Xu({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(m.Accordion.Body,{children:a()})]})})};ed.displayName="Filter.Item";const is={"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"},td=({children:e,...t})=>n.jsx("div",{...t,className:is["product-variation-list--list"],children:e});td.displayName="ProductVariationList.List";const rd=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=be();return r==="size"?n.jsxs(m.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(m.ToggleSize.Text,{children:o})]}):n.jsxs(m.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(m.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(m.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(m.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};rd.displayName="ProductVariationList.Option";const nd=({children:e,...t})=>n.jsx("div",{className:is["product-variation-list"],...t,children:e});nd.displayName="ProductVariationList.Root";const od=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:is["product-variation-list--title"],children:[t?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});od.displayName="ProductVariationList.Title";const Ve={List:td,Option:rd,Title:od,Root:nd},sd=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Ve.Root,{...s,children:n.jsx(Ve.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Ve.Option,{active:a,"data-color":os({key:i,PLP_FILTERS:r}),fill:ss({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});sd.displayName="Filter.Item.Color";const id=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=_t(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:g})=>g==="price"))==null?void 0:u.value)==null?void 0:p.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:qe["filter--item--price"],children:n.jsxs(m.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:g=>{var d,f;g&&s({key:"price",value:`${(d=g.range)==null?void 0:d.min}:${(f=g.range)==null?void 0:f.max}`})},children:[n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};id.displayName="Filter.Item.Price";const ad=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Ve.Root,{...o,children:n.jsx(Ve.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Ve.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};ad.displayName="Filter.Item.Sizes";const cd=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:qe["filter--item--toggle"],children:n.jsx("div",{className:qe["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(m.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(m.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});cd.displayName="Filter.Item.Toggle";const ld=({...e})=>{const{isLoading:t}=_t();return n.jsx("div",{className:qe["filter--loading"],"data-active":t,...e,children:n.jsx(m.Spinner,{indicatorColor:"#000",background:"#222"})})};ld.displayName="Filter.Loading";const ud=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var p;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=_t();return n.jsxs(m.Modal.Root,{className:m.helpers.classNameConcat(qe["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(m.Modal.Header,{navigation:"top",children:[n.jsx(m.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(m.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(m.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(m.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:qe["filter--modal--body"],children:e}),n.jsx(Ke.Loading,{})]}),n.jsx(m.Modal.Footer,{children:n.jsxs("div",{className:qe["filter--modal--footer"],children:[n.jsx(m.Button,{"data-close":!0,size:"large",variant:"primary",children:(p=a.facets)!=null&&p.length?"ver resultados":"fechar"}),n.jsx(m.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};ud.displayName="Filter.Modal";const dd=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Zc,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(Ke.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});dd.displayName="Filter.Root";const fd=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=_t();return n.jsx("div",{className:qe["filter--selected"],children:n.jsx("div",{className:qe["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(m.Tag,{title:i==="price"?So({value:a}):a,adornment:{end:n.jsx(m.Icon,{name:e.close,size:"x-small"})},colorSquare:ss({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:os({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?So({value:a}):a},a))})})};fd.displayName="Filter.Selected";const Ke={Colors:sd,Content:Zu,Empty:Ju,Modal:ud,Item:ed,Root:dd,Loading:ld,Selected:fd,Price:id,Sizes:ad,Toggle:cd},{checkedColor:rg,createTagPrice:ii,getColor:ng}=Yu,pd=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(m.Tag,{title:(t==null?void 0:t.key)==="price"?ii({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(m.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:ng({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:rg({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?ii({value:t.value}):t.value.toUpperCase()});pd.displayName="PLPNavigation.Selected.Item";const md=()=>n.jsx(m.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});md.displayName="PLPNavigation.Total";const gt={BreadCrumb:qu,Content:Hu,Filters:Vu,Root:Gu,Selected:Ku,SelectedItem:pd,Total:md},as={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},hd=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=b.useMemo(()=>r%a===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:m.helpers.classNameConcat(as["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};hd.displayName="ProductList.Banner";const gd=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=be(),a=b.useRef(!1),c=b.useRef(null),[l,u]=b.useState([]),p=h=>i.push(h??""),g=async h=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:h,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!_.ok)throw new Error("Erro ao buscar similares.");const y=await _.json();u(y)}catch(_){console.error(_)}},d=b.useCallback(h=>{!r||!h||(typeof g=="function"&&g(r),a.current=!0)},[r]),f=b.useCallback((h,_)=>{if(!h.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(h.intersectionRatio>=_.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return b.useEffect(()=>{if(e||!t.current)return;const h={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,h)},h);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(xe.Actions,{...l,callback:p,isKit:e,children:!e&&n.jsx(xe.SizeSelector,{setNotify:o})})};gd.displayName="ProductList.Card.Actions";const yd=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:g,WishListToggle:d,...f})=>{const h=b.useRef(null),{availability:{status:_}}=o,y=b.useCallback((S,v)=>{var j;typeof u=="function"&&u((j=S.isVariantOf)==null?void 0:j.hasVariant,v)},[u]),x=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:m.helpers.classNameConcat(as["product-list--card"],e),"data-mobile":s,"data-order":i,ref:h,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(xe.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!_,CONSTANTS:g,WishListToggle:d,children:[n.jsx(xe.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(xe.Media,{showVideo:p,hasPriority:!0}),n.jsxs(xe.Wrapper,{type:"body",children:[n.jsx(xe.Title,{tag:a==null?void 0:a.institucional}),n.jsx(gd,{productId:o.isVariantOf.productGroupID,parent:h,setNotify:y,isKit:x,CONSTANTS:g}),!x&&n.jsx(xe.OutStock,{callback:y})]}),n.jsx(xe.Wrapper,{type:"footer",children:_&&n.jsx(xe.BuyButton,{isKit:x})})]}),t]})};yd.displayName="ProductList.Card";const _d=({children:e,className:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(as["product-list"],t),children:e});_d.displayName="ProductList.Grid";const og={Banner:hd,Card:yd,Root:_d,helpers:kp},sg="_footer__bottom_1o9af_2",ig="_footer__wrapper_1o9af_10",ag="_footer__main_1o9af_39",cg="_footer__legalInformation_1o9af_55",lg="_footer__column_1o9af_77",ug="_footer__columnContent_1o9af_87",dg="_footer__item_1o9af_91",fg="_footer__itemLink_1o9af_107",pg="_footer__columnTitle_1o9af_122",mg="_footer__columnTitleIcon_1o9af_134",hg="_footer__iconList_1o9af_147",gg="_footer__itemSmallText_1o9af_157",yg="_payment_1o9af_168",_g="_footer__iconContainer_1o9af_173",vg="_footer__iconListSubHeader_1o9af_178",xg="_accordionWrapper_1o9af_200",bg="_accordionHeader_1o9af_204",jg="_accordionTextWrapper_1o9af_208",ye={footer__bottom:sg,footer__wrapper:ig,footer__main:ag,footer__legalInformation:cg,footer__column:lg,footer__columnContent:ug,footer__item:dg,footer__itemLink:fg,footer__columnTitle:pg,footer__columnTitleIcon:mg,footer__iconList:hg,footer__itemSmallText:gg,payment:yg,footer__iconContainer:_g,footer__iconListSubHeader:vg,accordionWrapper:xg,accordionHeader:bg,accordionTextWrapper:jg,"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 vd={},cs={},Lt={};(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=o=>{r.has(o)||console.warn(o),r.add(o)}}})(Lt);var xd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,p=i?i*40:o,g=a?a*40:s,d=p&&g?"viewBox='0 0 "+p+" "+g+"'":"",f=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='"+f+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(xd);var xr={};(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 o}});const r=["default","imgix","cloudinary","akamai","custom"],o={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}})(xr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=Lt,r=xd,o=xr,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 p(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function g(h,_,y){let{deviceSizes:x,allSizes:S}=h;if(y){const j=/(^|\s)(1?\d?\d)vw/g,w=[];for(let R;R=j.exec(y);R)w.push(parseInt(R[2]));if(w.length){const R=Math.min(...w)*.01;return{widths:S.filter(C=>C>=x[0]*R),kind:"w"}}return{widths:S,kind:"w"}}return typeof _!="number"?{widths:x,kind:"w"}:{widths:[...new Set([_,_*2].map(j=>S.find(w=>w>=j)||S[S.length-1]))],kind:"x"}}function d(h){let{config:_,src:y,unoptimized:x,width:S,quality:v,sizes:j,loader:w}=h;if(x)return{src:y,srcSet:void 0,sizes:void 0};const{widths:R,kind:C}=g(_,S,j),E=R.length-1;return{sizes:!j&&C==="w"?"100vw":j,srcSet:R.map((k,P)=>w({config:_,src:y,quality:v,width:k})+" "+(C==="w"?k:P+1)+C).join(", "),src:w({config:_,src:y,quality:v,width:R[E]})}}function f(h,_){let{src:y,sizes:x,unoptimized:S=!1,priority:v=!1,loading:j,className:w,quality:R,width:C,height:E,fill:k=!1,style:P,onLoad:N,onLoadingComplete:I,placeholder:z="empty",blurDataURL:T,fetchPriority:H,layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B,...J}=h;const{imgConf:A,showAltText:O,blurComplete:D,defaultLoader:X}=_;let ne,ee=A||o.imageConfigDefault;if("allSizes"in ee)ne=ee;else{const G=[...ee.deviceSizes,...ee.imageSizes].sort((Ae,Y)=>Ae-Y),pe=ee.deviceSizes.sort((Ae,Y)=>Ae-Y);ne={...ee,allSizes:G,deviceSizes:pe}}let L=J.loader||X;delete J.loader,delete J.srcSet;const te="__next_img_default"in L;if(te){if(ne.loader==="custom")throw new Error('Image with src "'+y+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=L;L=pe=>{const{config:Ae,...Y}=pe;return G(Y)}}if(W){W==="fill"&&(k=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},pe={responsive:"100vw",fill:"100vw"},Ae=G[W];Ae&&(P={...P,...Ae});const Y=pe[W];Y&&!x&&(x=Y)}let Z="",re=p(C),$=p(E),M,oe;if(c(y)){const G=i(y)?y.default:y;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,oe=G.blurHeight,T=T||G.blurDataURL,Z=G.src,!k){if(!re&&!$)re=G.width,$=G.height;else if(re&&!$){const pe=re/G.width;$=Math.round(G.height*pe)}else if(!re&&$){const pe=$/G.height;re=Math.round(G.width*pe)}}}y=typeof y=="string"?y:Z;let ae=!v&&(j==="lazy"||typeof j>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(S=!0,ae=!1),ne.unoptimized&&(S=!0),te&&y.endsWith(".svg")&&!ne.dangerouslyAllowSVG&&(S=!0),v&&(H="high");const de=p(R);if(process.env.NODE_ENV!=="production"){if(ne.output==="export"&&te&&!S)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(!y)S=!0;else if(k){if(C)throw new Error('Image with src "'+y+'" has both "width" and "fill" properties. Only one should be used.');if(E)throw new Error('Image with src "'+y+'" has both "height" and "fill" properties. Only one should be used.');if(P!=null&&P.position&&P.position!=="absolute")throw new Error('Image with src "'+y+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(P!=null&&P.width&&P.width!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(P!=null&&P.height&&P.height!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof re>"u")throw new Error('Image with src "'+y+'" is missing required "width" property.');if(isNaN(re))throw new Error('Image with src "'+y+'" has invalid "width" property. Expected a numeric value in pixels but received "'+C+'".');if(typeof $>"u")throw new Error('Image with src "'+y+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+y+'" has invalid "height" property. Expected a numeric value in pixels but received "'+E+'".')}if(!s.includes(j))throw new Error('Image with src "'+y+'" has invalid "loading" property. Provided "'+j+'" should be one of '+s.map(String).join(",")+".");if(v&&j==="lazy")throw new Error('Image with src "'+y+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(z!=="empty"&&z!=="blur"&&!z.startsWith("data:image/"))throw new Error('Image with src "'+y+'" has invalid "placeholder" property "'+z+'".');if(z!=="empty"&&re&&$&&re*$<1600&&(0,t.warnOnce)('Image with src "'+y+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),z==="blur"&&!T){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" 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
- - Change the "src" property to a static import with one of the supported file types: `+V.join(",")+` (animated images not supported)
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 Z&&(0,t.warnOnce)('Image with src "'+y+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!j&&!ee){const V=L({config:re,src:y,width:te||400,quality:ue||75});let fe;try{fe=new URL(V)}catch{}(V===y||fe&&fe.pathname===y&&!fe.search)&&(0,t.warnOnce)('Image with src "'+y+`" 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[V,fe]of Object.entries({layout:U,objectFit:q,objectPosition:G,lazyBoundary:W,lazyRoot:z}))fe&&(0,t.warnOnce)('Image with src "'+y+'" has legacy prop "'+V+`". 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(V=>{for(const Ae of V.getEntries()){var fe;const Y=(Ae==null||(fe=Ae.element)==null?void 0:fe.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(V){console.error(V)}}}const de=Object.assign(O?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:G}:{},k?{}:{color:"transparent"},w),ce=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:te,heightInt:$,blurWidth:M,blurHeight:ne,blurDataURL:T||"",objectFit:de.objectFit})+'")':'url("'+B+'")':null;let F=ce?{backgroundSize:de.objectFit||"cover",backgroundPosition:de.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&B==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const _e=d({config:re,src:y,unoptimized:j,width:te,quality:ue,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let V;try{V=new URL(_e.src)}catch{V=new URL(_e.src,window.location.href)}l.set(V.href,{src:y,priority:v,placeholder:B})}return{props:{...Z,loading:ae?"lazy":S,fetchPriority:H,width:te,height:$,decoding:"async",className:E,style:{...de,...F},sizes:_e.sizes,srcSet:_e.srcSet,src:_e.src},meta:{unoptimized:j,priority:v,placeholder:B,fill:O}}}})(Xo);var go={exports:{}},Xt={exports:{}},Wr={},Gs;function Xh(){return Gs||(Gs=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",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const h=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(h,a))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(a.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),o(()=>(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}}(Wr)),Wr}var Vr={},Ks;function Yh(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(Vr)),Vr}var Gr={},Xs;function td(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(Gr)),Gr}var Kr={},Ys;function Qh(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return o||s&&i}}(Kr)),Kr}var Qs;function Zh(){return Qs||(Qs=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 h},default:function(){return b}});const o=Oe,i=cr()._(x),a=o._(Xh()),c=Yh(),l=td(),u=Qh(),p=Pt;function h(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 f=["name","httpEquiv","charSet","itemProp"];function m(){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 O=R.key.slice(R.key.indexOf("$")+1);j.has(O)?C=!1:j.add(O)}switch(R.type){case"title":case"base":v.has(R.type)?C=!1:v.add(R.type);break;case"meta":for(let O=0,w=f.length;O<w;O++){const N=f[O];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 _(j,v){const{inAmpMode:S}=v;return j.reduce(d,[]).reverse().concat(h(S).reverse()).filter(m()).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,p.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,p.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 y(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:_,headManager:E,inAmpMode:(0,u.isInAmpMode)(S)},v)}const b=y;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xt,Xt.exports)),Xt.exports}var Xr={},Zs;function Jh(){return Zs||(Zs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=pr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(Xr)),Xr}var Yr={},Qr={},Zr={exports:{}};const eg=$p(ie.__viteBrowserExternal);var Jr={},en={},tn,Js;function rd(){return Js||(Js=1,tn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[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}),tn}var rn,ei;function mr(){if(ei)return rn;ei=1;var e=rd();return rn=function(){return e()&&!!Symbol.toStringTag},rn}var nn,ti;function nd(){return ti||(ti=1,nn=Object),nn}var on,ri;function tg(){return ri||(ri=1,on=Error),on}var sn,ni;function rg(){return ni||(ni=1,sn=EvalError),sn}var an,oi;function ng(){return oi||(oi=1,an=RangeError),an}var cn,si;function og(){return si||(si=1,cn=ReferenceError),cn}var ln,ii;function od(){return ii||(ii=1,ln=SyntaxError),ln}var un,ai;function It(){return ai||(ai=1,un=TypeError),un}var dn,ci;function sg(){return ci||(ci=1,dn=URIError),dn}var fn,li;function ig(){return li||(li=1,fn=Math.abs),fn}var pn,ui;function ag(){return ui||(ui=1,pn=Math.floor),pn}var mn,di;function cg(){return di||(di=1,mn=Math.max),mn}var hn,fi;function lg(){return fi||(fi=1,hn=Math.min),hn}var gn,pi;function ug(){return pi||(pi=1,gn=Math.pow),gn}var yn,mi;function dg(){return mi||(mi=1,yn=Math.round),yn}var _n,hi;function fg(){return hi||(hi=1,_n=Number.isNaN||function(t){return t!==t}),_n}var vn,gi;function pg(){if(gi)return vn;gi=1;var e=fg();return vn=function(r){return e(r)||r===0?r:r<0?-1:1},vn}var bn,yi;function mg(){return yi||(yi=1,bn=Object.getOwnPropertyDescriptor),bn}var xn,_i;function ht(){if(_i)return xn;_i=1;var e=mg();if(e)try{e([],"length")}catch{e=null}return xn=e,xn}var Cn,vi;function hr(){if(vi)return Cn;vi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Cn=e,Cn}var Sn,bi;function hg(){if(bi)return Sn;bi=1;var e=typeof Symbol<"u"&&Symbol,t=rd();return Sn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Sn}var jn,xi;function sd(){return xi||(xi=1,jn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),jn}var En,Ci;function id(){if(Ci)return En;Ci=1;var e=nd();return En=e.getPrototypeOf||null,En}var wn,Si;function gg(){if(Si)return wn;Si=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var p=[],h=0;h<l.length;h+=1)p[h]=l[h];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},i=function(l,u){for(var p=[],h=u,d=0;h<l.length;h+=1,d+=1)p[d]=l[h];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 wn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var p=i(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(p,arguments));return Object(b)===b?b:this}return u.apply(l,s(p,arguments))},f=r(0,u.length-p.length),m=[],_=0;_<f;_++)m[_]="$"+_;if(h=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,h.prototype=new y,y.prototype=null}return h},wn}var Rn,ji;function Nt(){if(ji)return Rn;ji=1;var e=gg();return Rn=Function.prototype.bind||e,Rn}var An,Ei;function Yo(){return Ei||(Ei=1,An=Function.prototype.call),An}var Pn,wi;function Qo(){return wi||(wi=1,Pn=Function.prototype.apply),Pn}var In,Ri;function yg(){return Ri||(Ri=1,In=typeof Reflect<"u"&&Reflect&&Reflect.apply),In}var Nn,Ai;function ad(){if(Ai)return Nn;Ai=1;var e=Nt(),t=Qo(),r=Yo(),o=yg();return Nn=o||e.call(r,t),Nn}var Tn,Pi;function Zo(){if(Pi)return Tn;Pi=1;var e=Nt(),t=It(),r=Yo(),o=ad();return Tn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},Tn}var On,Ii;function _g(){if(Ii)return On;Ii=1;var e=Zo(),t=ht(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return On=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,On}var kn,Ni;function Jo(){if(Ni)return kn;Ni=1;var e=sd(),t=id(),r=_g();return kn=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,kn}var Mn,Ti;function cd(){if(Ti)return Mn;Ti=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Nt();return Mn=r.call(e,t),Mn}var Ln,Oi;function ld(){if(Oi)return Ln;Oi=1;var e,t=nd(),r=tg(),o=rg(),s=ng(),i=og(),a=od(),c=It(),l=sg(),u=ig(),p=ag(),h=cg(),d=lg(),f=ug(),m=dg(),_=pg(),y=Function,b=function(ee){try{return y('"use strict"; return ('+ee+").constructor;")()}catch{}},j=ht(),v=hr(),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=hg()(),C=Jo(),A=id(),O=sd(),w=Qo(),N=Yo(),I={},B=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__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%":o,"%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%":y,"%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%":p,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":_,"%Reflect.getPrototypeOf%":O};if(C)try{null.error}catch(ee){var H=C(C(ee));T["%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 T[Q]=te,te},q={__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"]},G=Nt(),W=cd(),z=G.call(N,Array.prototype.concat),Z=G.call(w,Array.prototype.splice),P=G.call(N,String.prototype.replace),k=G.call(N,String.prototype.slice),D=G.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,J=function(Q){var te=k(Q,0,1),$=k(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,ae,ue,de){M[M.length]=ue?P(de,re,"$1"):ae||ne}),M},L=function(Q,te){var $=Q,M;if(W(q,$)&&(M=q[$],$="%"+M[0]+"%"),W(T,$)){var ne=T[$];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 Ln=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),ae=ne.name,ue=ne.value,de=!1,ce=ne.alias;ce&&(M=ce[0],Z($,z([0,1],ce)));for(var F=1,_e=!0;F<$.length;F+=1){var se=$[F],ye=k(se,0,1),V=k(se,-1);if((ye==='"'||ye==="'"||ye==="`"||V==='"'||V==="'"||V==="`")&&ye!==V)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!_e)&&(de=!0),M+="."+se,ae="%"+M+"%",W(T,ae))ue=T[ae];else if(ue!=null){if(!(se in ue)){if(!te)throw new c("base intrinsic for "+Q+" exists, but the property is not available.");return}if(j&&F+1>=$.length){var fe=j(ue,se);_e=!!fe,_e&&"get"in fe&&!("originalValue"in fe.get)?ue=fe.get:ue=ue[se]}else _e=W(ue,se),ue=ue[se];_e&&!de&&(T[ae]=ue)}}return ue},Ln}var Dn,ki;function Tt(){if(ki)return Dn;ki=1;var e=ld(),t=Zo(),r=t([e("%String.prototype.indexOf%")]);return Dn=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},Dn}var $n,Mi;function vg(){if(Mi)return $n;Mi=1;var e=mr()(),t=Tt(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(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 o(arguments)}();return o.isLegacyArguments=s,$n=i?o:s,$n}var Bn,Li;function bg(){if(Li)return Bn;Li=1;var e=Tt(),t=mr()(),r=cd(),o=ht(),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 f=o(d,"lastIndex"),m=f&&r(f,"value");if(!m)return!1;try{i(d,l)}catch(_){return _===a}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return Bn=s,Bn}var zn,Di;function xg(){if(Di)return zn;Di=1;var e=Tt(),t=bg(),r=e("RegExp.prototype.exec"),o=It();return zn=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},zn}var Fn,$i;function Cg(){if($i)return Fn;$i=1;var e=Tt(),t=xg(),r=t(/^\s*(?:function)?\*/),o=mr()(),s=Jo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return Fn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!o){var h=i(p);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(p)===l},Fn}var qn,Bi;function Sg(){if(Bi)return qn;Bi=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(j){j!==o&&(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]",p="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(y=function(v){if((_||!v)&&(typeof v>"u"||typeof v=="object"))try{var S=c.call(v);return(S===h||S===d||S===f||S===l)&&v("")==null}catch{}return!1})}return qn=t?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(S){if(S!==o)return!1}return!i(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(m)return a(v);if(i(v))return!1;var S=c.call(v);return S!==u&&S!==p&&!/^\[object HTML/.test(S)?!1:a(v)},qn}var Hn,zi;function jg(){if(zi)return Hn;zi=1;var e=Sg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,p){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))},s=function(l,u,p){for(var h=0,d=l.length;h<d;h++)p==null?u(l.charAt(h),h,l):u.call(p,l.charAt(h),h,l)},i=function(l,u,p){for(var h in l)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))};function a(c){return t.call(c)==="[object Array]"}return Hn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),a(l)?o(l,u,h):typeof l=="string"?s(l,u,h):i(l,u,h)},Hn}var Un,Fi;function Eg(){return Fi||(Fi=1,Un=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Un}var Wn,qi;function wg(){if(qi)return Wn;qi=1;var e=Eg(),t=typeof globalThis>"u"?rl:globalThis;return Wn=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Wn}var Vn={exports:{}},Gn,Hi;function Rg(){if(Hi)return Gn;Hi=1;var e=hr(),t=od(),r=It(),o=ht();return Gn=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,p=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,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(h||!l&&!u&&!p)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gn}var Kn,Ui;function Ag(){if(Ui)return Kn;Ui=1;var e=hr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Kn=t,Kn}var Xn,Wi;function Pg(){if(Wi)return Xn;Wi=1;var e=ld(),t=Rg(),r=Ag()(),o=ht(),s=It(),i=e("%Math.floor%");return Xn=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],p=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(h=!1)}return(p||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Xn}var Yn,Vi;function Ig(){if(Vi)return Yn;Vi=1;var e=Nt(),t=Qo(),r=ad();return Yn=function(){return r(e,t,arguments)},Yn}var Gi;function Ng(){return Gi||(Gi=1,function(e){var t=Pg(),r=hr(),o=Zo(),s=Ig();e.exports=function(a){var c=o(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}(Vn)),Vn.exports}var Qn,Ki;function ud(){if(Ki)return Qn;Ki=1;var e=jg(),t=wg(),r=Ng(),o=Tt(),s=ht(),i=Jo(),a=o("Object.prototype.toString"),c=mr()(),l=typeof globalThis>"u"?rl:globalThis,u=t(),p=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(y,b){for(var j=0;j<y.length;j+=1)if(y[j]===b)return j;return-1},d={__proto__:null};c&&s&&i?e(u,function(_){var y=new l[_];if(Symbol.toStringTag in y&&i){var b=i(y),j=s(b,Symbol.toStringTag);if(!j&&b){var v=i(b);j=s(v,Symbol.toStringTag)}d["$"+_]=r(j.get)}}):e(u,function(_){var y=new l[_],b=y.slice||y.set;b&&(d["$"+_]=r(b))});var f=function(y){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(y)===v&&(b=p(v,1))}catch{}}),b},m=function(y){var b=!1;return e(d,function(j,v){if(!b)try{j(y),b=p(v,1)}catch{}}),b};return Qn=function(y){if(!y||typeof y!="object")return!1;if(!c){var b=p(a(y),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:m(y)}return s?f(y):null},Qn}var Zn,Xi;function Tg(){if(Xi)return Zn;Xi=1;var e=ud();return Zn=function(r){return!!e(r)},Zn}var Yi;function Og(){return Yi||(Yi=1,function(e){var t=vg(),r=Cg(),o=ud(),s=Tg();function i(F){return F.call.bind(F)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var f=i(Symbol.prototype.valueOf);function m(F,_e){if(typeof F!="object")return!1;try{return _e(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||k(F)}e.isArrayBufferView=y;function b(F){return o(F)==="Uint8Array"}e.isUint8Array=b;function j(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function S(F){return o(F)==="Uint32Array"}e.isUint32Array=S;function E(F){return o(F)==="Int8Array"}e.isInt8Array=E;function R(F){return o(F)==="Int16Array"}e.isInt16Array=R;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function A(F){return o(F)==="Float32Array"}e.isFloat32Array=A;function O(F){return o(F)==="Float64Array"}e.isFloat64Array=O;function w(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=w;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function B(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=B;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function U(F){return l(F)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:U.working?U(F):F instanceof WeakMap}e.isWeakMap=q;function G(F){return l(F)==="[object WeakSet]"}G.working=typeof WeakSet<"u"&&G(new WeakSet);function W(F){return G(F)}e.isWeakSet=W;function z(F){return l(F)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function Z(F){return typeof ArrayBuffer>"u"?!1:z.working?z(F):F instanceof ArrayBuffer}e.isArrayBuffer=Z;function P(F){return l(F)==="[object DataView]"}P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1));function k(F){return typeof DataView>"u"?!1:P.working?P(F):F instanceof DataView}e.isDataView=k;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(F){return l(F)==="[object SharedArrayBuffer]"}function re(F){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(F):F instanceof D)}e.isSharedArrayBuffer=re;function J(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=J;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function ee(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=ee;function Q(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Q;function te(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=te;function $(F){return m(F,u)}e.isNumberObject=$;function M(F){return m(F,p)}e.isStringObject=M;function ne(F){return m(F,h)}e.isBooleanObject=ne;function ae(F){return a&&m(F,d)}e.isBigIntObject=ae;function ue(F){return c&&m(F,f)}e.isSymbolObject=ue;function de(F){return $(F)||M(F)||ne(F)||ae(F)||ue(F)}e.isBoxedPrimitive=de;function ce(F){return typeof Uint8Array<"u"&&(Z(F)||re(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(en)),en}var Jn,Qi;function kg(){return Qi||(Qi=1,Jn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Jn}var Yt={exports:{}},Zi;function Mg(){return Zi||(Zi=1,typeof Object.create=="function"?Yt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yt.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),Yt.exports}var Ji;function Lg(){return Ji||(Ji=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var D=Object.keys(k),K={},re=0;re<D.length;re++)K[D[re]]=Object.getOwnPropertyDescriptor(k,D[re]);return K},r=/%[sdj%]/g;e.format=function(P){if(!E(P)){for(var k=[],D=0;D<arguments.length;D++)k.push(a(arguments[D]));return k.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)||!O(L)?J+=" "+L:J+=" "+a(L);return J},e.deprecate=function(P,k){if(typeof process<"u"&&process.noDeprecation===!0)return P;if(typeof process>"u")return function(){return e.deprecate(P,k).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),D=!0}return P.apply(this,arguments)}return K};var o={},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(),!o[P])if(s.test(P)){var k=process.pid;o[P]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",P,k,D)}}else o[P]=function(){};return o[P]};function a(P,k){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(k)?D.showHidden=k:k&&e._extend(D,k),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,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,k){var D=a.styles[k];return D?"\x1B["+a.colors[D][0]+"m"+P+"\x1B["+a.colors[D][1]+"m":P}function l(P,k){return P}function u(P){var k={};return P.forEach(function(D,K){k[D]=!0}),k}function p(P,k,D){if(P.customInspect&&k&&I(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var K=k.inspect(D,P);return E(K)||(K=p(P,K,D)),K}var re=h(P,k);if(re)return re;var J=Object.keys(k),L=u(J);if(P.showHidden&&(J=Object.getOwnPropertyNames(k)),N(k)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return d(k);if(J.length===0){if(I(k)){var ee=k.name?": "+k.name:"";return P.stylize("[Function"+ee+"]","special")}if(A(k))return P.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return P.stylize(Date.prototype.toString.call(k),"date");if(N(k))return d(k)}var Q="",te=!1,$=["{","}"];if(y(k)&&(te=!0,$=["[","]"]),I(k)){var M=k.name?": "+k.name:"";Q=" [Function"+M+"]"}if(A(k)&&(Q=" "+RegExp.prototype.toString.call(k)),w(k)&&(Q=" "+Date.prototype.toUTCString.call(k)),N(k)&&(Q=" "+d(k)),J.length===0&&(!te||k.length==0))return $[0]+Q+$[1];if(D<0)return A(k)?P.stylize(RegExp.prototype.toString.call(k),"regexp"):P.stylize("[Object]","special");P.seen.push(k);var ne;return te?ne=f(P,k,D,L,J):ne=J.map(function(ae){return m(P,k,D,L,ae,te)}),P.seen.pop(),_(ne,Q,$)}function h(P,k){if(C(k))return P.stylize("undefined","undefined");if(E(k)){var D="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(D,"string")}if(S(k))return P.stylize(""+k,"number");if(b(k))return P.stylize(""+k,"boolean");if(j(k))return P.stylize("null","null")}function d(P){return"["+Error.prototype.toString.call(P)+"]"}function f(P,k,D,K,re){for(var J=[],L=0,ee=k.length;L<ee;++L)G(k,String(L))?J.push(m(P,k,D,K,String(L),!0)):J.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||J.push(m(P,k,D,K,Q,!0))}),J}function m(P,k,D,K,re,J){var L,ee,Q;if(Q=Object.getOwnPropertyDescriptor(k,re)||{value:k[re]},Q.get?Q.set?ee=P.stylize("[Getter/Setter]","special"):ee=P.stylize("[Getter]","special"):Q.set&&(ee=P.stylize("[Setter]","special")),G(K,re)||(L="["+re+"]"),ee||(P.seen.indexOf(Q.value)<0?(j(D)?ee=p(P,Q.value,null):ee=p(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 _(P,k,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]+(k===""?"":k+`
23
- `)+" "+P.join(`,
24
- `)+" "+D[1]:D[0]+k+" "+P.join(", ")+" "+D[1]}e.types=Og();function y(P){return Array.isArray(P)}e.isArray=y;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 O(P)&&T(P)==="[object RegExp]"}e.isRegExp=A,e.types.isRegExp=A;function O(P){return typeof P=="object"&&P!==null}e.isObject=O;function w(P){return O(P)&&T(P)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(P){return O(P)&&(T(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=kg();function T(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 q(){var P=new Date,k=[H(P.getHours()),H(P.getMinutes()),H(P.getSeconds())].join(":");return[P.getDate(),U[P.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=Mg(),e._extend=function(P,k){if(!k||!O(k))return P;for(var D=Object.keys(k),K=D.length;K--;)P[D[K]]=k[D[K]];return P};function G(P,k){return Object.prototype.hasOwnProperty.call(P,k)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&k[W]){var D=k[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{k.apply(this,L)}catch(Q){re(Q)}return J}return Object.setPrototypeOf(D,Object.getPrototypeOf(k)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(k))},e.promisify.custom=W;function z(P,k){if(!P){var D=new Error("Promise was rejected with a falsy value");D.reason=P,P=D}return k(P)}function Z(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');function k(){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(z.bind(null,ee,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(P)),Object.defineProperties(k,t(P)),k}e.callbackify=Z}(Jr)),Jr}var ea;function Dg(){return ea||(ea=1,(()=>{var e={333:(s,i,a)=>{const c=a(137),l=a(179),u=a(13),p=a(719),h=(d,f={})=>{let m=[];if(Array.isArray(d))for(let _ of d){let y=h.create(_,f);Array.isArray(y)?m.push(...y):m.push(y)}else m=[].concat(h.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(m=[...new Set(m)]),m};h.parse=(d,f={})=>p(d,f),h.stringify=(d,f={})=>c(typeof d=="string"?h.parse(d,f):d,f),h.compile=(d,f={})=>(typeof d=="string"&&(d=h.parse(d,f)),l(d,f)),h.expand=(d,f={})=>{typeof d=="string"&&(d=h.parse(d,f));let m=u(d,f);return f.noempty===!0&&(m=m.filter(Boolean)),f.nodupes===!0&&(m=[...new Set(m)]),m},h.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?h.compile(d,f):h.expand(d,f),s.exports=h},179:(s,i,a)=>{const c=a(783),l=a(617),u=(p,h={})=>{let d=(f,m={})=>{let _=l.isInvalidBrace(m),y=f.invalid===!0&&h.escapeInvalid===!0,b=_===!0||y===!0,j=h.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return j+f.value;if(f.type==="open")return b?j+f.value:"(";if(f.type==="close")return b?j+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":b?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=l.reduce(f.nodes),E=c(...S,{...h,wrap:!1,toRegex:!0});if(E.length!==0)return S.length>1&&E.length>1?`(${E})`:E}if(f.nodes)for(let S of f.nodes)v+=d(S,f);return v};return d(p)};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),p=(d="",f="",m=!1)=>{let _=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return m?u.flatten(f).map(y=>`{${y}}`):f;for(let y of d)if(Array.isArray(y))for(let b of y)_.push(p(b,f,m));else for(let b of f)m===!0&&typeof b=="string"&&(b=`{${b}}`),_.push(Array.isArray(b)?p(y,b,m):y+b);return u.flatten(_)},h=(d,f={})=>{let m=f.rangeLimit===void 0?1e3:f.rangeLimit,_=(y,b={})=>{y.queue=[];let j=b,v=b.queue;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,v=j.queue;if(y.invalid||y.dollar){v.push(p(v.pop(),l(y,f)));return}if(y.type==="brace"&&y.invalid!==!0&&y.nodes.length===2){v.push(p(v.pop(),["{}"]));return}if(y.nodes&&y.ranges>0){let C=u.reduce(y.nodes);if(u.exceedsLimit(...C,f.step,m))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=c(...C,f);A.length===0&&(A=l(y,f)),v.push(p(v.pop(),A)),y.nodes=[];return}let S=u.encloseBrace(y),E=y.queue,R=y;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,E=R.queue;for(let C=0;C<y.nodes.length;C++){let A=y.nodes[C];if(A.type==="comma"&&y.type==="brace"){C===1&&E.push(""),E.push("");continue}if(A.type==="close"){v.push(p(v.pop(),E,S));continue}if(A.value&&A.type!=="open"){E.push(p(E.pop(),A.value));continue}A.nodes&&_(A,y)}return E};return u.flatten(_(d))};s.exports=h},719:(s,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:_,CHAR_RIGHT_CURLY_BRACE:y,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,O={})=>{if(typeof A!="string")throw new TypeError("Expected a string");let w=O||{},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],T=I,H=I,U=0,q=A.length,G=0,W=0,z;const Z=()=>A[G++],P=k=>{if(k.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&k.type==="text"){H.value+=k.value;return}return T.nodes.push(k),k.parent=T,k.prev=H,H=k,k};for(P({type:"bos"});G<q;)if(T=B[B.length-1],z=Z(),!(z===R||z===E)){if(z===u){P({type:"text",value:(O.keepEscaping?z:"")+Z()});continue}if(z===j){P({type:"text",value:"\\"+z});continue}if(z===b){U++;let k;for(;G<q&&(k=Z());){if(z+=k,k===b){U++;continue}if(k===u){z+=Z();continue}if(k===j&&(U--,U===0))break}P({type:"text",value:z});continue}if(z===f){T=P({type:"paren",nodes:[]}),B.push(T),P({type:"text",value:z});continue}if(z===m){if(T.type!=="paren"){P({type:"text",value:z});continue}T=B.pop(),P({type:"text",value:z}),T=B[B.length-1];continue}if(z===v||z===S||z===p){let k=z,D;for(O.keepQuotes!==!0&&(z="");G<q&&(D=Z());){if(D===u){z+=D+Z();continue}if(D===k){O.keepQuotes===!0&&(z+=D);break}z+=D}P({type:"text",value:z});continue}if(z===_){W++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||T.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};T=P(D),B.push(T),P({type:"open",value:z});continue}if(z===y){if(T.type!=="brace"){P({type:"text",value:z});continue}let k="close";T=B.pop(),T.close=!0,P({type:k,value:z}),W--,T=B[B.length-1];continue}if(z===h&&W>0){if(T.ranges>0){T.ranges=0;let k=T.nodes.shift();T.nodes=[k,{type:"text",value:c(T)}]}P({type:"comma",value:z}),T.commas++;continue}if(z===d&&W>0&&T.commas===0){let k=T.nodes;if(W===0||k.length===0){P({type:"text",value:z});continue}if(H.type==="dot"){if(T.range=[],H.value+=z,H.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,H.type="text";continue}T.ranges++,T.args=[];continue}if(H.type==="range"){k.pop();let D=k[k.length-1];D.value+=H.value+z,H=D,T.ranges--;continue}P({type:"dot",value:z});continue}P({type:"text",value:z})}do if(T=B.pop(),T.type!=="root"){T.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 k=B[B.length-1],D=k.nodes.indexOf(T);k.nodes.splice(D,1,...T.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 p=(h,d={})=>{let f=u.escapeInvalid&&c.isInvalidBrace(d),m=h.invalid===!0&&u.escapeInvalid===!0,_="";if(h.value)return(f||m)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let y of h.nodes)_+=p(y);return _};return p(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 p=0;p<u.length;p++){let h=u[p];Array.isArray(h)?l(h):h!==void 0&&c.push(h)}return c};return l(a),c}},783:(s,i,a)=>{/*!
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in J&&(0,t.warnOnce)('Image with src "'+y+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!S&&!te){const G=L({config:ne,src:y,width:re||400,quality:de||75});let pe;try{pe=new URL(G)}catch{}(G===y||pe&&pe.pathname===y&&!pe.search)&&(0,t.warnOnce)('Image with src "'+y+`" 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,pe]of Object.entries({layout:W,objectFit:q,objectPosition:K,lazyBoundary:V,lazyRoot:B}))pe&&(0,t.warnOnce)('Image with src "'+y+'" 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 Ae of G.getEntries()){var pe;const Y=(Ae==null||(pe=Ae.element)==null?void 0:pe.src)||"",se=l.get(Y);se&&!se.priority&&se.placeholder==="empty"&&!se.src.startsWith("data:")&&!se.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+se.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 fe=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:K}:{},O?{}:{color:"transparent"},P),ce=!D&&z!=="empty"?z==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:re,heightInt:$,blurWidth:M,blurHeight:oe,blurDataURL:T||"",objectFit:fe.objectFit})+'")':'url("'+z+'")':null;let F=ce?{backgroundSize:fe.objectFit||"cover",backgroundPosition:fe.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&z==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const ve=d({config:ne,src:y,unoptimized:S,width:re,quality:de,sizes:x,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(ve.src)}catch{G=new URL(ve.src,window.location.href)}l.set(G.href,{src:y,priority:v,placeholder:z})}return{props:{...J,loading:ae?"lazy":j,fetchPriority:H,width:re,height:$,decoding:"async",className:w,style:{...fe,...F},sizes:ve.sizes,srcSet:ve.srcSet,src:ve.src},meta:{unoptimized:S,priority:v,placeholder:z,fill:k}}}})(cs);var wo={exports:{}},rr={exports:{}},Jr={},ai;function Cg(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=b,r=typeof window>"u",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const g=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(g,a))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(a.children),u()}return o(()=>{var g;return c==null||(g=c.mountedInstances)==null||g.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),o(()=>(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}}(Jr)),Jr}var en={},ci;function Sg(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(b).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(en)),en}var tn={},li;function bd(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(b).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(tn)),tn}var rn={},ui;function wg(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return o||s&&i}}(rn)),rn}var di;function Pg(){return di||(di=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,v){for(var j in v)Object.defineProperty(S,j,{enumerable:!0,get:v[j]})}r(t,{defaultHead:function(){return g},default:function(){return x}});const o=Oe,i=hr()._(b),a=o._(Cg()),c=Sg(),l=bd(),u=wg(),p=Lt;function g(S){S===void 0&&(S=!1);const v=[i.default.createElement("meta",{charSet:"utf-8"})];return S||v.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(S,v){return typeof v=="string"||typeof v=="number"?S:v.type===i.default.Fragment?S.concat(i.default.Children.toArray(v.props.children).reduce((j,w)=>typeof w=="string"||typeof w=="number"?j:j.concat(w),[])):S.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function h(){const S=new Set,v=new Set,j=new Set,w={};return R=>{let C=!0,E=!1;if(R.key&&typeof R.key!="number"&&R.key.indexOf("$")>0){E=!0;const k=R.key.slice(R.key.indexOf("$")+1);S.has(k)?C=!1:S.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,P=f.length;k<P;k++){const N=f[k];if(R.props.hasOwnProperty(N))if(N==="charSet")j.has(N)?C=!1:j.add(N);else{const I=R.props[N],z=w[N]||new Set;(N!=="name"||!E)&&z.has(I)?C=!1:(z.add(I),w[N]=z)}}break}return C}}function _(S,v){const{inAmpMode:j}=v;return S.reduce(d,[]).reverse().concat(g(j).reverse()).filter(h()).reverse().map((w,R)=>{const C=w.key||R;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!j&&w.type==="link"&&w.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(E=>w.props.href.startsWith(E))){const E={...w.props||{}};return E["data-href"]=E.href,E.href=void 0,E["data-optimized-fonts"]=!0,i.default.cloneElement(w,E)}if(process.env.NODE_ENV==="development")if(w.type==="script"&&w.props.type!=="application/ld+json"){const E=w.props.src?'<script> tag with src="'+w.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+E+`). Use next/script instead.
14
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else w.type==="link"&&w.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+w.props.href+`"). Use Document instead.
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(w,{key:C})})}function y(S){let{children:v}=S;const j=(0,i.useContext)(c.AmpStateContext),w=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:_,headManager:w,inAmpMode:(0,u.isInAmpMode)(j)},v)}const x=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)}(rr,rr.exports)),rr.exports}var nn={},fi;function Rg(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(b),o=xr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(nn)),nn}var on={},sn={},an={exports:{}};const Eg=pm(U.__viteBrowserExternal);var cn={},ln={},un,pi;function jd(){return pi||(pi=1,un=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[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}),un}var dn,mi;function br(){if(mi)return dn;mi=1;var e=jd();return dn=function(){return e()&&!!Symbol.toStringTag},dn}var fn,hi;function Cd(){return hi||(hi=1,fn=Object),fn}var pn,gi;function Ag(){return gi||(gi=1,pn=Error),pn}var mn,yi;function Ig(){return yi||(yi=1,mn=EvalError),mn}var hn,_i;function Ng(){return _i||(_i=1,hn=RangeError),hn}var gn,vi;function Tg(){return vi||(vi=1,gn=ReferenceError),gn}var yn,xi;function Sd(){return xi||(xi=1,yn=SyntaxError),yn}var _n,bi;function Dt(){return bi||(bi=1,_n=TypeError),_n}var vn,ji;function kg(){return ji||(ji=1,vn=URIError),vn}var xn,Ci;function Og(){return Ci||(Ci=1,xn=Math.abs),xn}var bn,Si;function Mg(){return Si||(Si=1,bn=Math.floor),bn}var jn,wi;function Lg(){return wi||(wi=1,jn=Math.max),jn}var Cn,Pi;function Dg(){return Pi||(Pi=1,Cn=Math.min),Cn}var Sn,Ri;function $g(){return Ri||(Ri=1,Sn=Math.pow),Sn}var wn,Ei;function zg(){return Ei||(Ei=1,wn=Math.round),wn}var Pn,Ai;function Bg(){return Ai||(Ai=1,Pn=Number.isNaN||function(t){return t!==t}),Pn}var Rn,Ii;function Fg(){if(Ii)return Rn;Ii=1;var e=Bg();return Rn=function(r){return e(r)||r===0?r:r<0?-1:1},Rn}var En,Ni;function qg(){return Ni||(Ni=1,En=Object.getOwnPropertyDescriptor),En}var An,Ti;function vt(){if(Ti)return An;Ti=1;var e=qg();if(e)try{e([],"length")}catch{e=null}return An=e,An}var In,ki;function jr(){if(ki)return In;ki=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return In=e,In}var Nn,Oi;function Hg(){if(Oi)return Nn;Oi=1;var e=typeof Symbol<"u"&&Symbol,t=jd();return Nn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Nn}var Tn,Mi;function wd(){return Mi||(Mi=1,Tn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Tn}var kn,Li;function Pd(){if(Li)return kn;Li=1;var e=Cd();return kn=e.getPrototypeOf||null,kn}var On,Di;function Ug(){if(Di)return On;Di=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var p=[],g=0;g<l.length;g+=1)p[g]=l[g];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},i=function(l,u){for(var p=[],g=u,d=0;g<l.length;g+=1,d+=1)p[d]=l[g];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 On=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var p=i(arguments,1),g,d=function(){if(this instanceof g){var x=u.apply(this,s(p,arguments));return Object(x)===x?x:this}return u.apply(l,s(p,arguments))},f=r(0,u.length-p.length),h=[],_=0;_<f;_++)h[_]="$"+_;if(g=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,g.prototype=new y,y.prototype=null}return g},On}var Mn,$i;function $t(){if($i)return Mn;$i=1;var e=Ug();return Mn=Function.prototype.bind||e,Mn}var Ln,zi;function ls(){return zi||(zi=1,Ln=Function.prototype.call),Ln}var Dn,Bi;function us(){return Bi||(Bi=1,Dn=Function.prototype.apply),Dn}var $n,Fi;function Wg(){return Fi||(Fi=1,$n=typeof Reflect<"u"&&Reflect&&Reflect.apply),$n}var zn,qi;function Rd(){if(qi)return zn;qi=1;var e=$t(),t=us(),r=ls(),o=Wg();return zn=o||e.call(r,t),zn}var Bn,Hi;function ds(){if(Hi)return Bn;Hi=1;var e=$t(),t=Dt(),r=ls(),o=Rd();return Bn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},Bn}var Fn,Ui;function Vg(){if(Ui)return Fn;Ui=1;var e=ds(),t=vt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return Fn=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,Fn}var qn,Wi;function fs(){if(Wi)return qn;Wi=1;var e=wd(),t=Pd(),r=Vg();return qn=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,qn}var Hn,Vi;function Ed(){if(Vi)return Hn;Vi=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=$t();return Hn=r.call(e,t),Hn}var Un,Gi;function Ad(){if(Gi)return Un;Gi=1;var e,t=Cd(),r=Ag(),o=Ig(),s=Ng(),i=Tg(),a=Sd(),c=Dt(),l=kg(),u=Og(),p=Mg(),g=Lg(),d=Dg(),f=$g(),h=zg(),_=Fg(),y=Function,x=function(te){try{return y('"use strict"; return ('+te+").constructor;")()}catch{}},S=vt(),v=jr(),j=function(){throw new c},w=S?function(){try{return arguments.callee,j}catch{try{return S(arguments,"callee").get}catch{return j}}}():j,R=Hg()(),C=fs(),E=Pd(),k=wd(),P=us(),N=ls(),I={},z=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__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%":o,"%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%":y,"%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%":S,"%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%":w,"%TypedArray%":z,"%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%":P,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":E,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":g,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":_,"%Reflect.getPrototypeOf%":k};if(C)try{null.error}catch(te){var H=C(C(te));T["%Error.prototype%"]=H}var W=function te(Z){var re;if(Z==="%AsyncFunction%")re=x("async function () {}");else if(Z==="%GeneratorFunction%")re=x("function* () {}");else if(Z==="%AsyncGeneratorFunction%")re=x("async function* () {}");else if(Z==="%AsyncGenerator%"){var $=te("%AsyncGeneratorFunction%");$&&(re=$.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var M=te("%AsyncGenerator%");M&&C&&(re=C(M.prototype))}return T[Z]=re,re},q={__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=$t(),V=Ed(),B=K.call(N,Array.prototype.concat),J=K.call(P,Array.prototype.splice),A=K.call(N,String.prototype.replace),O=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ee=function(Z){var re=O(Z,0,1),$=O(Z,-1);if(re==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&re!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var M=[];return A(Z,X,function(oe,ae,de,fe){M[M.length]=de?A(fe,ne,"$1"):ae||oe}),M},L=function(Z,re){var $=Z,M;if(V(q,$)&&(M=q[$],$="%"+M[0]+"%"),V(T,$)){var oe=T[$];if(oe===I&&(oe=W($)),typeof oe>"u"&&!re)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:oe}}throw new a("intrinsic "+Z+" does not exist!")};return Un=function(Z,re){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ee(Z),M=$.length>0?$[0]:"",oe=L("%"+M+"%",re),ae=oe.name,de=oe.value,fe=!1,ce=oe.alias;ce&&(M=ce[0],J($,B([0,1],ce)));for(var F=1,ve=!0;F<$.length;F+=1){var ie=$[F],_e=O(ie,0,1),G=O(ie,-1);if((_e==='"'||_e==="'"||_e==="`"||G==='"'||G==="'"||G==="`")&&_e!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!ve)&&(fe=!0),M+="."+ie,ae="%"+M+"%",V(T,ae))de=T[ae];else if(de!=null){if(!(ie in de)){if(!re)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&F+1>=$.length){var pe=S(de,ie);ve=!!pe,ve&&"get"in pe&&!("originalValue"in pe.get)?de=pe.get:de=de[ie]}else ve=V(de,ie),de=de[ie];ve&&!fe&&(T[ae]=de)}}return de},Un}var Wn,Ki;function zt(){if(Ki)return Wn;Ki=1;var e=Ad(),t=ds(),r=t([e("%String.prototype.indexOf%")]);return Wn=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},Wn}var Vn,Xi;function Gg(){if(Xi)return Vn;Xi=1;var e=br()(),t=zt(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(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 o(arguments)}();return o.isLegacyArguments=s,Vn=i?o:s,Vn}var Gn,Qi;function Kg(){if(Qi)return Gn;Qi=1;var e=zt(),t=br()(),r=Ed(),o=vt(),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 f=o(d,"lastIndex"),h=f&&r(f,"value");if(!h)return!1;try{i(d,l)}catch(_){return _===a}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return Gn=s,Gn}var Kn,Yi;function Xg(){if(Yi)return Kn;Yi=1;var e=zt(),t=Kg(),r=e("RegExp.prototype.exec"),o=Dt();return Kn=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},Kn}var Xn,Zi;function Qg(){if(Zi)return Xn;Zi=1;var e=zt(),t=Xg(),r=t(/^\s*(?:function)?\*/),o=br()(),s=fs(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return Xn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!o){var g=i(p);return g==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(p)===l},Xn}var Qn,Ji;function Yg(){if(Ji)return Qn;Ji=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(S){S!==o&&(t=null)}else t=null;var s=/^\s*class\b/,i=function(v){try{var j=e.call(v);return s.test(j)}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]",p="[object GeneratorFunction]",g="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var x=document.all;c.call(x)===c.call(document.all)&&(y=function(v){if((_||!v)&&(typeof v>"u"||typeof v=="object"))try{var j=c.call(v);return(j===g||j===d||j===f||j===l)&&v("")==null}catch{}return!1})}return Qn=t?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(j){if(j!==o)return!1}return!i(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(h)return a(v);if(i(v))return!1;var j=c.call(v);return j!==u&&j!==p&&!/^\[object HTML/.test(j)?!1:a(v)},Qn}var Yn,ea;function Zg(){if(ea)return Yn;ea=1;var e=Yg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,p){for(var g=0,d=l.length;g<d;g++)r.call(l,g)&&(p==null?u(l[g],g,l):u.call(p,l[g],g,l))},s=function(l,u,p){for(var g=0,d=l.length;g<d;g++)p==null?u(l.charAt(g),g,l):u.call(p,l.charAt(g),g,l)},i=function(l,u,p){for(var g in l)r.call(l,g)&&(p==null?u(l[g],g,l):u.call(p,l[g],g,l))};function a(c){return t.call(c)==="[object Array]"}return Yn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=p),a(l)?o(l,u,g):typeof l=="string"?s(l,u,g):i(l,u,g)},Yn}var Zn,ta;function Jg(){return ta||(ta=1,Zn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Zn}var Jn,ra;function ey(){if(ra)return Jn;ra=1;var e=Jg(),t=typeof globalThis>"u"?bl:globalThis;return Jn=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Jn}var eo={exports:{}},to,na;function ty(){if(na)return to;na=1;var e=jr(),t=Sd(),r=Dt(),o=vt();return to=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,p=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,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(g||!l&&!u&&!p)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},to}var ro,oa;function ry(){if(oa)return ro;oa=1;var e=jr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ro=t,ro}var no,sa;function ny(){if(sa)return no;sa=1;var e=Ad(),t=ty(),r=ry()(),o=vt(),s=Dt(),i=e("%Math.floor%");return no=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],p=!0,g=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(g=!1)}return(p||g||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},no}var oo,ia;function oy(){if(ia)return oo;ia=1;var e=$t(),t=us(),r=Rd();return oo=function(){return r(e,t,arguments)},oo}var aa;function sy(){return aa||(aa=1,function(e){var t=ny(),r=jr(),o=ds(),s=oy();e.exports=function(a){var c=o(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}(eo)),eo.exports}var so,ca;function Id(){if(ca)return so;ca=1;var e=Zg(),t=ey(),r=sy(),o=zt(),s=vt(),i=fs(),a=o("Object.prototype.toString"),c=br()(),l=typeof globalThis>"u"?bl:globalThis,u=t(),p=o("String.prototype.slice"),g=o("Array.prototype.indexOf",!0)||function(y,x){for(var S=0;S<y.length;S+=1)if(y[S]===x)return S;return-1},d={__proto__:null};c&&s&&i?e(u,function(_){var y=new l[_];if(Symbol.toStringTag in y&&i){var x=i(y),S=s(x,Symbol.toStringTag);if(!S&&x){var v=i(x);S=s(v,Symbol.toStringTag)}d["$"+_]=r(S.get)}}):e(u,function(_){var y=new l[_],x=y.slice||y.set;x&&(d["$"+_]=r(x))});var f=function(y){var x=!1;return e(d,function(S,v){if(!x)try{"$"+S(y)===v&&(x=p(v,1))}catch{}}),x},h=function(y){var x=!1;return e(d,function(S,v){if(!x)try{S(y),x=p(v,1)}catch{}}),x};return so=function(y){if(!y||typeof y!="object")return!1;if(!c){var x=p(a(y),8,-1);return g(u,x)>-1?x:x!=="Object"?!1:h(y)}return s?f(y):null},so}var io,la;function iy(){if(la)return io;la=1;var e=Id();return io=function(r){return!!e(r)},io}var ua;function ay(){return ua||(ua=1,function(e){var t=Gg(),r=Qg(),o=Id(),s=iy();function i(F){return F.call.bind(F)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),g=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var f=i(Symbol.prototype.valueOf);function h(F,ve){if(typeof F!="object")return!1;try{return ve(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||O(F)}e.isArrayBufferView=y;function x(F){return o(F)==="Uint8Array"}e.isUint8Array=x;function S(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function j(F){return o(F)==="Uint32Array"}e.isUint32Array=j;function w(F){return o(F)==="Int8Array"}e.isInt8Array=w;function R(F){return o(F)==="Int16Array"}e.isInt16Array=R;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function E(F){return o(F)==="Float32Array"}e.isFloat32Array=E;function k(F){return o(F)==="Float64Array"}e.isFloat64Array=k;function P(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=P;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function z(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=z;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function W(F){return l(F)==="[object WeakMap]"}W.working=typeof WeakMap<"u"&&W(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:W.working?W(F):F instanceof WeakMap}e.isWeakMap=q;function K(F){return l(F)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function V(F){return K(F)}e.isWeakSet=V;function B(F){return l(F)==="[object ArrayBuffer]"}B.working=typeof ArrayBuffer<"u"&&B(new ArrayBuffer);function J(F){return typeof ArrayBuffer>"u"?!1:B.working?B(F):F instanceof ArrayBuffer}e.isArrayBuffer=J;function A(F){return l(F)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function O(F){return typeof DataView>"u"?!1:A.working?A(F):F instanceof DataView}e.isDataView=O;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(F){return l(F)==="[object SharedArrayBuffer]"}function ne(F){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(F):F instanceof D)}e.isSharedArrayBuffer=ne;function ee(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function te(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=te;function Z(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Z;function re(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function $(F){return h(F,u)}e.isNumberObject=$;function M(F){return h(F,p)}e.isStringObject=M;function oe(F){return h(F,g)}e.isBooleanObject=oe;function ae(F){return a&&h(F,d)}e.isBigIntObject=ae;function de(F){return c&&h(F,f)}e.isSymbolObject=de;function fe(F){return $(F)||M(F)||oe(F)||ae(F)||de(F)}e.isBoxedPrimitive=fe;function ce(F){return typeof Uint8Array<"u"&&(J(F)||ne(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(ln)),ln}var ao,da;function cy(){return da||(da=1,ao=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),ao}var nr={exports:{}},fa;function ly(){return fa||(fa=1,typeof Object.create=="function"?nr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:nr.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),nr.exports}var pa;function uy(){return pa||(pa=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var D=Object.keys(O),X={},ne=0;ne<D.length;ne++)X[D[ne]]=Object.getOwnPropertyDescriptor(O,D[ne]);return X},r=/%[sdj%]/g;e.format=function(A){if(!w(A)){for(var O=[],D=0;D<arguments.length;D++)O.push(a(arguments[D]));return O.join(" ")}for(var D=1,X=arguments,ne=X.length,ee=String(A).replace(r,function(te){if(te==="%%")return"%";if(D>=ne)return te;switch(te){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 te}}),L=X[D];D<ne;L=X[++D])S(L)||!k(L)?ee+=" "+L:ee+=" "+a(L);return ee},e.deprecate=function(A,O){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return e.deprecate(A,O).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),D=!0}return A.apply(this,arguments)}return X};var o={},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(A){if(A=A.toUpperCase(),!o[A])if(s.test(A)){var O=process.pid;o[A]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",A,O,D)}}else o[A]=function(){};return o[A]};function a(A,O){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),x(O)?D.showHidden=O:O&&e._extend(D,O),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,A,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(A,O){var D=a.styles[O];return D?"\x1B["+a.colors[D][0]+"m"+A+"\x1B["+a.colors[D][1]+"m":A}function l(A,O){return A}function u(A){var O={};return A.forEach(function(D,X){O[D]=!0}),O}function p(A,O,D){if(A.customInspect&&O&&I(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(D,A);return w(X)||(X=p(A,X,D)),X}var ne=g(A,O);if(ne)return ne;var ee=Object.keys(O),L=u(ee);if(A.showHidden&&(ee=Object.getOwnPropertyNames(O)),N(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return d(O);if(ee.length===0){if(I(O)){var te=O.name?": "+O.name:"";return A.stylize("[Function"+te+"]","special")}if(E(O))return A.stylize(RegExp.prototype.toString.call(O),"regexp");if(P(O))return A.stylize(Date.prototype.toString.call(O),"date");if(N(O))return d(O)}var Z="",re=!1,$=["{","}"];if(y(O)&&(re=!0,$=["[","]"]),I(O)){var M=O.name?": "+O.name:"";Z=" [Function"+M+"]"}if(E(O)&&(Z=" "+RegExp.prototype.toString.call(O)),P(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),N(O)&&(Z=" "+d(O)),ee.length===0&&(!re||O.length==0))return $[0]+Z+$[1];if(D<0)return E(O)?A.stylize(RegExp.prototype.toString.call(O),"regexp"):A.stylize("[Object]","special");A.seen.push(O);var oe;return re?oe=f(A,O,D,L,ee):oe=ee.map(function(ae){return h(A,O,D,L,ae,re)}),A.seen.pop(),_(oe,Z,$)}function g(A,O){if(C(O))return A.stylize("undefined","undefined");if(w(O)){var D="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(D,"string")}if(j(O))return A.stylize(""+O,"number");if(x(O))return A.stylize(""+O,"boolean");if(S(O))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function f(A,O,D,X,ne){for(var ee=[],L=0,te=O.length;L<te;++L)K(O,String(L))?ee.push(h(A,O,D,X,String(L),!0)):ee.push("");return ne.forEach(function(Z){Z.match(/^\d+$/)||ee.push(h(A,O,D,X,Z,!0))}),ee}function h(A,O,D,X,ne,ee){var L,te,Z;if(Z=Object.getOwnPropertyDescriptor(O,ne)||{value:O[ne]},Z.get?Z.set?te=A.stylize("[Getter/Setter]","special"):te=A.stylize("[Getter]","special"):Z.set&&(te=A.stylize("[Setter]","special")),K(X,ne)||(L="["+ne+"]"),te||(A.seen.indexOf(Z.value)<0?(S(D)?te=p(A,Z.value,null):te=p(A,Z.value,D-1),te.indexOf(`
16
+ `)>-1&&(ee?te=te.split(`
17
+ `).map(function(re){return" "+re}).join(`
18
+ `).slice(2):te=`
19
+ `+te.split(`
20
+ `).map(function(re){return" "+re}).join(`
21
+ `))):te=A.stylize("[Circular]","special")),C(L)){if(ee&&ne.match(/^\d+$/))return te;L=JSON.stringify(""+ne),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=A.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=A.stylize(L,"string"))}return L+": "+te}function _(A,O,D){var X=A.reduce(function(ne,ee){return ee.indexOf(`
22
+ `)>=0,ne+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(O===""?"":O+`
23
+ `)+" "+A.join(`,
24
+ `)+" "+D[1]:D[0]+O+" "+A.join(", ")+" "+D[1]}e.types=ay();function y(A){return Array.isArray(A)}e.isArray=y;function x(A){return typeof A=="boolean"}e.isBoolean=x;function S(A){return A===null}e.isNull=S;function v(A){return A==null}e.isNullOrUndefined=v;function j(A){return typeof A=="number"}e.isNumber=j;function w(A){return typeof A=="string"}e.isString=w;function R(A){return typeof A=="symbol"}e.isSymbol=R;function C(A){return A===void 0}e.isUndefined=C;function E(A){return k(A)&&T(A)==="[object RegExp]"}e.isRegExp=E,e.types.isRegExp=E;function k(A){return typeof A=="object"&&A!==null}e.isObject=k;function P(A){return k(A)&&T(A)==="[object Date]"}e.isDate=P,e.types.isDate=P;function N(A){return k(A)&&(T(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(A){return typeof A=="function"}e.isFunction=I;function z(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=z,e.isBuffer=cy();function T(A){return Object.prototype.toString.call(A)}function H(A){return A<10?"0"+A.toString(10):A.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var A=new Date,O=[H(A.getHours()),H(A.getMinutes()),H(A.getSeconds())].join(":");return[A.getDate(),W[A.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=ly(),e._extend=function(A,O){if(!O||!k(O))return A;for(var D=Object.keys(O),X=D.length;X--;)A[D[X]]=O[D[X]];return A};function K(A,O){return Object.prototype.hasOwnProperty.call(A,O)}var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&O[V]){var D=O[V];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,ne,ee=new Promise(function(Z,re){X=Z,ne=re}),L=[],te=0;te<arguments.length;te++)L.push(arguments[te]);L.push(function(Z,re){Z?ne(Z):X(re)});try{O.apply(this,L)}catch(Z){ne(Z)}return ee}return Object.setPrototypeOf(D,Object.getPrototypeOf(O)),V&&Object.defineProperty(D,V,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(O))},e.promisify.custom=V;function B(A,O){if(!A){var D=new Error("Promise was rejected with a falsy value");D.reason=A,A=D}return O(A)}function J(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var ne=D.pop();if(typeof ne!="function")throw new TypeError("The last argument must be of type Function");var ee=this,L=function(){return ne.apply(ee,arguments)};A.apply(this,D).then(function(te){process.nextTick(L.bind(null,null,te))},function(te){process.nextTick(B.bind(null,te,L))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(A)),Object.defineProperties(O,t(A)),O}e.callbackify=J}(cn)),cn}var ma;function dy(){return ma||(ma=1,(()=>{var e={333:(s,i,a)=>{const c=a(137),l=a(179),u=a(13),p=a(719),g=(d,f={})=>{let h=[];if(Array.isArray(d))for(let _ of d){let y=g.create(_,f);Array.isArray(y)?h.push(...y):h.push(y)}else h=[].concat(g.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(h=[...new Set(h)]),h};g.parse=(d,f={})=>p(d,f),g.stringify=(d,f={})=>c(typeof d=="string"?g.parse(d,f):d,f),g.compile=(d,f={})=>(typeof d=="string"&&(d=g.parse(d,f)),l(d,f)),g.expand=(d,f={})=>{typeof d=="string"&&(d=g.parse(d,f));let h=u(d,f);return f.noempty===!0&&(h=h.filter(Boolean)),f.nodupes===!0&&(h=[...new Set(h)]),h},g.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?g.compile(d,f):g.expand(d,f),s.exports=g},179:(s,i,a)=>{const c=a(783),l=a(617),u=(p,g={})=>{let d=(f,h={})=>{let _=l.isInvalidBrace(h),y=f.invalid===!0&&g.escapeInvalid===!0,x=_===!0||y===!0,S=g.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return S+f.value;if(f.type==="open")return x?S+f.value:"(";if(f.type==="close")return x?S+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":x?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let j=l.reduce(f.nodes),w=c(...j,{...g,wrap:!1,toRegex:!0});if(w.length!==0)return j.length>1&&w.length>1?`(${w})`:w}if(f.nodes)for(let j of f.nodes)v+=d(j,f);return v};return d(p)};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),p=(d="",f="",h=!1)=>{let _=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return h?u.flatten(f).map(y=>`{${y}}`):f;for(let y of d)if(Array.isArray(y))for(let x of y)_.push(p(x,f,h));else for(let x of f)h===!0&&typeof x=="string"&&(x=`{${x}}`),_.push(Array.isArray(x)?p(y,x,h):y+x);return u.flatten(_)},g=(d,f={})=>{let h=f.rangeLimit===void 0?1e3:f.rangeLimit,_=(y,x={})=>{y.queue=[];let S=x,v=x.queue;for(;S.type!=="brace"&&S.type!=="root"&&S.parent;)S=S.parent,v=S.queue;if(y.invalid||y.dollar){v.push(p(v.pop(),l(y,f)));return}if(y.type==="brace"&&y.invalid!==!0&&y.nodes.length===2){v.push(p(v.pop(),["{}"]));return}if(y.nodes&&y.ranges>0){let C=u.reduce(y.nodes);if(u.exceedsLimit(...C,f.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let E=c(...C,f);E.length===0&&(E=l(y,f)),v.push(p(v.pop(),E)),y.nodes=[];return}let j=u.encloseBrace(y),w=y.queue,R=y;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,w=R.queue;for(let C=0;C<y.nodes.length;C++){let E=y.nodes[C];if(E.type==="comma"&&y.type==="brace"){C===1&&w.push(""),w.push("");continue}if(E.type==="close"){v.push(p(v.pop(),w,j));continue}if(E.value&&E.type!=="open"){w.push(p(w.pop(),E.value));continue}E.nodes&&_(E,y)}return w};return u.flatten(_(d))};s.exports=g},719:(s,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:p,CHAR_COMMA:g,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:_,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:x,CHAR_RIGHT_SQUARE_BRACKET:S,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:j,CHAR_NO_BREAK_SPACE:w,CHAR_ZERO_WIDTH_NOBREAK_SPACE:R}=a(457),C=(E,k={})=>{if(typeof E!="string")throw new TypeError("Expected a string");let P=k||{},N=typeof P.maxLength=="number"?Math.min(l,P.maxLength):l;if(E.length>N)throw new SyntaxError(`Input length (${E.length}), exceeds max characters (${N})`);let I={type:"root",input:E,nodes:[]},z=[I],T=I,H=I,W=0,q=E.length,K=0,V=0,B;const J=()=>E[K++],A=O=>{if(O.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&O.type==="text"){H.value+=O.value;return}return T.nodes.push(O),O.parent=T,O.prev=H,H=O,O};for(A({type:"bos"});K<q;)if(T=z[z.length-1],B=J(),!(B===R||B===w)){if(B===u){A({type:"text",value:(k.keepEscaping?B:"")+J()});continue}if(B===S){A({type:"text",value:"\\"+B});continue}if(B===x){W++;let O;for(;K<q&&(O=J());){if(B+=O,O===x){W++;continue}if(O===u){B+=J();continue}if(O===S&&(W--,W===0))break}A({type:"text",value:B});continue}if(B===f){T=A({type:"paren",nodes:[]}),z.push(T),A({type:"text",value:B});continue}if(B===h){if(T.type!=="paren"){A({type:"text",value:B});continue}T=z.pop(),A({type:"text",value:B}),T=z[z.length-1];continue}if(B===v||B===j||B===p){let O=B,D;for(k.keepQuotes!==!0&&(B="");K<q&&(D=J());){if(D===u){B+=D+J();continue}if(D===O){k.keepQuotes===!0&&(B+=D);break}B+=D}A({type:"text",value:B});continue}if(B===_){V++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||T.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};T=A(D),z.push(T),A({type:"open",value:B});continue}if(B===y){if(T.type!=="brace"){A({type:"text",value:B});continue}let O="close";T=z.pop(),T.close=!0,A({type:O,value:B}),V--,T=z[z.length-1];continue}if(B===g&&V>0){if(T.ranges>0){T.ranges=0;let O=T.nodes.shift();T.nodes=[O,{type:"text",value:c(T)}]}A({type:"comma",value:B}),T.commas++;continue}if(B===d&&V>0&&T.commas===0){let O=T.nodes;if(V===0||O.length===0){A({type:"text",value:B});continue}if(H.type==="dot"){if(T.range=[],H.value+=B,H.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,H.type="text";continue}T.ranges++,T.args=[];continue}if(H.type==="range"){O.pop();let D=O[O.length-1];D.value+=H.value+B,H=D,T.ranges--;continue}A({type:"dot",value:B});continue}A({type:"text",value:B})}do if(T=z.pop(),T.type!=="root"){T.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let O=z[z.length-1],D=O.nodes.indexOf(T);O.nodes.splice(D,1,...T.nodes)}while(z.length>0);return A({type:"eos"}),I};s.exports=C},137:(s,i,a)=>{const c=a(617);s.exports=(l,u={})=>{let p=(g,d={})=>{let f=u.escapeInvalid&&c.isInvalidBrace(d),h=g.invalid===!0&&u.escapeInvalid===!0,_="";if(g.value)return(f||h)&&c.isOpenOrClose(g)?"\\"+g.value:g.value;if(g.value)return g.value;if(g.nodes)for(let y of g.nodes)_+=p(y);return _};return p(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 p=0;p<u.length;p++){let g=u[p];Array.isArray(g)?l(g):g!==void 0&&c.push(g)}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=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),p=w=>N=>w===!0?Number(N):String(N),h=w=>typeof w=="number"||typeof w=="string"&&w!=="",d=w=>Number.isInteger(+w),f=w=>{let N=`${w}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},m=(w,N,I)=>typeof w=="string"||typeof N=="string"?!0:I.stringify===!0,_=(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},y=(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,q)=>U<q?-1:U>q?1:0),w.positives.sort((U,q)=>U<q?-1:U>q?1:0);let I=N.capture?"":"?:",B="",T="",H;return w.positives.length&&(B=w.positives.join("|")),w.negatives.length&&(T=`-(${I}${w.negatives.join("|")})`),B&&T?H=`${B}|${T}`:H=B||T,N.wrap?`(${I}${H})`:H},j=(w,N,I,B)=>{if(I)return l(w,N,{wrap:!1,...B});let T=String.fromCharCode(w);if(w===N)return T;let H=String.fromCharCode(N);return`[${T}-${H}]`},v=(w,N,I)=>{if(Array.isArray(w)){let B=I.wrap===!0,T=I.capture?"":"?:";return B?`(${T}${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 T=Number(w),H=Number(N);if(!Number.isInteger(T)||!Number.isInteger(H)){if(B.strictRanges===!0)throw S([w,N]);return[]}T===0&&(T=0),H===0&&(H=0);let U=T>H,q=String(w),G=String(N),W=String(I);I=Math.max(Math.abs(I),1);let z=f(q)||f(G)||f(W),Z=z?Math.max(q.length,G.length,W.length):0,P=z===!1&&m(w,N,B)===!1,k=B.transform||p(P);if(B.toRegex&&I===1)return j(y(w,Z),y(N,Z),!0,B);let D={negatives:[],positives:[]},K=L=>D[L<0?"negatives":"positives"].push(Math.abs(L)),re=[],J=0;for(;U?T>=H:T<=H;)B.toRegex===!0&&I>1?K(T):re.push(_(k(T,J),Z,P)),T=U?T-I:T+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 T=B.transform||(P=>String.fromCharCode(P)),H=`${w}`.charCodeAt(0),U=`${N}`.charCodeAt(0),q=H>U,G=Math.min(H,U),W=Math.max(H,U);if(B.toRegex&&I===1)return j(G,W,!1,B);let z=[],Z=0;for(;q?H>=U:H<=U;)z.push(T(H,Z)),H=q?H-I:H+I,Z++;return B.toRegex===!0?v(z,null,{wrap:!1,options:B}):z},O=(w,N,I,B={})=>{if(N==null&&h(w))return[w];if(!h(w)||!h(N))return E(w,N,B);if(typeof I=="function")return O(w,N,1,{transform:I});if(u(I))return O(w,N,0,I);let T={...B};return T.capture===!0&&(T.wrap=!0),I=I||T.step||1,d(I)?d(w)&&d(N)?C(w,N,I,T):A(w,N,Math.max(Math.abs(I),1),T):I!=null&&!u(I)?R(I,T):O(w,N,1,I)};s.exports=O},357:s=>{/*!
30
+ */const c=a(837),l=a(492),u=P=>P!==null&&typeof P=="object"&&!Array.isArray(P),p=P=>N=>P===!0?Number(N):String(N),g=P=>typeof P=="number"||typeof P=="string"&&P!=="",d=P=>Number.isInteger(+P),f=P=>{let N=`${P}`,I=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++I]==="0";);return I>0},h=(P,N,I)=>typeof P=="string"||typeof N=="string"?!0:I.stringify===!0,_=(P,N,I)=>{if(N>0){let z=P[0]==="-"?"-":"";z&&(P=P.slice(1)),P=z+P.padStart(z?N-1:N,"0")}return I===!1?String(P):P},y=(P,N)=>{let I=P[0]==="-"?"-":"";for(I&&(P=P.slice(1),N--);P.length<N;)P="0"+P;return I?"-"+P:P},x=(P,N)=>{P.negatives.sort((W,q)=>W<q?-1:W>q?1:0),P.positives.sort((W,q)=>W<q?-1:W>q?1:0);let I=N.capture?"":"?:",z="",T="",H;return P.positives.length&&(z=P.positives.join("|")),P.negatives.length&&(T=`-(${I}${P.negatives.join("|")})`),z&&T?H=`${z}|${T}`:H=z||T,N.wrap?`(${I}${H})`:H},S=(P,N,I,z)=>{if(I)return l(P,N,{wrap:!1,...z});let T=String.fromCharCode(P);if(P===N)return T;let H=String.fromCharCode(N);return`[${T}-${H}]`},v=(P,N,I)=>{if(Array.isArray(P)){let z=I.wrap===!0,T=I.capture?"":"?:";return z?`(${T}${P.join("|")})`:P.join("|")}return l(P,N,I)},j=(...P)=>new RangeError("Invalid range arguments: "+c.inspect(...P)),w=(P,N,I)=>{if(I.strictRanges===!0)throw j([P,N]);return[]},R=(P,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${P}" to be a number`);return[]},C=(P,N,I=1,z={})=>{let T=Number(P),H=Number(N);if(!Number.isInteger(T)||!Number.isInteger(H)){if(z.strictRanges===!0)throw j([P,N]);return[]}T===0&&(T=0),H===0&&(H=0);let W=T>H,q=String(P),K=String(N),V=String(I);I=Math.max(Math.abs(I),1);let B=f(q)||f(K)||f(V),J=B?Math.max(q.length,K.length,V.length):0,A=B===!1&&h(P,N,z)===!1,O=z.transform||p(A);if(z.toRegex&&I===1)return S(y(P,J),y(N,J),!0,z);let D={negatives:[],positives:[]},X=L=>D[L<0?"negatives":"positives"].push(Math.abs(L)),ne=[],ee=0;for(;W?T>=H:T<=H;)z.toRegex===!0&&I>1?X(T):ne.push(_(O(T,ee),J,A)),T=W?T-I:T+I,ee++;return z.toRegex===!0?I>1?x(D,z):v(ne,null,{wrap:!1,...z}):ne},E=(P,N,I=1,z={})=>{if(!d(P)&&P.length>1||!d(N)&&N.length>1)return w(P,N,z);let T=z.transform||(A=>String.fromCharCode(A)),H=`${P}`.charCodeAt(0),W=`${N}`.charCodeAt(0),q=H>W,K=Math.min(H,W),V=Math.max(H,W);if(z.toRegex&&I===1)return S(K,V,!1,z);let B=[],J=0;for(;q?H>=W:H<=W;)B.push(T(H,J)),H=q?H-I:H+I,J++;return z.toRegex===!0?v(B,null,{wrap:!1,options:z}):B},k=(P,N,I,z={})=>{if(N==null&&g(P))return[P];if(!g(P)||!g(N))return w(P,N,z);if(typeof I=="function")return k(P,N,1,{transform:I});if(u(I))return k(P,N,0,I);let T={...z};return T.capture===!0&&(T.wrap=!0),I=I||T.step||1,d(I)?d(P)&&d(N)?C(P,N,I,T):E(P,N,Math.max(Math.abs(I),1),T):I!=null&&!u(I)?R(I,T):k(P,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
- */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),p=a(513),h=f=>f===""||f==="./",d=(f,m,_)=>{m=[].concat(m),f=[].concat(f);let y=new Set,b=new Set,j=new Set,v=0,S=C=>{j.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<m.length;C++){let A=u(String(m[C]),{..._,onResult:S},!0),O=A.state.negated||A.state.negatedExtglob;O&&v++;for(let w of f){let N=A(w,!0);(O?!N.isMatch:N.isMatch)&&(O?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let R=(v===m.length?[...j]:[...b]).filter(C=>!y.has(C));if(_&&R.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${m.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?m.map(C=>C.replace(/\\/g,"")):m}return R};d.match=d,d.matcher=(f,m)=>u(f,m),d.isMatch=(f,m,_)=>u(m,_)(f),d.any=d.isMatch,d.not=(f,m,_={})=>{m=[].concat(m).map(String);let y=new Set,b=[],v=d(f,m,{..._,onResult:S=>{_.onResult&&_.onResult(S),b.push(S.output)}});for(let S of b)v.includes(S)||y.add(S);return[...y]},d.contains=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(m))return m.some(y=>d.contains(f,y,_));if(typeof m=="string"){if(h(f)||h(m))return!1;if(f.includes(m)||f.startsWith("./")&&f.slice(2).includes(m))return!0}return d.isMatch(f,m,{..._,contains:!0})},d.matchKeys=(f,m,_)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),m,_),b={};for(let j of y)b[j]=f[j];return b},d.some=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(y.some(v=>j(v)))return!0}return!1},d.every=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(!y.every(v=>j(v)))return!1}return!0},d.all=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(m).every(y=>u(y,_)(f))},d.capture=(f,m,_)=>{let y=p.isWindows(_),j=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(m):m);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,m)=>{let _=[];for(let y of[].concat(f||[]))for(let b of l(String(y),m))_.push(u.parse(b,m));return _},d.braces=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return m&&m.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,m)},d.braceExpand=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...m,expand:!0})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,p="\\.",h="\\+",d="\\?",f="\\/",m="(?=.)",_="[^/]",y=`(?:${f}|$)`,b=`(?:^|${f})`,j=`${p}{1,2}${y}`,v=`(?!${p})`,S=`(?!${b}${j})`,E=`(?!${p}{0,1}${y})`,R=`(?!${j})`,C=`[^.${f}]`,A=`${_}*?`,O={DOT_LITERAL:p,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:m,QMARK:_,END_ANCHOR:y,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={...O,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}]|$)`},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:O}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=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(E=>l.escapeRegex(E)).join("..")}return v},_=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,y=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[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?"":"?:",O=l.isWindows(j),w=c.globChars(O),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:B,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:U,NO_DOT:q,NO_DOT_SLASH:G,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:k}=w,D=Y=>`(${A}(?:(?!${k}${Y.dot?U:I}).)*?)`,K=v.dot?"":q,re=v.dot?z: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,ae=L.peek=(Y=1)=>b[L.index+Y],ue=L.advance=()=>b[++L.index],de=()=>b.slice(L.index+1),ce=(Y="",oe=0)=>{L.consumed+=Y,L.index+=oe},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},_e=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ue(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},se=Y=>{L[Y]++,te.push(Y)},ye=Y=>{L[Y]--,te.pop()},V=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)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},fe=(Y,oe)=>{const X={...N[oe],conditions:1,inner:""};X.prev=$,X.parens=L.parens,X.output=L.output;const pe=(v.capture?"(":"")+X.open;se("parens"),V({type:Y,value:oe,output:L.output?"":H}),V({type:"paren",extglob:!0,value:ue(),output:pe}),ee.push(X)},Ae=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(de()))&&(oe=Y.close=`)$))${X}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:M,output:oe}),ye("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,oe=b.replace(d,(X,pe,xe,Ne,Ee,gr)=>Ne==="\\"?(Y=!0,X):Ne==="?"?pe?pe+Ne+(Ee?z.repeat(Ee.length):""):gr===0?re+(Ee?z.repeat(Ee.length):""):z.repeat(xe.length):Ne==="."?I.repeat(xe.length):Ne==="*"?pe?pe+Ne+(Ee?J:""):J:pe?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=ue(),M==="\0")continue;if(M==="\\"){const X=ae();if(X==="/"&&v.bash!==!0||X==="."||X===";")continue;if(!X){M+="\\",V({type:"text",value:M});continue}const pe=/^\\+/.exec(de());let xe=0;if(pe&&pe[0].length>2&&(xe=pe[0].length,L.index+=xe,xe%2!==0&&(M+="\\")),v.unescape===!0?M=ue()||"":M+=ue()||"",L.brackets===0){V({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 pe=$.value.lastIndexOf("["),xe=$.value.slice(0,pe),Ne=$.value.slice(pe+2),Ee=p[Ne];if(Ee){$.value=xe+Ee,L.backtrack=!0,ue(),!R.output&&C.indexOf($)===1&&(R.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&V({type:"text",value:M});continue}if(M==="("){se("parens"),V({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const X=ee[ee.length-1];if(X&&L.parens===X.parens+1){Ae(ee.pop());continue}V({type:"paren",value:M,output:L.parens?")":"\\)"}),ye("parens");continue}if(M==="["){if(v.nobracket===!0||!de().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else se("brackets");V({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){V({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));V({type:"text",value:M,output:`\\${M}`});continue}ye("brackets");const X=$.value.slice(1);if($.posix!==!0&&X[0]==="^"&&!X.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(X))continue;const pe=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=pe,$.value=pe;continue}$.value=`(${A}${pe}|${$.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),V(X);continue}if(M==="}"){const X=Q[Q.length-1];if(v.nobrace===!0||!X){V({type:"text",value:M,output:M});continue}let pe=")";if(X.dots===!0){const xe=C.slice(),Ne=[];for(let Ee=xe.length-1;Ee>=0&&(C.pop(),xe[Ee].type!=="brace");Ee--)xe[Ee].type!=="dots"&&Ne.unshift(xe[Ee].value);pe=m(Ne,v),L.backtrack=!0}if(X.comma!==!0&&X.dots!==!0){const xe=L.output.slice(0,X.outputIndex),Ne=L.tokens.slice(X.tokensIndex);X.value=X.output="\\{",M=pe="\\}",L.output=xe;for(const Ee of Ne)L.output+=Ee.output||Ee.value}V({type:"brace",value:M,output:pe}),ye("braces"),Q.pop();continue}if(M==="|"){ee.length>0&&ee[ee.length-1].conditions++,V({type:"text",value:M});continue}if(M===","){let X=M;const pe=Q[Q.length-1];pe&&te[te.length-1]==="braces"&&(pe.comma=!0,X="|"),V({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}V({type:"slash",value:M,output:T});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"){V({type:"text",value:M,output:I});continue}V({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("qmark",M);continue}if($&&$.type==="paren"){const pe=ae();let xe=M;if(pe==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(pe)||pe==="<"&&!/<([!=]|\w+>)/.test(de()))&&(xe=`\\${M}`),V({type:"text",value:M,output:xe});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){V({type:"qmark",value:M,output:Z});continue}V({type:"qmark",value:M,output:z});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){fe("negate",M);continue}if(v.nonegate!==!0&&L.index===0){_e();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("plus",M);continue}if($&&$.value==="("||v.regex===!1){V({type:"plus",value:M,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){V({type:"plus",value:M});continue}V({type:"plus",value:B});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){V({type:"at",extglob:!0,value:M,output:""});continue}V({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const X=h.exec(de());X&&(M+=X[0],L.index+=X[0].length),V({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=J,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=de();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){fe("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const X=$.prev,pe=X.prev,xe=X.type==="slash"||X.type==="bos",Ne=pe&&(pe.type==="star"||pe.type==="globstar");if(v.bash===!0&&(!xe||Y[0]&&Y[0]!=="/")){V({type:"star",value:M,output:""});continue}const Ee=L.braces>0&&(X.type==="comma"||X.type==="brace"),gr=ee.length&&(X.type==="pipe"||X.type==="paren");if(!xe&&X.type!=="paren"&&!Ee&&!gr){V({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const kt=b[L.index+4];if(kt&&kt!=="/")break;Y=Y.slice(3),ce("/**",3)}if(X.type==="bos"&&ne()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&!Ne&&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,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&Y[0]==="/"){const kt=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${kt})`,$.value+=M,L.output+=X.output+$.output,L.globstar=!0,ce(M+ue()),V({type:"slash",value:"/",output:""});continue}if(X.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+ue()),V({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,ce(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),V(oe);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){oe.output=M,V(oe);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=G,$.output+=G):v.dot===!0?(L.output+=W,$.output+=W):(L.output+=K,$.output+=K),ae()!=="*"&&(L.output+=H,$.output+=H)),V(oe)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));L.output=l.escapeLast(L.output,"["),ye("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing",")"));L.output=l.escapeLast(L.output,"("),ye("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","}"));L.output=l.escapeLast(L.output,"{"),ye("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${T}?`}),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};y.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=f[b]||b;const R=l.isWindows(j),{DOT_LITERAL:C,SLASH_LITERAL:A,ONE_CHAR:O,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:B,STAR:T,START_ANCHOR:H}=c.globChars(R),U=v.dot?I:N,q=v.dot?B:N,G=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":T;v.capture&&(z=`(${z})`);const Z=K=>K.noglobstar===!0?z:`(${G}(?:(?!${H}${K.dot?w:C}).)*?)`,P=K=>{switch(K){case"*":return`${U}${O}${z}`;case".*":return`${C}${O}${z}`;case"*.*":return`${U}${z}${C}${O}${z}`;case"*/*":return`${U}${z}${A}${O}${q}${z}`;case"**":return U+Z(v);case"**/*":return`(?:${U}${Z(v)}${A})?${q}${O}${z}`;case"**/*.*":return`(?:${U}${Z(v)}${A})?${q}${z}${C}${O}${z}`;case"**/.*":return`(?:${U}${Z(v)}${A})?${C}${O}${z}`;default:{const re=/^(.*?)\.(\w+)$/.exec(K);if(!re)return;const J=P(re[1]);return J?J+C+re[2]:void 0}}},k=l.removePrefix(b,W);let D=P(k);return D&&v.strictSlashes!==!0&&(D+=`${A}?`),D},s.exports=y},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),p=a(513),h=a(356),d=m=>m&&typeof m=="object"&&!Array.isArray(m),f=(m,_,y=!1)=>{if(Array.isArray(m)){const A=m.map(w=>f(w,_,y));return w=>{for(const N of A){const I=N(w);if(I)return I}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=_||{},v=p.isWindows(_),S=b?f.compileRe(m,_):f.makeRe(m,_,!1,!0),E=S.state;delete S.state;let R=()=>!1;if(j.ignore){const A={..._,ignore:null,onMatch:null,onResult:null};R=f(j.ignore,A,y)}const C=(A,O=!1)=>{const{isMatch:w,match:N,output:I}=f.test(A,S,_,{glob:m,posix:v}),B={glob:m,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,O?B:!1):R(A)?(typeof j.onIgnore=="function"&&j.onIgnore(B),B.isMatch=!1,O?B:!1):(typeof j.onMatch=="function"&&j.onMatch(B),O?B:!0)};return y&&(C.state=E),C};f.test=(m,_,y,{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=y||{},S=v.format||(j?p.toPosixSlashes:null);let E=m===b,R=E&&S?S(m):m;return E===!1&&(R=S?S(m):m,E=R===b),(E===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?E=f.matchBase(m,_,y,j):E=_.exec(R)),{isMatch:!!E,match:E,output:R}},f.matchBase=(m,_,y,b=p.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(m)),f.isMatch=(m,_,y)=>f(_,y)(m),f.parse=(m,_)=>Array.isArray(m)?m.map(y=>f.parse(y,_)):u(m,{..._,fastpaths:!1}),f.scan=(m,_)=>l(m,_),f.compileRe=(m,_,y=!1,b=!1)=>{if(y===!0)return m.output;const j=_||{},v=j.contains?"":"^",S=j.contains?"":"$";let E=`${v}(?:${m.output})${S}`;m&&m.negated===!0&&(E=`^(?!${E}).*$`);const R=f.toRegex(E,_);return b===!0&&(R.state=m),R},f.makeRe=(m,_,y=!1,b=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");const j=_||{};let v={negated:!1,fastpaths:!0},S="",E;return m.startsWith("./")&&(m=m.slice(2),S=v.prefix="./"),j.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&(E=u.fastpaths(m,_)),E===void 0?(v=u(m,_),v.prefix=S+(v.prefix||"")):v.output=E,f.compileRe(v,_,y,b)},f.toRegex=(m,_)=>{try{const y=_||{};return new RegExp(m,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=h,s.exports=f},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,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===m||w===p,A=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},O=(w,N)=>{const I=N||{},B=w.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],U=[],q=[];let G=w,W=-1,z=0,Z=0,P=!1,k=!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 ae=()=>W>=B,ue=()=>G.charCodeAt(W+1),de=()=>($=M,G.charCodeAt(++W));for(;W<B;){M=de();let ye;if(M===p){L=ne.backslashes=!0,M=de(),M===_&&(J=!0);continue}if(J===!0||M===_){for(te++;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,de();continue}if(M===_){te++;continue}if(J!==!0&&M===d&&(M=de())===d){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(J!==!0&&M===h){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===S&&(te--,te===0)){J=!1,P=ne.isBrace=!0,Q=!0;break}}if(T===!0)continue;break}if(M===m){if(H.push(W),U.push(ne),ne={value:"",depth:0,isGlob:!1},Q===!0)continue;if($===d&&W===z+1){z+=2;continue}Z=W+1;continue}if(I.noext!==!0&&(M===j||M===u||M===l||M===v||M===f)===!0&&ue()===y){if(D=ne.isGlob=!0,K=ne.isExtglob=!0,Q=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,M=de();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,T===!0)continue;break}if(M===v){if(D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===b){for(;ae()!==!0&&(ye=de());){if(ye===p){L=ne.backslashes=!0,de();continue}if(ye===R){k=ne.isBracket=!0,D=ne.isGlob=!0,Q=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&W===z){ee=ne.negated=!0,z++;continue}if(I.noparen!==!0&&M===y){if(D=ne.isGlob=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===y){L=ne.backslashes=!0,M=de();continue}if(M===E){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,T===!0)continue;break}}I.noext===!0&&(K=!1,D=!1);let ce=G,F="",_e="";z>0&&(F=G.slice(0,z),G=G.slice(z),Z-=z),ce&&D===!0&&Z>0?(ce=G.slice(0,Z),_e=G.slice(Z)):D===!0?(ce="",_e=G):ce=G,ce&&ce!==""&&ce!=="/"&&ce!==G&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(_e&&(_e=c.removeBackslashes(_e)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const se={prefix:F,input:w,start:z,base:ce,glob:_e,isBrace:P,isBracket:k,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 ye;for(let V=0;V<H.length;V++){const fe=ye?ye+1:z,Ae=H[V],Y=w.slice(fe,Ae);I.tokens&&(V===0&&z!==0?(U[V].isPrefix=!0,U[V].value=F):U[V].value=Y,A(U[V]),se.maxDepth+=U[V].depth),(V!==0||Y!=="")&&q.push(Y),ye=Ae}if(ye&&ye+1<w.length){const V=w.slice(ye+1);q.push(V),I.tokens&&(U[U.length-1].value=V,A(U[U.length-1]),se.maxDepth+=U[U.length-1].depth)}se.slashes=H,se.parts=q}return se};s.exports=O},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>h.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(u,"/"),i.removeBackslashes=f=>f.replace(p,m=>m==="\\"?"":m),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:l===!0||c.sep==="\\",i.escapeLast=(f,m,_)=>{const y=f.lastIndexOf(m,_);return y===-1?f:f[y-1]==="\\"?i.escapeLast(f,m,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},i.removePrefix=(f,m={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),m.prefix="./"),_},i.wrapOutput=(f,m={},_={})=>{const y=_.contains?"":"^",b=_.contains?"":"$";let j=`${y}(?:${f})${b}`;return m.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(s,i,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),p=a(513),g=f=>f===""||f==="./",d=(f,h,_)=>{h=[].concat(h),f=[].concat(f);let y=new Set,x=new Set,S=new Set,v=0,j=C=>{S.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<h.length;C++){let E=u(String(h[C]),{..._,onResult:j},!0),k=E.state.negated||E.state.negatedExtglob;k&&v++;for(let P of f){let N=E(P,!0);(k?!N.isMatch:N.isMatch)&&(k?y.add(N.output):(y.delete(N.output),x.add(N.output)))}}let R=(v===h.length?[...S]:[...x]).filter(C=>!y.has(C));if(_&&R.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?h.map(C=>C.replace(/\\/g,"")):h}return R};d.match=d,d.matcher=(f,h)=>u(f,h),d.isMatch=(f,h,_)=>u(h,_)(f),d.any=d.isMatch,d.not=(f,h,_={})=>{h=[].concat(h).map(String);let y=new Set,x=[],v=d(f,h,{..._,onResult:j=>{_.onResult&&_.onResult(j),x.push(j.output)}});for(let j of x)v.includes(j)||y.add(j);return[...y]},d.contains=(f,h,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(h))return h.some(y=>d.contains(f,y,_));if(typeof h=="string"){if(g(f)||g(h))return!1;if(f.includes(h)||f.startsWith("./")&&f.slice(2).includes(h))return!0}return d.isMatch(f,h,{..._,contains:!0})},d.matchKeys=(f,h,_)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),h,_),x={};for(let S of y)x[S]=f[S];return x},d.some=(f,h,_)=>{let y=[].concat(f);for(let x of[].concat(h)){let S=u(String(x),_);if(y.some(v=>S(v)))return!0}return!1},d.every=(f,h,_)=>{let y=[].concat(f);for(let x of[].concat(h)){let S=u(String(x),_);if(!y.every(v=>S(v)))return!1}return!0},d.all=(f,h,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(h).every(y=>u(y,_)(f))},d.capture=(f,h,_)=>{let y=p.isWindows(_),S=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(h):h);if(S)return S.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,h)=>{let _=[];for(let y of[].concat(f||[]))for(let x of l(String(y),h))_.push(u.parse(x,h));return _},d.braces=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,h)},d.braceExpand=(f,h)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...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}]`,p="\\.",g="\\+",d="\\?",f="\\/",h="(?=.)",_="[^/]",y=`(?:${f}|$)`,x=`(?:^|${f})`,S=`${p}{1,2}${y}`,v=`(?!${p})`,j=`(?!${x}${S})`,w=`(?!${p}{0,1}${y})`,R=`(?!${S})`,C=`[^.${f}]`,E=`${_}*?`,k={DOT_LITERAL:p,PLUS_LITERAL:g,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,QMARK:_,END_ANCHOR:y,DOTS_SLASH:S,NO_DOT:v,NO_DOTS:j,NO_DOT_SLASH:w,NO_DOTS_SLASH:R,QMARK_NO_DOT:C,STAR:E,START_ANCHOR:x},P={...k,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}]|$)`},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?P:k}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=c,h=(x,S)=>{if(typeof S.expandRange=="function")return S.expandRange(...x,S);x.sort();const v=`[${x.join("-")}]`;try{new RegExp(v)}catch{return x.map(w=>l.escapeRegex(w)).join("..")}return v},_=(x,S)=>`Missing ${x}: "${S}" - use "\\\\${S}" to match literal characters`,y=(x,S)=>{if(typeof x!="string")throw new TypeError("Expected a string");x=f[x]||x;const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let w=x.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);const R={type:"bos",value:"",output:v.prepend||""},C=[R],E=v.capture?"":"?:",k=l.isWindows(S),P=c.globChars(k),N=c.extglobChars(P),{DOT_LITERAL:I,PLUS_LITERAL:z,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:W,NO_DOT:q,NO_DOT_SLASH:K,NO_DOTS_SLASH:V,QMARK:B,QMARK_NO_DOT:J,STAR:A,START_ANCHOR:O}=P,D=Y=>`(${E}(?:(?!${O}${Y.dot?W:I}).)*?)`,X=v.dot?"":q,ne=v.dot?B:J;let ee=v.bash===!0?D(v):A;v.capture&&(ee=`(${ee})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={input:x,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};x=l.removePrefix(x,L),w=x.length;const te=[],Z=[],re=[];let $=R,M;const oe=()=>L.index===w-1,ae=L.peek=(Y=1)=>x[L.index+Y],de=L.advance=()=>x[++L.index],fe=()=>x.slice(L.index+1),ce=(Y="",se=0)=>{L.consumed+=Y,L.index+=se},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},ve=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)de(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},ie=Y=>{L[Y]++,re.push(Y)},_e=Y=>{L[Y]--,re.pop()},G=Y=>{if($.type==="globstar"){const se=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),Q=Y.extglob===!0||te.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!se&&!Q&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=ee,L.output+=$.output)}if(te.length&&Y.type!=="paren"&&!N[Y.value]&&(te[te.length-1].inner+=Y.value),(Y.value||Y.output)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},pe=(Y,se)=>{const Q={...N[se],conditions:1,inner:""};Q.prev=$,Q.parens=L.parens,Q.output=L.output;const me=(v.capture?"(":"")+Q.open;ie("parens"),G({type:Y,value:se,output:L.output?"":H}),G({type:"paren",extglob:!0,value:de(),output:me}),te.push(Q)},Ae=Y=>{let se=Y.close+(v.capture?")":"");if(Y.type==="negate"){let Q=ee;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(Q=D(v)),(Q!==ee||oe()||/^\)+$/.test(fe()))&&(se=Y.close=`)$))${Q}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:M,output:se}),_e("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(x)){let Y=!1,se=x.replace(d,(Q,me,Ce,Te,Ee,Sr)=>Te==="\\"?(Y=!0,Q):Te==="?"?me?me+Te+(Ee?B.repeat(Ee.length):""):Sr===0?ne+(Ee?B.repeat(Ee.length):""):B.repeat(Ce.length):Te==="."?I.repeat(Ce.length):Te==="*"?me?me+Te+(Ee?ee:""):ee:me?Q:`\\${Q}`);return Y===!0&&(v.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,Q=>Q.length%2===0?"\\\\":Q?"\\":"")),se===x&&v.contains===!0?(L.output=x,L):(L.output=l.wrapOutput(se,L,S),L)}for(;!oe();){if(M=de(),M==="\0")continue;if(M==="\\"){const Q=ae();if(Q==="/"&&v.bash!==!0||Q==="."||Q===";")continue;if(!Q){M+="\\",G({type:"text",value:M});continue}const me=/^\\+/.exec(fe());let Ce=0;if(me&&me[0].length>2&&(Ce=me[0].length,L.index+=Ce,Ce%2!==0&&(M+="\\")),v.unescape===!0?M=de()||"":M+=de()||"",L.brackets===0){G({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const Q=$.value.slice(1);if(Q.includes("[")&&($.posix=!0,Q.includes(":"))){const me=$.value.lastIndexOf("["),Ce=$.value.slice(0,me),Te=$.value.slice(me+2),Ee=p[Te];if(Ee){$.value=Ce+Ee,L.backtrack=!0,de(),!R.output&&C.indexOf($)===1&&(R.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&G({type:"text",value:M});continue}if(M==="("){ie("parens"),G({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const Q=te[te.length-1];if(Q&&L.parens===Q.parens+1){Ae(te.pop());continue}G({type:"paren",value:M,output:L.parens?")":"\\)"}),_e("parens");continue}if(M==="["){if(v.nobracket===!0||!fe().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else ie("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(_("opening","["));G({type:"text",value:M,output:`\\${M}`});continue}_e("brackets");const Q=$.value.slice(1);if($.posix!==!0&&Q[0]==="^"&&!Q.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(Q))continue;const me=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=me,$.value=me;continue}$.value=`(${E}${me}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){ie("braces");const Q={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(Q),G(Q);continue}if(M==="}"){const Q=Z[Z.length-1];if(v.nobrace===!0||!Q){G({type:"text",value:M,output:M});continue}let me=")";if(Q.dots===!0){const Ce=C.slice(),Te=[];for(let Ee=Ce.length-1;Ee>=0&&(C.pop(),Ce[Ee].type!=="brace");Ee--)Ce[Ee].type!=="dots"&&Te.unshift(Ce[Ee].value);me=h(Te,v),L.backtrack=!0}if(Q.comma!==!0&&Q.dots!==!0){const Ce=L.output.slice(0,Q.outputIndex),Te=L.tokens.slice(Q.tokensIndex);Q.value=Q.output="\\{",M=me="\\}",L.output=Ce;for(const Ee of Te)L.output+=Ee.output||Ee.value}G({type:"brace",value:M,output:me}),_e("braces"),Z.pop();continue}if(M==="|"){te.length>0&&te[te.length-1].conditions++,G({type:"text",value:M});continue}if(M===","){let Q=M;const me=Z[Z.length-1];me&&re[re.length-1]==="braces"&&(me.comma=!0,Q="|"),G({type:"comma",value:M,output:Q});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:T});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const Q=Z[Z.length-1];$.type="dots",$.output+=M,$.value+=M,Q.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&&ae()==="("&&ae(2)!=="?"){pe("qmark",M);continue}if($&&$.type==="paren"){const me=ae();let Ce=M;if(me==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(me)||me==="<"&&!/<([!=]|\w+>)/.test(fe()))&&(Ce=`\\${M}`),G({type:"text",value:M,output:Ce});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){G({type:"qmark",value:M,output:J});continue}G({type:"qmark",value:M,output:B});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){pe("negate",M);continue}if(v.nonegate!==!0&&L.index===0){ve();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){pe("plus",M);continue}if($&&$.value==="("||v.regex===!1){G({type:"plus",value:M,output:z});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){G({type:"plus",value:M});continue}G({type:"plus",value:z});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:M,output:""});continue}G({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const Q=g.exec(fe());Q&&(M+=Q[0],L.index+=Q[0].length),G({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=ee,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=fe();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){pe("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const Q=$.prev,me=Q.prev,Ce=Q.type==="slash"||Q.type==="bos",Te=me&&(me.type==="star"||me.type==="globstar");if(v.bash===!0&&(!Ce||Y[0]&&Y[0]!=="/")){G({type:"star",value:M,output:""});continue}const Ee=L.braces>0&&(Q.type==="comma"||Q.type==="brace"),Sr=te.length&&(Q.type==="pipe"||Q.type==="paren");if(!Ce&&Q.type!=="paren"&&!Ee&&!Sr){G({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const Ft=x[L.index+4];if(Ft&&Ft!=="/")break;Y=Y.slice(3),ce("/**",3)}if(Q.type==="bos"&&oe()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&!Te&&oe()){L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=Q.output+$.output,ce(M);continue}if(Q.type==="slash"&&Q.prev.type!=="bos"&&Y[0]==="/"){const Ft=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(Q.output+$.output).length),Q.output=`(?:${Q.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${Ft})`,$.value+=M,L.output+=Q.output+$.output,L.globstar=!0,ce(M+de()),G({type:"slash",value:"/",output:""});continue}if(Q.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+de()),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,ce(M);continue}const se={type:"star",value:M,output:ee};if(v.bash===!0){se.output=".*?",($.type==="bos"||$.type==="slash")&&(se.output=X+se.output),G(se);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){se.output=M,G(se);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=K,$.output+=K):v.dot===!0?(L.output+=V,$.output+=V):(L.output+=X,$.output+=X),ae()!=="*"&&(L.output+=H,$.output+=H)),G(se)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));L.output=l.escapeLast(L.output,"["),_e("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing",")"));L.output=l.escapeLast(L.output,"("),_e("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","}"));L.output=l.escapeLast(L.output,"{"),_e("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${T}?`}),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};y.fastpaths=(x,S)=>{const v={...S},j=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,w=x.length;if(w>j)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${j}`);x=f[x]||x;const R=l.isWindows(S),{DOT_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:z,STAR:T,START_ANCHOR:H}=c.globChars(R),W=v.dot?I:N,q=v.dot?z:N,K=v.capture?"":"?:",V={negated:!1,prefix:""};let B=v.bash===!0?".*?":T;v.capture&&(B=`(${B})`);const J=X=>X.noglobstar===!0?B:`(${K}(?:(?!${H}${X.dot?P:C}).)*?)`,A=X=>{switch(X){case"*":return`${W}${k}${B}`;case".*":return`${C}${k}${B}`;case"*.*":return`${W}${B}${C}${k}${B}`;case"*/*":return`${W}${B}${E}${k}${q}${B}`;case"**":return W+J(v);case"**/*":return`(?:${W}${J(v)}${E})?${q}${k}${B}`;case"**/*.*":return`(?:${W}${J(v)}${E})?${q}${B}${C}${k}${B}`;case"**/.*":return`(?:${W}${J(v)}${E})?${C}${k}${B}`;default:{const ne=/^(.*?)\.(\w+)$/.exec(X);if(!ne)return;const ee=A(ne[1]);return ee?ee+C+ne[2]:void 0}}},O=l.removePrefix(x,V);let D=A(O);return D&&v.strictSlashes!==!0&&(D+=`${E}?`),D},s.exports=y},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),p=a(513),g=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),f=(h,_,y=!1)=>{if(Array.isArray(h)){const E=h.map(P=>f(P,_,y));return P=>{for(const N of E){const I=N(P);if(I)return I}return!1}}const x=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!x)throw new TypeError("Expected pattern to be a non-empty string");const S=_||{},v=p.isWindows(_),j=x?f.compileRe(h,_):f.makeRe(h,_,!1,!0),w=j.state;delete j.state;let R=()=>!1;if(S.ignore){const E={..._,ignore:null,onMatch:null,onResult:null};R=f(S.ignore,E,y)}const C=(E,k=!1)=>{const{isMatch:P,match:N,output:I}=f.test(E,j,_,{glob:h,posix:v}),z={glob:h,state:w,regex:j,posix:v,input:E,output:I,match:N,isMatch:P};return typeof S.onResult=="function"&&S.onResult(z),P===!1?(z.isMatch=!1,k?z:!1):R(E)?(typeof S.onIgnore=="function"&&S.onIgnore(z),z.isMatch=!1,k?z:!1):(typeof S.onMatch=="function"&&S.onMatch(z),k?z:!0)};return y&&(C.state=w),C};f.test=(h,_,y,{glob:x,posix:S}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const v=y||{},j=v.format||(S?p.toPosixSlashes:null);let w=h===x,R=w&&j?j(h):h;return w===!1&&(R=j?j(h):h,w=R===x),(w===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?w=f.matchBase(h,_,y,S):w=_.exec(R)),{isMatch:!!w,match:w,output:R}},f.matchBase=(h,_,y,x=p.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(h)),f.isMatch=(h,_,y)=>f(_,y)(h),f.parse=(h,_)=>Array.isArray(h)?h.map(y=>f.parse(y,_)):u(h,{..._,fastpaths:!1}),f.scan=(h,_)=>l(h,_),f.compileRe=(h,_,y=!1,x=!1)=>{if(y===!0)return h.output;const S=_||{},v=S.contains?"":"^",j=S.contains?"":"$";let w=`${v}(?:${h.output})${j}`;h&&h.negated===!0&&(w=`^(?!${w}).*$`);const R=f.toRegex(w,_);return x===!0&&(R.state=h),R},f.makeRe=(h,_,y=!1,x=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const S=_||{};let v={negated:!1,fastpaths:!0},j="",w;return h.startsWith("./")&&(h=h.slice(2),j=v.prefix="./"),S.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(w=u.fastpaths(h,_)),w===void 0?(v=u(h,_),v.prefix=j+(v.prefix||"")):v.output=w,f.compileRe(v,_,y,x)},f.toRegex=(h,_)=>{try{const y=_||{};return new RegExp(h,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=g,s.exports=f},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:g,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:x,CHAR_PLUS:S,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:j,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:R}=a(356),C=P=>P===h||P===p,E=P=>{P.isPrefix!==!0&&(P.depth=P.isGlobstar?1/0:1)},k=(P,N)=>{const I=N||{},z=P.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],W=[],q=[];let K=P,V=-1,B=0,J=0,A=!1,O=!1,D=!1,X=!1,ne=!1,ee=!1,L=!1,te=!1,Z=!1,re=0,$,M,oe={value:"",depth:0,isGlob:!1};const ae=()=>V>=z,de=()=>K.charCodeAt(V+1),fe=()=>($=M,K.charCodeAt(++V));for(;V<z;){M=fe();let _e;if(M===p){L=oe.backslashes=!0,M=fe(),M===_&&(ee=!0);continue}if(ee===!0||M===_){for(re++;ae()!==!0&&(M=fe());){if(M===p){L=oe.backslashes=!0,fe();continue}if(M===_){re++;continue}if(ee!==!0&&M===d&&(M=fe())===d){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(ee!==!0&&M===g){if(A=oe.isBrace=!0,D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===j&&(re--,re===0)){ee=!1,A=oe.isBrace=!0,Z=!0;break}}if(T===!0)continue;break}if(M===h){if(H.push(V),W.push(oe),oe={value:"",depth:0,isGlob:!1},Z===!0)continue;if($===d&&V===B+1){B+=2;continue}J=V+1;continue}if(I.noext!==!0&&(M===S||M===u||M===l||M===v||M===f)===!0&&de()===y){if(D=oe.isGlob=!0,X=oe.isExtglob=!0,Z=!0,T===!0){for(;ae()!==!0&&(M=fe());){if(M===p){L=oe.backslashes=!0,M=fe();continue}if(M===w){D=oe.isGlob=!0,Z=!0;break}}continue}break}if(M===l){if($===l&&(ne=oe.isGlobstar=!0),D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===v){if(D=oe.isGlob=!0,Z=!0,T===!0)continue;break}if(M===x){for(;ae()!==!0&&(_e=fe());){if(_e===p){L=oe.backslashes=!0,fe();continue}if(_e===R){O=oe.isBracket=!0,D=oe.isGlob=!0,Z=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&V===B){te=oe.negated=!0,B++;continue}if(I.noparen!==!0&&M===y){if(D=oe.isGlob=!0,T===!0){for(;ae()!==!0&&(M=fe());){if(M===y){L=oe.backslashes=!0,M=fe();continue}if(M===w){Z=!0;break}}continue}break}if(D===!0){if(Z=!0,T===!0)continue;break}}I.noext===!0&&(X=!1,D=!1);let ce=K,F="",ve="";B>0&&(F=K.slice(0,B),K=K.slice(B),J-=B),ce&&D===!0&&J>0?(ce=K.slice(0,J),ve=K.slice(J)):D===!0?(ce="",ve=K):ce=K,ce&&ce!==""&&ce!=="/"&&ce!==K&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(ve&&(ve=c.removeBackslashes(ve)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const ie={prefix:F,input:P,start:B,base:ce,glob:ve,isBrace:A,isBracket:O,isGlob:D,isExtglob:X,isGlobstar:ne,negated:te};if(I.tokens===!0&&(ie.maxDepth=0,C(M)||W.push(oe),ie.tokens=W),I.parts===!0||I.tokens===!0){let _e;for(let G=0;G<H.length;G++){const pe=_e?_e+1:B,Ae=H[G],Y=P.slice(pe,Ae);I.tokens&&(G===0&&B!==0?(W[G].isPrefix=!0,W[G].value=F):W[G].value=Y,E(W[G]),ie.maxDepth+=W[G].depth),(G!==0||Y!=="")&&q.push(Y),_e=Ae}if(_e&&_e+1<P.length){const G=P.slice(_e+1);q.push(G),I.tokens&&(W[W.length-1].value=G,E(W[W.length-1]),ie.maxDepth+=W[W.length-1].depth)}ie.slashes=H,ie.parts=q}return ie};s.exports=k},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:g,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>g.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(u,"/"),i.removeBackslashes=f=>f.replace(p,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:l===!0||c.sep==="\\",i.escapeLast=(f,h,_)=>{const y=f.lastIndexOf(h,_);return y===-1?f:f[y-1]==="\\"?i.escapeLast(f,h,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},i.removePrefix=(f,h={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),h.prefix="./"),_},i.wrapOutput=(f,h={},_={})=>{const y=_.contains?"":"^",x=_.contains?"":"$";let S=`${y}(?:${f})${x}`;return h.negated===!0&&(S=`(?:^(?!${S}).*$)`),S}},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,A,O)=>{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,...O};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),B=String(w.capture),T=String(w.wrap),H=C+":"+A+"="+N+I+B+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let U=Math.min(C,A),q=Math.max(C,A);if(Math.abs(U-q)===1){let P=C+"|"+A;return w.capture?`(${P})`:w.wrap===!1?P:`(?:${P})`}let G=E(C)||E(A),W={min:C,max:A,a:U,b:q},z=[],Z=[];if(G&&(W.isPadded=G,W.maxLen=String(W.max).length),U<0){let P=q<0?Math.abs(q):1;Z=d(P,Math.abs(U),W,w),U=W.a=0}return q>=0&&(z=d(U,q,W,w)),W.negatives=Z,W.positives=z,W.result=u(Z,z),w.capture===!0?W.result=`(${W.result})`:w.wrap!==!1&&z.length+Z.length>1&&(W.result=`(?:${W.result})`),l.cache[H]=W,W.result};function u(C,A,O){let w=f(C,A,"-",!1)||[],N=f(A,C,"",!1)||[],I=f(C,A,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function p(C,A){let O=1,w=1,N=b(C,O),I=new Set([A]);for(;C<=N&&N<=A;)I.add(N),O+=1,N=b(C,O);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(_),I}function h(C,A,O){if(C===A)return{pattern:C,count:[],digits:0};let w=m(C,A),N=w.length,I="",B=0;for(let T=0;T<N;T++){let[H,U]=w[T];H===U?I+=H:H!=="0"||U!=="9"?I+=S(H,U):B++}return B&&(I+=O.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[B],digits:N}}function d(C,A,O,w){let N=p(C,A),I=[],B=C,T;for(let H=0;H<N.length;H++){let U=N[H],q=h(String(B),String(U),w),G="";if(!O.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),B=U+1;continue}O.isPadded&&(G=R(U,O,w)),q.string=G+q.pattern+v(q.count),I.push(q),B=U+1,T=q}return I}function f(C,A,O,w,N){let I=[];for(let B of C){let{string:T}=B;!w&&!y(A,"string",T)&&I.push(O+T),w&&y(A,"string",T)&&I.push(O+T)}return I}function m(C,A){let O=[];for(let w=0;w<C.length;w++)O.push([C[w],A[w]]);return O}function _(C,A){return C>A?1:A>C?-1:0}function y(C,A,O){return C.some(w=>w[A]===O)}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,O=""]=C;return O||A>1?`{${A+(O?","+O:"")}}`:""}function S(C,A,O){return`[${C}${A-C===1?"":"-"}${A}]`}function E(C){return/^-?(0+)\d/.test(C)}function R(C,A,O){if(!A.isPadded)return C;let w=Math.abs(A.maxLen-String(C).length),N=O.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=eg},837:s=>{s.exports=Lg()}},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 o=r(971);Zr.exports=o})()),Zr.exports}var ta;function $g(){return ta||(ta=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 o},hasMatch:function(){return s}});const r=Dg();function o(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=>o(l,c))}}(Qr)),Qr}var ra;function dd(){return ra||(ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;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(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=$g();if(!p(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}(Yr)),Yr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Oe,s=cr()._(x),i=r._(ga),a=r._(Zh()),c=Xo,l=pr,u=Jh(),p=Pt,h=ll(),d=r._(dd()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function m(v,S,E,R,C,A){const O=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===O)return;v["data-loaded-src"]=O,("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(O,"http://n").searchParams.get("url")||O;if(v.getAttribute("data-nimg")==="fill"){if(!A&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const I=v.height.toString()!==v.getAttribute("height"),B=v.width.toString()!==v.getAttribute("width");(I&&!B||!I&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function _(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 y=(0,s.forwardRef)((v,S)=>{let{src:E,srcSet:R,sizes:C,height:A,width:O,decoding:w,className:N,style:I,fetchPriority:B,placeholder:T,loading:H,unoptimized:U,fill:q,onLoadRef:G,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:Z,onLoad:P,onError:k,...D}=v;return s.default.createElement("img",{...D,..._(B),loading:H,width:O,height:A,decoding:w,"data-nimg":q?"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&&(k&&(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&&m(K,T,G,W,z,U))},[E,T,G,W,z,k,U,S]),onLoad:K=>{const re=K.currentTarget;m(re,T,G,W,z,U)},onError:K=>{Z(!0),T!=="empty"&&z(!0),k&&k(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,..._(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)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),A=(0,s.useMemo)(()=>{const W=f||C||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((P,k)=>P-k),Z=W.deviceSizes.sort((P,k)=>P-k);return{...W,allSizes:z,deviceSizes:Z}},[C]),{onLoad:O,onLoadingComplete:w}=v,N=(0,s.useRef)(O);(0,s.useEffect)(()=>{N.current=O},[O]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[B,T]=(0,s.useState)(!1),[H,U]=(0,s.useState)(!1),{props:q,meta:G}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:A,blurComplete:B,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:G.unoptimized,placeholder:G.placeholder,fill:G.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:U,ref:S}),G.priority?s.default.createElement(b,{isAppRouter:R,imgAttributes:q}):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)})(go,go.exports);var Bg=go.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=Xo,s=Pt,i=Bg,a=r._(dd()),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:p}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(p))d===void 0&&delete p[h];return{props:p}},l=i.Image})(Ju);var zg=Ju;const na=ar(zg),Fg=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(na,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(na,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]})},qg=({content:e,CONSTANTS:t})=>n.jsx("div",{className:he["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:he["support-section"],children:[n.jsxs("div",{className:he["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:he["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(Fg,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),Hg=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:he.footer__column,children:[n.jsxs("div",{className:t?he.footer__columnTitleIcon:he.footer__columnTitle,children:[n.jsx(g.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Ug=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(g.Accordion.Wrapper,{className:he.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(g.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:he.accordionHeader,closeIndicator:n.jsx(g.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:t?he.accordionTextWrapper:"",children:[n.jsx(g.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(g.Accordion.Body,{title:"accordion-body",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),eo=e=>{const{isMobile:t}=be();return t?n.jsx(Ug,{...e}):n.jsx(Hg,{...e})},Qt=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:h,columnAlignContent:d,columnAlignItems:f,textAlignContent:m,textAlignItems:_,...y})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Re();switch(e){case"menu":b=n.jsx(Me,{className:he.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{j({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:g.helpers.classNameConcat(he.payment,he.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:g.helpers.classNameConcat(he.footer__iconContainer,he.footer__iconListSubHeader),children:[p,n.jsx("div",{className:he.footer__iconList,children:i==null?void 0:i.map((S,E)=>n.jsx(v,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},E))})]})]});break;case"social-media":b=n.jsx("div",{className:he.footer__iconContainer,...y,children:n.jsx("div",{className:he.footer__iconList,children:a==null?void 0:a.map((S,E)=>n.jsx(Me,{prefetch:!1,href:S.link??"#",target:"_blank",children:n.jsx(g.Icon,{size:"medium",name:S.icon,onClick:()=>j({content:`footer:redes-sociais:${S.icon}`})})},E))})});break;default:b=n.jsx("div",{className:r,...y,children:t})}return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(g.TextStructure.DivWrapper,{alignContent:m,alignItems:_,className:g.helpers.classNameConcat(he.footer__item,r),children:b})})},Wg=({className:e,text:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(he.footer__legalInformation,e),children:n.jsx("span",{children:t})}),fd=()=>{const{nextimage:e}=Re();return n.jsx("div",{className:he["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:he["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};fd.displayName="Footer.Stamps";const pd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=be(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:he.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:he.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:g.helpers.classNameConcat(he.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:he.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:he.footer__legalText,children:t})]})};pd.displayName="Footer.Wrapper";const md=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(pd,{adornment:s,legalTextSlot:n.jsx(Wg,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(eo,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((p,h)=>n.jsx(Qt,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(eo,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(Qt,{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})}),n.jsxs(eo,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(Qt,{children:r==null?void 0:r.subTitle}):null,n.jsx(Qt,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(fd,{})]})]})};md.displayName="Footer";const Vg=Object.freeze(Object.defineProperty({__proto__:null,Footer:md,FooterSupport:qg},Symbol.toStringTag,{value:"Module"})),oa=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=ie.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=Re();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Gg=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ge(),s=x.useRef(!1);return n.jsx(ze.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Kg={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},hd=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,p;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(g.Carousel.Root,{innerRef:h=>{i(h)},className:Kg["gallery-carousel-modifier"],children:[n.jsx(g.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(g.Carousel.Body,{children:[n.jsx(g.Carousel.Item,{style:l,children:n.jsx(oa,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(g.Carousel.Item,{style:l,children:n.jsx(Gg,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(g.Carousel.Item,{style:l,children:n.jsx(oa,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};hd.displayName="PDP.Carousel";const Xg=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{video:o,productName:s}=Eo(),[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 n.jsxs(n.Fragment,{children:[n.jsx(hd,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(r,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a})]})},gd=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{images:o}=Eo(),s=x.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(Xg,{productImgs:s,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})};gd.displayName="PDP.Gallery";const Yg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:gd},Symbol.toStringTag,{value:"Module"})),Qg=({page:e,data:t})=>{const{pathname:r}=Re(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return x.useEffect(()=>{const l=Pc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Mo("login_event","",{expires:p})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const p=t,h={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>h[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:h,id:d,name:f}=Sa(),m=f,_=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},a.current={item_list_name:r==="/search"?"busca":m??void 0,item_list_id:r==="/search"?void 0:_??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:h}}});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 yo={exports:{}};function Zg(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 to={},ro={},sa;function Jg(){return sa||(sa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(ro)),ro}var ia;function ey(){return ia||(ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(x),o=Jg();function s(m){return m&&m.default?m.default:m}const i=[],a=[];let c=!1;function l(m){let _=m(),y={loading:!0,loaded:null,error:null};return y.promise=_.then(b=>(y.loading=!1,y.loaded=b,b)).catch(b=>{throw y.loading=!1,y.error=b,b}),y}function u(m,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),b=null;function j(){if(!b){const E=new p(m,y);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=y.webpack&&typeof Zg.resolveWeak=="function"?y.webpack():y.modules;E&&a.push(R=>{for(const C of E)if(R.includes(C))return j()})}function v(){j();const E=r.default.useContext(o.LoadableContext);E&&Array.isArray(y.modules)&&y.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(y.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 p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:_,_opts:y}=this;_.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(_){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,..._},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(_){return this._callbacks.add(_),()=>{this._callbacks.delete(_)}}constructor(_,y){this._loadFn=_,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(m){return u(l,m)}function d(m,_){let y=[];for(;m.length;){let b=m.pop();y.push(b(_))}return Promise.all(y).then(()=>{if(m.length)return d(m,_)})}h.preloadAll=()=>new Promise((m,_)=>{d(i).then(m,_)}),h.preloadReady=m=>(m===void 0&&(m=[]),new Promise(_=>{const y=()=>(c=!0,_());d(a,m).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const f=h}(to)),to}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,h){for(var d in h)Object.defineProperty(p,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(x),i=o._(ey()),a=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,h){if(delete h.webpack,delete h.modules,!a)return p(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,h){let d=i.default,f={loading:y=>{let{error:b,isLoading:j,pastDelay:v}=y;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}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...h};const m=f.loader,_=()=>m!=null?m().then(c):Promise.resolve(c(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,l(d,f)):d({...f,loader:_})}(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)})(yo,yo.exports);var ty=yo.exports,ry=ty;const ny=ar(ry);var _o={exports:{}},Zt={exports:{}},aa;function oy(){return aa||(aa=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 o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:p}=l;const h=document.createElement(u);for(const m in p){if(!p.hasOwnProperty(m)||m==="children"||m==="dangerouslySetInnerHTML"||p[m]===void 0)continue;const _=o[m]||m.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?h[_]=!!p[m]:h.setAttribute(_,p[m])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?h.innerHTML=f.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=p,p===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const p=document.querySelector("head");if(!p)return;const h=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=p.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<h.length;_++){var f;const b=h[_].nextSibling;(b==null||(f=b.tagName)==null?void 0:f.toLowerCase())===l&&d.push(b)}const m=u.map(s).filter(_=>{for(let y=0,b=d.length;y<b;y++){const j=d[y];if(i(j,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=_.parentNode)==null||j.removeChild(b)}(y=_.parentNode)==null||y.removeChild(_)}),m.forEach(_=>{var y;const b=document.createElement("meta");b.name="next-head",b.content="1",((y=_.tagName)==null?void 0:y.toLowerCase())==="meta"&&_.getAttribute("charset")||p.appendChild(b),p.appendChild(_)})}:a=(l,u)=>{const p=document.getElementsByTagName("head")[0],h=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(h.content),f=[];for(let y=0,b=h.previousElementSibling;y<d;y++,b=(b==null?void 0:b.previousElementSibling)||null){var m;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&f.push(b)}const _=u.map(s).filter(y=>{for(let b=0,j=f.length;b<j;b++){const v=f[b];if(i(v,y))return f.splice(b,1),!1}return!0});f.forEach(y=>{var b;return(b=y.parentNode)==null?void 0:b.removeChild(y)}),_.forEach(y=>p.insertBefore(y,h)),h.content=(d-f.length+_.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 f=u[d.type]||[];f.push(d),u[d.type]=f});const p=u.title?u.title[0]:null;let h="";if(p){const{children:d}=p.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["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)}(Zt,Zt.exports)),Zt.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 _},initScriptLoader:function(){return j},default:function(){return S}});const o=Oe,s=cr(),i=o._(ga),a=s._(x),c=td(),l=oy(),u=ul(),p=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=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)})}},m=E=>{const{src:R,id:C,onLoad:A=()=>{},onReady:O=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:B,stylesheets:T}=E,H=C||R;if(H&&h.has(H))return;if(p.has(R)){h.add(H),p.get(R).then(A,B);return}const U=()=>{O&&O(),h.add(H)},q=document.createElement("script"),G=new Promise((W,z)=>{q.addEventListener("load",function(Z){W(),A&&A.call(this,Z),U()}),q.addEventListener("error",function(Z){z(Z)})}).catch(function(W){B&&B(W)});w?(q.innerHTML=w.__html||"",U()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",U()):R&&(q.src=R,p.set(R,G));for(const[W,z]of Object.entries(E)){if(z===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,z)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(E){const{strategy:R="afterInteractive"}=E;R==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))}):m(E)}function y(E){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>m(E)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(R=>{const C=R.id||R.getAttribute("src");h.add(C)})}function j(E){E.forEach(_),b()}function v(E){const{id:R,src:C="",onLoad:A=()=>{},onReady:O=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...B}=E,{updateScripts:T,scripts:H,getIsSsr:U,appDir:q,nonce:G}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const Z=R||C;W.current||(O&&Z&&h.has(Z)&&O(),W.current=!0)},[O,R,C]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(w==="afterInteractive"?m(E):w==="lazyOnload"&&y(E),z.current=!0)},[E,w]),(w==="beforeInteractive"||w==="worker")&&(T?(H[w]=(H[w]||[]).concat([{id:R,src:C,onLoad:A,onReady:O,onError:N,...B}]),T(H)):U&&U()?h.add(R||C):U&&!U()&&m(E)),q){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:G,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:G,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)})(_o,_o.exports);var sy=_o.exports,iy=sy;const ay=ar(iy),cy=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(ay,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ly=ny(()=>Promise.resolve(cy),{ssr:!1}),uy={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},xt=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(g.SnackBar.Structure,{...c,size:e,className:g.helpers.classNameConcat(uy["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(g.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(g.SnackBar.Support,{children:s})]});xt.displayName="SnackBar";const yd=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},dy="_container_1kcm0_20",fy="_lgpd_1kcm0_71",py="_success_1kcm0_205",my="_error_1kcm0_225",Ie={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:dy,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:fy,"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:py,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:my},_d=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=be(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Lo();return n.jsx(g.TextField.Structure,{className:`${Ie["textfield-structure-modifier"]} ${u}`,input:n.jsx(g.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ie["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(p=>({...p,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ie["support-text-modifier"]:"",children:n.jsx(g.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};_d.displayName="Newsletter.Input";const vd=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ie.success,children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{className:Ie["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});vd.displayName="Newsletter.Success";const bd=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(vd,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(_d,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ie.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});bd.displayName="Newsletter.FormFields";const xd=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=be();return n.jsxs(g.Button,{...r,className:Ie["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(g.Spinner,{className:Ie["loading-spinner"],size:"small"})]})};xd.displayName="Newsletter.SubmitButton";const Cd=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ie["terms-and-conditions-unchecked"],children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};Cd.displayName="Newsletter.Terms";const Sd=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Lo();return n.jsxs("form",{className:Ie["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(bd,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(Cd,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(xd,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};Sd.displayName="Newsletter.Form";const hy=["horizontal","vertical"],jd=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:p,borderBottom:h,CONSTANTS:d,...f})=>{if(!i||!a)return null;const m=g.helpers.ValidateProp({fieldTypes:hy,property:u,fallback:"horizontal"});return n.jsx($c,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:m,CONSTANTS:d,children:n.jsxs("div",{...f,className:g.helpers.classNameConcat(Ie["newsletter-root"],[p&&Ie["has-border-top"],h&&Ie["has-border-bottom"],e].filter(Boolean)),"data-variant":m,children:[n.jsxs("div",{className:Ie.container,children:[n.jsxs("div",{className:Ie["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(Sd,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ie.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};jd.displayName="Newsletter";const gy={teamComponents:{AddToCart:$o,BackToTop:Tp,BuyPackage:vm,Filter:{...He,helpers:Nu},...Vg,FreightCalculation:_h,Header:xu,Link:Ue,Media:ze,PLPNavigation:ft,ProductCard:ve,ProductList:Ih,ProductVariationList:Je,Sort:Uo,UserMenu:Ho,Newsletter:jd},template:{pdp:Yg,minicart:ke},utils:{EventCollector:Qg,ExternalScripts:ly,LinkOrNotLink:At,ObserverWrapper:dr,SnackBarComponent:xt,DraftJsLinkWrapper:yd}},yy=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
40
+ */const c=a(357),l=(C,E,k)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(E===void 0||C===E)return String(C);if(c(E)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let P={relaxZeros:!0,...k};typeof P.strictZeros=="boolean"&&(P.relaxZeros=P.strictZeros===!1);let N=String(P.relaxZeros),I=String(P.shorthand),z=String(P.capture),T=String(P.wrap),H=C+":"+E+"="+N+I+z+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let W=Math.min(C,E),q=Math.max(C,E);if(Math.abs(W-q)===1){let A=C+"|"+E;return P.capture?`(${A})`:P.wrap===!1?A:`(?:${A})`}let K=w(C)||w(E),V={min:C,max:E,a:W,b:q},B=[],J=[];if(K&&(V.isPadded=K,V.maxLen=String(V.max).length),W<0){let A=q<0?Math.abs(q):1;J=d(A,Math.abs(W),V,P),W=V.a=0}return q>=0&&(B=d(W,q,V,P)),V.negatives=J,V.positives=B,V.result=u(J,B),P.capture===!0?V.result=`(${V.result})`:P.wrap!==!1&&B.length+J.length>1&&(V.result=`(?:${V.result})`),l.cache[H]=V,V.result};function u(C,E,k){let P=f(C,E,"-",!1)||[],N=f(E,C,"",!1)||[],I=f(C,E,"-?",!0)||[];return P.concat(I).concat(N).join("|")}function p(C,E){let k=1,P=1,N=x(C,k),I=new Set([E]);for(;C<=N&&N<=E;)I.add(N),k+=1,N=x(C,k);for(N=S(E+1,P)-1;C<N&&N<=E;)I.add(N),P+=1,N=S(E+1,P)-1;return I=[...I],I.sort(_),I}function g(C,E,k){if(C===E)return{pattern:C,count:[],digits:0};let P=h(C,E),N=P.length,I="",z=0;for(let T=0;T<N;T++){let[H,W]=P[T];H===W?I+=H:H!=="0"||W!=="9"?I+=j(H,W):z++}return z&&(I+=k.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[z],digits:N}}function d(C,E,k,P){let N=p(C,E),I=[],z=C,T;for(let H=0;H<N.length;H++){let W=N[H],q=g(String(z),String(W),P),K="";if(!k.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),z=W+1;continue}k.isPadded&&(K=R(W,k,P)),q.string=K+q.pattern+v(q.count),I.push(q),z=W+1,T=q}return I}function f(C,E,k,P,N){let I=[];for(let z of C){let{string:T}=z;!P&&!y(E,"string",T)&&I.push(k+T),P&&y(E,"string",T)&&I.push(k+T)}return I}function h(C,E){let k=[];for(let P=0;P<C.length;P++)k.push([C[P],E[P]]);return k}function _(C,E){return C>E?1:E>C?-1:0}function y(C,E,k){return C.some(P=>P[E]===k)}function x(C,E){return Number(String(C).slice(0,-E)+"9".repeat(E))}function S(C,E){return C-C%Math.pow(10,E)}function v(C){let[E=0,k=""]=C;return k||E>1?`{${E+(k?","+k:"")}}`:""}function j(C,E,k){return`[${C}${E-C===1?"":"-"}${E}]`}function w(C){return/^-?(0+)\d/.test(C)}function R(C,E,k){if(!E.isPadded)return C;let P=Math.abs(E.maxLen-String(C).length),N=k.relaxZeros!==!1;switch(P){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${P}}`:`0{${P}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=Eg},837:s=>{s.exports=uy()}},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 o=r(971);an.exports=o})()),an.exports}var ha;function fy(){return ha||(ha=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 o},hasMatch:function(){return s}});const r=dy();function o(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=>o(l,c))}}(sn)),sn}var ga;function Nd(){return ga||(ga=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;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(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=fy();if(!p(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}(on)),on}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});const r=Oe,s=hr()._(b),i=r._(Na),a=r._(Pg()),c=cs,l=xr,u=Rg(),p=Lt,g=El(),d=r._(Nd()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(v,j,w,R,C,E){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(j!=="empty"&&C(!0),w!=null&&w.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,z=!1;w.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>I,isPropagationStopped:()=>z,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{z=!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(!E&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const I=v.height.toString()!==v.getAttribute("height"),z=v.width.toString()!==v.getAttribute("width");(I&&!z||!I&&z)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function _(v){const[j,w]=s.version.split("."),R=parseInt(j,10),C=parseInt(w,10);return R>18||R===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,j)=>{let{src:w,srcSet:R,sizes:C,height:E,width:k,decoding:P,className:N,style:I,fetchPriority:z,placeholder:T,loading:H,unoptimized:W,fill:q,onLoadRef:K,onLoadingCompleteRef:V,setBlurComplete:B,setShowAltText:J,onLoad:A,onError:O,...D}=v;return s.default.createElement("img",{...D,..._(z),loading:H,width:k,height:E,decoding:P,"data-nimg":q?"fill":"1",className:N,style:I,sizes:C,srcSet:R,src:w,ref:(0,s.useCallback)(X=>{j&&(typeof j=="function"?j(X):typeof j=="object"&&(j.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(w||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,T,K,V,B,W))},[w,T,K,V,B,O,W,j]),onLoad:X=>{const ne=X.currentTarget;h(ne,T,K,V,B,W)},onError:X=>{J(!0),T!=="empty"&&B(!0),O&&O(X)}})});function x(v){let{isAppRouter:j,imgAttributes:w}=v;const R={as:"image",imageSrcSet:w.srcSet,imageSizes:w.sizes,crossOrigin:w.crossOrigin,referrerPolicy:w.referrerPolicy,..._(w.fetchPriority)};return j&&i.default.preload?(i.default.preload(w.src,R),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+w.src+w.srcSet+w.sizes,rel:"preload",href:w.srcSet?void 0:w.src,...R}))}const S=(0,s.forwardRef)((v,j)=>{const R=!(0,s.useContext)(g.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),E=(0,s.useMemo)(()=>{const V=f||C||l.imageConfigDefault,B=[...V.deviceSizes,...V.imageSizes].sort((A,O)=>A-O),J=V.deviceSizes.sort((A,O)=>A-O);return{...V,allSizes:B,deviceSizes:J}},[C]),{onLoad:k,onLoadingComplete:P}=v,N=(0,s.useRef)(k);(0,s.useEffect)(()=>{N.current=k},[k]);const I=(0,s.useRef)(P);(0,s.useEffect)(()=>{I.current=P},[P]);const[z,T]=(0,s.useState)(!1),[H,W]=(0,s.useState)(!1),{props:q,meta:K}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:E,blurComplete:z,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:W,ref:j}),K.priority?s.default.createElement(x,{isAppRouter:R,imgAttributes:q}):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)})(wo,wo.exports);var py=wo.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var g in p)Object.defineProperty(u,g,{enumerable:!0,get:p[g]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=cs,s=Lt,i=py,a=r._(Nd()),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:p}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[g,d]of Object.entries(p))d===void 0&&delete p[g];return{props:p}},l=i.Image})(vd);var my=vd;const lr=mr(my),hy=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(lr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:ye["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(lr,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(m.Icon,{size:"small",name:o})]})},gy=({content:e,CONSTANTS:t})=>n.jsx("div",{className:ye["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:ye["support-section"],children:[n.jsxs("div",{className:ye["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:ye["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(hy,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),yy=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(m.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:ye.footer__column,children:[n.jsxs("div",{className:t?ye.footer__columnTitleIcon:ye.footer__columnTitle,children:[n.jsx(m.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),_y=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(m.Accordion.Wrapper,{className:ye.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(m.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:ye.accordionHeader,closeIndicator:n.jsx(m.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(m.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:t?ye.accordionTextWrapper:"",children:[n.jsx(m.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(m.Accordion.Body,{title:"accordion-body",children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:ye.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),co=e=>{const{isMobile:t}=ge();return t?n.jsx(_y,{...e}):n.jsx(yy,{...e})},or=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:g,columnAlignContent:d,columnAlignItems:f,textAlignContent:h,textAlignItems:_,...y})=>{let x;const{handleSelectContent:S}=ue(),{nextimage:v}=be();switch(e){case"menu":x=n.jsx(Me,{className:ye.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{S({content:`footer:${o}:${t}`})},children:t})});break;case"payment":x=n.jsxs("div",{className:m.helpers.classNameConcat(ye.payment,ye.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:m.helpers.classNameConcat(ye.footer__iconContainer,ye.footer__iconListSubHeader),children:[p,n.jsx("div",{className:ye.footer__iconList,children:i==null?void 0:i.map((j,w)=>n.jsx(v,{alt:j,src:`/assets/${j}.svg`,width:c??20,height:c??20},w))})]})]});break;case"social-media":x=n.jsx("div",{className:ye.footer__iconContainer,...y,children:n.jsx("div",{className:ye.footer__iconList,children:a==null?void 0:a.map((j,w)=>n.jsx(Me,{prefetch:!1,href:j.link??"#",target:"_blank",children:n.jsx(m.Icon,{size:"medium",name:j.icon,onClick:()=>S({content:`footer:redes-sociais:${j.icon}`})})},w))})});break;default:x=n.jsx("div",{className:r,...y,children:t})}return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:g,alignItems:g},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(m.TextStructure.DivWrapper,{alignContent:h,alignItems:_,className:m.helpers.classNameConcat(ye.footer__item,r),children:x})})},vy=({className:e,text:t,...r})=>n.jsx("div",{...r,className:m.helpers.classNameConcat(ye.footer__legalInformation,e),children:n.jsx("span",{children:t})}),Td=()=>{const{nextimage:e}=be();return n.jsx("div",{className:ye["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:ye["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Td.displayName="Footer.Stamps";const kd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=ge(),a=b.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:ye.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:ye.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:m.helpers.classNameConcat(ye.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:ye.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:ye.footer__legalText,children:t})]})};kd.displayName="Footer.Wrapper";const Od=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(kd,{adornment:s,legalTextSlot:n.jsx(vy,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(co,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((p,g)=>n.jsx(or,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},g))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(co,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(or,{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})}),n.jsxs(co,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(or,{children:r==null?void 0:r.subTitle}):null,n.jsx(or,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(Td,{})]})]})};Od.displayName="Footer";const xy=Object.freeze(Object.defineProperty({__proto__:null,Footer:Od,FooterSupport:gy},Symbol.toStringTag,{value:"Module"})),by=()=>{const{colorName:e}=De();return n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:e.length===0?"":U.styles["accessibility-info"],children:n.jsx("p",{children:e})})})},Cr=({className:e,titleId:t})=>{var s,i,a;const{productName:r,tag:o}=De();return n.jsxs("div",{className:m.helpers.classNameConcat(U.styles.header,e),children:[o!=null&&o.commercial?n.jsx(m.Tag,{size:"small",title:(s=o.commercial)==null?void 0:s.value,variant:"quaternary",adornment:{start:(i=o.commercial)!=null&&i.icon?n.jsx(m.Icon,{name:o.commercial.icon}):null},children:(a=o.commercial)==null?void 0:a.value}):null,n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h1",{id:t,children:r})})})]})};Cr.displayName="PDP.PDPHeader";const ps=({layout:e="horizontal"})=>{const{price:t,listPrice:r,installments:o}=De(),{count:s,value:i}=o,a=U.formatPriceToCurrency(r??0,!0),c=U.formatPriceToCurrency(t??0,!0),l=U.formatPriceToCurrency(i??0);return n.jsx(m.ProductInfo.Root,{size:"small",layout:e,children:n.jsxs(m.ProductInfo.Wrapper,{layout:e,size:"small",className:U.styles["price-wrapper"],children:[n.jsx(m.ProductInfo.ValuesWrapper,{children:t!==r?n.jsxs(n.Fragment,{children:[n.jsx(m.ProductInfo.Price,{label:"originalPrice",value:a.toString(),size:"small"}),n.jsx(m.ProductInfo.Price,{label:"discountPrice",value:c.toString(),size:"small"})]}):n.jsx(m.ProductInfo.Price,{label:"defaultPrice",value:c.toString(),size:"small"})}),s&&s>1&&i?n.jsx(m.ProductInfo.Price,{label:"installment",value:`ou ${s}x ${l}`,size:"small"}):null]})})},Po=({onAddCallBack:e,onDisabledClickCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})=>{const s=Tt(),{productId:i,productData:a,price:c,listPrice:l,thumbImage:u,isKit:p}=De(),{isMobile:g}=ge(),{addToCart:d}=Re(),{sendDataLayerEvent:f}=ue(),h=!p&&(!s.sku||!s.available),_=()=>{if(h&&typeof t=="function"){t();return}typeof e=="function"&&e({id:s.sku,quantity:s.quantity,seller:s.sellerId,sku:i}),d({id:s.sku,quantity:s.quantity,seller:s.sellerId},{id:i,texture:u==null?void 0:u.imageUrl}),f({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...a,price:c,listPrice:l}]},supportData:{selectedSkus:[s]},customData:{quantity:s.quantity}}})};return n.jsx(m.Button,{className:U.styles["add-to-cart"],size:g?(r==null?void 0:r.mobile)??"large":(r==null?void 0:r.desktop)??"x-large",onClick:_,children:s.sku&&s.available?`${o.add_to_cart}`:`${o.select_size}`})},jy=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t})=>{const{isMobile:r}=ge(),o=Tt(),{sizesContainerRef:s}=Oa(),{structureRef:i}=je();return o.sku&&o.available?n.jsx(Po,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t}):n.jsx(m.Button,{className:U.styles["add-to-cart"],size:r?(e==null?void 0:e.mobile)??"large":(e==null?void 0:e.desktop)??"x-large",onClick:()=>{s.current&&i.current&&window.document.body.scrollTo({top:s.current.offsetTop-i.current.offsetHeight,behavior:"smooth"})},children:o.sku&&o.available?t.add_to_cart:t.select_size})},Cy=({addToCartBtnSize:e,BUY_BUTTON_LABELS:t,Z_INDEX_WAR:r})=>{const{isMobile:o}=ge();return o?n.jsxs(m.Card,{className:U.styles["bottom-navigation"],shadow:!0,style:{zIndex:r.pdp_bottom_navigation},children:[n.jsxs("div",{className:U.styles["bottom-navigation__header"],children:[n.jsx(Cr,{}),n.jsx(ps,{layout:"name-vertical"})]}),n.jsx(jy,{addToCartBtnSize:e,BUY_BUTTON_LABELS:t})]}):null},Sy=({children:e,setShowBottomNavigation:t})=>{const r=b.useRef(null),o=Mo(r),s=b.useRef(o);return b.useEffect(()=>{var a;const{top:i}=((a=r.current)==null?void 0:a.getBoundingClientRect())??{top:0};s.current!==o&&i>0&&(t(!o),s.current=o)},[o]),n.jsx("div",{ref:r,style:{width:"100%"},children:e})},wy=({ICONS:e})=>{const{isMobile:t}=ge(),{price:r,listPrice:o,productData:s,productId:i}=De(),{sendDataLayerEvent:a}=ue(),c=Ho(),{toggleProduct:l}=Uo();return n.jsx(m.Button,{adornment:{start:n.jsx(m.Icon,{name:e[c.includes(i)?"favorite_true":"favorite_false"],size:"medium"})},className:U.styles["add-to-wishlist"],size:t?"medium":"x-large",variant:"tertiary",onClick:()=>{l(i),a({functionKey:"productEvents",data:{event:c.includes(i)?"remove_from_wishlist":"add_to_wishlist",outsideEcommerceData:{region:"PDP"},commonData:{...s,price:r,listPrice:o}}})}})},Md=({showWishlist:e=!0,callBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o,ICONS:s,Z_INDEX_WAR:i})=>{const{isMobile:a}=ge(),[c,l]=b.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:U.styles.actions,children:[a?n.jsx(Sy,{setShowBottomNavigation:l,children:n.jsx(Po,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o})}):n.jsx(Po,{onAddCallBack:t,addToCartBtnSize:r,BUY_BUTTON_LABELS:o}),e&&n.jsx(wy,{ICONS:s})]}),a&&c&&n.jsx(Cy,{addToCartBtnSize:r,BUY_BUTTON_LABELS:o,Z_INDEX_WAR:i})]})},Ld=({className:e,device:t,ICONS:r})=>{const{breadcrumbList:o,productName:s}=De(),i=a=>a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return n.jsx(m.BreadCrumb.DivWrapper,{className:m.helpers.classNameConcat(U.styles.breadcrumb,[t==="mobile"?U.styles["breadcrumbs-mobile"]:U.styles["breadcrumbs-desktop"],e]),children:n.jsxs(m.BreadCrumb.List,{children:[Array.isArray(o)&&o.map((a,c)=>{const l=i(o.slice(0,c+1).map(u=>u.replace(/\s/g,"-").toLowerCase()).join("/"));return n.jsx(m.BreadCrumb.Item,{adornment:{end:n.jsx(m.Icon,{name:r.arrow_right})},role:"listitem",children:n.jsx(Me,{href:`/${l}`,children:a})},`pdp-breadcrumb-${l}-${c}`)}),n.jsx(m.BreadCrumb.Item,{role:"listitem",className:m.helpers.classNameConcat(U.styles["breadcrumb--active"],e),children:s},"pdp-breadcrumb-productName")]})})};Ld.displayName="PDP.BreadCrumb";const Dd=({className:e})=>{var o;const{tag:t}=De(),r=t==null?void 0:t.flagPdp;return r&&((o=r==null?void 0:r.value)!=null&&o.length)?n.jsx(m.Tag,{className:m.helpers.classNameConcat(U.styles.credits,e),variant:"tertiary",title:r==null?void 0:r.value,size:"small",adornment:{start:r!=null&&r.enableIcon&&(r!=null&&r.icon)?n.jsx(m.Icon,{name:r==null?void 0:r.icon,style:{color:r==null?void 0:r.iconColor}}):null},style:{background:r==null?void 0:r.tagColor,color:r==null?void 0:r.textColor},children:r==null?void 0:r.value}):n.jsx(n.Fragment,{})};Dd.displayName="PDPCredits";const Py=()=>{const{descriptionContent:e,productReference:t}=De(),[r,o]=b.useState("description");return n.jsxs(m.Tabs.Root,{className:U.styles["tabs-root-modifier"],children:[n.jsx(m.Tabs.TabList,{className:U.styles["tabs-list-modifier"],children:e==null?void 0:e.map(({label:s,value:i})=>n.jsx(m.Tabs.Item,{label:s,value:i,activeTab:r,onTabChange:o,size:"large",className:`${U.styles["tabs-item-modifier"]} ${r===i?U.styles["tabs-item-active"]:""}`},i))}),n.jsxs("div",{className:U.styles["content-wrapper"],children:[r==="description"?n.jsx("div",{children:n.jsxs("span",{className:U.styles.productref,children:["Ref:",t]})}):"",e==null?void 0:e.map(({value:s,content:i})=>r===s?n.jsx(m.Tabs.Panel,{className:`${U.styles["tabs-panel"]} ${r===s?U.styles["tabs-panel-enter"]:U.styles["tabs-panel-exit"]}`,children:n.jsx("div",{className:U.styles.content,dangerouslySetInnerHTML:{__html:i}})},s):null)]})]})},Ry=({CURRENCY:e,DELIVERY_INFO_BOXES_ALLOWED:t,FREIGHT_CALCULATION:r,Z_INDEX_WAR:o})=>{const s=Tt(),{isMobile:i}=ge();return n.jsxs(n.Fragment,{children:[i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null,n.jsx(Fu,{skuId:s.available?s.sku:"",size:i?r.inputSize.mobile:r.inputSize.desktop,quantity:s.quantity,sellerId:s.sellerId,seller:s.sellerName,local:"PDP",CONSTANTS_PROPS:{freightConfig:r,deliveryInfoBoxesAllowed:t,toolTipZIndex:o.modal,currency:e}}),i?n.jsx(m.Utils.Divider,{direction:"horizontal",size:"small"}):null]})},ya=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=U.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=be();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Ey=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ue(),s=b.useRef(!1);return n.jsx(ze.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},$d=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,p;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(m.Carousel.Root,{innerRef:g=>{i(g)},className:U.styles["gallery-carousel-modifier"],children:[n.jsx(m.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:g=>c==null?void 0:c.navigateTo(g)})}),n.jsxs(m.Carousel.Body,{children:[n.jsx(m.Carousel.Item,{style:l,children:n.jsx(ya,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(m.Carousel.Item,{style:l,children:n.jsx(Ey,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((g,d)=>d===0?null:n.jsx(m.Carousel.Item,{style:l,children:n.jsx(ya,{image:g,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};$d.displayName="PDP.Carousel";const Ay="_thumbs_1fbzz_65",Iy="_selected_1fbzz_93",Ny="_carousel_1fbzz_162",Ty="_bullets_1fbzz_199",we={"image-zoom-wrapper-desktop":"_image-zoom-wrapper-desktop_1fbzz_1","button-close-container":"_button-close-container_1fbzz_10","button-close":"_button-close_1fbzz_10","main-image-container":"_main-image-container_1fbzz_22","image-desktop":"_image-desktop_1fbzz_52",thumbs:Ay,selected:Iy,"image-zoom-wrapper-mobile":"_image-zoom-wrapper-mobile_1fbzz_115","image-mobile":"_image-mobile_1fbzz_145","image-zoom--image":"_image-zoom--image_1fbzz_159",carousel:Ny,"carousel-controller":"_carousel-controller_1fbzz_167","arrow-left":"_arrow-left_1fbzz_177","arrow-right":"_arrow-right_1fbzz_178",bullets:Ty,"zoom-popup":"_zoom-popup_1fbzz_210","image-zoom--mobile":"_image-zoom--mobile_1fbzz_250","image-zoom--image--img":"_image-zoom--image--img_1fbzz_280"},_a=({onClose:e,ICONS:t})=>n.jsx("div",{className:`${we["button-close-container"]}`,children:n.jsx(m.Button,{iconNameStart:t.close,iconSize:"medium",className:`${we["button-close"]}`,variant:"tertiary",state:"default",size:"medium",onClick:e,style:{textDecoration:"none"}})}),ky=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-desktop"],style:{zIndex:t.pdp_image_zoom},children:e}),zd=({images:e,setCurrent:t,setFirstImgLoaded:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{const{nextimage:i}=be();let a=null;const c=b.useRef(null),{initialize:l,controller:u,pagination:p,itemsStyles:g}=m.Carousel.useCarousel({itemsPerPage:1,gap:10,loop:!1,direction:"row"}),d=h=>{u==null||u.navigateTo(h)},f=()=>{r(!0)};return b.useEffect(()=>{t(p.currentPage)},[p.currentPage,t]),n.jsxs(m.Carousel.Root,{innerRef:h=>{h&&!a&&(a=h,l(a))},className:we.carousel,children:[n.jsxs(m.Carousel.Controller,{className:we["carousel-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.prevPage(),className:we["arrow-left"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>u==null?void 0:u.nextPage(),className:we["arrow-right"],adornment:{start:n.jsx(m.Icon,{name:o.arrow_right})}})]}),n.jsx(m.Carousel.Body,{children:Array.isArray(e)&&e.map((h,_)=>n.jsx(m.Carousel.Item,{style:g,children:n.jsx(i,{...s.image_zoom.mobile,..._===0&&{priority:!0,loading:"eager"},ref:c,className:we.imageMobile,src:h.imageUrl,alt:h.imageText,quality:100,..._===0&&{onLoad:f}})},_))}),n.jsx(m.Carousel.Bullets,{className:we.bullets,page:p.currentPage,total:p.totalPages,onBulletClick:d})]})};zd.displayName="ImageZoom.Mobile.Carousel";const Bd=({imgRef:e,image:t,PRODUCT_IMAGE_DIMENSIONS:r})=>{qa();const{nextimage:o}=be();return n.jsx("div",{className:we["image-zoom--image"],ref:e,children:n.jsx(o,{...r.image_zoom.mobile,alt:t.imageText,className:we["image-zoom--image--img"],quality:100,src:t.imageUrl})})};Bd.displayName="ImageZoom.ImageZoom";const Fd=({loaded:e=!1})=>n.jsx("div",{className:we["zoom-popup"],"data-loaded":e,children:n.jsxs("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.93 5.382a3.711 3.711 0 0 1 2.55-1.007c.949 0 1.864.36 2.549 1.007a3.534 3.534 0 0 1 1.113 2.472v11.357l10.118 3.332c.587.193 1.1.56 1.465 1.053.366.494.565 1.089.566 1.7v.004c0 .22-.025.44-.075.653v.005l-2.98 12.52a.625.625 0 0 1-1.215-.29l2.977-12.515v-.002c.029-.122.043-.247.044-.372a1.619 1.619 0 0 0-.321-.958 1.729 1.729 0 0 0-.851-.61L24.32 20.257a.625.625 0 0 1-.43-.594V7.88a2.285 2.285 0 0 0-.72-1.59 2.462 2.462 0 0 0-1.691-.665c-.635 0-1.241.24-1.69.666a2.285 2.285 0 0 0-.722 1.59v19.04a.625.625 0 0 1-1.115.388l-.056-.071-.161-.202a178.922 178.922 0 0 0-2.333-2.858l-.002-.002a2.581 2.581 0 0 0-.897-.69 2.677 2.677 0 0 0-1.122-.25H12.37c-.307 0-.61.078-.874.225a1.712 1.712 0 0 0-.635.61 1.625 1.625 0 0 0-.016 1.653l7.128 12.296a.625.625 0 0 1-1.082.627L9.762 26.35a2.876 2.876 0 0 1 .027-2.924 2.962 2.962 0 0 1 1.098-1.057 3.05 3.05 0 0 1 1.482-.384h1.016c.57.002 1.133.127 1.648.368.515.24.97.59 1.33 1.024.514.614 1.026 1.239 1.455 1.768V7.855a3.535 3.535 0 0 1 1.113-2.473ZM6.446 10.22a.625.625 0 0 1 0 .884l-5.324 5.324a.625.625 0 0 1-.884-.884l5.324-5.324a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.68 12.033c.345 0 .625.28.625.625v2.703h2.702a.625.625 0 1 1 0 1.25H.68a.625.625 0 0 1-.625-.625v-3.328c0-.345.28-.625.625-.625ZM16.429.237a.625.625 0 0 1 0 .884l-5.325 5.324a.625.625 0 0 1-.884-.883L15.545.237a.625.625 0 0 1 .884 0Z"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034.68c0-.346.28-.626.625-.626h3.328c.345 0 .625.28.625.625v3.328a.625.625 0 1 1-1.25 0V1.304h-2.703a.625.625 0 0 1-.625-.625Z"})]})});Fd.displayName="ImageZoom.ZoomPopup";const qd=({images:e,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=b.useState(!1),[a,c]=b.useState(0),{containerRef:l,imgRef:u,scale:p}=Ha({defaultScale:1,maxScale:3});return n.jsxs("div",{...o,className:we["image-mobile"],"data-disable-carrousel-pan":p>1,children:[n.jsx(Fd,{loaded:s}),n.jsx(zd,{images:e,setCurrent:c,setFirstImgLoaded:i,ICONS:t,PRODUCT_IMAGE_DIMENSIONS:r}),n.jsx("div",{className:we["image-zoom--mobile"],ref:l,children:n.jsx(Bd,{imgRef:u,image:e[a],PRODUCT_IMAGE_DIMENSIONS:r})})]})};qd.displayName="ImageZoom.ImageMobile";const Oy=({children:e,Z_INDEX_WAR:t,...r})=>n.jsx("div",{...r,className:we["image-zoom-wrapper-mobile"],style:{zIndex:t.pdp_image_zoom},children:e}),My="_modal_1u87b_1",Ge={modal:My,"quick-shop__modal":"_quick-shop__modal_1u87b_4","shop-bag":"_shop-bag_1u87b_9","modal-product-body":"_modal-product-body_1u87b_25","pdp-main__info-modifier":"_pdp-main__info-modifier_1u87b_32","modal-header":"_modal-header_1u87b_38","modal-header__title":"_modal-header__title_1u87b_41"};function Ly({headerTitle:e,isMobile:t,ICONS:r}){return n.jsx(m.Modal.Header,{navigation:"top",className:Ge["modal-header"],children:n.jsxs(m.Modal.Controls,{navigation:"top",isMobile:t,children:[n.jsx("div",{className:Ge["modal-header__title"],children:n.jsx(m.Modal.Title,{navigation:"top",className:Ge["quick-shop__title"],title:e})}),n.jsx(m.Button,{className:Ge["modal-header__close-button"],"data-close":!0,iconNameStart:r.close,size:"small",variant:"tertiary"})]})})}const Dy=({items:e,getLabel:t,PLP_SIZE_ORDER:r})=>Array.isArray(e)?[...e].sort((o,s)=>{const i=t(o).toUpperCase(),a=t(s).toUpperCase(),c=r.indexOf(i)-r.indexOf(a);return c!==0?c:i.localeCompare(a,"pt-BR")}):[],Hd=({isMobile:e,ICONS:t,NOTIFY_INFO:r})=>n.jsxs(n.Fragment,{children:[n.jsx(m.Modal.Controls,{navigation:e?"top":"middle",isMobile:e??!1,children:!e&&n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{"data-close":!0,iconNameStart:t.arrow_left,size:"small",variant:"tertiary"}),n.jsx(m.Button,{"data-close":!0,iconNameStart:t.close,size:"small",variant:"tertiary"})]})}),n.jsx(m.Modal.Title,{navigation:e?"top":"middle",title:r.title})]});Hd.displayName="Notify.Controls";const Ue={"notify--header-modifier":"_notify--header-modifier_xlomp_1","notify--container":"_notify--container_xlomp_4","notify--form":"_notify--form_xlomp_20","notify--status":"_notify--status_xlomp_36","notify--status--success":"_notify--status--success_xlomp_50","notify--status--error":"_notify--status--error_xlomp_50","notify--modal--body":"_notify--modal--body_xlomp_99","notify--loading":"_notify--loading_xlomp_102","notify--selector":"_notify--selector_xlomp_122","notify--selector--header":"_notify--selector--header_xlomp_138","modal-modifier":"_modal-modifier_xlomp_168"},Ud=({color:e,delay:t=3e3,sku:r,setStatus:o,setIsLoading:s,NEWSLETTER_CONFIGS:i,NOTIFY_INFO:a})=>{const c=b.useRef(null),[l,u]=b.useState(null),{sendDataLayerEvent:p}=ue(),{user:g}=Ot(),d=g!=null&&g.firstName?`${g==null?void 0:g.firstName} ${g==null?void 0:g.lastName}`:"";return n.jsx("div",{className:Ue["notify--form"],children:n.jsxs("form",{action:"POST",onSubmit:async f=>{var y;f.preventDefault();const h=f.currentTarget,_=((y=h.querySelector("input"))==null?void 0:y.value)??"";fetch("/api/aviseme",{method:"POST",body:JSON.stringify({userName:d,email:_,sku:r==null?void 0:r.skuID})}).then(x=>o(x.ok)).finally(()=>{s(!1),h.reset(),p({functionKey:"readyEvents",data:{event:"notify_me",readyData:{size:r==null?void 0:r.size,item_id:r==null?void 0:r.skuID,color:e}}}),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{var x;(x=document.body)==null||x.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0})),u(!0),o(null)},t)})},children:[n.jsx(m.TextField.Structure,{input:n.jsx(m.TextField.Input,{feedback:typeof l=="boolean"&&l?"error":"none",type:"email",label:a.email_placeholder,mode:"over-label",variant:"outlined",sizeVariant:"large",onChange:f=>u(!f.target.validity.valid),required:!0}),supportText:typeof l=="boolean"&&l?n.jsx(m.TextField.SupportText,{text:i.messages.invalid_email,feedback:"error"}):n.jsx(n.Fragment,{})}),n.jsx(m.Button,{disabled:!(l===!1||!r)||!r,type:"submit",size:"large",children:a.button})]})})};Ud.displayName="Notify.Form";const Wd=({isLoading:e=!1})=>n.jsx("div",{className:Ue["notify--loading"],"data-loading":e,children:n.jsx(m.Spinner,{})});Wd.displayName="Notify.Loading";const $y=(e,t)=>{if(!e||!t)return!1;const r=Object.keys(e);return r.length!==Object.keys(t).length?!1:r.every(o=>e[o]===t[o])},Vd=({children:e,label:t="",skus:r,sku:o,setSku:s})=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ue["notify--selector--header"],children:e}),n.jsxs(Ve.Root,{className:Ue["notify--selector"],children:[n.jsx(Ve.Title,{title:t}),n.jsx(Ve.List,{children:Array.isArray(r)&&r.map((i,a)=>{const c=$y(o,i);return n.jsx(Ve.Option,{active:c,onClick:()=>s(c?null:i),text:String(i.size),type:"size"},a)})})]})]});Vd.displayName="Notify.Selector";const va=({type:e,icon:t,title:r,subtitle:o})=>n.jsx("div",{className:Ue[`notify--status--${e}`],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:t,size:"large"})},children:n.jsxs(m.TextStructure.DivWrapper,{children:[n.jsx("h2",{children:r}),n.jsx("h3",{children:o})]})})}),Gd=({status:e,ICONS:t,PRODUCT_CARD_TEXTS:r})=>n.jsxs("div",{className:Ue["notify--status"],"data-status":e,children:[n.jsx(va,{...r.success,icon:t.check_circle,type:"success"}),n.jsx(va,{...r.error,icon:t.alert_circle,type:"error"})]});Gd.displayName="Notify.Status";const Kd=({color:e,open:t,setVisible:r,skus:o,sku:s,setSku:i,ICONS:a,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l,PRODUCT_CARD_TEXTS:u,Z_INDEX_WAR:p})=>{const[g,d]=b.useState(!1),[f,h]=b.useState(null),{isMobile:_}=ge();return n.jsxs(m.Modal.Root,{isMobile:_??!1,isOpen:t,setIsOpen:r,variant:_?"sideBottom":"sideLeft",style:{zIndex:p.modal},className:Ue["modal-modifier"],children:[n.jsx(m.Modal.Header,{navigation:"top",className:Ue["notify--header-modifier"],children:n.jsx(Hd,{isMobile:_??!1,ICONS:a,NOTIFY_INFO:l})}),n.jsxs(m.Modal.Body,{className:Ue["notify--modal--body"],children:[n.jsxs("div",{className:Ue["notify--container"],children:[n.jsxs(Vd,{label:l.selector_label,sku:s,skus:o,setSku:i,children:[n.jsx("p",{children:l.subtitle}),n.jsx("span",{children:l.description})]}),n.jsx(Ud,{delay:4e3,sku:s,setStatus:h,setIsLoading:d,color:e,NEWSLETTER_CONFIGS:c,NOTIFY_INFO:l}),n.jsx(Wd,{isLoading:g}),n.jsx("div",{className:Ue["notify--selector--header"],children:n.jsx("span",{children:l.legal})})]}),n.jsx(Gd,{status:f,ICONS:a,PRODUCT_CARD_TEXTS:u})]})]})};Kd.displayName="Notify";const Xd=({PDP_INFO:e,PLP_SIZE_ORDER:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})=>{const{sizes:c,productId:l,handleViewItemEvent:u}=De(),p=b.useMemo(()=>c!=null&&c.length?Dy({items:c,getLabel:j=>j.value,PLP_SIZE_ORDER:t}):[],[c]),{sizesContainerRef:g}=Oa(),{isMobile:d}=ge(),f=Tt(),h=bc(),{setValue:_}=_c(),{setValue:y}=Fo(),x=b.useRef({}),[S,v]=b.useState(null);return n.jsxs("div",{ref:g,className:U.styles.sizes,children:[n.jsx("span",{className:U.styles["sections-title"],children:e.product.size_title}),n.jsx("div",{children:p.map(j=>(!j.available&&!x.current[j.value]&&(x.current[j.value]={disable:!j.available,size:j.value,skuID:j.sku}),n.jsxs(m.ToggleSize.Wrapper,{size:d?"medium":"large",title:j.value,outOfStock:!j.available,onClick:()=>{j.available||(v({skuID:j.sku,size:j.value,disable:!0}),y(!0)),f.sku!==j.sku&&(_({...f,productId:l,name:j.name,size:j.value,sku:j.sku,sellerId:j.sellerId,sellerName:j.sellerName,available:j.available}),u({sku:j.sku,size:j.value}))},active:f.sku===j.sku,children:[n.jsx(m.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(m.ToggleSize.Text,{children:j==null?void 0:j.value})]},`sizes-${j.sku}-${j.value}`)))}),n.jsx(Kd,{open:h,setVisible:y,sku:S,setSku:v,skus:Object.values(x.current),ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PRODUCT_CARD_TEXTS:i,Z_INDEX_WAR:a})]})},wt=({children:e,className:t,type:r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-subsection"],[U.styles[`subsection-${r}`],t]),children:e}),Qd=({children:e,className:t})=>{const{structureRef:r,tipbarRef:o}=je(),s=b.useMemo(()=>{var c,l;const i=((c=r.current)==null?void 0:c.clientHeight)||0,a=((l=o.current)==null?void 0:l.clientHeight)||0;return i+a},[r,o]);return n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info"],t),id:"pdpmaininfo",style:{top:s},children:e})},zy=({children:e,link:t,TOGGLE_STYLE_MODIFIER:r})=>{const{isMobile:o}=ge(),{router:s}=be(),i=()=>{t&&s.push(t)},a=b.useRef(null);return n.jsx(m.ToggleStyle.Wrapper,{size:o?"medium":"small",style:{...r,border:`${a.current===t?"2":"1"}`,overflow:"hidden",padding:"0"},onClick:i,active:a.current===t,children:e})},Yd=({productId:e,similars:t,TOGGLE_STYLE_MODIFIER:r})=>{const{thumbImage:o}=De(),s=[{productId:e,slug:"",textureImage:(o==null?void 0:o.imageUrl)??"",textureAlt:(o==null?void 0:o.imageText)??""},...t];return n.jsx("div",{children:s.map((i,a)=>i.textureImage?n.jsxs(zy,{link:i.slug?i.slug:null,TOGGLE_STYLE_MODIFIER:r,children:[n.jsx(m.ToggleStyle.DisabledAdornment,{}),n.jsx(m.ToggleStyle.Texture,{children:n.jsx(ze.Image,{alt:i.textureAlt,src:i.textureImage,height:34,width:34,style:{borderRadius:0,height:"100%"}})})]},`similars-item-${a}`):null)})},Zd=({TEXTURE_IMAGE:e,TOGGLE_STYLE_MODIFIER:t})=>{const{productId:r}=De(),[o,s]=b.useState([]);return b.useEffect(()=>{fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:r,filterTexture:e})}).then(i=>i.json()).then(({data:i})=>{Array.isArray(i)&&i.length===0||s(i)}).catch(i=>{console.error(i)})},[r]),n.jsxs("div",{className:U.styles.similars,children:[n.jsx("span",{className:U.styles["sections-title"],children:"Cor"}),n.jsx(Yd,{productId:r,similars:o,TOGGLE_STYLE_MODIFIER:t})]})};Zd.displayName="PDP.Info.Similars";const By=({callBackProductAdded:e,BUY_BUTTON_LABELS:t,ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u,Z_INDEX_WAR:p})=>n.jsx(m.Modal.Body,{className:Ge["modal-product-body"],children:n.jsxs(Qd,{className:Ge["pdp-main__info-modifier"],children:[n.jsxs(wt,{type:"product-info",children:[n.jsx(Cr,{}),n.jsx(ps,{})]}),n.jsx(wt,{type:"similars",children:n.jsx(Zd,{TEXTURE_IMAGE:l,TOGGLE_STYLE_MODIFIER:u})}),n.jsx(wt,{type:"sizes",children:n.jsx(Xd,{ICONS:r,NEWSLETTER_CONFIGS:o,NOTIFY_INFO:s,PDP_INFO:i,PLP_SIZE_ORDER:a,PRODUCT_CARD_TEXTS:c,Z_INDEX_WAR:p})}),n.jsx(wt,{type:"actions",children:n.jsx(Md,{showWishlist:!1,callBack:e,addToCartBtnSize:{mobile:"medium",desktop:"large"},BUY_BUTTON_LABELS:t,ICONS:r,Z_INDEX_WAR:p})})]})});function Fy({callBackProductAdded:e,QUICKSHOP:t,ICONS:r,...o}){const[s,i]=b.useState(!1),a=()=>i(c=>!c);return n.jsxs("div",{className:Ge["quick-shop"],children:[n.jsx(m.Button,{onClick:a,size:"x-large",className:Ge["shop-bag"],iconNameStart:r.bag,iconSize:"medium"}),n.jsxs(m.Modal.Root,{isOpen:s,setIsOpen:i,className:`${Ge.modal} ${Ge["quick-shop__modal"]}`,style:{position:"fixed",height:"100svh",width:"100%",top:0,zIndex:1e3,bottom:"unset",overflowY:"hidden"},variant:"sideRight",children:[n.jsx(Ly,{headerTitle:t.title,ICONS:r}),n.jsx(By,{callBackProductAdded:e,ICONS:r,...o})]})]})}const qy=({image:e})=>n.jsx(lr,{src:U.resizingImg(e.imageUrl,{width:50,height:75})||"",alt:e.imageText,className:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}}),Hy=({images:e,selectedImageIndex:t,PRODUCT_IMAGE_DIMENSIONS:r,...o})=>{const[s,i]=b.useState(!1),{nextimage:a}=be();return n.jsx("div",{...o,className:we["main-image-container"],children:n.jsxs("div",{className:we["image-desktop"],children:[!s&&n.jsx(qy,{image:e==null?void 0:e[t]}),n.jsx(a,{src:U.resizingImg(e==null?void 0:e[t].imageUrl,{...r.image_zoom.desktop})||"",alt:e==null?void 0:e[t].imageText,className:we.mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{i(!0)}})]})})},Uy=({images:e,onThumbnailClick:t,selectedImageIndex:r})=>{const{nextimage:o}=be();return n.jsx("div",{className:we.thumbs,children:e.map((s,i)=>n.jsx("div",{role:"button",tabIndex:0,onClick:()=>t(i),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&t(i)},className:i===r?we.selected:"",children:n.jsx(o,{src:s.imageUrl,alt:s.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},i))})},Jd=({images:e,initialSelectedImageIndex:t=0,setShowImageZoom:r,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s,Z_INDEX_WAR:i,...a})=>{const{isMobile:c}=ge(),[l,u]=b.useState(t),p=g=>{u(g)};return c?n.jsxs(Oy,{Z_INDEX_WAR:i,children:[n.jsx(_a,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(qd,{images:e,ICONS:o,PRODUCT_IMAGE_DIMENSIONS:s})]}):n.jsxs(ky,{Z_INDEX_WAR:i,children:[n.jsx(_a,{onClose:()=>r({show:!1,initialIndex:0}),ICONS:o}),n.jsx(Hy,{images:e,selectedImageIndex:l,onThumbnailClick:p,PRODUCT_IMAGE_DIMENSIONS:s},e[l].imageId??`${e[l].imageText}-${l}`),n.jsx(Uy,{images:e,selectedImageIndex:l,onThumbnailClick:p}),n.jsx(Fy,{callBackProductAdded:()=>{r({initialIndex:0,show:!1})},ICONS:o,Z_INDEX_WAR:i,...a})]})};Jd.displayName="ImageZoom";const Wy=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{video:o,productName:s}=De(),[i,a]=b.useState({show:!1,initialIndex:0});b.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 n.jsxs(n.Fragment,{children:[n.jsx($d,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(Jd,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a,PRODUCT_IMAGE_DIMENSIONS:t,...r})]})},ef=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})=>{const{images:o}=De(),s=b.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(Wy,{productImgs:s,TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,...r})};ef.displayName="PDP.Gallery";const Vy=({className:e,hasIcons:t=!0,ICONS:r,PDP_INFO:o})=>{const{allSizesAvailable:s,productId:i}=De(),{setValue:a}=Fo(),{sendDataLayerEvent:c}=ue();return n.jsx("div",{className:m.helpers.classNameConcat(U.styles.links,e),id:"pdp-container","data-product-id":i,children:n.jsxs("div",{className:U.styles["links-wrapper"],children:[!s&&n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.product})}:{},size:"x-small",variant:"tertiary",onClick:()=>a(!0),underline:!0,children:o.links_and_stepper.size_out_of_stock}),n.jsx(m.Button,{adornment:t?{start:n.jsx(m.Icon,{name:r.ruler})}:{},size:"x-small",variant:"tertiary",underline:!0,onClick:()=>{var l,u;(u=window.SizebayParams)==null||u.openChart((l=window.SizebayParams)==null?void 0:l.id),c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:"pdp:guia-de-medidas"}}})},children:o.links_and_stepper.size_table_title}),n.jsx(m.Button,{size:"x-small",variant:"tertiary",className:"sizebay",underline:!0,onClick:()=>{var l,u;return(u=window.SizebayParams)==null?void 0:u.openVFR((l=window.SizebayParams)==null?void 0:l.id)},children:o.links_and_stepper.sizebay})]})})},Gy=({children:e})=>n.jsx("div",{className:U.styles["pdp-main__info-main-content"],children:e}),Ky=({head:e,className:t})=>n.jsx("thead",{className:t,children:n.jsx("tr",{children:e.map((r,o)=>n.jsx("th",{children:r},`head-title-${o}`))})}),Xy=({rows:e,className:t})=>n.jsx("tbody",{className:t,children:e.map((r,o)=>n.jsx("tr",{children:r.map(s=>typeof s=="string"&&s.includes("blocks")?JSON.parse(s).blocks.map(i=>`${i.text}
42
+ `):s).map((s,i)=>n.jsx("td",{children:s},`cell-content-${i}`))},`row-content-${o}`))}),Qy="_tableContainer_1yxy2_1",Yy={tableContainer:Qy},Zy=({children:e,className:t=""})=>n.jsx("table",{className:`${Yy.tableContainer} ${t}`,children:e}),lo={Head:Ky,Rows:Xy,Root:Zy},Jy=({title:e,text:t})=>n.jsxs("p",{className:U.styles.measurementRowsText,children:[n.jsx("h1",{className:U.styles.measurementRowsTitle,children:e}),t]}),e_=({ICONS:e,SIZES:t,Z_INDEX_WAR:r})=>{const o=Sc(),{setValue:s}=wc();return n.jsx(m.Modal.Root,{isMobile:!0,style:{zIndex:r.modal},setIsOpen:s,isOpen:o,className:U.styles.measurementModal,children:n.jsx(m.Modal.Body,{children:n.jsxs("div",{className:U.styles.measurementContainer,children:[n.jsx("h1",{className:U.styles.measurementTitle,children:t.title}),n.jsxs("div",{className:U.styles.measurementContent,children:[n.jsx("div",{className:U.styles.measurementImageContainer,children:n.jsx(lr,{width:264,height:402,alt:"",className:U.styles.measurementImage,src:t.bannerImage})}),n.jsxs(lo.Root,{className:U.styles.measurementTable,children:[n.jsx(lo.Head,{className:U.styles.measurementHead,head:t.head}),n.jsx(lo.Rows,{className:U.styles.measurementRows,rows:t.rows.map((i,a)=>[n.jsx(Jy,{title:t.descriptions[a].title,text:t.descriptions[a].text},a),...i])})]})]}),n.jsx(m.Button,{onClick:()=>s(!1),className:U.styles.measurementClose,variant:"tertiary",children:n.jsx(m.Icon,{name:e.close})})]})})},"minicart")},t_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__gallery-wrapper"],t),...r,children:e}),r_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles.pdp,t),...r,children:e}),n_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main"],t),...r,children:e}),o_=({children:e,className:t,...r})=>n.jsx("div",{className:m.helpers.classNameConcat(U.styles["pdp-main__info-secondary-content"],t),...r,children:e}),s_={gallery:t_,pdp:r_,main:n_,secondary:o_},i_=({className:e,...t})=>n.jsx(m.Utils.Divider,{...t,className:m.helpers.classNameConcat(U.styles.divider,e)}),a_=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityInfo:by,Actions:Md,BreadCrumb:Ld,Credits:Dd,DescriptionsTabs:Py,Divider:i_,Freight:Ry,Gallery:ef,Header:Cr,Links:Vy,MainContent:Gy,MainInfo:Qd,Price:ps,ProductMeasurements:e_,SimilarsItems:Yd,Sizes:Xd,SubSectionWrapper:wt,containers:s_},Symbol.toStringTag,{value:"Module"})),c_=({page:e,data:t})=>{const{pathname:r}=be(),o=b.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ue();return b.useEffect(()=>{const l=Kc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Ko("login_event","",{expires:p})}},[]),b.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const p=t,g={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>g[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:g,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:g,id:d,name:f}=za(),h=f,_=d;l={page_category:"lista_produtos",...g&&{page_departament:g}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:_??void 0},g&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:g}}});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 Ro={exports:{}};function l_(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 uo={},fo={},xa;function u_(){return xa||(xa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(fo)),fo}var ba;function d_(){return ba||(ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(b),o=u_();function s(h){return h&&h.default?h.default:h}const i=[],a=[];let c=!1;function l(h){let _=h(),y={loading:!0,loaded:null,error:null};return y.promise=_.then(x=>(y.loading=!1,y.loaded=x,x)).catch(x=>{throw y.loading=!1,y.error=x,x}),y}function u(h,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),x=null;function S(){if(!x){const w=new p(h,y);x={getCurrentValue:w.getCurrentValue.bind(w),subscribe:w.subscribe.bind(w),retry:w.retry.bind(w),promise:w.promise.bind(w)}}return x.promise()}if(typeof window>"u"&&i.push(S),!c&&typeof window<"u"){const w=y.webpack&&typeof l_.resolveWeak=="function"?y.webpack():y.modules;w&&a.push(R=>{for(const C of w)if(R.includes(C))return S()})}function v(){S();const w=r.default.useContext(o.LoadableContext);w&&Array.isArray(y.modules)&&y.modules.forEach(R=>{w(R)})}function j(w,R){v();const C=r.default.useSyncExternalStore(x.subscribe,x.getCurrentValue,x.getCurrentValue);return r.default.useImperativeHandle(R,()=>({retry:x.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(y.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:x.retry}):C.loaded?r.default.createElement(s(C.loaded),w):null,[w,C])}return j.preload=()=>S(),j.displayName="LoadableComponent",r.default.forwardRef(j)}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:_,_opts:y}=this;_.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(x=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(_){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,..._},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(_){return this._callbacks.add(_),()=>{this._callbacks.delete(_)}}constructor(_,y){this._loadFn=_,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function g(h){return u(l,h)}function d(h,_){let y=[];for(;h.length;){let x=h.pop();y.push(x(_))}return Promise.all(y).then(()=>{if(h.length)return d(h,_)})}g.preloadAll=()=>new Promise((h,_)=>{d(i).then(h,_)}),g.preloadReady=h=>(h===void 0&&(h=[]),new Promise(_=>{const y=()=>(c=!0,_());d(a,h).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=g.preloadReady);const f=g}(uo)),uo}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,g){for(var d in g)Object.defineProperty(p,d,{enumerable:!0,get:g[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(b),i=o._(d_()),a=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,g){if(delete g.webpack,delete g.modules,!a)return p(g);const d=g.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,g){let d=i.default,f={loading:y=>{let{error:x,isLoading:S,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(S)return null;if(x)return s.default.createElement("p",null,x.message,s.default.createElement("br",null),x.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...g};const h=f.loader,_=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,l(d,f)):d({...f,loader:_})}(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)})(Ro,Ro.exports);var f_=Ro.exports,p_=f_;const m_=mr(p_);var Eo={exports:{}},sr={exports:{}},ja;function h_(){return ja||(ja=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 o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:p}=l;const g=document.createElement(u);for(const h in p){if(!p.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||p[h]===void 0)continue;const _=o[h]||h.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?g[_]=!!p[h]:g.setAttribute(_,p[h])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?g.innerHTML=f.__html||"":d&&(g.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),g}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const g=u.cloneNode(!0);return g.setAttribute("nonce",""),g.nonce=p,p===l.nonce&&l.isEqualNode(g)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const p=document.querySelector("head");if(!p)return;const g=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=p.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<g.length;_++){var f;const x=g[_].nextSibling;(x==null||(f=x.tagName)==null?void 0:f.toLowerCase())===l&&d.push(x)}const h=u.map(s).filter(_=>{for(let y=0,x=d.length;y<x;y++){const S=d[y];if(i(S,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const x=_.previousSibling;if(x&&x.getAttribute("name")==="next-head"){var S;(S=_.parentNode)==null||S.removeChild(x)}(y=_.parentNode)==null||y.removeChild(_)}),h.forEach(_=>{var y;const x=document.createElement("meta");x.name="next-head",x.content="1",((y=_.tagName)==null?void 0:y.toLowerCase())==="meta"&&_.getAttribute("charset")||p.appendChild(x),p.appendChild(_)})}:a=(l,u)=>{const p=document.getElementsByTagName("head")[0],g=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!g){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(g.content),f=[];for(let y=0,x=g.previousElementSibling;y<d;y++,x=(x==null?void 0:x.previousElementSibling)||null){var h;(x==null||(h=x.tagName)==null?void 0:h.toLowerCase())===l&&f.push(x)}const _=u.map(s).filter(y=>{for(let x=0,S=f.length;x<S;x++){const v=f[x];if(i(v,y))return f.splice(x,1),!1}return!0});f.forEach(y=>{var x;return(x=y.parentNode)==null?void 0:x.removeChild(y)}),_.forEach(y=>p.insertBefore(y,g)),g.content=(d-f.length+_.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 f=u[d.type]||[];f.push(d),u[d.type]=f});const p=u.title?u.title[0]:null;let g="";if(p){const{children:d}=p.props;g=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}g!==document.title&&(document.title=g),["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)}(sr,sr.exports)),sr.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(w,R){for(var C in R)Object.defineProperty(w,C,{enumerable:!0,get:R[C]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return S},default:function(){return j}});const o=Oe,s=hr(),i=o._(Na),a=s._(b),c=bd(),l=h_(),u=Al(),p=new Map,g=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=w=>{if(i.default.preinit){w.forEach(R=>{i.default.preinit(R,{as:"style"})});return}if(typeof window<"u"){let R=document.head;w.forEach(C=>{let E=document.createElement("link");E.type="text/css",E.rel="stylesheet",E.href=C,R.appendChild(E)})}},h=w=>{const{src:R,id:C,onLoad:E=()=>{},onReady:k=null,dangerouslySetInnerHTML:P,children:N="",strategy:I="afterInteractive",onError:z,stylesheets:T}=w,H=C||R;if(H&&g.has(H))return;if(p.has(R)){g.add(H),p.get(R).then(E,z);return}const W=()=>{k&&k(),g.add(H)},q=document.createElement("script"),K=new Promise((V,B)=>{q.addEventListener("load",function(J){V(),E&&E.call(this,J),W()}),q.addEventListener("error",function(J){B(J)})}).catch(function(V){z&&z(V)});P?(q.innerHTML=P.__html||"",W()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",W()):R&&(q.src=R,p.set(R,K));for(const[V,B]of Object.entries(w)){if(B===void 0||d.includes(V))continue;const J=l.DOMAttributeNames[V]||V.toLowerCase();q.setAttribute(J,B)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(w){const{strategy:R="afterInteractive"}=w;R==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(w))}):h(w)}function y(w){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(w)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(w))})}function x(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(R=>{const C=R.id||R.getAttribute("src");g.add(C)})}function S(w){w.forEach(_),x()}function v(w){const{id:R,src:C="",onLoad:E=()=>{},onReady:k=null,strategy:P="afterInteractive",onError:N,stylesheets:I,...z}=w,{updateScripts:T,scripts:H,getIsSsr:W,appDir:q,nonce:K}=(0,a.useContext)(c.HeadManagerContext),V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const J=R||C;V.current||(k&&J&&g.has(J)&&k(),V.current=!0)},[k,R,C]);const B=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{B.current||(P==="afterInteractive"?h(w):P==="lazyOnload"&&y(w),B.current=!0)},[w,P]),(P==="beforeInteractive"||P==="worker")&&(T?(H[P]=(H[P]||[]).concat([{id:R,src:C,onLoad:E,onReady:k,onError:N,...z}]),T(H)):W&&W()?g.add(R||C):W&&!W()&&h(w)),q){if(I&&I.forEach(J=>{i.default.preinit(J,{as:"style"})}),P==="beforeInteractive")return C?(i.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(z.dangerouslySetInnerHTML&&(z.children=z.dangerouslySetInnerHTML.__html,delete z.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...z}])+")"}}));P==="afterInteractive"&&C&&i.default.preload(C,z.integrity?{as:"script",integrity:z.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const j=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)})(Eo,Eo.exports);var g_=Eo.exports,y_=g_;const __=mr(y_),v_=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(__,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),x_=m_(()=>Promise.resolve(v_),{ssr:!1}),b_={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Pt=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(m.SnackBar.Structure,{...c,size:e,className:m.helpers.classNameConcat(b_["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(m.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(m.SnackBar.Support,{children:s})]});Pt.displayName="SnackBar";const tf=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},j_="_container_1kcm0_20",C_="_lgpd_1kcm0_71",S_="_success_1kcm0_205",w_="_error_1kcm0_225",Ne={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:j_,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:C_,"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:S_,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:w_},rf=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=ge(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Xo();return n.jsx(m.TextField.Structure,{className:`${Ne["textfield-structure-modifier"]} ${u}`,input:n.jsx(m.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ne["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(p=>({...p,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ne["support-text-modifier"]:"",children:n.jsx(m.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};rf.displayName="Newsletter.Input";const nf=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ne.success,children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{className:Ne["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});nf.displayName="Newsletter.Success";const of=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(nf,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(rf,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ne.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});of.displayName="Newsletter.FormFields";const sf=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=ge();return n.jsxs(m.Button,{...r,className:Ne["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(m.Spinner,{className:Ne["loading-spinner"],size:"small"})]})};sf.displayName="Newsletter.SubmitButton";const af=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(m.Checkbox,{adornment:n.jsx(m.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ne["terms-and-conditions-unchecked"],children:n.jsx(m.TextStructure.Root,{adornment:{start:n.jsx(m.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};af.displayName="Newsletter.Terms";const cf=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Xo();return n.jsxs("form",{className:Ne["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(of,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(af,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(sf,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};cf.displayName="Newsletter.Form";const P_=["horizontal","vertical"],lf=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:p,borderBottom:g,CONSTANTS:d,...f})=>{if(!i||!a)return null;const h=m.helpers.ValidateProp({fieldTypes:P_,property:u,fallback:"horizontal"});return n.jsx(nl,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:h,CONSTANTS:d,children:n.jsxs("div",{...f,className:m.helpers.classNameConcat(Ne["newsletter-root"],[p&&Ne["has-border-top"],g&&Ne["has-border-bottom"],e].filter(Boolean)),"data-variant":h,children:[n.jsxs("div",{className:Ne.container,children:[n.jsxs("div",{className:Ne["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(cf,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ne.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};lf.displayName="Newsletter";const R_={teamComponents:{AddToCart:Yo,BackToTop:am,BuyPackage:Km,Filter:{...Ke,helpers:Yu},...xy,FreightCalculation:Fu,Header:Bu,Link:Xe,Media:ze,PLPNavigation:gt,ProductCard:xe,ProductList:og,ProductVariationList:Ve,Sort:ns,UserMenu:rs,Newsletter:lf},template:{pdp:a_,minicart:Le},utils:{EventCollector:c_,ExternalScripts:x_,LinkOrNotLink:Mt,ObserverWrapper:_r,SnackBarComponent:Pt,DraftJsLinkWrapper:tf}},E_=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
42
43
  `);return`
43
44
  import type { NextRequest } from 'next/server'
44
45
  import { NextResponse } from 'next/server'
@@ -78,4 +79,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
78
79
  ${r}
79
80
  ]
80
81
  }
81
- `},_y=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:yy},Symbol.toStringTag,{value:"Module"})),vy={helpers:_y},by=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},rr=e=>{const t=new qe.CompositeDecorator([{strategy:by,component:yd}]),r=qe.convertFromRaw(e);return qe.EditorState.createWithContent(r,t)},xy=e=>qe.convertFromRaw(e),nr=qe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ca="superior-direita",Jt="dentro-inferior-centro",Cy="inferior-direita",no="dentro-inferior-esquerda",Ed=e=>({position:e===Jt||e===no?"absolute":"default",shouldRender:[ca,Jt,no].includes(e)?"top":"bottom",alignItems:[Jt].includes(e)?"center":[ca,Cy].includes(e)?"flex-end":"flex-start",left:e===no?"16px":e===Jt?"45%":"unset"}),Sy=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:rr,EXTENDED_BLOCK_RENDER_MAP:nr,GET_CONTENT_STATE:xy,controllersPositionsAdapter:Ed},Symbol.toStringTag,{value:"Module"})),it=e=>({centro:"center",esquerda:"start",direita:"end"})[e],jy=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:nr,editorState:t!=null&&t.textStructureReduced?rr(JSON.parse(t.textStructureReduced)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:nr,editorState:t.textStructure?rr(JSON.parse(t.textStructure)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),vo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Ey="_textContentWrapper_1bigo_5",wy="_textContentSection_1bigo_13",bo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Ey,textContentSection:wy},wd=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)},columnWrapper:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(g.Button,{variant:"tertiary",adornment:{end:n.jsx(g.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(g.Utils.Column,{className:bo.textContentWrapper,style:{alignItems:it(e.textStructureAlignment)},children:[n.jsx(g.TextStructure.DivWrapper,{style:{textAlign:it(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:vo["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(jy,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ue,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:bo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(g.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},Ry=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],la=e=>({centro:"center",esquerda:"start",direita:"end"})[e],xo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=x.useState(Mc(new ts.TZDate(Date.now(),r),new ts.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=vt(s,"days");return a&&s>0?n.jsxs(g.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(g.Timer.Digit,{label:"dias",value:l}),n.jsx(g.Timer.Separator,{})]}):null,n.jsx(g.Timer.Digit,{label:"horas",value:vt(s,"hours")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"min",value:vt(s,"minutes")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"segs",value:vt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},ua={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},da=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:h,position:d,contentAlignment:f,showTimer:m,contentOrder:_,timerMode:y,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}=Re();return n.jsxs(g.Banner.Container,{...i,children:[n.jsxs(g.Banner.ImageWrapper,{className:ua["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[a&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),E&&!(a!=null&&a.length)&&n.jsx(R,{src:E,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:h}})]}),m||S||v?n.jsx(g.Banner.Slot,{...Ry(d??"centro"),className:ua["content-modifier"],style:{textAlign:la(f)},children:n.jsxs(g.Utils.Column,{gap:"16px",alignItems:la(f),children:[m&&_==="timer-first"&&n.jsx(xo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),n.jsx(wd,{data:e.banner,ICONS:s}),m&&_!=="timer-first"&&n.jsx(xo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):n.jsx(n.Fragment,{})]})},es=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),f=x.useMemo(()=>{var _;if((_=e.banner.video)!=null&&_.includes("player.vimeo")){const y=e.banner.video.split("?")[1],b=y==null?void 0:y.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]),m=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:m},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(da,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(da,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},Rd=e=>n.jsx(es,{...e}),Co={"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 Ay(e,t){const{mediatorRef:r}=be();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const fa=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[p,h]=x.useState("default");return Ay("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(g.Carousel.Controller,{className:Co["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(g.Carousel.Arrows,{className:Co["carrousel-arrows-display-controller"],children:[n.jsx(g.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(g.Icon,{name:u.arrow_left})},mode:p}),n.jsx(g.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(g.Icon,{name:u.arrow_right})},mode:p})]}),n.jsx(g.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:p})]})},Py=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=be();return t.data.first?n.jsx(dr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},Iy=({data:e,ICONS:t})=>{var h;const{initialize:r,pagination:o,controller:s,itemsStyles:i}=g.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),c=x.useMemo(()=>Ed(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(a.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=x.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),p=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return x.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),n.jsxs(g.Carousel.Root,{innerRef:d=>{r(d)},className:g.helpers.classNameConcat(Co["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"&&o.totalPages>1?n.jsx(fa,{ICONS:t,...p,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:(h=e==null?void 0:e.data)==null?void 0:h.banners.map((d,f)=>n.jsx(g.Carousel.Item,{style:i,children:n.jsx(Py,{data:e,banner:d,children:n.jsx(es,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(fa,{ICONS:t,...p}):n.jsx(n.Fragment,{})]})},Ny={Banner:Rd},yt={"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"},Ty=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=be(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.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 n.jsx(g.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(g.Carousel.Root,{innerRef:p=>{i(p)},className:g.helpers.classNameConcat(yt["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(g.TextStructure.Root,{children:[n.jsx(g.TextStructure.DivWrapper,{className:yt["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(g.Carousel.Controller,{className:yt["row-controller-modifier"],children:n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:e.bennefit.map((p,h)=>n.jsx(g.Carousel.Item,{className:yt["card-modifier"],style:l,children:n.jsx(g.Card,{stroke:!0,padding:"small",children:n.jsx(g.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(g.Icon,{name:p.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&a.totalPages>1?n.jsxs(g.Carousel.Controller,{className:yt["row-controller-modifier"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):n.jsx(n.Fragment,{})]})})},Oy=({data:e,ICONS:t})=>n.jsx("div",{className:g.helpers.classNameConcat(bo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(wd,{data:e,ICONS:t})}),pa={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},ky=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=x.useState([]);return n.jsxs(g.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(g.Accordion.Wrapper,{className:pa["accordion-modifier"],children:[n.jsx(g.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(g.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(g.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:vo["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(g.Accordion.Body,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:g.helpers.classNameConcat(pa["accordion-body-modifier"],vo["draftjs-text-modifier"]),children:n.jsx(qe.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:nr,editorState:a.text?rr(JSON.parse(a.text)):qe.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},Ad=x.createContext({}),My=({data:e,children:t,...r})=>{var m,_,y,b,j,v,S,E,R,C,A,O,w;const[o,s]=x.useState(!0),{initialize:i,controller:a,itemsStyles:c}=g.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(m=e==null?void 0:e.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.slideTranstionTimer,showCarouselArrows:(b=(y=e==null?void 0:e.staticConfig)==null?void 0:y.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:((O=(A=e==null?void 0:e.content)==null?void 0:A.content)==null?void 0:O.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(Ad.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:p,backgroundStyle:h,handleCloseTipbar:d,mode:f,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},We=()=>x.useContext(Ad),Ly=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=We();return n.jsx(xo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Dy="_tipbar_bt3p0_1",$y="_tipbar__carousel_bt3p0_15",Ot={tipbar:Dy,tipbar__carousel:$y,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},By=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=We(),{addCouponSeller:i,cartStore:a}=we(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,p]=x.useState(!1),[h,d]=x.useState(!1),f=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(m=>({...m,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{p(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...o,onClick:f,disabled:c.status,className:Ot["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(xt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(xt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(xt,{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}`)]})},zy=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Fy=({coupon:e,...t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},qy=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=We();if(t==="countdown")return n.jsx(Ly,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"}),c=g.helpers.ValidateProp({fieldTypes:lt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(By,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(Fy,{coupon:e.coupon,mode:a}):null}return n.jsx(zy,{title:s,description:o,mode:i,className:r})},ma=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Button,{title:"fechar tipbar",className:Ot["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(g.Icon,{name:r.ICONS.close})}})},Hy=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=We(),a=x.useRef(null),c=(u,p)=>{var h,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var p;(p=s.controller)==null||p.nextPage()},o);a.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(g.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:Ot.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(g.Carousel.Body,{children:e}),r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_right})}})]})},Uy=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=We(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:g.helpers.classNameConcat(Ot.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(Hy,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(ma,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(ma,{handleCloseTipbar:l,mode:o})]})})},Wy=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=We(),i=n.jsx("div",{...r,className:Ot["tipbar-item"],children:e});return o?n.jsx(g.Carousel.Item,{style:s.itemsStyles,children:i}):i},Pd=({className:e})=>{const{isOpen:t,slices:r}=We();return r.length&&t?n.jsx(Uy,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(At,{href:o.link,children:n.jsx(Wy,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(qy,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Pd.displayName="TipBar.Root";const So=({className:e,...t})=>n.jsx(My,{...t,children:n.jsx(Pd,{className:e})});So.displayName="TipBar";const Vy=({CONSTANTS:e,data:t})=>{const{pathname:r}=Re(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var p,h,d,f,m;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&((m=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:m.includes(r))});return l||(t==null?void 0:t.find(u=>{var p,h,d,f,m,_;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(m=u.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:ie.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:ie.responsive["responsive-mobile-flex"],children:n.jsx(So,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:ie.responsive["responsive-desktop-flex"],children:n.jsx(So,{data:i,CONSTANTS:e})})]})},ha={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Gy=e=>{const{nextimage:t}=Re();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:ha["card-image-wrapper"],children:n.jsx("div",{className:ha["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Ky=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||ie.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},Xy=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),Yy={Banner:Ny,BannerSection:es,BennefitsBarSection:Ty,SingleBannerSection:Rd,TextContentSection:Oy,BannerCarousel:Iy,TextAccordionSection:ky,TipbarScreening:Vy,ImageGrid:Gy,SearchPageScreening:ie.SearchPageScreening,SearchContent:Ky,NewsletterSection:Xy},Qy={Components:Yy,helpers:Sy};exports.cms=Qy;exports.contexts=Cp;exports.data=Do;exports.layout=gy;exports.scripts=vy;
82
+ `},A_=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:E_},Symbol.toStringTag,{value:"Module"})),I_={helpers:A_},N_=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},ur=e=>{const t=new We.CompositeDecorator([{strategy:N_,component:tf}]),r=We.convertFromRaw(e);return We.EditorState.createWithContent(r,t)},T_=e=>We.convertFromRaw(e),dr=We.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Ca="superior-direita",ir="dentro-inferior-centro",k_="inferior-direita",po="dentro-inferior-esquerda",uf=e=>({position:e===ir||e===po?"absolute":"default",shouldRender:[Ca,ir,po].includes(e)?"top":"bottom",alignItems:[ir].includes(e)?"center":[Ca,k_].includes(e)?"flex-end":"flex-start",left:e===po?"16px":e===ir?"45%":"unset"}),O_=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:ur,EXTENDED_BLOCK_RENDER_MAP:dr,GET_CONTENT_STATE:T_,controllersPositionsAdapter:uf},Symbol.toStringTag,{value:"Module"})),ut=e=>({centro:"center",esquerda:"start",direita:"end"})[e],M_=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:dr,editorState:t!=null&&t.textStructureReduced?ur(JSON.parse(t.textStructureReduced)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(We.Editor,{editorKey:"draft-editor-1",blockRenderMap:dr,editorState:t.textStructure?ur(JSON.parse(t.textStructure)):We.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),Ao={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},L_="_textContentWrapper_1bigo_5",D_="_textContentSection_1bigo_13",Io={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:L_,textContentSection:D_},df=({data:e,ICONS:t})=>{var s;const[r,o]=b.useState(!1);return n.jsx(m.TextStructure.Root,{layoutProps:{textRow:{alignContent:ut(e.textStructureAlignment),alignItems:ut(e.textStructureAlignment)},columnWrapper:{alignContent:ut(e.textStructureAlignment),alignItems:ut(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(m.Button,{variant:"tertiary",adornment:{end:n.jsx(m.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(m.Utils.Column,{className:Io.textContentWrapper,style:{alignItems:ut(e.textStructureAlignment)},children:[n.jsx(m.TextStructure.DivWrapper,{style:{textAlign:ut(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Ao["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(M_,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Xe,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Io["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(m.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},$_=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],Sa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],No=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=b.useState(el(new hs.TZDate(Date.now(),r),new hs.TZDate(e,r))),[a,c]=b.useState(!1);b.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=Ct(s,"days");return a&&s>0?n.jsxs(m.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(m.Timer.Digit,{label:"dias",value:l}),n.jsx(m.Timer.Separator,{})]}):null,n.jsx(m.Timer.Digit,{label:"horas",value:Ct(s,"hours")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"min",value:Ct(s,"minutes")}),n.jsx(m.Timer.Separator,{}),n.jsx(m.Timer.Digit,{label:"segs",value:Ct(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},wa={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Pa=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:g,position:d,contentAlignment:f,showTimer:h,contentOrder:_,timerMode:y,timerEnd:x,timerInit:S,textStructure:v,textStructureReduced:j}=e.banner,w=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:R}=be();return n.jsxs(m.Banner.Container,{...i,children:[n.jsxs(m.Banner.ImageWrapper,{className:wa["banner-image-wrapper-modifier"],style:u?{background:g}:void 0,children:[a&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),w&&!(a!=null&&a.length)&&n.jsx(R,{src:w,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:g}})]}),h||j||v?n.jsx(m.Banner.Slot,{...$_(d??"centro"),className:wa["content-modifier"],style:{textAlign:Sa(f)},children:n.jsxs(m.Utils.Column,{gap:"16px",alignItems:Sa(f),children:[h&&_==="timer-first"&&n.jsx(No,{mode:y??"default",size:"small",dateEnd:x?new Date(x):new Date,dateInit:S?new Date(S):new Date}),n.jsx(df,{data:e.banner,ICONS:s}),h&&_!=="timer-first"&&n.jsx(No,{mode:y??"default",size:"small",dateEnd:x?new Date(x):new Date,dateInit:S?new Date(S):new Date})]})}):n.jsx(n.Fragment,{})]})},ms=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ue(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",g={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=b.useRef(null),f=b.useMemo(()=>{var _;if((_=e.banner.video)!=null&&_.includes("player.vimeo")){const y=e.banner.video.split("?")[1],x=y==null?void 0:y.split("&"),S=x==null?void 0:x.filter(j=>j.includes("loc")||j.includes("signature")||j.includes("user_id")),v=S==null?void 0:S.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),h=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(_r,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...g,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:h},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:g,index:l})},children:n.jsx(Pa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(Pa,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},ff=e=>n.jsx(ms,{...e}),To={"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 z_(e,t){const{mediatorRef:r}=ge();b.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Ra=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[p,g]=b.useState("default");return z_("herobanner:change_controllers_variant",d=>{l&&g(d.includes("white")?"inverse":"default")}),n.jsxs(m.Carousel.Controller,{className:To["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(m.Carousel.Arrows,{className:To["carrousel-arrows-display-controller"],children:[n.jsx(m.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(m.Icon,{name:u.arrow_left})},mode:p}),n.jsx(m.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(m.Icon,{name:u.arrow_right})},mode:p})]}),n.jsx(m.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:p})]})},B_=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=ge();return t.data.first?n.jsx(_r,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},F_=({data:e,ICONS:t})=>{var g;const{initialize:r,pagination:o,controller:s,itemsStyles:i}=m.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=b.useRef(void 0),c=b.useMemo(()=>uf(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=b.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(a.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=b.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),p=b.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return b.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),n.jsxs(m.Carousel.Root,{innerRef:d=>{r(d)},className:m.helpers.classNameConcat(To["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"&&o.totalPages>1?n.jsx(Ra,{ICONS:t,...p,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:(g=e==null?void 0:e.data)==null?void 0:g.banners.map((d,f)=>n.jsx(m.Carousel.Item,{style:i,children:n.jsx(B_,{data:e,banner:d,children:n.jsx(ms,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(Ra,{ICONS:t,...p}):n.jsx(n.Fragment,{})]})},q_={Banner:ff},bt={"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"},H_=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=ge(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=m.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 n.jsx(m.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(m.Carousel.Root,{innerRef:p=>{i(p)},className:m.helpers.classNameConcat(bt["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(m.TextStructure.Root,{children:[n.jsx(m.TextStructure.DivWrapper,{className:bt["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(m.Carousel.Controller,{className:bt["row-controller-modifier"],children:n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(m.Carousel.Body,{children:e.bennefit.map((p,g)=>n.jsx(m.Carousel.Item,{className:bt["card-modifier"],style:l,children:n.jsx(m.Card,{stroke:!0,padding:"small",children:n.jsx(m.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(m.Icon,{name:p.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(m.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${g}`))}),!r&&a.totalPages>1?n.jsxs(m.Carousel.Controller,{className:bt["row-controller-modifier"],children:[n.jsxs(m.Carousel.Arrows,{children:[n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(m.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(m.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(m.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):n.jsx(n.Fragment,{})]})})},U_=({data:e,ICONS:t})=>n.jsx("div",{className:m.helpers.classNameConcat(Io.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(df,{data:e,ICONS:t})}),Ea={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},W_=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=b.useState([]);return n.jsxs(m.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{children:n.jsx("h2",{className:m.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(m.Accordion.Wrapper,{className:Ea["accordion-modifier"],children:[n.jsx(m.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(m.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(m.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{className:Ao["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(m.Accordion.Body,{children:n.jsx(m.TextStructure.Root,{children:n.jsx(m.TextStructure.DivWrapper,{className:m.helpers.classNameConcat(Ea["accordion-body-modifier"],Ao["draftjs-text-modifier"]),children:n.jsx(We.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:dr,editorState:a.text?ur(JSON.parse(a.text)):We.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},pf=b.createContext({}),V_=({data:e,children:t,...r})=>{var h,_,y,x,S,v,j,w,R,C,E,k,P;const[o,s]=b.useState(!0),{initialize:i,controller:a,itemsStyles:c}=m.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:_.slideTranstionTimer,showCarouselArrows:(x=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:x.showCarouselArrows,hasCloseBtn:(v=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(w=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:w.backgroundColor,textColorVariant:(C=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:C.textColorVariant,content:((k=(E=e==null?void 0:e.content)==null?void 0:E.content)==null?void 0:k.items)??[]},u=(P=l.content)==null?void 0:P.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,g={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=m.helpers.ValidateProp({fieldTypes:pt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(pf.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:p,backgroundStyle:g,handleCloseTipbar:d,mode:f,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},Qe=()=>b.useContext(pf),G_=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=Qe();return n.jsx(No,{dateEnd:new Date(e),TIME_ZONE:r,...t})},K_="_tipbar_bt3p0_1",X_="_tipbar__carousel_bt3p0_15",Bt={tipbar:K_,tipbar__carousel:X_,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Q_=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=Qe(),{addCouponSeller:i,cartStore:a}=Re(),[c,l]=b.useState({status:!1,showSnackBar:!1}),[u,p]=b.useState(!1),[g,d]=b.useState(!1),f=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return b.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),b.useEffect(()=>{u&&setTimeout(()=>{p(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),b.useEffect(()=>{g&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[g]),n.jsxs(n.Fragment,{children:[n.jsx(m.Button,{...o,onClick:f,disabled:c.status,className:Bt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Pt,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Pt,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),g&&n.jsx(Pt,{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}`)]})},Y_=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(m.TextStructure.Root,{children:n.jsxs(m.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Z_=({coupon:e,...t})=>{const{CONSTANTS:r}=Qe();return n.jsx(m.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},J_=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=Qe();if(t==="countdown")return n.jsx(G_,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=m.helpers.ValidateProp({fieldTypes:pt.Mode,property:e.couponButtonMode,fallback:"default"}),c=m.helpers.ValidateProp({fieldTypes:pt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(Q_,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=m.helpers.ValidateProp({fieldTypes:pt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(Z_,{coupon:e.coupon,mode:a}):null}return n.jsx(Y_,{title:s,description:o,mode:i,className:r})},Aa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=Qe();return n.jsx(m.Button,{title:"fechar tipbar",className:Bt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(m.Icon,{name:r.ICONS.close})}})},ev=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=Qe(),a=b.useRef(null),c=(u,p)=>{var g,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(g=s.controller)==null||g.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=b.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var p;(p=s.controller)==null||p.nextPage()},o);a.current=u}},[o,s]);return b.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(m.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:Bt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(m.Carousel.Body,{children:e}),r&&n.jsx(m.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(m.Icon,{name:i.ICONS.arrow_right})}})]})},tv=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=Qe(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:m.helpers.classNameConcat(Bt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(ev,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(Aa,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(Aa,{handleCloseTipbar:l,mode:o})]})})},rv=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=Qe(),i=n.jsx("div",{...r,className:Bt["tipbar-item"],children:e});return o?n.jsx(m.Carousel.Item,{style:s.itemsStyles,children:i}):i},mf=({className:e})=>{const{isOpen:t,slices:r}=Qe();return r.length&&t?n.jsx(tv,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(Mt,{href:o.link,children:n.jsx(rv,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(J_,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};mf.displayName="TipBar.Root";const ko=({className:e,...t})=>n.jsx(V_,{...t,children:n.jsx(mf,{className:e})});ko.displayName="TipBar";const nv=({CONSTANTS:e,data:t})=>{const{pathname:r}=be(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var p,g,d,f,h;return((g=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:g.deviceType)===c&&((h=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:h.includes(r))});return l||(t==null?void 0:t.find(u=>{var p,g,d,f,h,_;return((g=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:g.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(h=u.staticConfig)==null?void 0:h.staticConfig)==null?void 0:_.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:U.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:U.responsive["responsive-mobile-flex"],children:n.jsx(ko,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:U.responsive["responsive-desktop-flex"],children:n.jsx(ko,{data:i,CONSTANTS:e})})]})},Ia={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},ov=e=>{const{nextimage:t}=be();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:Ia["card-image-wrapper"],children:n.jsx("div",{className:Ia["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},sv=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=b.useState();return b.useEffect(()=>{s||U.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},iv=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),av={Banner:q_,BannerSection:ms,BennefitsBarSection:H_,SingleBannerSection:ff,TextContentSection:U_,BannerCarousel:F_,TextAccordionSection:W_,TipbarScreening:nv,ImageGrid:ov,SearchPageScreening:U.SearchPageScreening,SearchContent:sv,NewsletterSection:iv},cv={Components:av,helpers:O_};exports.cms=cv;exports.contexts=Yp;exports.data=Qo;exports.layout=R_;exports.scripts=I_;