@soma-vertical-web/multi-lib 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/cms/ContentTypes/Footer/Footer.d.ts +3 -0
  2. package/cms/ContentTypes/PLP/PLPContent.d.ts +3 -0
  3. package/cms/ContentTypes/PLP/PLPContentContext.d.ts +4 -0
  4. package/cms/Sections/ImageGrid/Component.d.ts +3 -0
  5. package/cms/Sections/TextContent/Component.d.ts +1 -2
  6. package/cms/index.d.ts +2 -1
  7. package/constants.d.ts +15 -0
  8. package/contexts/contexts/header/UserMenuContext.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -0
  10. package/data/api/checkout/order-form/items/index.d.ts +1 -1
  11. package/data/api/checkout/order-form/items/update/index.d.ts +1 -1
  12. package/data/api/checkout/order-form/shipping/update/index.d.ts +1 -1
  13. package/index.js +17 -17
  14. package/index.mjs +3836 -3324
  15. package/layout/index.d.ts +5 -1
  16. package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +1 -1
  17. package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -1
  18. package/layout/team-component/Header/index.d.ts +1 -1
  19. package/layout/team-component/Menu/Composite/Desktop/MenuRoot.d.ts +5 -2
  20. package/layout/team-component/Menu/Composite/Mobile/MenuRoot.d.ts +7 -4
  21. package/layout/team-component/Menu/MenuDesktop.d.ts +4 -1
  22. package/layout/team-component/Menu/MenuMobile.d.ts +4 -3
  23. package/layout/team-component/UserMenu/Composite/Menu.d.ts +1 -1
  24. package/layout/team-component/UserMenu/Composite/Root.d.ts +1 -1
  25. package/layout/team-component/UserMenu/Composite/Tooltip.d.ts +5 -2
  26. package/layout/team-component/UserMenu/UserMenu.d.ts +6 -3
  27. package/layout/team-component/UserMenu/index.d.ts +5 -4
  28. package/package.json +1 -1
  29. package/style.css +1 -1
  30. package/types/cms/ContentTypes/Footer/index.d.ts +6 -2
  31. package/types/cms/ContentTypes/PLP/index.d.ts +45 -0
  32. package/types/cms/Sections/ProductCarousel/index.d.ts +77 -0
  33. package/types/constants.d.ts +19 -1
  34. package/types/layout/team-components/BuyPackage/index.d.ts +2 -2
  35. package/types/layout/team-components/Header/index.d.ts +4 -3
  36. package/types/layout/team-components/ProductCard/index.d.ts +5 -2
  37. package/types/layout/team-components/UserMenu/index.d.ts +4 -12
package/index.js CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";var Nl=Object.defineProperty;var Ol=(e,t,r)=>t in e?Nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jt=(e,t,r)=>Ol(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),R=require("react"),Ke=require("idb-keyval"),tt=require("zustand"),Hn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),Te=require("./__vite-browser-external-B8mGO3z6.js"),Tl=require("jose"),Ye=require("@soma-vertical-web/foundations"),Io=require("axios"),za=require("react-dom"),ke=require("draft-js"),No=require("@date-fns/tz"),oo=R.createContext({}),Ml=({data:e,children:t})=>s.jsx(oo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),io=()=>{const{tags:e}=R.useContext(oo),t=R.useCallback(r=>{var a,c,l,u;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),o=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},Ua=({gridScrollBack:e})=>{R.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Ga=R.createContext({}),kl=({children:e,gridScrollBack:t})=>{const r=R.useRef(null);return Ua({gridScrollBack:t}),s.jsx(Ga.Provider,{value:{sizesContainerRef:r},children:e})},Ll=()=>{const e=R.useContext(Ga);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},De=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),ao=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:De(0):De(e/100),so=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Ft=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Wa=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Dl=(e,t)=>e.replace(t,"").trim(),$l=e=>e.replace(/\//g,""),Va=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=l,r.listPrice=u;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((a,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??so(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),a.push(l),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Ka=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,co=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},Xa=e=>e.find(t=>t.imageLabel==="10"),Qa=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Ya=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Za=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},Bl=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},Ja=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},ql=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ka,formatPriceToCurrency:De,freightParsePrice:ao,getAspectRatio:Bl,getColorAndSizeFromSkuName:Ft,getFirstImages:Za,getProductNameWithoutSku:Dl,getSKUName:Wa,getSkuInfos:Va,getThumbImage:Xa,getValidOffer:co,removeSlashes:$l,resizingImg:Qa,setVideoPlay:Ja,splitNameAndSizeFromFullName:so,updatedResizedImg:Ya},Symbol.toStringTag,{value:"Module"})),Be=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},ve={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:f}=n,p={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?es(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=xt({data:n,customData:{...o,...a,...i},configs:ve.configs});Be({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>xt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:ve.configs}));Be({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const f=r.map(p=>{var y,g,v,A,_,C,x,P,S;const d=o==null?void 0:o.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=rs(),$=ns(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(a||c)&&Fn({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Fn({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=p.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??Ft((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=p.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return xt({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=p.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((S=(P=(x=(C=d==null?void 0:d.offers)==null?void 0:C.offers)==null?void 0:x[0])==null?void 0:P.seller)==null?void 0:S.identifier)??p.seller},configs:ve.configs})});Be({event:t,data:{...l,ecommerce:{value:i??u,currency:ve.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var p;const u=((p=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(o==null?void 0:o[u])||[];u==="price_range"&&l.replace(":","-"),o[u]=[...f,l]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),Be({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,v,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(C=>{const{promotionInfo:x,itemList:P}=i[C.id]??{};return xt({data:{...C,price:C.price/100,listPrice:C.listPrice/100},customData:{...x,...P,item_sku:C.id??C.itemOffered.sku,quantity:C.quantity??1},configs:ve.configs})}),c=(((f=n.totalizers.find(C=>C.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((p=n.totalizers.find(C=>C.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];Be({event:"view_cart",data:{...r,ecommerce:{currency:ve.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((v=(g=n.shippingData)==null?void 0:g.address)!=null&&v.postalCode),...u?{seller_coupon_name:u}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Be({event:t,data:{...r}})}},es=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Hl=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(ve.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},xt=({data:e,customData:t,configs:r})=>({...Fl(e,r==null?void 0:r.MAIN_IMAGE),...zl(e),...Ul(e),...Gl(e),...t}),ts=()=>{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("_"))??[]:[]},rs=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ns=(e,t)=>e==null?void 0:e[t],Fn=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Fl=(e,t="1")=>{var i,a,c,l,u,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??so((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${ve.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Oo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,zl=e=>{var u,f;const{categories:t,categoriesIds:r}=e,n=t??((u=e.itemOffered)==null?void 0:u.categories),o=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Oo(n),a=Oo(o),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(ve.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},Ul=e=>{var o,i,a,c,l,u;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:n}=Ft(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},Gl=e=>{var l,u;const{price:t,listPrice:r,installments:n}=e,o=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-o:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:ve.configs.currency}},os=()=>{const[e,t]=ts(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},Wl=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:ns,getAvailablesSizes:es,getCategories:Hl,getPageCategoryAndDepartmentFromSlug:os,getPersistedData:rs,getProductListInfoFromHead:ts,pushDatalayer:Be,updatePersistedData:Fn},Symbol.toStringTag,{value:"Module"})),is=R.createContext({}),Vl=({children:e,evtFunctionsConfigs:t})=>{const r=R.useRef({}),n=R.useRef(null),o=R.useRef(null),i=R.useRef({}),a=R.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(p.itemList=o.current),ve[f](p,d)},m)}catch(h){Be({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},l=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},u=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return s.jsx(is.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>R.useContext(is),as=R.createContext({}),Kl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,w;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=io(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:C,listPrice:x,sizes:P,allSizesAvailable:S}=Va({items:u,NAME_SPLIT_SYMBOL:o}),I=Xa(f),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],E=((w=Ft((B=t.items)==null?void 0:B[0].name,o))==null?void 0:w.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:P,price:C,listPrice:x,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),k=({sku:q,size:z})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return R.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}k({})},[]),s.jsx(as.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:P,allSizesAvailable:S,installments:_,price:C,listPrice:x,thumbImage:I,images:f,video:p[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:E,handleViewItemEvent:k},children:e})},lo=()=>{const e=R.useContext(as);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Xl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Oe=Promise.resolve(!1),zn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Oe,addItem:()=>Oe,addSellerCode:()=>Oe,addMarketingData:()=>Oe,emptyCart:()=>{},removeItem:()=>Oe,setIsOpen:()=>{},shipping:()=>Oe,shippingUpdate:()=>Oe,toggleServiceToProduct:()=>Oe,updateItemQuantity:()=>Oe,insertProfileEmail:()=>Oe,setRecentlyAddedProducts:()=>{}},uo=e=>e===0,ss=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},cs=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:C,offerings:x,productRefId:P,skuName:S,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:C,productRefId:P,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:ss(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:f,isVariationOf:{name:f,productGroupID:v},sku:i,slug:c,skuName:S},listPrice:p,quantity:d,offerings:x,price:m,priceDefinition:h,sellingPrice:I,seller:_}},ls=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},us=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,c;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},ds=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Un=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Ql=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Yl=e=>{const t=e.reduce((o,i)=>{const a=uo(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},Zl=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(uo(r==null?void 0:r.price)?0:r.quantity),0):0,fs=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>cs(p,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},ps=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Jl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Qe=(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},eu=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},ms=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),hs=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),gs=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ys=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},_s=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],vs=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Ee=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:fs(c,n)})},bs=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),tu=e=>[...Array.isArray(e)?e:[e],"faststore"],xs=e=>{const t=e.get("utm_source")||ze("utm_source"),r=e.get("utm_campaign")||ze("utm_campaign"),n=e.get("utm_medium")||ze("utm_medium"),o=e.get("utmi_cp")||ze("utmi_cp"),i=e.get("utmi_pc")||ze("utmi_pc"),a=e.get("utmi_p")||ze("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},ze=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},ru=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Xl,addItemOrder:ls,addNotification:bs,createItemOrder:cs,fetchCartAPI:Ee,findItemIndex:Un,findOptions:_s,findTotalizerValue:Ql,getCategories:ss,getCode:Qe,getQuantity:ys,getRemoveId:ms,getSize:Jl,getTotalItems:Zl,getTotalizer:Yl,getUrlParameter:ze,getValue:hs,initialState:zn,isGift:uo,marketingTagsBuilder:tu,mergeOptionsPromise:vs,mountMarketingData:xs,orderFormValues:fs,promiseDefault:Oe,removeQuantity:us,updateItemSellerExternal:ps,updateOrderFormPromise:gs,updateQuantity:ds,wishlistArray:eu},Symbol.toStringTag,{value:"Module"})),nu=()=>{const e=async(m,h)=>Ee("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Ee("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(v=>({...v,openTextField:{...(v==null?void 0:v.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return Ee("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>Ee("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>Ee("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:ls(h,y)}}),o=async(m,h,y,g)=>Ee("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>Ee("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>Ee("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>Ee("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),l=async(m,h,y)=>{const g=us(h,y);return Ee("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},u=async(m,h,y)=>Ee("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>Ee("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const v=ds(h,y,g);return Ee("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:v}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,v)=>p(m,h,y,g).then(A=>A&&Array.isArray(A.items)?ps(A.items,y)?p(m,h,y,v):A:!1)}},Gn="soma::cart",at="soma::options",Ze=tt.create((e,t)=>{const r=nu(),n=async(o,i,a)=>{e({loading:!0});const c=await gs(o);if(typeof c!="boolean"){e({...c});const l=await vs(Ke.get(at),a);return Ke.set(at,l),hs(c,i).finally(()=>e({loading:!1,options:l}))}return Oe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ke.get(at).then(u=>_s(u,i.items));Ke.set(Gn,i),Ke.set(at,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&n(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return Ke.get(Gn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...zn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return ms(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>n(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return n(()=>{var f;return r.updateItemQuantity(l,u,i,a,((f=u.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return zn}),ou=()=>Ze(e=>e),Cs=tt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>bs(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),Ss=()=>Cs(e=>e.notifications),As=()=>Cs(e=>e.actions),iu=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:at,KEY_INDEXED_STORE:Gn,useCartStore:Ze,useGetCartStoreState:ou,useGetNotificationActions:As,useGetNotificationsStore:Ss},Symbol.toStringTag,{value:"Module"})),au=6e3,Es=R.createContext({}),Rs=({children:e,...t})=>{const{items:r}=Ze(),[n,o]=R.useState([]),i=R.useRef(null),a=R.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return R.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},au))},[n]),s.jsx(Es.Provider,{value:R.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},dt=()=>{const e=R.useContext(Es);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ws{constructor(){Jt(this,"events",{});Jt(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const js=R.createContext({}),su=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=R.useState(!0),a=r==="/",c=R.useRef(new ws),l=p=>p?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),f=R.useRef(u);return R.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(Hn.get("lastMedias")||Hn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const v=document.querySelector('meta[name="viewport"]');v&&v.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),R.useEffect(()=>{const p=l(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),s.jsx(js.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(Rs,{children:e})})},we=()=>R.useContext(js),Ps=R.createContext({}),cu=({children:e,...t})=>s.jsx(Ps.Provider,{value:{...t},children:e}),Ne=()=>R.useContext(Ps),Ge=(e,t)=>tt.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ut={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ft=new Set,lu=()=>{ft.forEach(e=>{e()})},Is=tt.create((e,t)=>{const r=()=>e({value:ut.category});return ft.add(r),{value:ut.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),zt=()=>Is(e=>e.value),He=()=>Is(e=>e.actions),Ns=Ge(ut.menuMobileIsOpen,ft),fo=()=>Ns(e=>e.value),We=()=>Ns(e=>e.actions),Os=Ge(ut.searchModalIsOpen,ft),uu=()=>Os(e=>e.value),po=()=>Os(e=>e.actions),Ts=Ge(ut.userMenuIsOpen,ft),du=()=>Ts(e=>e.value),Ut=()=>Ts(e=>e.actions),fu=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:lu,useActionsHeaderCategory:He,useActionsMenuMobileIsOpen:We,useActionsSearchModalIsOpen:po,useActionsUserMenuIsOpen:Ut,useGetHeaderCategoryStore:zt,useGetMenuMobileIsOpen:fo,useGetSearchModalIsOpen:uu,useGetUserMenuIsOpen:du},Symbol.toStringTag,{value:"Module"})),Je={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},rt=new Set,pu=()=>{rt.forEach(e=>{e()})},Ms=tt.create(e=>{const t=()=>e({value:Je.selectedSkuInfo});return rt.add(t),{value:Je.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),mu=()=>Ms(e=>e.value),hu=()=>Ms(e=>e.actions),ks=Ge(Je.openLetMeKnow,rt),gu=()=>ks(e=>e.value),yu=()=>ks(e=>e.actions),Ls=Ge(Je.showNotify,rt),_u=()=>Ls(e=>e.value),vu=()=>Ls(e=>e.actions),Ds=Ge(Je.showBottomNavigation,rt),bu=()=>Ds(e=>e.value),xu=()=>Ds(e=>e.actions),$s=Ge(Je.openMeasurements,rt),Cu=()=>$s(e=>e.value),Su=()=>$s(e=>e.actions),Au=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:pu,useActionsPDPOpenLetMeKnow:yu,useActionsPDPOpenMeasurements:Su,useActionsPDPSelectedSkuInfo:hu,useActionsPDPShowBottomNavigation:xu,useActionsPDPShowNotify:vu,useGetPDPOpenLetMeKnow:gu,useGetPDPOpenMeasurements:Cu,useGetPDPSelectedSkuInfo:mu,useGetPDPShowBottomNavigation:bu,useGetPDPShowNotify:_u},Symbol.toStringTag,{value:"Module"})),Bs=R.createContext({}),Eu=({children:e,headerData:t,...r})=>{var l,u;const n=R.useRef(null),o=R.useRef(null),i=R.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=we();return(l=a.current)==null||l.subscribe("header:change_variant",f=>{var y,g,v;if(f&&c.current&&(c.current.bannerVariant=f),!n.current)return;const d=document.body.scrollTop>0,m=n.current.getAttribute("data-interactiveVariant"),h=d?m:f??((y=c.current)==null?void 0:y.bannerVariant)??"default";h!==((g=c.current)==null?void 0:g.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(d)),n.current.setAttribute("data-variant",String(h)),(v=a.current)==null||v.publish("herobanner:change_controllers_variant",h),c.current&&(c.current.headerVariant=h))}),(u=a.current)==null||u.subscribe("header:change_position",f=>{n.current&&(n.current.style.position=f)}),R.useEffect(()=>{const f=new AbortController,p=b.helpers.throttle(()=>{var m;return(m=a.current)==null?void 0:m.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",p,{passive:!0,signal:f.signal});const d=m=>{var y;(y=m.target.closest("a"))==null||y.blur()};return n.current&&(n.current.addEventListener("click",d,{signal:f.signal}),n.current.addEventListener("touchend",d,{signal:f.signal})),()=>{f.abort()}},[]),s.jsx(Bs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},be=()=>R.useContext(Bs),qs=R.createContext({}),Hs=({children:e})=>{const t=R.useRef(null),r=R.useRef(null),n=fo(),o=R.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 R.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),R.useEffect(()=>{r.current=document.body},[]),s.jsx(qs.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},pt=()=>R.useContext(qs),Ru=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},wu=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Ru(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Fs=R.createContext({}),zs=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=R.useState(!1),a=R.useRef(null),[c,l]=R.useState(!1),[u,f]=R.useState({left:0,top:0}),p=R.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return R.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=wu(m,d,r??0);f({left:h,top:y}),l(!1)}},[r,o]),s.jsx(Fs.Provider,{value:R.useMemo(()=>({...n,...u,handleClose:p,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,p,c,o,i,l]),children:e})},Ve=()=>{const e=R.useContext(Fs);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Us=R.createContext({}),ju=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Ze(),{setRecentlyAdded:o}=dt(),i=R.useRef(""),a=Ss(),{addNotification:c,removeNotification:l}=As(),{addCoupon:u,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;R.useEffect(()=>{const w=Hn.get("lastMedias");if(n.id&&w&&i.current!==w){i.current=w;const q=new URLSearchParams(w),z=xs(q);d(z)}},[n,d]);const C=R.useCallback(async(w,q)=>(q==="coupon"?u(w):p(w)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,F=String(W??"").split(" - ");return Qe((F==null?void 0:F[0])??"",w,!!K)}return Qe(String(U.coupon),w,!0)}return Qe("","")}).catch(()=>Promise.resolve({code:400})),[u,p]),x=R.useCallback((w,q,z)=>{const{id:U}=w;_(U,q,z)},[_]),P=R.useCallback((w,q,z=!1)=>{if(!w)return;const{id:U}=w,K=Un(n.items,U);if(K!==-1&&!z){const W=Number(n.items[K].quantity),F=n.items[K]?W+1:1;x(w,F,q)}else f({id:U,quantity:(w==null?void 0:w.quantity)??1,seller:w.seller});h||o(W=>[...W,w])},[f,x,n.items,h,o]),S=R.useCallback((w,q)=>{if(!w||!Array.isArray(w))return;o(U=>[...U,...w]);const z=w.map(U=>{const{id:K,quantity:W,seller:F}=U,ne=Un(n.items,K),j=ys(W??1,ne);return{id:K,quantity:j,seller:F}});f(z,q)},[f,n.items,o]),I=R.useCallback(async(w,q,z)=>w?y(w).then(()=>(c(q??`${t}`,z),Qe(w,w))):Promise.resolve(Qe("","Product id required")),[c,y]),$=R.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),E=R.useCallback((w,q="BRA")=>g(w,q),[g]),N=R.useCallback(w=>{w&&v(w)},[v]),k=R.useCallback(async(w,q,z)=>{const U=n.items.findIndex(W=>W.id===w);return n.items[U]&&U>=0?A(q,U,z??!1):!1},[n.items,A]),B=R.useCallback(async(w,q)=>_(w,q).then(z=>{if(Array.isArray(z)){const U=z.find(K=>K.id===w);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(Us.Provider,{value:R.useMemo(()=>({...r,addCouponSeller:C,addToCart:P,addItemsToCart:S,cartStore:n,notifications:a,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:I,setIsOpen:n.setIsOpen,shipping:E,shippingUpdateOption:N,toggleGiftItemCart:k,updateItemQuantity:B}),[r,C,P,S,a,$,c,n,l,I,E,N,k,B]),children:e})},Fe=()=>{const e=R.useContext(Us);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Gs=R.createContext({}),mo=({children:e,fetch:t})=>{const r=R.useRef(!0),[n,o]=R.useState(null),[i,a]=R.useState(!1);return R.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();o(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),s.jsx(Gs.Provider,{value:R.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},ho=()=>{const e=R.useContext(Gs);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Ws=R.createContext({}),Vs=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const a=R.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((l,u)=>({key:`category-${u+1}`,value:l})):[]},[r.base,o]);return s.jsx(Ws.Provider,{value:R.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},go=()=>{const e=R.useContext(Ws);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},Ks={default_option:"score:desc"},Pu={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Iu="Imagem do produto",Xs=R.createContext({}),Nu=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=ho(),{router:i}=Ne(),a=R.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),i.push(`?${d.toString()}`)}},[i]),c=R.useCallback(()=>{const p=new URLSearchParams;p.set("sort",Ks.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),l=R.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),u=R.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return l(p,d)}return a(p,d)},[a,l,t]),f=R.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return s.jsx(Xs.Provider,{value:R.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:u,onSort:f,searchParams:t}),[n,c,f,u,o,r,t]),children:e})},Ou=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=go();return s.jsx(mo,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:s.jsx(Nu,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Tu=()=>{const e=R.useContext(Xs);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},Qs=R.createContext({}),Mu=({children:e})=>{const{data:t,...r}=ho(),[n,o]=R.useState(0),{sendDataLayerEvent:i}=ge();return R.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)&&o(a)}},[t,i,o]),s.jsx(Qs.Provider,{value:R.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Pu,total:n}),[t,r,n]),children:e})},ku=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>s.jsx(mo,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:s.jsx(Mu,{state:r,children:e})}),Lu=()=>{const e=R.useContext(Qs);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},Ys=R.createContext({}),Du=({children:e,term:t})=>{const[r,n]=R.useState([]),[o,i]=R.useState(!1);return R.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();n((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),s.jsx(Ys.Provider,{value:R.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},$u=({children:e,...t})=>s.jsx(Du,{...t,children:e}),Bu=()=>{const e=R.useContext(Ys);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},Zs=R.createContext({searches:[],isLoading:!1,error:null}),qu=({children:e})=>{const[t,r]=R.useState([]),[n,o]=R.useState(!0),[i,a]=R.useState(null);return R.useEffect(()=>{(async()=>{try{o(!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{o(!1)}})()},[]),s.jsx(Zs.Provider,{value:R.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},Hu=()=>{const e=R.useContext(Zs);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},Js=R.createContext({}),Fu=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:o=24})=>{const{pathname:i}=Ne(),[a,c]=R.useState(!1),l=R.useMemo(()=>{const f=new URL(i,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":Ks.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,i,r,t]),u=R.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Te.parseSearchState(l,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Te.parseSearchState(l,f)},[l,r]);return s.jsx(Js.Provider,{value:R.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:s.jsx(Vs,{CONSTANTS:{ITEMS_PER_PAGE:o},state:R.useMemo(()=>({...u}),[u]),collectionId:n,children:e})})},zu=()=>{const e=R.useContext(Js);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Wn=(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((o,i)=>Wn(o,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Wn(e[o],t[o]))},Uu=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Wn(t[n],e[n])),To=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},Gu=()=>({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}}}),Wu=(e,t,r,n=24)=>{const o=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:i};const a=t*n*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const f=l%r;if(f+c.columns>r){l+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>o.has(l+h))){for(let m=0;m<c.columns;m++)o.add(l+m);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:o,placedBanners:i}},Mo=(e,t,r,n=24)=>{const{placedBanners:o,taken:i}=Wu(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)i.has(c)||a.push(c),c++;return{banners:o,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},(n,o)=>{const i=o+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:ec(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>Gu())}}),Vu=(e,t)=>[...e,{loading:!1,page:t,pagination:ec(),products:[]}],ec=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Ku=50,Xu=tt.create((e,t)=>{const r=a=>Math.min(a,Ku),n=async(a,c)=>{const l=r(a.page);try{const u=await To({...a,page:l});o(l,f=>c?c(f,u):{...f,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),o(l,f=>({...f,loading:!1}))}},o=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await n(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:er(f,void 0,u)});try{const h=await To({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){i({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},l),e({pages:er((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof l=="function"&&l(h),e({load:!0,pages:er(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),f=r(a==null?void 0:a.page);u.some(p=>p.page===f)||(e({...c,pages:Vu(u,f)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),tc=R.createContext({}),Qu=({banners:e,children:t,itemsPerPage:r=24,searchParams:n})=>{const{router:o}=Ne(),{sendDataLayerEvent:i}=ge(),{isMobile:a}=we(),{state:c}=go(),{addPage:l,createPages:u,updateProducts:f,...p}=Xu(),d=a?8:16,m=a?2:4,h=R.useRef(!1),y=R.useRef(c),g=R.useCallback(C=>{C&&"pagination"in C&&i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:C.products}}})},[i]),v=R.useCallback(C=>{if(C.pagination.nextPage===!0){const x=C.page+1,P=Mo(e,x,m,r);l({...c,page:x},P,g)}},[l,e,g,m,r,c]),A=R.useCallback(C=>{C.loading===!1&&f({...c,page:C.page},g)},[g,f,c]),_=R.useCallback(C=>{const x=new URLSearchParams(n);C.page!==Number(x.get("page")??1)&&(x.set("page",String(C.page)),o.replace(`?${x.toString()}`,{scroll:!1}))},[o,n]);return R.useEffect(()=>{const C=!h.current,x=Uu(y.current,c),P=Mo(e,c.page,m);C?u(c,P,g,r):x&&(u(c,P,g,r),y.current=c),h.current=!0},[e,u,g,m,r,c]),s.jsx(tc.Provider,{value:R.useMemo(()=>({...p,addPage:l,addNewPage:v,createPages:u,gap:d,columns:m,updatePage:A,updateProducts:f,updateParamPage:_}),[l,v,u,d,m,p,A,f,_]),children:t})},Yu=()=>{const e=R.useContext(tc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e},Zu={contexts:{addToCart:{hook:Ve,provider:zs},cart:{hook:Fe,provider:ju},cms:{FlagsAndTags:{context:oo,hook:io,provider:Ml}},events:{hook:ge,provider:Vl},global:{hook:we,provider:su,mediator:ws},header:{hook:be,provider:Eu},menuMobile:{hook:pt,provider:Hs},next:{hook:Ne,provider:cu},pdp:{provider:kl,hook:Ll},plp:{provider:Fu,hook:zu},plpInfinite:{provider:Qu,hook:Yu},pdpdata:{hook:lo,provider:Kl},searchFacets:{hook:Tu,provider:Ou},searchProducts:{hook:Lu,provider:ku},searchRoot:{hook:ho,provider:mo},searchSearch:{hook:go,provider:Vs},searchSuggestedTerms:{hook:Bu,provider:$u},searchTopSearchs:{hook:Hu,provider:qu},ui:{hook:dt,provider:Rs}},hooks:{useBackPDC:Ua},stores:{cart:iu,header:fu,pdp:Au}};function rc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function nc(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const Ju=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function ed(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function td(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const oc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,st=(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),rd=e=>{const t=Tl.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},nd=["name","email","phone","date","cpf","cep"],ko={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}$/},od=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ko[e])return!0;const n=t.trim();return ko[e].test(n)},id=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Iu},ad=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:nd,debounce:td,getAltTextFromUrl:id,getAuthenticatedUser:rd,getCookie:rc,getDaysHoursMinutesSeconds:st,getMilliSeconds:oc,removeAccentsAndReplaceSpaces:Ju,setCookie:nc,throttle:ed,validateInput:od},Symbol.toStringTag,{value:"Module"})),sd={cart:ru,events:Wl,product:ql,utils:ad},yo={helpers:sd},Pe={"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"},ic=({brand:e,className:t,name:r,...n})=>s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--name"],t),children:[s.jsx(b.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:s.jsx("p",{className:"typography-style-body-md",children:r})})})]});ic.displayName="AddToCart.Card.Name";const ac=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=De(r/100),c=De(t/100);return s.jsx("div",{...i,className:b.helpers.classNameConcat(Pe["add-to-cart--card--price-quantity"],e),children:s.jsx(b.ProductInfo.Root,{size:"small",layout:"vertical",children:s.jsx(b.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:s.jsx(b.ProductInfo.ValuesWrapper,{children:r!==t?s.jsxs(s.Fragment,{children:[s.jsx(b.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),s.jsx(b.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):s.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};ac.displayName="AddToCart.Card.PriceQuantity";const cd="_skeleton_12b79_1",ld={skeleton:cd},ud=({style:e})=>s.jsx("div",{style:e,className:ld.skeleton}),dd="_image_lypfr_1",fd={image:dd},pd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Ne();return s.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(fd.image,t),"data-object-fit":r??"cover"})},md=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),Le={Image:pd,Video:md},sc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Ve(),[c,l]=R.useState(n??"");return R.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const p=f.images.find(d=>i.includes(d.imageLabel));p!=null&&p.imageUrl?l(p.imageUrl):l(f.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card--style-size"],e),children:[s.jsx(b.ToggleStyle.Wrapper,{size:"x-small",style:a,children:s.jsx(b.ToggleStyle.Texture,{children:c?s.jsx(Le.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(ud,{})})}),s.jsx(b.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&s.jsxs(b.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[s.jsx(b.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),s.jsx(b.ToggleSize.Text,{children:r})]})]})};sc.displayName="AddToCart.Card.StyleSize";const{helpers:hd}=yo,cc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=Ve(),{size:d}=hd.product.getColorAndSizeFromSkuName(a??o,p);return s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(ic,{brand:i.name,name:o}),s.jsx(ac,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(sc,{size:d,texture:r,productGroupID:c})]})};cc.displayName="AddToCart.Card.Content";const lc=({image:e,thumbnail:t=!1})=>s.jsx(Le.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});lc.displayName="AddToCart.Card";const uc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Ya(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(lc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(cc,{item:t,texture:r})]})};uc.displayName="AddToCart.Card";const dc=({className:e,children:t,title:r,...n})=>s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--content"],e),children:[s.jsx("div",{className:Pe["add-to-cart--content--title"],children:r&&s.jsx("h2",{children:r})}),t,s.jsx(Ue.Footer,{})]});dc.displayName="AddToCart.Layout.Content";const fc=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ve(),{cartStore:{totalizers:i},setIsOpen:a}=Fe(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),p=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=De(p??0);return s.jsxs("div",{...t,className:b.helpers.classNameConcat(Pe["add-to-cart--footer"],e),children:[s.jsxs("div",{className:Pe["add-to-cart--footer--total"],children:[s.jsx("span",{children:"Subtotal:"}),s.jsx("span",{children:d})]}),s.jsx(b.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?s.jsx(b.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):s.jsx(b.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};fc.displayName="AddToCart.Layout.Footer";const pc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Fe(),{recentlyAddedProducts:i}=dt(),a=i.length>3?4:i.length;return s.jsxs("div",{...n,className:Pe["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=o==null?void 0:o.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return s.jsx(Ue.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};pc.displayName="AddToCart.Layout.Items";const mc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ve(),{isMobile:o}=we();return s.jsxs(b.Modal.Root,{"data-modal":"add-to-cart--modal",className:Pe["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[s.jsx(b.Modal.Header,{navigation:"top",children:s.jsx(b.Modal.Controls,{navigation:"top",isMobile:!0})}),s.jsx(b.Modal.Body,{children:e})]})};mc.displayName="AddToCart.Modal";const gd=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ve(),o=R.useRef(t);return R.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},hc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=dt(),{isMobile:i}=we(),a=o.length>3?4:o.length;return s.jsx(zs,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(gd,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(Ue.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(Ue.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};hc.displayName="AddToCart.Root";const gc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:l,top:u}=Ve();return s.jsx(b.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Pe["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:s.jsx("div",{className:Pe["add-to-cart--tooltip"],ref:c,children:e})})};gc.displayName="AddToCart.Tooltip";const Ue={Card:uc,Content:dc,Footer:fc,Items:pc,Modal:mc,Root:hc,Tooltip:gc},_o=({title:e,...t})=>{const{recentlyAddedProducts:r}=dt(),{isMobile:n}=we(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(Ue.Root,{isMobile:n,count:r.length,component:s.jsx(Ue.Content,{title:e,children:s.jsx(Ue.Items,{thumbnail:a,children:i&&s.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};_o.displayName="AddToCart";const Lo={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},yd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},u=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return s.jsx(b.Card,{...a,shadow:!0,padding:"small",className:b.helpers.classNameConcat(Lo["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:Lo["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})};var yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _d(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Vn={exports:{}},Re={};Re._=Re._interop_require_default=vd;function vd(e){return e&&e.__esModule?e:{default:e}}var Ct={exports:{}},tr={},Do;function _c(){return Do||(Do=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 o},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,f]=l;Array.isArray(f)?f.forEach(p=>c.append(u,n(p))):c.set(u,n(f))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(f=>{Array.from(f.keys()).forEach(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(tr)),tr}var rr={},et={};function vc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(vc=function(n){return n?r:t})(e)}et._=et._interop_require_wildcard=bd;function bd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=vc(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var $o;function bc(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=et._(_c()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,p=l.protocol||"",d=l.pathname||"",m=l.hash||"",h=l.query||"",y=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?y=u+l.host:f&&(y=u+(~f.indexOf(":")?"["+f+"]":f),l.port&&(y+=":"+l.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=l.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(rr)),rr}var nr={},Bo;function xd(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(nr)),nr}var or={},qo;function Wt(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,x){for(var P in x)Object.defineProperty(C,P,{enumerable:!0,get:x[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let x=!1,P;return function(){for(var S=arguments.length,I=new Array(S),$=0;$<S;$++)I[$]=arguments[$];return x||(x=!0,P=C(...I)),P}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=C=>o.test(C);function a(){const{protocol:C,hostname:x,port:P}=window.location;return C+"//"+x+(P?":"+P:"")}function c(){const{href:C}=window.location,x=a();return C.substring(x.length)}function l(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function f(C){const x=C.split("?");return x[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(x[1]?"?"+x.slice(1).join("?"):"")}async function p(C,x){if(process.env.NODE_ENV!=="production"){var P;if((P=C.prototype)!=null&&P.getInitialProps){const $='"'+l(C)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const S=x.res||x.ctx&&x.ctx.res;if(!C.getInitialProps)return x.ctx&&x.Component?{pageProps:await p(x.Component,x.ctx)}:{};const I=await C.getInitialProps(x);if(S&&u(S))return I;if(!I){const $='"'+l(C)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!x.ctx&&console.warn(""+l(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(x){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+x}}class v extends Error{constructor(x,P){super(),this.message="Failed to load static file for page: "+x+" "+P}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(C){return JSON.stringify({message:C.message,stack:C.stack})}}(or)),or}var St={exports:{}},ir={},Ho;function xc(){return Ho||(Ho=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 ar={},Fo;function vo(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(ar)),ar}var zo;function Vt(){return zo||(zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=xc(),n=vo(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(St,St.exports)),St.exports}var sr={},At={exports:{}},cr={},Uo;function Cc(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=vo();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(cr)),cr}var Go;function Cd(){return Go||(Go=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Cc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports}var Wo;function Sc(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Wt(),r=Cd();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(sr)),sr}var lr={},ur={},Vo;function Sd(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');f(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');f(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');f(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(ur)),ur}var dr={},Ko;function Ad(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(dr)),dr}var Xo;function Ed(){return Xo||(Xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Sd(),n=Ad()}(lr)),lr}var fr={},pr={},Qo;function Rd(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Wt();function r(n){let{re:o,groups:i}=n;return a=>{const c=o.exec(a);if(!c)return!1;const l=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(f=>{const p=i[f],d=c[p.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(m=>l(m)):p.repeat?[l(d)]:l(d))}),u}}}(pr)),pr}var mr={},hr={},gr={},yr={},Yo;function wd(){return Yo||(Yo=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}}(yr)),yr}var _r={},Zo;function jd(){return Zo||(Zo=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(")")}}(_r)),_r}var Jo;function Pd(){return Jo||(Jo=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 o},normalizeRscPath:function(){return i}});const r=wd(),n=jd();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,f)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===f.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(gr)),gr}var ei;function Id(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Pd(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(c=>n.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const f of a.split("/"))if(l=n.find(p=>f.startsWith(p)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=f.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(hr)),hr}var vr={},ti;function Nd(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(vr)),vr}var ri;function Od(){return ri||(ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var v in g)Object.defineProperty(y,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Id(),n=Nd(),o=xc(),i="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const v=y.startsWith("...");return v&&(y=y.slice(3)),{key:y,repeat:v,optional:g}}function l(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),v={};let A=1;return{parameterizedRoute:g.map(_=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(P=>_.startsWith(P)),x=_.match(/\[((?:\[.*\])|.+)\]/);if(C&&x){const{key:P,optional:S,repeat:I}=c(x[1]);return v[P]={pos:A++,repeat:I,optional:S},"/"+(0,n.escapeStringRegexp)(C)+"([^/]+?)"}else if(x){const{key:P,repeat:S,optional:I}=c(x[1]);return v[P]={pos:A++,repeat:S,optional:I},S?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:v}}function u(y){const{parameterizedRoute:g,groups:v}=l(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function f(){let y=0;return()=>{let g="",v=++y;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:C,optional:x,repeat:P}=c(v);let S=C.replace(/\W/g,"");_&&(S=""+_+S);let I=!1;return(S.length===0||S.length>30)&&(I=!0),isNaN(parseInt(S.slice(0,1)))||(I=!0),I&&(S=g()),_?A[S]=""+_+C:A[S]=""+C,P?x?"(?:/(?<"+S+">.+?))?":"/(?<"+S+">.+?)":"/(?<"+S+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:v.map(C=>{const x=r.INTERCEPTION_ROUTE_MARKERS.some(S=>C.startsWith(S)),P=C.match(/\[((?:\[.*\])|.+)\]/);return x&&P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(C)}).join(""),routeKeys:_}}function m(y,g){const v=d(y,g);return{...u(y),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function h(y,g){const{parameterizedRoute:v}=l(y),{catchAll:A=!0}=g;if(v==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let C=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+C+"$"}}}(mr)),mr}var ni;function Td(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Rd(),r=Od();function n(o,i,a){let c="";const l=(0,r.getRouteRegex)(o),u=l.groups,f=(i!==o?(0,t.getRouteMatcher)(l)(i):"")||a;c=o;const p=Object.keys(u);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(fr)),fr}var oi;function Md(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=_c(),n=bc(),o=xd(),i=Wt(),a=Vt(),c=Sc(),l=Ed(),u=Td();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let C="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:S,params:I}=(0,u.interpolateAs)(_.pathname,_.pathname,P);S&&(C=(0,n.formatWithValidation)({pathname:S,hash:_.hash,query:(0,o.omit)(P,I)}))}const x=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return m?[x,C||x]:x}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ct,Ct.exports)),Ct.exports}var Et={exports:{}},br={},xr={},ii;function Ac(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=vo();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(n);return""+o+i+a+c}}(xr)),xr}var ai;function kd(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ac(),r=Cc();function n(o,i,a,c){if(!i||i===a)return o;const l=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(br)),br}var si;function Ld(){return si||(si=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Vt(),n=function(o){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)(kd().addLocale(o,...a)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var Cr={},ci;function Ec(){return ci||(ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Cr)),Cr}var Sr={},li;function Dd(){return li||(li=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Re._(R);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Sr)),Sr}var Rt={exports:{}},wt={exports:{}},ui;function Rc(){return ui||(ui=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}var di;function $d(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=R,n=Rc(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=i.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(v=>{const A=h.get(v.target),_=v.isIntersecting||v.intersectionRatio>0;A&&_&&A(_)})},f);return m={id:p,observer:y,elements:h},a.push(p),i.set(p,m),m}function l(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(m);const v=a.findIndex(A=>A.root===m.root&&A.margin===m.margin);v>-1&&a.splice(v,1)}}}function u(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(C=>{v.current=C},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const C=v.current;if(C&&C.tagName)return l(C,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const C=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(C)}},[h,d,p,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[A,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)}(Rt,Rt.exports)),Rt.exports}var jt={exports:{}},Pt={exports:{}},Ar={},fi;function Bd(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Ar)),Ar}var pi;function qd(){return pi||(pi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Bd().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Pt,Pt.exports)),Pt.exports}var It={exports:{}},Er={},mi;function Hd(){return mi||(mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===l||o===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===o))return c}}}}(Er)),Er}var hi;function Fd(){return hi||(hi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return Hd().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var gi;function zd(){return gi||(gi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Vt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=qd().normalizeLocalePath,f=Fd().detectDomainLocale,p=a||u(i,c).detectedLocale,d=f(l,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}var Nt={exports:{}},yi;function Ud(){return yi||(yi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ac(),n=Vt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Nt,Nt.exports)),Nt.exports}var Ot={exports:{}},_i;function Gd(){return _i||(_i=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const n="refresh",o="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ot,Ot.exports)),Ot.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const n=Re._(R),o=Md(),i=Sc(),a=bc(),c=Wt(),l=Ld(),u=Ec(),f=Dd(),p=$d(),d=zd(),m=Ud(),h=Gd(),y=new Set;function g(P,S,I,$,E,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(S))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in P?P.locale:void 0,w=S+"%"+I+"%"+B;if(y.has(w))return;y.add(w)}const k=N?P.prefetch(S,E):P.prefetch(S,I,$);Promise.resolve(k).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function v(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function A(P,S,I,$,E,N,k,B,w,q){const{nodeName:z}=P.currentTarget;if(z.toUpperCase()==="A"&&(v(P)||!w&&!(0,i.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=k??!0;"beforePopState"in S?S[E?"replace":"push"](I,$,{shallow:N,locale:B,scroll:W}):S[E?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:W})};w?n.default.startTransition(K):K()}function _(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const x=n.default.forwardRef(function(S,I){let $;const{href:E,as:N,children:k,prefetch:B=null,passHref:w,replace:q,shallow:z,scroll:U,locale:K,onClick:W,onMouseEnter:F,onTouchStart:ne,legacyBehavior:j=!1,...T}=S;$=k,j&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,M=B!==!1,J=B===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(S[oe]==null||typeof S[oe]!="string"&&typeof S[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:S[oe]===null?"null":typeof S[oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(oe=>{const V=typeof S[oe];if(oe==="as"){if(S[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(S[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(S[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&S[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);S.prefetch&&!Q.current&&!Z&&(Q.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&Z&&!N){let ie;if(typeof E=="string"?ie=E:typeof E=="object"&&typeof E.pathname=="string"&&(ie=E.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=_(E);return{href:G,as:N?_(N):G}}const[ie,me]=(0,o.resolveHref)(D,E,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,E,N]),L=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(j)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` 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 `"+E+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=j?re&&typeof re=="object"&&re.ref:I,[ce,le,se]=(0,p.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(se(),O.current=ee,L.current=Y),ce(ie),ae&&(typeof ae=="function"?ae(ie):typeof ae=="object"&&(ae.current=ie))},[ee,ae,Y,se,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!le||!M||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!j&&typeof W=="function"&&W(ie),j&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,z,U,K,Z,M))},onMouseEnter(ie){!j&&typeof F=="function"&&F(ie),j&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!j&&typeof ne=="function"&&ne(ie),j&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!j||w||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,l.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return j?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Vn,Vn.exports);var Wd=Vn.exports,Vd=Wd;const Ie=Gt(Vd),bo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},xo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Fe(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return s.jsx(b.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:s.jsxs(b.Badge.AutoPositioner,{children:[s.jsx(b.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),s.jsx(b.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};xo.displayName="Header.Bag";const mt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(Ie,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,wc=()=>{const{headerData:e}=be(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=He(),o=i=>{i?n(i):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(mt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(b.Header.CategoryItem,{className:bo["btn-header"],value:i.submenuId??null,adornment:{start:s.jsx(b.Icon,{name:i.iconStart}),end:s.jsx(b.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};wc.displayName="Header.Categories";function Kd({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=be(),{setValue:n}=po();return s.jsxs(s.Fragment,{children:[s.jsx(b.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:s.jsx(b.Icon,{name:r.header.ICONS.search,size:"medium"})}),s.jsx(e,{recommendations:!1,trends:!0})]})}const Xd={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Qd={"observer-wrapper":"_observer-wrapper_r43gk_1"};function Yd(e,t,r){const[n,o]=R.useState(!1),{threshold:i}=r||{};return R.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Kt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=R.useRef(null),l=Yd(c,o,r),{sendDataLayerEvent:u}=ge();return R.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(Qd["observer-wrapper"],i),children:e})},Co=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:Xd["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 s.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(Ie,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[s.jsx(Le.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&s.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Co.displayName="Menu.Thumbnail";const Kn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Zd="_link_w24h0_1",Jd="_wrapper_w24h0_98",ef="_text_w24h0_106",Rr={link:Zd,wrapper:Jd,text:ef},nt=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const p=b.helpers.ValidateProp({fieldTypes:Ye.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:i,fallback:"default"});return s.jsx(Ie,{...f,className:b.helpers.classNameConcat(Rr.link,r),href:o&&o.length>0?o:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:Rr.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:Rr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},jc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Ne(),{reset:i}=He(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=be();return s.jsxs("div",{...n,className:Kn["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,f)=>{var m,h,y;const p=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((h=u.see_all)!=null&&h.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:s.jsx(b.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{children:[s.jsx(mt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{children:u.label})})})}),s.jsx(b.ComponentList.List,{columns:1,...p,className:Kn["submenu-categories"],children:u.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(nt,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${v}`))}),((y=u.see_all)==null?void 0:y.link)&&s.jsx(b.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=u.see_all)!=null&&g.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),o.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${f}`)}),t&&s.jsx(b.Utils.Divider,{size:"small",direction:"vertical"})]})};jc.displayName="Menu.Categories";var Xn={exports:{}};function tf(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 wr={},jr={},vi;function rf(){return vi||(vi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(jr)),jr}var bi;function nf(){return bi||(bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(R),n=rf();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let c=!1;function l(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(v=>(g.loading=!1,g.loaded=v,v)).catch(v=>{throw g.loading=!1,g.error=v,v}),g}function u(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),v=null;function A(){if(!v){const x=new f(h,g);v={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return v.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const x=g.webpack&&typeof tf.resolveWeak=="function"?g.webpack():g.modules;x&&a.push(P=>{for(const S of x)if(P.includes(S))return A()})}function _(){A();const x=r.default.useContext(n.LoadableContext);x&&Array.isArray(g.modules)&&g.modules.forEach(P=>{x(P)})}function C(x,P){_();const S=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:v.retry}),[]),r.default.useMemo(()=>S.loading||S.error?r.default.createElement(g.loading,{isLoading:S.loading,pastDelay:S.pastDelay,timedOut:S.timedOut,error:S.error,retry:v.retry}):S.loaded?r.default.createElement(o(S.loaded),x):null,[x,S])}return C.preload=()=>A(),C.displayName="LoadableComponent",r.default.forwardRef(C)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(h){return u(l,h)}function d(h,y){let g=[];for(;h.length;){let v=h.pop();g.push(v(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(wr)),wr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Re,o=n._(R),i=n._(nf()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,p){let d=i.default,m={loading:g=>{let{error:v,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(v)return o.default.createElement("p",null,v.message,o.default.createElement("br",null),v.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,l(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Xn,Xn.exports);var of=Xn.exports,af=of;const So=Gt(af),Pc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=be();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Kn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(b.Utils.Divider,{size:"small"})]})};Pc.displayName="Menu.MenuRoot";const sf=So(()=>Promise.resolve(Pc),{ssr:!1}),Pr={Root:sf,Categories:jc,Thumbnail:Co},Ic=()=>{const{headerData:e,CONSTANTS:t}=be(),r=zt(),{reset:n}=He();return s.jsx(b.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:c,id:l}=o,u=l===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return s.jsxs(Pr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Pr.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Pr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Ic.displayName="Header.SubMenu";const Nc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=be();return s.jsx(Ie,{href:"/favoritos",children:s.jsx(b.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:s.jsx(b.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Nc.displayName="Header.WishList";const Oc=({UserMenu:e,SearchModal:t})=>{const r=R.useRef(null),{CONSTANTS:n}=be(),{handleSelectContent:o}=ge(),{reset:i}=He(),{setValue:a}=Ut();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(Ie,{href:"/",onMouseEnter:i,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),s.jsx(wc,{}),s.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[s.jsx(Kd,{SearchModal:t}),s.jsx(e,{target:r.current,children:s.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:bo["btn-login"],innerRef:r,children:s.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),s.jsx(Nc,{}),s.jsx(xo,{id:"cart-button"})]})]}),s.jsx(Ic,{})]})};Oc.displayName="Header.HeaderDesktopWrapper";const cf="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:cf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Tc=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>s.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?s.jsxs(b.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[s.jsx(b.Banner.ImageWrapper,{style:{width:"100%"},children:s.jsx(Le.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),s.jsx(b.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:s.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):s.jsx("h2",{...i,children:e})});Tc.displayName="Menu.MenuCategories";const Mc=({children:e,link:t})=>{const{reset:r}=We();return t?s.jsx(Ie,{href:t??"#",onClick:r,children:e}):e};Mc.displayName="Menu.MenuCategoriesWrapper";const kc=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Ne(),{reset:n}=We(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=be(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open: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:s.jsx(b.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(b.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[s.jsx(mt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),s.jsx(b.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((p,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:s.jsx(nt,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),o({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};kc.displayName="Menu.SubMenuSubCategory";const Lc=({submenu:e})=>{var i;const t=zt(),{handleCloseSubMenu:r}=pt(),{reset:n}=He(),{CONSTANTS:o}=be();return s.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[s.jsx(b.TextStructure.Root,{adornment:{start:s.jsx(b.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&s.jsx(b.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:s.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),s.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&s.jsx(Co,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>s.jsx(kc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Lc.displayName="Menu.SubMenuItem";const Dc=()=>{const{headerData:e}=be(),t=zt(),{reset:r}=He(),{bodyRef:n}=pt();return s.jsx(b.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:s.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>s.jsx(Lc,{submenu:o},`submenu-${o.id}-${i}`))})})};Dc.displayName="Menu.SubMenu";const $c=({className:e,...t})=>{const{headerData:r}=be(),{setValue:n}=He(),{bodyRef:o}=pt(),{handleSelectContent:i}=ge();return s.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[s.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return s.jsx(Mc,{link:a.submenuId?null:a.link,children:s.jsx(Tc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(Dc,{})]})};$c.displayName="Menu.MenuBody";const Bc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=be();return s.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{children:[e&&s.jsx("h2",{className:"typography-style-body-md",children:e}),t&&s.jsx("h3",{children:t})]})}),s.jsx(b.Button,{adornment:{end:s.jsx(b.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Bc.displayName="Menu.MenuHeaderWrapper";const qc=({navigationLinks:e})=>{const{reset:t}=We(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(nt,{href:n.link??"#",adornments:{start:n.iconStart&&s.jsx(b.Icon,{name:n.iconStart}),end:n.iconEnd&&s.jsx(b.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};qc.displayName="Menu.MenuHeaderNavLinks";const Hc=()=>{const{headerData:e}=be();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Bc,{title:e.title,subtitle:e.subtitle}),s.jsx(qc,{navigationLinks:e.navigationLinks})]})};Hc.displayName="Menu.MenuHeaderContainer";const Fc=({children:e})=>{const{documentBodyRef:t}=pt(),{CONSTANTS:r}=be(),n=fo(),{setValue:o}=We();return s.jsx(b.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:s.jsx("div",{className:_e["menu-mobile"],children:e})})};Fc.displayName="Menu.MenuRoot";const lf=So(()=>Promise.resolve(Fc),{ssr:!1}),Bt=({children:e,...t})=>s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),s.jsx(b.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Bt.displayName="Menu.NavigationBarItem";const zc=()=>{const{setIsOpen:e}=Fe(),{reset:t}=We(),{setValue:r}=Ut(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=be(),{router:i}=Ne();return s.jsxs(b.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),s.jsx(Bt,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};zc.displayName="Menu.NavigationBar";const Tt={Root:lf,NavigationBar:zc,Header:Hc,Body:$c},Uc=({UserMenu:e,SearchModal:t})=>{const r=R.useRef(null),n=R.useRef(null),{CONSTANTS:o}=be(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:l}=ge(),{setValue:u}=po(),{setValue:f}=We(),{setValue:p}=Ut();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[c==="left"&&s.jsx(b.Header.SupportItem,{onClick:()=>f(!0),innerRef:r,children:s.jsx(b.Icon,{name:a.menu,size:"medium"})}),s.jsx(b.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:s.jsx(Ie,{href:"/",children:s.jsx(b.Icon,{name:a.logo,size:"x-large",onClick:()=>{l({content:"header:logo"})}})})}),s.jsxs(b.Header.Support,{children:[s.jsx(b.Header.SupportItem,{onClick:()=>{u(!0),l({content:"header:search"})},children:s.jsx(b.Icon,{name:a.search,size:"medium"})}),s.jsx(b.Header.SupportItem,{onClick:()=>{p(!0),l({content:"header:user_menu"})},innerRef:n,children:s.jsx(b.Icon,{name:a.person,size:"medium"})}),s.jsx(xo,{}),c==="right"&&s.jsx(b.Header.SupportItem,{onClick:()=>f(!0),innerRef:r,children:s.jsx(b.Icon,{name:a.menu,size:"medium"})})]})]}),s.jsx(t,{recommendations:!1,trends:!0}),s.jsx(Hs,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Tt.Root,{children:[s.jsx(Tt.Header,{}),s.jsx(Tt.Body,{}),i?s.jsx(Tt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};Uc.displayName="Header.HeaderMobileWrapper";const Gc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=be(),{header:{HEADER_CONFIGS:c,Z_INDEX_WAR:l}}=a;return s.jsx(b.Header.Structure,{innerRef:o,adornment:{start:e},style:{position:"sticky",top:0,zIndex:l.header},className:bo["header-animation"],children:s.jsxs(b.Header.Root,{innerRef:i,style:{zIndex:l.header},variant:c.default_variant,interactiveVariant:c.interactive_variant,children:[s.jsx("div",{className:Te.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:s.jsx(Uc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Te.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:s.jsx(Oc,{UserMenu:r,SearchModal:n})}),t,s.jsx(_o,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Gc.displayName="Header";const uf="_shippingFreight_6z8rf_6",df="_shippingFreight__postalCodeGrid_6z8rf_10",ff="_shippingFreight__grid_6z8rf_14",pf="_shippingFreight__grid__title_6z8rf_18",mf="_shippingFreight__grid__remember_6z8rf_29",hf="_postalCodeContainer_6z8rf_44",gf="_deliveryStatusBar__tag_6z8rf_49",yf="_deliveryStatusBarError__tag_6z8rf_66",_f="_deliveryInfo_6z8rf_74",vf="_deliveryInfo__content_6z8rf_78",bf="_deliveryInfo__text_6z8rf_84",xf="_deliveryInfo__title_6z8rf_89",Cf="_deliveryInfo__subtitle_6z8rf_99",Sf="_deliveryInfo__tooltipIcon_6z8rf_109",Af="_deliveryInfo__tooltip_6z8rf_109",Ef="_freightGrid_6z8rf_148",Rf="_freightContainer_6z8rf_155",wf="_freightOption__content_6z8rf_160",jf="_freightOption__value_6z8rf_166",Pf="_freightOption__title_6z8rf_177",If="_freightOption__title_item_6z8rf_181",Nf="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:uf,shippingFreight__postalCodeGrid:df,shippingFreight__grid:ff,shippingFreight__grid__title:pf,shippingFreight__grid__remember:mf,postalCodeContainer:hf,deliveryStatusBar__tag:gf,deliveryStatusBarError__tag:yf,deliveryInfo:_f,deliveryInfo__content:vf,deliveryInfo__text:bf,deliveryInfo__title:xf,deliveryInfo__subtitle:Cf,deliveryInfo__tooltipIcon:Sf,deliveryInfo__tooltip:Af,freightGrid:Ef,freightContainer:Rf,freightOption__content:wf,freightOption__value:jf,freightOption__title:Pf,freightOption__title_item:If,freightOption__paragraph:Nf,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Of=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=R.useState(!1),f=R.useRef(null),p=()=>u(d=>!d);return s.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsx("div",{children:s.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),s.jsxs("div",{className:fe.deliveryInfo__content,children:[s.jsx("div",{className:fe.deliveryInfo__icon,children:s.jsx(b.Icon,{name:e,size:"medium"})}),s.jsxs("div",{className:fe.deliveryInfo__text,children:[s.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&s.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&s.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[s.jsx("span",{children:s.jsx(b.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&s.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Tf=({value:e,title:t,paragraph:r})=>s.jsx("div",{className:fe.freightOption,children:s.jsxs("div",{className:fe.freightOption__content,children:[s.jsx("span",{className:fe.freightOption__value,children:e}),s.jsx("span",{className:fe.freightOption__title,children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:fe.footer__item,children:[s.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&s.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),Mf=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),kf=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),Lf=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),xi=({message:e,seller:t="",size:r="small",setError:n})=>s.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:s.jsxs(b.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),Df=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},$f=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},Bf=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=we();return s.jsx(s.Fragment,{children:u?s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):s.jsx(b.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...l,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},qf=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,k,B,w;const f=Ze(),p=Ze(q=>q.shipping),[d,m]=R.useState(),[h,y]=R.useState(!1),[g,v]=R.useState(!1),[A,_]=R.useState(!1),C=(k=(N=f.shippingData)==null?void 0:N.address)==null?void 0:k.postalCode,x=!(d!=null&&d.length)&&C?C:d,P=R.useRef(null),S=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await Io.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),v(!0);return}i&&i(""),v(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},$=async()=>{y(!0);try{const q=await Io.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:x});e($f(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),p(x,"BRA")}},E=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:x}}),h||($(),a(!0))};return s.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&A?s.jsx(Bf,{component:c,isOpen:A,parent:P.current,toolTipZIndex:u,freightConfig:l}):s.jsx(s.Fragment,{}),s.jsx("div",{style:{position:"relative"},children:s.jsx(b.TextField.Structure,{title:"structure",style:{width:"100%"},input:s.jsx(b.TextField.Input,{defaultValue:(w=(B=f.shippingData)==null?void 0:B.address)==null?void 0:w.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:S,onKeyDown:q=>{q.key==="Enter"&&E()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(b.Button,{onClick:E,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Hf=({children:e,freightConfig:t})=>s.jsxs("div",{className:fe.shippingFreight,children:[s.jsxs("div",{className:fe.shippingFreight__grid,children:[s.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),s.jsx("span",{className:fe.shippingFreight__grid__remember,children:s.jsx(nt,{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})})]}),s.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),Ff=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),zf=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=R.useState(""),[p,d]=R.useState([]),[m,h]=R.useState(""),[y,g]=R.useState(!1),v=_=>f(_),A=_=>{d(_),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(C=>({shipping_tier:C.id,delivery_time:C.shippingEstimate.replace("bd",""),flag_pickup:C.name.toLowerCase().includes("retirada")?"true":"false",shipping:C.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(Ff,{className:e,children:[s.jsxs(Hf,{freightConfig:c.freightConfig,children:[s.jsx(Lf,{children:s.jsx(qf,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?s.jsx(xi,{size:o,message:m,setError:h}):p.length>0&&s.jsx(xi,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?p.length>0&&s.jsxs(Mf,{children:[s.jsx(kf,{children:p.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(Tf,{id:_.id,value:ao({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${Df(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(Of,{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}):s.jsx(s.Fragment,{})]}):null]})},Wc=R.createContext({}),Uf=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=R.useState(null),c=R.useRef(null),l=R.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),p=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return s.jsx(Wc.Provider,{value:R.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Me=()=>{const e=R.useContext(Wc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"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"},Vc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Me();return a?s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(je.Wrapper,{type:"actions--group",children:[s.jsx(je.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(je.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Vc.displayName="ProductCard.Actions";const Kc=({className:e,isKit:t,...r})=>{const{addToCart:n}=Fe(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Me(),f=()=>{var m;if(!i)return;const d=co(i.offers.offers,u.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),l()},p=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return s.jsx(b.Button,{...r,className:b.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};Kc.displayName="ProductCard.Actions.BuyButton";const Xc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Me();return s.jsxs(je.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?s.jsx(b.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?s.jsx(b.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&s.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};Xc.displayName="ProductCard.Actions.Header";const Qc=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:f,order:p,CONSTANTS:d}=Me(),m=Za({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[s.jsx(Ie,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>R.createElement(Le.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&u&&s.jsx(je.Video,{url:u,poster:m[0].url}),t]})};Qc.displayName="ProductCard.Media.Media";const Yc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Me(),{availability:{status:c}}=i;return c?null:s.jsxs("div",{...n,className:b.helpers.classNameConcat(Se["product-card--outstock"],e),children:[s.jsx(b.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),s.jsx(b.Button,{className:b.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};Yc.displayName="ProductCard.OutStock";const Zc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...p})=>s.jsx(Uf,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...p,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Zc.displayName="ProductCard.Root";const Jc=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>s.jsxs(b.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[s.jsx(b.ToggleSize.DisabledAdornment,{}),s.jsx(b.ToggleSize.Text,{children:t})]});Jc.displayName="ProductCard.SizeSelector.Item";const el=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Me();n.productId=i.id;const u=Ka(n),f=Wa(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const p=R.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=R.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}p(n)},[n,o,p,u,i]);return s.jsx(Jc,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};el.displayName="ProductCard.SizeSelector.SkuItem";const tl=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Me();return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[s.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>s.jsx(el,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:n},`size--${u}--${l.sku}`))}),s.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};tl.displayName="ProductCard.SizeSelector";const Qn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>s.jsxs(b.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[s.jsx(b.ToggleStyle.DisabledAdornment,{}),s.jsxs(b.ToggleStyle.Texture,{children:[o&&s.jsx(Le.Image,{alt:e??o,src:o,height:34,width:34}),r&&s.jsx(b.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:s.jsxs("p",{children:["+ ",n]})})]})]}),Gf=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Me(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(Qn,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:o},u)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&s.jsx(Qn,{size:o,total:r.length-n,more:!0})]})},rl=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Me(),c=o||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(Gf,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(Qn,{active:!0,size:"x-small",src:l.url})})};rl.displayName="ProductCard.StyleSelector";const nl=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Me();l.current.priceInfo={price:o,listPrice:i};const u=De(i,t),f=De(o,t),p=De(c??0),d=n?"horizontal":"stacked";return s.jsx("div",{...r,className:b.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:s.jsx(b.ProductInfo.Root,{size:"small",layout:d,children:s.jsxs(b.ProductInfo.Wrapper,{size:"small",layout:d,children:[s.jsx(b.ProductInfo.ValuesWrapper,{children:f!==u?s.jsxs(s.Fragment,{children:[s.jsx(b.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),s.jsx(b.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):s.jsx(b.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?s.jsx(b.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};nl.displayName="ProductCard.Price";const ol=({tag:e,className:t})=>{const{item:{name:r}}=Me();return s.jsxs("div",{className:b.helpers.classNameConcat(Se["product-card--title"],t),children:[s.jsx("div",{className:Se["product-card--title--tag"],children:e?s.jsx(b.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?s.jsx(b.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):s.jsx("div",{})}),s.jsx("div",{className:Se["product-card--title--content"],children:r&&s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h3",{children:r})})})})]})};ol.displayName="ProductCard.Title";const il=({className:e,url:t,poster:r,...n})=>{const{element:o}=Me();return R.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{Ja(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,o]),s.jsx("div",{...n,className:b.helpers.classNameConcat(Se["product-card--video"],e),children:t&&s.jsx(Le.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};il.displayName="ProductCard.Media.Video";const al=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});al.displayName="ProductCard.Wrapper";const je={Actions:Vc,BuyButton:Kc,Header:Xc,Media:Qc,Root:Zc,OutStock:Yc,Price:nl,SizeSelector:tl,StyleSelector:rl,Title:ol,Video:il,Wrapper:al},Wf="_footer__bottom_1o9af_2",Vf="_footer__wrapper_1o9af_10",Kf="_footer__main_1o9af_39",Xf="_footer__legalInformation_1o9af_55",Qf="_footer__column_1o9af_77",Yf="_footer__columnContent_1o9af_87",Zf="_footer__item_1o9af_91",Jf="_footer__itemLink_1o9af_107",ep="_footer__columnTitle_1o9af_122",tp="_footer__columnTitleIcon_1o9af_134",rp="_footer__iconList_1o9af_147",np="_footer__itemSmallText_1o9af_157",op="_payment_1o9af_168",ip="_footer__iconContainer_1o9af_173",ap="_footer__iconListSubHeader_1o9af_178",sp="_accordionWrapper_1o9af_200",cp="_accordionHeader_1o9af_204",lp="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Wf,footer__wrapper:Vf,footer__main:Kf,footer__legalInformation:Xf,footer__column:Qf,footer__columnContent:Yf,footer__item:Zf,footer__itemLink:Jf,footer__columnTitle:ep,footer__columnTitleIcon:tp,footer__iconList:rp,footer__itemSmallText:np,payment:op,footer__iconContainer:ip,footer__iconListSubHeader:ap,accordionWrapper:sp,accordionHeader:cp,accordionTextWrapper:lp,"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 sl={},Ao={},ht={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(ht);var cl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,f=i?i*40:n,p=a?a*40:o,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(cl);var Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Xt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=ht,r=cl,n=Xt,o=["lazy","eager",void 0];function i(h){return h.default!==void 0}function a(h){return h.src!==void 0}function c(h){return typeof h=="object"&&(i(h)||a(h))}const l=new Map;let u;function f(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function p(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const C=/(^|\s)(1?\d?\d)vw/g,x=[];for(let P;P=C.exec(g);P)x.push(parseInt(P[2]));if(x.length){const P=Math.min(...x)*.01;return{widths:A.filter(S=>S>=v[0]*P),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(C=>A.find(x=>x>=C)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:C,loader:x}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:S}=p(y,A,C),I=P.length-1;return{sizes:!C&&S==="w"?"100vw":C,srcSet:P.map(($,E)=>x({config:y,src:g,quality:_,width:$})+" "+(S==="w"?$:E+1)+S).join(", "),src:x({config:y,src:g,quality:_,width:P[I]})}}function m(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:C,className:x,quality:P,width:S,height:I,fill:$=!1,style:E,onLoad:N,onLoadingComplete:k,placeholder:B="empty",blurDataURL:w,fetchPriority:q,layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F,...ne}=h;const{imgConf:j,showAltText:T,blurComplete:D,defaultLoader:X}=y;let te,Z=j||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),ue=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:G,deviceSizes:ue}}let M=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=M;M=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(z){z==="fill"&&($=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[z];Ce&&(E={...E,...Ce});const Q=ue[z];Q&&!v&&(v=Q)}let Y="",ee=f(S),L=f(I),O,re;if(c(g)){const G=i(g)?g.default:g;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(O=G.blurWidth,re=G.blurHeight,w=w||G.blurDataURL,Y=G.src,!$){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const ue=ee/G.width;L=Math.round(G.height*ue)}else if(!ee&&L){const ue=L/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let ae=!_&&(C==="lazy"||typeof C>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,ae=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(q="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!A)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)A=!0;else if($){if(S)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(E!=null&&E.position&&E.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(E!=null&&E.width&&E.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(E!=null&&E.height&&E.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+S+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(C))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+C+'" should be one of '+o.map(String).join(",")+".");if(_&&C==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!w){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
1
+ "use strict";var Vu=Object.defineProperty;var Ku=(e,t,r)=>t in e?Vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var tr=(e,t,r)=>Ku(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),E=require("react"),Ye=require("idb-keyval"),ot=require("zustand"),zn=require("js-cookie"),v=require("@soma-vertical-web/core-components"),Te=require("./__vite-browser-external-B8mGO3z6.js"),Xu=require("jose"),et=require("@soma-vertical-web/foundations"),Mo=require("axios"),Ks=require("react-dom"),De=require("draft-js"),ko=require("@date-fns/tz"),so=E.createContext({}),Qu=({data:e,children:t})=>s.jsx(so.Provider,{value:{tags:e==null?void 0:e.config},children:t}),ao=()=>{const{tags:e}=E.useContext(so),t=E.useCallback(r=>{var a,c,u,l;const n=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),o=(l=(u=e==null?void 0:e.institucional)==null?void 0:u.items)==null?void 0:l.find(f=>{var p;return(p=r??[])==null?void 0:p.find(d=>d.id===f.key)}),i=e==null?void 0:e.flagPdp;return{commercial:n,institucional:o,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},Xs=({gridScrollBack:e})=>{E.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Qs=E.createContext({}),Yu=({children:e,gridScrollBack:t})=>{const r=E.useRef(null);return Xs({gridScrollBack:t}),s.jsx(Qs.Provider,{value:{sizesContainerRef:r},children:e})},Zu=()=>{const e=E.useContext(Qs);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Me=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),co=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Me(0):Me(e/100),uo=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},Gt=(e,t)=>{if(!e)return{};const[r,n]=e.split(t);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},Ys=(e,t="tamanho")=>{if(e.additionalProperty){const[r]=e.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===t?r.value:e.name:""}return e.name},Ju=(e,t)=>e.replace(t,"").trim(),el=e=>e.replace(/\//g,""),Zs=({items:e,NAME_SPLIT_SYMBOL:t})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(a,c)=>{var d;c&&(c.sellerId=a.sellerId,c.sellerName=a.sellerName,c.available=!0,c.isSellerDefault=a.sellerDefault);const{Price:u,ListPrice:l,PaymentOptions:{installmentOptions:f}}=a.commertialOffer;r.price=u,r.listPrice=l;const p=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(p){const{count:m,value:h}=p[p.length-1];r.installments={count:m,value:h/100}}};let o=!0;const i=e.reduce((a,c)=>{var f;const u={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??uo(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},l=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(u.available=!0,n(p,u)),p.commertialOffer.IsAvailable));return!u.isSellerDefault&&l.length>0&&(u.available=!0,n(l[0],{...u,sellerId:l[0].sellerId,sellerName:l[0].sellerName})),u.available===!1&&(o=!1),a.push(u),a},[]);return{...r,sizes:i,allSizesAvailable:o}},Js=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,lo=(e,t)=>{const r=e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===t);return r||e.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},ea=e=>e.find(t=>t.imageLabel==="10"),ta=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},ra=(e,t)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},na=({images:e,label:t})=>{const r=e.filter(n=>n.keywords===t.first||n.keywords===t.second||n.alternateName===t.first||n.alternateName===t.second);return r.length===0?[e[0]]:r},tl=e=>{const[t,r]=e.split("/").map(Number);if(Number.isNaN(t)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/t},oa=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},rl=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Js,formatPriceToCurrency:Me,freightParsePrice:co,getAspectRatio:tl,getColorAndSizeFromSkuName:Gt,getFirstImages:na,getProductNameWithoutSku:Ju,getSKUName:Ys,getSkuInfos:Zs,getThumbImage:ea,getValidOffer:lo,removeSlashes:el,resizingImg:ta,setVideoPlay:oa,splitNameAndSizeFromFullName:uo,updatedResizedImg:ra},Symbol.toStringTag,{value:"Module"})),He=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},be={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-"},productEvents:(e,t)=>{const{event:r,commonData:n,customData:o,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:u,sizes:l,price:f}=n,p={...r==="view_item"?{currency:be.configs.currency,value:f,grade_disponivel:u??(l?ia(l):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:be.configs.currency}:{}},d=At({data:n,customData:{...o,...a,...i},configs:be.configs});He({event:r,data:{...c,ecommerce:{...a,...p,items:[d]}}}),typeof t=="function"&&t(d,p)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},u)=>At({data:{...c},customData:{...r,index:u,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n},configs:be.configs}));He({event:"view_item_list",data:{...o,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:n,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:n,supportData:{selectedSkus:o,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:u}=e;let l=0;const f=r.map(p=>{var y,g,b,A,_,C,x,P,S;const d=o==null?void 0:o.find(I=>(p.productId??p.id)===I.productId);let m={...a,...c};if(d){const I=aa(),$=ca(I,d);$&&(m={...m,...$}),t==="add_to_cart"&&(a||c)&&Un({persistedData:I,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Un({persistedData:I,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}l+=p.price??((b=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:b.price)??0;const h=(d==null?void 0:d.size)??Gt((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=p.itemOffered)==null?void 0:A.skuName),be.configs.NAME_SPLIT_SYMBOL).size;return At({data:p,customData:{...n,...m??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=p.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??p.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((S=(P=(x=(C=d==null?void 0:d.offers)==null?void 0:C.offers)==null?void 0:x[0])==null?void 0:P.seller)==null?void 0:S.identifier)??p.seller},configs:be.configs})});He({event:t,data:{...u,ecommerce:{value:i??l,currency:be.configs.currency,items:f}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:n}=e,o={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:u})=>{var p;const l=((p=be.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:p.eventLabel)??c,f=(o==null?void 0:o[l])||[];l==="price_range"&&u.replace(":","-"),o[l]=[...f,u]}),Object.keys(o).forEach(c=>i[c]=o[c].join(", "))),He({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,p,d,m,h,y,g,b,A,_;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:n}=t;if(!n)return;const o=window.localStorage.getItem("persistedCartEventsData"),i=o?JSON.parse(o):{},a=n.items.map(C=>{const{promotionInfo:x,itemList:P}=i[C.id]??{};return At({data:{...C,price:C.price/100,listPrice:C.listPrice/100},customData:{...x,...P,item_sku:C.id??C.itemOffered.sku,quantity:C.quantity??1},configs:be.configs})}),c=(((f=n.totalizers.find(C=>C.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,u=(((p=n.totalizers.find(C=>C.name==="Total dos Descontos"))==null?void 0:p.value)??0)/100,l=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(m=n.marketingData)==null?void 0:m.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];He({event:"view_cart",data:{...r,ecommerce:{currency:be.configs.currency,value:c+u,total_discount:Math.abs(u),cep_preenchido:!!((b=(g=n.shippingData)==null?void 0:g.address)!=null&&b.postalCode),...l?{seller_coupon_name:l}:{},...((A=n.marketingData)==null?void 0:A.coupon)&&{sale_coupon_name:(_=n.marketingData)==null?void 0:_.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;He({event:t,data:{...r}})}},ia=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),nl=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(be.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},At=({data:e,customData:t,configs:r})=>({...ol(e,r==null?void 0:r.MAIN_IMAGE),...il(e),...sl(e),...al(e),...t}),sa=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},aa=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ca=(e,t)=>e==null?void 0:e[t],Un=({persistedData:e,type:t,sku:r,newData:n})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:n}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:n}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},ol=(e,t="1")=>{var i,a,c,u,l,f,p,d,m,h,y;const r=e.productReference??e.gtin??e.productRefId,n=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),o=n==null?void 0:n.find(g=>g.alternateName===t||g.imageLabel===t||g.keywords===t);return{item_id:e.productId??((u=e.isVariantOf)==null?void 0:u.productGroupID)??((l=e.isVariationOf)==null?void 0:l.productGroupID)??((p=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:p.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??uo((d=e.itemOffered)==null?void 0:d.name,be.configs.NAME_SPLIT_SYMBOL).name,item_brand:((m=e.brand)==null?void 0:m.brandName)??((h=e.brand)==null?void 0:h.name)??e.brand??((y=e.itemOffered)==null?void 0:y.brand.name),item_url:`${be.configs.storeUrl}${e.linkText}/p`,item_image:(o==null?void 0:o.url)??(o==null?void 0:o.imageUrl)}},Lo=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,il=e=>{var l,f;const{categories:t,categoriesIds:r}=e,n=t??((l=e.itemOffered)==null?void 0:l.categories),o=r??((f=e.itemOffered)==null?void 0:f.categoriesIds),i=Lo(n),a=Lo(o),c=i.slice(1,-1).split("/"),u=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(be.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:u[u.length-1],...u.length>1&&{item_parent_category_id:u[u.length-2]}}},sl=e=>{var o,i,a,c,u,l;const t=((o=e.itemOffered)==null?void 0:o.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((l=(u=e.items)==null?void 0:u[0])==null?void 0:l.name),{color:r,size:n}=Gt(t,be.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},al=e=>{var u,l;const{price:t,listPrice:r,installments:n}=e,o=t??((u=e.offers)==null?void 0:u.lowPrice)??0,i=r??((l=e.offers)==null?void 0:l.highPrice)??0,a=i?i-o:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:o??i},...i&&{list_price:i,discount:c},...n&&{installments:n==null?void 0:n.count,installment_value:n==null?void 0:n.value},item_currency:be.configs.currency}},ua=()=>{const[e,t]=sa(),[r,n]=e.split("-"),o=r.includes("shop")||r.includes("sale")?r:"";return{page_category:o&&n?n:"",page_departament:o,id:t,name:e}},cl=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:be,findDataInPersistedData:ca,getAvailablesSizes:ia,getCategories:nl,getPageCategoryAndDepartmentFromSlug:ua,getPersistedData:aa,getProductListInfoFromHead:sa,pushDatalayer:He,updatePersistedData:Un},Symbol.toStringTag,{value:"Module"})),la=E.createContext({}),ul=({children:e,evtFunctionsConfigs:t})=>{const r=E.useRef({}),n=E.useRef(null),o=E.useRef(null),i=E.useRef({}),a=E.useRef({trigger:!1,index:0}),c=({functionKey:f,data:p,callBack:d,timeout:m=100})=>{window.dataLayer||(window.dataLayer=[]),be.configs=t;try{typeof be[f]=="function"&&setTimeout(()=>{var h;p.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(p.itemList=o.current),be[f](p,d)},m)}catch(h){He({event:"error_event",data:{error_message:(h==null?void 0:h.message)??h}})}},u=({content:f})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:f.replace("::",":")}}})},l=({updatePromotionRef:f,promotion:p,index:d})=>{f&&(r.current={...p}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...p,...d!==void 0&&{index:d}}}}})};return s.jsx(la.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:u,handleSelectPromotionEvent:l},children:e})},ge=()=>E.useContext(la),da=E.createContext({}),ll=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var B,R;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:u,items:l,items:[{images:f,Videos:p}],description:d,["Composição"]:m="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=ao(),b=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:C,listPrice:x,sizes:P,allSizesAvailable:S}=Zs({items:l,NAME_SPLIT_SYMBOL:o}),I=ea(f),$=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:m}],w=((R=Gt((B=t.items)==null?void 0:B[0].name,o))==null?void 0:R.color)??t["Cores Filtráveis"][0]??"",N=()=>({commonData:{...t,sizes:P,price:C,listPrice:x,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),k=({sku:q,size:z})=>{const{commonData:U,customData:K}=N();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...z&&{item_variant2:z}}}})};return E.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:z}=N();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...z,index:a.current.index}}}),a.current.trigger=!1}k({})},[]),s.jsx(da.Provider,{value:{productData:t,productId:c,productName:u,productReference:h,tag:b,items:l,sizes:P,allSizesAvailable:S,installments:_,price:C,listPrice:x,thumbImage:I,images:f,video:p[0],descriptionContent:$,breadcrumbList:A,isKit:r,colorName:w,handleViewItemEvent:k},children:e})},fo=()=>{const e=E.useContext(da);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},dl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Oe=Promise.resolve(!1),Gn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Oe,addItem:()=>Oe,addSellerCode:()=>Oe,addMarketingData:()=>Oe,emptyCart:()=>{},removeItem:()=>Oe,setIsOpen:()=>{},shipping:()=>Oe,shippingUpdate:()=>Oe,toggleServiceToProduct:()=>Oe,updateItemQuantity:()=>Oe,insertProfileEmail:()=>Oe,setRecentlyAddedProducts:()=>{}},po=e=>e===0,fa=(e,t)=>{if(!e||e.length===0)return[];let r="";const n=[],o=e.match(/\d+/g)??[];for(const i of o){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,n.push(r))}return n},pa=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:u,imageUrl:l,name:f,listPrice:p,quantity:d,price:m,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:b,refId:A,seller:_,referenceId:C,offerings:x,productRefId:P,skuName:S,sellingPrice:I}=e;return{availability:r,bundleItems:o,referenceId:C,productRefId:P,id:i,ean:u,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:fa(g,y),categoriesIds:g,gtin:A,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:l}],name:f,isVariationOf:{name:f,productGroupID:b},sku:i,slug:c,skuName:S},listPrice:p,quantity:d,offerings:x,price:m,priceDefinition:h,sellingPrice:I,seller:_}},ma=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},ha=(e,t)=>{const r=e.find(n=>n.id===t);if(r){const n=e.map((o,i)=>{var a,c;return{id:((a=o.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=o.itemOffered)==null?void 0:c.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==t)}}return{updateItems:[],filterItems:[]}},ga=(e,t,r)=>e.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var i,a;return n.id===t?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}}),Wn=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),fl=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},pl=e=>{const t=e.reduce((o,i)=>{const a=po(i.price)?0:i.quantity;return o+a},0),r=e.reduce((o,i)=>o+i.price*i.quantity,0),n=e.reduce((o,i)=>o+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:n}},ml=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(po(r==null?void 0:r.price)?0:r.quantity),0):0,ya=(e,t)=>{const{items:r,itemMetadata:n,marketingData:o,messages:i,orderFormId:a,openTextField:c,paymentData:u,shippingData:l,totalizers:f}=e;return{id:a,itemMetadata:n,items:Array.isArray(r)?r.map(p=>pa(p,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:u,shippingData:l,totalizers:f}},_a=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},hl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Je=(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},gl=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},va=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),ba=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),xa=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ca=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Sa=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],Aa=async(e,t)=>e.then(r=>[...r??[],...t??[]]),we=async(e,t,r,n)=>{const{priority:o="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:ya(c,n)})},Ea=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),yl=e=>[...Array.isArray(e)?e:[e],"faststore"],wa=e=>{const t=e.get("utm_source")||Ge("utm_source"),r=e.get("utm_campaign")||Ge("utm_campaign"),n=e.get("utm_medium")||Ge("utm_medium"),o=e.get("utmi_cp")||Ge("utmi_cp"),i=e.get("utmi_pc")||Ge("utmi_pc"),a=e.get("utmi_p")||Ge("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},Ge=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},_l=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:dl,addItemOrder:ma,addNotification:Ea,createItemOrder:pa,fetchCartAPI:we,findItemIndex:Wn,findOptions:Sa,findTotalizerValue:fl,getCategories:fa,getCode:Je,getQuantity:Ca,getRemoveId:va,getSize:hl,getTotalItems:ml,getTotalizer:pl,getUrlParameter:Ge,getValue:ba,initialState:Gn,isGift:po,marketingTagsBuilder:yl,mergeOptionsPromise:Aa,mountMarketingData:wa,orderFormValues:ya,promiseDefault:Oe,removeQuantity:ha,updateItemSellerExternal:_a,updateOrderFormPromise:xa,updateQuantity:ga,wishlistArray:gl},Symbol.toStringTag,{value:"Module"})),vl=()=>{const e=async(m,h)=>we("/api/checkout/order-form/coupon",{body:{orderFormId:m,coupon:h}}),t=async(m,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await we("/api/checkout/order-form/seller-code",{body:{orderFormId:m,sellerCode:y}},!0);return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:y,sellerName:g instanceof Object&&"name"in g?g==null?void 0:g.name:""}}).then(b=>({...b,openTextField:{...(b==null?void 0:b.openTextField)??{},statusOk:(g==null?void 0:g.ativo)??!1}}))}else return we("/api/checkout/order-form/attachments",{body:{orderFormId:m,sellerCode:"",sellerName:""}})},r=async(m,h)=>we("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:m,marketingData:h}}),n=async(m,h,y)=>we("/api/checkout/order-form/items",{body:{orderFormId:m,orderItems:ma(h,y)}}),o=async(m,h,y,g)=>we("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:m,remove:g}}),i=async m=>we("/api/checkout/order-form/items/remove-all",{body:{orderFormId:m}}),a=async(m,h="low")=>we("/api/checkout/order-form",{priority:h,body:{orderFormId:m??""}}),c=async(m,h)=>we("/api/checkout/order-form/profile",{body:{orderFormId:m,email:h}}),u=async(m,h,y)=>{const g=ha(h,y);return we("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:m}})},l=async(m,h,y)=>we("/api/checkout/order-form/shipping",{body:{orderFormId:m,country:y,postalCode:h}}),f=async(m,h,y)=>we("/api/checkout/order-form/shipping/update",{body:{orderFormId:m,options:h,selectedAddresses:y}}),p=async(m,h,y,g)=>{const b=ga(h,y,g);return we("/api/checkout/order-form/items/update",{body:{orderFormId:m,orderItems:b}})};return{addCoupon:e,addItem:n,addSellerCode:t,addMarketingData:r,giftItem:o,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:u,shipping:l,shippingUpdate:f,updateItemQuantity:async(m,h,y,g,b)=>p(m,h,y,g).then(A=>A&&Array.isArray(A.items)?_a(A.items,y)?p(m,h,y,b):A:!1)}},Vn="soma::cart",ct="soma::options",tt=ot.create((e,t)=>{const r=vl(),n=async(o,i,a)=>{e({loading:!0});const c=await xa(o);if(typeof c!="boolean"){e({...c});const u=await Aa(Ye.get(ct),a);return Ye.set(ct,u),ba(c,i).finally(()=>e({loading:!1,options:u}))}return Oe};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ye.get(ct).then(l=>Sa(l,i.items));Ye.set(Vn,i),Ye.set(ct,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),u=c.get("utm_campaign")||c.get("utmi_campaign")||"";u&&n(()=>r.addSellerCode(t().id,u.toUpperCase()),"openTextField")}};return Ye.get(Vn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Gn,addCoupon:async i=>n(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{n(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>n(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>n(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{n(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await n(()=>r.removeItem(t().id,t().items,i),"items");return va(i,a)},shipping:async(i,a="BR")=>n(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>n(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>n(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:u,items:l}=t();return n(()=>{var f;return r.updateItemQuantity(u,l,i,a,((f=l.find(p=>p.id===i))==null?void 0:f.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>n(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return Gn}),bl=()=>tt(e=>e),Ra=ot.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>Ea(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ja=()=>Ra(e=>e.notifications),Pa=()=>Ra(e=>e.actions),xl=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:ct,KEY_INDEXED_STORE:Vn,useCartStore:tt,useGetCartStoreState:bl,useGetNotificationActions:Pa,useGetNotificationsStore:ja},Symbol.toStringTag,{value:"Module"})),Cl=6e3,Ia=E.createContext({}),Na=({children:e,...t})=>{const{items:r}=tt(),[n,o]=E.useState([]),i=E.useRef(null),a=E.useMemo(()=>Array.isArray(n)&&n.length>0?n.map(c=>r.find(u=>u.id===c.id)).filter(c=>c!==void 0):[],[r,n]);return E.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Cl))},[n]),s.jsx(Ia.Provider,{value:E.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},pt=()=>{const e=E.useContext(Ia);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Oa{constructor(){tr(this,"events",{});tr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(n=>n!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(n=>{this.prevData[t]=r,n(r)})}}const Ta=E.createContext({}),Sl=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=E.useState(!0),a=r==="/",c=E.useRef(new Oa),u=p=>p?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},l=u(a),f=E.useRef(l);return E.useEffect(()=>{var m;const p=((m=new URLSearchParams(window.location.search))==null?void 0:m.toString())??"";(p.includes("utm_")||p.includes("gclid"))&&(zn.get("lastMedias")||zn.set("lastMedias",`${p}`,{expires:1/24}));const d=()=>{const h=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,y=/iPad|iPhone|iPod/.test(h),g=window.innerWidth<1024||!!h.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);if(y){const b=document.querySelector('meta[name="viewport"]');b&&b.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")}o!==g&&i(g)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[o]),E.useEffect(()=>{const p=u(a);c.current.publish("header:change_variant",p.headerVariant),c.current.publish("header:change_position",p.position),f.current=p},[a]),s.jsx(Ta.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(Na,{children:e})})},Ae=()=>E.useContext(Ta),Ma=E.createContext({}),Al=({children:e,...t})=>s.jsx(Ma.Provider,{value:{...t},children:e}),je=()=>E.useContext(Ma),Ke=(e,t)=>ot.create(r=>{const n=()=>r({value:e});return t&&t instanceof Set&&t.add(n),{value:e,actions:{setValue:o=>r({value:o}),reset:n}}}),ft={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},mt=new Set,El=()=>{mt.forEach(e=>{e()})},ka=ot.create((e,t)=>{const r=()=>e({value:ft.category});return mt.add(r),{value:ft.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Wt=()=>ka(e=>e.value),Ue=()=>ka(e=>e.actions),La=Ke(ft.menuMobileIsOpen,mt),mo=()=>La(e=>e.value),Xe=()=>La(e=>e.actions),Da=Ke(ft.searchModalIsOpen,mt),wl=()=>Da(e=>e.value),ho=()=>Da(e=>e.actions),$a=Ke(ft.userMenuIsOpen,mt),Ba=()=>$a(e=>e.value),ht=()=>$a(e=>e.actions),Rl=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:El,useActionsHeaderCategory:Ue,useActionsMenuMobileIsOpen:Xe,useActionsSearchModalIsOpen:ho,useActionsUserMenuIsOpen:ht,useGetHeaderCategoryStore:Wt,useGetMenuMobileIsOpen:mo,useGetSearchModalIsOpen:wl,useGetUserMenuIsOpen:Ba},Symbol.toStringTag,{value:"Module"})),rt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},it=new Set,jl=()=>{it.forEach(e=>{e()})},qa=ot.create(e=>{const t=()=>e({value:rt.selectedSkuInfo});return it.add(t),{value:rt.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),Pl=()=>qa(e=>e.value),Il=()=>qa(e=>e.actions),Ha=Ke(rt.openLetMeKnow,it),Nl=()=>Ha(e=>e.value),Ol=()=>Ha(e=>e.actions),Fa=Ke(rt.showNotify,it),Tl=()=>Fa(e=>e.value),Ml=()=>Fa(e=>e.actions),za=Ke(rt.showBottomNavigation,it),kl=()=>za(e=>e.value),Ll=()=>za(e=>e.actions),Ua=Ke(rt.openMeasurements,it),Dl=()=>Ua(e=>e.value),$l=()=>Ua(e=>e.actions),Bl=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:jl,useActionsPDPOpenLetMeKnow:Ol,useActionsPDPOpenMeasurements:$l,useActionsPDPSelectedSkuInfo:Il,useActionsPDPShowBottomNavigation:Ll,useActionsPDPShowNotify:Ml,useGetPDPOpenLetMeKnow:Nl,useGetPDPOpenMeasurements:Dl,useGetPDPSelectedSkuInfo:Pl,useGetPDPShowBottomNavigation:kl,useGetPDPShowNotify:Tl},Symbol.toStringTag,{value:"Module"})),Ga=E.createContext({}),ql=({children:e,headerData:t,...r})=>{var f,p;const n=E.useRef(null),o=E.useRef(null),i=E.useRef(null),a=E.useRef(null),c=E.useRef(null),{mediatorRef:u,currentHeaderConfigsRef:l}=Ae();return(f=u.current)==null||f.subscribe("header:change_variant",d=>{var b,A,_;if(d&&l.current&&(l.current.bannerVariant=d),!n.current)return;const h=document.body.scrollTop>0,y=n.current.getAttribute("data-interactiveVariant"),g=h?y:d??((b=l.current)==null?void 0:b.bannerVariant)??"default";g!==((A=l.current)==null?void 0:A.headerVariant)&&(n.current.setAttribute("data-bottomdivider",String(h)),n.current.setAttribute("data-variant",String(g)),(_=u.current)==null||_.publish("herobanner:change_controllers_variant",g),l.current&&(l.current.headerVariant=g))}),(p=u.current)==null||p.subscribe("header:change_position",d=>{n.current&&(n.current.style.position=d)}),E.useEffect(()=>{const d=new AbortController,m=v.helpers.throttle(()=>{var y;return(y=u.current)==null?void 0:y.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:d.signal});const h=y=>{var b;(b=y.target.closest("a"))==null||b.blur()};return n.current&&(n.current.addEventListener("click",h,{signal:d.signal}),n.current.addEventListener("touchend",h,{signal:d.signal})),()=>{d.abort()}},[]),s.jsx(Ga.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},ve=()=>E.useContext(Ga),Wa=E.createContext({}),Va=({children:e})=>{const t=E.useRef(null),r=E.useRef(null),n=mo(),o=E.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 E.useEffect(()=>{var i;if(n)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[n]),E.useEffect(()=>{r.current=document.body},[]),s.jsx(Wa.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},gt=()=>E.useContext(Wa),Hl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Fl=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Hl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},Ka=E.createContext({}),Xa=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=E.useState(!1),a=E.useRef(null),[c,u]=E.useState(!1),[l,f]=E.useState({left:0,top:0}),p=E.useCallback(()=>{u(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),u(!1)},t))},[u,i,t]);return E.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),m=window.document.querySelector("#add-to-cart--tooltip");if(d&&m){const{left:h,top:y}=Fl(m,d,r??0);f({left:h,top:y}),u(!1)}},[r,o]),s.jsx(Ka.Provider,{value:E.useMemo(()=>({...n,...l,handleClose:p,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:u}),[n,l,p,c,o,i,u]),children:e})},Qe=()=>{const e=E.useContext(Ka);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Qa=E.createContext({}),zl=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=tt(),{setRecentlyAdded:o}=pt(),i=E.useRef(""),a=ja(),{addNotification:c,removeNotification:u}=Pa(),{addCoupon:l,addItem:f,addSellerCode:p,addMarketingData:d,emptyCart:m,isOpen:h,removeItem:y,shipping:g,shippingUpdate:b,toggleServiceToProduct:A,updateItemQuantity:_}=n;E.useEffect(()=>{const R=zn.get("lastMedias");if(n.id&&R&&i.current!==R){i.current=R;const q=new URLSearchParams(R),z=wa(q);d(z)}},[n,d]);const C=E.useCallback(async(R,q)=>(q==="coupon"?l(R):p(R)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,F=String(W??"").split(" - ");return Je((F==null?void 0:F[0])??"",R,!!K)}return Je(String(U.coupon),R,!0)}return Je("","")}).catch(()=>Promise.resolve({code:400})),[l,p]),x=E.useCallback((R,q,z)=>{const{id:U}=R;_(U,q,z)},[_]),P=E.useCallback((R,q,z=!1)=>{if(!R)return;const{id:U}=R,K=Wn(n.items,U);if(K!==-1&&!z){const W=Number(n.items[K].quantity),F=n.items[K]?W+1:1;x(R,F,q)}else f({id:U,quantity:(R==null?void 0:R.quantity)??1,seller:R.seller});h||o(W=>[...W,R])},[f,x,n.items,h,o]),S=E.useCallback((R,q)=>{if(!R||!Array.isArray(R))return;o(U=>[...U,...R]);const z=R.map(U=>{const{id:K,quantity:W,seller:F}=U,ne=Wn(n.items,K),j=Ca(W??1,ne);return{id:K,quantity:j,seller:F}});f(z,q)},[f,n.items,o]),I=E.useCallback(async(R,q,z)=>R?y(R).then(()=>(c(q??`${t}`,z),Je(R,R))):Promise.resolve(Je("","Product id required")),[c,y]),$=E.useCallback(()=>{n.items.length>0&&m()},[m,n.items]),w=E.useCallback((R,q="BRA")=>g(R,q),[g]),N=E.useCallback(R=>{R&&b(R)},[b]),k=E.useCallback(async(R,q,z)=>{const U=n.items.findIndex(W=>W.id===R);return n.items[U]&&U>=0?A(q,U,z??!1):!1},[n.items,A]),B=E.useCallback(async(R,q)=>_(R,q).then(z=>{if(Array.isArray(z)){const U=z.find(K=>K.id===R);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(Qa.Provider,{value:E.useMemo(()=>({...r,addCouponSeller:C,addToCart:P,addItemsToCart:S,cartStore:n,notifications:a,clearCart:$,addNotification:c,isOpen:n.isOpen,removeNotification:u,removeToCart:I,setIsOpen:n.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:k,updateItemQuantity:B}),[r,C,P,S,a,$,c,n,u,I,w,N,k,B]),children:e})},Be=()=>{const e=E.useContext(Qa);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},Ya=E.createContext({}),go=({children:e,fetch:t})=>{const r=E.useRef(!0),[n,o]=E.useState(null),[i,a]=E.useState(!1);return E.useEffect(()=>{(async()=>{r.current=!0;try{const u=await t();if(!u.ok)throw new Error("Failed to fetch data");const l=await u.json();o(l.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),s.jsx(Ya.Provider,{value:E.useMemo(()=>({data:n,isLoading:r.current??!1,isError:i}),[n,i,r]),children:e})},yo=()=>{const e=E.useContext(Ya);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},Za=E.createContext({}),Ja=({children:e,sort:t,state:r,count:n,collectionId:o,CONSTANTS:i})=>{const a=E.useMemo(()=>{var c;return o?[{key:"productclusterids",value:o.toString()}]:(c=r.base)!=null&&c.length?r.base.slice(1).split("/").map((u,l)=>({key:`category-${l+1}`,value:u})):[]},[r.base,o]);return s.jsx(Za.Provider,{value:E.useMemo(()=>({state:{...r,facets:[...a,...r.facets??[]]},sort:t,count:n??i.ITEMS_PER_PAGE}),[a,n,t,r]),children:e})},_o=()=>{const e=E.useContext(Za);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},ec={default_option:"score:desc"},Ul={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Gl="Imagem do produto",Wl="Sair",Vl=e=>e.exit,Kl=({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"}],Xl=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Ql=e=>"Seja bem vindo!",tc=E.createContext({}),Yl=({children:e,searchParams:t,selectedFacets:r})=>{const{data:n,...o}=yo(),{router:i}=je(),a=E.useCallback((p,d)=>{if(d){if(p.key.toLocaleLowerCase()==="price"){const m=d.getAll("facets");d.delete("facets"),m.forEach(h=>{const[y]=h.split("/");y!==p.key&&d.append("facets",h)})}d.set("page","1"),d.append("facets",`${p.key}/${p.value}`),i.push(`?${d.toString()}`)}},[i]),c=E.useCallback(()=>{const p=new URLSearchParams;p.set("sort",ec.default_option),p.set("page","1"),i.push(`?${p.toString()}`)},[i]),u=E.useCallback((p,d)=>{if(!d||!d.has&&!d.has("facets"))return;const m=d.getAll("facets");d.delete("facets"),d.set("page","1"),m.forEach(h=>{const[y,g]=h.split("/");(y!==p.key||g!==p.value)&&d.append("facets",h)}),i.push(`?${d.toString()}`)},[i]),l=E.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));for(const[,m]of d.entries()){const[h,y]=m.split("/");if(h===p.key&&y===p.value)return u(p,d)}return a(p,d)},[a,u,t]),f=E.useCallback(p=>{const d=new URLSearchParams(Te.convertSearchParams(t));d.set("sort",p.replace("_",":")),i.push(`?${d.toString()}`)},[i,t]);return s.jsx(tc.Provider,{value:E.useMemo(()=>({...o,breadcrumb:n&&"breadcrumb"in n?n==null?void 0:n.breadcrumb:[],deleteAllFacets:c,facets:n&&"facets"in n?n==null?void 0:n.facets:[],selectedFacets:r,onToggleFacet:l,onSort:f,searchParams:t}),[n,c,f,l,o,r,t]),children:e})},Zl=({children:e,searchParams:t,forceUpdate:r})=>{const{state:n}=_o();return s.jsx(go,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...n,forceUpdate:r}),priority:"low"}),children:s.jsx(Yl,{selectedFacets:(n==null?void 0:n.facets)??[],searchParams:t,children:e})})},Jl=()=>{const e=E.useContext(tc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},rc=E.createContext({}),ed=({children:e})=>{const{data:t,...r}=yo(),[n,o]=E.useState(0),{sendDataLayerEvent:i}=ge();return E.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)&&o(a)}},[t,i,o]),s.jsx(rc.Provider,{value:E.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:Ul,total:n}),[t,r,n]),children:e})},td=({children:e,query:t,state:r,selectedFacets:n,forceUpdate:o})=>s.jsx(go,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:o,facets:n??[]})}),children:s.jsx(ed,{state:r,children:e})}),rd=()=>{const e=E.useContext(rc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},nc=E.createContext({}),nd=({children:e,term:t})=>{const[r,n]=E.useState([]),[o,i]=E.useState(!1);return E.useEffect(()=>{if(!t){n([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:u}=await c.json();n((u==null?void 0:u.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),s.jsx(nc.Provider,{value:E.useMemo(()=>({suggestedTerms:r,loading:o,setLoading:i}),[r,o]),children:e})},od=({children:e,...t})=>s.jsx(nd,{...t,children:e}),id=()=>{const e=E.useContext(nc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},oc=E.createContext({searches:[],isLoading:!1,error:null}),sd=({children:e})=>{const[t,r]=E.useState([]),[n,o]=E.useState(!0),[i,a]=E.useState(null);return E.useEffect(()=>{(async()=>{try{o(!0);const u=await fetch("/api/search/topSearch");if(!u.ok)throw new Error(`Erro ao buscar os dados: ${u.status}`);const l=await u.json();r(l.data.searches||[])}catch(u){a(u instanceof Error?u.message:"Erro desconhecido")}finally{o(!1)}})()},[]),s.jsx(oc.Provider,{value:E.useMemo(()=>({searches:t,isLoading:n,error:i}),[t,n,i]),children:e})},ad=()=>{const e=E.useContext(oc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},ic=E.createContext({}),cd=({children:e,slug:t,searchParams:r,collectionId:n,itemsPerPage:o=24})=>{const{pathname:i}=je(),[a,c]=E.useState(!1),u=E.useMemo(()=>{const f=new URL(i,"http://localhost"),p=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],d=(r==null?void 0:r.page)??"1",m=(r==null?void 0:r.sort)??(n?"":ec.default_option);return f.searchParams.set("page",String(d)),f.searchParams.set("sort",String(m)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",p.join(",")),f)},[n,i,r,t]),l=E.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return Te.parseSearchState(u,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return Te.parseSearchState(u,f)},[u,r]);return s.jsx(ic.Provider,{value:E.useMemo(()=>({openFilters:a,setOpenFilters:c}),[a,c]),children:s.jsx(Ja,{CONSTANTS:{ITEMS_PER_PAGE:o},state:E.useMemo(()=>({...l}),[l]),collectionId:n,children:e})})},ud=()=>{const e=E.useContext(ic);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},Kn=(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((o,i)=>Kn(o,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Kn(e[o],t[o]))},ld=(e,t,r="page")=>Object.keys(t).some(n=>n===r?!1:!Kn(t[n],e[n])),Do=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},dd=()=>({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}}}),fd=(e,t,r,n=24)=>{const o=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:o,placedBanners:i};const a=t*n*r;for(const c of e){let u=Number(c.position_grid),l=!1;for(;u<a;){const f=u%r;if(f+c.columns>r){u+=r-f;continue}if(!Array.from({length:c.columns}).some((m,h)=>o.has(u+h))){for(let m=0;m<c.columns;m++)o.add(u+m);i.push(u),l=!0;break}u++}l||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:o,placedBanners:i}},$o=(e,t,r,n=24)=>{const{placedBanners:o,taken:i}=fd(e??[],t,r),a=[];let c=0;try{for(;a.length<t*n;)i.has(c)||a.push(c),c++;return{banners:o,products:a}}catch(u){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,u)}return{banners:[],products:a}},rr=(e,t,r=24)=>Array.from({length:e},(n,o)=>{const i=o+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:sc(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>dd())}}),pd=(e,t)=>[...e,{loading:!1,page:t,pagination:sc(),products:[]}],sc=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),md=50,hd=ot.create((e,t)=>{const r=a=>Math.min(a,md),n=async(a,c)=>{const u=r(a.page);try{const l=await Do({...a,page:u});o(u,f=>c?c(f,l):{...f,...l})}catch(l){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${u}]: ${l}`),o(u,f=>({...f,loading:!1}))}},o=(a,c)=>{e({load:!0,pages:t().pages.map(u=>u.page===a?c(u):u)})},i=async(a,c)=>{await n(a,(u,l)=>(typeof c=="function"&&c(l),{...u,...l,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,u,l)=>{var p,d,m;const f=r(Number(a==null?void 0:a.page));e({...c,pages:rr(f,void 0,l)});try{const h=await Do({...a,page:f});if(h){if(!h.products.length&&((p=h==null?void 0:h.pagination)==null?void 0:p.total)<f){i({...a,page:(d=h==null?void 0:h.pagination)==null?void 0:d.total},u),e({pages:rr((m=h==null?void 0:h.pagination)==null?void 0:m.total)});return}typeof u=="function"&&u(h),e({load:!0,pages:rr(f,h),total:Number(h.pagination.count)})}}catch(h){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${f} ${h}`)}},addPage:(a,c,u)=>{const{pages:l}=t(),f=r(a==null?void 0:a.page);l.some(p=>p.page===f)||(e({...c,pages:pd(l,f)}),i(a,u))},updateProducts:(a,c)=>{const u=t().pages.find(l=>l.page===r(a==null?void 0:a.page));u!=null&&u.loading||i(a,c)}}}),ac=E.createContext({}),gd=({banners:e,children:t,itemsPerPage:r=24,searchParams:n})=>{const{router:o}=je(),{sendDataLayerEvent:i}=ge(),{isMobile:a}=Ae(),{state:c}=_o(),{addPage:u,createPages:l,updateProducts:f,...p}=hd(),d=a?8:16,m=a?2:4,h=E.useRef(!1),y=E.useRef(c),g=E.useCallback(C=>{C&&"pagination"in C&&i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:C.products}}})},[i]),b=E.useCallback(C=>{if(C.pagination.nextPage===!0){const x=C.page+1,P=$o(e,x,m,r);u({...c,page:x},P,g)}},[u,e,g,m,r,c]),A=E.useCallback(C=>{C.loading===!1&&f({...c,page:C.page},g)},[g,f,c]),_=E.useCallback(C=>{const x=new URLSearchParams(n);C.page!==Number(x.get("page")??1)&&(x.set("page",String(C.page)),o.replace(`?${x.toString()}`,{scroll:!1}))},[o,n]);return E.useEffect(()=>{const C=!h.current,x=ld(y.current,c),P=$o(e,c.page,m);C?l(c,P,g,r):x&&(l(c,P,g,r),y.current=c),h.current=!0},[e,l,g,m,r,c]),s.jsx(ac.Provider,{value:E.useMemo(()=>({...p,addPage:u,addNewPage:b,createPages:l,gap:d,columns:m,updatePage:A,updateProducts:f,updateParamPage:_}),[u,b,l,d,m,p,A,f,_]),children:t})},yd=()=>{const e=E.useContext(ac);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function cc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const n of r){const[o,i]=n.trim().split("=");if(o===e)return i}}function vo(e,t,r={}){const o={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in o)o[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${o[a].toUTCString()}`:typeof o[a]=="boolean"?i+=`; ${o[a]?"true":"false"}`:i+=`=${o[a]}`);window.document.cookie=i}const _d=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=bo(),{cartStore:r}=Be();return E.useEffect(()=>{if(!t)return;(async()=>{const{userId:o,email:i,firstName:a,lastName:c,phone:u,homePhone:l,postalCode:f,street:p,number:d,city:m,gender:h}=t,y=new TextEncoder().encode(o),g=await crypto.subtle.digest("SHA-256",y),A=Array.from(new Uint8Array(g)).map(_=>_.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:A,email:i,first_name:a,last_name:c,phone:u||l,zip:f,street:p,street_number:d,city:m,gender:h,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},uc=E.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),vd=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,n]=E.useState({amount:null,boxes:null,toExpire:null,loading:!0}),o=E.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:u,...l}=c;n({amount:u==null?void 0:u.amount,boxes:u==null?void 0:u.boxes,toExpire:u==null?void 0:u.toExpire,user:l,loading:!1})})}catch(c){console.error("my credits request",c),n({...r,loading:!1})}},[n]),i=E.useCallback(()=>{vo(t),o()},[o]),a=E.useCallback(()=>r.boxes?r.boxes.reduce((c,u)=>u.gift_card_box.refid==="C1643"?(c.cashback+=u.amount,c):(c.credits+=u.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return E.useEffect(()=>{o()},[o]),s.jsxs(uc.Provider,{value:E.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[s.jsx(_d,{}),e]})},bo=()=>{const e=E.useContext(uc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},bd={contexts:{addToCart:{hook:Qe,provider:Xa},cart:{hook:Be,provider:zl},cms:{FlagsAndTags:{context:so,hook:ao,provider:Qu}},events:{hook:ge,provider:ul},global:{hook:Ae,provider:Sl,mediator:Oa},header:{hook:ve,provider:ql},menuMobile:{hook:gt,provider:Va},next:{hook:je,provider:Al},pdp:{provider:Yu,hook:Zu},plp:{provider:cd,hook:ud},plpInfinite:{provider:gd,hook:yd},pdpdata:{hook:fo,provider:ll},searchFacets:{hook:Jl,provider:Zl},searchProducts:{hook:rd,provider:td},searchRoot:{hook:yo,provider:go},searchSearch:{hook:_o,provider:Ja},searchSuggestedTerms:{hook:id,provider:od},searchTopSearchs:{hook:ad,provider:sd},session:{hook:bo,provider:vd},ui:{hook:pt,provider:Na}},hooks:{useBackPDC:Xs},stores:{cart:xl,header:Rl,pdp:Bl}},xd=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function Cd(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function Sd(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const lc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ut=(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),Ad=e=>{const t=Xu.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},Ed=["name","email","phone","date","cpf","cep"],Bo={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}$/},wd=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!Bo[e])return!0;const n=t.trim();return Bo[e].test(n)},Rd=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Gl},jd=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:Ed,debounce:Sd,getAltTextFromUrl:Rd,getAuthenticatedUser:Ad,getCookie:cc,getDaysHoursMinutesSeconds:ut,getMilliSeconds:lc,removeAccentsAndReplaceSpaces:xd,setCookie:vo,throttle:Cd,validateInput:wd},Symbol.toStringTag,{value:"Module"})),Pd={cart:_l,events:cl,product:rl,utils:jd},xo={helpers:Pd},Ie={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},dc=({brand:e,className:t,name:r,...n})=>s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--name"],t),children:[s.jsx(v.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:s.jsx("p",{className:"typography-style-body-md",children:r})})})]});dc.displayName="AddToCart.Card.Name";const fc=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Me(r/100),c=Me(t/100);return s.jsx("div",{...i,className:v.helpers.classNameConcat(Ie["add-to-cart--card--price-quantity"],e),children:s.jsx(v.ProductInfo.Root,{size:"small",layout:"vertical",children:s.jsx(v.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:s.jsx(v.ProductInfo.ValuesWrapper,{children:r!==t?s.jsxs(s.Fragment,{children:[s.jsx(v.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),s.jsx(v.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):s.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};fc.displayName="AddToCart.Card.PriceQuantity";const Id="_skeleton_12b79_1",Nd={skeleton:Id},Od=({style:e})=>s.jsx("div",{style:e,className:Nd.skeleton}),Td="_image_lypfr_1",Md={image:Td},kd=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=je();return s.jsx(o,{quality:90,...n,alt:e??"",className:v.helpers.classNameConcat(Md.image,t),"data-object-fit":r??"cover"})},Ld=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),$e={Image:kd,Video:Ld},pc=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Qe(),[c,u]=E.useState(n??"");return E.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(l=>l.json()).then(l=>{const f=l.data[0].items[0];if(f){const p=f.images.find(d=>i.includes(d.imageLabel));p!=null&&p.imageUrl?u(p.imageUrl):u(f.images[0].imageUrl)}}).catch(l=>{console.error(l)})},[c,t]),s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card--style-size"],e),children:[s.jsx(v.ToggleStyle.Wrapper,{size:"x-small",style:a,children:s.jsx(v.ToggleStyle.Texture,{children:c?s.jsx($e.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(Od,{})})}),s.jsx(v.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&s.jsxs(v.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[s.jsx(v.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),s.jsx(v.ToggleSize.Text,{children:r})]})]})};pc.displayName="AddToCart.Card.StyleSize";const{helpers:Dd}=xo,mc=({className:e,item:t,texture:r,...n})=>{const{itemOffered:{name:o,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:u,price:l,sellingPrice:f}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:p}}=Qe(),{size:d}=Dd.product.getColorAndSizeFromSkuName(a??o,p);return s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--card--content"],e),children:[s.jsx(dc,{brand:i.name,name:o}),s.jsx(fc,{price:l,listPrice:f,quantity:u,productId:t.id}),s.jsx(pc,{size:d,texture:r,productGroupID:c})]})};mc.displayName="AddToCart.Card.Content";const hc=({image:e,thumbnail:t=!1})=>s.jsx($e.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});hc.displayName="AddToCart.Card";const gc=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=ra(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Ie["add-to-cart--card"],e),children:[s.jsx(hc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(mc,{item:t,texture:r})]})};gc.displayName="AddToCart.Card";const yc=({className:e,children:t,title:r,...n})=>s.jsxs("div",{...n,className:v.helpers.classNameConcat(Ie["add-to-cart--content"],e),children:[s.jsx("div",{className:Ie["add-to-cart--content--title"],children:r&&s.jsx("h2",{children:r})}),t,s.jsx(Ve.Footer,{})]});yc.displayName="AddToCart.Layout.Content";const _c=({className:e,...t})=>{var m,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Qe(),{cartStore:{totalizers:i},setIsOpen:a}=Be(),c=(m=i.find(y=>y.id==="Discounts"))==null?void 0:m.value,u=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,l=i.find(y=>y.id==="Shipping"),p=(u-Math.abs(c??0)+((l==null?void 0:l.value)??0))/100,d=Me(p??0);return s.jsxs("div",{...t,className:v.helpers.classNameConcat(Ie["add-to-cart--footer"],e),children:[s.jsxs("div",{className:Ie["add-to-cart--footer--total"],children:[s.jsx("span",{children:"Subtotal:"}),s.jsx("span",{children:d})]}),s.jsx(v.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:o.footer.bag}),r?s.jsx(v.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:o.footer.keep_buying}):s.jsx(v.Button,{onClick:()=>n(),size:"medium",variant:"tertiary",children:o.footer.keep_buying})]})};_c.displayName="AddToCart.Layout.Footer";const vc=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=Be(),{recentlyAddedProducts:i}=pt(),a=i.length>3?4:i.length;return s.jsxs("div",{...n,className:Ie["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,u)=>u<a).map(c=>{var l;const u=(l=o==null?void 0:o.find(f=>f.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:l.texture;return s.jsx(Ve.Card,{item:c,thumbnail:r,texture:u},c.itemOffered.sku)}),e]})};vc.displayName="AddToCart.Layout.Items";const bc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Qe(),{isMobile:o}=Ae();return s.jsxs(v.Modal.Root,{"data-modal":"add-to-cart--modal",className:Ie["add-to-cart__modal"],isMobile:o??!1,isOpen:r,setIsOpen:n,variant:"sideBottom",style:{zIndex:t.modal},children:[s.jsx(v.Modal.Header,{navigation:"top",children:s.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0})}),s.jsx(v.Modal.Body,{children:e})]})};bc.displayName="AddToCart.Modal";const $d=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Qe(),o=E.useRef(t);return E.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},xc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=pt(),{isMobile:i}=Ae(),a=o.length>3?4:o.length;return s.jsx(Xa,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx($d,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(Ve.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(Ve.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};xc.displayName="AddToCart.Root";const Cc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:u,top:l}=Qe();return s.jsx(v.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),id:"add-to-cart--tooltip",className:Ie["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:u,left:i,size:"medium",position:"top",top:l,children:s.jsx("div",{className:Ie["add-to-cart--tooltip"],ref:c,children:e})})};Cc.displayName="AddToCart.Tooltip";const Ve={Card:gc,Content:yc,Footer:_c,Items:vc,Modal:bc,Root:xc,Tooltip:Cc},Co=({title:e,...t})=>{const{recentlyAddedProducts:r}=pt(),{isMobile:n}=Ae(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(Ve.Root,{isMobile:n,count:r.length,component:s.jsx(Ve.Content,{title:e,children:s.jsx(Ve.Items,{thumbnail:a,children:i&&s.jsx(v.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};Co.displayName="AddToCart";const qo={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Bd=({children:e,className:t,adornment:r,iconPosition:n,scrollToOptions:o,style:i,...a})=>{const c={top:(o==null?void 0:o.top)??0,left:(o==null?void 0:o.left)??0,behavior:(o==null?void 0:o.behavior)??"smooth"},l=n&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[n]}:{},f=()=>{window&&window.document.body.scrollTo({...c})};return s.jsx(v.Card,{...a,shadow:!0,padding:"small",className:v.helpers.classNameConcat(qo["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:qo["backtotop-btn"],onClick:f,style:{...l},"data-orientation":n,children:[r,e]})})};var Sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Xn={exports:{}},Re={};Re._=Re._interop_require_default=Hd;function Hd(e){return e&&e.__esModule?e:{default:e}}var Et={exports:{}},nr={},Ho;function Ac(){return Ho||(Ho=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(a){const c={};return a.forEach((u,l)=>{typeof c[l]>"u"?c[l]=u:Array.isArray(c[l])?c[l].push(u):c[l]=[c[l],u]}),c}function n(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function o(a){const c=new URLSearchParams;return Object.entries(a).forEach(u=>{let[l,f]=u;Array.isArray(f)?f.forEach(p=>c.append(l,n(p))):c.set(l,n(f))}),c}function i(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];return u.forEach(f=>{Array.from(f.keys()).forEach(p=>a.delete(p)),f.forEach((p,d)=>a.append(d,p))}),a}}(nr)),nr}var or={},nt={};function Ec(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ec=function(n){return n?r:t})(e)}nt._=nt._interop_require_wildcard=Fd;function Fd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ec(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var Fo;function wc(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,l){for(var f in l)Object.defineProperty(u,f,{enumerable:!0,get:l[f]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const n=nt._(Ac()),o=/https?|ftp|gopher|file/;function i(u){let{auth:l,hostname:f}=u,p=u.protocol||"",d=u.pathname||"",m=u.hash||"",h=u.query||"",y=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",u.host?y=l+u.host:f&&(y=l+(~f.indexOf(":")?"["+f+"]":f),u.port&&(y+=":"+u.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let g=u.search||h&&"?"+h||"";return p&&!p.endsWith(":")&&(p+=":"),u.slashes||(!p||o.test(p))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),m&&m[0]!=="#"&&(m="#"+m),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+p+y+d+g+m}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(u){return process.env.NODE_ENV==="development"&&u!==null&&typeof u=="object"&&Object.keys(u).forEach(l=>{a.includes(l)||console.warn("Unknown key passed via urlObject into url.format: "+l)}),i(u)}}(or)),or}var ir={},zo;function zd(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(ir)),ir}var sr={},Uo;function Kt(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,x){for(var P in x)Object.defineProperty(C,P,{enumerable:!0,get:x[P]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return u},isResSent:function(){return l},normalizeRepeatedSlashes:function(){return f},loadGetInitialProps:function(){return p},SP:function(){return d},ST:function(){return m},DecodeError:function(){return h},NormalizeError:function(){return y},PageNotFoundError:function(){return g},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return A},stringifyError:function(){return _}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(C){let x=!1,P;return function(){for(var S=arguments.length,I=new Array(S),$=0;$<S;$++)I[$]=arguments[$];return x||(x=!0,P=C(...I)),P}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=C=>o.test(C);function a(){const{protocol:C,hostname:x,port:P}=window.location;return C+"//"+x+(P?":"+P:"")}function c(){const{href:C}=window.location,x=a();return C.substring(x.length)}function u(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function l(C){return C.finished||C.headersSent}function f(C){const x=C.split("?");return x[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(x[1]?"?"+x.slice(1).join("?"):"")}async function p(C,x){if(process.env.NODE_ENV!=="production"){var P;if((P=C.prototype)!=null&&P.getInitialProps){const $='"'+u(C)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error($)}}const S=x.res||x.ctx&&x.ctx.res;if(!C.getInitialProps)return x.ctx&&x.Component?{pageProps:await p(x.Component,x.ctx)}:{};const I=await C.getInitialProps(x);if(S&&l(S))return I;if(!I){const $='"'+u(C)+'.getInitialProps()" should resolve to an object. But found "'+I+'" instead.';throw new Error($)}return process.env.NODE_ENV!=="production"&&Object.keys(I).length===0&&!x.ctx&&console.warn(""+u(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),I}const d=typeof performance<"u",m=d&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(x){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+x}}class b extends Error{constructor(x,P){super(),this.message="Failed to load static file for page: "+x+" "+P}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(C){return JSON.stringify({message:C.message,stack:C.stack})}}(sr)),sr}var wt={exports:{}},ar={},Go;function Rc(){return Go||(Go=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(/\/$/,"")||"/"}}(ar)),ar}var cr={},Wo;function So(){return Wo||(Wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(cr)),cr}var Vo;function Xt(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Rc(),n=So(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:u}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+u:a.endsWith("/")?""+a+c+u:a+"/"+c+u:""+(0,r.removeTrailingSlash)(a)+c+u};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports}var ur={},Rt={exports:{}},lr={},Ko;function jc(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=So();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(lr)),lr}var Xo;function Ud(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=jc(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rt,Rt.exports)),Rt.exports}var Qo;function Pc(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Kt(),r=Ud();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(o,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(ur)),ur}var dr={},fr={},Yo;function Gd(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+o+c+"/")).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const c=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(o,i,a){if(o.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=o[0];if(c.startsWith("[")&&c.endsWith("]")){let f=function(p,d){if(p!==null&&p!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+d+"').");i.forEach(m=>{if(m===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},u=c.slice(1,-1),l=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),l=!0),u.startsWith("...")&&(u=u.substring(3),a=!0),u.startsWith("[")||u.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+u+"').");if(a)if(l){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');f(this.optionalRestSlugName,u),this.optionalRestSlugName=u,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 "'+o[0]+'").');f(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');f(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(o.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(i=>o.insert(i)),o.smoosh()}}(fr)),fr}var pr={},Zo;function Wd(){return Zo||(Zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(n){return t.test(n)}}(pr)),pr}var Jo;function Vd(){return Jo||(Jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Gd(),n=Wd()}(dr)),dr}var mr={},hr={},ei;function Kd(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Kt();function r(n){let{re:o,groups:i}=n;return a=>{const c=o.exec(a);if(!c)return!1;const u=f=>{try{return decodeURIComponent(f)}catch{throw new t.DecodeError("failed to decode param")}},l={};return Object.keys(i).forEach(f=>{const p=i[f],d=c[p.pos];d!==void 0&&(l[f]=~d.indexOf("/")?d.split("/").map(m=>u(m)):p.repeat?[u(d)]:u(d))}),l}}}(hr)),hr}var gr={},yr={},_r={},vr={},ti;function Xd(){return ti||(ti=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}}(vr)),vr}var br={},ri;function Qd(){return ri||(ri=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(")")}}(br)),br}var ni;function Yd(){return ni||(ni=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{normalizeAppPath:function(){return o},normalizeRscPath:function(){return i}});const r=Xd(),n=Qd();function o(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,u,l,f)=>!u||(0,n.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&l===f.length-1?c:c+"/"+u,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(_r)),_r}var oi;function Zd(){return oi||(oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var u in c)Object.defineProperty(a,u,{enumerable:!0,get:c[u]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Yd(),n=["(..)(..)","(.)","(..)","(...)"];function o(a){return a.split("/").find(c=>n.find(u=>c.startsWith(u)))!==void 0}function i(a){let c,u,l;for(const f of a.split("/"))if(u=n.find(p=>f.startsWith(p)),u){[c,l]=a.split(u,2);break}if(!c||!u||!l)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),u){case"(.)":c==="/"?l=`/${l}`:l=c+"/"+l;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);l=c.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const f=c.split("/");if(f.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);l=f.slice(0,-2).concat(l).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:l}}}(yr)),yr}var xr={},ii;function Jd(){return ii||(ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(xr)),xr}var si;function ef(){return si||(si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,g){for(var b in g)Object.defineProperty(y,b,{enumerable:!0,get:g[b]})}t(e,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return h}});const r=Zd(),n=Jd(),o=Rc(),i="nxtP",a="nxtI";function c(y){const g=y.startsWith("[")&&y.endsWith("]");g&&(y=y.slice(1,-1));const b=y.startsWith("...");return b&&(y=y.slice(3)),{key:y,repeat:b,optional:g}}function u(y){const g=(0,o.removeTrailingSlash)(y).slice(1).split("/"),b={};let A=1;return{parameterizedRoute:g.map(_=>{const C=r.INTERCEPTION_ROUTE_MARKERS.find(P=>_.startsWith(P)),x=_.match(/\[((?:\[.*\])|.+)\]/);if(C&&x){const{key:P,optional:S,repeat:I}=c(x[1]);return b[P]={pos:A++,repeat:I,optional:S},"/"+(0,n.escapeStringRegexp)(C)+"([^/]+?)"}else if(x){const{key:P,repeat:S,optional:I}=c(x[1]);return b[P]={pos:A++,repeat:S,optional:I},S?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(_)}).join(""),groups:b}}function l(y){const{parameterizedRoute:g,groups:b}=u(y);return{re:new RegExp("^"+g+"(?:/)?$"),groups:b}}function f(){let y=0;return()=>{let g="",b=++y;for(;b>0;)g+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return g}}function p(y){let{getSafeRouteKey:g,segment:b,routeKeys:A,keyPrefix:_}=y;const{key:C,optional:x,repeat:P}=c(b);let S=C.replace(/\W/g,"");_&&(S=""+_+S);let I=!1;return(S.length===0||S.length>30)&&(I=!0),isNaN(parseInt(S.slice(0,1)))||(I=!0),I&&(S=g()),_?A[S]=""+_+C:A[S]=""+C,P?x?"(?:/(?<"+S+">.+?))?":"/(?<"+S+">.+?)":"/(?<"+S+">[^/]+?)"}function d(y,g){const b=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:b.map(C=>{const x=r.INTERCEPTION_ROUTE_MARKERS.some(S=>C.startsWith(S)),P=C.match(/\[((?:\[.*\])|.+)\]/);return x&&P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?a:void 0}):P?p({getSafeRouteKey:A,segment:P[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(C)}).join(""),routeKeys:_}}function m(y,g){const b=d(y,g);return{...l(y),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function h(y,g){const{parameterizedRoute:b}=u(y),{catchAll:A=!0}=g;if(b==="/")return{namedRegex:"^/"+(A?".*":"")+"$"};const{namedParameterizedRoute:_}=d(y,!1);let C=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+C+"$"}}}(gr)),gr}var ai;function tf(){return ai||(ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Kd(),r=ef();function n(o,i,a){let c="";const u=(0,r.getRouteRegex)(o),l=u.groups,f=(i!==o?(0,t.getRouteMatcher)(u)(i):"")||a;c=o;const p=Object.keys(l);return p.every(d=>{let m=f[d]||"";const{repeat:h,optional:y}=l[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(m?"":"/")+"["+g+"]"),h&&!Array.isArray(m)&&(m=[m]),(y||d in f)&&(c=c.replace(g,h?m.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(m))||"/")})||(c=""),{params:p,result:c}}}(mr)),mr}var ci;function rf(){return ci||(ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=Ac(),n=wc(),o=zd(),i=Kt(),a=Xt(),c=Pc(),u=Vd(),l=tf();function f(p,d,m){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),b=g?y.slice(g[0].length):y;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(b);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return m?[y]:y;try{h=new URL(y.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let C="";if((0,u.isDynamicRoute)(_.pathname)&&_.searchParams&&m){const P=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:S,params:I}=(0,l.interpolateAs)(_.pathname,_.pathname,P);S&&(C=(0,n.formatWithValidation)({pathname:S,hash:_.hash,query:(0,o.omit)(P,I)}))}const x=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return m?[x,C||x]:x}catch{return m?[y]:y}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Et,Et.exports)),Et.exports}var jt={exports:{}},Cr={},Sr={},ui;function Ic(){return ui||(ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=So();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(n);return""+o+i+a+c}}(Sr)),Sr}var li;function nf(){return li||(li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ic(),r=jc();function n(o,i,a,c){if(!i||i===a)return o;const u=o.toLowerCase();return!c&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+i.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+i)}}(Cr)),Cr}var di;function of(){return di||(di=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Xt(),n=function(o){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)(nf().addLocale(o,...a)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jt,jt.exports)),jt.exports}var Ar={},fi;function Nc(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Re._(E).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Ar)),Ar}var Er={},pi;function sf(){return pi||(pi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var p in f)Object.defineProperty(l,p,{enumerable:!0,get:f[p]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return u}});const n=Re._(E);var o;(function(l){l.LAZY_INITIALIZED="LAZYINITIALIZED",l.DATA_FETCH="DATAFETCH",l.READY="READY"})(o||(o={}));const i=n.default.createContext(null),a=n.default.createContext(null),c=n.default.createContext(null),u=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",u.displayName="TemplateContext")}(Er)),Er}var Pt={exports:{}},It={exports:{}},mi;function Oc(){return mi||(mi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(It,It.exports)),It.exports}var hi;function af(){return hi||(hi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const r=E,n=Oc(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const p={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===p.root&&g.margin===p.margin);let m;if(d&&(m=i.get(d),m))return m;const h=new Map,y=new IntersectionObserver(g=>{g.forEach(b=>{const A=h.get(b.target),_=b.isIntersecting||b.intersectionRatio>0;A&&_&&A(_)})},f);return m={id:p,observer:y,elements:h},a.push(p),i.set(p,m),m}function u(f,p,d){const{id:m,observer:h,elements:y}=c(d);return y.set(f,p),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(m);const b=a.findIndex(A=>A.root===m.root&&A.margin===m.margin);b>-1&&a.splice(b,1)}}}function l(f){let{rootRef:p,rootMargin:d,disabled:m}=f;const h=m||!o,[y,g]=(0,r.useState)(!1),b=(0,r.useRef)(null),A=(0,r.useCallback)(C=>{b.current=C},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const C=b.current;if(C&&C.tagName)return u(C,P=>P&&g(P),{root:p==null?void 0:p.current,rootMargin:d})}else if(!y){const C=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(C)}},[h,d,p,y,b.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[A,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)}(Pt,Pt.exports)),Pt.exports}var Nt={exports:{}},Ot={exports:{}},wr={},gi;function cf(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const i=r.split("/");return(n||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(o=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(wr)),wr}var yi;function uf(){return yi||(yi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?cf().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ot,Ot.exports)),Ot.exports}var Tt={exports:{}},Rr={},_i;function lf(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const c of r){var i,a;const u=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(n===u||o===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(l=>l.toLowerCase()===o))return c}}}}(Rr)),Rr}var vi;function df(){return vi||(vi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return lf().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Tt,Tt.exports)),Tt.exports}var bi;function ff(){return bi||(bi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Xt(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,u){if(process.env.__NEXT_I18N_SUPPORT){const l=uf().normalizeLocalePath,f=df().detectDomainLocale,p=a||l(i,c).detectedLocale,d=f(u,void 0,p);if(d){const m="http"+(d.http?"":"s")+"://",h=p===d.defaultLocale?"":"/"+p;return""+m+d.domain+(0,r.normalizePathTrailingSlash)(""+n+h+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Nt,Nt.exports)),Nt.exports}var Mt={exports:{}},xi;function pf(){return xi||(xi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=Ic(),n=Xt(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,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)}(Mt,Mt.exports)),Mt.exports}var kt={exports:{}},Ci;function mf(){return Ci||(Ci=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,d){for(var m in d)Object.defineProperty(p,m,{enumerable:!0,get:d[m]})}r(t,{PrefetchKind:function(){return f},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return l}});const n="refresh",o="navigate",i="restore",a="server-patch",c="prefetch",u="fast-refresh",l="server-action";var f;(function(p){p.AUTO="auto",p.FULL="full",p.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(kt,kt.exports)),kt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const n=Re._(E),o=rf(),i=Pc(),a=wc(),c=Kt(),u=of(),l=Nc(),f=sf(),p=af(),d=ff(),m=pf(),h=mf(),y=new Set;function g(P,S,I,$,w,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(S))return;if(!$.bypassPrefetchedCheck){const B=typeof $.locale<"u"?$.locale:"locale"in P?P.locale:void 0,R=S+"%"+I+"%"+B;if(y.has(R))return;y.add(R)}const k=N?P.prefetch(S,w):P.prefetch(S,I,$);Promise.resolve(k).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function b(P){const I=P.currentTarget.getAttribute("target");return I&&I!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function A(P,S,I,$,w,N,k,B,R,q){const{nodeName:z}=P.currentTarget;if(z.toUpperCase()==="A"&&(b(P)||!R&&!(0,i.isLocalURL)(I)))return;P.preventDefault();const K=()=>{const W=k??!0;"beforePopState"in S?S[w?"replace":"push"](I,$,{shallow:N,locale:B,scroll:W}):S[w?"replace":"push"]($||I,{forceOptimisticNavigation:!q,scroll:W})};R?n.default.startTransition(K):K()}function _(P){return typeof P=="string"?P:(0,a.formatUrl)(P)}const x=n.default.forwardRef(function(S,I){let $;const{href:w,as:N,children:k,prefetch:B=null,passHref:R,replace:q,shallow:z,scroll:U,locale:K,onClick:W,onMouseEnter:F,onTouchStart:ne,legacyBehavior:j=!1,...T}=S;$=k,j&&(typeof $=="string"||typeof $=="number")&&($=n.default.createElement("a",null,$));const D=n.default.useContext(l.RouterContext),X=n.default.useContext(f.AppRouterContext),te=D??X,Z=!D,M=B!==!1,J=B===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(S[oe]==null||typeof S[oe]!="string"&&typeof S[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:S[oe]===null?"null":typeof S[oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(oe=>{const V=typeof S[oe];if(oe==="as"){if(S[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(S[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(S[oe]&&V!=="function")throw ie({key:oe,expected:"`function`",actual:V})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&S[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);S.prefetch&&!Q.current&&!Z&&(Q.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&Z&&!N){let ie;if(typeof w=="string"?ie=w:typeof w=="object"&&typeof w.pathname=="string"&&(ie=w.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!D){const G=_(w);return{href:G,as:N?_(N):G}}const[ie,me]=(0,o.resolveHref)(D,w,!0);return{href:ie,as:N?(0,o.resolveHref)(D,N):me||ie}},[D,w,N]),L=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(j)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),F&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only($)}catch{throw $?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 re=n.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const se=j?re&&typeof re=="object"&&re.ref:I,[ce,ue,ae]=(0,p.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||L.current!==Y)&&(ae(),O.current=ee,L.current=Y),ce(ie),se&&(typeof se=="function"?se(ie):typeof se=="object"&&(se.current=ie))},[ee,se,Y,ae,ce]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&te&&(!ue||!M||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,ue,K,M,D==null?void 0:D.locale,te,Z,J]);const he={ref:H,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!j&&typeof W=="function"&&W(ie),j&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,z,U,K,Z,M))},onMouseEnter(ie){!j&&typeof F=="function"&&F(ie),j&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!M||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!j&&typeof ne=="function"&&ne(ie),j&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!M&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!j||R||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:D==null?void 0:D.locale,me=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);he.href=me||(0,m.addBasePath)((0,u.addLocale)(ee,ie,D==null?void 0:D.defaultLocale))}return j?n.default.cloneElement(re,he):n.default.createElement("a",{...T,...he},$)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Xn,Xn.exports);var hf=Xn.exports,gf=hf;const Ne=Vt(gf),Ao={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Eo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=Be(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=ve(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return s.jsx(v.Header.SupportItem,{onClick:()=>{t(!0),n({content:"header:minicart"})},id:e,children:s.jsxs(v.Badge.AutoPositioner,{children:[s.jsx(v.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),s.jsx(v.Icon,{name:o.header.ICONS.bag,size:"medium"})]})})};Eo.displayName="Header.Bag";const yt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(Ne,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Tc=()=>{const{headerData:e}=ve(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Ue(),o=i=>{i?n(i):r()};return s.jsx(v.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(yt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(v.Header.CategoryItem,{className:Ao["btn-header"],value:i.submenuId??null,adornment:{start:s.jsx(v.Icon,{name:i.iconStart}),end:s.jsx(v.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Tc.displayName="Header.Categories";function yf({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=ve(),{setValue:n}=ho();return s.jsxs(s.Fragment,{children:[s.jsx(v.Header.SupportItem,{onClick:()=>{n(!0),t({content:"header:search"})},children:s.jsx(v.Icon,{name:r.header.ICONS.search,size:"medium"})}),s.jsx(e,{recommendations:!1,trends:!0})]})}const _f={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},vf={"observer-wrapper":"_observer-wrapper_r43gk_1"};function bf(e,t,r){const[n,o]=E.useState(!1),{threshold:i}=r||{};return E.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([u])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},r.delay);return}o(u.isIntersecting),t&&u.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),n}const Qt=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=E.useRef(null),u=bf(c,o,r),{sendDataLayerEvent:l}=ge();return E.useEffect(()=>{u&&(typeof n=="function"&&n(),t&&l({...t}))},[u]),s.jsx("div",{...a,ref:c,className:v.helpers.classNameConcat(vf["observer-wrapper"],i),children:e})},wo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:_f["menu-subcategories-container"],children:e.map((a,c)=>{const u=r?a.srcMobile:a.srcDesk;if(!u)return null;const l={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:u,promotion_name:a.promotion_name};return s.jsx(Qt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...l}}}},observerOptions:{delay:1e3},children:s.jsxs(Ne,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:l})},children:[s.jsx($e.Image,{src:u,alt:a.label??u,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&s.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};wo.displayName="Menu.Thumbnail";const Qn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},xf="_link_w24h0_1",Cf="_wrapper_w24h0_98",Sf="_text_w24h0_106",jr={link:xf,wrapper:Cf,text:Sf},ze=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:u,disablePadding:l,...f})=>{const p=v.helpers.ValidateProp({fieldTypes:et.SizesSmallExtended,property:a,fallback:"medium"}),d=v.helpers.ValidateProp({fieldTypes:et.Mode,property:i,fallback:"default"});return s.jsx(Ne,{...f,className:v.helpers.classNameConcat(jr.link,r),href:o&&o.length>0?o:"#","data-size":p,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":l??!0,children:s.jsxs("div",{className:jr.wrapper,onClick:u,children:[t==null?void 0:t.start,s.jsx("p",{className:jr.text,"data-size":p,children:e}),t==null?void 0:t.end]})})},Mc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var u;const{router:o}=je(),{reset:i}=Ue(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=ve();return s.jsxs("div",{...n,className:Qn["menu-categories"],children:[(u=r==null?void 0:r.subCategories)==null?void 0:u.map((l,f)=>{var m,h,y;const p=l.listCollapseDesk&&!((m=l.see_all)!=null&&m.link)?{expandAfterRowsQty:l.rowsToShowDesk}:{},d=l.listCollapseDesk&&!((h=l.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:s.jsx(v.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(v.ComponentList.Structure,{children:[s.jsx(yt,{href:l.linkLabel,title:l.label,onClick:()=>{l.linkLabel&&(i(),a({content:`menu:${l.label??""}:${r.label??""}`}))},children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{children:l.label})})})}),s.jsx(v.ComponentList.List,{columns:1,...p,className:Qn["submenu-categories"],children:l.items.map((g,b)=>s.jsx(v.ComponentList.ListItem,{id:`list-item-${g.label}-${b}`,children:s.jsx(ze,{href:g.link??"#",size:"x-small",title:g.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${l.label??""}:${g.label??""}:${r.label??""}`})},children:g.label})},`list-item-${g.label}-${b}`))}),((y=l.see_all)==null?void 0:y.link)&&s.jsx(v.ComponentList.Support,{...d,size:"small",onClick:()=>{var g;(g=l.see_all)!=null&&g.link&&(i(),a({content:`menu:${l.label??""}:${r.label}`}),o.push(l.see_all.link))},children:l.see_all.link&&l.see_all.label})]},`list-${l.label}-${f}`)}),t&&s.jsx(v.Utils.Divider,{size:"small",direction:"vertical"})]})};Mc.displayName="Menu.Categories";const kc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=ve();return s.jsxs(s.Fragment,{children:[s.jsx("div",{...r,className:Qn["menu-desktop"],style:{...r.style,justifyContent:n.header.ALIGNMENT_MENU},children:e}),t&&s.jsx(v.Utils.Divider,{size:"small"})]})};kc.displayName="Menu.MenuRoot";const Pr={Root:kc,Categories:Mc,Thumbnail:wo},Lc=()=>{const{headerData:e,CONSTANTS:t}=ve(),r=Wt(),{reset:n}=Ue();return s.jsx(v.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((o,i)=>{const{thumbnails:a,label:c,id:u}=o,l=u===r,f=a==null?void 0:a.some(p=>!!p.srcDesk);return s.jsxs(Pr.Root,{id:u,style:l?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:l,children:[s.jsx(Pr.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Pr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${u}-${i}`)})})};Lc.displayName="Header.SubMenu";const Dc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=ve();return s.jsx(Ne,{href:"/favoritos",children:s.jsx(v.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:s.jsx(v.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};Dc.displayName="Header.WishList";const $c=({SearchModal:e})=>{const{CONSTANTS:t,userMenuDesktopRef:r}=ve(),{handleSelectContent:n}=ge(),{reset:o}=Ue(),{setValue:i}=ht();return s.jsxs(s.Fragment,{children:[s.jsxs(v.Header.Wrapper,{children:[s.jsx(v.Header.Logo,{style:{width:"100%"},children:s.jsx(Ne,{href:"/",onMouseEnter:o,children:s.jsx(v.Icon,{name:t.header.ICONS.logo,size:"x-large",onClick:()=>{n({content:"header:logo"})}})})}),s.jsx(Tc,{}),s.jsxs(v.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[s.jsx(yf,{SearchModal:e}),s.jsx(v.Header.SupportItem,{onClick:()=>{i(!0),n({content:"header:user_menu"})},className:Ao["btn-login"],innerRef:r,children:s.jsx(v.Icon,{name:t.header.ICONS.person,size:"medium"})}),s.jsx(Dc,{}),s.jsx(Eo,{id:"cart-button"})]})]}),s.jsx(Lc,{})]})};$c.displayName="Header.HeaderDesktopWrapper";const Af="_divider_1lexj_199",_e={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:Af,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Bc=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:n,textColor:o,...i})=>s.jsx("button",{onClick:n,className:_e["menu-categories-btn"],children:r?s.jsxs(v.Banner.Container,{...i,className:_e["menu-body-banner-container-modifier"],children:[s.jsx(v.Banner.ImageWrapper,{style:{width:"100%"},children:s.jsx($e.Image,{src:r,alt:t??r,className:_e["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),s.jsx(v.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:_e["menu-categories-textstructure-modifier"],children:s.jsx("h2",{className:"typography-style-body-xs",style:o?{color:o}:{},children:e})})})})]}):s.jsx("h2",{...i,children:e})});Bc.displayName="Menu.MenuCategories";const qc=({children:e,link:t})=>{const{reset:r}=Xe();return t?s.jsx(Ne,{href:t??"#",onClick:r,children:e}):e};qc.displayName="Menu.MenuCategoriesWrapper";const Hc=({subcategory:e,submenuLabel:t})=>{var u,l,f;const{router:r}=je(),{reset:n}=Xe(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=ve(),a=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:s.jsx(v.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return s.jsxs(v.ComponentList.Structure,{className:_e["menu-submenu--component-list-modifier"],children:[s.jsx(yt,{href:e.linkLabel,title:e.label,onClick:()=>{n(),o({content:`menu:${e.label??""}:${t}`})},children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),s.jsx(v.ComponentList.List,{columns:1,...a,className:_e["submenu-categories"],children:e.items.map((p,d)=>s.jsx(v.ComponentList.ListItem,{id:`list-item-${p.label}-${d}`,divider:!0,children:s.jsx(ze,{href:p.link??"#",size:"x-small",title:p.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${p.label}:${t}`})},children:p.label})},`list-item-${p.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(v.ComponentList.Support,{...c,size:"small",onClick:()=>{var p;n(),o({content:`menu:${e.label??""}:${t}`}),(p=e.see_all)!=null&&p.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Hc.displayName="Menu.SubMenuSubCategory";const Fc=({submenu:e})=>{var i;const t=Wt(),{handleCloseSubMenu:r}=gt(),{reset:n}=Ue(),{CONSTANTS:o}=ve();return s.jsxs("div",{className:_e["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[s.jsx(v.TextStructure.Root,{adornment:{start:s.jsx(v.Icon,{name:o.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&s.jsx(v.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:s.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),s.jsx("div",{className:_e["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&s.jsx(wo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:n})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>s.jsx(Hc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Fc.displayName="Menu.SubMenuItem";const zc=()=>{const{headerData:e}=ve(),t=Wt(),{reset:r}=Ue(),{bodyRef:n}=gt();return s.jsx(v.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:n.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:_e["menu-submenu-modal-modifiier"],children:s.jsx("div",{className:_e["menu-submenu"],children:e.subMenus.map((o,i)=>s.jsx(Fc,{submenu:o},`submenu-${o.id}-${i}`))})})};zc.displayName="Menu.SubMenu";const Uc=({className:e,...t})=>{const{headerData:r}=ve(),{setValue:n}=Ue(),{bodyRef:o}=gt(),{handleSelectContent:i}=ge();return s.jsxs("div",{...t,ref:o,id:"menu-body",className:_e["menu-body"],children:[s.jsx("div",{className:_e["menu-categories-container"],children:r.categories.map((a,c)=>{const u=a.submenuId?{}:{"data-close":!0};return s.jsx(qc,{link:a.submenuId?null:a.link,children:s.jsx(Bc,{onClick:()=>{n(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...u,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),s.jsx(zc,{})]})};Uc.displayName="Menu.MenuBody";const Gc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=ve();return s.jsxs("div",{className:_e["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{children:[e&&s.jsx("h2",{className:"typography-style-body-md",children:e}),t&&s.jsx("h3",{children:t})]})}),s.jsx(v.Button,{adornment:{end:s.jsx(v.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:_e["menu-close"],"data-close":!0})]})};Gc.displayName="Menu.MenuHeaderWrapper";const Wc=({navigationLinks:e})=>{const{reset:t}=Xe(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(ze,{href:n.link??"#",adornments:{start:n.iconStart&&s.jsx(v.Icon,{name:n.iconStart}),end:n.iconEnd&&s.jsx(v.Icon,{name:n.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${n.label}`})},children:n.label},o))}):null};Wc.displayName="Menu.MenuHeaderNavLinks";const Vc=()=>{const{headerData:e}=ve();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Gc,{title:e.title,subtitle:e.subtitle}),s.jsx(Wc,{navigationLinks:e.navigationLinks})]})};Vc.displayName="Menu.MenuHeaderContainer";const Kc=({children:e})=>{const{documentBodyRef:t}=gt(),{CONSTANTS:r}=ve(),n=mo(),{setValue:o}=Xe();return s.jsx(v.Modal.RootWithoutPortal,{isOpen:n,setIsOpen:o,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:_e["modal-modifier"],children:s.jsx("div",{className:_e["menu-mobile"],children:e})})};Kc.displayName="Menu.MenuRoot";const Ft=({children:e,...t})=>s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{...t,className:_e["menu-navigationbar-item"],children:e}),s.jsx(v.Utils.Divider,{direction:"vertical",size:"small",className:_e.divider})]});Ft.displayName="Menu.NavigationBarItem";const Xc=()=>{const{setIsOpen:e}=Be(),{reset:t}=Xe(),{setValue:r}=ht(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=ve(),{router:i}=je();return s.jsxs(v.Card,{id:"menu-navigationbar",shadow:!0,className:_e["menu-navigationbar"],style:{zIndex:o.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[s.jsx(Ft,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),n({content:"menu:user_menu"})},children:o.header.MENU_INFO.login.button_text}),s.jsx(Ft,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),n({content:"menu:minicart"})},children:o.header.MENU_INFO.bag.button_text}),s.jsx(Ft,{size:"small",variant:"tertiary",iconNameStart:o.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),n({content:"menu:store"})},children:o.header.MENU_INFO.store.button_text})]})};Xc.displayName="Menu.NavigationBar";const Lt={Root:Kc,NavigationBar:Xc,Header:Vc,Body:Uc},Qc=({SearchModal:e})=>{const t=E.useRef(null),{CONSTANTS:r,userMenuMobileRef:n}=ve(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:i,MENU_MOB_BTN_SIDE:a="right"}=r.header,{handleSelectContent:c}=ge(),{setValue:u}=ho(),{setValue:l}=Xe(),{setValue:f}=ht();return s.jsxs(s.Fragment,{children:[s.jsxs(v.Header.Wrapper,{children:[a==="left"&&s.jsx(v.Header.SupportItem,{onClick:()=>l(!0),innerRef:t,children:s.jsx(v.Icon,{name:i.menu,size:"medium"})}),s.jsx(v.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:s.jsx(Ne,{href:"/",children:s.jsx(v.Icon,{name:i.logo,size:"x-large",onClick:()=>{c({content:"header:logo"})}})})}),s.jsxs(v.Header.Support,{children:[s.jsx(v.Header.SupportItem,{onClick:()=>{u(!0),c({content:"header:search"})},children:s.jsx(v.Icon,{name:i.search,size:"medium"})}),s.jsx(v.Header.SupportItem,{onClick:()=>{f(!0),c({content:"header:user_menu"})},innerRef:n,children:s.jsx(v.Icon,{name:i.person,size:"medium"})}),s.jsx(Eo,{}),a==="right"&&s.jsx(v.Header.SupportItem,{onClick:()=>l(!0),innerRef:t,children:s.jsx(v.Icon,{name:i.menu,size:"medium"})})]})]}),s.jsx(e,{recommendations:!1,trends:!0}),s.jsx(Va,{children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),o?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})]})};Qc.displayName="Header.HeaderMobileWrapper";const Ef="_root_wvekm_126",ke={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:Ef},Yc=({className:e,children:t,...r})=>s.jsx("div",{...r,className:v.helpers.classNameConcat(ke["user-menu--content"],e),children:t});Yc.displayName="UserMenu.Content";var Zc=(e=>(e.Account="account",e))(Zc||{});const Jc=({className:e,cashBack:t,credits:r,link:n,total:o,...i})=>{const a=t?Me(t):void 0,c=r?Me(r):void 0,u=o?Me(o):void 0;return s.jsx(v.Credits.Account,{...i,className:v.helpers.classNameConcat(ke["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:n,totalValue:u,type:Zc.Account})};Jc.displayName="UserMenu.Credits";const eu=({className:e,children:t,description:r,text:n,...o})=>{const{isMobile:i}=Ae();return s.jsx("div",{...o,className:v.helpers.classNameConcat(ke["user-menu--login"],e),"data-mobile":i,children:s.jsxs("div",{className:ke["user-menu--login--content"],children:[s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[s.jsx("h3",{className:"typography-style-body-lg-strong",children:n}),s.jsx("p",{children:r})]})}),t]})})};eu.displayName="UserMenu.Login";const tu=({className:e,isLogged:t,onLogoutClick:r,ICONS:n,storeConfig:o})=>{const{isMobile:i}=Ae(),a=Kl({ICONS:n,storeConfig:o}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return s.jsxs("ul",{className:v.helpers.classNameConcat(ke["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,u)=>s.jsx("li",{children:s.jsx(ze,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:s.jsx(v.Icon,{name:c.icon??"delete"})},children:c.label})},u)),t?s.jsx("li",{children:s.jsx(ze,{href:`${o.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${o.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:s.jsx(v.Icon,{name:Vl(n)})},children:Wl})}):s.jsx(s.Fragment,{})]})};tu.displayName="UserMenu.Menu";const wf=e=>{const t=E.useRef(null),r=E.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),n=E.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=E.useCallback(i=>{i.key==="Escape"&&e()},[e]);return E.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",o),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",o),document.removeEventListener("touchstart",n)}),[r,o,n]),{ref:t}},Rf=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},jf=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:n,left:o,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),u=e!=null&&e.parentElement?Rf(e==null?void 0:e.parentElement):0;return{left:o+a/2-(c.width+u*2),top:i+n+r}},ru=E.createContext({}),Pf=({children:e,delay:t=600,gap:r=20,isOpen:n,setIsOpen:o,target:i,...a})=>{const c=E.useRef(null),[u,l]=E.useState(!1),[f,p]=E.useState({left:0,top:0}),{ref:d}=wf(()=>{l(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{o(!1),l(!1)},t))});return E.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:m,top:h}=jf(d.current,i,r??0);p({left:m,top:h}),l(!1)}},[r,n,i,d]),s.jsx(ru.Provider,{value:E.useMemo(()=>({...a,...f,contentRef:d,isLeaving:u,isOpen:n,setIsOpen:o,setIsLeaving:l,target:i}),[a,f,d,u,n,o,l,i]),children:e})},nu=()=>{const e=E.useContext(ru);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},ou=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:n,setIsOpen:o}=nu();return s.jsxs(v.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:n,setIsOpen:o,variant:"sideBottom",className:ke["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[s.jsx(v.Modal.Header,{navigation:"top",className:ke["modal-header-modifier"],children:s.jsx(v.Modal.Controls,{navigation:"top",isMobile:!0,className:ke["modal-controls-modifier"]})}),s.jsx(v.Modal.Body,{children:e})]})};ou.displayName="UserMenu.Modal";const iu=({children:e,component:t,Z_INDEX_WAR:r,isMobile:n,...o})=>s.jsx(Pf,{...o,className:ke.root,children:n?s.jsxs(s.Fragment,{children:[s.jsx(We.Modal,{Z_INDEX_WAR:r,children:t}),e]}):s.jsx(We.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});iu.displayName="UserMenu.Root";const su=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,isOpen:c,top:u}=nu();return s.jsx(v.Tooltip.Root,{arrow:"top-right",component:s.jsx("div",{...n,ref:o,children:t}),className:v.helpers.classNameConcat(ke["user-menu--tooltip"],ke["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:u,style:{zIndex:r.user_menu},children:s.jsx("div",{className:ke["user-menu--tooltip"],children:e})})};su.displayName="UserMenu.Tooltip";const We={Credits:Jc,Content:Yc,Login:eu,Menu:tu,Modal:ou,Root:iu,Tooltip:su},Ro=()=>{var y,g,b;const e=bo(),{isMobile:t}=Ae(),{userMenuMobileRef:r,userMenuDesktopRef:n,CONSTANTS:{header:o},storeConfig:i}=ve(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:u}=o,l=Ba(),{setValue:f}=ht(),p=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((y=e.user)!=null&&y.userId),{cashback:m,credits:h}=E.useMemo(()=>{var A,_;return{credits:((A=e==null?void 0:e.getCurrentCredits())==null?void 0:A.credits)??0,cashback:((_=e==null?void 0:e.getCurrentCredits())==null?void 0:_.cashback)??0}},[e]);return s.jsx(We.Root,{component:s.jsxs(We.Content,{children:[s.jsx(We.Login,{description:Ql(d),text:Xl(d,((g=e==null?void 0:e.user)==null?void 0:g.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&s.jsx(v.Button,{size:"medium",variant:"quaternary",onClick:()=>p(),children:u.login.button_text})}),h+m&&d?s.jsx(We.Credits,{credits:h,cashBack:m,link:`${i.secureSubdomain}/account#/meus-creditos`,total:h+m}):s.jsx(s.Fragment,{}),s.jsx(v.Utils.Divider,{}),s.jsx(We.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:n.current,isOpen:l,isMobile:t,setIsOpen:f,Z_INDEX_WAR:c})};Ro.displayName="UserMenu";const au=({tipBar:e,miniCart:t,SearchModal:r})=>{const{structureRef:n,rootRef:o,CONSTANTS:i}=ve(),{header:{HEADER_CONFIGS:a,Z_INDEX_WAR:c}}=i;return s.jsx(v.Header.Structure,{innerRef:n,adornment:{start:e},style:{position:"sticky",top:0,zIndex:c.header},className:Ao["header-animation"],children:s.jsxs(v.Header.Root,{innerRef:o,style:{zIndex:c.header},variant:a.default_variant,interactiveVariant:a.interactive_variant,children:[s.jsx("div",{className:Te.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:c.header_mobile},children:s.jsx(Qc,{SearchModal:r})}),s.jsx("div",{className:Te.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:c.header_desktop},children:s.jsx($c,{SearchModal:r})}),t,s.jsx(Co,{title:"Produto adicionado à sua sacola!",CONSTANTS:i.addToCart}),s.jsx(Ro,{})]})})};au.displayName="Header";const If="_shippingFreight_6z8rf_6",Nf="_shippingFreight__postalCodeGrid_6z8rf_10",Of="_shippingFreight__grid_6z8rf_14",Tf="_shippingFreight__grid__title_6z8rf_18",Mf="_shippingFreight__grid__remember_6z8rf_29",kf="_postalCodeContainer_6z8rf_44",Lf="_deliveryStatusBar__tag_6z8rf_49",Df="_deliveryStatusBarError__tag_6z8rf_66",$f="_deliveryInfo_6z8rf_74",Bf="_deliveryInfo__content_6z8rf_78",qf="_deliveryInfo__text_6z8rf_84",Hf="_deliveryInfo__title_6z8rf_89",Ff="_deliveryInfo__subtitle_6z8rf_99",zf="_deliveryInfo__tooltipIcon_6z8rf_109",Uf="_deliveryInfo__tooltip_6z8rf_109",Gf="_freightGrid_6z8rf_148",Wf="_freightContainer_6z8rf_155",Vf="_freightOption__content_6z8rf_160",Kf="_freightOption__value_6z8rf_166",Xf="_freightOption__title_6z8rf_177",Qf="_freightOption__title_item_6z8rf_181",Yf="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:If,shippingFreight__postalCodeGrid:Nf,shippingFreight__grid:Of,shippingFreight__grid__title:Tf,shippingFreight__grid__remember:Mf,postalCodeContainer:kf,deliveryStatusBar__tag:Lf,deliveryStatusBarError__tag:Df,deliveryInfo:$f,deliveryInfo__content:Bf,deliveryInfo__text:qf,deliveryInfo__title:Hf,deliveryInfo__subtitle:Ff,deliveryInfo__tooltipIcon:zf,deliveryInfo__tooltip:Uf,freightGrid:Gf,freightContainer:Wf,freightOption__content:Vf,freightOption__value:Kf,freightOption__title:Xf,freightOption__title_item:Qf,freightOption__paragraph:Yf,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},Zf=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[u,l]=E.useState(!1),f=E.useRef(null),p=()=>l(d=>!d);return s.jsxs("div",{className:fe.deliveryInfo,ref:f,children:[s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsx("div",{children:s.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:f.current}),s.jsxs("div",{className:fe.deliveryInfo__content,children:[s.jsx("div",{className:fe.deliveryInfo__icon,children:s.jsx(v.Icon,{name:e,size:"medium"})}),s.jsxs("div",{className:fe.deliveryInfo__text,children:[s.jsxs("span",{className:fe.deliveryInfo__title,children:[t," ",n," ",o]}),r&&s.jsx("span",{className:fe.deliveryInfo__subtitle,children:r})]}),i&&s.jsxs("div",{className:fe.deliveryInfo__tooltipIcon,onMouseEnter:p,onMouseLeave:p,"aria-label":"Mostrar descrição",children:[s.jsx("span",{children:s.jsx(v.Icon,{name:a.icons.feedback_help,size:"small"})}),u&&s.jsx("div",{className:fe.deliveryInfo__tooltip,children:i})]})]})]})},Jf=({value:e,title:t,paragraph:r})=>s.jsx("div",{className:fe.freightOption,children:s.jsxs("div",{className:fe.freightOption__content,children:[s.jsx("span",{className:fe.freightOption__value,children:e}),s.jsx("span",{className:fe.freightOption__title,children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:fe.footer__item,children:[s.jsx("span",{className:fe.freightOption__title_item,children:t}),r&&s.jsx("span",{className:fe.freightOption__paragraph,children:r})]})})})]})}),ep=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),tp=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),rp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),Si=({message:e,seller:t="",size:r="small",setError:n})=>s.jsx("div",{className:n?fe.deliveryStatusBarError:fe.deliveryStatusBar,children:s.jsxs(v.Tag,{title:e,className:n?fe.deliveryStatusBarError__tag:fe.deliveryStatusBar__tag,size:r,children:[e," ",!n&&t]})}),np=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},op=e=>{var r,n,o;const t=[];return(o=(n=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:n.slas)==null||o.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},ip=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...u})=>{const{isMobile:l}=Ae();return s.jsx(s.Fragment,{children:l?s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...u,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):s.jsx(v.Tooltip.Root,{arrow:"bottom",component:s.jsxs("div",{...u,ref:i,children:[e,s.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:fe["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},sp=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:u,toolTipZIndex:l})=>{var N,k,B,R;const f=tt(),p=tt(q=>q.shipping),[d,m]=E.useState(),[h,y]=E.useState(!1),[g,b]=E.useState(!1),[A,_]=E.useState(!1),C=(k=(N=f.shippingData)==null?void 0:N.address)==null?void 0:k.postalCode,x=!(d!=null&&d.length)&&C?C:d,P=E.useRef(null),S=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?m(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):m(U)},I=async q=>{const z=q.target.value.replace(/\D/g,"");try{if((await Mo.get(`https://viacep.com.br/ws/${z}/json/`)).data.erro){i&&i(u.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.")}},$=async()=>{y(!0);try{const q=await Mo.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:x});e(op(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),p(x,"BRA")}},w=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await I({target:{value:x}}),h||($(),a(!0))};return s.jsxs("div",{ref:P,style:{position:"relative"},children:[!n&&A?s.jsx(ip,{component:c,isOpen:A,parent:P.current,toolTipZIndex:l,freightConfig:u}):s.jsx(s.Fragment,{}),s.jsx("div",{style:{position:"relative"},children:s.jsx(v.TextField.Structure,{title:"structure",style:{width:"100%"},input:s.jsx(v.TextField.Input,{defaultValue:(R=(B=f.shippingData)==null?void 0:B.address)==null?void 0:R.postalCode,label:u.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:S,onKeyDown:q=>{q.key==="Enter"&&w()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(v.Button,{onClick:w,size:r,title:"button",children:h?s.jsx(v.Spinner,{size:"small",indicatorColor:"#ffffff"}):u.messages.text_input_btn})})})]})},ap=({children:e,freightConfig:t})=>s.jsxs("div",{className:fe.shippingFreight,children:[s.jsxs("div",{className:fe.shippingFreight__grid,children:[s.jsx("span",{className:fe.shippingFreight__grid__title,children:t.messages.title}),s.jsx("span",{className:fe.shippingFreight__grid__remember,children:s.jsx(ze,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),s.jsx("div",{className:fe.shippingFreight__postalCodeGrid,children:e})]}),cp=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),up=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:u}=ge(),[l,f]=E.useState(""),[p,d]=E.useState([]),[m,h]=E.useState(""),[y,g]=E.useState(!1),b=_=>f(_),A=_=>{d(_),u({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(C=>({shipping_tier:C.id,delivery_time:C.shippingEstimate.replace("bd",""),flag_pickup:C.name.toLowerCase().includes("retirada")?"true":"false",shipping:C.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(cp,{className:e,children:[s.jsxs(ap,{freightConfig:c.freightConfig,children:[s.jsx(rp,{children:s.jsx(sp,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),m?s.jsx(Si,{size:o,message:m,setError:h}):p.length>0&&s.jsx(Si,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!m?p.length>0&&s.jsxs(ep,{children:[s.jsx(tp,{children:p.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(Jf,{id:_.id,value:co({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${np(_.shippingEstimate)}`,radioValue:l,changeValue:b},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(Zf,{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}):s.jsx(s.Fragment,{})]}):null]})},cu=E.createContext({}),lp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=E.useState(null),c=E.useRef(null),u=E.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:l,itemListRef:f}=ge(),p=y=>{l({functionKey:"productEvents",data:{commonData:{...t,availableSizes:u.current.availableSkus,...u.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{p("add_to_wishlist")},m=()=>{l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...u.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},h=()=>{n&&(f.current={item_list_name:n}),p("select_item")};return s.jsx(cu.Provider,{value:E.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:u,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:m}),[o,t,c,i]),children:e})},Le=()=>{const e=E.useContext(cu);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Se={"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"},uu=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Le();return a?s.jsxs("div",{...i,className:v.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(Pe.Wrapper,{type:"actions--group",children:[s.jsx(Pe.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(Pe.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};uu.displayName="ProductCard.Actions";const lu=({className:e,isKit:t,...r})=>{const{addToCart:n}=Be(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:u,CONSTANTS:l}=Le(),f=()=>{var m;if(!i)return;const d=lo(i.offers.offers,l.StoreConfig_MainSellerId);d&&n({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(m=c==null?void 0:c.image.find(h=>l.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:m.url}),u()},p=i?l.BUY_BUTTON_LABELS.add_to_cart:l.BUY_BUTTON_LABELS.select_size;return s.jsx(v.Button,{...r,className:v.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:o?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:f,children:a?"Avise-me quando chegar":p})};lu.displayName="ProductCard.Actions.BuyButton";const du=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Le();return s.jsxs(Pe.Wrapper,{type:"header",style:{zIndex:o.Z_INDEX_WAR.product_card_header},children:[t?s.jsx(v.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?s.jsx(v.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,o.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&s.jsx(i,{product:e,priceInfo:{price:n.price,listPrice:n.listPrice},variant:"card"})]})};du.displayName="ProductCard.Actions.Header";const fu=({className:e,children:t,hasPriority:r=!1,showVideo:n=!1,...o})=>{const{element:i,index:a,item:{image:c,slug:u,video:l},sendSelectItemEvent:f,order:p,CONSTANTS:d}=Le(),m=na({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Se["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[s.jsx(Ne,{href:`/${u}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(p))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(m)&&m.map(({url:h,alternateName:y},g)=>E.createElement($e.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:y??"product image",key:g,...r&&{priority:g===0&&a<4},objectFit:"cover",src:h}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&n&&l&&s.jsx(Pe.Video,{url:l,poster:m[0].url}),t]})};fu.displayName="ProductCard.Media.Media";const pu=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Le(),{availability:{status:c}}=i;return c?null:s.jsxs("div",{...n,className:v.helpers.classNameConcat(Se["product-card--outstock"],e),children:[s.jsx(v.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),s.jsx(v.Button,{className:v.helpers.classNameConcat(e,"buy-button"),size:o?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};pu.displayName="ProductCard.OutStock";const mu=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:u,CONSTANTS:l,WishListToggle:f,...p})=>s.jsx(lp,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:u,CONSTANTS:l,WishListToggle:f,children:s.jsx("div",{...p,className:v.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});mu.displayName="ProductCard.Root";const hu=({disabled:e,label:t,size:r,value:n,onClick:o,...i})=>s.jsxs(v.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:o,children:[s.jsx(v.ToggleSize.DisabledAdornment,{}),s.jsx(v.ToggleSize.Text,{children:t})]});hu.displayName="ProductCard.SizeSelector.Item";const gu=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:u}=Le();n.productId=i.id;const l=Js(n),f=Ys(n,"tamanho");!l&&!u.current.availableSkus.includes(f)&&u.current.availableSkus.push(f);const p=E.useCallback(m=>{const h=r===m?null:m;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=E.useCallback(()=>{if(l&&typeof o=="function"){o(i,n);return}p(n)},[n,o,p,l,i]);return s.jsx(hu,{active:e,disabled:l,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};gu.displayName="ProductCard.SizeSelector.SkuItem";const yu=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Le();return s.jsxs("div",{...o,className:v.helpers.classNameConcat(Se["product-card--selectors--size"],t),"data-mobile":i,children:[s.jsx("div",{className:Se["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((u,l)=>s.jsx(gu,{active:c===u,callback:e,item:u,selectedSku:c,setNotify:n},`size--${l}--${u.sku}`))}),s.jsx("div",{className:Se["product-card--selectors--size--button"],children:r})]})};yu.displayName="ProductCard.SizeSelector";const Yn=({alt:e="",callback:t,more:r,total:n=4,src:o,url:i,...a})=>s.jsxs(v.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[s.jsx(v.ToggleStyle.DisabledAdornment,{}),s.jsxs(v.ToggleStyle.Texture,{children:[o&&s.jsx($e.Image,{alt:e??o,src:o,height:34,width:34}),r&&s.jsx(v.TextStructure.DivWrapper,{className:Se["product-card--selectors--style--more"],children:s.jsxs("p",{children:["+ ",n]})})]})]}),dp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Le(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((u,l)=>s.jsx(Yn,{callback:f=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(f)},src:(u==null?void 0:u.textureImage)??"",alt:u==null?void 0:u.textureAlt,url:u==null?void 0:u.slug,size:o},l)),Array.isArray(r)&&(r==null?void 0:r.length)>n&&s.jsx(Yn,{size:o,total:r.length-n,more:!0})]})},_u=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Le(),c=o||a.TEXTURE_IMAGE,u=n==null?void 0:n.find(l=>c.includes(l.alternateName));return s.jsx(dp,{...i,callback:e,className:v.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:u&&s.jsx(Yn,{active:!0,size:"x-small",src:u.url})})};_u.displayName="ProductCard.StyleSelector";const vu=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:u}=Le();u.current.priceInfo={price:o,listPrice:i};const l=Me(i,t),f=Me(o,t),p=Me(c??0),d=n?"horizontal":"stacked";return s.jsx("div",{...r,className:v.helpers.classNameConcat(Se["product-card--price"],e),"data-mobile":n,children:s.jsx(v.ProductInfo.Root,{size:"small",layout:d,children:s.jsxs(v.ProductInfo.Wrapper,{size:"small",layout:d,children:[s.jsx(v.ProductInfo.ValuesWrapper,{children:f!==l?s.jsxs(s.Fragment,{children:[s.jsx(v.ProductInfo.Price,{label:"originalPrice",value:l,size:"small"}),s.jsx(v.ProductInfo.Price,{label:"discountPrice",value:f,size:"small"})]}):s.jsx(v.ProductInfo.Price,{label:"defaultPrice",value:f,size:"small"})}),a&&a>1&&c?s.jsx(v.ProductInfo.Price,{label:"installment",value:`${a}x ${p}`,size:"small"}):null]})})})};vu.displayName="ProductCard.Price";const bu=({tag:e,className:t})=>{const{item:{name:r}}=Le();return s.jsxs("div",{className:v.helpers.classNameConcat(Se["product-card--title"],t),children:[s.jsx("div",{className:Se["product-card--title--tag"],children:e?s.jsx(v.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?s.jsx(v.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):s.jsx("div",{})}),s.jsx("div",{className:Se["product-card--title--content"],children:r&&s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h3",{children:r})})})})]})};bu.displayName="ProductCard.Title";const xu=({className:e,url:t,poster:r,...n})=>{const{element:o}=Le();return E.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(p=>{oa(p.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),u=()=>{a.setAttribute("data-loaded","true")},l=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",u))};return document.readyState==="complete"?l():window.addEventListener("load",l),()=>{c.disconnect(),window.removeEventListener("load",l)}}return()=>null},[t,o]),s.jsx("div",{...n,className:v.helpers.classNameConcat(Se["product-card--video"],e),children:t&&s.jsx($e.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};xu.displayName="ProductCard.Media.Video";const Cu=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:v.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Cu.displayName="ProductCard.Wrapper";const Pe={Actions:uu,BuyButton:lu,Header:du,Media:fu,Root:mu,OutStock:pu,Price:vu,SizeSelector:yu,StyleSelector:_u,Title:bu,Video:xu,Wrapper:Cu},fp="_footer__bottom_1o9af_2",pp="_footer__wrapper_1o9af_10",mp="_footer__main_1o9af_39",hp="_footer__legalInformation_1o9af_55",gp="_footer__column_1o9af_77",yp="_footer__columnContent_1o9af_87",_p="_footer__item_1o9af_91",vp="_footer__itemLink_1o9af_107",bp="_footer__columnTitle_1o9af_122",xp="_footer__columnTitleIcon_1o9af_134",Cp="_footer__iconList_1o9af_147",Sp="_footer__itemSmallText_1o9af_157",Ap="_payment_1o9af_168",Ep="_footer__iconContainer_1o9af_173",wp="_footer__iconListSubHeader_1o9af_178",Rp="_accordionWrapper_1o9af_200",jp="_accordionHeader_1o9af_204",Pp="_accordionTextWrapper_1o9af_208",pe={footer__bottom:fp,footer__wrapper:pp,footer__main:mp,footer__legalInformation:hp,footer__column:gp,footer__columnContent:yp,footer__item:_p,footer__itemLink:vp,footer__columnTitle:bp,footer__columnTitleIcon:xp,footer__iconList:Cp,footer__itemSmallText:Sp,payment:Ap,footer__iconContainer:Ep,footer__iconListSubHeader:wp,accordionWrapper:Rp,accordionHeader:jp,accordionTextWrapper:Pp,"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 Su={},jo={},_t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.warn(n),r.add(n)}}})(_t);var Au={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:n,heightInt:o,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:u}=r;const l=20,f=i?i*40:n,p=a?a*40:o,d=f&&p?"viewBox='0 0 "+f+" "+p+"'":"",m=d?"none":u==="contain"?"xMidYMid":u==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+l+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+m+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Au);var Yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var a in i)Object.defineProperty(o,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});const r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(Yt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}});const t=_t,r=Au,n=Yt,o=["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 u=new Map;let l;function f(h){return typeof h>"u"?h:typeof h=="number"?Number.isFinite(h)?h:NaN:typeof h=="string"&&/^[0-9]+$/.test(h)?parseInt(h,10):NaN}function p(h,y,g){let{deviceSizes:b,allSizes:A}=h;if(g){const C=/(^|\s)(1?\d?\d)vw/g,x=[];for(let P;P=C.exec(g);P)x.push(parseInt(P[2]));if(x.length){const P=Math.min(...x)*.01;return{widths:A.filter(S=>S>=b[0]*P),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:b,kind:"w"}:{widths:[...new Set([y,y*2].map(C=>A.find(x=>x>=C)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:b,width:A,quality:_,sizes:C,loader:x}=h;if(b)return{src:g,srcSet:void 0,sizes:void 0};const{widths:P,kind:S}=p(y,A,C),I=P.length-1;return{sizes:!C&&S==="w"?"100vw":C,srcSet:P.map(($,w)=>x({config:y,src:g,quality:_,width:$})+" "+(S==="w"?$:w+1)+S).join(", "),src:x({config:y,src:g,quality:_,width:P[I]})}}function m(h,y){let{src:g,sizes:b,unoptimized:A=!1,priority:_=!1,loading:C,className:x,quality:P,width:S,height:I,fill:$=!1,style:w,onLoad:N,onLoadingComplete:k,placeholder:B="empty",blurDataURL:R,fetchPriority:q,layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F,...ne}=h;const{imgConf:j,showAltText:T,blurComplete:D,defaultLoader:X}=y;let te,Z=j||n.imageConfigDefault;if("allSizes"in Z)te=Z;else{const G=[...Z.deviceSizes,...Z.imageSizes].sort((Ce,Q)=>Ce-Q),le=Z.deviceSizes.sort((Ce,Q)=>Ce-Q);te={...Z,allSizes:G,deviceSizes:le}}let M=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in M;if(J){if(te.loader==="custom")throw new Error('Image with src "'+g+`" is missing "loader" prop.
5
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const G=M;M=le=>{const{config:Ce,...Q}=le;return G(Q)}}if(z){z==="fill"&&($=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},le={responsive:"100vw",fill:"100vw"},Ce=G[z];Ce&&(w={...w,...Ce});const Q=le[z];Q&&!b&&(b=Q)}let Y="",ee=f(S),L=f(I),O,re;if(c(g)){const G=i(g)?g.default:g;if(!G.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(G));if(!G.height||!G.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(G));if(O=G.blurWidth,re=G.blurHeight,R=R||G.blurDataURL,Y=G.src,!$){if(!ee&&!L)ee=G.width,L=G.height;else if(ee&&!L){const le=ee/G.width;L=Math.round(G.height*le)}else if(!ee&&L){const le=L/G.height;ee=Math.round(G.width*le)}}}g=typeof g=="string"?g:Y;let se=!_&&(C==="lazy"||typeof C>"u");(!g||g.startsWith("data:")||g.startsWith("blob:"))&&(A=!0,se=!1),te.unoptimized&&(A=!0),J&&g.endsWith(".svg")&&!te.dangerouslyAllowSVG&&(A=!0),_&&(q="high");const ce=f(P);if(process.env.NODE_ENV!=="production"){if(te.output==="export"&&J&&!A)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!g)A=!0;else if($){if(S)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(I)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(w!=null&&w.width&&w.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(w!=null&&w.height&&w.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+S+'".');if(typeof L>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(L))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+I+'".')}if(!o.includes(C))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+C+'" should be one of '+o.map(String).join(",")+".");if(_&&C==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&ee&&L&&ee*L<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!R){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
6
  Possible solutions:
7
7
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
8
  - Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
9
9
  - Remove the "placeholder" property, effectively no blur effect
10
- Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=M({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
- Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const Ce of G.getEntries()){var ue;const Q=(Ce==null||(ue=Ce.element)==null?void 0:ue.src)||"",oe=l.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
- Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const le=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},E),se=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:w||"",objectFit:le.objectFit})+'")':'url("'+B+'")':null;let H=se?{backgroundSize:le.objectFit||"cover",backgroundPosition:le.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:se}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&B==="blur"&&w!=null&&w.startsWith("/")&&(H.backgroundImage='url("'+w+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}l.set(G.href,{src:g,priority:_,placeholder:B})}return{props:{...ne,loading:ae?"lazy":C,fetchPriority:q,width:ee,height:L,decoding:"async",className:x,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(Ao);var Yn={exports:{}},Mt={exports:{}},Ir={},Ci;function up(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=R,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ir)),Ir}var Nr={},Si;function dp(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Nr)),Nr}var Or={},Ai;function ll(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(R).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Or)),Or}var Tr={},Ei;function fp(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Tr)),Tr}var Ri;function pp(){return Ri||(Ri=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var C in _)Object.defineProperty(A,C,{enumerable:!0,get:_[C]})}r(t,{defaultHead:function(){return p},default:function(){return v}});const n=Re,i=et._(R),a=n._(up()),c=dp(),l=ll(),u=fp(),f=ht;function p(A){A===void 0&&(A=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===i.default.Fragment?A.concat(i.default.Children.toArray(_.props.children).reduce((C,x)=>typeof x=="string"||typeof x=="number"?C:C.concat(x),[])):A.concat(_)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,C=new Set,x={};return P=>{let S=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const $=P.key.slice(P.key.indexOf("$")+1);A.has($)?S=!1:A.add($)}switch(P.type){case"title":case"base":_.has(P.type)?S=!1:_.add(P.type);break;case"meta":for(let $=0,E=m.length;$<E;$++){const N=m[$];if(P.props.hasOwnProperty(N))if(N==="charSet")C.has(N)?S=!1:C.add(N);else{const k=P.props[N],B=x[N]||new Set;(N!=="name"||!I)&&B.has(k)?S=!1:(B.add(k),x[N]=B)}}break}return S}}function y(A,_){const{inAmpMode:C}=_;return A.reduce(d,[]).reverse().concat(p(C).reverse()).filter(h()).reverse().map((x,P)=>{const S=x.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!C&&x.type==="link"&&x.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>x.props.href.startsWith(I))){const I={...x.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(x,I)}if(process.env.NODE_ENV==="development")if(x.type==="script"&&x.props.type!=="application/ld+json"){const I=x.props.src?'<script> tag with src="'+x.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
10
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=M({config:te,src:g,width:ee||400,quality:ce||75});let le;try{le=new URL(G)}catch{}(G===g||le&&le.pathname===g&&!le.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,le]of Object.entries({layout:z,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:F}))le&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!l&&window.PerformanceObserver){l=new PerformanceObserver(G=>{for(const Ce of G.getEntries()){var le;const Q=(Ce==null||(le=Ce.element)==null?void 0:le.src)||"",oe=u.get(Q);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
+ Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{l.observe({type:"largest-contentful-paint",buffered:!0})}catch(G){console.error(G)}}}const ue=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},T?{}:{color:"transparent"},w),ae=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:L,blurWidth:O,blurHeight:re,blurDataURL:R||"",objectFit:ue.objectFit})+'")':'url("'+B+'")':null;let H=ae?{backgroundSize:ue.objectFit||"cover",backgroundPosition:ue.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ae}:{};process.env.NODE_ENV==="development"&&H.backgroundImage&&B==="blur"&&R!=null&&R.startsWith("/")&&(H.backgroundImage='url("'+R+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:b,loader:M});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let G;try{G=new URL(he.src)}catch{G=new URL(he.src,window.location.href)}u.set(G.href,{src:g,priority:_,placeholder:B})}return{props:{...ne,loading:se?"lazy":C,fetchPriority:q,width:ee,height:L,decoding:"async",className:x,style:{...ue,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:B,fill:$}}}})(jo);var Zn={exports:{}},Dt={exports:{}},Ir={},Ai;function Ip(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=E,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:u}=a;function l(){if(c&&c.mountedInstances){const p=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(u(p,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),l()}return n(()=>{var p;return c==null||(p=c.mountedInstances)==null||p.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),n(()=>(c&&(c._pendingUpdate=l),()=>{c&&(c._pendingUpdate=l)})),o(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ir)),Ir}var Nr={},Ei;function Np(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Re._(E).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Nr)),Nr}var Or={},wi;function Eu(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Re._(E).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Or)),Or}var Tr={},Ri;function Op(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:i=!1}=r===void 0?{}:r;return n||o&&i}}(Tr)),Tr}var ji;function Tp(){return ji||(ji=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var C in _)Object.defineProperty(A,C,{enumerable:!0,get:_[C]})}r(t,{defaultHead:function(){return p},default:function(){return b}});const n=Re,i=nt._(E),a=n._(Ip()),c=Np(),u=Eu(),l=Op(),f=_t;function p(A){A===void 0&&(A=!1);const _=[i.default.createElement("meta",{charSet:"utf-8"})];return A||_.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),_}function d(A,_){return typeof _=="string"||typeof _=="number"?A:_.type===i.default.Fragment?A.concat(i.default.Children.toArray(_.props.children).reduce((C,x)=>typeof x=="string"||typeof x=="number"?C:C.concat(x),[])):A.concat(_)}const m=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,C=new Set,x={};return P=>{let S=!0,I=!1;if(P.key&&typeof P.key!="number"&&P.key.indexOf("$")>0){I=!0;const $=P.key.slice(P.key.indexOf("$")+1);A.has($)?S=!1:A.add($)}switch(P.type){case"title":case"base":_.has(P.type)?S=!1:_.add(P.type);break;case"meta":for(let $=0,w=m.length;$<w;$++){const N=m[$];if(P.props.hasOwnProperty(N))if(N==="charSet")C.has(N)?S=!1:C.add(N);else{const k=P.props[N],B=x[N]||new Set;(N!=="name"||!I)&&B.has(k)?S=!1:(B.add(k),x[N]=B)}}break}return S}}function y(A,_){const{inAmpMode:C}=_;return A.reduce(d,[]).reverse().concat(p(C).reverse()).filter(h()).reverse().map((x,P)=>{const S=x.key||P;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!C&&x.type==="link"&&x.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(I=>x.props.href.startsWith(I))){const I={...x.props||{}};return I["data-href"]=I.href,I.href=void 0,I["data-optimized-fonts"]=!0,i.default.cloneElement(x,I)}if(process.env.NODE_ENV==="development")if(x.type==="script"&&x.props.type!=="application/ld+json"){const I=x.props.src?'<script> tag with src="'+x.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+I+`). Use next/script instead.
14
14
  See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else x.type==="link"&&x.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+x.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(x,{key:S})})}function g(A){let{children:_}=A;const C=(0,i.useContext)(c.AmpStateContext),x=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:x,inAmpMode:(0,u.isInAmpMode)(C)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Mt,Mt.exports)),Mt.exports}var Mr={},wi;function mp(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(R),n=Xt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Mr)),Mr}var kr={},Lr={},Dr={exports:{}};const hp=_d(Te.__viteBrowserExternal);var $r={},Br={},qr,ji;function ul(){return ji||(ji=1,qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),qr}var Hr,Pi;function Qt(){if(Pi)return Hr;Pi=1;var e=ul();return Hr=function(){return e()&&!!Symbol.toStringTag},Hr}var Fr,Ii;function dl(){return Ii||(Ii=1,Fr=Object),Fr}var zr,Ni;function gp(){return Ni||(Ni=1,zr=Error),zr}var Ur,Oi;function yp(){return Oi||(Oi=1,Ur=EvalError),Ur}var Gr,Ti;function _p(){return Ti||(Ti=1,Gr=RangeError),Gr}var Wr,Mi;function vp(){return Mi||(Mi=1,Wr=ReferenceError),Wr}var Vr,ki;function fl(){return ki||(ki=1,Vr=SyntaxError),Vr}var Kr,Li;function gt(){return Li||(Li=1,Kr=TypeError),Kr}var Xr,Di;function bp(){return Di||(Di=1,Xr=URIError),Xr}var Qr,$i;function xp(){return $i||($i=1,Qr=Math.abs),Qr}var Yr,Bi;function Cp(){return Bi||(Bi=1,Yr=Math.floor),Yr}var Zr,qi;function Sp(){return qi||(qi=1,Zr=Math.max),Zr}var Jr,Hi;function Ap(){return Hi||(Hi=1,Jr=Math.min),Jr}var en,Fi;function Ep(){return Fi||(Fi=1,en=Math.pow),en}var tn,zi;function Rp(){return zi||(zi=1,tn=Math.round),tn}var rn,Ui;function wp(){return Ui||(Ui=1,rn=Number.isNaN||function(t){return t!==t}),rn}var nn,Gi;function jp(){if(Gi)return nn;Gi=1;var e=wp();return nn=function(r){return e(r)||r===0?r:r<0?-1:1},nn}var on,Wi;function Pp(){return Wi||(Wi=1,on=Object.getOwnPropertyDescriptor),on}var an,Vi;function ot(){if(Vi)return an;Vi=1;var e=Pp();if(e)try{e([],"length")}catch{e=null}return an=e,an}var sn,Ki;function Yt(){if(Ki)return sn;Ki=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return sn=e,sn}var cn,Xi;function Ip(){if(Xi)return cn;Xi=1;var e=typeof Symbol<"u"&&Symbol,t=ul();return cn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},cn}var ln,Qi;function pl(){return Qi||(Qi=1,ln=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ln}var un,Yi;function ml(){if(Yi)return un;Yi=1;var e=dl();return un=e.getPrototypeOf||null,un}var dn,Zi;function Np(){if(Zi)return dn;Zi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var f=[],p=0;p<l.length;p+=1)f[p]=l[p];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],p=u,d=0;p<l.length;p+=1,d+=1)f[d]=l[p];return f},a=function(c,l){for(var u="",f=0;f<c.length;f+=1)u+=c[f],f+1<c.length&&(u+=l);return u};return dn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var v=u.apply(this,o(f,arguments));return Object(v)===v?v:this}return u.apply(l,o(f,arguments))},m=r(0,u.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,p.prototype=new g,g.prototype=null}return p},dn}var fn,Ji;function yt(){if(Ji)return fn;Ji=1;var e=Np();return fn=Function.prototype.bind||e,fn}var pn,ea;function Eo(){return ea||(ea=1,pn=Function.prototype.call),pn}var mn,ta;function Ro(){return ta||(ta=1,mn=Function.prototype.apply),mn}var hn,ra;function Op(){return ra||(ra=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var gn,na;function hl(){if(na)return gn;na=1;var e=yt(),t=Ro(),r=Eo(),n=Op();return gn=n||e.call(r,t),gn}var yn,oa;function wo(){if(oa)return yn;oa=1;var e=yt(),t=gt(),r=Eo(),n=hl();return yn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yn}var _n,ia;function Tp(){if(ia)return _n;ia=1;var e=wo(),t=ot(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _n=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,_n}var vn,aa;function jo(){if(aa)return vn;aa=1;var e=pl(),t=ml(),r=Tp();return vn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,vn}var bn,sa;function gl(){if(sa)return bn;sa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=yt();return bn=r.call(e,t),bn}var xn,ca;function yl(){if(ca)return xn;ca=1;var e,t=dl(),r=gp(),n=yp(),o=_p(),i=vp(),a=fl(),c=gt(),l=bp(),u=xp(),f=Cp(),p=Sp(),d=Ap(),m=Ep(),h=Rp(),y=jp(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=ot(),_=Yt(),C=function(){throw new c},x=A?function(){try{return arguments.callee,C}catch{try{return A(arguments,"callee").get}catch{return C}}}():C,P=Ip()(),S=jo(),I=ml(),$=pl(),E=Ro(),N=Eo(),k={},B=typeof Uint8Array>"u"||!S?e:S(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&S?S([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&S?S(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%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%":E,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(S)try{null.error}catch(J){var q=S(S(J));w["%Error.prototype%"]=q}var z=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=v("async function () {}");else if(Y==="%GeneratorFunction%")ee=v("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=v("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&S&&(ee=S(O.prototype))}return w[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=yt(),W=gl(),F=K.call(N,Array.prototype.concat),ne=K.call(E,Array.prototype.splice),j=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return j(Y,X,function(re,ae,ce,le){O[O.length]=ce?j(le,te,"$1"):ae||re}),O},M=function(Y,ee){var L=Y,O;if(W(U,L)&&(O=U[L],L="%"+O[0]+"%"),W(w,L)){var re=w[L];if(re===k&&(re=z(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return xn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(O=se[0],ne(L,F([0,1],se)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),G=T(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(le=!0),O+="."+ie,ae="%"+O+"%",W(w,ae))ce=w[ae];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var ue=A(ce,ie);he=!!ue,he&&"get"in ue&&!("originalValue"in ue.get)?ce=ue.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!le&&(w[ae]=ce)}}return ce},xn}var Cn,la;function _t(){if(la)return Cn;la=1;var e=yl(),t=wo(),r=t([e("%String.prototype.indexOf%")]);return Cn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Cn}var Sn,ua;function Mp(){if(ua)return Sn;ua=1;var e=Qt()(),t=_t(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Sn=i?n:o,Sn}var An,da;function kp(){if(da)return An;da=1;var e=_t(),t=Qt()(),r=gl(),n=ot(),o;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),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,l)}catch(y){return y===a}}}else{var u=e("Object.prototype.toString"),f="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===f}}return An=o,An}var En,fa;function Lp(){if(fa)return En;fa=1;var e=_t(),t=kp(),r=e("RegExp.prototype.exec"),n=gt();return En=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},En}var Rn,pa;function Dp(){if(pa)return Rn;pa=1;var e=_t(),t=Lp(),r=t(/^\s*(?:function)?\*/),n=Qt()(),o=jo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return Rn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(f)===l},Rn}var wn,ma;function $p(){if(ma)return wn;ma=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(A){A!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var C=e.call(_);return o.test(C)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var v=document.all;c.call(v)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var C=c.call(_);return(C===p||C===d||C===m||C===l)&&_("")==null}catch{}return!1})}return wn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(C){if(C!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var C=c.call(_);return C!==u&&C!==f&&!/^\[object HTML/.test(C)?!1:a(_)},wn}var jn,ha;function Bp(){if(ha)return jn;ha=1;var e=$p(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var p=0,d=l.length;p<d;p++)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))},o=function(l,u,f){for(var p=0,d=l.length;p<d;p++)f==null?u(l.charAt(p),p,l):u.call(f,l.charAt(p),p,l)},i=function(l,u,f){for(var p in l)r.call(l,p)&&(f==null?u(l[p],p,l):u.call(f,l[p],p,l))};function a(c){return t.call(c)==="[object Array]"}return jn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(l)?n(l,u,p):typeof l=="string"?o(l,u,p):i(l,u,p)},jn}var Pn,ga;function qp(){return ga||(ga=1,Pn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Pn}var In,ya;function Hp(){if(ya)return In;ya=1;var e=qp(),t=typeof globalThis>"u"?yc:globalThis;return In=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},In}var Nn={exports:{}},On,_a;function Fp(){if(_a)return On;_a=1;var e=Yt(),t=fl(),r=gt(),n=ot();return On=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(p||!l&&!u&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},On}var Tn,va;function zp(){if(va)return Tn;va=1;var e=Yt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Tn=t,Tn}var Mn,ba;function Up(){if(ba)return Mn;ba=1;var e=yl(),t=Fp(),r=zp()(),n=ot(),o=gt(),i=e("%Math.floor%");return Mn=function(c,l){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new o("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Mn}var kn,xa;function Gp(){if(xa)return kn;xa=1;var e=yt(),t=Ro(),r=hl();return kn=function(){return r(e,t,arguments)},kn}var Ca;function Wp(){return Ca||(Ca=1,function(e){var t=Up(),r=Yt(),n=wo(),o=Gp();e.exports=function(a){var c=n(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Nn)),Nn.exports}var Ln,Sa;function _l(){if(Sa)return Ln;Sa=1;var e=Bp(),t=Hp(),r=Wp(),n=_t(),o=ot(),i=jo(),a=n("Object.prototype.toString"),c=Qt()(),l=typeof globalThis>"u"?yc:globalThis,u=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,v){for(var A=0;A<g.length;A+=1)if(g[A]===v)return A;return-1},d={__proto__:null};c&&o&&i?e(u,function(y){var g=new l[y];if(Symbol.toStringTag in g&&i){var v=i(g),A=o(v,Symbol.toStringTag);if(!A&&v){var _=i(v);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(u,function(y){var g=new l[y],v=g.slice||g.set;v&&(d["$"+y]=r(v))});var m=function(g){var v=!1;return e(d,function(A,_){if(!v)try{"$"+A(g)===_&&(v=f(_,1))}catch{}}),v},h=function(g){var v=!1;return e(d,function(A,_){if(!v)try{A(g),v=f(_,1)}catch{}}),v};return Ln=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=f(a(g),8,-1);return p(u,v)>-1?v:v!=="Object"?!1:h(g)}return o?m(g):null},Ln}var Dn,Aa;function Vp(){if(Aa)return Dn;Aa=1;var e=_l();return Dn=function(r){return!!e(r)},Dn}var Ea;function Kp(){return Ea||(Ea=1,function(e){var t=Mp(),r=Dp(),n=_l(),o=Vp();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function v(H){return n(H)==="Uint8Array"}e.isUint8Array=v;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function C(H){return n(H)==="Uint32Array"}e.isUint32Array=C;function x(H){return n(H)==="Int8Array"}e.isInt8Array=x;function P(H){return n(H)==="Int16Array"}e.isInt16Array=P;function S(H){return n(H)==="Int32Array"}e.isInt32Array=S;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function E(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=E;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function k(H){return l(H)==="[object Map]"}k.working=typeof Map<"u"&&k(new Map);function B(H){return typeof Map>"u"?!1:k.working?k(H):H instanceof Map}e.isMap=B;function w(H){return l(H)==="[object Set]"}w.working=typeof Set<"u"&&w(new Set);function q(H){return typeof Set>"u"?!1:w.working?w(H):H instanceof Set}e.isSet=q;function z(H){return l(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return l(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function F(H){return l(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function j(H){return l(H)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:j.working?j(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return l(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return l(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return l(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,u)}e.isNumberObject=L;function O(H){return h(H,f)}e.isStringObject=O;function re(H){return h(H,p)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function le(H){return L(H)||O(H)||re(H)||ae(H)||ce(H)}e.isBoxedPrimitive=le;function se(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Br)),Br}var $n,Ra;function Xp(){return Ra||(Ra=1,$n=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),$n}var kt={exports:{}},wa;function Qp(){return wa||(wa=1,typeof Object.create=="function"?kt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:kt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),kt.exports}var ja;function Yp(){return ja||(ja=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(j){if(!x(j)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(j).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),M=X[D];D<te;M=X[++D])A(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(j,T){if(typeof process<"u"&&process.noDeprecation===!0)return j;if(typeof process>"u")return function(){return e.deprecate(j,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return j.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!n[j])if(o.test(j)){var T=process.pid;n[j]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",j,T,D)}}else n[j]=function(){};return n[j]};function a(j,T){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),v(T)?D.showHidden=T:T&&e._extend(D,T),S(D.showHidden)&&(D.showHidden=!1),S(D.depth)&&(D.depth=2),S(D.colors)&&(D.colors=!1),S(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,j,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(j,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+j+"\x1B["+a.colors[D][1]+"m":j}function l(j,T){return j}function u(j){var T={};return j.forEach(function(D,X){T[D]=!0}),T}function f(j,T,D){if(j.customInspect&&T&&k(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,j);return x(X)||(X=f(j,X,D)),X}var te=p(j,T);if(te)return te;var Z=Object.keys(T),M=u(Z);if(j.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(k(T)){var J=T.name?": "+T.name:"";return j.stylize("[Function"+J+"]","special")}if(I(T))return j.stylize(RegExp.prototype.toString.call(T),"regexp");if(E(T))return j.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),k(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),E(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?j.stylize(RegExp.prototype.toString.call(T),"regexp"):j.stylize("[Object]","special");j.seen.push(T);var re;return ee?re=m(j,T,D,M,Z):re=Z.map(function(ae){return h(j,T,D,M,ae,ee)}),j.seen.pop(),y(re,Y,L)}function p(j,T){if(S(T))return j.stylize("undefined","undefined");if(x(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(D,"string")}if(C(T))return j.stylize(""+T,"number");if(v(T))return j.stylize(""+T,"boolean");if(A(T))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function m(j,T,D,X,te){for(var Z=[],M=0,J=T.length;M<J;++M)K(T,String(M))?Z.push(h(j,T,D,X,String(M),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(j,T,D,X,Y,!0))}),Z}function h(j,T,D,X,te,Z){var M,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Y.get?Y.set?J=j.stylize("[Getter/Setter]","special"):J=j.stylize("[Getter]","special"):Y.set&&(J=j.stylize("[Setter]","special")),K(X,te)||(M="["+te+"]"),J||(j.seen.indexOf(Y.value)<0?(A(D)?J=f(j,Y.value,null):J=f(j,Y.value,D-1),J.indexOf(`
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(x,{key:S})})}function g(A){let{children:_}=A;const C=(0,i.useContext)(c.AmpStateContext),x=(0,i.useContext)(u.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:x,inAmpMode:(0,l.isInAmpMode)(C)},_)}const b=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}var Mr={},Pi;function Mp(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Re._(E),n=Yt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(Mr)),Mr}var kr={},Lr={},Dr={exports:{}};const kp=qd(Te.__viteBrowserExternal);var $r={},Br={},qr,Ii;function wu(){return Ii||(Ii=1,qr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),qr}var Hr,Ni;function Zt(){if(Ni)return Hr;Ni=1;var e=wu();return Hr=function(){return e()&&!!Symbol.toStringTag},Hr}var Fr,Oi;function Ru(){return Oi||(Oi=1,Fr=Object),Fr}var zr,Ti;function Lp(){return Ti||(Ti=1,zr=Error),zr}var Ur,Mi;function Dp(){return Mi||(Mi=1,Ur=EvalError),Ur}var Gr,ki;function $p(){return ki||(ki=1,Gr=RangeError),Gr}var Wr,Li;function Bp(){return Li||(Li=1,Wr=ReferenceError),Wr}var Vr,Di;function ju(){return Di||(Di=1,Vr=SyntaxError),Vr}var Kr,$i;function vt(){return $i||($i=1,Kr=TypeError),Kr}var Xr,Bi;function qp(){return Bi||(Bi=1,Xr=URIError),Xr}var Qr,qi;function Hp(){return qi||(qi=1,Qr=Math.abs),Qr}var Yr,Hi;function Fp(){return Hi||(Hi=1,Yr=Math.floor),Yr}var Zr,Fi;function zp(){return Fi||(Fi=1,Zr=Math.max),Zr}var Jr,zi;function Up(){return zi||(zi=1,Jr=Math.min),Jr}var en,Ui;function Gp(){return Ui||(Ui=1,en=Math.pow),en}var tn,Gi;function Wp(){return Gi||(Gi=1,tn=Math.round),tn}var rn,Wi;function Vp(){return Wi||(Wi=1,rn=Number.isNaN||function(t){return t!==t}),rn}var nn,Vi;function Kp(){if(Vi)return nn;Vi=1;var e=Vp();return nn=function(r){return e(r)||r===0?r:r<0?-1:1},nn}var on,Ki;function Xp(){return Ki||(Ki=1,on=Object.getOwnPropertyDescriptor),on}var sn,Xi;function st(){if(Xi)return sn;Xi=1;var e=Xp();if(e)try{e([],"length")}catch{e=null}return sn=e,sn}var an,Qi;function Jt(){if(Qi)return an;Qi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return an=e,an}var cn,Yi;function Qp(){if(Yi)return cn;Yi=1;var e=typeof Symbol<"u"&&Symbol,t=wu();return cn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},cn}var un,Zi;function Pu(){return Zi||(Zi=1,un=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),un}var ln,Ji;function Iu(){if(Ji)return ln;Ji=1;var e=Ru();return ln=e.getPrototypeOf||null,ln}var dn,es;function Yp(){if(es)return dn;es=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,l){for(var f=[],p=0;p<u.length;p+=1)f[p]=u[p];for(var d=0;d<l.length;d+=1)f[d+u.length]=l[d];return f},i=function(u,l){for(var f=[],p=l,d=0;p<u.length;p+=1,d+=1)f[d]=u[p];return f},a=function(c,u){for(var l="",f=0;f<c.length;f+=1)l+=c[f],f+1<c.length&&(l+=u);return l};return dn=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var f=i(arguments,1),p,d=function(){if(this instanceof p){var b=l.apply(this,o(f,arguments));return Object(b)===b?b:this}return l.apply(u,o(f,arguments))},m=r(0,l.length-f.length),h=[],y=0;y<m;y++)h[y]="$"+y;if(p=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,p.prototype=new g,g.prototype=null}return p},dn}var fn,ts;function bt(){if(ts)return fn;ts=1;var e=Yp();return fn=Function.prototype.bind||e,fn}var pn,rs;function Po(){return rs||(rs=1,pn=Function.prototype.call),pn}var mn,ns;function Io(){return ns||(ns=1,mn=Function.prototype.apply),mn}var hn,os;function Zp(){return os||(os=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var gn,is;function Nu(){if(is)return gn;is=1;var e=bt(),t=Io(),r=Po(),n=Zp();return gn=n||e.call(r,t),gn}var yn,ss;function No(){if(ss)return yn;ss=1;var e=bt(),t=vt(),r=Po(),n=Nu();return yn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yn}var _n,as;function Jp(){if(as)return _n;as=1;var e=No(),t=st(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _n=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,_n}var vn,cs;function Oo(){if(cs)return vn;cs=1;var e=Pu(),t=Iu(),r=Jp();return vn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,vn}var bn,us;function Ou(){if(us)return bn;us=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=bt();return bn=r.call(e,t),bn}var xn,ls;function Tu(){if(ls)return xn;ls=1;var e,t=Ru(),r=Lp(),n=Dp(),o=$p(),i=Bp(),a=ju(),c=vt(),u=qp(),l=Hp(),f=Fp(),p=zp(),d=Up(),m=Gp(),h=Wp(),y=Kp(),g=Function,b=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=st(),_=Jt(),C=function(){throw new c},x=A?function(){try{return arguments.callee,C}catch{try{return A(arguments,"callee").get}catch{return C}}}():C,P=Qp()(),S=Oo(),I=Iu(),$=Pu(),w=Io(),N=Po(),k={},B=typeof Uint8Array>"u"||!S?e:S(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":P&&S?S([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&S?S(""[Symbol.iterator]()):e,"%Symbol%":P?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%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%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":$};if(S)try{null.error}catch(J){var q=S(S(J));R["%Error.prototype%"]=q}var z=function J(Y){var ee;if(Y==="%AsyncFunction%")ee=b("async function () {}");else if(Y==="%GeneratorFunction%")ee=b("function* () {}");else if(Y==="%AsyncGeneratorFunction%")ee=b("async function* () {}");else if(Y==="%AsyncGenerator%"){var L=J("%AsyncGeneratorFunction%");L&&(ee=L.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&S&&(ee=S(O.prototype))}return R[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=bt(),W=Ou(),F=K.call(N,Array.prototype.concat),ne=K.call(w,Array.prototype.splice),j=K.call(N,String.prototype.replace),T=K.call(N,String.prototype.slice),D=K.call(N,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=T(Y,0,1),L=T(Y,-1);if(ee==="%"&&L!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return j(Y,X,function(re,se,ce,ue){O[O.length]=ce?j(ue,te,"$1"):se||re}),O},M=function(Y,ee){var L=Y,O;if(W(U,L)&&(O=U[L],L="%"+O[0]+"%"),W(R,L)){var re=R[L];if(re===k&&(re=z(L)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:L,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return xn=function(Y,ee){if(typeof Y!="string"||Y.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Z(Y),O=L.length>0?L[0]:"",re=M("%"+O+"%",ee),se=re.name,ce=re.value,ue=!1,ae=re.alias;ae&&(O=ae[0],ne(L,F([0,1],ae)));for(var H=1,he=!0;H<L.length;H+=1){var ie=L[H],me=T(ie,0,1),G=T(ie,-1);if((me==='"'||me==="'"||me==="`"||G==='"'||G==="'"||G==="`")&&me!==G)throw new a("property names with quotes must have matching quotes");if((ie==="constructor"||!he)&&(ue=!0),O+="."+ie,se="%"+O+"%",W(R,se))ce=R[se];else if(ce!=null){if(!(ie in ce)){if(!ee)throw new c("base intrinsic for "+Y+" exists, but the property is not available.");return}if(A&&H+1>=L.length){var le=A(ce,ie);he=!!le,he&&"get"in le&&!("originalValue"in le.get)?ce=le.get:ce=ce[ie]}else he=W(ce,ie),ce=ce[ie];he&&!ue&&(R[se]=ce)}}return ce},xn}var Cn,ds;function xt(){if(ds)return Cn;ds=1;var e=Tu(),t=No(),r=t([e("%String.prototype.indexOf%")]);return Cn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Cn}var Sn,fs;function em(){if(fs)return Sn;fs=1;var e=Zt()(),t=xt(),r=t("Object.prototype.toString"),n=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},o=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,Sn=i?n:o,Sn}var An,ps;function tm(){if(ps)return An;ps=1;var e=xt(),t=Zt()(),r=Ou(),n=st(),o;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},u={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c),o=function(d){if(!d||typeof d!="object")return!1;var m=n(d,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{i(d,u)}catch(y){return y===a}}}else{var l=e("Object.prototype.toString"),f="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===f}}return An=o,An}var En,ms;function rm(){if(ms)return En;ms=1;var e=xt(),t=tm(),r=e("RegExp.prototype.exec"),n=vt();return En=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},En}var wn,hs;function nm(){if(hs)return wn;hs=1;var e=xt(),t=rm(),r=t(/^\s*(?:function)?\*/),n=Zt()(),o=Oo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},u;return wn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var p=i(f);return p==="[object GeneratorFunction]"}if(!o)return!1;if(typeof u>"u"){var d=c();u=d?o(d):!1}return o(f)===u},wn}var Rn,gs;function om(){if(gs)return Rn;gs=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(A){A!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(_){try{var C=e.call(_);return o.test(C)}catch{return!1}},a=function(_){try{return i(_)?!1:(e.call(_),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(g=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var C=c.call(_);return(C===p||C===d||C===m||C===u)&&_("")==null}catch{}return!1})}return Rn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(C){if(C!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var C=c.call(_);return C!==l&&C!==f&&!/^\[object HTML/.test(C)?!1:a(_)},Rn}var jn,ys;function im(){if(ys)return jn;ys=1;var e=om(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,f){for(var p=0,d=u.length;p<d;p++)r.call(u,p)&&(f==null?l(u[p],p,u):l.call(f,u[p],p,u))},o=function(u,l,f){for(var p=0,d=u.length;p<d;p++)f==null?l(u.charAt(p),p,u):l.call(f,u.charAt(p),p,u)},i=function(u,l,f){for(var p in u)r.call(u,p)&&(f==null?l(u[p],p,u):l.call(f,u[p],p,u))};function a(c){return t.call(c)==="[object Array]"}return jn=function(u,l,f){if(!e(l))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),a(u)?n(u,l,p):typeof u=="string"?o(u,l,p):i(u,l,p)},jn}var Pn,_s;function sm(){return _s||(_s=1,Pn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Pn}var In,vs;function am(){if(vs)return In;vs=1;var e=sm(),t=typeof globalThis>"u"?Sc:globalThis;return In=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},In}var Nn={exports:{}},On,bs;function cm(){if(bs)return On;bs=1;var e=Jt(),t=ju(),r=vt(),n=st();return On=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 u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:f===null&&d?d.configurable:!f,enumerable:u===null&&d?d.enumerable:!u,value:c,writable:l===null&&d?d.writable:!l});else if(p||!u&&!l&&!f)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},On}var Tn,xs;function um(){if(xs)return Tn;xs=1;var e=Jt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Tn=t,Tn}var Mn,Cs;function lm(){if(Cs)return Mn;Cs=1;var e=Tu(),t=cm(),r=um()(),n=st(),o=vt(),i=e("%Math.floor%");return Mn=function(c,u){if(typeof c!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||i(u)!==u)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(p=!1)}return(f||p||!l)&&(r?t(c,"length",u,!0,!0):t(c,"length",u)),c},Mn}var kn,Ss;function dm(){if(Ss)return kn;Ss=1;var e=bt(),t=Io(),r=Nu();return kn=function(){return r(e,t,arguments)},kn}var As;function fm(){return As||(As=1,function(e){var t=lm(),r=Jt(),n=No(),o=dm();e.exports=function(a){var c=n(arguments),u=a.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Nn)),Nn.exports}var Ln,Es;function Mu(){if(Es)return Ln;Es=1;var e=im(),t=am(),r=fm(),n=xt(),o=st(),i=Oo(),a=n("Object.prototype.toString"),c=Zt()(),u=typeof globalThis>"u"?Sc:globalThis,l=t(),f=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(g,b){for(var A=0;A<g.length;A+=1)if(g[A]===b)return A;return-1},d={__proto__:null};c&&o&&i?e(l,function(y){var g=new u[y];if(Symbol.toStringTag in g&&i){var b=i(g),A=o(b,Symbol.toStringTag);if(!A&&b){var _=i(b);A=o(_,Symbol.toStringTag)}d["$"+y]=r(A.get)}}):e(l,function(y){var g=new u[y],b=g.slice||g.set;b&&(d["$"+y]=r(b))});var m=function(g){var b=!1;return e(d,function(A,_){if(!b)try{"$"+A(g)===_&&(b=f(_,1))}catch{}}),b},h=function(g){var b=!1;return e(d,function(A,_){if(!b)try{A(g),b=f(_,1)}catch{}}),b};return Ln=function(g){if(!g||typeof g!="object")return!1;if(!c){var b=f(a(g),8,-1);return p(l,b)>-1?b:b!=="Object"?!1:h(g)}return o?m(g):null},Ln}var Dn,ws;function pm(){if(ws)return Dn;ws=1;var e=Mu();return Dn=function(r){return!!e(r)},Dn}var Rs;function mm(){return Rs||(Rs=1,function(e){var t=em(),r=nm(),n=Mu(),o=pm();function i(H){return H.call.bind(H)}var a=typeof BigInt<"u",c=typeof Symbol<"u",u=i(Object.prototype.toString),l=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function h(H,he){if(typeof H!="object")return!1;try{return he(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function g(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):o(H)||T(H)}e.isArrayBufferView=g;function b(H){return n(H)==="Uint8Array"}e.isUint8Array=b;function A(H){return n(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function _(H){return n(H)==="Uint16Array"}e.isUint16Array=_;function C(H){return n(H)==="Uint32Array"}e.isUint32Array=C;function x(H){return n(H)==="Int8Array"}e.isInt8Array=x;function P(H){return n(H)==="Int16Array"}e.isInt16Array=P;function S(H){return n(H)==="Int32Array"}e.isInt32Array=S;function I(H){return n(H)==="Float32Array"}e.isFloat32Array=I;function $(H){return n(H)==="Float64Array"}e.isFloat64Array=$;function w(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=w;function N(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=N;function k(H){return u(H)==="[object Map]"}k.working=typeof Map<"u"&&k(new Map);function B(H){return typeof Map>"u"?!1:k.working?k(H):H instanceof Map}e.isMap=B;function R(H){return u(H)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function q(H){return typeof Set>"u"?!1:R.working?R(H):H instanceof Set}e.isSet=q;function z(H){return u(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=U;function K(H){return u(H)==="[object WeakSet]"}K.working=typeof WeakSet<"u"&&K(new WeakSet);function W(H){return K(H)}e.isWeakSet=W;function F(H){return u(H)==="[object ArrayBuffer]"}F.working=typeof ArrayBuffer<"u"&&F(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:F.working?F(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function j(H){return u(H)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function T(H){return typeof DataView>"u"?!1:j.working?j(H):H instanceof DataView}e.isDataView=T;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return u(H)==="[object SharedArrayBuffer]"}function te(H){return typeof D>"u"?!1:(typeof X.working>"u"&&(X.working=X(new D)),X.working?X(H):H instanceof D)}e.isSharedArrayBuffer=te;function Z(H){return u(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function M(H){return u(H)==="[object Map Iterator]"}e.isMapIterator=M;function J(H){return u(H)==="[object Set Iterator]"}e.isSetIterator=J;function Y(H){return u(H)==="[object Generator]"}e.isGeneratorObject=Y;function ee(H){return u(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ee;function L(H){return h(H,l)}e.isNumberObject=L;function O(H){return h(H,f)}e.isStringObject=O;function re(H){return h(H,p)}e.isBooleanObject=re;function se(H){return a&&h(H,d)}e.isBigIntObject=se;function ce(H){return c&&h(H,m)}e.isSymbolObject=ce;function ue(H){return L(H)||O(H)||re(H)||se(H)||ce(H)}e.isBoxedPrimitive=ue;function ae(H){return typeof Uint8Array<"u"&&(ne(H)||te(H))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(Br)),Br}var $n,js;function hm(){return js||(js=1,$n=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),$n}var $t={exports:{}},Ps;function gm(){return Ps||(Ps=1,typeof Object.create=="function"?$t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$t.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$t.exports}var Is;function ym(){return Is||(Is=1,function(e){var t=Object.getOwnPropertyDescriptors||function(T){for(var D=Object.keys(T),X={},te=0;te<D.length;te++)X[D[te]]=Object.getOwnPropertyDescriptor(T,D[te]);return X},r=/%[sdj%]/g;e.format=function(j){if(!x(j)){for(var T=[],D=0;D<arguments.length;D++)T.push(a(arguments[D]));return T.join(" ")}for(var D=1,X=arguments,te=X.length,Z=String(j).replace(r,function(J){if(J==="%%")return"%";if(D>=te)return J;switch(J){case"%s":return String(X[D++]);case"%d":return Number(X[D++]);case"%j":try{return JSON.stringify(X[D++])}catch{return"[Circular]"}default:return J}}),M=X[D];D<te;M=X[++D])A(M)||!$(M)?Z+=" "+M:Z+=" "+a(M);return Z},e.deprecate=function(j,T){if(typeof process<"u"&&process.noDeprecation===!0)return j;if(typeof process>"u")return function(){return e.deprecate(j,T).apply(this,arguments)};var D=!1;function X(){if(!D){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),D=!0}return j.apply(this,arguments)}return X};var n={},o=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(j){if(j=j.toUpperCase(),!n[j])if(o.test(j)){var T=process.pid;n[j]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",j,T,D)}}else n[j]=function(){};return n[j]};function a(j,T){var D={seen:[],stylize:u};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(T)?D.showHidden=T:T&&e._extend(D,T),S(D.showHidden)&&(D.showHidden=!1),S(D.depth)&&(D.depth=2),S(D.colors)&&(D.colors=!1),S(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),f(D,j,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(j,T){var D=a.styles[T];return D?"\x1B["+a.colors[D][0]+"m"+j+"\x1B["+a.colors[D][1]+"m":j}function u(j,T){return j}function l(j){var T={};return j.forEach(function(D,X){T[D]=!0}),T}function f(j,T,D){if(j.customInspect&&T&&k(T.inspect)&&T.inspect!==e.inspect&&!(T.constructor&&T.constructor.prototype===T)){var X=T.inspect(D,j);return x(X)||(X=f(j,X,D)),X}var te=p(j,T);if(te)return te;var Z=Object.keys(T),M=l(Z);if(j.showHidden&&(Z=Object.getOwnPropertyNames(T)),N(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(T);if(Z.length===0){if(k(T)){var J=T.name?": "+T.name:"";return j.stylize("[Function"+J+"]","special")}if(I(T))return j.stylize(RegExp.prototype.toString.call(T),"regexp");if(w(T))return j.stylize(Date.prototype.toString.call(T),"date");if(N(T))return d(T)}var Y="",ee=!1,L=["{","}"];if(g(T)&&(ee=!0,L=["[","]"]),k(T)){var O=T.name?": "+T.name:"";Y=" [Function"+O+"]"}if(I(T)&&(Y=" "+RegExp.prototype.toString.call(T)),w(T)&&(Y=" "+Date.prototype.toUTCString.call(T)),N(T)&&(Y=" "+d(T)),Z.length===0&&(!ee||T.length==0))return L[0]+Y+L[1];if(D<0)return I(T)?j.stylize(RegExp.prototype.toString.call(T),"regexp"):j.stylize("[Object]","special");j.seen.push(T);var re;return ee?re=m(j,T,D,M,Z):re=Z.map(function(se){return h(j,T,D,M,se,ee)}),j.seen.pop(),y(re,Y,L)}function p(j,T){if(S(T))return j.stylize("undefined","undefined");if(x(T)){var D="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(D,"string")}if(C(T))return j.stylize(""+T,"number");if(b(T))return j.stylize(""+T,"boolean");if(A(T))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function m(j,T,D,X,te){for(var Z=[],M=0,J=T.length;M<J;++M)K(T,String(M))?Z.push(h(j,T,D,X,String(M),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(j,T,D,X,Y,!0))}),Z}function h(j,T,D,X,te,Z){var M,J,Y;if(Y=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]},Y.get?Y.set?J=j.stylize("[Getter/Setter]","special"):J=j.stylize("[Getter]","special"):Y.set&&(J=j.stylize("[Setter]","special")),K(X,te)||(M="["+te+"]"),J||(j.seen.indexOf(Y.value)<0?(A(D)?J=f(j,Y.value,null):J=f(j,Y.value,D-1),J.indexOf(`
16
16
  `)>-1&&(Z?J=J.split(`
17
17
  `).map(function(ee){return" "+ee}).join(`
18
18
  `).slice(2):J=`
@@ -21,24 +21,24 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
21
21
  `))):J=j.stylize("[Circular]","special")),S(M)){if(Z&&te.match(/^\d+$/))return J;M=JSON.stringify(""+te),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=j.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=j.stylize(M,"string"))}return M+": "+J}function y(j,T,D){var X=j.reduce(function(te,Z){return Z.indexOf(`
22
22
  `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?D[0]+(T===""?"":T+`
23
23
  `)+" "+j.join(`,
24
- `)+" "+D[1]:D[0]+T+" "+j.join(", ")+" "+D[1]}e.types=Kp();function g(j){return Array.isArray(j)}e.isArray=g;function v(j){return typeof j=="boolean"}e.isBoolean=v;function A(j){return j===null}e.isNull=A;function _(j){return j==null}e.isNullOrUndefined=_;function C(j){return typeof j=="number"}e.isNumber=C;function x(j){return typeof j=="string"}e.isString=x;function P(j){return typeof j=="symbol"}e.isSymbol=P;function S(j){return j===void 0}e.isUndefined=S;function I(j){return $(j)&&w(j)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(j){return typeof j=="object"&&j!==null}e.isObject=$;function E(j){return $(j)&&w(j)==="[object Date]"}e.isDate=E,e.types.isDate=E;function N(j){return $(j)&&(w(j)==="[object Error]"||j instanceof Error)}e.isError=N,e.types.isNativeError=N;function k(j){return typeof j=="function"}e.isFunction=k;function B(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}e.isPrimitive=B,e.isBuffer=Xp();function w(j){return Object.prototype.toString.call(j)}function q(j){return j<10?"0"+j.toString(10):j.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var j=new Date,T=[q(j.getHours()),q(j.getMinutes()),q(j.getSeconds())].join(":");return[j.getDate(),z[j.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Qp(),e._extend=function(j,T){if(!T||!$(T))return j;for(var D=Object.keys(T),X=D.length;X--;)j[D[X]]=T[D[X]];return j};function K(j,T){return Object.prototype.hasOwnProperty.call(j,T)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&T[W]){var D=T[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,M)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=W;function F(j,T){if(!j){var D=new Error("Promise was rejected with a falsy value");D.reason=j,j=D}return T(j)}function ne(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};j.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(j)),Object.defineProperties(T,t(j)),T}e.callbackify=ne}($r)),$r}var Pa;function Zp(){return Pa||(Pa=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),l(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=u(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),o.exports=p},179:(o,i,a)=>{const c=a(783),l=a(617),u=(f,p={})=>{let d=(m,h={})=>{let y=l.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,v=y===!0||g===!0,A=p.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return v?A+m.value:"(";if(m.type==="close")return v?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":v?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let C=l.reduce(m.nodes),x=c(...C,{...p,wrap:!1,toRegex:!0});if(x.length!==0)return C.length>1&&x.length>1?`(${x})`:x}if(m.nodes)for(let C of m.nodes)_+=d(C,m);return _};return d(f)};o.exports=u},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
- `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,a)=>{const c=a(783),l=a(137),u=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?u.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(f(v,m,h));else for(let v of m)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?f(g,v,h):g+v);return u.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,v={})=>{g.queue=[];let A=v,_=v.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(f(_.pop(),l(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let S=u.reduce(g.nodes);if(u.exceedsLimit(...S,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...S,m);I.length===0&&(I=l(g,m)),_.push(f(_.pop(),I)),g.nodes=[];return}let C=u.encloseBrace(g),x=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,x=P.queue;for(let S=0;S<g.nodes.length;S++){let I=g.nodes[S];if(I.type==="comma"&&g.type==="brace"){S===1&&x.push(""),x.push("");continue}if(I.type==="close"){_.push(f(_.pop(),x,C));continue}if(I.value&&I.type!=="open"){x.push(f(x.pop(),I.value));continue}I.nodes&&y(I,g)}return x};return u.flatten(y(d))};o.exports=p},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:C,CHAR_NO_BREAK_SPACE:x,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),S=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let E=$||{},N=typeof E.maxLength=="number"?Math.min(l,E.maxLength):l;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let k={type:"root",input:I,nodes:[]},B=[k],w=k,q=k,z=0,U=I.length,K=0,W=0,F;const ne=()=>I[K++],j=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return w.nodes.push(T),T.parent=w,T.prev=q,q=T,T};for(j({type:"bos"});K<U;)if(w=B[B.length-1],F=ne(),!(F===P||F===x)){if(F===u){j({type:"text",value:($.keepEscaping?F:"")+ne()});continue}if(F===A){j({type:"text",value:"\\"+F});continue}if(F===v){z++;let T;for(;K<U&&(T=ne());){if(F+=T,T===v){z++;continue}if(T===u){F+=ne();continue}if(T===A&&(z--,z===0))break}j({type:"text",value:F});continue}if(F===m){w=j({type:"paren",nodes:[]}),B.push(w),j({type:"text",value:F});continue}if(F===h){if(w.type!=="paren"){j({type:"text",value:F});continue}w=B.pop(),j({type:"text",value:F}),w=B[B.length-1];continue}if(F===_||F===C||F===f){let T=F,D;for($.keepQuotes!==!0&&(F="");K<U&&(D=ne());){if(D===u){F+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(F+=D);break}F+=D}j({type:"text",value:F});continue}if(F===y){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||w.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};w=j(D),B.push(w),j({type:"open",value:F});continue}if(F===g){if(w.type!=="brace"){j({type:"text",value:F});continue}let T="close";w=B.pop(),w.close=!0,j({type:T,value:F}),W--,w=B[B.length-1];continue}if(F===p&&W>0){if(w.ranges>0){w.ranges=0;let T=w.nodes.shift();w.nodes=[T,{type:"text",value:c(w)}]}j({type:"comma",value:F}),w.commas++;continue}if(F===d&&W>0&&w.commas===0){let T=w.nodes;if(W===0||T.length===0){j({type:"text",value:F});continue}if(q.type==="dot"){if(w.range=[],q.value+=F,q.type="range",w.nodes.length!==3&&w.nodes.length!==5){w.invalid=!0,w.ranges=0,q.type="text";continue}w.ranges++,w.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+F,q=D,w.ranges--;continue}j({type:"dot",value:F});continue}j({type:"text",value:F})}do if(w=B.pop(),w.type!=="root"){w.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 T=B[B.length-1],D=T.nodes.indexOf(w);T.nodes.splice(D,1,...w.nodes)}while(B.length>0);return j({type:"eos"}),k};o.exports=S},137:(o,i,a)=>{const c=a(617);o.exports=(l,u={})=>{let f=(p,d={})=>{let m=u.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&u.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(l)}},617:(o,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(l=>l.type===c),i.exceedsLimit=(a,c,l=1,u)=>u===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,i.escapeNode=(a,c=0,l)=>{let u=a.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.flatten=(...a)=>{const c=[],l=u=>{for(let f=0;f<u.length;f++){let p=u[f];Array.isArray(p)?l(p):p!==void 0&&c.push(p)}return c};return l(a),c}},783:(o,i,a)=>{/*!
24
+ `)+" "+D[1]:D[0]+T+" "+j.join(", ")+" "+D[1]}e.types=mm();function g(j){return Array.isArray(j)}e.isArray=g;function b(j){return typeof j=="boolean"}e.isBoolean=b;function A(j){return j===null}e.isNull=A;function _(j){return j==null}e.isNullOrUndefined=_;function C(j){return typeof j=="number"}e.isNumber=C;function x(j){return typeof j=="string"}e.isString=x;function P(j){return typeof j=="symbol"}e.isSymbol=P;function S(j){return j===void 0}e.isUndefined=S;function I(j){return $(j)&&R(j)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function $(j){return typeof j=="object"&&j!==null}e.isObject=$;function w(j){return $(j)&&R(j)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(j){return $(j)&&(R(j)==="[object Error]"||j instanceof Error)}e.isError=N,e.types.isNativeError=N;function k(j){return typeof j=="function"}e.isFunction=k;function B(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}e.isPrimitive=B,e.isBuffer=hm();function R(j){return Object.prototype.toString.call(j)}function q(j){return j<10?"0"+j.toString(10):j.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var j=new Date,T=[q(j.getHours()),q(j.getMinutes()),q(j.getSeconds())].join(":");return[j.getDate(),z[j.getMonth()],T].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=gm(),e._extend=function(j,T){if(!T||!$(T))return j;for(var D=Object.keys(T),X=D.length;X--;)j[D[X]]=T[D[X]];return j};function K(j,T){return Object.prototype.hasOwnProperty.call(j,T)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&T[W]){var D=T[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),M=[],J=0;J<arguments.length;J++)M.push(arguments[J]);M.push(function(Y,ee){Y?te(Y):X(ee)});try{T.apply(this,M)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(D,Object.getPrototypeOf(T)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(T))},e.promisify.custom=W;function F(j,T){if(!j){var D=new Error("Promise was rejected with a falsy value");D.reason=j,j=D}return T(j)}function ne(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var D=[],X=0;X<arguments.length;X++)D.push(arguments[X]);var te=D.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,M=function(){return te.apply(Z,arguments)};j.apply(this,D).then(function(J){process.nextTick(M.bind(null,null,J))},function(J){process.nextTick(F.bind(null,J,M))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(j)),Object.defineProperties(T,t(j)),T}e.callbackify=ne}($r)),$r}var Ns;function _m(){return Ns||(Ns=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),u=a(179),l=a(13),f=a(719),p=(d,m={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=p.create(y,m);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(p.create(d,m));return m&&m.expand===!0&&m.nodupes===!0&&(h=[...new Set(h)]),h};p.parse=(d,m={})=>f(d,m),p.stringify=(d,m={})=>c(typeof d=="string"?p.parse(d,m):d,m),p.compile=(d,m={})=>(typeof d=="string"&&(d=p.parse(d,m)),u(d,m)),p.expand=(d,m={})=>{typeof d=="string"&&(d=p.parse(d,m));let h=l(d,m);return m.noempty===!0&&(h=h.filter(Boolean)),m.nodupes===!0&&(h=[...new Set(h)]),h},p.create=(d,m={})=>d===""||d.length<3?[d]:m.expand!==!0?p.compile(d,m):p.expand(d,m),o.exports=p},179:(o,i,a)=>{const c=a(783),u=a(617),l=(f,p={})=>{let d=(m,h={})=>{let y=u.isInvalidBrace(h),g=m.invalid===!0&&p.escapeInvalid===!0,b=y===!0||g===!0,A=p.escapeInvalid===!0?"\\":"",_="";if(m.isOpen===!0||m.isClose===!0)return A+m.value;if(m.type==="open")return b?A+m.value:"(";if(m.type==="close")return b?A+m.value:")";if(m.type==="comma")return m.prev.type==="comma"?"":b?m.value:"|";if(m.value)return m.value;if(m.nodes&&m.ranges>0){let C=u.reduce(m.nodes),x=c(...C,{...p,wrap:!1,toRegex:!0});if(x.length!==0)return C.length>1&&x.length>1?`(${x})`:x}if(m.nodes)for(let C of m.nodes)_+=d(C,m);return _};return d(f)};o.exports=l},457:o=>{o.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(o,i,a)=>{const c=a(783),u=a(137),l=a(617),f=(d="",m="",h=!1)=>{let y=[];if(d=[].concat(d),m=[].concat(m),!m.length)return d;if(!d.length)return h?l.flatten(m).map(g=>`{${g}}`):m;for(let g of d)if(Array.isArray(g))for(let b of g)y.push(f(b,m,h));else for(let b of m)h===!0&&typeof b=="string"&&(b=`{${b}}`),y.push(Array.isArray(b)?f(g,b,h):g+b);return l.flatten(y)},p=(d,m={})=>{let h=m.rangeLimit===void 0?1e3:m.rangeLimit,y=(g,b={})=>{g.queue=[];let A=b,_=b.queue;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,_=A.queue;if(g.invalid||g.dollar){_.push(f(_.pop(),u(g,m)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let S=l.reduce(g.nodes);if(l.exceedsLimit(...S,m.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=c(...S,m);I.length===0&&(I=u(g,m)),_.push(f(_.pop(),I)),g.nodes=[];return}let C=l.encloseBrace(g),x=g.queue,P=g;for(;P.type!=="brace"&&P.type!=="root"&&P.parent;)P=P.parent,x=P.queue;for(let S=0;S<g.nodes.length;S++){let I=g.nodes[S];if(I.type==="comma"&&g.type==="brace"){S===1&&x.push(""),x.push("");continue}if(I.type==="close"){_.push(f(_.pop(),x,C));continue}if(I.value&&I.type!=="open"){x.push(f(x.pop(),I.value));continue}I.nodes&&y(I,g)}return x};return l.flatten(y(d))};o.exports=p},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:u,CHAR_BACKSLASH:l,CHAR_BACKTICK:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:m,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:A,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:C,CHAR_NO_BREAK_SPACE:x,CHAR_ZERO_WIDTH_NOBREAK_SPACE:P}=a(457),S=(I,$={})=>{if(typeof I!="string")throw new TypeError("Expected a string");let w=$||{},N=typeof w.maxLength=="number"?Math.min(u,w.maxLength):u;if(I.length>N)throw new SyntaxError(`Input length (${I.length}), exceeds max characters (${N})`);let k={type:"root",input:I,nodes:[]},B=[k],R=k,q=k,z=0,U=I.length,K=0,W=0,F;const ne=()=>I[K++],j=T=>{if(T.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&T.type==="text"){q.value+=T.value;return}return R.nodes.push(T),T.parent=R,T.prev=q,q=T,T};for(j({type:"bos"});K<U;)if(R=B[B.length-1],F=ne(),!(F===P||F===x)){if(F===l){j({type:"text",value:($.keepEscaping?F:"")+ne()});continue}if(F===A){j({type:"text",value:"\\"+F});continue}if(F===b){z++;let T;for(;K<U&&(T=ne());){if(F+=T,T===b){z++;continue}if(T===l){F+=ne();continue}if(T===A&&(z--,z===0))break}j({type:"text",value:F});continue}if(F===m){R=j({type:"paren",nodes:[]}),B.push(R),j({type:"text",value:F});continue}if(F===h){if(R.type!=="paren"){j({type:"text",value:F});continue}R=B.pop(),j({type:"text",value:F}),R=B[B.length-1];continue}if(F===_||F===C||F===f){let T=F,D;for($.keepQuotes!==!0&&(F="");K<U&&(D=ne());){if(D===l){F+=D+ne();continue}if(D===T){$.keepQuotes===!0&&(F+=D);break}F+=D}j({type:"text",value:F});continue}if(F===y){W++;let D={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||R.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};R=j(D),B.push(R),j({type:"open",value:F});continue}if(F===g){if(R.type!=="brace"){j({type:"text",value:F});continue}let T="close";R=B.pop(),R.close=!0,j({type:T,value:F}),W--,R=B[B.length-1];continue}if(F===p&&W>0){if(R.ranges>0){R.ranges=0;let T=R.nodes.shift();R.nodes=[T,{type:"text",value:c(R)}]}j({type:"comma",value:F}),R.commas++;continue}if(F===d&&W>0&&R.commas===0){let T=R.nodes;if(W===0||T.length===0){j({type:"text",value:F});continue}if(q.type==="dot"){if(R.range=[],q.value+=F,q.type="range",R.nodes.length!==3&&R.nodes.length!==5){R.invalid=!0,R.ranges=0,q.type="text";continue}R.ranges++,R.args=[];continue}if(q.type==="range"){T.pop();let D=T[T.length-1];D.value+=q.value+F,q=D,R.ranges--;continue}j({type:"dot",value:F});continue}j({type:"text",value:F})}do if(R=B.pop(),R.type!=="root"){R.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 T=B[B.length-1],D=T.nodes.indexOf(R);T.nodes.splice(D,1,...R.nodes)}while(B.length>0);return j({type:"eos"}),k};o.exports=S},137:(o,i,a)=>{const c=a(617);o.exports=(u,l={})=>{let f=(p,d={})=>{let m=l.escapeInvalid&&c.isInvalidBrace(d),h=p.invalid===!0&&l.escapeInvalid===!0,y="";if(p.value)return(m||h)&&c.isOpenOrClose(p)?"\\"+p.value:p.value;if(p.value)return p.value;if(p.nodes)for(let g of p.nodes)y+=f(g);return y};return f(u)}},617:(o,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(u=>u.type===c),i.exceedsLimit=(a,c,u=1,l)=>l===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(u)>=l,i.escapeNode=(a,c=0,u)=>{let l=a.nodes[c];l&&(u&&l.type===u||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,u)=>(u.type==="text"&&c.push(u.value),u.type==="range"&&(u.type="text"),c),[]),i.flatten=(...a)=>{const c=[],u=l=>{for(let f=0;f<l.length;f++){let p=l[f];Array.isArray(p)?u(p):p!==void 0&&c.push(p)}return c};return u(a),c}},783:(o,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=E=>E!==null&&typeof E=="object"&&!Array.isArray(E),f=E=>N=>E===!0?Number(N):String(N),p=E=>typeof E=="number"||typeof E=="string"&&E!=="",d=E=>Number.isInteger(+E),m=E=>{let N=`${E}`,k=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++k]==="0";);return k>0},h=(E,N,k)=>typeof E=="string"||typeof N=="string"?!0:k.stringify===!0,y=(E,N,k)=>{if(N>0){let B=E[0]==="-"?"-":"";B&&(E=E.slice(1)),E=B+E.padStart(B?N-1:N,"0")}return k===!1?String(E):E},g=(E,N)=>{let k=E[0]==="-"?"-":"";for(k&&(E=E.slice(1),N--);E.length<N;)E="0"+E;return k?"-"+E:E},v=(E,N)=>{E.negatives.sort((z,U)=>z<U?-1:z>U?1:0),E.positives.sort((z,U)=>z<U?-1:z>U?1:0);let k=N.capture?"":"?:",B="",w="",q;return E.positives.length&&(B=E.positives.join("|")),E.negatives.length&&(w=`-(${k}${E.negatives.join("|")})`),B&&w?q=`${B}|${w}`:q=B||w,N.wrap?`(${k}${q})`:q},A=(E,N,k,B)=>{if(k)return l(E,N,{wrap:!1,...B});let w=String.fromCharCode(E);if(E===N)return w;let q=String.fromCharCode(N);return`[${w}-${q}]`},_=(E,N,k)=>{if(Array.isArray(E)){let B=k.wrap===!0,w=k.capture?"":"?:";return B?`(${w}${E.join("|")})`:E.join("|")}return l(E,N,k)},C=(...E)=>new RangeError("Invalid range arguments: "+c.inspect(...E)),x=(E,N,k)=>{if(k.strictRanges===!0)throw C([E,N]);return[]},P=(E,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${E}" to be a number`);return[]},S=(E,N,k=1,B={})=>{let w=Number(E),q=Number(N);if(!Number.isInteger(w)||!Number.isInteger(q)){if(B.strictRanges===!0)throw C([E,N]);return[]}w===0&&(w=0),q===0&&(q=0);let z=w>q,U=String(E),K=String(N),W=String(k);k=Math.max(Math.abs(k),1);let F=m(U)||m(K)||m(W),ne=F?Math.max(U.length,K.length,W.length):0,j=F===!1&&h(E,N,B)===!1,T=B.transform||f(j);if(B.toRegex&&k===1)return A(g(E,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;z?w>=q:w<=q;)B.toRegex===!0&&k>1?X(w):te.push(y(T(w,Z),ne,j)),w=z?w-k:w+k,Z++;return B.toRegex===!0?k>1?v(D,B):_(te,null,{wrap:!1,...B}):te},I=(E,N,k=1,B={})=>{if(!d(E)&&E.length>1||!d(N)&&N.length>1)return x(E,N,B);let w=B.transform||(j=>String.fromCharCode(j)),q=`${E}`.charCodeAt(0),z=`${N}`.charCodeAt(0),U=q>z,K=Math.min(q,z),W=Math.max(q,z);if(B.toRegex&&k===1)return A(K,W,!1,B);let F=[],ne=0;for(;U?q>=z:q<=z;)F.push(w(q,ne)),q=U?q-k:q+k,ne++;return B.toRegex===!0?_(F,null,{wrap:!1,options:B}):F},$=(E,N,k,B={})=>{if(N==null&&p(E))return[E];if(!p(E)||!p(N))return x(E,N,B);if(typeof k=="function")return $(E,N,1,{transform:k});if(u(k))return $(E,N,0,k);let w={...B};return w.capture===!0&&(w.wrap=!0),k=k||w.step||1,d(k)?d(E)&&d(N)?S(E,N,k,w):I(E,N,Math.max(Math.abs(k),1),w):k!=null&&!u(k)?P(k,w):$(E,N,1,k)};o.exports=$},357:o=>{/*!
30
+ */const c=a(837),u=a(492),l=w=>w!==null&&typeof w=="object"&&!Array.isArray(w),f=w=>N=>w===!0?Number(N):String(N),p=w=>typeof w=="number"||typeof w=="string"&&w!=="",d=w=>Number.isInteger(+w),m=w=>{let N=`${w}`,k=-1;if(N[0]==="-"&&(N=N.slice(1)),N==="0")return!1;for(;N[++k]==="0";);return k>0},h=(w,N,k)=>typeof w=="string"||typeof N=="string"?!0:k.stringify===!0,y=(w,N,k)=>{if(N>0){let B=w[0]==="-"?"-":"";B&&(w=w.slice(1)),w=B+w.padStart(B?N-1:N,"0")}return k===!1?String(w):w},g=(w,N)=>{let k=w[0]==="-"?"-":"";for(k&&(w=w.slice(1),N--);w.length<N;)w="0"+w;return k?"-"+w:w},b=(w,N)=>{w.negatives.sort((z,U)=>z<U?-1:z>U?1:0),w.positives.sort((z,U)=>z<U?-1:z>U?1:0);let k=N.capture?"":"?:",B="",R="",q;return w.positives.length&&(B=w.positives.join("|")),w.negatives.length&&(R=`-(${k}${w.negatives.join("|")})`),B&&R?q=`${B}|${R}`:q=B||R,N.wrap?`(${k}${q})`:q},A=(w,N,k,B)=>{if(k)return u(w,N,{wrap:!1,...B});let R=String.fromCharCode(w);if(w===N)return R;let q=String.fromCharCode(N);return`[${R}-${q}]`},_=(w,N,k)=>{if(Array.isArray(w)){let B=k.wrap===!0,R=k.capture?"":"?:";return B?`(${R}${w.join("|")})`:w.join("|")}return u(w,N,k)},C=(...w)=>new RangeError("Invalid range arguments: "+c.inspect(...w)),x=(w,N,k)=>{if(k.strictRanges===!0)throw C([w,N]);return[]},P=(w,N)=>{if(N.strictRanges===!0)throw new TypeError(`Expected step "${w}" to be a number`);return[]},S=(w,N,k=1,B={})=>{let R=Number(w),q=Number(N);if(!Number.isInteger(R)||!Number.isInteger(q)){if(B.strictRanges===!0)throw C([w,N]);return[]}R===0&&(R=0),q===0&&(q=0);let z=R>q,U=String(w),K=String(N),W=String(k);k=Math.max(Math.abs(k),1);let F=m(U)||m(K)||m(W),ne=F?Math.max(U.length,K.length,W.length):0,j=F===!1&&h(w,N,B)===!1,T=B.transform||f(j);if(B.toRegex&&k===1)return A(g(w,ne),g(N,ne),!0,B);let D={negatives:[],positives:[]},X=M=>D[M<0?"negatives":"positives"].push(Math.abs(M)),te=[],Z=0;for(;z?R>=q:R<=q;)B.toRegex===!0&&k>1?X(R):te.push(y(T(R,Z),ne,j)),R=z?R-k:R+k,Z++;return B.toRegex===!0?k>1?b(D,B):_(te,null,{wrap:!1,...B}):te},I=(w,N,k=1,B={})=>{if(!d(w)&&w.length>1||!d(N)&&N.length>1)return x(w,N,B);let R=B.transform||(j=>String.fromCharCode(j)),q=`${w}`.charCodeAt(0),z=`${N}`.charCodeAt(0),U=q>z,K=Math.min(q,z),W=Math.max(q,z);if(B.toRegex&&k===1)return A(K,W,!1,B);let F=[],ne=0;for(;U?q>=z:q<=z;)F.push(R(q,ne)),q=U?q-k:q+k,ne++;return B.toRegex===!0?_(F,null,{wrap:!1,options:B}):F},$=(w,N,k,B={})=>{if(N==null&&p(w))return[w];if(!p(w)||!p(N))return x(w,N,B);if(typeof k=="function")return $(w,N,1,{transform:k});if(l(k))return $(w,N,0,k);let R={...B};return R.capture===!0&&(R.wrap=!0),k=k||R.step||1,d(k)?d(w)&&d(N)?S(w,N,k,R):I(w,N,Math.max(Math.abs(k),1),R):k!=null&&!l(k)?P(k,R):$(w,N,1,k)};o.exports=$},357:o=>{/*!
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
- */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const c=a(837),l=a(333),u=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,v=new Set,A=new Set,_=0,C=S=>{A.add(S.output),y&&y.onResult&&y.onResult(S)};for(let S=0;S<h.length;S++){let I=u(String(h[S]),{...y,onResult:C},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let E of m){let N=I(E,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),v.add(N.output)))}}let P=(_===h.length?[...A]:[...v]).filter(S=>!g.has(S));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(S=>S.replace(/\\/g,"")):h}return P};d.match=d,d.matcher=(m,h)=>u(m,h),d.isMatch=(m,h,y)=>u(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(m,h,{...y,onResult:C=>{y.onResult&&y.onResult(C),v.push(C.output)}});for(let C of v)_.includes(C)||g.add(C);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),v={};for(let A of g)v[A]=m[A];return v},d.some=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>u(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),A=u.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>u.makeRe(...m),d.scan=(...m)=>u.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:l(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,v=`(?:^|${m})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,C=`(?!${v}${A})`,x=`(?!${f}{0,1}${g})`,P=`(?!${A})`,S=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:C,NO_DOT_SLASH:x,NO_DOTS_SLASH:P,QMARK_NO_DOT:S,STAR:I,START_ANCHOR:v},E={...$,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${l}])${f}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?E:$}}},754:(o,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(v,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...v,A);v.sort();const _=`[${v.join("-")}]`;try{new RegExp(_)}catch{return v.map(x=>l.escapeRegex(x)).join("..")}return _},y=(v,A)=>`Missing ${v}: "${A}" - use "\\\\${A}" to match literal characters`,g=(v,A)=>{if(typeof v!="string")throw new TypeError("Expected a string");v=m[v]||v;const _={...A},C=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;let x=v.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);const P={type:"bos",value:"",output:_.prepend||""},S=[P],I=_.capture?"":"?:",$=l.isWindows(A),E=c.globChars($),N=c.extglobChars(E),{DOT_LITERAL:k,PLUS_LITERAL:B,SLASH_LITERAL:w,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:ne,STAR:j,START_ANCHOR:T}=E,D=Q=>`(${I}(?:(?!${T}${Q.dot?z:k}).)*?)`,X=_.dot?"":U,te=_.dot?F:ne;let Z=_.bash===!0?D(_):j;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};v=l.removePrefix(v,M),x=v.length;const J=[],Y=[],ee=[];let L=P,O;const re=()=>M.index===x-1,ae=M.peek=(Q=1)=>v[M.index+Q],ce=M.advance=()=>v[++M.index],le=()=>v.slice(M.index+1),se=(Q="",oe=0)=>{M.consumed+=Q,M.index+=oe},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,ee.push(Q)},me=Q=>{M[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,S.push(Q),L=Q},ue=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=M.parens,V.output=M.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:M.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,xe,Zt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(xe?F.repeat(xe.length):""):Zt===0?te+(xe?F.repeat(xe.length):""):F.repeat(ye.length):Ae==="."?k.repeat(ye.length):Ae==="*"?de?de+Ae+(xe?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===v&&_.contains===!0?(M.output=v,M):(M.output=l.wrapOutput(oe,M,A),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",G({type:"text",value:O});continue}const de=/^\\+/.exec(le());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){G({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ae=L.value.slice(de+2),xe=f[Ae];if(xe){L.value=ye+xe,M.backtrack=!0,ce(),!P.output&&S.indexOf(L)===1&&(P.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=l.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:O});continue}if(O==="("){ie("parens"),G({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&M.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");G({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Y.push(V),G(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:O,output:O});continue}let de=")";if(V.dots===!0){const ye=S.slice(),Ae=[];for(let xe=ye.length-1;xe>=0&&(S.pop(),ye[xe].type!=="brace");xe--)ye[xe].type!=="dots"&&Ae.unshift(ye[xe].value);de=h(Ae,_),M.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=M.output.slice(0,V.outputIndex),Ae=M.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",M.output=ye;for(const xe of Ae)M.output+=xe.output||xe.value}G({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",S.pop(),L=P;continue}G({type:"slash",value:O,output:w});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=k);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:O,output:k});continue}G({type:"dot",value:O,output:k});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",O);continue}if(L&&L.type==="paren"){const de=ae();let ye=O;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${O}`),G({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:O,output:ne});continue}G({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",O);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){G({type:"plus",value:O});continue}G({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:O,output:""});continue}G({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=p.exec(le());V&&(O+=V[0],M.index+=V[0].length),G({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,se(O);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=L.prev,de=V.prev,ye=V.type==="slash"||V.type==="bos",Ae=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||Q[0]&&Q[0]!=="/")){G({type:"star",value:O,output:""});continue}const xe=M.braces>0&&(V.type==="comma"||V.type==="brace"),Zt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!xe&&!Zt){G({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const bt=v[M.index+4];if(bt&&bt!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=V.output+L.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const bt=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${w}|${w}${bt})`,L.value+=O,M.output+=V.output+L.output,M.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${w}|${D(_)}${w})`,M.output=L.output,M.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,se(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,G(oe);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=K,L.output+=K):_.dot===!0?(M.output+=W,L.output+=W):(M.output+=X,L.output+=X),ae()!=="*"&&(M.output+=q,L.output+=q)),G(oe)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=l.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=l.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=l.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${w}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};g.fastpaths=(v,A)=>{const _={...A},C=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,x=v.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);v=m[v]||v;const P=l.isWindows(A),{DOT_LITERAL:S,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:E,NO_DOT:N,NO_DOTS:k,NO_DOTS_SLASH:B,STAR:w,START_ANCHOR:q}=c.globChars(P),z=_.dot?k:N,U=_.dot?B:N,K=_.capture?"":"?:",W={negated:!1,prefix:""};let F=_.bash===!0?".*?":w;_.capture&&(F=`(${F})`);const ne=X=>X.noglobstar===!0?F:`(${K}(?:(?!${q}${X.dot?E:S}).)*?)`,j=X=>{switch(X){case"*":return`${z}${$}${F}`;case".*":return`${S}${$}${F}`;case"*.*":return`${z}${F}${S}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${U}${F}`;case"**":return z+ne(_);case"**/*":return`(?:${z}${ne(_)}${I})?${U}${$}${F}`;case"**/*.*":return`(?:${z}${ne(_)}${I})?${U}${F}${S}${$}${F}`;case"**/.*":return`(?:${z}${ne(_)}${I})?${S}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=j(te[1]);return Z?Z+S+te[2]:void 0}}},T=l.removePrefix(v,W);let D=j(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(E=>m(E,y,g));return E=>{for(const N of I){const k=N(E);if(k)return k}return!1}}const v=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const A=y||{},_=f.isWindows(y),C=v?m.compileRe(h,y):m.makeRe(h,y,!1,!0),x=C.state;delete C.state;let P=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(A.ignore,I,g)}const S=(I,$=!1)=>{const{isMatch:E,match:N,output:k}=m.test(I,C,y,{glob:h,posix:_}),B={glob:h,state:x,regex:C,posix:_,input:I,output:k,match:N,isMatch:E};return typeof A.onResult=="function"&&A.onResult(B),E===!1?(B.isMatch=!1,$?B:!1):P(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(S.state=x),S};m.test=(h,y,g,{glob:v,posix:A}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},C=_.format||(A?f.toPosixSlashes:null);let x=h===v,P=x&&C?C(h):h;return x===!1&&(P=C?C(h):h,x=P===v),(x===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?x=m.matchBase(h,y,g,A):x=y.exec(P)),{isMatch:!!x,match:x,output:P}},m.matchBase=(h,y,g,v=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):u(h,{...y,fastpaths:!1}),m.scan=(h,y)=>l(h,y),m.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",C=A.contains?"":"$";let x=`${_}(?:${h.output})${C}`;h&&h.negated===!0&&(x=`^(?!${x}).*$`);const P=m.toRegex(x,y);return v===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,v=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},C="",x;return h.startsWith("./")&&(h=h.slice(2),C=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(x=u.fastpaths(h,y)),x===void 0?(_=u(h,y),_.prefix=C+(_.prefix||"")):_.output=x,m.compileRe(_,y,g,v)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=p,o.exports=m},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:x,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),S=E=>E===h||E===f,I=E=>{E.isPrefix!==!0&&(E.depth=E.isGlobstar?1/0:1)},$=(E,N)=>{const k=N||{},B=E.length-1,w=k.parts===!0||k.scanToEnd===!0,q=[],z=[],U=[];let K=E,W=-1,F=0,ne=0,j=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,M=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ce=()=>K.charCodeAt(W+1),le=()=>(L=O,K.charCodeAt(++W));for(;W<B;){O=le();let me;if(O===f){M=re.backslashes=!0,O=le(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=le());){if(O===f){M=re.backslashes=!0,le();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=le())===d){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(Z!==!0&&O===p){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===C&&(ee--,ee===0)){Z=!1,j=re.isBrace=!0,Y=!0;break}}if(w===!0)continue;break}if(O===h){if(q.push(W),z.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===F+1){F+=2;continue}ne=W+1;continue}if(k.noext!==!0&&(O===A||O===u||O===l||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,w===!0){for(;ae()!==!0&&(O=le());){if(O===f){M=re.backslashes=!0,O=le();continue}if(O===x){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===l){if(L===l&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,w===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=le());){if(me===f){M=re.backslashes=!0,le();continue}if(me===P){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(w===!0)continue;break}if(k.nonegate!==!0&&O===m&&W===F){J=re.negated=!0,F++;continue}if(k.noparen!==!0&&O===g){if(D=re.isGlob=!0,w===!0){for(;ae()!==!0&&(O=le());){if(O===g){M=re.backslashes=!0,O=le();continue}if(O===x){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,w===!0)continue;break}}k.noext===!0&&(X=!1,D=!1);let se=K,H="",he="";F>0&&(H=K.slice(0,F),K=K.slice(F),ne-=F),se&&D===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):D===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&S(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),k.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&M===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:E,start:F,base:se,glob:he,isBrace:j,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(k.tokens===!0&&(ie.maxDepth=0,S(O)||z.push(re),ie.tokens=z),k.parts===!0||k.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:F,Ce=q[G],Q=E.slice(ue,Ce);k.tokens&&(G===0&&F!==0?(z[G].isPrefix=!0,z[G].value=H):z[G].value=Q,I(z[G]),ie.maxDepth+=z[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<E.length){const G=E.slice(me+1);U.push(G),k.tokens&&(z[z.length-1].value=G,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>p.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(u,"/"),i.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:l===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${m})${v}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,i,a)=>{/*!
35
+ */o.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(o,i,a)=>{const c=a(837),u=a(333),l=a(251),f=a(513),p=m=>m===""||m==="./",d=(m,h,y)=>{h=[].concat(h),m=[].concat(m);let g=new Set,b=new Set,A=new Set,_=0,C=S=>{A.add(S.output),y&&y.onResult&&y.onResult(S)};for(let S=0;S<h.length;S++){let I=l(String(h[S]),{...y,onResult:C},!0),$=I.state.negated||I.state.negatedExtglob;$&&_++;for(let w of m){let N=I(w,!0);($?!N.isMatch:N.isMatch)&&($?g.add(N.output):(g.delete(N.output),b.add(N.output)))}}let P=(_===h.length?[...A]:[...b]).filter(S=>!g.has(S));if(y&&P.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(S=>S.replace(/\\/g,"")):h}return P};d.match=d,d.matcher=(m,h)=>l(m,h),d.isMatch=(m,h,y)=>l(h,y)(m),d.any=d.isMatch,d.not=(m,h,y={})=>{h=[].concat(h).map(String);let g=new Set,b=[],_=d(m,h,{...y,onResult:C=>{y.onResult&&y.onResult(C),b.push(C.output)}});for(let C of b)_.includes(C)||g.add(C);return[...g]},d.contains=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);if(Array.isArray(h))return h.some(g=>d.contains(m,g,y));if(typeof h=="string"){if(p(m)||p(h))return!1;if(m.includes(h)||m.startsWith("./")&&m.slice(2).includes(h))return!0}return d.isMatch(m,h,{...y,contains:!0})},d.matchKeys=(m,h,y)=>{if(!f.isObject(m))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(m),h,y),b={};for(let A of g)b[A]=m[A];return b},d.some=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let A=l(String(b),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(m,h,y)=>{let g=[].concat(m);for(let b of[].concat(h)){let A=l(String(b),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(m,h,y)=>{if(typeof m!="string")throw new TypeError(`Expected a string: "${c.inspect(m)}"`);return[].concat(h).every(g=>l(g,y)(m))},d.capture=(m,h,y)=>{let g=f.isWindows(y),A=l.makeRe(String(m),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...m)=>l.makeRe(...m),d.scan=(...m)=>l.scan(...m),d.parse=(m,h)=>{let y=[];for(let g of[].concat(m||[]))for(let b of u(String(g),h))y.push(l.parse(b,h));return y},d.braces=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(m)?[m]:u(m,h)},d.braceExpand=(m,h)=>{if(typeof m!="string")throw new TypeError("Expected a string");return d.braces(m,{...h,expand:!0})},o.exports=d},251:(o,i,a)=>{o.exports=a(683)},356:(o,i,a)=>{const c=a(17),u="\\\\/",l=`[^${u}]`,f="\\.",p="\\+",d="\\?",m="\\/",h="(?=.)",y="[^/]",g=`(?:${m}|$)`,b=`(?:^|${m})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,C=`(?!${b}${A})`,x=`(?!${f}{0,1}${g})`,P=`(?!${A})`,S=`[^.${m}]`,I=`${y}*?`,$={DOT_LITERAL:f,PLUS_LITERAL:p,QMARK_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:C,NO_DOT_SLASH:x,NO_DOTS_SLASH:P,QMARK_NO_DOT:S,STAR:I,START_ANCHOR:b},w={...$,SLASH_LITERAL:`[${u}]`,QMARK:l,STAR:`${l}*?`,DOTS_SLASH:`${f}{1,2}(?:[${u}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${u}])${f}{1,2}(?:[${u}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${u}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${u}]|$))`,QMARK_NO_DOT:`[^.${u}]`,START_ANCHOR:`(?:^|[${u}])`,END_ANCHOR:`(?:[${u}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};o.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(k){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${k.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(k){return k===!0?w:$}}},754:(o,i,a)=>{const c=a(356),u=a(513),{MAX_LENGTH:l,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:m}=c,h=(b,A)=>{if(typeof A.expandRange=="function")return A.expandRange(...b,A);b.sort();const _=`[${b.join("-")}]`;try{new RegExp(_)}catch{return b.map(x=>u.escapeRegex(x)).join("..")}return _},y=(b,A)=>`Missing ${b}: "${A}" - use "\\\\${A}" to match literal characters`,g=(b,A)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=m[b]||b;const _={...A},C=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l;let x=b.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);const P={type:"bos",value:"",output:_.prepend||""},S=[P],I=_.capture?"":"?:",$=u.isWindows(A),w=c.globChars($),N=c.extglobChars(w),{DOT_LITERAL:k,PLUS_LITERAL:B,SLASH_LITERAL:R,ONE_CHAR:q,DOTS_SLASH:z,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:F,QMARK_NO_DOT:ne,STAR:j,START_ANCHOR:T}=w,D=Q=>`(${I}(?:(?!${T}${Q.dot?z:k}).)*?)`,X=_.dot?"":U,te=_.dot?F:ne;let Z=_.bash===!0?D(_):j;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const M={input:b,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};b=u.removePrefix(b,M),x=b.length;const J=[],Y=[],ee=[];let L=P,O;const re=()=>M.index===x-1,se=M.peek=(Q=1)=>b[M.index+Q],ce=M.advance=()=>b[++M.index],ue=()=>b.slice(M.index+1),ae=(Q="",oe=0)=>{M.consumed+=Q,M.index+=oe},H=Q=>{M.output+=Q.output!=null?Q.output:Q.value,ae(Q.value)},he=()=>{let Q=1;for(;se()==="!"&&(se(2)!=="("||se(3)==="?");)ce(),M.start++,Q++;return Q%2===0?!1:(M.negated=!0,M.start++,!0)},ie=Q=>{M[Q]++,ee.push(Q)},me=Q=>{M[Q]--,ee.pop()},G=Q=>{if(L.type==="globstar"){const oe=M.braces>0&&(Q.type==="comma"||Q.type==="brace"),V=Q.extglob===!0||J.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!oe&&!V&&(M.output=M.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=Z,M.output+=L.output)}if(J.length&&Q.type!=="paren"&&!N[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),L&&L.type==="text"&&Q.type==="text"){L.value+=Q.value,L.output=(L.output||"")+Q.value;return}Q.prev=L,S.push(Q),L=Q},le=(Q,oe)=>{const V={...N[oe],conditions:1,inner:""};V.prev=L,V.parens=M.parens,V.output=M.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:M.output?"":q}),G({type:"paren",extglob:!0,value:ce(),output:de}),J.push(V)},Ce=Q=>{let oe=Q.close+(_.capture?")":"");if(Q.type==="negate"){let V=Z;Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(V=D(_)),(V!==Z||re()||/^\)+$/.test(ue()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(M.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:O,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Q=!1,oe=b.replace(d,(V,de,ye,Ee,xe,er)=>Ee==="\\"?(Q=!0,V):Ee==="?"?de?de+Ee+(xe?F.repeat(xe.length):""):er===0?te+(xe?F.repeat(xe.length):""):F.repeat(ye.length):Ee==="."?k.repeat(ye.length):Ee==="*"?de?de+Ee+(xe?Z:""):Z:de?V:`\\${V}`);return Q===!0&&(_.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,V=>V.length%2===0?"\\\\":V?"\\":"")),oe===b&&_.contains===!0?(M.output=b,M):(M.output=u.wrapOutput(oe,M,A),M)}for(;!re();){if(O=ce(),O==="\0")continue;if(O==="\\"){const V=se();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){O+="\\",G({type:"text",value:O});continue}const de=/^\\+/.exec(ue());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,M.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",M.brackets===0){G({type:"text",value:O});continue}}if(M.brackets>0&&(O!=="]"||L.value==="["||L.value==="[^")){if(_.posix!==!1&&O===":"){const V=L.value.slice(1);if(V.includes("[")&&(L.posix=!0,V.includes(":"))){const de=L.value.lastIndexOf("["),ye=L.value.slice(0,de),Ee=L.value.slice(de+2),xe=f[Ee];if(xe){L.value=ye+xe,M.backtrack=!0,ce(),!P.output&&S.indexOf(L)===1&&(P.output=q);continue}}}(O==="["&&se()!==":"||O==="-"&&se()==="]")&&(O=`\\${O}`),O==="]"&&(L.value==="["||L.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&L.value==="["&&(O="^"),L.value+=O,H({value:O});continue}if(M.quotes===1&&O!=='"'){O=u.escapeRegex(O),L.value+=O,H({value:O});continue}if(O==='"'){M.quotes=M.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:O});continue}if(O==="("){ie("parens"),G({type:"paren",value:O});continue}if(O===")"){if(M.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&M.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:O,output:M.parens?")":"\\)"}),me("parens");continue}if(O==="["){if(_.nobracket===!0||!ue().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));O=`\\${O}`}else ie("brackets");G({type:"bracket",value:O});continue}if(O==="]"){if(_.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){G({type:"text",value:O,output:`\\${O}`});continue}if(M.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=L.value.slice(1);if(L.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),L.value+=O,H({value:O}),_.literalBrackets===!1||u.hasRegexChars(V))continue;const de=u.escapeRegex(L.value);if(M.output=M.output.slice(0,-L.value.length),_.literalBrackets===!0){M.output+=de,L.value=de;continue}L.value=`(${I}${de}|${L.value})`,M.output+=L.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};Y.push(V),G(V);continue}if(O==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:O,output:O});continue}let de=")";if(V.dots===!0){const ye=S.slice(),Ee=[];for(let xe=ye.length-1;xe>=0&&(S.pop(),ye[xe].type!=="brace");xe--)ye[xe].type!=="dots"&&Ee.unshift(ye[xe].value);de=h(Ee,_),M.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=M.output.slice(0,V.outputIndex),Ee=M.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",M.output=ye;for(const xe of Ee)M.output+=xe.output||xe.value}G({type:"brace",value:O,output:de}),me("braces"),Y.pop();continue}if(O==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:O});continue}if(O===","){let V=O;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:O,output:V});continue}if(O==="/"){if(L.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",S.pop(),L=P;continue}G({type:"slash",value:O,output:R});continue}if(O==="."){if(M.braces>0&&L.type==="dot"){L.value==="."&&(L.output=k);const V=Y[Y.length-1];L.type="dots",L.output+=O,L.value+=O,V.dots=!0;continue}if(M.braces+M.parens===0&&L.type!=="bos"&&L.type!=="slash"){G({type:"text",value:O,output:k});continue}G({type:"dot",value:O,output:k});continue}if(O==="?"){if(!(L&&L.value==="(")&&_.noextglob!==!0&&se()==="("&&se(2)!=="?"){le("qmark",O);continue}if(L&&L.type==="paren"){const de=se();let ye=O;if(de==="<"&&!u.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(L.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(ue()))&&(ye=`\\${O}`),G({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(L.type==="slash"||L.type==="bos")){G({type:"qmark",value:O,output:ne});continue}G({type:"qmark",value:O,output:F});continue}if(O==="!"){if(_.noextglob!==!0&&se()==="("&&(se(2)!=="?"||!/[!=<:]/.test(se(3)))){le("negate",O);continue}if(_.nonegate!==!0&&M.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){le("plus",O);continue}if(L&&L.value==="("||_.regex===!1){G({type:"plus",value:O,output:B});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||M.parens>0){G({type:"plus",value:O});continue}G({type:"plus",value:B});continue}if(O==="@"){if(_.noextglob!==!0&&se()==="("&&se(2)!=="?"){G({type:"at",extglob:!0,value:O,output:""});continue}G({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);const V=p.exec(ue());V&&(O+=V[0],M.index+=V[0].length),G({type:"text",value:O});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=O,L.output=Z,M.backtrack=!0,M.globstar=!0,ae(O);continue}let Q=ue();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){le("star",O);continue}if(L.type==="star"){if(_.noglobstar===!0){ae(O);continue}const V=L.prev,de=V.prev,ye=V.type==="slash"||V.type==="bos",Ee=de&&(de.type==="star"||de.type==="globstar");if(_.bash===!0&&(!ye||Q[0]&&Q[0]!=="/")){G({type:"star",value:O,output:""});continue}const xe=M.braces>0&&(V.type==="comma"||V.type==="brace"),er=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!xe&&!er){G({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const St=b[M.index+4];if(St&&St!=="/")break;Q=Q.slice(3),ae("/**",3)}if(V.type==="bos"&&re()){L.type="globstar",L.value+=O,L.output=D(_),M.output=L.output,M.globstar=!0,ae(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ee&&re()){M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=D(_)+(_.strictSlashes?")":"|$)"),L.value+=O,M.globstar=!0,M.output+=V.output+L.output,ae(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const St=Q[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(V.output+L.output).length),V.output=`(?:${V.output}`,L.type="globstar",L.output=`${D(_)}${R}|${R}${St})`,L.value+=O,M.output+=V.output+L.output,M.globstar=!0,ae(O+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){L.type="globstar",L.value+=O,L.output=`(?:^|${R}|${D(_)}${R})`,M.output=L.output,M.globstar=!0,ae(O+ce()),G({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-L.output.length),L.type="globstar",L.output=D(_),L.value+=O,M.output+=L.output,M.globstar=!0,ae(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(L.type==="bos"||L.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&_.regex===!0){oe.output=O,G(oe);continue}(M.index===M.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(M.output+=K,L.output+=K):_.dot===!0?(M.output+=W,L.output+=W):(M.output+=X,L.output+=X),se()!=="*"&&(M.output+=q,L.output+=q)),G(oe)}for(;M.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));M.output=u.escapeLast(M.output,"["),me("brackets")}for(;M.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));M.output=u.escapeLast(M.output,"("),me("parens")}for(;M.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));M.output=u.escapeLast(M.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${R}?`}),M.backtrack===!0){M.output="";for(const Q of M.tokens)M.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(M.output+=Q.suffix)}return M};g.fastpaths=(b,A)=>{const _={...A},C=typeof _.maxLength=="number"?Math.min(l,_.maxLength):l,x=b.length;if(x>C)throw new SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${C}`);b=m[b]||b;const P=u.isWindows(A),{DOT_LITERAL:S,SLASH_LITERAL:I,ONE_CHAR:$,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:k,NO_DOTS_SLASH:B,STAR:R,START_ANCHOR:q}=c.globChars(P),z=_.dot?k:N,U=_.dot?B:N,K=_.capture?"":"?:",W={negated:!1,prefix:""};let F=_.bash===!0?".*?":R;_.capture&&(F=`(${F})`);const ne=X=>X.noglobstar===!0?F:`(${K}(?:(?!${q}${X.dot?w:S}).)*?)`,j=X=>{switch(X){case"*":return`${z}${$}${F}`;case".*":return`${S}${$}${F}`;case"*.*":return`${z}${F}${S}${$}${F}`;case"*/*":return`${z}${F}${I}${$}${U}${F}`;case"**":return z+ne(_);case"**/*":return`(?:${z}${ne(_)}${I})?${U}${$}${F}`;case"**/*.*":return`(?:${z}${ne(_)}${I})?${U}${F}${S}${$}${F}`;case"**/.*":return`(?:${z}${ne(_)}${I})?${S}${$}${F}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=j(te[1]);return Z?Z+S+te[2]:void 0}}},T=u.removePrefix(b,W);let D=j(T);return D&&_.strictSlashes!==!0&&(D+=`${I}?`),D},o.exports=g},683:(o,i,a)=>{const c=a(17),u=a(700),l=a(754),f=a(513),p=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),m=(h,y,g=!1)=>{if(Array.isArray(h)){const I=h.map(w=>m(w,y,g));return w=>{for(const N of I){const k=N(w);if(k)return k}return!1}}const b=d(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const A=y||{},_=f.isWindows(y),C=b?m.compileRe(h,y):m.makeRe(h,y,!1,!0),x=C.state;delete C.state;let P=()=>!1;if(A.ignore){const I={...y,ignore:null,onMatch:null,onResult:null};P=m(A.ignore,I,g)}const S=(I,$=!1)=>{const{isMatch:w,match:N,output:k}=m.test(I,C,y,{glob:h,posix:_}),B={glob:h,state:x,regex:C,posix:_,input:I,output:k,match:N,isMatch:w};return typeof A.onResult=="function"&&A.onResult(B),w===!1?(B.isMatch=!1,$?B:!1):P(I)?(typeof A.onIgnore=="function"&&A.onIgnore(B),B.isMatch=!1,$?B:!1):(typeof A.onMatch=="function"&&A.onMatch(B),$?B:!0)};return g&&(S.state=x),S};m.test=(h,y,g,{glob:b,posix:A}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const _=g||{},C=_.format||(A?f.toPosixSlashes:null);let x=h===b,P=x&&C?C(h):h;return x===!1&&(P=C?C(h):h,x=P===b),(x===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?x=m.matchBase(h,y,g,A):x=y.exec(P)),{isMatch:!!x,match:x,output:P}},m.matchBase=(h,y,g,b=f.isWindows(g))=>(y instanceof RegExp?y:m.makeRe(y,g)).test(c.basename(h)),m.isMatch=(h,y,g)=>m(y,g)(h),m.parse=(h,y)=>Array.isArray(h)?h.map(g=>m.parse(g,y)):l(h,{...y,fastpaths:!1}),m.scan=(h,y)=>u(h,y),m.compileRe=(h,y,g=!1,b=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",C=A.contains?"":"$";let x=`${_}(?:${h.output})${C}`;h&&h.negated===!0&&(x=`^(?!${x}).*$`);const P=m.toRegex(x,y);return b===!0&&(P.state=h),P},m.makeRe=(h,y,g=!1,b=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");const A=y||{};let _={negated:!1,fastpaths:!0},C="",x;return h.startsWith("./")&&(h=h.slice(2),C=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(x=l.fastpaths(h,y)),x===void 0?(_=l(h,y),_.prefix=C+(_.prefix||"")):_.output=x,m.compileRe(_,y,g,b)},m.toRegex=(h,y)=>{try{const g=y||{};return new RegExp(h,g.flags||(g.nocase?"i":""))}catch(g){if(y&&y.debug===!0)throw g;return/$^/}},m.constants=p,o.exports=m},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:u,CHAR_AT:l,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:g,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:A,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:x,CHAR_RIGHT_SQUARE_BRACKET:P}=a(356),S=w=>w===h||w===f,I=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},$=(w,N)=>{const k=N||{},B=w.length-1,R=k.parts===!0||k.scanToEnd===!0,q=[],z=[],U=[];let K=w,W=-1,F=0,ne=0,j=!1,T=!1,D=!1,X=!1,te=!1,Z=!1,M=!1,J=!1,Y=!1,ee=0,L,O,re={value:"",depth:0,isGlob:!1};const se=()=>W>=B,ce=()=>K.charCodeAt(W+1),ue=()=>(L=O,K.charCodeAt(++W));for(;W<B;){O=ue();let me;if(O===f){M=re.backslashes=!0,O=ue(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;se()!==!0&&(O=ue());){if(O===f){M=re.backslashes=!0,ue();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=ue())===d){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(Z!==!0&&O===p){if(j=re.isBrace=!0,D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===C&&(ee--,ee===0)){Z=!1,j=re.isBrace=!0,Y=!0;break}}if(R===!0)continue;break}if(O===h){if(q.push(W),z.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(L===d&&W===F+1){F+=2;continue}ne=W+1;continue}if(k.noext!==!0&&(O===A||O===l||O===u||O===_||O===m)===!0&&ce()===g){if(D=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,R===!0){for(;se()!==!0&&(O=ue());){if(O===f){M=re.backslashes=!0,O=ue();continue}if(O===x){D=re.isGlob=!0,Y=!0;break}}continue}break}if(O===u){if(L===u&&(te=re.isGlobstar=!0),D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===_){if(D=re.isGlob=!0,Y=!0,R===!0)continue;break}if(O===b){for(;se()!==!0&&(me=ue());){if(me===f){M=re.backslashes=!0,ue();continue}if(me===P){T=re.isBracket=!0,D=re.isGlob=!0,Y=!0;break}}if(R===!0)continue;break}if(k.nonegate!==!0&&O===m&&W===F){J=re.negated=!0,F++;continue}if(k.noparen!==!0&&O===g){if(D=re.isGlob=!0,R===!0){for(;se()!==!0&&(O=ue());){if(O===g){M=re.backslashes=!0,O=ue();continue}if(O===x){Y=!0;break}}continue}break}if(D===!0){if(Y=!0,R===!0)continue;break}}k.noext===!0&&(X=!1,D=!1);let ae=K,H="",he="";F>0&&(H=K.slice(0,F),K=K.slice(F),ne-=F),ae&&D===!0&&ne>0?(ae=K.slice(0,ne),he=K.slice(ne)):D===!0?(ae="",he=K):ae=K,ae&&ae!==""&&ae!=="/"&&ae!==K&&S(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),k.unescape===!0&&(he&&(he=c.removeBackslashes(he)),ae&&M===!0&&(ae=c.removeBackslashes(ae)));const ie={prefix:H,input:w,start:F,base:ae,glob:he,isBrace:j,isBracket:T,isGlob:D,isExtglob:X,isGlobstar:te,negated:J};if(k.tokens===!0&&(ie.maxDepth=0,S(O)||z.push(re),ie.tokens=z),k.parts===!0||k.tokens===!0){let me;for(let G=0;G<q.length;G++){const le=me?me+1:F,Ce=q[G],Q=w.slice(le,Ce);k.tokens&&(G===0&&F!==0?(z[G].isPrefix=!0,z[G].value=H):z[G].value=Q,I(z[G]),ie.maxDepth+=z[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<w.length){const G=w.slice(me+1);U.push(G),k.tokens&&(z[z.length-1].value=G,I(z[z.length-1]),ie.maxDepth+=z[z.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=$},513:(o,i,a)=>{const c=a(17),u=process.platform==="win32",{REGEX_BACKSLASH:l,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),i.hasRegexChars=m=>p.test(m),i.isRegexChar=m=>m.length===1&&i.hasRegexChars(m),i.escapeRegex=m=>m.replace(d,"\\$1"),i.toPosixSlashes=m=>m.replace(l,"/"),i.removeBackslashes=m=>m.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const m=process.version.slice(1).split(".").map(Number);return m.length===3&&m[0]>=9||m[0]===8&&m[1]>=10},i.isWindows=m=>m&&typeof m.windows=="boolean"?m.windows:u===!0||c.sep==="\\",i.escapeLast=(m,h,y)=>{const g=m.lastIndexOf(h,y);return g===-1?m:m[g-1]==="\\"?i.escapeLast(m,h,g-1):`${m.slice(0,g)}\\${m.slice(g)}`},i.removePrefix=(m,h={})=>{let y=m;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(m,h={},y={})=>{const g=y.contains?"":"^",b=y.contains?"":"$";let A=`${g}(?:${m})${b}`;return h.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}},492:(o,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=(S,I,$)=>{if(c(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||S===I)return String(S);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let E={relaxZeros:!0,...$};typeof E.strictZeros=="boolean"&&(E.relaxZeros=E.strictZeros===!1);let N=String(E.relaxZeros),k=String(E.shorthand),B=String(E.capture),w=String(E.wrap),q=S+":"+I+"="+N+k+B+w;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let z=Math.min(S,I),U=Math.max(S,I);if(Math.abs(z-U)===1){let j=S+"|"+I;return E.capture?`(${j})`:E.wrap===!1?j:`(?:${j})`}let K=x(S)||x(I),W={min:S,max:I,a:z,b:U},F=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),z<0){let j=U<0?Math.abs(U):1;ne=d(j,Math.abs(z),W,E),z=W.a=0}return U>=0&&(F=d(z,U,W,E)),W.negatives=ne,W.positives=F,W.result=u(ne,F),E.capture===!0?W.result=`(${W.result})`:E.wrap!==!1&&F.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(S,I,$){let E=m(S,I,"-",!1)||[],N=m(I,S,"",!1)||[],k=m(S,I,"-?",!0)||[];return E.concat(k).concat(N).join("|")}function f(S,I){let $=1,E=1,N=v(S,$),k=new Set([I]);for(;S<=N&&N<=I;)k.add(N),$+=1,N=v(S,$);for(N=A(I+1,E)-1;S<N&&N<=I;)k.add(N),E+=1,N=A(I+1,E)-1;return k=[...k],k.sort(y),k}function p(S,I,$){if(S===I)return{pattern:S,count:[],digits:0};let E=h(S,I),N=E.length,k="",B=0;for(let w=0;w<N;w++){let[q,z]=E[w];q===z?k+=q:q!=="0"||z!=="9"?k+=C(q,z):B++}return B&&(k+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[B],digits:N}}function d(S,I,$,E){let N=f(S,I),k=[],B=S,w;for(let q=0;q<N.length;q++){let z=N[q],U=p(String(B),String(z),E),K="";if(!$.isPadded&&w&&w.pattern===U.pattern){w.count.length>1&&w.count.pop(),w.count.push(U.count[0]),w.string=w.pattern+_(w.count),B=z+1;continue}$.isPadded&&(K=P(z,$,E)),U.string=K+U.pattern+_(U.count),k.push(U),B=z+1,w=U}return k}function m(S,I,$,E,N){let k=[];for(let B of S){let{string:w}=B;!E&&!g(I,"string",w)&&k.push($+w),E&&g(I,"string",w)&&k.push($+w)}return k}function h(S,I){let $=[];for(let E=0;E<S.length;E++)$.push([S[E],I[E]]);return $}function y(S,I){return S>I?1:I>S?-1:0}function g(S,I,$){return S.some(E=>E[I]===$)}function v(S,I){return Number(String(S).slice(0,-I)+"9".repeat(I))}function A(S,I){return S-S%Math.pow(10,I)}function _(S){let[I=0,$=""]=S;return $||I>1?`{${I+($?","+$:"")}}`:""}function C(S,I,$){return`[${S}${I-S===1?"":"-"}${I}]`}function x(S){return/^-?(0+)\d/.test(S)}function P(S,I,$){if(!I.isPadded)return S;let E=Math.abs(I.maxLen-String(S).length),N=$.relaxZeros!==!1;switch(E){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${E}}`:`0{${E}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=hp},837:o=>{o.exports=Yp()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},c=!0;try{e[o](a,a.exports,r),c=!1}finally{c&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Dr.exports=n})()),Dr.exports}var Ia;function Jp(){return Ia||(Ia=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=Zp();function n(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
- `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function o(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>n(l,c))}}(Lr)),Lr}var Na;function vl(){return Na||(Na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(o.domains||o.remotePatterns)){let u;try{u=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=Jp();if(!f(o.domains,o.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 o.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(kr)),kr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=et._(R),i=r._(za),a=r._(pp()),c=Ao,l=Xt,u=mp(),f=ht,p=Ec(),d=r._(vl()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,C,x,P,S,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(C!=="empty"&&S(!0),x!=null&&x.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let k=!1,B=!1;x.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>k,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{k=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(P!=null&&P.current&&P.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:w}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(w)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+w+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const k=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(k&&!B||!k&&B)&&(0,f.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[C,x]=o.version.split("."),P=parseInt(C,10),S=parseInt(x,10);return P>18||P===18&&S>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,C)=>{let{src:x,srcSet:P,sizes:S,height:I,width:$,decoding:E,className:N,style:k,fetchPriority:B,placeholder:w,loading:q,unoptimized:z,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:ne,onLoad:j,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:E,"data-nimg":U?"fill":"1",className:N,style:k,sizes:S,srcSet:P,src:x,ref:(0,o.useCallback)(X=>{C&&(typeof C=="function"?C(X):typeof C=="object"&&(C.current=X)),X&&(T&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(x||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,w,K,W,F,z))},[x,w,K,W,F,T,z,C]),onLoad:X=>{const te=X.currentTarget;h(te,w,K,W,F,z)},onError:X=>{ne(!0),w!=="empty"&&F(!0),T&&T(X)}})});function v(_){let{isAppRouter:C,imgAttributes:x}=_;const P={as:"image",imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:x.crossOrigin,referrerPolicy:x.referrerPolicy,...y(x.fetchPriority)};return C&&i.default.preload?(i.default.preload(x.src,P),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+x.src+x.srcSet+x.sizes,rel:"preload",href:x.srcSet?void 0:x.src,...P}))}const A=(0,o.forwardRef)((_,C)=>{const P=!(0,o.useContext)(p.RouterContext),S=(0,o.useContext)(u.ImageConfigContext),I=(0,o.useMemo)(()=>{const W=m||S||l.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((j,T)=>j-T),ne=W.deviceSizes.sort((j,T)=>j-T);return{...W,allSizes:F,deviceSizes:ne}},[S]),{onLoad:$,onLoadingComplete:E}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const k=(0,o.useRef)(E);(0,o.useEffect)(()=>{k.current=E},[E]);const[B,w]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:k,setBlurComplete:w,setShowAltText:z,ref:C}),K.priority?o.default.createElement(v,{isAppRouter:P,imgAttributes:U}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Yn,Yn.exports);var em=Yn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var p in f)Object.defineProperty(u,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Re,n=Ao,o=ht,i=em,a=r._(vl()),c=u=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},l=i.Image})(sl);var tm=sl;const Oa=Gt(tm),rm=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?s.jsxs(Ie,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Oa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]}):s.jsxs("div",{className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Oa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},nm=({content:e,CONSTANTS:t})=>s.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>s.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[s.jsxs("div",{className:pe["support-text"],children:[r.title&&s.jsx("h3",{children:r.title}),r.description&&s.jsx("p",{children:r.description})]}),r.items.length&&s.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>s.jsx(rm,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),om=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:s.jsxs(b.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[s.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[s.jsx(b.Icon,{name:`${t}`,size:"small"}),e&&s.jsx("div",{children:e})]}),s.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),im=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>s.jsxs(b.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[s.jsx(b.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:s.jsx(b.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:s.jsx(b.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[s.jsx(b.Icon,{name:`${t}`,size:"medium"}),s.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),s.jsx(b.Accordion.Body,{title:"accordion-body",children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Bn=e=>{const{isMobile:t}=we();return t?s.jsx(im,{...e}):s.jsx(om,{...e})},Lt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Ne();switch(e){case"menu":v=s.jsx(Ie,{className:pe.footer__itemLink,href:l??"#",prefetch:!1,children:s.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":v=s.jsxs("div",{className:b.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[u,s.jsxs("div",{className:b.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,s.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((C,x)=>s.jsx(_,{alt:C,src:`/assets/${C}.svg`,width:c??20,height:c??20},x))})]})]});break;case"social-media":v=s.jsx("div",{className:pe.footer__iconContainer,...g,children:s.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((C,x)=>s.jsx(Ie,{prefetch:!1,href:C.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:C.icon,onClick:()=>A({content:`footer:redes-sociais:${C.icon}`})})},x))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:s.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},am=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),bl=()=>{const{nextimage:e}=Ne();return s.jsx("div",{className:pe["footer--stamps"],children:s.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};bl.displayName="Footer.Stamps";const xl=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=we(),a=R.Children.toArray(e).filter(Boolean),c=a.length;return s.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&s.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&s.jsx("div",{...o,className:b.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((l,u)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&s.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&s.jsx("div",{className:pe.footer__legalText,children:t})]})};xl.displayName="Footer.Wrapper";const Cl=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(xl,{adornment:o,legalTextSlot:s.jsx(am,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(Bn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,p)=>s.jsx(Lt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},p))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Bn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(Lt,{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})}),s.jsxs(Bn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(Lt,{children:r==null?void 0:r.subTitle}):null,s.jsx(Lt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(bl,{})]})]})};Cl.displayName="Footer";const sm=Object.freeze(Object.defineProperty({__proto__:null,Footer:Cl,FooterSupport:nm},Symbol.toStringTag,{value:"Module"})),Ta=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=Qa(e.imageUrl,n.pdp),{nextimage:i}=Ne();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},cm=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=R.useRef(!1);return s.jsx(Le.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},lm={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Sl=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var u,f;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=b.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(b.Carousel.Root,{innerRef:p=>{i(p)},className:lm["gallery-carousel-modifier"],children:[s.jsx(b.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:s.jsx(b.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ta,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&s.jsx(b.Carousel.Item,{style:l,children:s.jsx(cm,{video:t,productName:n,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ta,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Sl.displayName="PDP.Carousel";const um=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=lo(),[o,i]=R.useState({show:!1,initialIndex:0});R.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Sl,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},Al=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=lo(),n=R.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(um,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};Al.displayName="PDP.Gallery";const dm=Object.freeze(Object.defineProperty({__proto__:null,Gallery:Al},Symbol.toStringTag,{value:"Module"})),fm="_container_1sy8s_16",qe={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:fm,"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"},pm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:qe["add-itens-to-cart-container"],children:[s.jsxs("div",{className:qe["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:qe["add-itens-to-cart-qty-products"],children:s.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),s.jsx("div",{className:qe["add-itens-to-cart-total"],children:s.jsx("span",{children:ao({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:qe["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},mm=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(n.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),hm=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:u,...f}=o;return{...r,totalPrice:i-u.price,products:f}}const a=co(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,l=a.price;if(o[t]){const{price:u}=o[t];return o[t]={...o[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...o}}}return{totalPrice:i+l,products:{...o,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},gm="_carousel_245ib_1",ym="_shelf__container_245ib_14",_m="_shelf_without_carousel_245ib_34",ct={carousel:gm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:ym,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:_m},Ma=({title:e})=>s.jsx("div",{className:ct.shelf__container,children:e&&s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{children:[s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-body-md",Te.responsive["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Te.responsive["responsive-desktop-flex"]),children:e})]})})}),vm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=we(),i=r[o?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=b.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=R.Children.toArray(e).length;return o||f>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:ct.carousel,children:[s.jsxs("div",{className:ct["custom-controllers"],children:[n&&s.jsx(Ma,{title:n}),i<f&&s.jsxs(b.Carousel.Controller,{className:ct["controllers-arrows-bullets"],children:[s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&s.jsx(b.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),s.jsx(b.Carousel.Body,{children:R.Children.map(e,(d,m)=>s.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${m}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(Ma,{title:n}),s.jsx("div",{className:ct.shelf_without_carousel,children:e})]})},bm={Shelf:vm},xm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=R.useMemo(()=>mm(r),[r]),{isMobile:a}=we(),{addItemsToCart:c}=Fe(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=io(),[f,p]=R.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(v=>v.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=hm({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return R.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]),s.jsxs("div",{className:qe.container,ref:n,children:[s.jsx("div",{className:qe["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(bm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,C;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?s.jsxs(je.Root,{item:{...h,image:yo.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[s.jsx(je.Header,{product:h,tag:g.commercial}),s.jsx(je.Media,{}),s.jsxs(je.Wrapper,{type:"body",children:[s.jsx(je.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(C=g.institucional)==null?void 0:C.icon}}),s.jsx(je.Actions,{children:s.jsx(je.SizeSelector,{callback:x=>m({selectedProduct:x,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:qe["add-cart-container"],children:s.jsx(pm,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Cm=({page:e,data:t})=>{const{pathname:r}=Ne(),n=R.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return R.useEffect(()=>{const l=rc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const f=new Date(0);o({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),nc("login_event","",{expires:f})}},[]),R.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,p={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=os(),h=m,y=d;l={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var Zn={exports:{}},Dt={exports:{}},ka;function Sm(){return ka||(ka=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var f in u)Object.defineProperty(l,f,{enumerable:!0,get:u[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(l){let{type:u,props:f}=l;const p=document.createElement(u);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();u==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const p=u.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===l.nonce&&l.isEqualNode(p)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const v=p[y].nextSibling;(v==null||(m=v.tagName)==null?void 0:m.toLowerCase())===l&&d.push(v)}const h=u.map(o).filter(y=>{for(let g=0,v=d.length;g<v;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const v=y.previousSibling;if(v&&v.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(v)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const v=document.createElement("meta");v.name="next-head",v.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(v),f.appendChild(y)})}:a=(l,u)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,v=p.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===l&&m.push(v)}const y=u.map(o).filter(g=>{for(let v=0,A=m.length;v<A;v++){const _=m[v];if(i(_,g))return m.splice(v,1),!1}return!0});m.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const m=u[d.type]||[];m.push(d),u[d.type]=m});const f=u.title?u.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(x,P){for(var S in P)Object.defineProperty(x,S,{enumerable:!0,get:P[S]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return C}});const n=Re,o=et,i=n._(za),a=o._(R),c=ll(),l=Sm(),u=Rc(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=x=>{if(i.default.preinit){x.forEach(P=>{i.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;x.forEach(S=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=S,P.appendChild(I)})}},h=x=>{const{src:P,id:S,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:E,children:N="",strategy:k="afterInteractive",onError:B,stylesheets:w}=x,q=S||P;if(q&&p.has(q))return;if(f.has(P)){p.add(q),f.get(P).then(I,B);return}const z=()=>{$&&$(),p.add(q)},U=document.createElement("script"),K=new Promise((W,F)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),z()}),U.addEventListener("error",function(ne){F(ne)})}).catch(function(W){B&&B(W)});E?(U.innerHTML=E.__html||"",z()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):P&&(U.src=P,f.set(P,K));for(const[W,F]of Object.entries(x)){if(F===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,F)}k==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",k),w&&m(w),document.body.appendChild(U)};function y(x){const{strategy:P="afterInteractive"}=x;P==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(x))}):h(x)}function g(x){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(x)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(x))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const S=P.id||P.getAttribute("src");p.add(S)})}function A(x){x.forEach(y),v()}function _(x){const{id:P,src:S="",onLoad:I=()=>{},onReady:$=null,strategy:E="afterInteractive",onError:N,stylesheets:k,...B}=x,{updateScripts:w,scripts:q,getIsSsr:z,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||S;W.current||($&&ne&&p.has(ne)&&$(),W.current=!0)},[$,P,S]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(E==="afterInteractive"?h(x):E==="lazyOnload"&&g(x),F.current=!0)},[x,E]),(E==="beforeInteractive"||E==="worker")&&(w?(q[E]=(q[E]||[]).concat([{id:P,src:S,onLoad:I,onReady:$,onError:N,...B}]),w(q)):z&&z()?p.add(P||S):z&&!z()&&h(x)),U){if(k&&k.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),E==="beforeInteractive")return S?(i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([S])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));E==="afterInteractive"&&S&&i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const C=_;(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)})(Zn,Zn.exports);var Am=Zn.exports,Em=Am;const Rm=Gt(Em),wm=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Rm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),jm=So(()=>Promise.resolve(wm),{ssr:!1}),Pm={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},lt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...c})=>s.jsxs(b.SnackBar.Structure,{...c,size:e,className:b.helpers.classNameConcat(Pm["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[s.jsx(b.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&s.jsx(b.SnackBar.Support,{children:o})]});lt.displayName="SnackBar";const El=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?s.jsx(Ie,{href:n,children:e}):e},Im={teamComponents:{AddToCart:_o,BackToTop:yd,BuyPackage:xm,...sm,FreightCalculation:zf,Header:Gc,Link:nt,Media:Le,ProductCard:je},template:{pdp:dm},utils:{EventCollector:Cm,ExternalScripts:jm,LinkOrNotLink:mt,ObserverWrapper:Kt,SnackBarComponent:lt,DraftJsLinkWrapper:El}},Nm=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
40
+ */const c=a(357),u=(S,I,$)=>{if(c(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(I===void 0||S===I)return String(S);if(c(I)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...$};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),k=String(w.shorthand),B=String(w.capture),R=String(w.wrap),q=S+":"+I+"="+N+k+B+R;if(u.cache.hasOwnProperty(q))return u.cache[q].result;let z=Math.min(S,I),U=Math.max(S,I);if(Math.abs(z-U)===1){let j=S+"|"+I;return w.capture?`(${j})`:w.wrap===!1?j:`(?:${j})`}let K=x(S)||x(I),W={min:S,max:I,a:z,b:U},F=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),z<0){let j=U<0?Math.abs(U):1;ne=d(j,Math.abs(z),W,w),z=W.a=0}return U>=0&&(F=d(z,U,W,w)),W.negatives=ne,W.positives=F,W.result=l(ne,F),w.capture===!0?W.result=`(${W.result})`:w.wrap!==!1&&F.length+ne.length>1&&(W.result=`(?:${W.result})`),u.cache[q]=W,W.result};function l(S,I,$){let w=m(S,I,"-",!1)||[],N=m(I,S,"",!1)||[],k=m(S,I,"-?",!0)||[];return w.concat(k).concat(N).join("|")}function f(S,I){let $=1,w=1,N=b(S,$),k=new Set([I]);for(;S<=N&&N<=I;)k.add(N),$+=1,N=b(S,$);for(N=A(I+1,w)-1;S<N&&N<=I;)k.add(N),w+=1,N=A(I+1,w)-1;return k=[...k],k.sort(y),k}function p(S,I,$){if(S===I)return{pattern:S,count:[],digits:0};let w=h(S,I),N=w.length,k="",B=0;for(let R=0;R<N;R++){let[q,z]=w[R];q===z?k+=q:q!=="0"||z!=="9"?k+=C(q,z):B++}return B&&(k+=$.shorthand===!0?"\\d":"[0-9]"),{pattern:k,count:[B],digits:N}}function d(S,I,$,w){let N=f(S,I),k=[],B=S,R;for(let q=0;q<N.length;q++){let z=N[q],U=p(String(B),String(z),w),K="";if(!$.isPadded&&R&&R.pattern===U.pattern){R.count.length>1&&R.count.pop(),R.count.push(U.count[0]),R.string=R.pattern+_(R.count),B=z+1;continue}$.isPadded&&(K=P(z,$,w)),U.string=K+U.pattern+_(U.count),k.push(U),B=z+1,R=U}return k}function m(S,I,$,w,N){let k=[];for(let B of S){let{string:R}=B;!w&&!g(I,"string",R)&&k.push($+R),w&&g(I,"string",R)&&k.push($+R)}return k}function h(S,I){let $=[];for(let w=0;w<S.length;w++)$.push([S[w],I[w]]);return $}function y(S,I){return S>I?1:I>S?-1:0}function g(S,I,$){return S.some(w=>w[I]===$)}function b(S,I){return Number(String(S).slice(0,-I)+"9".repeat(I))}function A(S,I){return S-S%Math.pow(10,I)}function _(S){let[I=0,$=""]=S;return $||I>1?`{${I+($?","+$:"")}}`:""}function C(S,I,$){return`[${S}${I-S===1?"":"-"}${I}]`}function x(S){return/^-?(0+)\d/.test(S)}function P(S,I,$){if(!I.isPadded)return S;let w=Math.abs(I.maxLen-String(S).length),N=$.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}}`}}u.cache={},u.clearCache=()=>u.cache={},o.exports=u},17:o=>{o.exports=kp},837:o=>{o.exports=ym()}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}},c=!0;try{e[o](a,a.exports,r),c=!1}finally{c&&delete t[o]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(971);Dr.exports=n})()),Dr.exports}var Os;function vm(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return n},hasMatch:function(){return o}});const r=_m();function n(i,a){if(i.protocol!==void 0){const u=a.protocol.slice(0,-1);if(i.protocol!==u)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function o(i,a,c){return i.some(u=>c.hostname===u)||a.some(u=>n(u,c))}}(Lr)),Lr}var Ts;function ku(){return Ts||(Ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n){let{config:o,src:i,width:a,quality:c}=n;if(process.env.NODE_ENV!=="production"){const u=[];if(i||u.push("src"),a||u.push("width"),u.length>0)throw new Error("Next Image Optimization requires "+u.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality: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("/")&&(o.domains||o.remotePatterns)){let l;try{l=new URL(i)}catch(f){throw console.error(f),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:f}=vm();if(!f(o.domains,o.remotePatterns,l))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+l.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return o.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(kr)),kr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Re,o=nt._(E),i=r._(Ks),a=r._(Tp()),c=jo,u=Yt,l=Mp(),f=_t,p=Nc(),d=r._(ku()),m=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,C,x,P,S,I){const $=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===$)return;_["data-loaded-src"]=$,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(C!=="empty"&&S(!0),x!=null&&x.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:_});let k=!1,B=!1;x.current({...N,nativeEvent:N,currentTarget:_,target:_,isDefaultPrevented:()=>k,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{k=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(P!=null&&P.current&&P.current(_),process.env.NODE_ENV!=="production"){const N=new URL($,"http://n").searchParams.get("url")||$;if(_.getAttribute("data-nimg")==="fill"){if(!I&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),_.parentElement){const{position:R}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(R)||(0,f.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+R+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const k=_.height.toString()!==_.getAttribute("height"),B=_.width.toString()!==_.getAttribute("width");(k&&!B||!k&&B)&&(0,f.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[C,x]=o.version.split("."),P=parseInt(C,10),S=parseInt(x,10);return P>18||P===18&&S>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,C)=>{let{src:x,srcSet:P,sizes:S,height:I,width:$,decoding:w,className:N,style:k,fetchPriority:B,placeholder:R,loading:q,unoptimized:z,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:F,setShowAltText:ne,onLoad:j,onError:T,...D}=_;return o.default.createElement("img",{...D,...y(B),loading:q,width:$,height:I,decoding:w,"data-nimg":U?"fill":"1",className:N,style:k,sizes:S,srcSet:P,src:x,ref:(0,o.useCallback)(X=>{C&&(typeof C=="function"?C(X):typeof C=="object"&&(C.current=X)),X&&(T&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(x||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,R,K,W,F,z))},[x,R,K,W,F,T,z,C]),onLoad:X=>{const te=X.currentTarget;h(te,R,K,W,F,z)},onError:X=>{ne(!0),R!=="empty"&&F(!0),T&&T(X)}})});function b(_){let{isAppRouter:C,imgAttributes:x}=_;const P={as:"image",imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:x.crossOrigin,referrerPolicy:x.referrerPolicy,...y(x.fetchPriority)};return C&&i.default.preload?(i.default.preload(x.src,P),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+x.src+x.srcSet+x.sizes,rel:"preload",href:x.srcSet?void 0:x.src,...P}))}const A=(0,o.forwardRef)((_,C)=>{const P=!(0,o.useContext)(p.RouterContext),S=(0,o.useContext)(l.ImageConfigContext),I=(0,o.useMemo)(()=>{const W=m||S||u.imageConfigDefault,F=[...W.deviceSizes,...W.imageSizes].sort((j,T)=>j-T),ne=W.deviceSizes.sort((j,T)=>j-T);return{...W,allSizes:F,deviceSizes:ne}},[S]),{onLoad:$,onLoadingComplete:w}=_,N=(0,o.useRef)($);(0,o.useEffect)(()=>{N.current=$},[$]);const k=(0,o.useRef)(w);(0,o.useEffect)(()=>{k.current=w},[w]);const[B,R]=(0,o.useState)(!1),[q,z]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:I,blurComplete:B,showAltText:q});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...U,unoptimized:K.unoptimized,placeholder:K.placeholder,fill:K.fill,onLoadRef:N,onLoadingCompleteRef:k,setBlurComplete:R,setShowAltText:z,ref:C}),K.priority?o.default.createElement(b,{isAppRouter:P,imgAttributes:U}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Zn,Zn.exports);var bm=Zn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var p in f)Object.defineProperty(l,p,{enumerable:!0,get:f[p]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return u}});const r=Re,n=jo,o=_t,i=bm,a=r._(ku()),c=l=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:f}=(0,n.getImgProps)(l,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[p,d]of Object.entries(f))d===void 0&&delete f[p];return{props:f}},u=i.Image})(Su);var xm=Su;const Ms=Vt(xm),Cm=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,n=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?s.jsxs(Ne,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Ms,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(v.Icon,{size:"small",name:n})]}):s.jsxs("div",{className:pe["support-item"],children:[e.image&&s.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?s.jsx(Ms,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(v.Icon,{size:"small",name:n})]})},Sm=({content:e,CONSTANTS:t})=>s.jsx("div",{className:pe["support-container"],children:e==null?void 0:e.map((r,n)=>s.jsxs("div",{"data-device":r.device,className:pe["support-section"],children:[s.jsxs("div",{className:pe["support-text"],children:[r.title&&s.jsx("h3",{children:r.title}),r.description&&s.jsx("p",{children:r.description})]}),r.items.length&&s.jsx("div",{className:pe["support-items"],"data-gap":r.gap,children:r.items.map((o,i)=>s.jsx(Cm,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Am=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:n,columnAlignContent:o,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:u})=>s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:n,alignItems:n},columnWrapper:{alignContent:o,alignItems:i}},children:s.jsxs(v.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:pe.footer__column,children:[s.jsxs("div",{className:t?pe.footer__columnTitleIcon:pe.footer__columnTitle,children:[s.jsx(v.Icon,{name:`${t}`,size:"small"}),e&&s.jsx("div",{children:e})]}),s.jsx("div",{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:u})]})}),Em=({name:e,nameIcon:t,maxWidth:r,children:n,ICONS:o,...i})=>s.jsxs(v.Accordion.Wrapper,{className:pe.accordionWrapper,title:"accordion-wrapper",...i,children:[s.jsx(v.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:pe.accordionHeader,closeIndicator:s.jsx(v.Icon,{name:o.arrow_up,size:"medium"}),openIndicator:s.jsx(v.Icon,{name:o.arrow_down,size:"medium"}),title:"accordion-header",children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:t?pe.accordionTextWrapper:"",children:[s.jsx(v.Icon,{name:`${t}`,size:"medium"}),s.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),s.jsx(v.Accordion.Body,{title:"accordion-body",children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:pe.footer__columnContent,style:{maxWidth:`${r}px`},children:n})})})]}),Bn=e=>{const{isMobile:t}=Ae();return t?s.jsx(Em,{...e}):s.jsx(Am,{...e})},Bt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:u,paymentDisclaimer:l,paymentTitle:f,rowAlignContent:p,columnAlignContent:d,columnAlignItems:m,textAlignContent:h,textAlignItems:y,...g})=>{let b;const{handleSelectContent:A}=ge(),{nextimage:_}=je();switch(e){case"menu":b=s.jsx(Ne,{className:pe.footer__itemLink,href:u??"#",prefetch:!1,children:s.jsx("span",{onClick:()=>{A({content:`footer:${n}:${t}`})},children:t})});break;case"payment":b=s.jsxs("div",{className:v.helpers.classNameConcat(pe.payment,pe.footer__itemSmallText),...g,children:[l,s.jsxs("div",{className:v.helpers.classNameConcat(pe.footer__iconContainer,pe.footer__iconListSubHeader),children:[f,s.jsx("div",{className:pe.footer__iconList,children:i==null?void 0:i.map((C,x)=>s.jsx(_,{alt:C,src:`/assets/${C}.svg`,width:c??20,height:c??20},x))})]})]});break;case"social-media":b=s.jsx("div",{className:pe.footer__iconContainer,...g,children:s.jsx("div",{className:pe.footer__iconList,children:a==null?void 0:a.map((C,x)=>s.jsx(Ne,{prefetch:!1,href:C.link??"#",target:"_blank",children:s.jsx(v.Icon,{size:"medium",name:C.icon,onClick:()=>A({content:`footer:redes-sociais:${C.icon}`})})},x))})});break;default:b=s.jsx("div",{className:r,...g,children:t})}return s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:p,alignItems:p},columnWrapper:{alignContent:d,alignItems:m}},...g,children:s.jsx(v.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:v.helpers.classNameConcat(pe.footer__item,r),children:b})})},wm=({className:e,text:t,...r})=>s.jsx("div",{...r,className:v.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),Lu=()=>{const{nextimage:e}=je();return s.jsx("div",{className:pe["footer--stamps"],children:s.jsx(e,{alt:"Empresa B",className:pe["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};Lu.displayName="Footer.Stamps";const Du=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ae(),a=E.Children.toArray(e).filter(Boolean),c=a.length;return s.jsxs("div",{className:pe.footer__main,children:[(r==null?void 0:r.top)&&s.jsx("div",{className:pe.footer__top,children:r==null?void 0:r.top}),c>0&&s.jsx("div",{...o,className:v.helpers.classNameConcat(pe.footer__wrapper,n),children:a.map((u,l)=>s.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:u},l))}),(r==null?void 0:r.bottom)&&s.jsx("div",{className:pe.footer__bottom,children:r.bottom}),t&&s.jsx("div",{className:pe.footer__legalText,children:t})]})};Du.displayName="Footer.Wrapper";const $u=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(Du,{adornment:o,legalTextSlot:s.jsx(wm,{text:i}),children:[Array.isArray(e.column)&&e.column.map((u,l)=>s.jsx(Bn,{id:`${l}column-menu`,name:u.name,nameIcon:u.nameIcon,ICONS:a,children:u.items.map((f,p)=>s.jsx(Bt,{type:"menu",link:f.link,collumnName:u.name,collumnNameIcon:u.nameIcon,children:f.text},p))},l)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Bn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(Bt,{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})}),s.jsxs(Bn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(Bt,{children:r==null?void 0:r.subTitle}):null,s.jsx(Bt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(Lu,{})]})]})};$u.displayName="Footer";const Rm=Object.freeze(Object.defineProperty({__proto__:null,Footer:$u,FooterSupport:Sm},Symbol.toStringTag,{value:"Module"})),ks=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=ta(e.imageUrl,n.pdp),{nextimage:i}=je();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},jm=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=E.useRef(!1);return s.jsx($e.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{o.current||(o.current=!0,n({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Pm={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Bu=({images:e,video:t,handleZoom:r,productName:n,PRODUCT_IMAGE_DIMENSIONS:o})=>{var l,f;const{initialize:i,pagination:a,controller:c,itemsStyles:u}=v.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return s.jsxs(v.Carousel.Root,{innerRef:p=>{i(p)},className:Pm["gallery-carousel-modifier"],children:[s.jsx(v.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:s.jsx(v.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})}),s.jsxs(v.Carousel.Body,{children:[s.jsx(v.Carousel.Item,{style:u,children:s.jsx(ks,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},"PDP_gallery_0"),t&&s.jsx(v.Carousel.Item,{style:u,children:s.jsx(jm,{video:t,productName:n,...((l=e[1])==null?void 0:l.imageUrl)&&{poster:(f=e[1])==null?void 0:f.imageUrl}})},"PDP_gallery_video"),e.map((p,d)=>d===0?null:s.jsx(v.Carousel.Item,{style:u,children:s.jsx(ks,{image:p,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Bu.displayName="PDP.Carousel";const Im=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=fo(),[o,i]=E.useState({show:!1,initialIndex:0});E.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Bu,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},qu=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=fo(),n=E.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(Im,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};qu.displayName="PDP.Gallery";const Nm=Object.freeze(Object.defineProperty({__proto__:null,Gallery:qu},Symbol.toStringTag,{value:"Module"})),Om="_container_1sy8s_16",Fe={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Om,"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"},Tm=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:Fe["add-itens-to-cart-container"],children:[s.jsxs("div",{className:Fe["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:Fe["add-itens-to-cart-qty-products"],children:s.jsx("span",{children:n===0?r.BUY_PACKAGE.group_cart.select_all_product:`${n} ${n===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),s.jsx("div",{className:Fe["add-itens-to-cart-total"],children:s.jsx("span",{children:co({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(v.Button,{onClick:t,className:Fe["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Mm=e=>e.reduce((t,r)=>{var o;const n=t.find(i=>i.node.id===r.node.id);if(!n)return[...t,r];if((o=n==null?void 0:n.node.isVariantOf)!=null&&o.hasVariant){const i=n.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(n.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),km=({selectedProduct:e,productId:t,prevState:r,mainSellerId:n})=>{const{products:o,totalPrice:i}=r;try{if(!e){const{[t]:l,...f}=o;return{...r,totalPrice:i-l.price,products:f}}const a=lo(e.offers.offers,n);if(!a)return r;const c=a.seller.identifier,u=a.price;if(o[t]){const{price:l}=o[t];return o[t]={...o[t],price:u,id:e.sku,seller:c},{totalPrice:i+u-l,products:{...o}}}return{totalPrice:i+u,products:{...o,[t]:{id:e.sku,price:u,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Lm="_carousel_245ib_1",Dm="_shelf__container_245ib_14",$m="_shelf_without_carousel_245ib_34",lt={carousel:Lm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Dm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:$m},Ls=({title:e})=>s.jsx("div",{className:lt.shelf__container,children:e&&s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{children:[s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-body-md",Te.responsive["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-md",Te.responsive["responsive-desktop-flex"]),children:e})]})})}),Bm=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ae(),i=r[o?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:u,pagination:l}=v.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),f=E.Children.toArray(e).length;return o||f>=4?s.jsxs(v.Carousel.Root,{innerRef:d=>{a(d)},className:lt.carousel,children:[s.jsxs("div",{className:lt["custom-controllers"],children:[n&&s.jsx(Ls,{title:n}),i<f&&s.jsxs(v.Carousel.Controller,{className:lt["controllers-arrows-bullets"],children:[s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.arrow_right})}})]}),!o&&i>2&&s.jsx(v.Carousel.Bullets,{page:l.currentPage,total:l.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),s.jsx(v.Carousel.Body,{children:E.Children.map(e,(d,m)=>s.jsx(v.Carousel.Item,{style:{...u,overflow:"hidden"},children:d},`${n}_${m}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(Ls,{title:n}),s.jsx("div",{className:lt.shelf_without_carousel,children:e})]})},qm={Shelf:Bm},Hm=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=E.useMemo(()=>Mm(r),[r]),{isMobile:a}=Ae(),{addItemsToCart:c}=Be(),{sendDataLayerEvent:u}=ge(),{getAvailableProductTag:l}=ao(),[f,p]=E.useState({totalPrice:0,products:{}}),d=()=>{const h=Object.values(f.products);c(h),u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:h.map(y=>{const g=i.find(b=>b.node.id===y.productId);return g==null?void 0:g.node})},supportData:{selectedSkus:h,price:f.totalPrice}}})},m=({selectedProduct:h,productId:y})=>{const g=km({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});p(g)};return E.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;u({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),s.jsxs("div",{className:Fe.container,ref:n,children:[s.jsx("div",{className:Fe["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(qm.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:h},y)=>{var A,_,C;const g=l(h.cluster.highlights),{availability:{status:b}}=h;return b?s.jsxs(Pe.Root,{item:{...h,image:xo.helpers.product.getFirstImages({images:h.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:y,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:o,children:[s.jsx(Pe.Header,{product:h,tag:g.commercial}),s.jsx(Pe.Media,{}),s.jsxs(Pe.Wrapper,{type:"body",children:[s.jsx(Pe.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(C=g.institucional)==null?void 0:C.icon}}),s.jsx(Pe.Actions,{children:s.jsx(Pe.SizeSelector,{callback:x=>m({selectedProduct:x,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:Fe["add-cart-container"],children:s.jsx(Tm,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Fm=({page:e,data:t})=>{const{pathname:r}=je(),n=E.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return E.useEffect(()=>{const u=cc("login_event")||"{}",l=JSON.parse(u);if(l.name||l.method){const f=new Date(0);o({functionKey:"readyEvents",data:{event:l.name,readyData:{method:l.method}}}),vo("login_event","",{expires:f})}},[]),E.useEffect(()=>{if(n.current===r)return;n.current=r;let u={};switch(e){case"PDP":{const f=t,p={};if(!f){u={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:m})=>p[d]=m[0].commertialOffer.AvailableQuantity),u={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:p,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:p,id:d,name:m}=ua(),h=m,y=d;u={page_category:"lista_produtos",...p&&{page_departament:p}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},p&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:p}}});break}default:u={page_category:e},c.current={},a.current={};break}const l={region:e,...u};i.current=e,o({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...l}},timeout:0})},[r]),null};var Jn={exports:{}};function zm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qn={},Hn={},Ds;function Um(){return Ds||(Ds=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Re._(E).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Hn)),Hn}var $s;function Gm(){return $s||($s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});const r=Re._(E),n=Um();function o(h){return h&&h.default?h.default:h}const i=[],a=[];let c=!1;function u(h){let y=h(),g={loading:!0,loaded:null,error:null};return g.promise=y.then(b=>(g.loading=!1,g.loaded=b,b)).catch(b=>{throw g.loading=!1,g.error=b,b}),g}function l(h,y){let g=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},y),b=null;function A(){if(!b){const x=new f(h,g);b={getCurrentValue:x.getCurrentValue.bind(x),subscribe:x.subscribe.bind(x),retry:x.retry.bind(x),promise:x.promise.bind(x)}}return b.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const x=g.webpack&&typeof zm.resolveWeak=="function"?g.webpack():g.modules;x&&a.push(P=>{for(const S of x)if(P.includes(S))return A()})}function _(){A();const x=r.default.useContext(n.LoadableContext);x&&Array.isArray(g.modules)&&g.modules.forEach(P=>{x(P)})}function C(x,P){_();const S=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(P,()=>({retry:b.retry}),[]),r.default.useMemo(()=>S.loading||S.error?r.default.createElement(g.loading,{isLoading:S.loading,pastDelay:S.pastDelay,timedOut:S.timedOut,error:S.error,retry:b.retry}):S.loaded?r.default.createElement(o(S.loaded),x):null,[x,S])}return C.preload=()=>A(),C.displayName="LoadableComponent",r.default.forwardRef(C)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function p(h){return l(u,h)}function d(h,y){let g=[];for(;h.length;){let b=h.pop();g.push(b(y))}return Promise.all(g).then(()=>{if(h.length)return d(h,y)})}p.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),p.preloadReady=h=>(h===void 0&&(h=[]),new Promise(y=>{const g=()=>(c=!0,y());d(a,h).then(g,g)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=p.preloadReady);const m=p}(qn)),qn}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var d in p)Object.defineProperty(f,d,{enumerable:!0,get:p[d]})}r(t,{noSSR:function(){return u},default:function(){return l}});const n=Re,o=n._(E),i=n._(Gm()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function u(f,p){if(delete p.webpack,delete p.modules,!a)return f(p);const d=p.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(f,p){let d=i.default,m={loading:g=>{let{error:b,isLoading:A,pastDelay:_}=g;if(!_)return null;if(process.env.NODE_ENV!=="production"){if(A)return null;if(b)return o.default.createElement("p",null,b.message,o.default.createElement("br",null),b.stack)}return null}};f instanceof Promise?m.loader=()=>f:typeof f=="function"?m.loader=f:typeof f=="object"&&(m={...m,...f}),m={...m,...p};const h=m.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return m.loadableGenerated&&(m={...m,...m.loadableGenerated},delete m.loadableGenerated),typeof m.ssr=="boolean"&&!m.ssr?(delete m.webpack,delete m.modules,u(d,m)):d({...m,loader:y})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Jn,Jn.exports);var Wm=Jn.exports,Vm=Wm;const Km=Vt(Vm);var eo={exports:{}},qt={exports:{}},Bs;function Xm(){return Bs||(Bs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(u,l){for(var f in l)Object.defineProperty(u,f,{enumerable:!0,get:l[f]})}r(t,{DOMAttributeNames:function(){return n},isEqualNode:function(){return i},default:function(){return c}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(u){let{type:l,props:f}=u;const p=document.createElement(l);for(const h in f){if(!f.hasOwnProperty(h)||h==="children"||h==="dangerouslySetInnerHTML"||f[h]===void 0)continue;const y=n[h]||h.toLowerCase();l==="script"&&(y==="async"||y==="defer"||y==="noModule")?p[y]=!!f[h]:p.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:m}=f;return m?p.innerHTML=m.__html||"":d&&(p.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),p}function i(u,l){if(u instanceof HTMLElement&&l instanceof HTMLElement){const f=l.getAttribute("nonce");if(f&&!u.getAttribute("nonce")){const p=l.cloneNode(!0);return p.setAttribute("nonce",""),p.nonce=f,f===u.nonce&&u.isEqualNode(p)}}return u.isEqualNode(l)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(u,l)=>{const f=document.querySelector("head");if(!f)return;const p=f.querySelectorAll('meta[name="next-head"]')||[],d=[];if(u==="meta"){const y=f.querySelector("meta[charset]");y&&d.push(y)}for(let y=0;y<p.length;y++){var m;const b=p[y].nextSibling;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===u&&d.push(b)}const h=l.map(o).filter(y=>{for(let g=0,b=d.length;g<b;g++){const A=d[g];if(i(A,y))return d.splice(g,1),!1}return!0});d.forEach(y=>{var g;const b=y.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var A;(A=y.parentNode)==null||A.removeChild(b)}(g=y.parentNode)==null||g.removeChild(y)}),h.forEach(y=>{var g;const b=document.createElement("meta");b.name="next-head",b.content="1",((g=y.tagName)==null?void 0:g.toLowerCase())==="meta"&&y.getAttribute("charset")||f.appendChild(b),f.appendChild(y)})}:a=(u,l)=>{const f=document.getElementsByTagName("head")[0],p=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!p){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(p.content),m=[];for(let g=0,b=p.previousElementSibling;g<d;g++,b=(b==null?void 0:b.previousElementSibling)||null){var h;(b==null||(h=b.tagName)==null?void 0:h.toLowerCase())===u&&m.push(b)}const y=l.map(o).filter(g=>{for(let b=0,A=m.length;b<A;b++){const _=m[b];if(i(_,g))return m.splice(b,1),!1}return!0});m.forEach(g=>{var b;return(b=g.parentNode)==null?void 0:b.removeChild(g)}),y.forEach(g=>f.insertBefore(g,p)),p.content=(d-m.length+y.length).toString()};function c(){return{mountedInstances:new Set,updateHead:u=>{const l={};u.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const m=l[d.type]||[];m.push(d),l[d.type]=m});const f=l.title?l.title[0]:null;let p="";if(f){const{children:d}=f.props;p=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}p!==document.title&&(document.title=p),["meta","base","link","style","script"].forEach(d=>{a(d,l[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(qt,qt.exports)),qt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(x,P){for(var S in P)Object.defineProperty(x,S,{enumerable:!0,get:P[S]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return C}});const n=Re,o=nt,i=n._(Ks),a=o._(E),c=Eu(),u=Xm(),l=Oc(),f=new Map,p=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=x=>{if(i.default.preinit){x.forEach(P=>{i.default.preinit(P,{as:"style"})});return}if(typeof window<"u"){let P=document.head;x.forEach(S=>{let I=document.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=S,P.appendChild(I)})}},h=x=>{const{src:P,id:S,onLoad:I=()=>{},onReady:$=null,dangerouslySetInnerHTML:w,children:N="",strategy:k="afterInteractive",onError:B,stylesheets:R}=x,q=S||P;if(q&&p.has(q))return;if(f.has(P)){p.add(q),f.get(P).then(I,B);return}const z=()=>{$&&$(),p.add(q)},U=document.createElement("script"),K=new Promise((W,F)=>{U.addEventListener("load",function(ne){W(),I&&I.call(this,ne),z()}),U.addEventListener("error",function(ne){F(ne)})}).catch(function(W){B&&B(W)});w?(U.innerHTML=w.__html||"",z()):N?(U.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",z()):P&&(U.src=P,f.set(P,K));for(const[W,F]of Object.entries(x)){if(F===void 0||d.includes(W))continue;const ne=u.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,F)}k==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",k),R&&m(R),document.body.appendChild(U)};function y(x){const{strategy:P="afterInteractive"}=x;P==="lazyOnload"?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(x))}):h(x)}function g(x){document.readyState==="complete"?(0,l.requestIdleCallback)(()=>h(x)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>h(x))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(P=>{const S=P.id||P.getAttribute("src");p.add(S)})}function A(x){x.forEach(y),b()}function _(x){const{id:P,src:S="",onLoad:I=()=>{},onReady:$=null,strategy:w="afterInteractive",onError:N,stylesheets:k,...B}=x,{updateScripts:R,scripts:q,getIsSsr:z,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=P||S;W.current||($&&ne&&p.has(ne)&&$(),W.current=!0)},[$,P,S]);const F=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{F.current||(w==="afterInteractive"?h(x):w==="lazyOnload"&&g(x),F.current=!0)},[x,w]),(w==="beforeInteractive"||w==="worker")&&(R?(q[w]=(q[w]||[]).concat([{id:P,src:S,onLoad:I,onReady:$,onError:N,...B}]),R(q)):z&&z()?p.add(P||S):z&&!z()&&h(x)),U){if(k&&k.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),w==="beforeInteractive")return S?(i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([S])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));w==="afterInteractive"&&S&&i.default.preload(S,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const C=_;(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 Qm=eo.exports,Ym=Qm;const Zm=Vt(Ym),Jm=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Zm,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),eh=Km(()=>Promise.resolve(Jm),{ssr:!1}),th={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},dt=({size:e,adornment:t,title:r,subtitle:n,supportChildren:o,className:i,Z_INDEX_WAR:a,...c})=>s.jsxs(v.SnackBar.Structure,{...c,size:e,className:v.helpers.classNameConcat(th["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[s.jsx(v.SnackBar.Content,{adornment:t,title:r,subtitle:n}),o&&s.jsx(v.SnackBar.Support,{children:o})]});dt.displayName="SnackBar";const Hu=({children:e,contentState:t,entityKey:r})=>{const{url:n}=t.getEntity(r).getData();return n?s.jsx(Ne,{href:n,children:e}):e},rh={teamComponents:{AddToCart:Co,BackToTop:Bd,BuyPackage:Hm,...Rm,FreightCalculation:up,Header:au,Link:ze,Media:$e,ProductCard:Pe,UserMenu:Ro},template:{pdp:Nm},utils:{EventCollector:Fm,ExternalScripts:eh,LinkOrNotLink:yt,ObserverWrapper:Qt,SnackBarComponent:dt,DraftJsLinkWrapper:Hu}},nh=(e,t)=>{const r=e.map(o=>`'${o.source}'`).join(`,
42
42
  `);return`
43
43
  import type { NextRequest } from 'next/server'
44
44
  import { NextResponse } from 'next/server'
@@ -78,4 +78,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
78
78
  ${r}
79
79
  ]
80
80
  }
81
- `},Om=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:Nm},Symbol.toStringTag,{value:"Module"})),Tm={helpers:Om},Mm=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},qt=e=>{const t=new ke.CompositeDecorator([{strategy:Mm,component:El}]),r=ke.convertFromRaw(e);return ke.EditorState.createWithContent(r,t)},km=e=>ke.convertFromRaw(e),Ht=ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),La="superior-direita",$t="dentro-inferior-centro",Lm="inferior-direita",qn="dentro-inferior-esquerda",Rl=e=>({position:e===$t||e===qn?"absolute":"default",shouldRender:[La,$t,qn].includes(e)?"top":"bottom",alignItems:[$t].includes(e)?"center":[La,Lm].includes(e)?"flex-end":"flex-start",left:e===qn?"16px":e===$t?"45%":"unset"}),Dm=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:qt,EXTENDED_BLOCK_RENDER_MAP:Ht,GET_CONTENT_STATE:km,controllersPositionsAdapter:Rl},Symbol.toStringTag,{value:"Module"})),Xe=e=>({centro:"center",esquerda:"start",direita:"end"})[e],$m=({expanded:e,content:t})=>s.jsxs("details",{open:e,children:[t.textStructureReduced?s.jsx("summary",{onClick:r=>r.preventDefault(),children:s.jsx(ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t!=null&&t.textStructureReduced?qt(JSON.parse(t.textStructureReduced)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{}),t.showTextStructureExpander&&t.textStructure?s.jsx(s.Fragment,{children:s.jsx(ke.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ht,editorState:t.textStructure?qt(JSON.parse(t.textStructure)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),Jn={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Bm="_textContentWrapper_1bigo_5",qm="_textContentSection_1bigo_13",eo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Bm,textContentSection:qm},wl=({data:e,ICONS:t})=>{var o;const[r,n]=R.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)},columnWrapper:{alignContent:Xe(e.textStructureAlignment),alignItems:Xe(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?s.jsx(b.Button,{variant:"tertiary",adornment:{end:s.jsx(b.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):s.jsx(s.Fragment,{})},children:s.jsxs(b.Utils.Column,{className:eo.textContentWrapper,style:{alignItems:Xe(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Xe(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:Jn["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx($m,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(nt,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:eo["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:s.jsx(b.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):s.jsx(s.Fragment,{})]})})},Hm=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],Da=e=>({centro:"center",esquerda:"start",direita:"end"})[e],to=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=R.useState(oc(new No.TZDate(Date.now(),r),new No.TZDate(e,r))),[a,c]=R.useState(!1);R.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(o<=0){clearInterval(u);return}i(o-1e3)},1e3);return()=>{clearInterval(u)}},[o,i,a]);const l=st(o,"days");return a&&o>0?s.jsxs(b.Timer.Root,{...n,children:[l?s.jsxs(s.Fragment,{children:[s.jsx(b.Timer.Digit,{label:"dias",value:l}),s.jsx(b.Timer.Separator,{})]}):null,s.jsx(b.Timer.Digit,{label:"horas",value:st(o,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:st(o,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:st(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},$a={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},Ba=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:C}=e.banner,x=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=Ne();return s.jsxs(b.Banner.Container,{...i,children:[s.jsxs(b.Banner.ImageWrapper,{className:$a["banner-image-wrapper-modifier"],style:u?{background:p}:void 0,children:[a&&s.jsx(Le.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),x&&!(a!=null&&a.length)&&s.jsx(P,{src:x,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&s.jsx("div",{style:{background:p}})]}),h||C||_?s.jsx(b.Banner.Slot,{...Hm(d??"centro"),className:$a["content-modifier"],style:{textAlign:Da(m)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:Da(m),children:[h&&y==="timer-first"&&s.jsx(to,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(wl,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(to,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},Po=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,f=typeof l=="number"?`:${l+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=R.useRef(null),m=R.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(C=>C.includes("loc")||C.includes("signature")||C.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return s.jsx(Kt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:l}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(Ie,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:l})},children:s.jsx(Ba,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):s.jsx(Ba,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},jl=e=>s.jsx(Po,{...e}),ro={"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 Fm(e,t){const{mediatorRef:r}=we();R.useEffect(()=>r.current.subscribe(e,t),[e,t])}const qa=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[f,p]=R.useState("default");return Fm("herobanner:change_controllers_variant",d=>{l&&p(d.includes("white")?"inverse":"default")}),s.jsxs(b.Carousel.Controller,{className:ro["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[s.jsxs(b.Carousel.Arrows,{className:ro["carrousel-arrows-display-controller"],children:[s.jsx(b.Button,{variant:"tertiary",onClick:e,adornment:{start:s.jsx(b.Icon,{name:u.arrow_left})},mode:f}),s.jsx(b.Button,{variant:"tertiary",onClick:t,adornment:{start:s.jsx(b.Icon,{name:u.arrow_right})},mode:f})]}),s.jsx(b.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:f})]})},zm=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=we();return t.data.first?s.jsx(Kt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):s.jsx(s.Fragment,{children:e})},Um=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=b.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=R.useRef(void 0),c=R.useMemo(()=>Rl(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=R.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),u=R.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),f=R.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>u(()=>o==null?void 0:o.prevPage()),onBulletClick:m=>u(()=>o==null?void 0:o.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,u,o]);return R.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),s.jsxs(b.Carousel.Root,{innerRef:d=>{r(d)},className:b.helpers.classNameConcat(ro["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?s.jsx(qa,{ICONS:t,...f,isFirst:e.data.first}):s.jsx(s.Fragment,{}),s.jsx(b.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>s.jsx(b.Carousel.Item,{style:i,children:s.jsx(zm,{data:e,banner:d,children:s.jsx(Po,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?s.jsx(qa,{ICONS:t,...f}):s.jsx(s.Fragment,{})]})},Gm={Banner:jl},it={"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"},Wm=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=we(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=b.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&&o?"column":"row"});return s.jsx(b.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:s.jsxs(b.Carousel.Root,{innerRef:f=>{i(f)},className:b.helpers.classNameConcat(it["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:it["carousel-title-modifier"],children:s.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?s.jsx(b.Carousel.Controller,{className:it["row-controller-modifier"],children:s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]})}):s.jsx(s.Fragment,{})]}):s.jsx(s.Fragment,{}),s.jsx(b.Carousel.Body,{children:e.bennefit.map((f,p)=>s.jsx(b.Carousel.Item,{className:it["card-modifier"],style:l,children:s.jsx(b.Card,{stroke:!0,padding:"small",children:s.jsx(b.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:s.jsx(b.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:s.jsxs(b.TextStructure.DivWrapper,{alignItems:"start",children:[s.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?s.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):s.jsx(s.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:it["row-controller-modifier"],children:[s.jsxs(b.Carousel.Arrows,{children:[s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(b.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(b.Icon,{name:t.ICONS.arrow_right})}})]}),s.jsx(b.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):s.jsx(s.Fragment,{})]})})},Vm=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(eo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(wl,{data:e,ICONS:t})}),Ha={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},Km=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=R.useState([]);return s.jsxs(b.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{children:s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):s.jsx(s.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>s.jsxs(b.Accordion.Wrapper,{className:Ha["accordion-modifier"],children:[s.jsx(b.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:s.jsx(b.Icon,{name:r.arrow_down}),closeIndicator:s.jsx(b.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{className:Jn["draftjs-text-modifier"],children:[s.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?s.jsx("h2",{children:a.subtitle}):s.jsx(s.Fragment,{})]})})}),s.jsx(b.Accordion.Body,{children:s.jsx(b.TextStructure.Root,{children:s.jsx(b.TextStructure.DivWrapper,{className:b.helpers.classNameConcat(Ha["accordion-body-modifier"],Jn["draftjs-text-modifier"]),children:s.jsx(ke.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Ht,editorState:a.text?qt(JSON.parse(a.text)):ke.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Pl=R.createContext({}),Xm=({data:e,children:t,...r})=>{var h,y,g,v,A,_,C,x,P,S,I,$,E;const[n,o]=R.useState(!0),{initialize:i,controller:a,itemsStyles:c}=b.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(v=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:v.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(x=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:x.backgroundColor,textColorVariant:(S=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:S.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},u=(E=l.content)==null?void 0:E.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),f=u.length>1,p={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},m=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(Pl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},$e=()=>R.useContext(Pl),Qm=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=$e();return s.jsx(to,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Ym="_tipbar_bt3p0_1",Zm="_tipbar__carousel_bt3p0_15",vt={tipbar:Ym,tipbar__carousel:Zm,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Jm=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=$e(),{addCouponSeller:i,cartStore:a}=Fe(),[c,l]=R.useState({status:!1,showSnackBar:!1}),[u,f]=R.useState(!1),[p,d]=R.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):f(!0)};return R.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),R.useEffect(()=>{u&&setTimeout(()=>{f(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[u]),R.useEffect(()=>{p&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[p]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:m,disabled:c.status,className:vt["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&s.jsx(lt,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&s.jsx(lt,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),p&&s.jsx(lt,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},eh=({title:e,description:t,style:r,mode:n,className:o})=>s.jsx(b.TextStructure.Root,{children:s.jsxs(b.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&s.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&s.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),th=({coupon:e,...t})=>{const{CONSTANTS:r}=$e();return s.jsx(b.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},rh=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=$e();if(t==="countdown")return s.jsx(Qm,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:Ye.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?s.jsx(Jm,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=b.helpers.ValidateProp({fieldTypes:Ye.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?s.jsx(th,{coupon:e.coupon,mode:a}):null}return s.jsx(eh,{title:o,description:n,mode:i,className:r})},Fa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=$e();return s.jsx(b.Button,{title:"fechar tipbar",className:vt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},nh=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=$e(),a=R.useRef(null),c=(u,f)=>{var p,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(p=o.controller)==null||p.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=R.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=u}},[n,o]);return R.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(b.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:vt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&s.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:s.jsx(b.Icon,{name:i.ICONS.arrow_left})}}),s.jsx(b.Carousel.Body,{children:e}),r&&s.jsx(b.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:s.jsx(b.Icon,{name:i.ICONS.arrow_right})}})]})},oh=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=$e(),u=r&&a;return s.jsx("div",{style:i,"data-hasclosebtn":o,className:b.helpers.classNameConcat(vt.tipbar,t),children:r?s.jsxs(s.Fragment,{children:[s.jsx(nh,{mode:n,showCarouselArrows:u,slideTranstionTimer:c,children:e}),o&&s.jsx(Fa,{handleCloseTipbar:l,showCarouselArrows:u,mode:n})]}):s.jsxs(s.Fragment,{children:[e,o&&s.jsx(Fa,{handleCloseTipbar:l,mode:n})]})})},ih=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=$e(),i=s.jsx("div",{...r,className:vt["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},Il=({className:e})=>{const{isOpen:t,slices:r}=$e();return r.length&&t?s.jsx(oh,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(mt,{href:n.link,children:s.jsx(ih,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,c)=>s.jsx(rh,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};Il.displayName="TipBar.Root";const no=({className:e,...t})=>s.jsx(Xm,{...t,children:s.jsx(Il,{className:e})});no.displayName="TipBar";const ah=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=be(),n=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),o=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return s.jsxs("div",{ref:r,className:Te.responsive["responsive-flex"],children:[o?s.jsx("div",{className:Te.responsive["responsive-mobile-flex"],children:s.jsx(no,{data:o,CONSTANTS:e})}):null,n?s.jsx("div",{className:Te.responsive["responsive-desktop-flex"],children:s.jsx(no,{data:n,CONSTANTS:e})}):null]})},sh={Banner:Gm,BannerSection:Po,BennefitsBarSection:Wm,SingleBannerSection:jl,TextContentSection:Vm,BannerCarousel:Um,TextAccordionSection:Km,TipbarScreening:ah},ch={Components:sh,helpers:Dm};exports.cms=ch;exports.contexts=Zu;exports.data=yo;exports.layout=Im;exports.scripts=Tm;
81
+ `},oh=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:nh},Symbol.toStringTag,{value:"Module"})),ih={helpers:oh},sh=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},zt=e=>{const t=new De.CompositeDecorator([{strategy:sh,component:Hu}]),r=De.convertFromRaw(e);return De.EditorState.createWithContent(r,t)},ah=e=>De.convertFromRaw(e),Ut=De.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),qs="superior-direita",Ht="dentro-inferior-centro",ch="inferior-direita",Fn="dentro-inferior-esquerda",Fu=e=>({position:e===Ht||e===Fn?"absolute":"default",shouldRender:[qs,Ht,Fn].includes(e)?"top":"bottom",alignItems:[Ht].includes(e)?"center":[qs,ch].includes(e)?"flex-end":"flex-start",left:e===Fn?"16px":e===Ht?"45%":"unset"}),uh=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:zt,EXTENDED_BLOCK_RENDER_MAP:Ut,GET_CONTENT_STATE:ah,controllersPositionsAdapter:Fu},Symbol.toStringTag,{value:"Module"})),Ze=e=>({centro:"center",esquerda:"start",direita:"end"})[e],lh=({expanded:e,content:t})=>s.jsxs("details",{open:e,children:[t.textStructureReduced?s.jsx("summary",{onClick:r=>r.preventDefault(),children:s.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ut,editorState:t!=null&&t.textStructureReduced?zt(JSON.parse(t.textStructureReduced)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{}),t.showTextStructureExpander&&t.textStructure?s.jsx(s.Fragment,{children:s.jsx(De.Editor,{editorKey:"draft-editor-1",blockRenderMap:Ut,editorState:t.textStructure?zt(JSON.parse(t.textStructure)):De.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),to={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},dh="_textContentWrapper_1bigo_5",fh="_textContentSection_1bigo_13",ro={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:dh,textContentSection:fh},zu=({data:e,ICONS:t})=>{var o;const[r,n]=E.useState(!1);return s.jsx(v.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ze(e.textStructureAlignment),alignItems:Ze(e.textStructureAlignment)},columnWrapper:{alignContent:Ze(e.textStructureAlignment),alignItems:Ze(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?s.jsx(v.Button,{variant:"tertiary",adornment:{end:s.jsx(v.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>n(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):s.jsx(s.Fragment,{})},children:s.jsxs(v.Utils.Column,{className:ro.textContentWrapper,style:{alignItems:Ze(e.textStructureAlignment)},children:[s.jsx(v.TextStructure.DivWrapper,{style:{textAlign:Ze(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:to["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(lh,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(ze,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:ro["link-modifier"],adornments:(o=e.textStructureButtonIcon)!=null&&o.length&&e.enableIcon?{end:s.jsx(v.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):s.jsx(s.Fragment,{})]})})},ph=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],Hs=e=>({centro:"center",esquerda:"start",direita:"end"})[e],no=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=E.useState(lc(new ko.TZDate(Date.now(),r),new ko.TZDate(e,r))),[a,c]=E.useState(!1);E.useEffect(()=>{a||c(!0);const l=setInterval(()=>{if(o<=0){clearInterval(l);return}i(o-1e3)},1e3);return()=>{clearInterval(l)}},[o,i,a]);const u=ut(o,"days");return a&&o>0?s.jsxs(v.Timer.Root,{...n,children:[u?s.jsxs(s.Fragment,{children:[s.jsx(v.Timer.Digit,{label:"dias",value:u}),s.jsx(v.Timer.Separator,{})]}):null,s.jsx(v.Timer.Digit,{label:"horas",value:ut(o,"hours")}),s.jsx(v.Timer.Separator,{}),s.jsx(v.Timer.Digit,{label:"min",value:ut(o,"minutes")}),s.jsx(v.Timer.Separator,{}),s.jsx(v.Timer.Digit,{label:"segs",value:ut(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},Fs={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},zs=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:u,imageOpacity:l,altImage:f,backgroundColor:p,position:d,contentAlignment:m,showTimer:h,contentOrder:y,timerMode:g,timerEnd:b,timerInit:A,textStructure:_,textStructureReduced:C}=e.banner,x=(u==null?void 0:u.trim())||(c==null?void 0:c.trim())||null,{nextimage:P}=je();return s.jsxs(v.Banner.Container,{...i,children:[s.jsxs(v.Banner.ImageWrapper,{className:Fs["banner-image-wrapper-modifier"],style:l?{background:p}:void 0,children:[a&&s.jsx($e.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),x&&!(a!=null&&a.length)&&s.jsx(P,{src:x,width:"1920",height:"1080",alt:f??c??"",...r?{priority:r}:{},style:l?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&s.jsx("div",{style:{background:p}})]}),h||C||_?s.jsx(v.Banner.Slot,{...ph(d??"centro"),className:Fs["content-modifier"],style:{textAlign:Hs(m)},children:s.jsxs(v.Utils.Column,{gap:"16px",alignItems:Hs(m),children:[h&&y==="timer-first"&&s.jsx(no,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:A?new Date(A):new Date}),s.jsx(zu,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(no,{mode:g??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},To=({data:e,className:t,priority:r,creative:n,...o})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:u,componentIndex:l}=e,f=typeof u=="number"?`:${u+1}`:"",p={creative_name:n,creative_slot:`${n}-${a.current}:${l+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=E.useRef(null),m=E.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],b=g==null?void 0:g.split("&"),A=b==null?void 0:b.filter(C=>C.includes("loc")||C.includes("signature")||C.includes("user_id")),_=A==null?void 0:A.join("&");return`${e.banner.video.split("?")[0]}?${_}`}return e.banner.video},[e]),h=()=>{var y;(y=d.current)!=null&&y.paused&&d.current.play()};return s.jsx(Qt,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...p,index:u}}}},observerOptions:{delay:100,...m&&{threshold:.1}},...m&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(Ne,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:p,index:u})},children:s.jsx(zs,{data:e,videoUrl:m,priority:r,videoRef:d,...o})}):s.jsx(zs,{data:e,videoUrl:m,priority:r,videoRef:d,...o})})},Uu=e=>s.jsx(To,{...e}),oo={"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 mh(e,t){const{mediatorRef:r}=Ae();E.useEffect(()=>r.current.subscribe(e,t),[e,t])}const Us=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:n,totalPages:o,position:i,hideControllers:a,left:c,isFirst:u,ICONS:l})=>{const[f,p]=E.useState("default");return mh("herobanner:change_controllers_variant",d=>{u&&p(d.includes("white")?"inverse":"default")}),s.jsxs(v.Carousel.Controller,{className:oo["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[s.jsxs(v.Carousel.Arrows,{className:oo["carrousel-arrows-display-controller"],children:[s.jsx(v.Button,{variant:"tertiary",onClick:e,adornment:{start:s.jsx(v.Icon,{name:l.arrow_left})},mode:f}),s.jsx(v.Button,{variant:"tertiary",onClick:t,adornment:{start:s.jsx(v.Icon,{name:l.arrow_right})},mode:f})]}),s.jsx(v.Carousel.Bullets,{page:n,total:o,onBulletClick:r,mode:f})]})},hh=({children:e,data:t,banner:r,...n})=>{const{mediatorRef:o}=Ae();return t.data.first?s.jsx(Qt,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{o.current.publish("header:change_variant",r.headerVariant)},...n,children:e}):s.jsx(s.Fragment,{children:e})},gh=({data:e,ICONS:t})=>{var p;const{initialize:r,pagination:n,controller:o,itemsStyles:i}=v.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=E.useRef(void 0),c=E.useMemo(()=>Fu(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),u=E.useCallback(()=>{e.data.config.slideDuration&&n.totalPages>1&&(a.current=setInterval(()=>{o==null||o.nextPage()},e.data.config.slideDuration*1e3))},[o,e.data.config.slideDuration,n.totalPages]),l=E.useCallback(d=>{clearInterval(a.current),u(),d()},[u]),f=E.useMemo(()=>{var d;return{nextOnClick:()=>l(()=>o==null?void 0:o.nextPage()),prevOnClick:()=>l(()=>o==null?void 0:o.prevPage()),onBulletClick:m=>l(()=>o==null?void 0:o.navigateTo(m)),currentPage:n.currentPage,totalPages:n.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[n.currentPage,n.totalPages,c.position,e.data.config.hideControllers,l,o]);return E.useEffect(()=>(u(),()=>clearInterval(a.current)),[u]),s.jsxs(v.Carousel.Root,{innerRef:d=>{r(d)},className:v.helpers.classNameConcat(oo["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&n.totalPages>1?s.jsx(Us,{ICONS:t,...f,isFirst:e.data.first}):s.jsx(s.Fragment,{}),s.jsx(v.Carousel.Body,{children:(p=e==null?void 0:e.data)==null?void 0:p.banners.map((d,m)=>s.jsx(v.Carousel.Item,{style:i,children:s.jsx(hh,{data:e,banner:d,children:s.jsx(To,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:m,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&m===0&&{priority:!0}})})},`hero-banner-item-${m}`))}),c.shouldRender==="bottom"&&n.totalPages>1?s.jsx(Us,{ICONS:t,...f}):s.jsx(s.Fragment,{})]})},yh={Banner:Uu},at={"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 l;const{isMobile:r}=Ae(),n=e.config.size??"medium",o=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:u}=v.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(l=e==null?void 0:e.config)==null?void 0:l.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&o?"column":"row"});return s.jsx(v.Utils.Column,{style:{width:n==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:s.jsxs(v.Carousel.Root,{innerRef:f=>{i(f)},className:v.helpers.classNameConcat(at["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(v.TextStructure.Root,{children:[s.jsx(v.TextStructure.DivWrapper,{className:at["carousel-title-modifier"],children:s.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?s.jsx(v.Carousel.Controller,{className:at["row-controller-modifier"],children:s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]})}):s.jsx(s.Fragment,{})]}):s.jsx(s.Fragment,{}),s.jsx(v.Carousel.Body,{children:e.bennefit.map((f,p)=>s.jsx(v.Carousel.Item,{className:at["card-modifier"],style:u,children:s.jsx(v.Card,{stroke:!0,padding:"small",children:s.jsx(v.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[n==="medium"?"top":"start"]:s.jsx(v.Icon,{name:f.icon,size:n==="medium"?"medium":"small"})},children:s.jsxs(v.TextStructure.DivWrapper,{alignItems:"start",children:[s.jsx("h3",{className:"typography-style-body-md",children:f.title}),f.subtitle&&f.subtitle.length?s.jsx("p",{className:"typography-style-body-xs",children:f.subtitle}):s.jsx(s.Fragment,{})]})})})},`bennefit=${p}`))}),!r&&a.totalPages>1?s.jsxs(v.Carousel.Controller,{className:at["row-controller-modifier"],children:[s.jsxs(v.Carousel.Arrows,{children:[s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_left})}}),s.jsx(v.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:s.jsx(v.Icon,{name:t.ICONS.arrow_right})}})]}),s.jsx(v.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:f=>c==null?void 0:c.navigateTo(f)})]}):s.jsx(s.Fragment,{})]})})},vh=({data:e,ICONS:t})=>s.jsx("div",{className:v.helpers.classNameConcat(ro.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(zu,{data:e,ICONS:t})}),Gs={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},bh=({data:e,id:t,ICONS:r})=>{var i;const[n,o]=E.useState([]);return s.jsxs(v.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{children:s.jsx("h2",{className:v.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):s.jsx(s.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>s.jsxs(v.Accordion.Wrapper,{className:Gs["accordion-modifier"],children:[s.jsx(v.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:s.jsx(v.Icon,{name:r.arrow_down}),closeIndicator:s.jsx(v.Icon,{name:r.arrow_up}),startOpen:n.includes(c),onClick:()=>o(u=>u.includes(c)?u.filter(l=>l!==c):[...u,c]),children:s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{className:to["draftjs-text-modifier"],children:[s.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?s.jsx("h2",{children:a.subtitle}):s.jsx(s.Fragment,{})]})})}),s.jsx(v.Accordion.Body,{children:s.jsx(v.TextStructure.Root,{children:s.jsx(v.TextStructure.DivWrapper,{className:v.helpers.classNameConcat(Gs["accordion-body-modifier"],to["draftjs-text-modifier"]),children:s.jsx(De.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:Ut,editorState:a.text?zt(JSON.parse(a.text)):De.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${n.includes(c)}`))]})},Gu=E.createContext({}),xh=({data:e,children:t,...r})=>{var h,y,g,b,A,_,C,x,P,S,I,$,w;const[n,o]=E.useState(!0),{initialize:i,controller:a,itemsStyles:c}=v.Carousel.useCarousel({gap:0,itemsPerPage:1}),u={slideTranstionTimer:(y=(h=e==null?void 0:e.staticConfig)==null?void 0:h.staticConfig)==null?void 0:y.slideTranstionTimer,showCarouselArrows:(b=(g=e==null?void 0:e.staticConfig)==null?void 0:g.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(_=(A=e==null?void 0:e.staticConfig)==null?void 0:A.staticConfig)==null?void 0:_.hasCloseBtn,backgroundColor:(x=(C=e==null?void 0:e.staticConfig)==null?void 0:C.staticConfig)==null?void 0:x.backgroundColor,textColorVariant:(S=(P=e==null?void 0:e.staticConfig)==null?void 0:P.staticConfig)==null?void 0:S.textColorVariant,content:(($=(I=e==null?void 0:e.content)==null?void 0:I.content)==null?void 0:$.items)??[]},l=(w=u.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),f=l.length>1,p={...u.backgroundColor?{backgroundColor:u.backgroundColor}:{}},d=()=>{o(!1)},m=v.helpers.ValidateProp({fieldTypes:et.Mode,property:u.textColorVariant,fallback:"default"});return s.jsx(Gu.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:p,handleCloseTipbar:d,mode:m,slideTranstionTimer:u.slideTranstionTimer,showCarouselArrows:u.showCarouselArrows,hasCloseBtn:u.hasCloseBtn,slices:l,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},qe=()=>E.useContext(Gu),Ch=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(no,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Sh="_tipbar_bt3p0_1",Ah="_tipbar__carousel_bt3p0_15",Ct={tipbar:Sh,tipbar__carousel:Ah,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Eh=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),{addCouponSeller:i,cartStore:a}=Be(),[c,u]=E.useState({status:!1,showSnackBar:!1}),[l,f]=E.useState(!1),[p,d]=E.useState(!1),m=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?u({status:!0,showSnackBar:!0}):f(!0)};return E.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{u(h=>({...h,showSnackBar:!1}))},o.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),E.useEffect(()=>{l&&setTimeout(()=>{f(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[l]),E.useEffect(()=>{p&&setTimeout(()=>{d(!1)},o.TIPBAR_CONFIGS.snackbar_timeout)},[p]),s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{...n,onClick:m,disabled:c.status,className:Ct["tipbar-item__coupon"],children:c.status?`${o.TIPBAR_CONFIGS.coupon_applied_message}`:`${o.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&s.jsx(dt,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`),l&&s.jsx(dt,{title:o.TIPBAR_CONFIGS.coupon_error_title,subtitle:o.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-coupon-${e}`),p&&s.jsx(dt,{title:o.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:o.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:o.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},wh=({title:e,description:t,style:r,mode:n,className:o})=>s.jsx(v.TextStructure.Root,{children:s.jsxs(v.TextStructure.DivWrapper,{mode:n,className:o,children:[e&&s.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&s.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Rh=({coupon:e,...t})=>{const{CONSTANTS:r}=qe();return s.jsx(v.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},jh=({staticZone:e,type:t,className:r,description:n,title:o})=>{const{mode:i}=qe();if(t==="countdown")return s.jsx(Ch,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=v.helpers.ValidateProp({fieldTypes:et.Mode,property:e.couponButtonMode,fallback:"default"}),c=v.helpers.ValidateProp({fieldTypes:et.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?s.jsx(Eh,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=v.helpers.ValidateProp({fieldTypes:et.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?s.jsx(Rh,{coupon:e.coupon,mode:a}):null}return s.jsx(wh,{title:o,description:n,mode:i,className:r})},Ws=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(v.Button,{title:"fechar tipbar",className:Ct["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(v.Icon,{name:r.ICONS.close})}})},Ph=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),a=E.useRef(null),c=(l,f)=>{var p,d;l.stopPropagation(),l.preventDefault(),f==="prev"?(p=o.controller)==null||p.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),u())},u=E.useCallback(()=>{if(n&&o.controller){const l=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=l}},[n,o]);return E.useEffect(()=>(u(),()=>{a.current&&clearInterval(a.current)}),[n,u]),s.jsxs(v.Carousel.Root,{innerRef:l=>{o.initialize(l)},className:Ct.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&s.jsx(v.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"prev"),adornment:{start:s.jsx(v.Icon,{name:i.ICONS.arrow_left})}}),s.jsx(v.Carousel.Body,{children:e}),r&&s.jsx(v.Button,{variant:"tertiary",mode:t,onClick:l=>c(l,"next"),adornment:{start:s.jsx(v.Icon,{name:i.ICONS.arrow_right})}})]})},Ih=({children:e,className:t})=>{const{hasCarousel:r,mode:n,hasCloseBtn:o,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:u}=qe(),l=r&&a;return s.jsx("div",{style:i,"data-hasclosebtn":o,className:v.helpers.classNameConcat(Ct.tipbar,t),children:r?s.jsxs(s.Fragment,{children:[s.jsx(Ph,{mode:n,showCarouselArrows:l,slideTranstionTimer:c,children:e}),o&&s.jsx(Ws,{handleCloseTipbar:u,showCarouselArrows:l,mode:n})]}):s.jsxs(s.Fragment,{children:[e,o&&s.jsx(Ws,{handleCloseTipbar:u,mode:n})]})})},Nh=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=s.jsx("div",{...r,className:Ct["tipbar-item"],children:e});return n?s.jsx(v.Carousel.Item,{style:o.itemsStyles,children:i}):i},Wu=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(Ih,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(yt,{href:n.link,children:s.jsx(Nh,{highlightFirstSection:n.highlightFirstSection,"data-justifyhighlightedsection":n.horizontalAlignHighlightedSection?n.horizontalAlignHighlightedSection:"center",children:n&&((i=n==null?void 0:n.items)!=null&&i.length)?n.items.map((a,c)=>s.jsx(jh,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};Wu.displayName="TipBar.Root";const io=({className:e,...t})=>s.jsx(xh,{...t,children:s.jsx(Wu,{className:e})});io.displayName="TipBar";const Oh=({CONSTANTS:e,data:t})=>{const{tipbarRef:r}=ve(),n=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="desktop"}),o=t==null?void 0:t.find(i=>{var a,c;return((c=(a=i.staticConfig)==null?void 0:a.staticConfig)==null?void 0:c.deviceType)==="mobile"});return s.jsxs("div",{ref:r,className:Te.responsive["responsive-flex"],children:[o?s.jsx("div",{className:Te.responsive["responsive-mobile-flex"],children:s.jsx(io,{data:o,CONSTANTS:e})}):null,n?s.jsx("div",{className:Te.responsive["responsive-desktop-flex"],children:s.jsx(io,{data:n,CONSTANTS:e})}):null]})},Vs={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Th=e=>{const{nextimage:t}=je();return s.jsx(s.Fragment,{children:e.data.banners.map((r,n)=>s.jsx("div",{className:Vs["card-image-wrapper"],children:s.jsx("div",{className:Vs["card-image-container"],children:s.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},n))})},Mh={Banner:yh,BannerSection:To,BennefitsBarSection:_h,SingleBannerSection:Uu,TextContentSection:vh,BannerCarousel:gh,TextAccordionSection:bh,TipbarScreening:Oh,ImageGrid:Th},kh={Components:Mh,helpers:uh};exports.cms=kh;exports.contexts=bd;exports.data=xo;exports.layout=rh;exports.scripts=ih;