@soma-vertical-web/multi-lib 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";var ol=Object.defineProperty;var il=(e,t,r)=>t in e?ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xt=(e,t,r)=>il(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),B=require("react"),Ve=require("idb-keyval"),ct=require("zustand"),kn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),ke=require("draft-js"),at=require("@soma-vertical-web/foundations"),xo=require("@date-fns/tz"),Pa=require("react-dom"),Co=require("axios"),Qn=B.createContext({}),al=({data:e,children:t})=>s.jsx(Qn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Yn=()=>{const{tags:e}=B.useContext(Qn),t=B.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 m;return(m=r??[])==null?void 0:m.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 m;return(m=r??[])==null?void 0:m.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}},Ia=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Na=B.createContext({}),sl=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return Ia({gridScrollBack:t}),s.jsx(Na.Provider,{value:{sizesContainerRef:r},children:e})},cl=()=>{const e=B.useContext(Na);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Le=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Zn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),Jn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},$t=(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()}},Oa=(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},ll=(e,t)=>e.replace(t,"").trim(),ul=e=>e.replace(/\//g,""),Ta=({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 m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:p,value:h}=m[m.length-1];r.installments={count:p,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])??Jn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,n(m,l)),m.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}},Ma=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,eo=(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)},ka=e=>e.find(t=>t.imageLabel==="10"),La=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Da=(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},$a=({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},dl=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},Ba=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},fl=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ma,formatPriceToCurrency:Le,freightParsePrice:Zn,getAspectRatio:dl,getColorAndSizeFromSkuName:$t,getFirstImages:$a,getProductNameWithoutSku:ll,getSKUName:Oa,getSkuInfos:Ta,getThumbImage:ka,getValidOffer:eo,removeSlashes:ul,resizingImg:La,setVideoPlay:Ba,splitNameAndSizeFromFullName:Jn,updatedResizedImg:Da},Symbol.toStringTag,{value:"Module"})),De=({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,m={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?qa(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=vt({data:n,customData:{...o,...a,...i},configs:ve.configs});De({event:r,data:{...c,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>vt({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}));De({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(m=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(P=>(m.productId??m.id)===P.productId);let p={...a,...c};if(d){const P=za(),D=Fa(P,d);D&&(p={...p,...D}),t==="add_to_cart"&&(a||c)&&Ln({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Ln({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??$t((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=m.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return vt({data:m,customData:{...n,...p??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(j=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:x.identifier)??m.seller},configs:ve.configs})});De({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 m;const u=((m=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.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(", "))),De({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,m,d,p,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(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return vt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...j,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),c=(((f=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(p=n.marketingData)==null?void 0:p.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];De({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;De({event:t,data:{...r}})}},qa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),pl=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]}:{}}:{}}},vt=({data:e,customData:t,configs:r})=>({...ml(e,r==null?void 0:r.MAIN_IMAGE),...hl(e),...gl(e),...yl(e),...t}),Ha=()=>{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("_"))??[]:[]},za=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Fa=(e,t)=>e==null?void 0:e[t],Ln=({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)))},ml=(e,t="1")=>{var i,a,c,l,u,f,m,d,p,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)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Jn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.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)}},So=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,hl=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=So(n),a=So(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]}}},gl=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}=$t(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},yl=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}},Ua=()=>{const[e,t]=Ha(),[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}},_l=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Fa,getAvailablesSizes:qa,getCategories:pl,getPageCategoryAndDepartmentFromSlug:Ua,getPersistedData:za,getProductListInfoFromHead:Ha,pushDatalayer:De,updatePersistedData:Ln},Symbol.toStringTag,{value:"Module"})),Ga=B.createContext({}),vl=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),o=B.useRef(null),i=B.useRef({}),a=B.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(m.itemList=o.current),ve[f](m,d)},p)}catch(h){De({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:m,index:d})=>{f&&(r.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return s.jsx(Ga.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>B.useContext(Ga),Wa=B.createContext({}),bl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var $,E;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:p="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=Yn(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=Ta({items:u,NAME_SPLIT_SYMBOL:o}),P=ka(f),D=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:p}],R=((E=$t(($=t.items)==null?void 0:$[0].name,o))==null?void 0:E.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),M=({sku:q,size:F})=>{const{commonData:U,customData:K}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:F}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:a.current.index}}}),a.current.trigger=!1}M({})},[]),s.jsx(Wa.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:D,breadcrumbList:A,isKit:r,colorName:R,handleViewItemEvent:M},children:e})},to=()=>{const e=B.useContext(Wa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},xl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),Dn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ie,addItem:()=>Ie,addSellerCode:()=>Ie,addMarketingData:()=>Ie,emptyCart:()=>{},removeItem:()=>Ie,setIsOpen:()=>{},shipping:()=>Ie,shippingUpdate:()=>Ie,toggleServiceToProduct:()=>Ie,updateItemQuantity:()=>Ie,insertProfileEmail:()=>Ie,setRecentlyAddedProducts:()=>{}},ro=e=>e===0,Va=(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},Ka=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:m,quantity:d,price:p,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:P}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Va(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:x},listPrice:m,quantity:d,offerings:C,price:p,priceDefinition:h,sellingPrice:P,seller:_}},Xa=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Qa=(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:[]}},Ya=(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)??""}}),$n=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Cl=(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},Sl=e=>{const t=e.reduce((o,i)=>{const a=ro(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}},Al=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(ro(r==null?void 0:r.price)?0:r.quantity),0):0,Za=(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(m=>Ka(m,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Ja=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Rl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Xe=(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},El=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},es=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),ts=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),rs=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ns=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},os=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],is=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Re=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:Za(c,n)})},as=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),wl=e=>[...Array.isArray(e)?e:[e],"faststore"],ss=e=>{const t=e.get("utm_source")||He("utm_source"),r=e.get("utm_campaign")||He("utm_campaign"),n=e.get("utm_medium")||He("utm_medium"),o=e.get("utmi_cp")||He("utmi_cp"),i=e.get("utmi_pc")||He("utmi_pc"),a=e.get("utmi_p")||He("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},He=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},jl=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:xl,addItemOrder:Xa,addNotification:as,createItemOrder:Ka,fetchCartAPI:Re,findItemIndex:$n,findOptions:os,findTotalizerValue:Cl,getCategories:Va,getCode:Xe,getQuantity:ns,getRemoveId:es,getSize:Rl,getTotalItems:Al,getTotalizer:Sl,getUrlParameter:He,getValue:ts,initialState:Dn,isGift:ro,marketingTagsBuilder:wl,mergeOptionsPromise:is,mountMarketingData:ss,orderFormValues:Za,promiseDefault:Ie,removeQuantity:Qa,updateItemSellerExternal:Ja,updateOrderFormPromise:rs,updateQuantity:Ya,wishlistArray:El},Symbol.toStringTag,{value:"Module"})),Pl=()=>{const e=async(p,h)=>Re("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:h}}),t=async(p,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Re("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,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 Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:"",sellerName:""}})},r=async(p,h)=>Re("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:h}}),n=async(p,h,y)=>Re("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Xa(h,y)}}),o=async(p,h,y,g)=>Re("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:p,remove:g}}),i=async p=>Re("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),a=async(p,h="low")=>Re("/api/checkout/order-form",{priority:h,body:{orderFormId:p??""}}),c=async(p,h)=>Re("/api/checkout/order-form/profile",{body:{orderFormId:p,email:h}}),l=async(p,h,y)=>{const g=Qa(h,y);return Re("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:p}})},u=async(p,h,y)=>Re("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:h}}),f=async(p,h,y)=>Re("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:h,selectedAddresses:y}}),m=async(p,h,y,g)=>{const v=Ya(h,y,g);return Re("/api/checkout/order-form/items/update",{body:{orderFormId:p,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(p,h,y,g,v)=>m(p,h,y,g).then(A=>A&&Array.isArray(A.items)?Ja(A.items,y)?m(p,h,y,v):A:!1)}},Bn="soma::cart",nt="soma::options",Qe=ct.create((e,t)=>{const r=Pl(),n=async(o,i,a)=>{e({loading:!0});const c=await rs(o);if(typeof c!="boolean"){e({...c});const l=await is(Ve.get(nt),a);return Ve.set(nt,l),ts(c,i).finally(()=>e({loading:!1,options:l}))}return Ie};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ve.get(nt).then(u=>os(u,i.items));Ve.set(Bn,i),Ve.set(nt,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 Ve.get(Bn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Dn,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 es(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(m=>m.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 Dn}),Il=()=>Qe(e=>e),cs=ct.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>as(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ls=()=>cs(e=>e.notifications),us=()=>cs(e=>e.actions),Nl=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:nt,KEY_INDEXED_STORE:Bn,useCartStore:Qe,useGetCartStoreState:Il,useGetNotificationActions:us,useGetNotificationsStore:ls},Symbol.toStringTag,{value:"Module"})),Ol=6e3,ds=B.createContext({}),fs=({children:e,...t})=>{const{items:r}=Qe(),[n,o]=B.useState([]),i=B.useRef(null),a=B.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 B.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Ol))},[n]),s.jsx(ds.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},lt=()=>{const e=B.useContext(ds);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ps{constructor(){Xt(this,"events",{});Xt(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 ms=B.createContext({}),Tl=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=B.useState(!0),a=r==="/",c=B.useRef(new ps),l=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),f=B.useRef(u);return B.useEffect(()=>{var p;const m=((p=new URLSearchParams(window.location.search))==null?void 0:p.toString())??"";(m.includes("utm_")||m.includes("gclid"))&&(kn.get("lastMedias")||kn.set("lastMedias",`${m}`,{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]),B.useEffect(()=>{const m=l(a);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[a]),s.jsx(ms.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(fs,{children:e})})},Oe=()=>B.useContext(ms),hs=B.createContext({}),Ml=({children:e,...t})=>s.jsx(hs.Provider,{value:{...t},children:e}),Te=()=>B.useContext(hs),Fe=(e,t)=>ct.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}}}),st={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ut=new Set,kl=()=>{ut.forEach(e=>{e()})},gs=ct.create((e,t)=>{const r=()=>e({value:st.category});return ut.add(r),{value:st.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Bt=()=>gs(e=>e.value),Be=()=>gs(e=>e.actions),ys=Fe(st.menuMobileIsOpen,ut),no=()=>ys(e=>e.value),Ue=()=>ys(e=>e.actions),_s=Fe(st.searchModalIsOpen,ut),Ll=()=>_s(e=>e.value),oo=()=>_s(e=>e.actions),vs=Fe(st.userMenuIsOpen,ut),Dl=()=>vs(e=>e.value),qt=()=>vs(e=>e.actions),$l=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:kl,useActionsHeaderCategory:Be,useActionsMenuMobileIsOpen:Ue,useActionsSearchModalIsOpen:oo,useActionsUserMenuIsOpen:qt,useGetHeaderCategoryStore:Bt,useGetMenuMobileIsOpen:no,useGetSearchModalIsOpen:Ll,useGetUserMenuIsOpen:Dl},Symbol.toStringTag,{value:"Module"})),Ye={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Je=new Set,Bl=()=>{Je.forEach(e=>{e()})},bs=ct.create(e=>{const t=()=>e({value:Ye.selectedSkuInfo});return Je.add(t),{value:Ye.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),ql=()=>bs(e=>e.value),Hl=()=>bs(e=>e.actions),xs=Fe(Ye.openLetMeKnow,Je),zl=()=>xs(e=>e.value),Fl=()=>xs(e=>e.actions),Cs=Fe(Ye.showNotify,Je),Ul=()=>Cs(e=>e.value),Gl=()=>Cs(e=>e.actions),Ss=Fe(Ye.showBottomNavigation,Je),Wl=()=>Ss(e=>e.value),Vl=()=>Ss(e=>e.actions),As=Fe(Ye.openMeasurements,Je),Kl=()=>As(e=>e.value),Xl=()=>As(e=>e.actions),Ql=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Bl,useActionsPDPOpenLetMeKnow:Fl,useActionsPDPOpenMeasurements:Xl,useActionsPDPSelectedSkuInfo:Hl,useActionsPDPShowBottomNavigation:Vl,useActionsPDPShowNotify:Gl,useGetPDPOpenLetMeKnow:zl,useGetPDPOpenMeasurements:Kl,useGetPDPSelectedSkuInfo:ql,useGetPDPShowBottomNavigation:Wl,useGetPDPShowNotify:Ul},Symbol.toStringTag,{value:"Module"})),Rs=B.createContext({}),Yl=({children:e,headerData:t,...r})=>{var l,u;const n=B.useRef(null),o=B.useRef(null),i=B.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=Oe();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,p=n.current.getAttribute("data-interactiveVariant"),h=d?p: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)}),B.useEffect(()=>{const f=new AbortController,m=b.helpers.throttle(()=>{var p;return(p=a.current)==null?void 0:p.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=p=>{var y;(y=p.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(Rs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>B.useContext(Rs),Es=B.createContext({}),ws=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=no(),o=B.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return B.useEffect(()=>{var i;if(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]),B.useEffect(()=>{r.current=document.body},[]),s.jsx(Es.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},dt=()=>B.useContext(Es),Zl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Jl=(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?Zl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},js=B.createContext({}),Ps=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=B.useState(!1),a=B.useRef(null),[c,l]=B.useState(!1),[u,f]=B.useState({left:0,top:0}),m=B.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return B.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:h,top:y}=Jl(p,d,r??0);f({left:h,top:y}),l(!1)}},[r,o]),s.jsx(js.Provider,{value:B.useMemo(()=>({...n,...u,handleClose:m,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,m,c,o,i,l]),children:e})},Ge=()=>{const e=B.useContext(js);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Is=B.createContext({}),eu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Qe(),{setRecentlyAdded:o}=lt(),i=B.useRef(""),a=ls(),{addNotification:c,removeNotification:l}=us(),{addCoupon:u,addItem:f,addSellerCode:m,addMarketingData:d,emptyCart:p,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;B.useEffect(()=>{const E=kn.get("lastMedias");if(n.id&&E&&i.current!==E){i.current=E;const q=new URLSearchParams(E),F=ss(q);d(F)}},[n,d]);const S=B.useCallback(async(E,q)=>(q==="coupon"?u(E):m(E)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return Xe((z==null?void 0:z[0])??"",E,!!K)}return Xe(String(U.coupon),E,!0)}return Xe("","")}).catch(()=>Promise.resolve({code:400})),[u,m]),C=B.useCallback((E,q,F)=>{const{id:U}=E;_(U,q,F)},[_]),j=B.useCallback((E,q,F=!1)=>{if(!E)return;const{id:U}=E,K=$n(n.items,U);if(K!==-1&&!F){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;C(E,z,q)}else f({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});h||o(W=>[...W,E])},[f,C,n.items,h,o]),x=B.useCallback((E,q)=>{if(!E||!Array.isArray(E))return;o(U=>[...U,...E]);const F=E.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=$n(n.items,K),w=ns(W??1,ne);return{id:K,quantity:w,seller:z}});f(F,q)},[f,n.items,o]),P=B.useCallback(async(E,q,F)=>E?y(E).then(()=>(c(q??`${t}`,F),Xe(E,E))):Promise.resolve(Xe("","Product id required")),[c,y]),D=B.useCallback(()=>{n.items.length>0&&p()},[p,n.items]),R=B.useCallback((E,q="BRA")=>g(E,q),[g]),I=B.useCallback(E=>{E&&v(E)},[v]),M=B.useCallback(async(E,q,F)=>{const U=n.items.findIndex(W=>W.id===E);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),$=B.useCallback(async(E,q)=>_(E,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===E);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(Is.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:a,clearCart:D,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:P,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:I,toggleGiftItemCart:M,updateItemQuantity:$}),[r,S,j,x,a,D,c,n,l,P,R,I,M,$]),children:e})},We=()=>{const e=B.useContext(Is);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},tu={contexts:{addToCart:{hook:Ge,provider:Ps},cart:{hook:We,provider:eu},cms:{FlagsAndTags:{context:Qn,hook:Yn,provider:al}},events:{hook:ge,provider:vl},global:{hook:Oe,provider:Tl,mediator:ps},header:{hook:xe,provider:Yl},menuMobile:{hook:dt,provider:ws},next:{hook:Te,provider:Ml},pdp:{provider:sl,hook:cl},pdpdata:{hook:to,provider:bl},ui:{hook:lt,provider:fs}},hooks:{useBackPDC:Ia},stores:{cart:Nl,header:$l,pdp:Ql}};function Ns(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 Os(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 ru=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function nu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function ou(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ts=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ot=(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),iu=Object.freeze(Object.defineProperty({__proto__:null,debounce:ou,getCookie:Ns,getDaysHoursMinutesSeconds:ot,getMilliSeconds:Ts,removeAccentsAndReplaceSpaces:ru,setCookie:Os,throttle:nu},Symbol.toStringTag,{value:"Module"})),au={cart:jl,events:_l,product:fl,utils:iu},io={helpers:au};var Ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function su(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 qn={exports:{}},Ee={};Ee._=Ee._interop_require_default=cu;function cu(e){return e&&e.__esModule?e:{default:e}}var bt={exports:{}},Qt={},Ao;function ks(){return Ao||(Ao=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(m=>c.append(u,n(m))):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(m=>a.delete(m)),f.forEach((m,d)=>a.append(d,m))}),a}}(Qt)),Qt}var Yt={},xt={},Ro;function zt(){if(Ro)return xt;Ro=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(i){return i?o:n})(r)}xt._=xt._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=a?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(i,c,l):i[c]=r[c]}return i.default=r,o&&o.set(r,i),i}return xt}var Eo;function Ls(){return Eo||(Eo=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=zt()._(ks()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",p=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 m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||o.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+p}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)}}(Yt)),Yt}var Zt={},wo;function lu(){return wo||(wo=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}}(Zt)),Zt}var Jt={},jo;function Ft(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var j in C)Object.defineProperty(S,j,{enumerable:!0,get:C[j]})}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 m},SP:function(){return d},ST:function(){return p},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(S){let C=!1,j;return function(){for(var x=arguments.length,P=new Array(x),D=0;D<x;D++)P[D]=arguments[D];return C||(C=!0,j=S(...P)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=a();return S.substring(C.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function f(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const D='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(D)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await S.getInitialProps(C);if(x&&u(x))return P;if(!P){const D='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(D)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(Jt)),Jt}var Ct={exports:{}},er={},Po;function Ds(){return Po||(Po=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(/\/$/,"")||"/"}}(er)),er}var tr={},Io;function ao(){return Io||(Io=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:""}}}(tr)),tr}var No;function Ut(){return No||(No=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ds(),n=ao(),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)}(Ct,Ct.exports)),Ct.exports}var rr={},St={exports:{}},nr={},Oo;function $s(){return Oo||(Oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ao();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(nr)),nr}var To;function uu(){return To||(To=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=$s(),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)}(St,St.exports)),St.exports}var Mo;function Bs(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ft(),r=uu();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}}}(rr)),rr}var or={},ir={},ko;function du(){return ko||(ko=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(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");i.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" 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()}}(ir)),ir}var ar={},Lo;function fu(){return Lo||(Lo=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)}}(ar)),ar}var Do;function pu(){return Do||(Do=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=du(),n=fu()}(or)),or}var sr={},cr={},$o;function mu(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ft();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 m=i[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):m.repeat?[l(d)]:l(d))}),u}}}(cr)),cr}var lr={},ur={},dr={},fr={},Bo;function hu(){return Bo||(Bo=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}}(fr)),fr}var pr={},qo;function gu(){return qo||(qo=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(")")}}(pr)),pr}var Ho;function yu(){return Ho||(Ho=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=hu(),n=gu();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}}(dr)),dr}var zo;function _u(){return zo||(zo=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=yu(),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(m=>f.startsWith(m)),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}}}(ur)),ur}var mr={},Fo;function vu(){return Fo||(Fo=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}}(mr)),mr}var Uo;function bu(){return Uo||(Uo=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 p},getNamedMiddlewareRegex:function(){return h}});const r=_u(),n=vu(),o=Ds(),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 S=r.INTERCEPTION_ROUTE_MARKERS.find(j=>_.startsWith(j)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:j,optional:x,repeat:P}=c(C[1]);return v[j]={pos:A++,repeat:P,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:P}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:P},x?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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 m(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=c(v);let x=S.replace(/\W/g,"");_&&(x=""+_+x);let P=!1;return(x.length===0||x.length>30)&&(P=!0),isNaN(parseInt(x.slice(0,1)))||(P=!0),P&&(x=g()),_?A[x]=""+_+S:A[x]=""+S,j?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),j=S.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?a:void 0}):j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function p(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 S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(lr)),lr}var Go;function xu(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=mu(),r=bu();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 m=Object.keys(u);return m.every(d=>{let p=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(p?"":"/")+"["+g+"]"),h&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(g,h?p.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:m,result:c}}}(sr)),sr}var Wo;function Cu(){return Wo||(Wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=ks(),n=Ls(),o=lu(),i=Ft(),a=Ut(),c=Bs(),l=pu(),u=xu();function f(m,d,p){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&p){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:P}=(0,u.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,P)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return p?[C,S||C]:C}catch{return p?[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)}(bt,bt.exports)),bt.exports}var At={exports:{}},hr={},gr={},Vo;function qs(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ao();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}}(gr)),gr}var Ko;function Su(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=qs(),r=$s();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)}}(hr)),hr}var Xo;function Au(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ut(),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)(Su().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)}(At,At.exports)),At.exports}var yr={},Qo;function Hs(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(yr)),yr}var _r={},Yo;function Ru(){return Yo||(Yo=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Ee._(B);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")}(_r)),_r}var Rt={exports:{}},Et={exports:{}},Zo;function zs(){return Zo||(Zo=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)}(Et,Et.exports)),Et.exports}var Jo;function Eu(){return Jo||(Jo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=B,n=zs(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let p;if(d&&(p=i.get(d),p))return p;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 p={id:m,observer:y,elements:h},a.push(m),i.set(m,p),p}function l(f,m,d){const{id:p,observer:h,elements:y}=c(d);return y.set(f,m),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(p);const v=a.findIndex(A=>A.root===p.root&&A.margin===p.margin);v>-1&&a.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:p}=f;const h=p||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return l(S,j=>j&&g(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[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 wt={exports:{}},jt={exports:{}},vr={},ei;function wu(){return ei||(ei=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}}}(vr)),vr}var ti;function ju(){return ti||(ti=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?wu().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)}(jt,jt.exports)),jt.exports}var Pt={exports:{}},br={},ri;function Pu(){return ri||(ri=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}}}}(br)),br}var ni;function Iu(){return ni||(ni=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 Pu().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)}(Pt,Pt.exports)),Pt.exports}var oi;function Nu(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Ut(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=ju().normalizeLocalePath,f=Iu().detectDomainLocale,m=a||u(i,c).detectedLocale,d=f(l,void 0,m);if(d){const p="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+p+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)}(wt,wt.exports)),wt.exports}var It={exports:{}},ii;function Ou(){return ii||(ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=qs(),n=Ut(),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)}(It,It.exports)),It.exports}var Nt={exports:{}},ai;function Tu(){return ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var p in d)Object.defineProperty(m,p,{enumerable:!0,get:d[p]})}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(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Nt,Nt.exports)),Nt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});const n=Ee._(B),o=Cu(),i=Bs(),a=Ls(),c=Ft(),l=Au(),u=Hs(),f=Ru(),m=Eu(),d=Nu(),p=Ou(),h=Tu(),y=new Set;function g(j,x,P,D,R,I){if(typeof window>"u"||!I&&!(0,i.isLocalURL)(x))return;if(!D.bypassPrefetchedCheck){const $=typeof D.locale<"u"?D.locale:"locale"in j?j.locale:void 0,E=x+"%"+P+"%"+$;if(y.has(E))return;y.add(E)}const M=I?j.prefetch(x,R):j.prefetch(x,P,D);Promise.resolve(M).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,P,D,R,I,M,$,E,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!E&&!(0,i.isLocalURL)(P)))return;j.preventDefault();const K=()=>{const W=M??!0;"beforePopState"in x?x[R?"replace":"push"](P,D,{shallow:I,locale:$,scroll:W}):x[R?"replace":"push"](D||P,{forceOptimisticNavigation:!q,scroll:W})};E?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,a.formatUrl)(j)}const C=n.default.forwardRef(function(x,P){let D;const{href:R,as:I,children:M,prefetch:$=null,passHref:E,replace:q,shallow:F,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...O}=x;D=M,w&&(typeof D=="string"||typeof D=="number")&&(D=n.default.createElement("a",null,D));const L=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=L??X,Z=!L,T=$!==!1,J=$===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[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 x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[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")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.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&&!I){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!L){const G=_(R);return{href:G,as:I?_(I):G}}const[ie,me]=(0,o.resolveHref)(L,R,!0);return{href:ie,as:I?(0,o.resolveHref)(L,I):me||ie}},[L,R,I]),k=n.default.useRef(Y),N=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(D)}catch{throw D?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
1
+ "use strict";var ol=Object.defineProperty;var il=(e,t,r)=>t in e?ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xt=(e,t,r)=>il(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),B=require("react"),Ve=require("idb-keyval"),ct=require("zustand"),kn=require("js-cookie"),b=require("@soma-vertical-web/core-components"),ke=require("draft-js"),at=require("@soma-vertical-web/foundations"),xo=require("@date-fns/tz"),Pa=require("react-dom"),Co=require("axios"),Qn=B.createContext({}),al=({data:e,children:t})=>s.jsx(Qn.Provider,{value:{tags:e==null?void 0:e.config},children:t}),Yn=()=>{const{tags:e}=B.useContext(Qn),t=B.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 m;return(m=r??[])==null?void 0:m.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 m;return(m=r??[])==null?void 0:m.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}},Ia=({gridScrollBack:e})=>{B.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},Oa=B.createContext({}),sl=({children:e,gridScrollBack:t})=>{const r=B.useRef(null);return Ia({gridScrollBack:t}),s.jsx(Oa.Provider,{value:{sizesContainerRef:r},children:e})},cl=()=>{const e=B.useContext(Oa);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Le=(e,t=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:t?2:0}).format(e),Zn=({valueInCents:e,hasFree:t,freeTaxMessage:r})=>e===0?t?r:Le(0):Le(e/100),Jn=(e,t)=>{const[r,n]=e.split(t);return{name:r.trim(),size:n?n.trim():""}},$t=(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()}},Na=(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},ll=(e,t)=>e.replace(t,"").trim(),ul=e=>e.replace(/\//g,""),Ta=({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 m=(d=f==null?void 0:f[0])==null?void 0:d.installments;if(m){const{count:p,value:h}=m[m.length-1];r.installments={count:p,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])??Jn(c.nameComplete??c.name,t).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},u=c.sellers.filter(m=>(m.sellerDefault&&m.commertialOffer.IsAvailable&&(l.available=!0,n(m,l)),m.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}},Ma=e=>e?!e.offers.offers.find(({quantity:t=0})=>t>0):!1,eo=(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)},ka=e=>e.find(t=>t.imageLabel==="10"),La=(e,t)=>{const r=/\/ids\/(\d+)\//,n=e.match(r);return n?e.replace(`/${n[1]}/`,`/${n[1]}-${t.width}-${t.height}/`):e},Da=(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},$a=({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},dl=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},Ba=(e,t,r)=>{t&&(e?(t.getAttribute("src")||(t.src=r??""),t.play()):t.pause())},fl=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Ma,formatPriceToCurrency:Le,freightParsePrice:Zn,getAspectRatio:dl,getColorAndSizeFromSkuName:$t,getFirstImages:$a,getProductNameWithoutSku:ll,getSKUName:Na,getSkuInfos:Ta,getThumbImage:ka,getValidOffer:eo,removeSlashes:ul,resizingImg:La,setVideoPlay:Ba,splitNameAndSizeFromFullName:Jn,updatedResizedImg:Da},Symbol.toStringTag,{value:"Module"})),De=({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,m={...r==="view_item"?{currency:ve.configs.currency,value:f,grade_disponivel:l??(u?qa(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:f,currency:ve.configs.currency}:{}},d=vt({data:n,customData:{...o,...a,...i},configs:ve.configs});De({event:r,data:{...c,ecommerce:{...a,...m,items:[d]}}}),typeof t=="function"&&t(d,m)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:n,outsideEcommerceData:o,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>vt({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}));De({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(m=>{var y,g,v,A,_,S,C,j,x;const d=o==null?void 0:o.find(P=>(m.productId??m.id)===P.productId);let p={...a,...c};if(d){const P=za(),D=Fa(P,d);D&&(p={...p,...D}),t==="add_to_cart"&&(a||c)&&Ln({persistedData:P,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&Ln({persistedData:P,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=m.price??((v=(g=(y=d==null?void 0:d.offers)==null?void 0:y.offers)==null?void 0:g[0])==null?void 0:v.price)??0;const h=(d==null?void 0:d.size)??$t((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((A=m.itemOffered)==null?void 0:A.skuName),ve.configs.NAME_SPLIT_SYMBOL).size;return vt({data:m,customData:{...n,...p??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((_=m.itemOffered)==null?void 0:_.sku),quantity:(n==null?void 0:n.quantity)??m.quantity??1,item_variant2:h,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((x=(j=(C=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:C[0])==null?void 0:j.seller)==null?void 0:x.identifier)??m.seller},configs:ve.configs})});De({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 m;const u=((m=ve.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:m.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(", "))),De({event:"filter",data:{...n,...i,...r}})},viewCartEvent:e=>{var f,m,d,p,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(S=>{const{promotionInfo:C,itemList:j}=i[S.id]??{};return vt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...C,...j,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:ve.configs})}),c=(((f=n.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:f.value)??0)/100,l=(((m=n.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:m.value)??0)/100,u=((d=n.marketingData)==null?void 0:d.utmiCampaign)==="codigodavendedora"?(p=n.marketingData)==null?void 0:p.utmCampaign:(y=String((h=n.openTextField)==null?void 0:h.value))==null?void 0:y.split(" - ")[0];De({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;De({event:t,data:{...r}})}},qa=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),pl=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]}:{}}:{}}},vt=({data:e,customData:t,configs:r})=>({...ml(e,r==null?void 0:r.MAIN_IMAGE),...hl(e),...gl(e),...yl(e),...t}),Ha=()=>{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("_"))??[]:[]},za=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},Fa=(e,t)=>e==null?void 0:e[t],Ln=({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)))},ml=(e,t="1")=>{var i,a,c,l,u,f,m,d,p,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)??((m=(f=e.itemOffered)==null?void 0:f.isVariationOf)==null?void 0:m.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??Jn((d=e.itemOffered)==null?void 0:d.name,ve.configs.NAME_SPLIT_SYMBOL).name,item_brand:((p=e.brand)==null?void 0:p.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)}},So=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,hl=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=So(n),a=So(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]}}},gl=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}=$t(t,ve.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:n}}},yl=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}},Ua=()=>{const[e,t]=Ha(),[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}},_l=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:ve,findDataInPersistedData:Fa,getAvailablesSizes:qa,getCategories:pl,getPageCategoryAndDepartmentFromSlug:Ua,getPersistedData:za,getProductListInfoFromHead:Ha,pushDatalayer:De,updatePersistedData:Ln},Symbol.toStringTag,{value:"Module"})),Ga=B.createContext({}),vl=({children:e,evtFunctionsConfigs:t})=>{const r=B.useRef({}),n=B.useRef(null),o=B.useRef(null),i=B.useRef({}),a=B.useRef({trigger:!1,index:0}),c=({functionKey:f,data:m,callBack:d,timeout:p=100})=>{window.dataLayer||(window.dataLayer=[]),ve.configs=t;try{typeof ve[f]=="function"&&setTimeout(()=>{var h;m.promotionInfo=r.current,(h=o.current)!=null&&h.item_list_name&&(m.itemList=o.current),ve[f](m,d)},p)}catch(h){De({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:m,index:d})=>{f&&(r.current={...m}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...m,...d!==void 0&&{index:d}}}}})};return s.jsx(Ga.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:n,itemListRef:o,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>B.useContext(Ga),Wa=B.createContext({}),bl=({children:e,productData:t,isKit:r,PDP_INFO:n,NAME_SPLIT_SYMBOL:o})=>{var $,E;const{sendDataLayerEvent:i,triggerSelectItemEventRef:a}=ge(),{productId:c,productName:l,items:u,items:[{images:f,Videos:m}],description:d,["Composição"]:p="",productReference:h,categories:[y]}=t,{getAvailableProductTag:g}=Yn(),v=g(Object.entries(t.clusterHighlights).map(q=>({id:q[0],name:q[1]}))),A=y.slice(1,-1).split("/"),{installments:_,price:S,listPrice:C,sizes:j,allSizesAvailable:x}=Ta({items:u,NAME_SPLIT_SYMBOL:o}),P=ka(f),D=[{label:`${n.product.description}`,value:"description",content:d},{label:`${n.product.materiais}`,value:"composition",content:p}],R=((E=$t(($=t.items)==null?void 0:$[0].name,o))==null?void 0:E.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:j,price:S,listPrice:C,installments:_},customData:{installments:_==null?void 0:_.count,installment_value:Number(_==null?void 0:_.value).toFixed(2)}}),M=({sku:q,size:F})=>{const{commonData:U,customData:K}=I();i({functionKey:"productEvents",data:{event:"view_item",commonData:U,customData:{...K,...q&&{item_sku:q},...F&&{item_variant2:F}}}})};return B.useEffect(()=>{if(a.current.trigger){const{commonData:q,customData:F}=I();i({functionKey:"productEvents",data:{event:"select_item",commonData:q,customData:{...F,index:a.current.index}}}),a.current.trigger=!1}M({})},[]),s.jsx(Wa.Provider,{value:{productData:t,productId:c,productName:l,productReference:h,tag:v,items:u,sizes:j,allSizesAvailable:x,installments:_,price:S,listPrice:C,thumbImage:P,images:f,video:m[0],descriptionContent:D,breadcrumbList:A,isKit:r,colorName:R,handleViewItemEvent:M},children:e})},to=()=>{const e=B.useContext(Wa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},xl={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},Ie=Promise.resolve(!1),Dn={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>Ie,addItem:()=>Ie,addSellerCode:()=>Ie,addMarketingData:()=>Ie,emptyCart:()=>{},removeItem:()=>Ie,setIsOpen:()=>{},shipping:()=>Ie,shippingUpdate:()=>Ie,toggleServiceToProduct:()=>Ie,updateItemQuantity:()=>Ie,insertProfileEmail:()=>Ie,setRecentlyAddedProducts:()=>{}},ro=e=>e===0,Va=(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},Ka=(e,t)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:f,listPrice:m,quantity:d,price:p,priceDefinition:h,productCategories:y,productCategoryIds:g,productId:v,refId:A,seller:_,referenceId:S,offerings:C,productRefId:j,skuName:x,sellingPrice:P}=e;return{availability:r,bundleItems:o,referenceId:S,productRefId:j,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:n},categories:Va(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:x},listPrice:m,quantity:d,offerings:C,price:p,priceDefinition:h,sellingPrice:P,seller:_}},Xa=(e,t)=>{const r=e.map(n=>({id:n.id,quantity:n.quantity,seller:n.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Qa=(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:[]}},Ya=(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)??""}}),$n=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Cl=(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},Sl=e=>{const t=e.reduce((o,i)=>{const a=ro(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}},Al=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(ro(r==null?void 0:r.price)?0:r.quantity),0):0,Za=(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(m=>Ka(m,t)):[],marketingData:o,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:f}},Ja=(e,t)=>{const r=e.find(n=>n.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Rl=(e,t)=>{const r=e.sku,n=e.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(t)[1]:"--"},Xe=(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},El=(e,t)=>{const r=new Set;return[e,...t].filter(n=>!r.has(n)&&r.add(n),r)},es=(e,t)=>t&&Array.isArray(t)&&t.find(n=>n.id===e)?Promise.resolve(e):Promise.resolve(!1),ts=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),rs=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},ns=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},os=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(n=>n.id===r.id)):[],is=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Re=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:Za(c,n)})},as=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),wl=e=>[...Array.isArray(e)?e:[e],"faststore"],ss=e=>{const t=e.get("utm_source")||He("utm_source"),r=e.get("utm_campaign")||He("utm_campaign"),n=e.get("utm_medium")||He("utm_medium"),o=e.get("utmi_cp")||He("utmi_cp"),i=e.get("utmi_pc")||He("utmi_pc"),a=e.get("utmi_p")||He("utmi_p");return{...t&&{utmSource:t},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...i&&{utmiPart:i},...a&&{utmipage:a}}},He=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},jl=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:xl,addItemOrder:Xa,addNotification:as,createItemOrder:Ka,fetchCartAPI:Re,findItemIndex:$n,findOptions:os,findTotalizerValue:Cl,getCategories:Va,getCode:Xe,getQuantity:ns,getRemoveId:es,getSize:Rl,getTotalItems:Al,getTotalizer:Sl,getUrlParameter:He,getValue:ts,initialState:Dn,isGift:ro,marketingTagsBuilder:wl,mergeOptionsPromise:is,mountMarketingData:ss,orderFormValues:Za,promiseDefault:Ie,removeQuantity:Qa,updateItemSellerExternal:Ja,updateOrderFormPromise:rs,updateQuantity:Ya,wishlistArray:El},Symbol.toStringTag,{value:"Module"})),Pl=()=>{const e=async(p,h)=>Re("/api/checkout/order-form/coupon",{body:{orderFormId:p,coupon:h}}),t=async(p,h)=>{if(h){const y=h.includes(" - ")?h.split(" - ")[0]:h,g=await Re("/api/checkout/order-form/seller-code",{body:{orderFormId:p,sellerCode:y}},!0);return Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,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 Re("/api/checkout/order-form/attachments",{body:{orderFormId:p,sellerCode:"",sellerName:""}})},r=async(p,h)=>Re("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:p,marketingData:h}}),n=async(p,h,y)=>Re("/api/checkout/order-form/items",{body:{orderFormId:p,orderItems:Xa(h,y)}}),o=async(p,h,y,g)=>Re("/api/checkout/order-form/offerings",{body:{id:h,itemIndex:y,orderFormId:p,remove:g}}),i=async p=>Re("/api/checkout/order-form/items/remove-all",{body:{orderFormId:p}}),a=async(p,h="low")=>Re("/api/checkout/order-form",{priority:h,body:{orderFormId:p??""}}),c=async(p,h)=>Re("/api/checkout/order-form/profile",{body:{orderFormId:p,email:h}}),l=async(p,h,y)=>{const g=Qa(h,y);return Re("/api/checkout/order-form/items/update",{body:{orderItems:g.updateItems,orderFormId:p}})},u=async(p,h,y)=>Re("/api/checkout/order-form/shipping",{body:{orderFormId:p,country:y,postalCode:h}}),f=async(p,h,y)=>Re("/api/checkout/order-form/shipping/update",{body:{orderFormId:p,options:h,selectedAddresses:y}}),m=async(p,h,y,g)=>{const v=Ya(h,y,g);return Re("/api/checkout/order-form/items/update",{body:{orderFormId:p,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(p,h,y,g,v)=>m(p,h,y,g).then(A=>A&&Array.isArray(A.items)?Ja(A.items,y)?m(p,h,y,v):A:!1)}},Bn="soma::cart",nt="soma::options",Qe=ct.create((e,t)=>{const r=Pl(),n=async(o,i,a)=>{e({loading:!0});const c=await rs(o);if(typeof c!="boolean"){e({...c});const l=await is(Ve.get(nt),a);return Ve.set(nt,l),ts(c,i).finally(()=>e({loading:!1,options:l}))}return Ie};if(typeof window<"u"){const o=async i=>{if(i){const a=await Ve.get(nt).then(u=>os(u,i.items));Ve.set(Bn,i),Ve.set(nt,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 Ve.get(Bn).then(i=>r.getOrderForm(i?i.id:"").then(o)),{...Dn,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 es(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(m=>m.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 Dn}),Il=()=>Qe(e=>e),cs=ct.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(n=>as(n,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(n=>n.id!==t)}))}})),ls=()=>cs(e=>e.notifications),us=()=>cs(e=>e.actions),Ol=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:nt,KEY_INDEXED_STORE:Bn,useCartStore:Qe,useGetCartStoreState:Il,useGetNotificationActions:us,useGetNotificationsStore:ls},Symbol.toStringTag,{value:"Module"})),Nl=6e3,ds=B.createContext({}),fs=({children:e,...t})=>{const{items:r}=Qe(),[n,o]=B.useState([]),i=B.useRef(null),a=B.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 B.useEffect(()=>{n.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{o([])},Nl))},[n]),s.jsx(ds.Provider,{value:B.useMemo(()=>({...t,setRecentlyAdded:o,recentlyAddedProducts:a}),[t,o,a]),children:e})},lt=()=>{const e=B.useContext(ds);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class ps{constructor(){Xt(this,"events",{});Xt(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 ms=B.createContext({}),Tl=({children:e,headerConfigs:t,pathname:r,...n})=>{const[o,i]=B.useState(!0),a=r==="/",c=B.useRef(new ps),l=m=>m?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),f=B.useRef(u);return B.useEffect(()=>{var p;const m=((p=new URLSearchParams(window.location.search))==null?void 0:p.toString())??"";(m.includes("utm_")||m.includes("gclid"))&&(kn.get("lastMedias")||kn.set("lastMedias",`${m}`,{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]),B.useEffect(()=>{const m=l(a);c.current.publish("header:change_variant",m.headerVariant),c.current.publish("header:change_position",m.position),f.current=m},[a]),s.jsx(ms.Provider,{value:{isMobile:o,mediatorRef:c,currentHeaderConfigsRef:f,...n},children:s.jsx(fs,{children:e})})},Ne=()=>B.useContext(ms),hs=B.createContext({}),Ml=({children:e,...t})=>s.jsx(hs.Provider,{value:{...t},children:e}),Te=()=>B.useContext(hs),Fe=(e,t)=>ct.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}}}),st={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},ut=new Set,kl=()=>{ut.forEach(e=>{e()})},gs=ct.create((e,t)=>{const r=()=>e({value:st.category});return ut.add(r),{value:st.category,actions:{reset:r,setValue:n=>e(()=>({value:n})),updateValue:n=>{t().value!==n&&e({value:n})}}}}),Bt=()=>gs(e=>e.value),Be=()=>gs(e=>e.actions),ys=Fe(st.menuMobileIsOpen,ut),no=()=>ys(e=>e.value),Ue=()=>ys(e=>e.actions),_s=Fe(st.searchModalIsOpen,ut),Ll=()=>_s(e=>e.value),oo=()=>_s(e=>e.actions),vs=Fe(st.userMenuIsOpen,ut),Dl=()=>vs(e=>e.value),qt=()=>vs(e=>e.actions),$l=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:kl,useActionsHeaderCategory:Be,useActionsMenuMobileIsOpen:Ue,useActionsSearchModalIsOpen:oo,useActionsUserMenuIsOpen:qt,useGetHeaderCategoryStore:Bt,useGetMenuMobileIsOpen:no,useGetSearchModalIsOpen:Ll,useGetUserMenuIsOpen:Dl},Symbol.toStringTag,{value:"Module"})),Ye={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},Je=new Set,Bl=()=>{Je.forEach(e=>{e()})},bs=ct.create(e=>{const t=()=>e({value:Ye.selectedSkuInfo});return Je.add(t),{value:Ye.selectedSkuInfo,actions:{setValue:r=>e(n=>({value:{...n,...r}})),reset:t}}}),ql=()=>bs(e=>e.value),Hl=()=>bs(e=>e.actions),xs=Fe(Ye.openLetMeKnow,Je),zl=()=>xs(e=>e.value),Fl=()=>xs(e=>e.actions),Cs=Fe(Ye.showNotify,Je),Ul=()=>Cs(e=>e.value),Gl=()=>Cs(e=>e.actions),Ss=Fe(Ye.showBottomNavigation,Je),Wl=()=>Ss(e=>e.value),Vl=()=>Ss(e=>e.actions),As=Fe(Ye.openMeasurements,Je),Kl=()=>As(e=>e.value),Xl=()=>As(e=>e.actions),Ql=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:Bl,useActionsPDPOpenLetMeKnow:Fl,useActionsPDPOpenMeasurements:Xl,useActionsPDPSelectedSkuInfo:Hl,useActionsPDPShowBottomNavigation:Vl,useActionsPDPShowNotify:Gl,useGetPDPOpenLetMeKnow:zl,useGetPDPOpenMeasurements:Kl,useGetPDPSelectedSkuInfo:ql,useGetPDPShowBottomNavigation:Wl,useGetPDPShowNotify:Ul},Symbol.toStringTag,{value:"Module"})),Rs=B.createContext({}),Yl=({children:e,headerData:t,...r})=>{var l,u;const n=B.useRef(null),o=B.useRef(null),i=B.useRef(null),{mediatorRef:a,currentHeaderConfigsRef:c}=Ne();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,p=n.current.getAttribute("data-interactiveVariant"),h=d?p: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)}),B.useEffect(()=>{const f=new AbortController,m=b.helpers.throttle(()=>{var p;return(p=a.current)==null?void 0:p.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",m,{passive:!0,signal:f.signal});const d=p=>{var y;(y=p.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(Rs.Provider,{value:{headerData:t,structureRef:o,rootRef:n,tipbarRef:i,...r},children:e})},xe=()=>B.useContext(Rs),Es=B.createContext({}),ws=({children:e})=>{const t=B.useRef(null),r=B.useRef(null),n=no(),o=B.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return B.useEffect(()=>{var i;if(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]),B.useEffect(()=>{r.current=document.body},[]),s.jsx(Es.Provider,{value:{bodyRef:t,handleCloseSubMenu:o,documentBodyRef:r},children:e})},dt=()=>B.useContext(Es),Zl=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Jl=(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?Zl(e==null?void 0:e.parentElement):0;return{left:n.left+n.width/2-(o.width+i),top:n.top+n.height+r}},js=B.createContext({}),Ps=({children:e,delay:t=600,gap:r=20,...n})=>{const[o,i]=B.useState(!1),a=B.useRef(null),[c,l]=B.useState(!1),[u,f]=B.useState({left:0,top:0}),m=B.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return B.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),p=window.document.querySelector("#add-to-cart--tooltip");if(d&&p){const{left:h,top:y}=Jl(p,d,r??0);f({left:h,top:y}),l(!1)}},[r,o]),s.jsx(js.Provider,{value:B.useMemo(()=>({...n,...u,handleClose:m,isLeaving:c,isOpen:o,setIsOpen:i,setIsLeaving:l}),[n,u,m,c,o,i,l]),children:e})},Ge=()=>{const e=B.useContext(js);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},Is=B.createContext({}),eu=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const n=Qe(),{setRecentlyAdded:o}=lt(),i=B.useRef(""),a=ls(),{addNotification:c,removeNotification:l}=us(),{addCoupon:u,addItem:f,addSellerCode:m,addMarketingData:d,emptyCart:p,isOpen:h,removeItem:y,shipping:g,shippingUpdate:v,toggleServiceToProduct:A,updateItemQuantity:_}=n;B.useEffect(()=>{const E=kn.get("lastMedias");if(n.id&&E&&i.current!==E){i.current=E;const q=new URLSearchParams(E),F=ss(q);d(F)}},[n,d]);const S=B.useCallback(async(E,q)=>(q==="coupon"?u(E):m(E)).then(U=>{if(typeof U!="boolean"&&U instanceof Object){if(q==="seller"&&"value"in U){const{statusOk:K,value:W}=U,z=String(W??"").split(" - ");return Xe((z==null?void 0:z[0])??"",E,!!K)}return Xe(String(U.coupon),E,!0)}return Xe("","")}).catch(()=>Promise.resolve({code:400})),[u,m]),C=B.useCallback((E,q,F)=>{const{id:U}=E;_(U,q,F)},[_]),j=B.useCallback((E,q,F=!1)=>{if(!E)return;const{id:U}=E,K=$n(n.items,U);if(K!==-1&&!F){const W=Number(n.items[K].quantity),z=n.items[K]?W+1:1;C(E,z,q)}else f({id:U,quantity:(E==null?void 0:E.quantity)??1,seller:E.seller});h||o(W=>[...W,E])},[f,C,n.items,h,o]),x=B.useCallback((E,q)=>{if(!E||!Array.isArray(E))return;o(U=>[...U,...E]);const F=E.map(U=>{const{id:K,quantity:W,seller:z}=U,ne=$n(n.items,K),w=ns(W??1,ne);return{id:K,quantity:w,seller:z}});f(F,q)},[f,n.items,o]),P=B.useCallback(async(E,q,F)=>E?y(E).then(()=>(c(q??`${t}`,F),Xe(E,E))):Promise.resolve(Xe("","Product id required")),[c,y]),D=B.useCallback(()=>{n.items.length>0&&p()},[p,n.items]),R=B.useCallback((E,q="BRA")=>g(E,q),[g]),I=B.useCallback(E=>{E&&v(E)},[v]),M=B.useCallback(async(E,q,F)=>{const U=n.items.findIndex(W=>W.id===E);return n.items[U]&&U>=0?A(q,U,F??!1):!1},[n.items,A]),$=B.useCallback(async(E,q)=>_(E,q).then(F=>{if(Array.isArray(F)){const U=F.find(K=>K.id===E);if(U&&(U==null?void 0:U.quantity)<q)return String(U.quantity)}return!1}),[_]);return s.jsx(Is.Provider,{value:B.useMemo(()=>({...r,addCouponSeller:S,addToCart:j,addItemsToCart:x,cartStore:n,notifications:a,clearCart:D,addNotification:c,isOpen:n.isOpen,removeNotification:l,removeToCart:P,setIsOpen:n.setIsOpen,shipping:R,shippingUpdateOption:I,toggleGiftItemCart:M,updateItemQuantity:$}),[r,S,j,x,a,D,c,n,l,P,R,I,M,$]),children:e})},We=()=>{const e=B.useContext(Is);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},tu={contexts:{addToCart:{hook:Ge,provider:Ps},cart:{hook:We,provider:eu},cms:{FlagsAndTags:{context:Qn,hook:Yn,provider:al}},events:{hook:ge,provider:vl},global:{hook:Ne,provider:Tl,mediator:ps},header:{hook:xe,provider:Yl},menuMobile:{hook:dt,provider:ws},next:{hook:Te,provider:Ml},pdp:{provider:sl,hook:cl},pdpdata:{hook:to,provider:bl},ui:{hook:lt,provider:fs}},hooks:{useBackPDC:Ia},stores:{cart:Ol,header:$l,pdp:Ql}};function Os(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 Ns(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 ru=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function nu(e,t=1e3){let r=!1;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>{r=!1},t))}}function ou(e,t=1e3){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}const Ts=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,ot=(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),iu=Object.freeze(Object.defineProperty({__proto__:null,debounce:ou,getCookie:Os,getDaysHoursMinutesSeconds:ot,getMilliSeconds:Ts,removeAccentsAndReplaceSpaces:ru,setCookie:Ns,throttle:nu},Symbol.toStringTag,{value:"Module"})),au={cart:jl,events:_l,product:fl,utils:iu},io={helpers:au};var Ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function su(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 qn={exports:{}},Ee={};Ee._=Ee._interop_require_default=cu;function cu(e){return e&&e.__esModule?e:{default:e}}var bt={exports:{}},Qt={},Ao;function ks(){return Ao||(Ao=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(m=>c.append(u,n(m))):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(m=>a.delete(m)),f.forEach((m,d)=>a.append(d,m))}),a}}(Qt)),Qt}var Yt={},xt={},Ro;function zt(){if(Ro)return xt;Ro=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(i){return i?o:n})(r)}xt._=xt._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in r)if(c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)){var l=a?Object.getOwnPropertyDescriptor(r,c):null;l&&(l.get||l.set)?Object.defineProperty(i,c,l):i[c]=r[c]}return i.default=r,o&&o.set(r,i),i}return xt}var Eo;function Ls(){return Eo||(Eo=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=zt()._(ks()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:f}=l,m=l.protocol||"",d=l.pathname||"",p=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 m&&!m.endsWith(":")&&(m+=":"),l.slashes||(!m||o.test(m))&&y!==!1?(y="//"+(y||""),d&&d[0]!=="/"&&(d="/"+d)):y||(y=""),p&&p[0]!=="#"&&(p="#"+p),g&&g[0]!=="?"&&(g="?"+g),d=d.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+m+y+d+g+p}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)}}(Yt)),Yt}var Zt={},wo;function lu(){return wo||(wo=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}}(Zt)),Zt}var Jt={},jo;function Ft(){return jo||(jo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,C){for(var j in C)Object.defineProperty(S,j,{enumerable:!0,get:C[j]})}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 m},SP:function(){return d},ST:function(){return p},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(S){let C=!1,j;return function(){for(var x=arguments.length,P=new Array(x),D=0;D<x;D++)P[D]=arguments[D];return C||(C=!0,j=S(...P)),j}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>o.test(S);function a(){const{protocol:S,hostname:C,port:j}=window.location;return S+"//"+C+(j?":"+j:"")}function c(){const{href:S}=window.location,C=a();return S.substring(C.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function f(S){const C=S.split("?");return C[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(C[1]?"?"+C.slice(1).join("?"):"")}async function m(S,C){if(process.env.NODE_ENV!=="production"){var j;if((j=S.prototype)!=null&&j.getInitialProps){const D='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(D)}}const x=C.res||C.ctx&&C.ctx.res;if(!S.getInitialProps)return C.ctx&&C.Component?{pageProps:await m(C.Component,C.ctx)}:{};const P=await S.getInitialProps(C);if(x&&u(x))return P;if(!P){const D='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+P+'" instead.';throw new Error(D)}return process.env.NODE_ENV!=="production"&&Object.keys(P).length===0&&!C.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),P}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class h extends Error{}class y extends Error{}class g extends Error{constructor(C){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+C}}class v extends Error{constructor(C,j){super(),this.message="Failed to load static file for page: "+C+" "+j}}class A extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(S){return JSON.stringify({message:S.message,stack:S.stack})}}(Jt)),Jt}var Ct={exports:{}},er={},Po;function Ds(){return Po||(Po=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(/\/$/,"")||"/"}}(er)),er}var tr={},Io;function ao(){return Io||(Io=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:""}}}(tr)),tr}var Oo;function Ut(){return Oo||(Oo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Ds(),n=ao(),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)}(Ct,Ct.exports)),Ct.exports}var rr={},St={exports:{}},nr={},No;function $s(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=ao();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,t.parsePath)(n);return i===o||i.startsWith(o+"/")}}(nr)),nr}var To;function uu(){return To||(To=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=$s(),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)}(St,St.exports)),St.exports}var Mo;function Bs(){return Mo||(Mo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=Ft(),r=uu();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}}}(rr)),rr}var or={},ir={},ko;function du(){return ko||(ko=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(m,d){if(m!==null&&m!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+d+"').");i.forEach(p=>{if(p===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" 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()}}(ir)),ir}var ar={},Lo;function fu(){return Lo||(Lo=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)}}(ar)),ar}var Do;function pu(){return Do||(Do=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=du(),n=fu()}(or)),or}var sr={},cr={},$o;function mu(){return $o||($o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=Ft();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 m=i[f],d=c[m.pos];d!==void 0&&(u[f]=~d.indexOf("/")?d.split("/").map(p=>l(p)):m.repeat?[l(d)]:l(d))}),u}}}(cr)),cr}var lr={},ur={},dr={},fr={},Bo;function hu(){return Bo||(Bo=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}}(fr)),fr}var pr={},qo;function gu(){return qo||(qo=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(")")}}(pr)),pr}var Ho;function yu(){return Ho||(Ho=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=hu(),n=gu();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}}(dr)),dr}var zo;function _u(){return zo||(zo=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=yu(),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(m=>f.startsWith(m)),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}}}(ur)),ur}var mr={},Fo;function vu(){return Fo||(Fo=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}}(mr)),mr}var Uo;function bu(){return Uo||(Uo=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 p},getNamedMiddlewareRegex:function(){return h}});const r=_u(),n=vu(),o=Ds(),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 S=r.INTERCEPTION_ROUTE_MARKERS.find(j=>_.startsWith(j)),C=_.match(/\[((?:\[.*\])|.+)\]/);if(S&&C){const{key:j,optional:x,repeat:P}=c(C[1]);return v[j]={pos:A++,repeat:P,optional:x},"/"+(0,n.escapeStringRegexp)(S)+"([^/]+?)"}else if(C){const{key:j,repeat:x,optional:P}=c(C[1]);return v[j]={pos:A++,repeat:x,optional:P},x?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}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 m(y){let{getSafeRouteKey:g,segment:v,routeKeys:A,keyPrefix:_}=y;const{key:S,optional:C,repeat:j}=c(v);let x=S.replace(/\W/g,"");_&&(x=""+_+x);let P=!1;return(x.length===0||x.length>30)&&(P=!0),isNaN(parseInt(x.slice(0,1)))||(P=!0),P&&(x=g()),_?A[x]=""+_+S:A[x]=""+S,j?C?"(?:/(?<"+x+">.+?))?":"/(?<"+x+">.+?)":"/(?<"+x+">[^/]+?)"}function d(y,g){const v=(0,o.removeTrailingSlash)(y).slice(1).split("/"),A=f(),_={};return{namedParameterizedRoute:v.map(S=>{const C=r.INTERCEPTION_ROUTE_MARKERS.some(x=>S.startsWith(x)),j=S.match(/\[((?:\[.*\])|.+)\]/);return C&&j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?a:void 0}):j?m({getSafeRouteKey:A,segment:j[1],routeKeys:_,keyPrefix:g?i:void 0}):"/"+(0,n.escapeStringRegexp)(S)}).join(""),routeKeys:_}}function p(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 S=A?"(?:(/.*)?)":"";return{namedRegex:"^"+_+S+"$"}}}(lr)),lr}var Go;function xu(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=mu(),r=bu();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 m=Object.keys(u);return m.every(d=>{let p=f[d]||"";const{repeat:h,optional:y}=u[d];let g="["+(h?"...":"")+d+"]";return y&&(g=(p?"":"/")+"["+g+"]"),h&&!Array.isArray(p)&&(p=[p]),(y||d in f)&&(c=c.replace(g,h?p.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(p))||"/")})||(c=""),{params:m,result:c}}}(sr)),sr}var Wo;function Cu(){return Wo||(Wo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=ks(),n=Ls(),o=lu(),i=Ft(),a=Ut(),c=Bs(),l=pu(),u=xu();function f(m,d,p){let h,y=typeof d=="string"?d:(0,n.formatWithValidation)(d);const g=y.match(/^[a-zA-Z]{1,}:\/\//),v=g?y.slice(g[0].length):y;if((v.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+y+"' passed to next/router in page: '"+m.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const _=(0,i.normalizeRepeatedSlashes)(v);y=(g?g[0]:"")+_}if(!(0,c.isLocalURL)(y))return p?[y]:y;try{h=new URL(y.startsWith("#")?m.asPath:m.pathname,"http://n")}catch{h=new URL("/","http://n")}try{const _=new URL(y,h);_.pathname=(0,a.normalizePathTrailingSlash)(_.pathname);let S="";if((0,l.isDynamicRoute)(_.pathname)&&_.searchParams&&p){const j=(0,r.searchParamsToUrlQuery)(_.searchParams),{result:x,params:P}=(0,u.interpolateAs)(_.pathname,_.pathname,j);x&&(S=(0,n.formatWithValidation)({pathname:x,hash:_.hash,query:(0,o.omit)(j,P)}))}const C=_.origin===h.origin?_.href.slice(_.origin.length):_.href;return p?[C,S||C]:C}catch{return p?[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)}(bt,bt.exports)),bt.exports}var At={exports:{}},hr={},gr={},Vo;function qs(){return Vo||(Vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=ao();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}}(gr)),gr}var Ko;function Su(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=qs(),r=$s();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)}}(hr)),hr}var Xo;function Au(){return Xo||(Xo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=Ut(),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)(Su().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)}(At,At.exports)),At.exports}var yr={},Qo;function Hs(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(yr)),yr}var _r={},Yo;function Ru(){return Yo||(Yo=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const n=Ee._(B);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")}(_r)),_r}var Rt={exports:{}},Et={exports:{}},Zo;function zs(){return Zo||(Zo=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)}(Et,Et.exports)),Et.exports}var Jo;function Eu(){return Jo||(Jo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=B,n=zs(),o=typeof IntersectionObserver=="function",i=new Map,a=[];function c(f){const m={root:f.root||null,margin:f.rootMargin||""},d=a.find(g=>g.root===m.root&&g.margin===m.margin);let p;if(d&&(p=i.get(d),p))return p;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 p={id:m,observer:y,elements:h},a.push(m),i.set(m,p),p}function l(f,m,d){const{id:p,observer:h,elements:y}=c(d);return y.set(f,m),h.observe(f),function(){if(y.delete(f),h.unobserve(f),y.size===0){h.disconnect(),i.delete(p);const v=a.findIndex(A=>A.root===p.root&&A.margin===p.margin);v>-1&&a.splice(v,1)}}}function u(f){let{rootRef:m,rootMargin:d,disabled:p}=f;const h=p||!o,[y,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),A=(0,r.useCallback)(S=>{v.current=S},[]);(0,r.useEffect)(()=>{if(o){if(h||y)return;const S=v.current;if(S&&S.tagName)return l(S,j=>j&&g(j),{root:m==null?void 0:m.current,rootMargin:d})}else if(!y){const S=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(S)}},[h,d,m,y,v.current]);const _=(0,r.useCallback)(()=>{g(!1)},[]);return[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 wt={exports:{}},jt={exports:{}},vr={},ei;function wu(){return ei||(ei=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}}}(vr)),vr}var ti;function ju(){return ti||(ti=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?wu().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)}(jt,jt.exports)),jt.exports}var Pt={exports:{}},br={},ri;function Pu(){return ri||(ri=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}}}}(br)),br}var ni;function Iu(){return ni||(ni=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 Pu().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)}(Pt,Pt.exports)),Pt.exports}var oi;function Ou(){return oi||(oi=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Ut(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=ju().normalizeLocalePath,f=Iu().detectDomainLocale,m=a||u(i,c).detectedLocale,d=f(l,void 0,m);if(d){const p="http"+(d.http?"":"s")+"://",h=m===d.defaultLocale?"":"/"+m;return""+p+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)}(wt,wt.exports)),wt.exports}var It={exports:{}},ii;function Nu(){return ii||(ii=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=qs(),n=Ut(),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)}(It,It.exports)),It.exports}var Ot={exports:{}},ai;function Tu(){return ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(m,d){for(var p in d)Object.defineProperty(m,p,{enumerable:!0,get:d[p]})}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(m){m.AUTO="auto",m.FULL="full",m.TEMPORARY="temporary"})(f||(f={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(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 C}});const n=Ee._(B),o=Cu(),i=Bs(),a=Ls(),c=Ft(),l=Au(),u=Hs(),f=Ru(),m=Eu(),d=Ou(),p=Nu(),h=Tu(),y=new Set;function g(j,x,P,D,R,I){if(typeof window>"u"||!I&&!(0,i.isLocalURL)(x))return;if(!D.bypassPrefetchedCheck){const $=typeof D.locale<"u"?D.locale:"locale"in j?j.locale:void 0,E=x+"%"+P+"%"+$;if(y.has(E))return;y.add(E)}const M=I?j.prefetch(x,R):j.prefetch(x,P,D);Promise.resolve(M).catch($=>{if(process.env.NODE_ENV!=="production")throw $})}function v(j){const P=j.currentTarget.getAttribute("target");return P&&P!=="_self"||j.metaKey||j.ctrlKey||j.shiftKey||j.altKey||j.nativeEvent&&j.nativeEvent.which===2}function A(j,x,P,D,R,I,M,$,E,q){const{nodeName:F}=j.currentTarget;if(F.toUpperCase()==="A"&&(v(j)||!E&&!(0,i.isLocalURL)(P)))return;j.preventDefault();const K=()=>{const W=M??!0;"beforePopState"in x?x[R?"replace":"push"](P,D,{shallow:I,locale:$,scroll:W}):x[R?"replace":"push"](D||P,{forceOptimisticNavigation:!q,scroll:W})};E?n.default.startTransition(K):K()}function _(j){return typeof j=="string"?j:(0,a.formatUrl)(j)}const C=n.default.forwardRef(function(x,P){let D;const{href:R,as:I,children:M,prefetch:$=null,passHref:E,replace:q,shallow:F,scroll:U,locale:K,onClick:W,onMouseEnter:z,onTouchStart:ne,legacyBehavior:w=!1,...N}=x;D=M,w&&(typeof D=="string"||typeof D=="number")&&(D=n.default.createElement("a",null,D));const L=n.default.useContext(u.RouterContext),X=n.default.useContext(f.AppRouterContext),te=L??X,Z=!L,T=$!==!1,J=$===null?h.PrefetchKind.AUTO:h.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let ie=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(x[oe]==null||typeof x[oe]!="string"&&typeof x[oe]!="object"))throw ie({key:oe,expected:"`string` or `object`",actual:x[oe]===null?"null":typeof x[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 x[oe];if(oe==="as"){if(x[oe]&&V!=="string"&&V!=="object")throw ie({key:oe,expected:"`string` or `object`",actual:V})}else if(oe==="locale"){if(x[oe]&&V!=="string")throw ie({key:oe,expected:"`string`",actual:V})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(x[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")&&x[oe]!=null&&V!=="boolean")throw ie({key:oe,expected:"`boolean`",actual:V})});const Q=n.default.useRef(!1);x.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&&!I){let ie;if(typeof R=="string"?ie=R:typeof R=="object"&&typeof R.pathname=="string"&&(ie=R.pathname),ie&&ie.split("/").some(G=>G.startsWith("[")&&G.endsWith("]")))throw new Error("Dynamic href `"+ie+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Y,as:ee}=n.default.useMemo(()=>{if(!L){const G=_(R);return{href:G,as:I?_(I):G}}const[ie,me]=(0,o.resolveHref)(L,R,!0);return{href:ie,as:I?(0,o.resolveHref)(L,I):me||ie}},[L,R,I]),k=n.default.useRef(Y),O=n.default.useRef(ee);let re;if(w)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+R+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{re=n.default.Children.only(D)}catch{throw D?new Error("Multiple children were passed to <Link> with `href` of `"+R+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
3
  Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+R+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else re=n.default.Children.only(D);else if(process.env.NODE_ENV==="development"&&(D==null?void 0:D.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=w?re&&typeof re=="object"&&re.ref:P,[ce,le,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(N.current!==ee||k.current!==Y)&&(se(),N.current=ee,k.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||!T||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,T,L==null?void 0:L.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.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,F,U,K,Z,T))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!T||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!T&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||E||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:L==null?void 0:L.locale,me=(L==null?void 0:L.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,L==null?void 0:L.locales,L==null?void 0:L.domainLocales);he.href=me||(0,p.addBasePath)((0,l.addLocale)(ee,ie,L==null?void 0:L.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...O,...he},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)})(qn,qn.exports);var Mu=qn.exports,ku=Mu;const je=Ht(ku),Lu=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(a=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}r.push(l)}),r},Du=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},Hn=e=>{const t=new ke.CompositeDecorator([{strategy:Du,component:je}]),r=ke.convertFromRaw(e);return ke.EditorState.createWithContent(r,t)},$u=e=>ke.convertFromRaw(e),zn=ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Bu=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Hn,EXTENDED_BLOCK_RENDER_MAP:zn,GET_CONTENT_STATE:$u,convertDraftToHTML:Lu},Symbol.toStringTag,{value:"Module"})),Ze={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},qu=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return s.jsxs(s.Fragment,{children:[s.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(Ze["responsive-desktop-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),s.jsx(b.Utils.Column,{gap:l&&u?u:n,className:b.helpers.classNameConcat(Ze["responsive-mobile-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(c==null?void 0:c.sections)??[]})})]})},Ke=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Hu=({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:zn,editorState:t!=null&&t.textStructureReduced?Hn(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:zn,editorState:t.textStructure?Hn(JSON.parse(t.textStructure)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),zu={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Fu="_textContentWrapper_1bigo_5",Uu="_textContentSection_1bigo_13",Fn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Fu,textContentSection:Uu},Gu="_link_w24h0_1",Wu="_wrapper_w24h0_98",Vu="_text_w24h0_106",xr={link:Gu,wrapper:Wu,text:Vu},et=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const m=b.helpers.ValidateProp({fieldTypes:at.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:at.Mode,property:i,fallback:"default"});return s.jsx(je,{...f,className:b.helpers.classNameConcat(xr.link,r),href:o&&o.length>0?o:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:xr.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:xr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},so=({data:e,ICONS:t})=>{var o;const[r,n]=B.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)},columnWrapper:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(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:Fn.textContentWrapper,style:{alignItems:Ke(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ke(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:zu["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(Hu,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(et,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Fn["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,{})]})})},Ku=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],si=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Xu="_image_lypfr_1",Qu={image:Xu},Yu=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Te();return s.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Qu.image,t),"data-object-fit":r??"cover"})},Zu=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),Me={Image:Yu,Video:Zu},Un=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=B.useState(Ts(new xo.TZDate(Date.now(),r),new xo.TZDate(e,r))),[a,c]=B.useState(!1);B.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=ot(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:ot(o,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:ot(o,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:ot(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},ci={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},li=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:m,position:d,contentAlignment:p,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Te();return s.jsxs(b.Banner.Container,{...i,children:[s.jsxs(b.Banner.ImageWrapper,{className:ci["banner-image-wrapper-modifier"],style:u?{background:m}:void 0,children:[a&&s.jsx(Me.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&s.jsx(j,{src:C,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:m}})]}),h||S||_?s.jsx(b.Banner.Slot,{...Ku(d??"centro"),className:ci["content-modifier"],style:{textAlign:si(p)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:si(p),children:[h&&y==="timer-first"&&s.jsx(Un,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(so,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(Un,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},Ju={"observer-wrapper":"_observer-wrapper_r43gk_1"};function ed(e,t,r){const[n,o]=B.useState(!1),{threshold:i}=r||{};return B.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{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 co=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=B.useRef(null),l=ed(c,o,r),{sendDataLayerEvent:u}=ge();return B.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(Ju["observer-wrapper"],i),children:e})},Fs=({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}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=B.useRef(null),p=B.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.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(co,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(je,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:m,index:l})},children:s.jsx(li,{data:e,videoUrl:p,priority:r,videoRef:d,...o})}):s.jsx(li,{data:e,videoUrl:p,priority:r,videoRef:d,...o})})},Us=e=>s.jsx(Fs,{...e}),td={Banner:Us},rt={"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"},rd=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Oe(),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(rt["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:rt["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:rt["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,m)=>s.jsx(b.Carousel.Item,{className:rt["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=${m}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:rt["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,{})]})})},nd=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(Fn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(so,{data:e,ICONS:t})}),od={Banner:td,BannerSection:Fs,BennefitsBarSection:rd,DataScreening:qu,SingleBannerSection:Us,TextContentSection:nd,TextContent:so},id={Components:od,helpers:Bu},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"},Gs=({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})})})]});Gs.displayName="AddToCart.Card.Name";const Ws=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Le(r/100),c=Le(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")})})})})};Ws.displayName="AddToCart.Card.PriceQuantity";const ad="_skeleton_12b79_1",sd={skeleton:ad},cd=({style:e})=>s.jsx("div",{style:e,className:sd.skeleton}),Vs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Ge(),[c,l]=B.useState(n??"");return B.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const m=f.images.find(d=>i.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.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(Me.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(cd,{})})}),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})]})]})};Vs.displayName="AddToCart.Card.StyleSize";const{helpers:ld}=io,Ks=({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:m}}=Ge(),{size:d}=ld.product.getColorAndSizeFromSkuName(a??o,m);return console.log("value size, skuName",{size:d,skuName:a,name:o}),s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(Gs,{brand:i.name,name:o}),s.jsx(Ws,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(Vs,{size:d,texture:r,productGroupID:c})]})};Ks.displayName="AddToCart.Card.Content";const Xs=({image:e,thumbnail:t=!1})=>s.jsx(Me.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Xs.displayName="AddToCart.Card";const Qs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Da(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(Xs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(Ks,{item:t,texture:r})]})};Qs.displayName="AddToCart.Card";const Ys=({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(ze.Footer,{})]});Ys.displayName="AddToCart.Layout.Content";const Zs=({className:e,...t})=>{var p,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ge(),{cartStore:{totalizers:i},setIsOpen:a}=We(),c=(p=i.find(y=>y.id==="Discounts"))==null?void 0:p.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Le(m??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})]})};Zs.displayName="AddToCart.Layout.Footer";const Js=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=We(),{recentlyAddedProducts:i}=lt(),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(ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Js.displayName="AddToCart.Layout.Items";const ec=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ge(),{isMobile:o}=Oe();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})]})};ec.displayName="AddToCart.Modal";const ud=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ge(),o=B.useRef(t);return B.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},tc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=lt(),{isMobile:i}=Oe(),a=o.length>3?4:o.length;return s.jsx(Ps,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(ud,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};tc.displayName="AddToCart.Root";const rc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:l,top:u}=Ge();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})})};rc.displayName="AddToCart.Tooltip";const ze={Card:Qs,Content:Ys,Footer:Zs,Items:Js,Modal:ec,Root:tc,Tooltip:rc},lo=({title:e,...t})=>{const{recentlyAddedProducts:r}=lt(),{isMobile:n}=Oe(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(ze.Root,{isMobile:n,count:r.length,component:s.jsx(ze.Content,{title:e,children:s.jsx(ze.Items,{thumbnail:a,children:i&&s.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};lo.displayName="AddToCart";const ui={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},dd=({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(ui["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:ui["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},fd=({page:e,data:t})=>{const{pathname:r}=Te(),n=B.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return B.useEffect(()=>{const l=Ns("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}}}),Os("login_event","",{expires:f})}},[]),B.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:p})=>m[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:p}=Ua(),h=p,y=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});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 Gn={exports:{}};function pd(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 Cr={},Sr={},di;function md(){return di||(di=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Sr)),Sr}var fi;function hd(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}});const r=Ee._(B),n=md();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 C=new f(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const C=g.webpack&&typeof pd.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(j=>{for(const x of C)if(j.includes(x))return A()})}function _(){A();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(j=>{C(j)})}function S(C,j){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>A(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(h){return 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)})}m.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),m.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=m.preloadReady);const p=m}(Cr)),Cr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Ee,o=n._(B),i=n._(hd()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!a)return f(m);const d=m.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=i.default,p={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?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...m};const h=p.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,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)})(Gn,Gn.exports);var gd=Gn.exports,yd=gd;const uo=Ht(yd);var Wn={exports:{}},Ar={},pi;function nc(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Ar)),Ar}var Ot={exports:{}},mi;function _d(){return mi||(mi=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 m=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")?m[y]=!!f[h]:m.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:p}=f;return p?m.innerHTML=p.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=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<m.length;y++){var p;const v=m[y].nextSibling;(v==null||(p=v.tagName)==null?void 0:p.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],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),p=[];for(let g=0,v=m.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===l&&p.push(v)}const y=u.map(o).filter(g=>{for(let v=0,A=p.length;v<A;v++){const _=p[v];if(i(_,g))return p.splice(v,1),!1}return!0});p.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>f.insertBefore(g,m)),m.content=(d-p.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 p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{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)}(Ot,Ot.exports)),Ot.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,j){for(var x in j)Object.defineProperty(C,x,{enumerable:!0,get:j[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return S}});const n=Ee,o=zt(),i=n._(Pa),a=o._(B),c=nc(),l=_d(),u=zs(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=C=>{if(i.default.preinit){C.forEach(j=>{i.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(x=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=x,j.appendChild(P)})}},h=C=>{const{src:j,id:x,onLoad:P=()=>{},onReady:D=null,dangerouslySetInnerHTML:R,children:I="",strategy:M="afterInteractive",onError:$,stylesheets:E}=C,q=x||j;if(q&&m.has(q))return;if(f.has(j)){m.add(q),f.get(j).then(P,$);return}const F=()=>{D&&D(),m.add(q)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),P&&P.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});R?(U.innerHTML=R.__html||"",F()):I?(U.textContent=typeof I=="string"?I:Array.isArray(I)?I.join(""):"",F()):j&&(U.src=j,f.set(j,K));for(const[W,z]of Object.entries(C)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),E&&p(E),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");m.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:P=()=>{},onReady:D=null,strategy:R="afterInteractive",onError:I,stylesheets:M,...$}=C,{updateScripts:E,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=j||x;W.current||(D&&ne&&m.has(ne)&&D(),W.current=!0)},[D,j,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?h(C):R==="lazyOnload"&&g(C),z.current=!0)},[C,R]),(R==="beforeInteractive"||R==="worker")&&(E?(q[R]=(q[R]||[]).concat([{id:j,src:x,onLoad:P,onReady:D,onError:I,...$}]),E(q)):F&&F()?m.add(j||x):F&&!F()&&h(C)),U){if(M&&M.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),R==="beforeInteractive")return x?(i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));R==="afterInteractive"&&x&&i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const S=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Wn,Wn.exports);var vd=Wn.exports,bd=vd;const xd=Ht(bd),Cd=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(xd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Sd=uo(()=>Promise.resolve(Cd),{ssr:!1}),Ad="_footer__bottom_1o9af_2",Rd="_footer__wrapper_1o9af_10",Ed="_footer__main_1o9af_39",wd="_footer__legalInformation_1o9af_55",jd="_footer__column_1o9af_77",Pd="_footer__columnContent_1o9af_87",Id="_footer__item_1o9af_91",Nd="_footer__itemLink_1o9af_107",Od="_footer__columnTitle_1o9af_122",Td="_footer__columnTitleIcon_1o9af_134",Md="_footer__iconList_1o9af_147",kd="_footer__itemSmallText_1o9af_157",Ld="_payment_1o9af_168",Dd="_footer__iconContainer_1o9af_173",$d="_footer__iconListSubHeader_1o9af_178",Bd="_accordionWrapper_1o9af_200",qd="_accordionHeader_1o9af_204",Hd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Ad,footer__wrapper:Rd,footer__main:Ed,footer__legalInformation:wd,footer__column:jd,footer__columnContent:Pd,footer__item:Id,footer__itemLink:Nd,footer__columnTitle:Od,footer__columnTitleIcon:Td,footer__iconList:Md,footer__itemSmallText:kd,payment:Ld,footer__iconContainer:Dd,footer__iconListSubHeader:$d,accordionWrapper:Bd,accordionHeader:qd,accordionTextWrapper:Hd,"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 oc={},fo={},ft={};(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)}}})(ft);var ic={};(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,m=a?a*40:o,d=f&&m?"viewBox='0 0 "+f+" "+m+"'":"",p=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='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(ic);var Gt={};(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}})(Gt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=ft,r=ic,n=Gt,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 m(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let j;j=S.exec(g);j)C.push(parseInt(j[2]));if(C.length){const j=Math.min(...C)*.01;return{widths:A.filter(x=>x>=v[0]*j),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>A.find(C=>C>=S)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:j,kind:x}=m(y,A,S),P=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map((D,R)=>C({config:y,src:g,quality:_,width:D})+" "+(x==="w"?D:R+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[P]})}}function p(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:P,fill:D=!1,style:R,onLoad:I,onLoadingComplete:M,placeholder:$="empty",blurDataURL:E,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:O,blurComplete:L,defaultLoader:X}=y;let te,Z=w||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 T=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in T;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=T;T=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(F){F==="fill"&&(D=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[F];Ce&&(R={...R,...Ce});const Q=ue[F];Q&&!v&&(v=Q)}let Y="",ee=f(x),k=f(P),N,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(N=G.blurWidth,re=G.blurHeight,E=E||G.blurDataURL,Y=G.src,!D){if(!ee&&!k)ee=G.width,k=G.height;else if(ee&&!k){const ue=ee/G.width;k=Math.round(G.height*ue)}else if(!ee&&k){const ue=k/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let ae=!_&&(S==="lazy"||typeof S>"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(j);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(D){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(P)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(R!=null&&R.position&&R.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(R!=null&&R.width&&R.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(R!=null&&R.height&&R.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof k>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(k))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+P+'".')}if(!o.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+o.map(String).join(",")+".");if(_&&S==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="empty"&&ee&&k&&ee*k<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!E){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=w?re&&typeof re=="object"&&re.ref:P,[ce,le,se]=(0,m.useIntersection)({rootMargin:"200px"}),H=n.default.useCallback(ie=>{(O.current!==ee||k.current!==Y)&&(se(),O.current=ee,k.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||!T||g(te,Y,ee,{locale:K},{kind:J},Z))},[ee,Y,le,K,T,L==null?void 0:L.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.');!w&&typeof W=="function"&&W(ie),w&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(ie),te&&(ie.defaultPrevented||A(ie,te,Y,ee,q,F,U,K,Z,T))},onMouseEnter(ie){!w&&typeof z=="function"&&z(ie),w&&re.props&&typeof re.props.onMouseEnter=="function"&&re.props.onMouseEnter(ie),te&&((!T||process.env.NODE_ENV==="development")&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))},onTouchStart(ie){!w&&typeof ne=="function"&&ne(ie),w&&re.props&&typeof re.props.onTouchStart=="function"&&re.props.onTouchStart(ie),te&&(!T&&Z||g(te,Y,ee,{locale:K,priority:!0,bypassPrefetchedCheck:!0},{kind:J},Z))}};if((0,c.isAbsoluteUrl)(ee))he.href=ee;else if(!w||E||re.type==="a"&&!("href"in re.props)){const ie=typeof K<"u"?K:L==null?void 0:L.locale,me=(L==null?void 0:L.isLocaleDomain)&&(0,d.getDomainLocale)(ee,ie,L==null?void 0:L.locales,L==null?void 0:L.domainLocales);he.href=me||(0,p.addBasePath)((0,l.addLocale)(ee,ie,L==null?void 0:L.defaultLocale))}return w?n.default.cloneElement(re,he):n.default.createElement("a",{...N,...he},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)})(qn,qn.exports);var Mu=qn.exports,ku=Mu;const je=Ht(ku),Lu=e=>{const t=e.getBlocksAsArray(),r=[];return t.forEach(n=>{const o=n.getType(),i=n.getText();let a;const c=n.getInlineStyleAt(0).toArray();c.length>0&&(a=c.map(u=>{switch(u){case"BOLD":return"font-weight: bold;";case"ITALIC":return"font-style: italic;";case"UNDERLINE":return"text-decoration: underline;";default:return""}}).join(" "));const l={type:"p",text:i,...a&&{styleText:a}};switch(o){case"header-one":l.type="h1";break;case"header-two":l.type="h2";break;case"header-three":l.type="h3";break;case"unordered-list-item":l.type="li";break;case"ordered-list-item":l.type="li";break;case"blockquote":l.type="blockquote";break;case"code-block":l.type="pre";break;default:l.type="p"}r.push(l)}),r},Du=(e,t,r)=>{e.findEntityRanges(n=>{const o=n.getEntity();return o===null?!1:r.getEntity(o).getType()==="LINK"},t)},Hn=e=>{const t=new ke.CompositeDecorator([{strategy:Du,component:je}]),r=ke.convertFromRaw(e);return ke.EditorState.createWithContent(r,t)},$u=e=>ke.convertFromRaw(e),zn=ke.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),Bu=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:Hn,EXTENDED_BLOCK_RENDER_MAP:zn,GET_CONTENT_STATE:$u,convertDraftToHTML:Lu},Symbol.toStringTag,{value:"Module"})),Ze={"responsive-mobile-flex":"_responsive-mobile-flex_t5bry_2","responsive-desktop-flex":"_responsive-desktop-flex_t5bry_13","responsive-mobile-block":"_responsive-mobile-block_t5bry_24","responsive-desktop-block":"_responsive-desktop-block_t5bry_35"},qu=({slug:e,data:t,SectionZone:r,COMMON_PAGE_COLUMN_GAP:n})=>{const o=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),i=o==null?void 0:o.config.responsive.gapCustom,a=o==null?void 0:o.config.responsive.gapSections,c=t==null?void 0:t.find(f=>{var m,d,p,h;return((d=(m=f.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"&&((h=(p=f.config)==null?void 0:p.seo)==null?void 0:h.slug)===e}),l=c==null?void 0:c.config.responsive.gapCustom,u=c==null?void 0:c.config.responsive.gapSections;return s.jsxs(s.Fragment,{children:[s.jsx(b.Utils.Column,{gap:i&&a?a:n,className:b.helpers.classNameConcat(Ze["responsive-desktop-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(o==null?void 0:o.sections)??[]})}),s.jsx(b.Utils.Column,{gap:l&&u?u:n,className:b.helpers.classNameConcat(Ze["responsive-mobile-flex"],"utils-column-modifier"),children:s.jsx(r,{data:(c==null?void 0:c.sections)??[]})})]})},Ke=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Hu=({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:zn,editorState:t!=null&&t.textStructureReduced?Hn(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:zn,editorState:t.textStructure?Hn(JSON.parse(t.textStructure)):ke.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):s.jsx(s.Fragment,{})]}),zu={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Fu="_textContentWrapper_1bigo_5",Uu="_textContentSection_1bigo_13",Fn={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Fu,textContentSection:Uu},Gu="_link_w24h0_1",Wu="_wrapper_w24h0_98",Vu="_text_w24h0_106",xr={link:Gu,wrapper:Wu,text:Vu},et=({children:e,adornments:t,className:r,disableUnderline:n,href:o,mode:i,size:a,title:c,onClick:l,disablePadding:u,...f})=>{const m=b.helpers.ValidateProp({fieldTypes:at.SizesSmallExtended,property:a,fallback:"medium"}),d=b.helpers.ValidateProp({fieldTypes:at.Mode,property:i,fallback:"default"});return s.jsx(je,{...f,className:b.helpers.classNameConcat(xr.link,r),href:o&&o.length>0?o:"#","data-size":m,"data-variant":d,title:c||"NextLink","data-disable-underline":n??!1,"data-disable-padding":u??!0,children:s.jsxs("div",{className:xr.wrapper,onClick:l,children:[t==null?void 0:t.start,s.jsx("p",{className:xr.text,"data-size":m,children:e}),t==null?void 0:t.end]})})},so=({data:e,ICONS:t})=>{var o;const[r,n]=B.useState(!1);return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(e.textStructureAlignment)},columnWrapper:{alignContent:Ke(e.textStructureAlignment),alignItems:Ke(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:Fn.textContentWrapper,style:{alignItems:Ke(e.textStructureAlignment)},children:[s.jsx(b.TextStructure.DivWrapper,{style:{textAlign:Ke(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:zu["draftjs-text-modifier"],children:e.textStructureReduced?s.jsx(Hu,{content:e,expanded:r}):s.jsx(s.Fragment,{})}),e.textStructureButtonLabel?s.jsx(et,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:Fn["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,{})]})})},Ku=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],si=e=>({centro:"center",esquerda:"start",direita:"end"})[e],Xu="_image_lypfr_1",Qu={image:Xu},Yu=({alt:e,className:t,objectFit:r,...n})=>{const{nextimage:o}=Te();return s.jsx(o,{quality:90,...n,alt:e??"",className:b.helpers.classNameConcat(Qu.image,t),"data-object-fit":r??"cover"})},Zu=({videoRef:e,...t})=>s.jsx("video",{...t,ref:e,children:s.jsx("track",{kind:"captions"})}),Me={Image:Yu,Video:Zu},Un=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...n})=>{const[o,i]=B.useState(Ts(new xo.TZDate(Date.now(),r),new xo.TZDate(e,r))),[a,c]=B.useState(!1);B.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=ot(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:ot(o,"hours")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"min",value:ot(o,"minutes")}),s.jsx(b.Timer.Separator,{}),s.jsx(b.Timer.Digit,{label:"segs",value:ot(o),suppressHydrationWarning:!0})]}):s.jsx(s.Fragment,{})},ci={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},li=({data:e,videoUrl:t,priority:r,videoRef:n,ICONS:o,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:f,backgroundColor:m,position:d,contentAlignment:p,showTimer:h,contentOrder:y,timerMode:g,timerEnd:v,timerInit:A,textStructure:_,textStructureReduced:S}=e.banner,C=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:j}=Te();return s.jsxs(b.Banner.Container,{...i,children:[s.jsxs(b.Banner.ImageWrapper,{className:ci["banner-image-wrapper-modifier"],style:u?{background:m}:void 0,children:[a&&s.jsx(Me.Video,{videoRef:n,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),C&&!(a!=null&&a.length)&&s.jsx(j,{src:C,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:m}})]}),h||S||_?s.jsx(b.Banner.Slot,{...Ku(d??"centro"),className:ci["content-modifier"],style:{textAlign:si(p)},children:s.jsxs(b.Utils.Column,{gap:"16px",alignItems:si(p),children:[h&&y==="timer-first"&&s.jsx(Un,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date}),s.jsx(so,{data:e.banner,ICONS:o}),h&&y!=="timer-first"&&s.jsx(Un,{mode:g??"default",size:"small",dateEnd:v?new Date(v):new Date,dateInit:A?new Date(A):new Date})]})}):s.jsx(s.Fragment,{})]})},Ju={"observer-wrapper":"_observer-wrapper_r43gk_1"};function ed(e,t,r){const[n,o]=B.useState(!1),{threshold:i}=r||{};return B.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{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 co=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:n,stopOnIntersection:o=!0,className:i,...a})=>{const c=B.useRef(null),l=ed(c,o,r),{sendDataLayerEvent:u}=ge();return B.useEffect(()=>{l&&(typeof n=="function"&&n(),t&&u({...t}))},[l]),s.jsx("div",{...a,ref:c,className:b.helpers.classNameConcat(Ju["observer-wrapper"],i),children:e})},Fs=({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}`:"",m={creative_name:n,creative_slot:`${n}-${a.current}:${u+1}${f}`,promotion_id:e.banner.href,promotion_name:c},d=B.useRef(null),p=B.useMemo(()=>{var y;if((y=e.banner.video)!=null&&y.includes("player.vimeo")){const g=e.banner.video.split("?")[1],v=g==null?void 0:g.split("&"),A=v==null?void 0:v.filter(S=>S.includes("loc")||S.includes("signature")||S.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(co,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...m,index:l}}}},observerOptions:{delay:100,...p&&{threshold:.1}},...p&&{callBackWhenVisible:h},children:e.banner.href?s.jsx(je,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:m,index:l})},children:s.jsx(li,{data:e,videoUrl:p,priority:r,videoRef:d,...o})}):s.jsx(li,{data:e,videoUrl:p,priority:r,videoRef:d,...o})})},Us=e=>s.jsx(Fs,{...e}),td={Banner:Us},rt={"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"},rd=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=Ne(),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(rt["carousel-modifier"],"common-section"),children:[n==="medium"?s.jsxs(b.TextStructure.Root,{children:[s.jsx(b.TextStructure.DivWrapper,{className:rt["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:rt["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,m)=>s.jsx(b.Carousel.Item,{className:rt["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=${m}`))}),!r&&a.totalPages>1?s.jsxs(b.Carousel.Controller,{className:rt["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,{})]})})},nd=({data:e,ICONS:t})=>s.jsx("div",{className:b.helpers.classNameConcat(Fn.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:s.jsx(so,{data:e,ICONS:t})}),od={Banner:td,BannerSection:Fs,BennefitsBarSection:rd,DataScreening:qu,SingleBannerSection:Us,TextContentSection:nd,TextContent:so},id={Components:od,helpers:Bu},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"},Gs=({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})})})]});Gs.displayName="AddToCart.Card.Name";const Ws=({className:e,listPrice:t,price:r,quantity:n,productId:o,...i})=>{const a=Le(r/100),c=Le(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")})})})})};Ws.displayName="AddToCart.Card.PriceQuantity";const ad="_skeleton_12b79_1",sd={skeleton:ad},cd=({style:e})=>s.jsx("div",{style:e,className:sd.skeleton}),Vs=({className:e,productGroupID:t,size:r,texture:n,...o})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=Ge(),[c,l]=B.useState(n??"");return B.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const f=u.data[0].items[0];if(f){const m=f.images.find(d=>i.includes(d.imageLabel));m!=null&&m.imageUrl?l(m.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(Me.Image,{alt:"",src:c??"",width:164,height:164,style:a}):s.jsx(cd,{})})}),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})]})]})};Vs.displayName="AddToCart.Card.StyleSize";const{helpers:ld}=io,Ks=({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:m}}=Ge(),{size:d}=ld.product.getColorAndSizeFromSkuName(a??o,m);return s.jsxs("div",{...n,className:b.helpers.classNameConcat(Pe["add-to-cart--card--content"],e),children:[s.jsx(Gs,{brand:i.name,name:o}),s.jsx(Ws,{price:u,listPrice:f,quantity:l,productId:t.id}),s.jsx(Vs,{size:d,texture:r,productGroupID:c})]})};Ks.displayName="AddToCart.Card.Content";const Xs=({image:e,thumbnail:t=!1})=>s.jsx(Me.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Xs.displayName="AddToCart.Card";const Qs=({className:e,item:t,texture:r,thumbnail:n,...o})=>{const{itemOffered:{image:[i]}}=t,a=Da(i.url,{width:200,height:300});return s.jsxs("div",{...o,className:b.helpers.classNameConcat(Pe["add-to-cart--card"],e),children:[s.jsx(Xs,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:n}),!n&&s.jsx(Ks,{item:t,texture:r})]})};Qs.displayName="AddToCart.Card";const Ys=({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(ze.Footer,{})]});Ys.displayName="AddToCart.Layout.Content";const Zs=({className:e,...t})=>{var p,h;const{isMobile:r,handleClose:n,CONSTANTS:{ADD_TO_CART:o}}=Ge(),{cartStore:{totalizers:i},setIsOpen:a}=We(),c=(p=i.find(y=>y.id==="Discounts"))==null?void 0:p.value,l=((h=i.find(y=>y.id==="Items"))==null?void 0:h.value)??0,u=i.find(y=>y.id==="Shipping"),m=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=Le(m??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})]})};Zs.displayName="AddToCart.Layout.Footer";const Js=({children:e,className:t,thumbnail:r=!1,...n})=>{const{cartStore:{options:o}}=We(),{recentlyAddedProducts:i}=lt(),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(ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Js.displayName="AddToCart.Layout.Items";const ec=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:n}=Ge(),{isMobile:o}=Ne();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})]})};ec.displayName="AddToCart.Modal";const ud=({children:e})=>{const{count:t,handleClose:r,setIsOpen:n}=Ge(),o=B.useRef(t);return B.useEffect(()=>{t>o.current&&n(!0),t<o.current&&o.current>=1&&r(),o.current=t},[t,r,n]),s.jsx(s.Fragment,{children:e})},tc=({children:e,component:t,CONSTANTS:r,...n})=>{const{recentlyAddedProducts:o}=lt(),{isMobile:i}=Ne(),a=o.length>3?4:o.length;return s.jsx(Ps,{...n,count:a,isMobile:i,CONSTANTS:r,children:s.jsx(ud,{children:i?s.jsxs(s.Fragment,{children:[s.jsx(ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):s.jsx(ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};tc.displayName="AddToCart.Root";const rc=({children:e,component:t,Z_INDEX_WAR:r,...n})=>{const{contentRef:o,left:i,isLeaving:a,target:c,isOpen:l,top:u}=Ge();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})})};rc.displayName="AddToCart.Tooltip";const ze={Card:Qs,Content:Ys,Footer:Zs,Items:Js,Modal:ec,Root:tc,Tooltip:rc},lo=({title:e,...t})=>{const{recentlyAddedProducts:r}=lt(),{isMobile:n}=Ne(),o=r.length>3?4:r.length,i=r.length>(o??1),a=r.length>1;return s.jsx(ze.Root,{isMobile:n,count:r.length,component:s.jsx(ze.Content,{title:e,children:s.jsx(ze.Items,{thumbnail:a,children:i&&s.jsx(b.Badge.Count,{count:r.length-o,size:"medium",variant:"secondary"})})}),...t})};lo.displayName="AddToCart";const ui={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},dd=({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(ui["card-modifier"],t),style:{...i,padding:0},children:s.jsxs("button",{className:ui["backtotop-btn"],onClick:f,style:{...u},"data-orientation":n,children:[r,e]})})},fd=({page:e,data:t})=>{const{pathname:r}=Te(),n=B.useRef(null),{sendDataLayerEvent:o,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return B.useEffect(()=>{const l=Os("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}}}),Ns("login_event","",{expires:f})}},[]),B.useEffect(()=>{if(n.current===r)return;n.current=r;let l={};switch(e){case"PDP":{const f=t,m={};if(!f){l={page_category:"pdp"};break}f.items.forEach(({itemId:d,sellers:p})=>m[d]=p[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:f.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:m,product_reference_id:f.productReference};break}case"PDC":{const{page_category:f,page_departament:m,id:d,name:p}=Ua(),h=p,y=d;l={page_category:"lista_produtos",...m&&{page_departament:m}},a.current={item_list_name:r==="/search"?"busca":h??void 0,item_list_id:r==="/search"?void 0:y??void 0},m&&o({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:f,page_departament:m}}});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 Gn={exports:{}};function pd(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 Cr={},Sr={},di;function md(){return di||(di=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="LoadableContext")}(Sr)),Sr}var fi;function hd(){return fi||(fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}});const r=Ee._(B),n=md();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 C=new f(h,g);v={getCurrentValue:C.getCurrentValue.bind(C),subscribe:C.subscribe.bind(C),retry:C.retry.bind(C),promise:C.promise.bind(C)}}return v.promise()}if(typeof window>"u"&&i.push(A),!c&&typeof window<"u"){const C=g.webpack&&typeof pd.resolveWeak=="function"?g.webpack():g.modules;C&&a.push(j=>{for(const x of C)if(j.includes(x))return A()})}function _(){A();const C=r.default.useContext(n.LoadableContext);C&&Array.isArray(g.modules)&&g.modules.forEach(j=>{C(j)})}function S(C,j){_();const x=r.default.useSyncExternalStore(v.subscribe,v.getCurrentValue,v.getCurrentValue);return r.default.useImperativeHandle(j,()=>({retry:v.retry}),[]),r.default.useMemo(()=>x.loading||x.error?r.default.createElement(g.loading,{isLoading:x.loading,pastDelay:x.pastDelay,timedOut:x.timedOut,error:x.error,retry:v.retry}):x.loaded?r.default.createElement(o(x.loaded),C):null,[C,x])}return S.preload=()=>A(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:y,_opts:g}=this;y.loading&&(typeof g.delay=="number"&&(g.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},g.delay)),typeof g.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},g.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(v=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(y){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...y},this._callbacks.forEach(g=>g())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(y){return this._callbacks.add(y),()=>{this._callbacks.delete(y)}}constructor(y,g){this._loadFn=y,this._opts=g,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(h){return 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)})}m.preloadAll=()=>new Promise((h,y)=>{d(i).then(h,y)}),m.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=m.preloadReady);const p=m}(Cr)),Cr}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,m){for(var d in m)Object.defineProperty(f,d,{enumerable:!0,get:m[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const n=Ee,o=n._(B),i=n._(hd()),a=typeof window>"u";function c(f){return{default:(f==null?void 0:f.default)||f}}function l(f,m){if(delete m.webpack,delete m.modules,!a)return f(m);const d=m.loading;return()=>o.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(f,m){let d=i.default,p={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?p.loader=()=>f:typeof f=="function"?p.loader=f:typeof f=="object"&&(p={...p,...f}),p={...p,...m};const h=p.loader,y=()=>h!=null?h().then(c):Promise.resolve(c(()=>null));return p.loadableGenerated&&(p={...p,...p.loadableGenerated},delete p.loadableGenerated),typeof p.ssr=="boolean"&&!p.ssr?(delete p.webpack,delete p.modules,l(d,p)):d({...p,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)})(Gn,Gn.exports);var gd=Gn.exports,yd=gd;const uo=Ht(yd);var Wn={exports:{}},Ar={},pi;function nc(){return pi||(pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Ar)),Ar}var Nt={exports:{}},mi;function _d(){return mi||(mi=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 m=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")?m[y]=!!f[h]:m.setAttribute(y,f[h])}const{children:d,dangerouslySetInnerHTML:p}=f;return p?m.innerHTML=p.__html||"":d&&(m.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),m}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const f=u.getAttribute("nonce");if(f&&!l.getAttribute("nonce")){const m=u.cloneNode(!0);return m.setAttribute("nonce",""),m.nonce=f,f===l.nonce&&l.isEqualNode(m)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const f=document.querySelector("head");if(!f)return;const m=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<m.length;y++){var p;const v=m[y].nextSibling;(v==null||(p=v.tagName)==null?void 0:p.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],m=f.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!m){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(m.content),p=[];for(let g=0,v=m.previousElementSibling;g<d;g++,v=(v==null?void 0:v.previousElementSibling)||null){var h;(v==null||(h=v.tagName)==null?void 0:h.toLowerCase())===l&&p.push(v)}const y=u.map(o).filter(g=>{for(let v=0,A=p.length;v<A;v++){const _=p[v];if(i(_,g))return p.splice(v,1),!1}return!0});p.forEach(g=>{var v;return(v=g.parentNode)==null?void 0:v.removeChild(g)}),y.forEach(g=>f.insertBefore(g,m)),m.content=(d-p.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 p=u[d.type]||[];p.push(d),u[d.type]=p});const f=u.title?u.title[0]:null;let m="";if(f){const{children:d}=f.props;m=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}m!==document.title&&(document.title=m),["meta","base","link","style","script"].forEach(d=>{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)}(Nt,Nt.exports)),Nt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(C,j){for(var x in j)Object.defineProperty(C,x,{enumerable:!0,get:j[x]})}r(t,{handleClientScriptLoad:function(){return y},initScriptLoader:function(){return A},default:function(){return S}});const n=Ee,o=zt(),i=n._(Pa),a=o._(B),c=nc(),l=_d(),u=zs(),f=new Map,m=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=C=>{if(i.default.preinit){C.forEach(j=>{i.default.preinit(j,{as:"style"})});return}if(typeof window<"u"){let j=document.head;C.forEach(x=>{let P=document.createElement("link");P.type="text/css",P.rel="stylesheet",P.href=x,j.appendChild(P)})}},h=C=>{const{src:j,id:x,onLoad:P=()=>{},onReady:D=null,dangerouslySetInnerHTML:R,children:I="",strategy:M="afterInteractive",onError:$,stylesheets:E}=C,q=x||j;if(q&&m.has(q))return;if(f.has(j)){m.add(q),f.get(j).then(P,$);return}const F=()=>{D&&D(),m.add(q)},U=document.createElement("script"),K=new Promise((W,z)=>{U.addEventListener("load",function(ne){W(),P&&P.call(this,ne),F()}),U.addEventListener("error",function(ne){z(ne)})}).catch(function(W){$&&$(W)});R?(U.innerHTML=R.__html||"",F()):I?(U.textContent=typeof I=="string"?I:Array.isArray(I)?I.join(""):"",F()):j&&(U.src=j,f.set(j,K));for(const[W,z]of Object.entries(C)){if(z===void 0||d.includes(W))continue;const ne=l.DOMAttributeNames[W]||W.toLowerCase();U.setAttribute(ne,z)}M==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",M),E&&p(E),document.body.appendChild(U)};function y(C){const{strategy:j="afterInteractive"}=C;j==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))}):h(C)}function g(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>h(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(C))})}function v(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(j=>{const x=j.id||j.getAttribute("src");m.add(x)})}function A(C){C.forEach(y),v()}function _(C){const{id:j,src:x="",onLoad:P=()=>{},onReady:D=null,strategy:R="afterInteractive",onError:I,stylesheets:M,...$}=C,{updateScripts:E,scripts:q,getIsSsr:F,appDir:U,nonce:K}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const ne=j||x;W.current||(D&&ne&&m.has(ne)&&D(),W.current=!0)},[D,j,x]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(R==="afterInteractive"?h(C):R==="lazyOnload"&&g(C),z.current=!0)},[C,R]),(R==="beforeInteractive"||R==="worker")&&(E?(q[R]=(q[R]||[]).concat([{id:j,src:x,onLoad:P,onReady:D,onError:I,...$}]),E(q)):F&&F()?m.add(j||x):F&&!F()&&h(C)),U){if(M&&M.forEach(ne=>{i.default.preinit(ne,{as:"style"})}),R==="beforeInteractive")return x?(i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"}),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([x])+")"}})):($.dangerouslySetInnerHTML&&($.children=$.dangerouslySetInnerHTML.__html,delete $.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:K,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...$}])+")"}}));R==="afterInteractive"&&x&&i.default.preload(x,$.integrity?{as:"script",integrity:$.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});const S=_;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Wn,Wn.exports);var vd=Wn.exports,bd=vd;const xd=Ht(bd),Cd=({children:e,ONE_TRUST:t})=>s.jsxs(s.Fragment,{children:[s.jsx(xd,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),Sd=uo(()=>Promise.resolve(Cd),{ssr:!1}),Ad="_footer__bottom_1o9af_2",Rd="_footer__wrapper_1o9af_10",Ed="_footer__main_1o9af_39",wd="_footer__legalInformation_1o9af_55",jd="_footer__column_1o9af_77",Pd="_footer__columnContent_1o9af_87",Id="_footer__item_1o9af_91",Od="_footer__itemLink_1o9af_107",Nd="_footer__columnTitle_1o9af_122",Td="_footer__columnTitleIcon_1o9af_134",Md="_footer__iconList_1o9af_147",kd="_footer__itemSmallText_1o9af_157",Ld="_payment_1o9af_168",Dd="_footer__iconContainer_1o9af_173",$d="_footer__iconListSubHeader_1o9af_178",Bd="_accordionWrapper_1o9af_200",qd="_accordionHeader_1o9af_204",Hd="_accordionTextWrapper_1o9af_208",pe={footer__bottom:Ad,footer__wrapper:Rd,footer__main:Ed,footer__legalInformation:wd,footer__column:jd,footer__columnContent:Pd,footer__item:Id,footer__itemLink:Od,footer__columnTitle:Nd,footer__columnTitleIcon:Td,footer__iconList:Md,footer__itemSmallText:kd,payment:Ld,footer__iconContainer:Dd,footer__iconListSubHeader:$d,accordionWrapper:Bd,accordionHeader:qd,accordionTextWrapper:Hd,"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 oc={},fo={},ft={};(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)}}})(ft);var ic={};(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,m=a?a*40:o,d=f&&m?"viewBox='0 0 "+f+" "+m+"'":"",p=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='"+p+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(ic);var Gt={};(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}})(Gt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return p}});const t=ft,r=ic,n=Gt,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 m(h,y,g){let{deviceSizes:v,allSizes:A}=h;if(g){const S=/(^|\s)(1?\d?\d)vw/g,C=[];for(let j;j=S.exec(g);j)C.push(parseInt(j[2]));if(C.length){const j=Math.min(...C)*.01;return{widths:A.filter(x=>x>=v[0]*j),kind:"w"}}return{widths:A,kind:"w"}}return typeof y!="number"?{widths:v,kind:"w"}:{widths:[...new Set([y,y*2].map(S=>A.find(C=>C>=S)||A[A.length-1]))],kind:"x"}}function d(h){let{config:y,src:g,unoptimized:v,width:A,quality:_,sizes:S,loader:C}=h;if(v)return{src:g,srcSet:void 0,sizes:void 0};const{widths:j,kind:x}=m(y,A,S),P=j.length-1;return{sizes:!S&&x==="w"?"100vw":S,srcSet:j.map((D,R)=>C({config:y,src:g,quality:_,width:D})+" "+(x==="w"?D:R+1)+x).join(", "),src:C({config:y,src:g,quality:_,width:j[P]})}}function p(h,y){let{src:g,sizes:v,unoptimized:A=!1,priority:_=!1,loading:S,className:C,quality:j,width:x,height:P,fill:D=!1,style:R,onLoad:I,onLoadingComplete:M,placeholder:$="empty",blurDataURL:E,fetchPriority:q,layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z,...ne}=h;const{imgConf:w,showAltText:N,blurComplete:L,defaultLoader:X}=y;let te,Z=w||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 T=ne.loader||X;delete ne.loader,delete ne.srcSet;const J="__next_img_default"in T;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=T;T=ue=>{const{config:Ce,...Q}=ue;return G(Q)}}if(F){F==="fill"&&(D=!0);const G={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},ue={responsive:"100vw",fill:"100vw"},Ce=G[F];Ce&&(R={...R,...Ce});const Q=ue[F];Q&&!v&&(v=Q)}let Y="",ee=f(x),k=f(P),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,E=E||G.blurDataURL,Y=G.src,!D){if(!ee&&!k)ee=G.width,k=G.height;else if(ee&&!k){const ue=ee/G.width;k=Math.round(G.height*ue)}else if(!ee&&k){const ue=k/G.height;ee=Math.round(G.width*ue)}}}g=typeof g=="string"?g:Y;let ae=!_&&(S==="lazy"||typeof S>"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(j);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(D){if(x)throw new Error('Image with src "'+g+'" has both "width" and "fill" properties. Only one should be used.');if(P)throw new Error('Image with src "'+g+'" has both "height" and "fill" properties. Only one should be used.');if(R!=null&&R.position&&R.position!=="absolute")throw new Error('Image with src "'+g+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(R!=null&&R.width&&R.width!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(R!=null&&R.height&&R.height!=="100%")throw new Error('Image with src "'+g+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof ee>"u")throw new Error('Image with src "'+g+'" is missing required "width" property.');if(isNaN(ee))throw new Error('Image with src "'+g+'" has invalid "width" property. Expected a numeric value in pixels but received "'+x+'".');if(typeof k>"u")throw new Error('Image with src "'+g+'" is missing required "height" property.');if(isNaN(k))throw new Error('Image with src "'+g+'" has invalid "height" property. Expected a numeric value in pixels but received "'+P+'".')}if(!o.includes(S))throw new Error('Image with src "'+g+'" has invalid "loading" property. Provided "'+S+'" should be one of '+o.map(String).join(",")+".");if(_&&S==="lazy")throw new Error('Image with src "'+g+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if($!=="empty"&&$!=="blur"&&!$.startsWith("data:image/"))throw new Error('Image with src "'+g+'" has invalid "placeholder" property "'+$+'".');if($!=="empty"&&ee&&k&&ee*k<1600&&(0,t.warnOnce)('Image with src "'+g+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),$==="blur"&&!E){const G=["jpeg","png","webp","avif"];throw new Error('Image with src "'+g+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
6
  Possible solutions:
7
7
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
8
8
  - Change the "src" property to a static import with one of the supported file types: `+G.join(",")+` (animated images not supported)
@@ -10,32 +10,32 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{con
10
10
  Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in ne&&(0,t.warnOnce)('Image with src "'+g+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!A&&!J){const G=T({config:te,src:g,width:ee||400,quality:ce||75});let ue;try{ue=new URL(G)}catch{}(G===g||ue&&ue.pathname===g&&!ue.search)&&(0,t.warnOnce)('Image with src "'+g+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
11
  Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[G,ue]of Object.entries({layout:F,objectFit:U,objectPosition:K,lazyBoundary:W,lazyRoot:z}))ue&&(0,t.warnOnce)('Image with src "'+g+'" has legacy prop "'+G+`". Did you forget to run the codemod?
12
12
  Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(G=>{for(const 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(D?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},O?{}:{color:"transparent"},R),se=!L&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:k,blurWidth:N,blurHeight:re,blurDataURL:E||"",objectFit:le.objectFit})+'")':'url("'+$+'")':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&&$==="blur"&&E!=null&&E.startsWith("/")&&(H.backgroundImage='url("'+E+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:T});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:$})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:k,decoding:"async",className:C,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:$,fill:D}}}})(fo);var Vn={exports:{}},Tt={exports:{}},Rr={},hi;function zd(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=B,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const m=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(m,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var m;return c==null||(m=c.mountedInstances)==null||m.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}}(Rr)),Rr}var Er={},gi;function Fd(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Er)),Er}var wr={},yi;function Ud(){return yi||(yi=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}}(wr)),wr}var _i;function Gd(){return _i||(_i=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var S in _)Object.defineProperty(A,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return m},default:function(){return v}});const n=Ee,i=zt()._(B),a=n._(zd()),c=Fd(),l=nc(),u=Ud(),f=ft;function m(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((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):A.concat(_)}const p=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,S=new Set,C={};return j=>{let x=!0,P=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){P=!0;const D=j.key.slice(j.key.indexOf("$")+1);A.has(D)?x=!1:A.add(D)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let D=0,R=p.length;D<R;D++){const I=p[D];if(j.props.hasOwnProperty(I))if(I==="charSet")S.has(I)?x=!1:S.add(I);else{const M=j.props[I],$=C[I]||new Set;(I!=="name"||!P)&&$.has(M)?x=!1:($.add(M),C[I]=$)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(m(S).reverse()).filter(h()).reverse().map((C,j)=>{const x=C.key||j;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(P=>C.props.href.startsWith(P))){const P={...C.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,i.default.cloneElement(C,P)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const P=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+P+`). Use next/script instead.
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(D?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:U,objectPosition:K}:{},N?{}:{color:"transparent"},R),se=!L&&$!=="empty"?$==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:ee,heightInt:k,blurWidth:O,blurHeight:re,blurDataURL:E||"",objectFit:le.objectFit})+'")':'url("'+$+'")':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&&$==="blur"&&E!=null&&E.startsWith("/")&&(H.backgroundImage='url("'+E+'")');const he=d({config:te,src:g,unoptimized:A,width:ee,quality:ce,sizes:v,loader:T});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:$})}return{props:{...ne,loading:ae?"lazy":S,fetchPriority:q,width:ee,height:k,decoding:"async",className:C,style:{...le,...H},sizes:he.sizes,srcSet:he.srcSet,src:he.src},meta:{unoptimized:A,priority:_,placeholder:$,fill:D}}}})(fo);var Vn={exports:{}},Tt={exports:{}},Rr={},hi;function zd(){return hi||(hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=B,r=typeof window>"u",n=r?()=>{}:t.useLayoutEffect,o=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const m=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(m,a))}}if(r){var f;c==null||(f=c.mountedInstances)==null||f.add(a.children),u()}return n(()=>{var m;return c==null||(m=c.mountedInstances)==null||m.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}}(Rr)),Rr}var Er={},gi;function Fd(){return gi||(gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=Ee._(B).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="AmpStateContext")}(Er)),Er}var wr={},yi;function Ud(){return yi||(yi=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}}(wr)),wr}var _i;function Gd(){return _i||(_i=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(A,_){for(var S in _)Object.defineProperty(A,S,{enumerable:!0,get:_[S]})}r(t,{defaultHead:function(){return m},default:function(){return v}});const n=Ee,i=zt()._(B),a=n._(zd()),c=Fd(),l=nc(),u=Ud(),f=ft;function m(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((S,C)=>typeof C=="string"||typeof C=="number"?S:S.concat(C),[])):A.concat(_)}const p=["name","httpEquiv","charSet","itemProp"];function h(){const A=new Set,_=new Set,S=new Set,C={};return j=>{let x=!0,P=!1;if(j.key&&typeof j.key!="number"&&j.key.indexOf("$")>0){P=!0;const D=j.key.slice(j.key.indexOf("$")+1);A.has(D)?x=!1:A.add(D)}switch(j.type){case"title":case"base":_.has(j.type)?x=!1:_.add(j.type);break;case"meta":for(let D=0,R=p.length;D<R;D++){const I=p[D];if(j.props.hasOwnProperty(I))if(I==="charSet")S.has(I)?x=!1:S.add(I);else{const M=j.props[I],$=C[I]||new Set;(I!=="name"||!P)&&$.has(M)?x=!1:($.add(M),C[I]=$)}}break}return x}}function y(A,_){const{inAmpMode:S}=_;return A.reduce(d,[]).reverse().concat(m(S).reverse()).filter(h()).reverse().map((C,j)=>{const x=C.key||j;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&C.type==="link"&&C.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(P=>C.props.href.startsWith(P))){const P={...C.props||{}};return P["data-href"]=P.href,P.href=void 0,P["data-optimized-fonts"]=!0,i.default.cloneElement(C,P)}if(process.env.NODE_ENV==="development")if(C.type==="script"&&C.props.type!=="application/ld+json"){const P=C.props.src?'<script> tag with src="'+C.props.src+'"':"inline <script>";(0,f.warnOnce)("Do not add <script> tags using next/head (see "+P+`). Use next/script instead.
14
14
  See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else C.type==="link"&&C.props.rel==="stylesheet"&&(0,f.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+C.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(A){let{children:_}=A;const S=(0,i.useContext)(c.AmpStateContext),C=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,u.isInAmpMode)(S)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Tt,Tt.exports)),Tt.exports}var jr={},vi;function Wd(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Ee._(B),n=Gt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(jr)),jr}var Pr={},Ir={},Nr={exports:{}};const Vd={},Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Vd},Symbol.toStringTag,{value:"Module"})),Xd=su(Kd);var Or={},Tr={},Mr,bi;function ac(){return bi||(bi=1,Mr=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}),Mr}var kr,xi;function Wt(){if(xi)return kr;xi=1;var e=ac();return kr=function(){return e()&&!!Symbol.toStringTag},kr}var Lr,Ci;function sc(){return Ci||(Ci=1,Lr=Object),Lr}var Dr,Si;function Qd(){return Si||(Si=1,Dr=Error),Dr}var $r,Ai;function Yd(){return Ai||(Ai=1,$r=EvalError),$r}var Br,Ri;function Zd(){return Ri||(Ri=1,Br=RangeError),Br}var qr,Ei;function Jd(){return Ei||(Ei=1,qr=ReferenceError),qr}var Hr,wi;function cc(){return wi||(wi=1,Hr=SyntaxError),Hr}var zr,ji;function pt(){return ji||(ji=1,zr=TypeError),zr}var Fr,Pi;function ef(){return Pi||(Pi=1,Fr=URIError),Fr}var Ur,Ii;function tf(){return Ii||(Ii=1,Ur=Math.abs),Ur}var Gr,Ni;function rf(){return Ni||(Ni=1,Gr=Math.floor),Gr}var Wr,Oi;function nf(){return Oi||(Oi=1,Wr=Math.max),Wr}var Vr,Ti;function of(){return Ti||(Ti=1,Vr=Math.min),Vr}var Kr,Mi;function af(){return Mi||(Mi=1,Kr=Math.pow),Kr}var Xr,ki;function sf(){return ki||(ki=1,Xr=Math.round),Xr}var Qr,Li;function cf(){return Li||(Li=1,Qr=Number.isNaN||function(t){return t!==t}),Qr}var Yr,Di;function lf(){if(Di)return Yr;Di=1;var e=cf();return Yr=function(r){return e(r)||r===0?r:r<0?-1:1},Yr}var Zr,$i;function uf(){return $i||($i=1,Zr=Object.getOwnPropertyDescriptor),Zr}var Jr,Bi;function tt(){if(Bi)return Jr;Bi=1;var e=uf();if(e)try{e([],"length")}catch{e=null}return Jr=e,Jr}var en,qi;function Vt(){if(qi)return en;qi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return en=e,en}var tn,Hi;function df(){if(Hi)return tn;Hi=1;var e=typeof Symbol<"u"&&Symbol,t=ac();return tn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},tn}var rn,zi;function lc(){return zi||(zi=1,rn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rn}var nn,Fi;function uc(){if(Fi)return nn;Fi=1;var e=sc();return nn=e.getPrototypeOf||null,nn}var on,Ui;function ff(){if(Ui)return on;Ui=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=[],m=0;m<l.length;m+=1)f[m]=l[m];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],m=u,d=0;m<l.length;m+=1,d+=1)f[d]=l[m];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 on=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),m,d=function(){if(this instanceof m){var v=u.apply(this,o(f,arguments));return Object(v)===v?v:this}return u.apply(l,o(f,arguments))},p=r(0,u.length-f.length),h=[],y=0;y<p;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,m.prototype=new g,g.prototype=null}return m},on}var an,Gi;function mt(){if(Gi)return an;Gi=1;var e=ff();return an=Function.prototype.bind||e,an}var sn,Wi;function po(){return Wi||(Wi=1,sn=Function.prototype.call),sn}var cn,Vi;function mo(){return Vi||(Vi=1,cn=Function.prototype.apply),cn}var ln,Ki;function pf(){return Ki||(Ki=1,ln=typeof Reflect<"u"&&Reflect&&Reflect.apply),ln}var un,Xi;function dc(){if(Xi)return un;Xi=1;var e=mt(),t=mo(),r=po(),n=pf();return un=n||e.call(r,t),un}var dn,Qi;function ho(){if(Qi)return dn;Qi=1;var e=mt(),t=pt(),r=po(),n=dc();return dn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},dn}var fn,Yi;function mf(){if(Yi)return fn;Yi=1;var e=ho(),t=tt(),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 fn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,fn}var pn,Zi;function go(){if(Zi)return pn;Zi=1;var e=lc(),t=uc(),r=mf();return pn=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,pn}var mn,Ji;function fc(){if(Ji)return mn;Ji=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=mt();return mn=r.call(e,t),mn}var hn,ea;function pc(){if(ea)return hn;ea=1;var e,t=sc(),r=Qd(),n=Yd(),o=Zd(),i=Jd(),a=cc(),c=pt(),l=ef(),u=tf(),f=rf(),m=nf(),d=of(),p=af(),h=sf(),y=lf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=tt(),_=Vt(),S=function(){throw new c},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=df()(),x=go(),P=uc(),D=lc(),R=mo(),I=po(),M={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":M,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!x?e:x(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"||!j||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&x?x(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":$,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":R,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":P,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(x)try{null.error}catch(J){var q=x(x(J));E["%Error.prototype%"]=q}var F=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 k=J("%AsyncGeneratorFunction%");k&&(ee=k.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var N=J("%AsyncGenerator%");N&&x&&(ee=x(N.prototype))}return E[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=mt(),W=fc(),z=K.call(I,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),w=K.call(I,String.prototype.replace),O=K.call(I,String.prototype.slice),L=K.call(I,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=O(Y,0,1),k=O(Y,-1);if(ee==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var N=[];return w(Y,X,function(re,ae,ce,le){N[N.length]=ce?w(le,te,"$1"):ae||re}),N},T=function(Y,ee){var k=Y,N;if(W(U,k)&&(N=U[k],k="%"+N[0]+"%"),W(E,k)){var re=E[k];if(re===M&&(re=F(k)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:N,name:k,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return hn=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(L(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=Z(Y),N=k.length>0?k[0]:"",re=T("%"+N+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(N=se[0],ne(k,z([0,1],se)));for(var H=1,he=!0;H<k.length;H+=1){var ie=k[H],me=O(ie,0,1),G=O(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),N+="."+ie,ae="%"+N+"%",W(E,ae))ce=E[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>=k.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&&(E[ae]=ce)}}return ce},hn}var gn,ta;function ht(){if(ta)return gn;ta=1;var e=pc(),t=ho(),r=t([e("%String.prototype.indexOf%")]);return gn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},gn}var yn,ra;function hf(){if(ra)return yn;ra=1;var e=Wt()(),t=ht(),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,yn=i?n:o,yn}var _n,na;function gf(){if(na)return _n;na=1;var e=ht(),t=Wt()(),r=fc(),n=tt(),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 p=n(d,"lastIndex"),h=p&&r(p,"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 _n=o,_n}var vn,oa;function yf(){if(oa)return vn;oa=1;var e=ht(),t=gf(),r=e("RegExp.prototype.exec"),n=pt();return vn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},vn}var bn,ia;function _f(){if(ia)return bn;ia=1;var e=ht(),t=yf(),r=t(/^\s*(?:function)?\*/),n=Wt()(),o=go(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return bn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var m=i(f);return m==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(f)===l},bn}var xn,aa;function vf(){if(aa)return xn;aa=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 S=e.call(_);return o.test(S)}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]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[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 S=c.call(_);return(S===m||S===d||S===p||S===l)&&_("")==null}catch{}return!1})}return xn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=c.call(_);return S!==u&&S!==f&&!/^\[object HTML/.test(S)?!1:a(_)},xn}var Cn,sa;function bf(){if(sa)return Cn;sa=1;var e=vf(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var m=0,d=l.length;m<d;m++)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))},o=function(l,u,f){for(var m=0,d=l.length;m<d;m++)f==null?u(l.charAt(m),m,l):u.call(f,l.charAt(m),m,l)},i=function(l,u,f){for(var m in l)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))};function a(c){return t.call(c)==="[object Array]"}return Cn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=f),a(l)?n(l,u,m):typeof l=="string"?o(l,u,m):i(l,u,m)},Cn}var Sn,ca;function xf(){return ca||(ca=1,Sn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Sn}var An,la;function Cf(){if(la)return An;la=1;var e=xf(),t=typeof globalThis>"u"?Ms:globalThis;return An=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},An}var Rn={exports:{}},En,ua;function Sf(){if(ua)return En;ua=1;var e=Vt(),t=cc(),r=pt(),n=tt();return En=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,m=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(m||!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.")},En}var wn,da;function Af(){if(da)return wn;da=1;var e=Vt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},wn=t,wn}var jn,fa;function Rf(){if(fa)return jn;fa=1;var e=pc(),t=Sf(),r=Af()(),n=tt(),o=pt(),i=e("%Math.floor%");return jn=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,m=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(m=!1)}return(f||m||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},jn}var Pn,pa;function Ef(){if(pa)return Pn;pa=1;var e=mt(),t=mo(),r=dc();return Pn=function(){return r(e,t,arguments)},Pn}var ma;function wf(){return ma||(ma=1,function(e){var t=Rf(),r=Vt(),n=ho(),o=Ef();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}(Rn)),Rn.exports}var In,ha;function mc(){if(ha)return In;ha=1;var e=bf(),t=Cf(),r=wf(),n=ht(),o=tt(),i=go(),a=n("Object.prototype.toString"),c=Wt()(),l=typeof globalThis>"u"?Ms:globalThis,u=t(),f=n("String.prototype.slice"),m=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 p=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 In=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=f(a(g),8,-1);return m(u,v)>-1?v:v!=="Object"?!1:h(g)}return o?p(g):null},In}var Nn,ga;function jf(){if(ga)return Nn;ga=1;var e=mc();return Nn=function(r){return!!e(r)},Nn}var ya;function Pf(){return ya||(ya=1,function(e){var t=hf(),r=_f(),n=mc(),o=jf();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),m=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var p=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)||O(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 S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function j(H){return n(H)==="Int16Array"}e.isInt16Array=j;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function P(H){return n(H)==="Float32Array"}e.isFloat32Array=P;function D(H){return n(H)==="Float64Array"}e.isFloat64Array=D;function R(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=R;function I(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=I;function M(H){return l(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function $(H){return typeof Map>"u"?!1:M.working?M(H):H instanceof Map}e.isMap=$;function E(H){return l(H)==="[object Set]"}E.working=typeof Set<"u"&&E(new Set);function q(H){return typeof Set>"u"?!1:E.working?E(H):H instanceof Set}e.isSet=q;function F(H){return l(H)==="[object WeakMap]"}F.working=typeof WeakMap<"u"&&F(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:F.working?F(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 z(H){return l(H)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:z.working?z(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(H){return l(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function O(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=O;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof L>"u"?!1:(typeof X.working>"u"&&(X.working=X(new L)),X.working?X(H):H instanceof L)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function T(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=T;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 k(H){return h(H,u)}e.isNumberObject=k;function N(H){return h(H,f)}e.isStringObject=N;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,p)}e.isSymbolObject=ce;function le(H){return k(H)||N(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")}})})}(Tr)),Tr}var On,_a;function If(){return _a||(_a=1,On=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),On}var Mt={exports:{}},va;function Nf(){return va||(va=1,typeof Object.create=="function"?Mt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Mt.exports}var ba;function Of(){return ba||(ba=1,function(e){var t=Object.getOwnPropertyDescriptors||function(O){for(var L=Object.keys(O),X={},te=0;te<L.length;te++)X[L[te]]=Object.getOwnPropertyDescriptor(O,L[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var O=[],L=0;L<arguments.length;L++)O.push(a(arguments[L]));return O.join(" ")}for(var L=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(L>=te)return J;switch(J){case"%s":return String(X[L++]);case"%d":return Number(X[L++]);case"%j":try{return JSON.stringify(X[L++])}catch{return"[Circular]"}default:return J}}),T=X[L];L<te;T=X[++L])A(T)||!D(T)?Z+=" "+T:Z+=" "+a(T);return Z},e.deprecate=function(w,O){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,O).apply(this,arguments)};var L=!1;function X(){if(!L){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),L=!0}return w.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(w){if(w=w.toUpperCase(),!n[w])if(o.test(w)){var O=process.pid;n[w]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",w,O,L)}}else n[w]=function(){};return n[w]};function a(w,O){var L={seen:[],stylize:l};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),v(O)?L.showHidden=O:O&&e._extend(L,O),x(L.showHidden)&&(L.showHidden=!1),x(L.depth)&&(L.depth=2),x(L.colors)&&(L.colors=!1),x(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=c),f(L,w,L.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,O){var L=a.styles[O];return L?"\x1B["+a.colors[L][0]+"m"+w+"\x1B["+a.colors[L][1]+"m":w}function l(w,O){return w}function u(w){var O={};return w.forEach(function(L,X){O[L]=!0}),O}function f(w,O,L){if(w.customInspect&&O&&M(O.inspect)&&O.inspect!==e.inspect&&!(O.constructor&&O.constructor.prototype===O)){var X=O.inspect(L,w);return C(X)||(X=f(w,X,L)),X}var te=m(w,O);if(te)return te;var Z=Object.keys(O),T=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(O)),I(O)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(O);if(Z.length===0){if(M(O)){var J=O.name?": "+O.name:"";return w.stylize("[Function"+J+"]","special")}if(P(O))return w.stylize(RegExp.prototype.toString.call(O),"regexp");if(R(O))return w.stylize(Date.prototype.toString.call(O),"date");if(I(O))return d(O)}var Y="",ee=!1,k=["{","}"];if(g(O)&&(ee=!0,k=["[","]"]),M(O)){var N=O.name?": "+O.name:"";Y=" [Function"+N+"]"}if(P(O)&&(Y=" "+RegExp.prototype.toString.call(O)),R(O)&&(Y=" "+Date.prototype.toUTCString.call(O)),I(O)&&(Y=" "+d(O)),Z.length===0&&(!ee||O.length==0))return k[0]+Y+k[1];if(L<0)return P(O)?w.stylize(RegExp.prototype.toString.call(O),"regexp"):w.stylize("[Object]","special");w.seen.push(O);var re;return ee?re=p(w,O,L,T,Z):re=Z.map(function(ae){return h(w,O,L,T,ae,ee)}),w.seen.pop(),y(re,Y,k)}function m(w,O){if(x(O))return w.stylize("undefined","undefined");if(C(O)){var L="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(L,"string")}if(S(O))return w.stylize(""+O,"number");if(v(O))return w.stylize(""+O,"boolean");if(A(O))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function p(w,O,L,X,te){for(var Z=[],T=0,J=O.length;T<J;++T)K(O,String(T))?Z.push(h(w,O,L,X,String(T),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,O,L,X,Y,!0))}),Z}function h(w,O,L,X,te,Z){var T,J,Y;if(Y=Object.getOwnPropertyDescriptor(O,te)||{value:O[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(T="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(L)?J=f(w,Y.value,null):J=f(w,Y.value,L-1),J.indexOf(`
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(C,{key:x})})}function g(A){let{children:_}=A;const S=(0,i.useContext)(c.AmpStateContext),C=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:y,headManager:C,inAmpMode:(0,u.isInAmpMode)(S)},_)}const v=g;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Tt,Tt.exports)),Tt.exports}var jr={},vi;function Wd(){return vi||(vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=Ee._(B),n=Gt,o=r.default.createContext(n.imageConfigDefault);process.env.NODE_ENV!=="production"&&(o.displayName="ImageConfigContext")}(jr)),jr}var Pr={},Ir={},Or={exports:{}};const Vd={},Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Vd},Symbol.toStringTag,{value:"Module"})),Xd=su(Kd);var Nr={},Tr={},Mr,bi;function ac(){return bi||(bi=1,Mr=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}),Mr}var kr,xi;function Wt(){if(xi)return kr;xi=1;var e=ac();return kr=function(){return e()&&!!Symbol.toStringTag},kr}var Lr,Ci;function sc(){return Ci||(Ci=1,Lr=Object),Lr}var Dr,Si;function Qd(){return Si||(Si=1,Dr=Error),Dr}var $r,Ai;function Yd(){return Ai||(Ai=1,$r=EvalError),$r}var Br,Ri;function Zd(){return Ri||(Ri=1,Br=RangeError),Br}var qr,Ei;function Jd(){return Ei||(Ei=1,qr=ReferenceError),qr}var Hr,wi;function cc(){return wi||(wi=1,Hr=SyntaxError),Hr}var zr,ji;function pt(){return ji||(ji=1,zr=TypeError),zr}var Fr,Pi;function ef(){return Pi||(Pi=1,Fr=URIError),Fr}var Ur,Ii;function tf(){return Ii||(Ii=1,Ur=Math.abs),Ur}var Gr,Oi;function rf(){return Oi||(Oi=1,Gr=Math.floor),Gr}var Wr,Ni;function nf(){return Ni||(Ni=1,Wr=Math.max),Wr}var Vr,Ti;function of(){return Ti||(Ti=1,Vr=Math.min),Vr}var Kr,Mi;function af(){return Mi||(Mi=1,Kr=Math.pow),Kr}var Xr,ki;function sf(){return ki||(ki=1,Xr=Math.round),Xr}var Qr,Li;function cf(){return Li||(Li=1,Qr=Number.isNaN||function(t){return t!==t}),Qr}var Yr,Di;function lf(){if(Di)return Yr;Di=1;var e=cf();return Yr=function(r){return e(r)||r===0?r:r<0?-1:1},Yr}var Zr,$i;function uf(){return $i||($i=1,Zr=Object.getOwnPropertyDescriptor),Zr}var Jr,Bi;function tt(){if(Bi)return Jr;Bi=1;var e=uf();if(e)try{e([],"length")}catch{e=null}return Jr=e,Jr}var en,qi;function Vt(){if(qi)return en;qi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return en=e,en}var tn,Hi;function df(){if(Hi)return tn;Hi=1;var e=typeof Symbol<"u"&&Symbol,t=ac();return tn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},tn}var rn,zi;function lc(){return zi||(zi=1,rn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rn}var nn,Fi;function uc(){if(Fi)return nn;Fi=1;var e=sc();return nn=e.getPrototypeOf||null,nn}var on,Ui;function ff(){if(Ui)return on;Ui=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=[],m=0;m<l.length;m+=1)f[m]=l[m];for(var d=0;d<u.length;d+=1)f[d+l.length]=u[d];return f},i=function(l,u){for(var f=[],m=u,d=0;m<l.length;m+=1,d+=1)f[d]=l[m];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 on=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var f=i(arguments,1),m,d=function(){if(this instanceof m){var v=u.apply(this,o(f,arguments));return Object(v)===v?v:this}return u.apply(l,o(f,arguments))},p=r(0,u.length-f.length),h=[],y=0;y<p;y++)h[y]="$"+y;if(m=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var g=function(){};g.prototype=u.prototype,m.prototype=new g,g.prototype=null}return m},on}var an,Gi;function mt(){if(Gi)return an;Gi=1;var e=ff();return an=Function.prototype.bind||e,an}var sn,Wi;function po(){return Wi||(Wi=1,sn=Function.prototype.call),sn}var cn,Vi;function mo(){return Vi||(Vi=1,cn=Function.prototype.apply),cn}var ln,Ki;function pf(){return Ki||(Ki=1,ln=typeof Reflect<"u"&&Reflect&&Reflect.apply),ln}var un,Xi;function dc(){if(Xi)return un;Xi=1;var e=mt(),t=mo(),r=po(),n=pf();return un=n||e.call(r,t),un}var dn,Qi;function ho(){if(Qi)return dn;Qi=1;var e=mt(),t=pt(),r=po(),n=dc();return dn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},dn}var fn,Yi;function mf(){if(Yi)return fn;Yi=1;var e=ho(),t=tt(),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 fn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,fn}var pn,Zi;function go(){if(Zi)return pn;Zi=1;var e=lc(),t=uc(),r=mf();return pn=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,pn}var mn,Ji;function fc(){if(Ji)return mn;Ji=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=mt();return mn=r.call(e,t),mn}var hn,ea;function pc(){if(ea)return hn;ea=1;var e,t=sc(),r=Qd(),n=Yd(),o=Zd(),i=Jd(),a=cc(),c=pt(),l=ef(),u=tf(),f=rf(),m=nf(),d=of(),p=af(),h=sf(),y=lf(),g=Function,v=function(J){try{return g('"use strict"; return ('+J+").constructor;")()}catch{}},A=tt(),_=Vt(),S=function(){throw new c},C=A?function(){try{return arguments.callee,S}catch{try{return A(arguments,"callee").get}catch{return S}}}():S,j=df()(),x=go(),P=uc(),D=lc(),R=mo(),I=po(),M={},$=typeof Uint8Array>"u"||!x?e:x(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":j&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":M,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!x?e:x(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"||!j||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&x?x(""[Symbol.iterator]()):e,"%Symbol%":j?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":$,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":R,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":P,"%Math.abs%":u,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":d,"%Math.pow%":p,"%Math.round%":h,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(x)try{null.error}catch(J){var q=x(x(J));E["%Error.prototype%"]=q}var F=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 k=J("%AsyncGeneratorFunction%");k&&(ee=k.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var O=J("%AsyncGenerator%");O&&x&&(ee=x(O.prototype))}return E[Y]=ee,ee},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},K=mt(),W=fc(),z=K.call(I,Array.prototype.concat),ne=K.call(R,Array.prototype.splice),w=K.call(I,String.prototype.replace),N=K.call(I,String.prototype.slice),L=K.call(I,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Z=function(Y){var ee=N(Y,0,1),k=N(Y,-1);if(ee==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&ee!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var O=[];return w(Y,X,function(re,ae,ce,le){O[O.length]=ce?w(le,te,"$1"):ae||re}),O},T=function(Y,ee){var k=Y,O;if(W(U,k)&&(O=U[k],k="%"+O[0]+"%"),W(E,k)){var re=E[k];if(re===M&&(re=F(k)),typeof re>"u"&&!ee)throw new c("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:O,name:k,value:re}}throw new a("intrinsic "+Y+" does not exist!")};return hn=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(L(/^%?[^%]*%?$/,Y)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=Z(Y),O=k.length>0?k[0]:"",re=T("%"+O+"%",ee),ae=re.name,ce=re.value,le=!1,se=re.alias;se&&(O=se[0],ne(k,z([0,1],se)));for(var H=1,he=!0;H<k.length;H+=1){var ie=k[H],me=N(ie,0,1),G=N(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(E,ae))ce=E[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>=k.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&&(E[ae]=ce)}}return ce},hn}var gn,ta;function ht(){if(ta)return gn;ta=1;var e=pc(),t=ho(),r=t([e("%String.prototype.indexOf%")]);return gn=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},gn}var yn,ra;function hf(){if(ra)return yn;ra=1;var e=Wt()(),t=ht(),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,yn=i?n:o,yn}var _n,na;function gf(){if(na)return _n;na=1;var e=ht(),t=Wt()(),r=fc(),n=tt(),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 p=n(d,"lastIndex"),h=p&&r(p,"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 _n=o,_n}var vn,oa;function yf(){if(oa)return vn;oa=1;var e=ht(),t=gf(),r=e("RegExp.prototype.exec"),n=pt();return vn=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},vn}var bn,ia;function _f(){if(ia)return bn;ia=1;var e=ht(),t=yf(),r=t(/^\s*(?:function)?\*/),n=Wt()(),o=go(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},l;return bn=function(f){if(typeof f!="function")return!1;if(r(a(f)))return!0;if(!n){var m=i(f);return m==="[object GeneratorFunction]"}if(!o)return!1;if(typeof l>"u"){var d=c();l=d?o(d):!1}return o(f)===l},bn}var xn,aa;function vf(){if(aa)return xn;aa=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 S=e.call(_);return o.test(S)}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]",m="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[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 S=c.call(_);return(S===m||S===d||S===p||S===l)&&_("")==null}catch{}return!1})}return xn=t?function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{t(_,null,r)}catch(S){if(S!==n)return!1}return!i(_)&&a(_)}:function(_){if(g(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(h)return a(_);if(i(_))return!1;var S=c.call(_);return S!==u&&S!==f&&!/^\[object HTML/.test(S)?!1:a(_)},xn}var Cn,sa;function bf(){if(sa)return Cn;sa=1;var e=vf(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,u,f){for(var m=0,d=l.length;m<d;m++)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))},o=function(l,u,f){for(var m=0,d=l.length;m<d;m++)f==null?u(l.charAt(m),m,l):u.call(f,l.charAt(m),m,l)},i=function(l,u,f){for(var m in l)r.call(l,m)&&(f==null?u(l[m],m,l):u.call(f,l[m],m,l))};function a(c){return t.call(c)==="[object Array]"}return Cn=function(l,u,f){if(!e(u))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=f),a(l)?n(l,u,m):typeof l=="string"?o(l,u,m):i(l,u,m)},Cn}var Sn,ca;function xf(){return ca||(ca=1,Sn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Sn}var An,la;function Cf(){if(la)return An;la=1;var e=xf(),t=typeof globalThis>"u"?Ms:globalThis;return An=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},An}var Rn={exports:{}},En,ua;function Sf(){if(ua)return En;ua=1;var e=Vt(),t=cc(),r=pt(),n=tt();return En=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,m=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(m||!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.")},En}var wn,da;function Af(){if(da)return wn;da=1;var e=Vt(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},wn=t,wn}var jn,fa;function Rf(){if(fa)return jn;fa=1;var e=pc(),t=Sf(),r=Af()(),n=tt(),o=pt(),i=e("%Math.floor%");return jn=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,m=!0;if("length"in c&&n){var d=n(c,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(m=!1)}return(f||m||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},jn}var Pn,pa;function Ef(){if(pa)return Pn;pa=1;var e=mt(),t=mo(),r=dc();return Pn=function(){return r(e,t,arguments)},Pn}var ma;function wf(){return ma||(ma=1,function(e){var t=Rf(),r=Vt(),n=ho(),o=Ef();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}(Rn)),Rn.exports}var In,ha;function mc(){if(ha)return In;ha=1;var e=bf(),t=Cf(),r=wf(),n=ht(),o=tt(),i=go(),a=n("Object.prototype.toString"),c=Wt()(),l=typeof globalThis>"u"?Ms:globalThis,u=t(),f=n("String.prototype.slice"),m=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 p=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 In=function(g){if(!g||typeof g!="object")return!1;if(!c){var v=f(a(g),8,-1);return m(u,v)>-1?v:v!=="Object"?!1:h(g)}return o?p(g):null},In}var On,ga;function jf(){if(ga)return On;ga=1;var e=mc();return On=function(r){return!!e(r)},On}var ya;function Pf(){return ya||(ya=1,function(e){var t=hf(),r=_f(),n=mc(),o=jf();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),m=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var p=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)||N(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 S(H){return n(H)==="Uint32Array"}e.isUint32Array=S;function C(H){return n(H)==="Int8Array"}e.isInt8Array=C;function j(H){return n(H)==="Int16Array"}e.isInt16Array=j;function x(H){return n(H)==="Int32Array"}e.isInt32Array=x;function P(H){return n(H)==="Float32Array"}e.isFloat32Array=P;function D(H){return n(H)==="Float64Array"}e.isFloat64Array=D;function R(H){return n(H)==="BigInt64Array"}e.isBigInt64Array=R;function I(H){return n(H)==="BigUint64Array"}e.isBigUint64Array=I;function M(H){return l(H)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function $(H){return typeof Map>"u"?!1:M.working?M(H):H instanceof Map}e.isMap=$;function E(H){return l(H)==="[object Set]"}E.working=typeof Set<"u"&&E(new Set);function q(H){return typeof Set>"u"?!1:E.working?E(H):H instanceof Set}e.isSet=q;function F(H){return l(H)==="[object WeakMap]"}F.working=typeof WeakMap<"u"&&F(new WeakMap);function U(H){return typeof WeakMap>"u"?!1:F.working?F(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 z(H){return l(H)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:z.working?z(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function w(H){return l(H)==="[object DataView]"}w.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&w(new DataView(new ArrayBuffer(1),0,1));function N(H){return typeof DataView>"u"?!1:w.working?w(H):H instanceof DataView}e.isDataView=N;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function X(H){return l(H)==="[object SharedArrayBuffer]"}function te(H){return typeof L>"u"?!1:(typeof X.working>"u"&&(X.working=X(new L)),X.working?X(H):H instanceof L)}e.isSharedArrayBuffer=te;function Z(H){return l(H)==="[object AsyncFunction]"}e.isAsyncFunction=Z;function T(H){return l(H)==="[object Map Iterator]"}e.isMapIterator=T;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 k(H){return h(H,u)}e.isNumberObject=k;function O(H){return h(H,f)}e.isStringObject=O;function re(H){return h(H,m)}e.isBooleanObject=re;function ae(H){return a&&h(H,d)}e.isBigIntObject=ae;function ce(H){return c&&h(H,p)}e.isSymbolObject=ce;function le(H){return k(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")}})})}(Tr)),Tr}var Nn,_a;function If(){return _a||(_a=1,Nn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Nn}var Mt={exports:{}},va;function Of(){return va||(va=1,typeof Object.create=="function"?Mt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Mt.exports}var ba;function Nf(){return ba||(ba=1,function(e){var t=Object.getOwnPropertyDescriptors||function(N){for(var L=Object.keys(N),X={},te=0;te<L.length;te++)X[L[te]]=Object.getOwnPropertyDescriptor(N,L[te]);return X},r=/%[sdj%]/g;e.format=function(w){if(!C(w)){for(var N=[],L=0;L<arguments.length;L++)N.push(a(arguments[L]));return N.join(" ")}for(var L=1,X=arguments,te=X.length,Z=String(w).replace(r,function(J){if(J==="%%")return"%";if(L>=te)return J;switch(J){case"%s":return String(X[L++]);case"%d":return Number(X[L++]);case"%j":try{return JSON.stringify(X[L++])}catch{return"[Circular]"}default:return J}}),T=X[L];L<te;T=X[++L])A(T)||!D(T)?Z+=" "+T:Z+=" "+a(T);return Z},e.deprecate=function(w,N){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,N).apply(this,arguments)};var L=!1;function X(){if(!L){if(process.throwDeprecation)throw new Error(N);process.traceDeprecation?console.trace(N):console.error(N),L=!0}return w.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(w){if(w=w.toUpperCase(),!n[w])if(o.test(w)){var N=process.pid;n[w]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",w,N,L)}}else n[w]=function(){};return n[w]};function a(w,N){var L={seen:[],stylize:l};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),v(N)?L.showHidden=N:N&&e._extend(L,N),x(L.showHidden)&&(L.showHidden=!1),x(L.depth)&&(L.depth=2),x(L.colors)&&(L.colors=!1),x(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=c),f(L,w,L.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,N){var L=a.styles[N];return L?"\x1B["+a.colors[L][0]+"m"+w+"\x1B["+a.colors[L][1]+"m":w}function l(w,N){return w}function u(w){var N={};return w.forEach(function(L,X){N[L]=!0}),N}function f(w,N,L){if(w.customInspect&&N&&M(N.inspect)&&N.inspect!==e.inspect&&!(N.constructor&&N.constructor.prototype===N)){var X=N.inspect(L,w);return C(X)||(X=f(w,X,L)),X}var te=m(w,N);if(te)return te;var Z=Object.keys(N),T=u(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(N)),I(N)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return d(N);if(Z.length===0){if(M(N)){var J=N.name?": "+N.name:"";return w.stylize("[Function"+J+"]","special")}if(P(N))return w.stylize(RegExp.prototype.toString.call(N),"regexp");if(R(N))return w.stylize(Date.prototype.toString.call(N),"date");if(I(N))return d(N)}var Y="",ee=!1,k=["{","}"];if(g(N)&&(ee=!0,k=["[","]"]),M(N)){var O=N.name?": "+N.name:"";Y=" [Function"+O+"]"}if(P(N)&&(Y=" "+RegExp.prototype.toString.call(N)),R(N)&&(Y=" "+Date.prototype.toUTCString.call(N)),I(N)&&(Y=" "+d(N)),Z.length===0&&(!ee||N.length==0))return k[0]+Y+k[1];if(L<0)return P(N)?w.stylize(RegExp.prototype.toString.call(N),"regexp"):w.stylize("[Object]","special");w.seen.push(N);var re;return ee?re=p(w,N,L,T,Z):re=Z.map(function(ae){return h(w,N,L,T,ae,ee)}),w.seen.pop(),y(re,Y,k)}function m(w,N){if(x(N))return w.stylize("undefined","undefined");if(C(N)){var L="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(L,"string")}if(S(N))return w.stylize(""+N,"number");if(v(N))return w.stylize(""+N,"boolean");if(A(N))return w.stylize("null","null")}function d(w){return"["+Error.prototype.toString.call(w)+"]"}function p(w,N,L,X,te){for(var Z=[],T=0,J=N.length;T<J;++T)K(N,String(T))?Z.push(h(w,N,L,X,String(T),!0)):Z.push("");return te.forEach(function(Y){Y.match(/^\d+$/)||Z.push(h(w,N,L,X,Y,!0))}),Z}function h(w,N,L,X,te,Z){var T,J,Y;if(Y=Object.getOwnPropertyDescriptor(N,te)||{value:N[te]},Y.get?Y.set?J=w.stylize("[Getter/Setter]","special"):J=w.stylize("[Getter]","special"):Y.set&&(J=w.stylize("[Setter]","special")),K(X,te)||(T="["+te+"]"),J||(w.seen.indexOf(Y.value)<0?(A(L)?J=f(w,Y.value,null):J=f(w,Y.value,L-1),J.indexOf(`
16
16
  `)>-1&&(Z?J=J.split(`
17
17
  `).map(function(ee){return" "+ee}).join(`
18
18
  `).slice(2):J=`
19
19
  `+J.split(`
20
20
  `).map(function(ee){return" "+ee}).join(`
21
- `))):J=w.stylize("[Circular]","special")),x(T)){if(Z&&te.match(/^\d+$/))return J;T=JSON.stringify(""+te),T.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.slice(1,-1),T=w.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=w.stylize(T,"string"))}return T+": "+J}function y(w,O,L){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
- `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?L[0]+(O===""?"":O+`
21
+ `))):J=w.stylize("[Circular]","special")),x(T)){if(Z&&te.match(/^\d+$/))return J;T=JSON.stringify(""+te),T.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.slice(1,-1),T=w.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=w.stylize(T,"string"))}return T+": "+J}function y(w,N,L){var X=w.reduce(function(te,Z){return Z.indexOf(`
22
+ `)>=0,te+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?L[0]+(N===""?"":N+`
23
23
  `)+" "+w.join(`,
24
- `)+" "+L[1]:L[0]+O+" "+w.join(", ")+" "+L[1]}e.types=Pf();function g(w){return Array.isArray(w)}e.isArray=g;function v(w){return typeof w=="boolean"}e.isBoolean=v;function A(w){return w===null}e.isNull=A;function _(w){return w==null}e.isNullOrUndefined=_;function S(w){return typeof w=="number"}e.isNumber=S;function C(w){return typeof w=="string"}e.isString=C;function j(w){return typeof w=="symbol"}e.isSymbol=j;function x(w){return w===void 0}e.isUndefined=x;function P(w){return D(w)&&E(w)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function D(w){return typeof w=="object"&&w!==null}e.isObject=D;function R(w){return D(w)&&E(w)==="[object Date]"}e.isDate=R,e.types.isDate=R;function I(w){return D(w)&&(E(w)==="[object Error]"||w instanceof Error)}e.isError=I,e.types.isNativeError=I;function M(w){return typeof w=="function"}e.isFunction=M;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=If();function E(w){return Object.prototype.toString.call(w)}function q(w){return w<10?"0"+w.toString(10):w.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,O=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],O].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Nf(),e._extend=function(w,O){if(!O||!D(O))return w;for(var L=Object.keys(O),X=L.length;X--;)w[L[X]]=O[L[X]];return w};function K(w,O){return Object.prototype.hasOwnProperty.call(w,O)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&O[W]){var L=O[W];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),T=[],J=0;J<arguments.length;J++)T.push(arguments[J]);T.push(function(Y,ee){Y?te(Y):X(ee)});try{O.apply(this,T)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(L,Object.getPrototypeOf(O)),W&&Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(O))},e.promisify.custom=W;function z(w,O){if(!w){var L=new Error("Promise was rejected with a falsy value");L.reason=w,w=L}return O(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function O(){for(var L=[],X=0;X<arguments.length;X++)L.push(arguments[X]);var te=L.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,T=function(){return te.apply(Z,arguments)};w.apply(this,L).then(function(J){process.nextTick(T.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,T))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(w)),Object.defineProperties(O,t(w)),O}e.callbackify=ne}(Or)),Or}var xa;function Tf(){return xa||(xa=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),m=(d,p={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,p);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,p));return p&&p.expand===!0&&p.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,p={})=>f(d,p),m.stringify=(d,p={})=>c(typeof d=="string"?m.parse(d,p):d,p),m.compile=(d,p={})=>(typeof d=="string"&&(d=m.parse(d,p)),l(d,p)),m.expand=(d,p={})=>{typeof d=="string"&&(d=m.parse(d,p));let h=u(d,p);return p.noempty===!0&&(h=h.filter(Boolean)),p.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,p={})=>d===""||d.length<3?[d]:p.expand!==!0?m.compile(d,p):m.expand(d,p),o.exports=m},179:(o,i,a)=>{const c=a(783),l=a(617),u=(f,m={})=>{let d=(p,h={})=>{let y=l.isInvalidBrace(h),g=p.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,A=m.escapeInvalid===!0?"\\":"",_="";if(p.isOpen===!0||p.isClose===!0)return A+p.value;if(p.type==="open")return v?A+p.value:"(";if(p.type==="close")return v?A+p.value:")";if(p.type==="comma")return p.prev.type==="comma"?"":v?p.value:"|";if(p.value)return p.value;if(p.nodes&&p.ranges>0){let S=l.reduce(p.nodes),C=c(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(p.nodes)for(let S of p.nodes)_+=d(S,p);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="",p="",h=!1)=>{let y=[];if(d=[].concat(d),p=[].concat(p),!p.length)return d;if(!d.length)return h?u.flatten(p).map(g=>`{${g}}`):p;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(f(v,p,h));else for(let v of p)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?f(g,v,h):g+v);return u.flatten(y)},m=(d,p={})=>{let h=p.rangeLimit===void 0?1e3:p.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,p)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,p.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=c(...x,p);P.length===0&&(P=l(g,p)),_.push(f(_.pop(),P)),g.nodes=[];return}let S=u.encloseBrace(g),C=g.queue,j=g;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,C=j.queue;for(let x=0;x<g.nodes.length;x++){let P=g.nodes[x];if(P.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(P.type==="close"){_.push(f(_.pop(),C,S));continue}if(P.value&&P.type!=="open"){C.push(f(C.pop(),P.value));continue}P.nodes&&y(P,g)}return C};return u.flatten(y(d))};o.exports=m},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,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:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=a(457),x=(P,D={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let R=D||{},I=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(P.length>I)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${I})`);let M={type:"root",input:P,nodes:[]},$=[M],E=M,q=M,F=0,U=P.length,K=0,W=0,z;const ne=()=>P[K++],w=O=>{if(O.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&O.type==="text"){q.value+=O.value;return}return E.nodes.push(O),O.parent=E,O.prev=q,q=O,O};for(w({type:"bos"});K<U;)if(E=$[$.length-1],z=ne(),!(z===j||z===C)){if(z===u){w({type:"text",value:(D.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let O;for(;K<U&&(O=ne());){if(z+=O,O===v){F++;continue}if(O===u){z+=ne();continue}if(O===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===p){E=w({type:"paren",nodes:[]}),$.push(E),w({type:"text",value:z});continue}if(z===h){if(E.type!=="paren"){w({type:"text",value:z});continue}E=$.pop(),w({type:"text",value:z}),E=$[$.length-1];continue}if(z===_||z===S||z===f){let O=z,L;for(D.keepQuotes!==!0&&(z="");K<U&&(L=ne());){if(L===u){z+=L+ne();continue}if(L===O){D.keepQuotes===!0&&(z+=L);break}z+=L}w({type:"text",value:z});continue}if(z===y){W++;let L={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||E.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};E=w(L),$.push(E),w({type:"open",value:z});continue}if(z===g){if(E.type!=="brace"){w({type:"text",value:z});continue}let O="close";E=$.pop(),E.close=!0,w({type:O,value:z}),W--,E=$[$.length-1];continue}if(z===m&&W>0){if(E.ranges>0){E.ranges=0;let O=E.nodes.shift();E.nodes=[O,{type:"text",value:c(E)}]}w({type:"comma",value:z}),E.commas++;continue}if(z===d&&W>0&&E.commas===0){let O=E.nodes;if(W===0||O.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(E.range=[],q.value+=z,q.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,q.type="text";continue}E.ranges++,E.args=[];continue}if(q.type==="range"){O.pop();let L=O[O.length-1];L.value+=q.value+z,q=L,E.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(E=$.pop(),E.type!=="root"){E.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let O=$[$.length-1],L=O.nodes.indexOf(E);O.nodes.splice(L,1,...E.nodes)}while($.length>0);return w({type:"eos"}),M};o.exports=x},137:(o,i,a)=>{const c=a(617);o.exports=(l,u={})=>{let f=(m,d={})=>{let p=u.escapeInvalid&&c.isInvalidBrace(d),h=m.invalid===!0&&u.escapeInvalid===!0,y="";if(m.value)return(p||h)&&c.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.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 m=u[f];Array.isArray(m)?l(m):m!==void 0&&c.push(m)}return c};return l(a),c}},783:(o,i,a)=>{/*!
24
+ `)+" "+L[1]:L[0]+N+" "+w.join(", ")+" "+L[1]}e.types=Pf();function g(w){return Array.isArray(w)}e.isArray=g;function v(w){return typeof w=="boolean"}e.isBoolean=v;function A(w){return w===null}e.isNull=A;function _(w){return w==null}e.isNullOrUndefined=_;function S(w){return typeof w=="number"}e.isNumber=S;function C(w){return typeof w=="string"}e.isString=C;function j(w){return typeof w=="symbol"}e.isSymbol=j;function x(w){return w===void 0}e.isUndefined=x;function P(w){return D(w)&&E(w)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function D(w){return typeof w=="object"&&w!==null}e.isObject=D;function R(w){return D(w)&&E(w)==="[object Date]"}e.isDate=R,e.types.isDate=R;function I(w){return D(w)&&(E(w)==="[object Error]"||w instanceof Error)}e.isError=I,e.types.isNativeError=I;function M(w){return typeof w=="function"}e.isFunction=M;function $(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=$,e.isBuffer=If();function E(w){return Object.prototype.toString.call(w)}function q(w){return w<10?"0"+w.toString(10):w.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var w=new Date,N=[q(w.getHours()),q(w.getMinutes()),q(w.getSeconds())].join(":");return[w.getDate(),F[w.getMonth()],N].join(" ")}e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=Of(),e._extend=function(w,N){if(!N||!D(N))return w;for(var L=Object.keys(N),X=L.length;X--;)w[L[X]]=N[L[X]];return w};function K(w,N){return Object.prototype.hasOwnProperty.call(w,N)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&N[W]){var L=N[W];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var X,te,Z=new Promise(function(Y,ee){X=Y,te=ee}),T=[],J=0;J<arguments.length;J++)T.push(arguments[J]);T.push(function(Y,ee){Y?te(Y):X(ee)});try{N.apply(this,T)}catch(Y){te(Y)}return Z}return Object.setPrototypeOf(L,Object.getPrototypeOf(N)),W&&Object.defineProperty(L,W,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(N))},e.promisify.custom=W;function z(w,N){if(!w){var L=new Error("Promise was rejected with a falsy value");L.reason=w,w=L}return N(w)}function ne(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var L=[],X=0;X<arguments.length;X++)L.push(arguments[X]);var te=L.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var Z=this,T=function(){return te.apply(Z,arguments)};w.apply(this,L).then(function(J){process.nextTick(T.bind(null,null,J))},function(J){process.nextTick(z.bind(null,J,T))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(w)),Object.defineProperties(N,t(w)),N}e.callbackify=ne}(Nr)),Nr}var xa;function Tf(){return xa||(xa=1,(()=>{var e={333:(o,i,a)=>{const c=a(137),l=a(179),u=a(13),f=a(719),m=(d,p={})=>{let h=[];if(Array.isArray(d))for(let y of d){let g=m.create(y,p);Array.isArray(g)?h.push(...g):h.push(g)}else h=[].concat(m.create(d,p));return p&&p.expand===!0&&p.nodupes===!0&&(h=[...new Set(h)]),h};m.parse=(d,p={})=>f(d,p),m.stringify=(d,p={})=>c(typeof d=="string"?m.parse(d,p):d,p),m.compile=(d,p={})=>(typeof d=="string"&&(d=m.parse(d,p)),l(d,p)),m.expand=(d,p={})=>{typeof d=="string"&&(d=m.parse(d,p));let h=u(d,p);return p.noempty===!0&&(h=h.filter(Boolean)),p.nodupes===!0&&(h=[...new Set(h)]),h},m.create=(d,p={})=>d===""||d.length<3?[d]:p.expand!==!0?m.compile(d,p):m.expand(d,p),o.exports=m},179:(o,i,a)=>{const c=a(783),l=a(617),u=(f,m={})=>{let d=(p,h={})=>{let y=l.isInvalidBrace(h),g=p.invalid===!0&&m.escapeInvalid===!0,v=y===!0||g===!0,A=m.escapeInvalid===!0?"\\":"",_="";if(p.isOpen===!0||p.isClose===!0)return A+p.value;if(p.type==="open")return v?A+p.value:"(";if(p.type==="close")return v?A+p.value:")";if(p.type==="comma")return p.prev.type==="comma"?"":v?p.value:"|";if(p.value)return p.value;if(p.nodes&&p.ranges>0){let S=l.reduce(p.nodes),C=c(...S,{...m,wrap:!1,toRegex:!0});if(C.length!==0)return S.length>1&&C.length>1?`(${C})`:C}if(p.nodes)for(let S of p.nodes)_+=d(S,p);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="",p="",h=!1)=>{let y=[];if(d=[].concat(d),p=[].concat(p),!p.length)return d;if(!d.length)return h?u.flatten(p).map(g=>`{${g}}`):p;for(let g of d)if(Array.isArray(g))for(let v of g)y.push(f(v,p,h));else for(let v of p)h===!0&&typeof v=="string"&&(v=`{${v}}`),y.push(Array.isArray(v)?f(g,v,h):g+v);return u.flatten(y)},m=(d,p={})=>{let h=p.rangeLimit===void 0?1e3:p.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,p)));return}if(g.type==="brace"&&g.invalid!==!0&&g.nodes.length===2){_.push(f(_.pop(),["{}"]));return}if(g.nodes&&g.ranges>0){let x=u.reduce(g.nodes);if(u.exceedsLimit(...x,p.step,h))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=c(...x,p);P.length===0&&(P=l(g,p)),_.push(f(_.pop(),P)),g.nodes=[];return}let S=u.encloseBrace(g),C=g.queue,j=g;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,C=j.queue;for(let x=0;x<g.nodes.length;x++){let P=g.nodes[x];if(P.type==="comma"&&g.type==="brace"){x===1&&C.push(""),C.push("");continue}if(P.type==="close"){_.push(f(_.pop(),C,S));continue}if(P.value&&P.type!=="open"){C.push(f(C.pop(),P.value));continue}P.nodes&&y(P,g)}return C};return u.flatten(y(d))};o.exports=m},719:(o,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,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:S,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:j}=a(457),x=(P,D={})=>{if(typeof P!="string")throw new TypeError("Expected a string");let R=D||{},I=typeof R.maxLength=="number"?Math.min(l,R.maxLength):l;if(P.length>I)throw new SyntaxError(`Input length (${P.length}), exceeds max characters (${I})`);let M={type:"root",input:P,nodes:[]},$=[M],E=M,q=M,F=0,U=P.length,K=0,W=0,z;const ne=()=>P[K++],w=N=>{if(N.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&N.type==="text"){q.value+=N.value;return}return E.nodes.push(N),N.parent=E,N.prev=q,q=N,N};for(w({type:"bos"});K<U;)if(E=$[$.length-1],z=ne(),!(z===j||z===C)){if(z===u){w({type:"text",value:(D.keepEscaping?z:"")+ne()});continue}if(z===A){w({type:"text",value:"\\"+z});continue}if(z===v){F++;let N;for(;K<U&&(N=ne());){if(z+=N,N===v){F++;continue}if(N===u){z+=ne();continue}if(N===A&&(F--,F===0))break}w({type:"text",value:z});continue}if(z===p){E=w({type:"paren",nodes:[]}),$.push(E),w({type:"text",value:z});continue}if(z===h){if(E.type!=="paren"){w({type:"text",value:z});continue}E=$.pop(),w({type:"text",value:z}),E=$[$.length-1];continue}if(z===_||z===S||z===f){let N=z,L;for(D.keepQuotes!==!0&&(z="");K<U&&(L=ne());){if(L===u){z+=L+ne();continue}if(L===N){D.keepQuotes===!0&&(z+=L);break}z+=L}w({type:"text",value:z});continue}if(z===y){W++;let L={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||E.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};E=w(L),$.push(E),w({type:"open",value:z});continue}if(z===g){if(E.type!=="brace"){w({type:"text",value:z});continue}let N="close";E=$.pop(),E.close=!0,w({type:N,value:z}),W--,E=$[$.length-1];continue}if(z===m&&W>0){if(E.ranges>0){E.ranges=0;let N=E.nodes.shift();E.nodes=[N,{type:"text",value:c(E)}]}w({type:"comma",value:z}),E.commas++;continue}if(z===d&&W>0&&E.commas===0){let N=E.nodes;if(W===0||N.length===0){w({type:"text",value:z});continue}if(q.type==="dot"){if(E.range=[],q.value+=z,q.type="range",E.nodes.length!==3&&E.nodes.length!==5){E.invalid=!0,E.ranges=0,q.type="text";continue}E.ranges++,E.args=[];continue}if(q.type==="range"){N.pop();let L=N[N.length-1];L.value+=q.value+z,q=L,E.ranges--;continue}w({type:"dot",value:z});continue}w({type:"text",value:z})}do if(E=$.pop(),E.type!=="root"){E.nodes.forEach(X=>{X.nodes||(X.type==="open"&&(X.isOpen=!0),X.type==="close"&&(X.isClose=!0),X.nodes||(X.type="text"),X.invalid=!0)});let N=$[$.length-1],L=N.nodes.indexOf(E);N.nodes.splice(L,1,...E.nodes)}while($.length>0);return w({type:"eos"}),M};o.exports=x},137:(o,i,a)=>{const c=a(617);o.exports=(l,u={})=>{let f=(m,d={})=>{let p=u.escapeInvalid&&c.isInvalidBrace(d),h=m.invalid===!0&&u.escapeInvalid===!0,y="";if(m.value)return(p||h)&&c.isOpenOrClose(m)?"\\"+m.value:m.value;if(m.value)return m.value;if(m.nodes)for(let g of m.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 m=u[f];Array.isArray(m)?l(m):m!==void 0&&c.push(m)}return c};return l(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=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),f=R=>I=>R===!0?Number(I):String(I),m=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),p=R=>{let I=`${R}`,M=-1;if(I[0]==="-"&&(I=I.slice(1)),I==="0")return!1;for(;I[++M]==="0";);return M>0},h=(R,I,M)=>typeof R=="string"||typeof I=="string"?!0:M.stringify===!0,y=(R,I,M)=>{if(I>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?I-1:I,"0")}return M===!1?String(R):R},g=(R,I)=>{let M=R[0]==="-"?"-":"";for(M&&(R=R.slice(1),I--);R.length<I;)R="0"+R;return M?"-"+R:R},v=(R,I)=>{R.negatives.sort((F,U)=>F<U?-1:F>U?1:0),R.positives.sort((F,U)=>F<U?-1:F>U?1:0);let M=I.capture?"":"?:",$="",E="",q;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(E=`-(${M}${R.negatives.join("|")})`),$&&E?q=`${$}|${E}`:q=$||E,I.wrap?`(${M}${q})`:q},A=(R,I,M,$)=>{if(M)return l(R,I,{wrap:!1,...$});let E=String.fromCharCode(R);if(R===I)return E;let q=String.fromCharCode(I);return`[${E}-${q}]`},_=(R,I,M)=>{if(Array.isArray(R)){let $=M.wrap===!0,E=M.capture?"":"?:";return $?`(${E}${R.join("|")})`:R.join("|")}return l(R,I,M)},S=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),C=(R,I,M)=>{if(M.strictRanges===!0)throw S([R,I]);return[]},j=(R,I)=>{if(I.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},x=(R,I,M=1,$={})=>{let E=Number(R),q=Number(I);if(!Number.isInteger(E)||!Number.isInteger(q)){if($.strictRanges===!0)throw S([R,I]);return[]}E===0&&(E=0),q===0&&(q=0);let F=E>q,U=String(R),K=String(I),W=String(M);M=Math.max(Math.abs(M),1);let z=p(U)||p(K)||p(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(R,I,$)===!1,O=$.transform||f(w);if($.toRegex&&M===1)return A(g(R,ne),g(I,ne),!0,$);let L={negatives:[],positives:[]},X=T=>L[T<0?"negatives":"positives"].push(Math.abs(T)),te=[],Z=0;for(;F?E>=q:E<=q;)$.toRegex===!0&&M>1?X(E):te.push(y(O(E,Z),ne,w)),E=F?E-M:E+M,Z++;return $.toRegex===!0?M>1?v(L,$):_(te,null,{wrap:!1,...$}):te},P=(R,I,M=1,$={})=>{if(!d(R)&&R.length>1||!d(I)&&I.length>1)return C(R,I,$);let E=$.transform||(w=>String.fromCharCode(w)),q=`${R}`.charCodeAt(0),F=`${I}`.charCodeAt(0),U=q>F,K=Math.min(q,F),W=Math.max(q,F);if($.toRegex&&M===1)return A(K,W,!1,$);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(E(q,ne)),q=U?q-M:q+M,ne++;return $.toRegex===!0?_(z,null,{wrap:!1,options:$}):z},D=(R,I,M,$={})=>{if(I==null&&m(R))return[R];if(!m(R)||!m(I))return C(R,I,$);if(typeof M=="function")return D(R,I,1,{transform:M});if(u(M))return D(R,I,0,M);let E={...$};return E.capture===!0&&(E.wrap=!0),M=M||E.step||1,d(M)?d(R)&&d(I)?x(R,I,M,E):P(R,I,Math.max(Math.abs(M),1),E):M!=null&&!u(M)?j(M,E):D(R,I,1,M)};o.exports=D},357:o=>{/*!
30
+ */const c=a(837),l=a(492),u=R=>R!==null&&typeof R=="object"&&!Array.isArray(R),f=R=>I=>R===!0?Number(I):String(I),m=R=>typeof R=="number"||typeof R=="string"&&R!=="",d=R=>Number.isInteger(+R),p=R=>{let I=`${R}`,M=-1;if(I[0]==="-"&&(I=I.slice(1)),I==="0")return!1;for(;I[++M]==="0";);return M>0},h=(R,I,M)=>typeof R=="string"||typeof I=="string"?!0:M.stringify===!0,y=(R,I,M)=>{if(I>0){let $=R[0]==="-"?"-":"";$&&(R=R.slice(1)),R=$+R.padStart($?I-1:I,"0")}return M===!1?String(R):R},g=(R,I)=>{let M=R[0]==="-"?"-":"";for(M&&(R=R.slice(1),I--);R.length<I;)R="0"+R;return M?"-"+R:R},v=(R,I)=>{R.negatives.sort((F,U)=>F<U?-1:F>U?1:0),R.positives.sort((F,U)=>F<U?-1:F>U?1:0);let M=I.capture?"":"?:",$="",E="",q;return R.positives.length&&($=R.positives.join("|")),R.negatives.length&&(E=`-(${M}${R.negatives.join("|")})`),$&&E?q=`${$}|${E}`:q=$||E,I.wrap?`(${M}${q})`:q},A=(R,I,M,$)=>{if(M)return l(R,I,{wrap:!1,...$});let E=String.fromCharCode(R);if(R===I)return E;let q=String.fromCharCode(I);return`[${E}-${q}]`},_=(R,I,M)=>{if(Array.isArray(R)){let $=M.wrap===!0,E=M.capture?"":"?:";return $?`(${E}${R.join("|")})`:R.join("|")}return l(R,I,M)},S=(...R)=>new RangeError("Invalid range arguments: "+c.inspect(...R)),C=(R,I,M)=>{if(M.strictRanges===!0)throw S([R,I]);return[]},j=(R,I)=>{if(I.strictRanges===!0)throw new TypeError(`Expected step "${R}" to be a number`);return[]},x=(R,I,M=1,$={})=>{let E=Number(R),q=Number(I);if(!Number.isInteger(E)||!Number.isInteger(q)){if($.strictRanges===!0)throw S([R,I]);return[]}E===0&&(E=0),q===0&&(q=0);let F=E>q,U=String(R),K=String(I),W=String(M);M=Math.max(Math.abs(M),1);let z=p(U)||p(K)||p(W),ne=z?Math.max(U.length,K.length,W.length):0,w=z===!1&&h(R,I,$)===!1,N=$.transform||f(w);if($.toRegex&&M===1)return A(g(R,ne),g(I,ne),!0,$);let L={negatives:[],positives:[]},X=T=>L[T<0?"negatives":"positives"].push(Math.abs(T)),te=[],Z=0;for(;F?E>=q:E<=q;)$.toRegex===!0&&M>1?X(E):te.push(y(N(E,Z),ne,w)),E=F?E-M:E+M,Z++;return $.toRegex===!0?M>1?v(L,$):_(te,null,{wrap:!1,...$}):te},P=(R,I,M=1,$={})=>{if(!d(R)&&R.length>1||!d(I)&&I.length>1)return C(R,I,$);let E=$.transform||(w=>String.fromCharCode(w)),q=`${R}`.charCodeAt(0),F=`${I}`.charCodeAt(0),U=q>F,K=Math.min(q,F),W=Math.max(q,F);if($.toRegex&&M===1)return A(K,W,!1,$);let z=[],ne=0;for(;U?q>=F:q<=F;)z.push(E(q,ne)),q=U?q-M:q+M,ne++;return $.toRegex===!0?_(z,null,{wrap:!1,options:$}):z},D=(R,I,M,$={})=>{if(I==null&&m(R))return[R];if(!m(R)||!m(I))return C(R,I,$);if(typeof M=="function")return D(R,I,1,{transform:M});if(u(M))return D(R,I,0,M);let E={...$};return E.capture===!0&&(E.wrap=!0),M=M||E.step||1,d(M)?d(R)&&d(I)?x(R,I,M,E):P(R,I,Math.max(Math.abs(M),1),E):M!=null&&!u(M)?j(M,E):D(R,I,1,M)};o.exports=D},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),m=p=>p===""||p==="./",d=(p,h,y)=>{h=[].concat(h),p=[].concat(p);let g=new Set,v=new Set,A=new Set,_=0,S=x=>{A.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let P=u(String(h[x]),{...y,onResult:S},!0),D=P.state.negated||P.state.negatedExtglob;D&&_++;for(let R of p){let I=P(R,!0);(D?!I.isMatch:I.isMatch)&&(D?g.add(I.output):(g.delete(I.output),v.add(I.output)))}}let j=(_===h.length?[...A]:[...v]).filter(x=>!g.has(x));if(y&&j.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return j};d.match=d,d.matcher=(p,h)=>u(p,h),d.isMatch=(p,h,y)=>u(h,y)(p),d.any=d.isMatch,d.not=(p,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(p,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(h))return h.some(g=>d.contains(p,g,y));if(typeof h=="string"){if(m(p)||m(h))return!1;if(p.includes(h)||p.startsWith("./")&&p.slice(2).includes(h))return!0}return d.isMatch(p,h,{...y,contains:!0})},d.matchKeys=(p,h,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(p),h,y),v={};for(let A of g)v[A]=p[A];return v},d.some=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(h).every(g=>u(g,y)(p))},d.capture=(p,h,y)=>{let g=f.isWindows(y),A=u.makeRe(String(p),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,h)=>{let y=[];for(let g of[].concat(p||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,h)},d.braceExpand=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...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="\\.",m="\\+",d="\\?",p="\\/",h="(?=.)",y="[^/]",g=`(?:${p}|$)`,v=`(?:^|${p})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,S=`(?!${v}${A})`,C=`(?!${f}{0,1}${g})`,j=`(?!${A})`,x=`[^.${p}]`,P=`${y}*?`,D={DOT_LITERAL:f,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:j,QMARK_NO_DOT:x,STAR:P,START_ANCHOR:v},R={...D,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}]|$)`},I={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:I,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(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?R:D}}},754:(o,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=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(C=>l.escapeRegex(C)).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=p[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const j={type:"bos",value:"",output:_.prepend||""},x=[j],P=_.capture?"":"?:",D=l.isWindows(A),R=c.globChars(D),I=c.extglobChars(R),{DOT_LITERAL:M,PLUS_LITERAL:$,SLASH_LITERAL:E,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:O}=R,L=Q=>`(${P}(?:(?!${O}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?L(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const T={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};v=l.removePrefix(v,T),C=v.length;const J=[],Y=[],ee=[];let k=j,N;const re=()=>T.index===C-1,ae=T.peek=(Q=1)=>v[T.index+Q],ce=T.advance=()=>v[++T.index],le=()=>v.slice(T.index+1),se=(Q="",oe=0)=>{T.consumed+=Q,T.index+=oe},H=Q=>{T.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),T.start++,Q++;return Q%2===0?!1:(T.negated=!0,T.start++,!0)},ie=Q=>{T[Q]++,ee.push(Q)},me=Q=>{T[Q]--,ee.pop()},G=Q=>{if(k.type==="globstar"){const oe=T.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&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=Z,T.output+=k.output)}if(J.length&&Q.type!=="paren"&&!I[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),k&&k.type==="text"&&Q.type==="text"){k.value+=Q.value,k.output=(k.output||"")+Q.value;return}Q.prev=k,x.push(Q),k=Q},ue=(Q,oe)=>{const V={...I[oe],conditions:1,inner:""};V.prev=k,V.parens=T.parens,V.output=T.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:T.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=L(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(T.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:N,output:oe}),me("parens")};if(_.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(v)){let Q=!1,oe=v.replace(d,(V,de,ye,Ae,be,Kt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Kt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?M.repeat(ye.length):Ae==="*"?de?de+Ae+(be?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?(T.output=v,T):(T.output=l.wrapOutput(oe,T,A),T)}for(;!re();){if(N=ce(),N==="\0")continue;if(N==="\\"){const V=ae();if(V==="/"&&_.bash!==!0||V==="."||V===";")continue;if(!V){N+="\\",G({type:"text",value:N});continue}const de=/^\\+/.exec(le());let ye=0;if(de&&de[0].length>2&&(ye=de[0].length,T.index+=ye,ye%2!==0&&(N+="\\")),_.unescape===!0?N=ce()||"":N+=ce()||"",T.brackets===0){G({type:"text",value:N});continue}}if(T.brackets>0&&(N!=="]"||k.value==="["||k.value==="[^")){if(_.posix!==!1&&N===":"){const V=k.value.slice(1);if(V.includes("[")&&(k.posix=!0,V.includes(":"))){const de=k.value.lastIndexOf("["),ye=k.value.slice(0,de),Ae=k.value.slice(de+2),be=f[Ae];if(be){k.value=ye+be,T.backtrack=!0,ce(),!j.output&&x.indexOf(k)===1&&(j.output=q);continue}}}(N==="["&&ae()!==":"||N==="-"&&ae()==="]")&&(N=`\\${N}`),N==="]"&&(k.value==="["||k.value==="[^")&&(N=`\\${N}`),_.posix===!0&&N==="!"&&k.value==="["&&(N="^"),k.value+=N,H({value:N});continue}if(T.quotes===1&&N!=='"'){N=l.escapeRegex(N),k.value+=N,H({value:N});continue}if(N==='"'){T.quotes=T.quotes===1?0:1,_.keepQuotes===!0&&G({type:"text",value:N});continue}if(N==="("){ie("parens"),G({type:"paren",value:N});continue}if(N===")"){if(T.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&T.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:N,output:T.parens?")":"\\)"}),me("parens");continue}if(N==="["){if(_.nobracket===!0||!le().includes("]")){if(_.nobracket!==!0&&_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));N=`\\${N}`}else ie("brackets");G({type:"bracket",value:N});continue}if(N==="]"){if(_.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){G({type:"text",value:N,output:`\\${N}`});continue}if(T.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:N,output:`\\${N}`});continue}me("brackets");const V=k.value.slice(1);if(k.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(N=`/${N}`),k.value+=N,H({value:N}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),_.literalBrackets===!0){T.output+=de,k.value=de;continue}k.value=`(${P}${de}|${k.value})`,T.output+=k.value;continue}if(N==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:N,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};Y.push(V),G(V);continue}if(N==="}"){const V=Y[Y.length-1];if(_.nobrace===!0||!V){G({type:"text",value:N,output:N});continue}let de=")";if(V.dots===!0){const ye=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),T.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=T.output.slice(0,V.outputIndex),Ae=T.tokens.slice(V.tokensIndex);V.value=V.output="\\{",N=de="\\}",T.output=ye;for(const be of Ae)T.output+=be.output||be.value}G({type:"brace",value:N,output:de}),me("braces"),Y.pop();continue}if(N==="|"){J.length>0&&J[J.length-1].conditions++,G({type:"text",value:N});continue}if(N===","){let V=N;const de=Y[Y.length-1];de&&ee[ee.length-1]==="braces"&&(de.comma=!0,V="|"),G({type:"comma",value:N,output:V});continue}if(N==="/"){if(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",x.pop(),k=j;continue}G({type:"slash",value:N,output:E});continue}if(N==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=M);const V=Y[Y.length-1];k.type="dots",k.output+=N,k.value+=N,V.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){G({type:"text",value:N,output:M});continue}G({type:"dot",value:N,output:M});continue}if(N==="?"){if(!(k&&k.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",N);continue}if(k&&k.type==="paren"){const de=ae();let ye=N;if(de==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${N}`),G({type:"text",value:N,output:ye});continue}if(_.dot!==!0&&(k.type==="slash"||k.type==="bos")){G({type:"qmark",value:N,output:ne});continue}G({type:"qmark",value:N,output:z});continue}if(N==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",N);continue}if(_.nonegate!==!0&&T.index===0){he();continue}}if(N==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",N);continue}if(k&&k.value==="("||_.regex===!1){G({type:"plus",value:N,output:$});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){G({type:"plus",value:N});continue}G({type:"plus",value:$});continue}if(N==="@"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){G({type:"at",extglob:!0,value:N,output:""});continue}G({type:"text",value:N});continue}if(N!=="*"){(N==="$"||N==="^")&&(N=`\\${N}`);const V=m.exec(le());V&&(N+=V[0],T.index+=V[0].length),G({type:"text",value:N});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=N,k.output=Z,T.backtrack=!0,T.globstar=!0,se(N);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",N);continue}if(k.type==="star"){if(_.noglobstar===!0){se(N);continue}const V=k.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:N,output:""});continue}const be=T.braces>0&&(V.type==="comma"||V.type==="brace"),Kt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Kt){G({type:"star",value:N,output:""});continue}for(;Q.slice(0,3)==="/**";){const _t=v[T.index+4];if(_t&&_t!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){k.type="globstar",k.value+=N,k.output=L(_),T.output=k.output,T.globstar=!0,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=L(_)+(_.strictSlashes?")":"|$)"),k.value+=N,T.globstar=!0,T.output+=V.output+k.output,se(N);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const _t=Q[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=`${L(_)}${E}|${E}${_t})`,k.value+=N,T.output+=V.output+k.output,T.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){k.type="globstar",k.value+=N,k.output=`(?:^|${E}|${L(_)}${E})`,T.output=k.output,T.globstar=!0,se(N+ce()),G({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=L(_),k.value+=N,T.output+=k.output,T.globstar=!0,se(N);continue}const oe={type:"star",value:N,output:Z};if(_.bash===!0){oe.output=".*?",(k.type==="bos"||k.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&_.regex===!0){oe.output=N,G(oe);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=K,k.output+=K):_.dot===!0?(T.output+=W,k.output+=W):(T.output+=X,k.output+=X),ae()!=="*"&&(T.output+=q,k.output+=q)),G(oe)}for(;T.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T.output=l.escapeLast(T.output,"["),me("brackets")}for(;T.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));T.output=l.escapeLast(T.output,"("),me("parens")}for(;T.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));T.output=l.escapeLast(T.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${E}?`}),T.backtrack===!0){T.output="";for(const Q of T.tokens)T.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(T.output+=Q.suffix)}return T};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=p[v]||v;const j=l.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:D,DOTS_SLASH:R,NO_DOT:I,NO_DOTS:M,NO_DOTS_SLASH:$,STAR:E,START_ANCHOR:q}=c.globChars(j),F=_.dot?M:I,U=_.dot?$:I,K=_.capture?"":"?:",W={negated:!1,prefix:""};let z=_.bash===!0?".*?":E;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?R:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${D}${z}`;case".*":return`${x}${D}${z}`;case"*.*":return`${F}${z}${x}${D}${z}`;case"*/*":return`${F}${z}${P}${D}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${P})?${U}${D}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${P})?${U}${z}${x}${D}${z}`;case"**/.*":return`(?:${F}${ne(_)}${P})?${x}${D}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},O=l.removePrefix(v,W);let L=w(O);return L&&_.strictSlashes!==!0&&(L+=`${P}?`),L},o.exports=g},683:(o,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),p=(h,y,g=!1)=>{if(Array.isArray(h)){const P=h.map(R=>p(R,y,g));return R=>{for(const I of P){const M=I(R);if(M)return M}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),S=v?p.compileRe(h,y):p.makeRe(h,y,!1,!0),C=S.state;delete S.state;let j=()=>!1;if(A.ignore){const P={...y,ignore:null,onMatch:null,onResult:null};j=p(A.ignore,P,g)}const x=(P,D=!1)=>{const{isMatch:R,match:I,output:M}=p.test(P,S,y,{glob:h,posix:_}),$={glob:h,state:C,regex:S,posix:_,input:P,output:M,match:I,isMatch:R};return typeof A.onResult=="function"&&A.onResult($),R===!1?($.isMatch=!1,D?$:!1):j(P)?(typeof A.onIgnore=="function"&&A.onIgnore($),$.isMatch=!1,D?$:!1):(typeof A.onMatch=="function"&&A.onMatch($),D?$:!0)};return g&&(x.state=C),x};p.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||{},S=_.format||(A?f.toPosixSlashes:null);let C=h===v,j=C&&S?S(h):h;return C===!1&&(j=S?S(h):h,C=j===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=p.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},p.matchBase=(h,y,g,v=f.isWindows(g))=>(y instanceof RegExp?y:p.makeRe(y,g)).test(c.basename(h)),p.isMatch=(h,y,g)=>p(y,g)(h),p.parse=(h,y)=>Array.isArray(h)?h.map(g=>p.parse(g,y)):u(h,{...y,fastpaths:!1}),p.scan=(h,y)=>l(h,y),p.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",S=A.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const j=p.toRegex(C,y);return v===!0&&(j.state=h),j},p.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},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=u.fastpaths(h,y)),C===void 0?(_=u(h,y),_.prefix=S+(_.prefix||"")):_.output=C,p.compileRe(_,y,g,v)},p.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/$^/}},p.constants=m,o.exports=p},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,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:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:j}=a(356),x=R=>R===h||R===f,P=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},D=(R,I)=>{const M=I||{},$=R.length-1,E=M.parts===!0||M.scanToEnd===!0,q=[],F=[],U=[];let K=R,W=-1,z=0,ne=0,w=!1,O=!1,L=!1,X=!1,te=!1,Z=!1,T=!1,J=!1,Y=!1,ee=0,k,N,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(k=N,K.charCodeAt(++W));for(;W<$;){N=le();let me;if(N===f){T=re.backslashes=!0,N=le(),N===y&&(Z=!0);continue}if(Z===!0||N===y){for(ee++;ae()!==!0&&(N=le());){if(N===f){T=re.backslashes=!0,le();continue}if(N===y){ee++;continue}if(Z!==!0&&N===d&&(N=le())===d){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(Z!==!0&&N===m){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(E===!0)continue;break}if(N===h){if(q.push(W),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(k===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(M.noext!==!0&&(N===A||N===u||N===l||N===_||N===p)===!0&&ce()===g){if(L=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;ae()!==!0&&(N=le());){if(N===f){T=re.backslashes=!0,N=le();continue}if(N===C){L=re.isGlob=!0,Y=!0;break}}continue}break}if(N===l){if(k===l&&(te=re.isGlobstar=!0),L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===_){if(L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(N===v){for(;ae()!==!0&&(me=le());){if(me===f){T=re.backslashes=!0,le();continue}if(me===j){O=re.isBracket=!0,L=re.isGlob=!0,Y=!0;break}}if(E===!0)continue;break}if(M.nonegate!==!0&&N===p&&W===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&N===g){if(L=re.isGlob=!0,E===!0){for(;ae()!==!0&&(N=le());){if(N===g){T=re.backslashes=!0,N=le();continue}if(N===C){Y=!0;break}}continue}break}if(L===!0){if(Y=!0,E===!0)continue;break}}M.noext===!0&&(X=!1,L=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&L===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):L===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),M.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&T===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:R,start:z,base:se,glob:he,isBrace:w,isBracket:O,isGlob:L,isExtglob:X,isGlobstar:te,negated:J};if(M.tokens===!0&&(ie.maxDepth=0,x(N)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:z,Ce=q[G],Q=R.slice(ue,Ce);M.tokens&&(G===0&&z!==0?(F[G].isPrefix=!0,F[G].value=H):F[G].value=Q,P(F[G]),ie.maxDepth+=F[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<R.length){const G=R.slice(me+1);U.push(G),M.tokens&&(F[F.length-1].value=G,P(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=D},513:(o,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),i.hasRegexChars=p=>m.test(p),i.isRegexChar=p=>p.length===1&&i.hasRegexChars(p),i.escapeRegex=p=>p.replace(d,"\\$1"),i.toPosixSlashes=p=>p.replace(u,"/"),i.removeBackslashes=p=>p.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},i.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",i.escapeLast=(p,h,y)=>{const g=p.lastIndexOf(h,y);return g===-1?p:p[g-1]==="\\"?i.escapeLast(p,h,g-1):`${p.slice(0,g)}\\${p.slice(g)}`},i.removePrefix=(p,h={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(p,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${p})${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),l=a(333),u=a(251),f=a(513),m=p=>p===""||p==="./",d=(p,h,y)=>{h=[].concat(h),p=[].concat(p);let g=new Set,v=new Set,A=new Set,_=0,S=x=>{A.add(x.output),y&&y.onResult&&y.onResult(x)};for(let x=0;x<h.length;x++){let P=u(String(h[x]),{...y,onResult:S},!0),D=P.state.negated||P.state.negatedExtglob;D&&_++;for(let R of p){let I=P(R,!0);(D?!I.isMatch:I.isMatch)&&(D?g.add(I.output):(g.delete(I.output),v.add(I.output)))}}let j=(_===h.length?[...A]:[...v]).filter(x=>!g.has(x));if(y&&j.length===0){if(y.failglob===!0)throw new Error(`No matches found for "${h.join(", ")}"`);if(y.nonull===!0||y.nullglob===!0)return y.unescape?h.map(x=>x.replace(/\\/g,"")):h}return j};d.match=d,d.matcher=(p,h)=>u(p,h),d.isMatch=(p,h,y)=>u(h,y)(p),d.any=d.isMatch,d.not=(p,h,y={})=>{h=[].concat(h).map(String);let g=new Set,v=[],_=d(p,h,{...y,onResult:S=>{y.onResult&&y.onResult(S),v.push(S.output)}});for(let S of v)_.includes(S)||g.add(S);return[...g]},d.contains=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);if(Array.isArray(h))return h.some(g=>d.contains(p,g,y));if(typeof h=="string"){if(m(p)||m(h))return!1;if(p.includes(h)||p.startsWith("./")&&p.slice(2).includes(h))return!0}return d.isMatch(p,h,{...y,contains:!0})},d.matchKeys=(p,h,y)=>{if(!f.isObject(p))throw new TypeError("Expected the first argument to be an object");let g=d(Object.keys(p),h,y),v={};for(let A of g)v[A]=p[A];return v},d.some=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(g.some(_=>A(_)))return!0}return!1},d.every=(p,h,y)=>{let g=[].concat(p);for(let v of[].concat(h)){let A=u(String(v),y);if(!g.every(_=>A(_)))return!1}return!0},d.all=(p,h,y)=>{if(typeof p!="string")throw new TypeError(`Expected a string: "${c.inspect(p)}"`);return[].concat(h).every(g=>u(g,y)(p))},d.capture=(p,h,y)=>{let g=f.isWindows(y),A=u.makeRe(String(p),{...y,capture:!0}).exec(g?f.toPosixSlashes(h):h);if(A)return A.slice(1).map(_=>_===void 0?"":_)},d.makeRe=(...p)=>u.makeRe(...p),d.scan=(...p)=>u.scan(...p),d.parse=(p,h)=>{let y=[];for(let g of[].concat(p||[]))for(let v of l(String(g),h))y.push(u.parse(v,h));return y},d.braces=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return h&&h.nobrace===!0||!/\{.*\}/.test(p)?[p]:l(p,h)},d.braceExpand=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");return d.braces(p,{...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="\\.",m="\\+",d="\\?",p="\\/",h="(?=.)",y="[^/]",g=`(?:${p}|$)`,v=`(?:^|${p})`,A=`${f}{1,2}${g}`,_=`(?!${f})`,S=`(?!${v}${A})`,C=`(?!${f}{0,1}${g})`,j=`(?!${A})`,x=`[^.${p}]`,P=`${y}*?`,D={DOT_LITERAL:f,PLUS_LITERAL:m,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:h,QMARK:y,END_ANCHOR:g,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:j,QMARK_NO_DOT:x,STAR:P,START_ANCHOR:v},R={...D,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}]|$)`},I={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:I,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(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?R:D}}},754:(o,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=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(C=>l.escapeRegex(C)).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=p[v]||v;const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u;let C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const j={type:"bos",value:"",output:_.prepend||""},x=[j],P=_.capture?"":"?:",D=l.isWindows(A),R=c.globChars(D),I=c.extglobChars(R),{DOT_LITERAL:M,PLUS_LITERAL:$,SLASH_LITERAL:E,ONE_CHAR:q,DOTS_SLASH:F,NO_DOT:U,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:ne,STAR:w,START_ANCHOR:N}=R,L=Q=>`(${P}(?:(?!${N}${Q.dot?F:M}).)*?)`,X=_.dot?"":U,te=_.dot?z:ne;let Z=_.bash===!0?L(_):w;_.capture&&(Z=`(${Z})`),typeof _.noext=="boolean"&&(_.noextglob=_.noext);const T={input:v,index:-1,start:0,dot:_.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};v=l.removePrefix(v,T),C=v.length;const J=[],Y=[],ee=[];let k=j,O;const re=()=>T.index===C-1,ae=T.peek=(Q=1)=>v[T.index+Q],ce=T.advance=()=>v[++T.index],le=()=>v.slice(T.index+1),se=(Q="",oe=0)=>{T.consumed+=Q,T.index+=oe},H=Q=>{T.output+=Q.output!=null?Q.output:Q.value,se(Q.value)},he=()=>{let Q=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ce(),T.start++,Q++;return Q%2===0?!1:(T.negated=!0,T.start++,!0)},ie=Q=>{T[Q]++,ee.push(Q)},me=Q=>{T[Q]--,ee.pop()},G=Q=>{if(k.type==="globstar"){const oe=T.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&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=Z,T.output+=k.output)}if(J.length&&Q.type!=="paren"&&!I[Q.value]&&(J[J.length-1].inner+=Q.value),(Q.value||Q.output)&&H(Q),k&&k.type==="text"&&Q.type==="text"){k.value+=Q.value,k.output=(k.output||"")+Q.value;return}Q.prev=k,x.push(Q),k=Q},ue=(Q,oe)=>{const V={...I[oe],conditions:1,inner:""};V.prev=k,V.parens=T.parens,V.output=T.output;const de=(_.capture?"(":"")+V.open;ie("parens"),G({type:Q,value:oe,output:T.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=L(_)),(V!==Z||re()||/^\)+$/.test(le()))&&(oe=Q.close=`)$))${V}`),Q.prev.type==="bos"&&(T.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,be,Kt)=>Ae==="\\"?(Q=!0,V):Ae==="?"?de?de+Ae+(be?z.repeat(be.length):""):Kt===0?te+(be?z.repeat(be.length):""):z.repeat(ye.length):Ae==="."?M.repeat(ye.length):Ae==="*"?de?de+Ae+(be?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?(T.output=v,T):(T.output=l.wrapOutput(oe,T,A),T)}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,T.index+=ye,ye%2!==0&&(O+="\\")),_.unescape===!0?O=ce()||"":O+=ce()||"",T.brackets===0){G({type:"text",value:O});continue}}if(T.brackets>0&&(O!=="]"||k.value==="["||k.value==="[^")){if(_.posix!==!1&&O===":"){const V=k.value.slice(1);if(V.includes("[")&&(k.posix=!0,V.includes(":"))){const de=k.value.lastIndexOf("["),ye=k.value.slice(0,de),Ae=k.value.slice(de+2),be=f[Ae];if(be){k.value=ye+be,T.backtrack=!0,ce(),!j.output&&x.indexOf(k)===1&&(j.output=q);continue}}}(O==="["&&ae()!==":"||O==="-"&&ae()==="]")&&(O=`\\${O}`),O==="]"&&(k.value==="["||k.value==="[^")&&(O=`\\${O}`),_.posix===!0&&O==="!"&&k.value==="["&&(O="^"),k.value+=O,H({value:O});continue}if(T.quotes===1&&O!=='"'){O=l.escapeRegex(O),k.value+=O,H({value:O});continue}if(O==='"'){T.quotes=T.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(T.parens===0&&_.strictBrackets===!0)throw new SyntaxError(y("opening","("));const V=J[J.length-1];if(V&&T.parens===V.parens+1){Ce(J.pop());continue}G({type:"paren",value:O,output:T.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||k&&k.type==="bracket"&&k.value.length===1){G({type:"text",value:O,output:`\\${O}`});continue}if(T.brackets===0){if(_.strictBrackets===!0)throw new SyntaxError(y("opening","["));G({type:"text",value:O,output:`\\${O}`});continue}me("brackets");const V=k.value.slice(1);if(k.posix!==!0&&V[0]==="^"&&!V.includes("/")&&(O=`/${O}`),k.value+=O,H({value:O}),_.literalBrackets===!1||l.hasRegexChars(V))continue;const de=l.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),_.literalBrackets===!0){T.output+=de,k.value=de;continue}k.value=`(${P}${de}|${k.value})`,T.output+=k.value;continue}if(O==="{"&&_.nobrace!==!0){ie("braces");const V={type:"brace",value:O,output:"(",outputIndex:T.output.length,tokensIndex:T.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=x.slice(),Ae=[];for(let be=ye.length-1;be>=0&&(x.pop(),ye[be].type!=="brace");be--)ye[be].type!=="dots"&&Ae.unshift(ye[be].value);de=h(Ae,_),T.backtrack=!0}if(V.comma!==!0&&V.dots!==!0){const ye=T.output.slice(0,V.outputIndex),Ae=T.tokens.slice(V.tokensIndex);V.value=V.output="\\{",O=de="\\}",T.output=ye;for(const be of Ae)T.output+=be.output||be.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(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",x.pop(),k=j;continue}G({type:"slash",value:O,output:E});continue}if(O==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=M);const V=Y[Y.length-1];k.type="dots",k.output+=O,k.value+=O,V.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){G({type:"text",value:O,output:M});continue}G({type:"dot",value:O,output:M});continue}if(O==="?"){if(!(k&&k.value==="(")&&_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("qmark",O);continue}if(k&&k.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");(k.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ye=`\\${O}`),G({type:"text",value:O,output:ye});continue}if(_.dot!==!0&&(k.type==="slash"||k.type==="bos")){G({type:"qmark",value:O,output:ne});continue}G({type:"qmark",value:O,output:z});continue}if(O==="!"){if(_.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ue("negate",O);continue}if(_.nonegate!==!0&&T.index===0){he();continue}}if(O==="+"){if(_.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ue("plus",O);continue}if(k&&k.value==="("||_.regex===!1){G({type:"plus",value:O,output:$});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){G({type:"plus",value:O});continue}G({type:"plus",value:$});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=m.exec(le());V&&(O+=V[0],T.index+=V[0].length),G({type:"text",value:O});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=O,k.output=Z,T.backtrack=!0,T.globstar=!0,se(O);continue}let Q=le();if(_.noextglob!==!0&&/^\([^?]/.test(Q)){ue("star",O);continue}if(k.type==="star"){if(_.noglobstar===!0){se(O);continue}const V=k.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 be=T.braces>0&&(V.type==="comma"||V.type==="brace"),Kt=J.length&&(V.type==="pipe"||V.type==="paren");if(!ye&&V.type!=="paren"&&!be&&!Kt){G({type:"star",value:O,output:""});continue}for(;Q.slice(0,3)==="/**";){const _t=v[T.index+4];if(_t&&_t!=="/")break;Q=Q.slice(3),se("/**",3)}if(V.type==="bos"&&re()){k.type="globstar",k.value+=O,k.output=L(_),T.output=k.output,T.globstar=!0,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&!Ae&&re()){T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=L(_)+(_.strictSlashes?")":"|$)"),k.value+=O,T.globstar=!0,T.output+=V.output+k.output,se(O);continue}if(V.type==="slash"&&V.prev.type!=="bos"&&Q[0]==="/"){const _t=Q[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(V.output+k.output).length),V.output=`(?:${V.output}`,k.type="globstar",k.output=`${L(_)}${E}|${E}${_t})`,k.value+=O,T.output+=V.output+k.output,T.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}if(V.type==="bos"&&Q[0]==="/"){k.type="globstar",k.value+=O,k.output=`(?:^|${E}|${L(_)}${E})`,T.output=k.output,T.globstar=!0,se(O+ce()),G({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=L(_),k.value+=O,T.output+=k.output,T.globstar=!0,se(O);continue}const oe={type:"star",value:O,output:Z};if(_.bash===!0){oe.output=".*?",(k.type==="bos"||k.type==="slash")&&(oe.output=X+oe.output),G(oe);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&_.regex===!0){oe.output=O,G(oe);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=K,k.output+=K):_.dot===!0?(T.output+=W,k.output+=W):(T.output+=X,k.output+=X),ae()!=="*"&&(T.output+=q,k.output+=q)),G(oe)}for(;T.brackets>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","]"));T.output=l.escapeLast(T.output,"["),me("brackets")}for(;T.parens>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing",")"));T.output=l.escapeLast(T.output,"("),me("parens")}for(;T.braces>0;){if(_.strictBrackets===!0)throw new SyntaxError(y("closing","}"));T.output=l.escapeLast(T.output,"{"),me("braces")}if(_.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${E}?`}),T.backtrack===!0){T.output="";for(const Q of T.tokens)T.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(T.output+=Q.suffix)}return T};g.fastpaths=(v,A)=>{const _={...A},S=typeof _.maxLength=="number"?Math.min(u,_.maxLength):u,C=v.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);v=p[v]||v;const j=l.isWindows(A),{DOT_LITERAL:x,SLASH_LITERAL:P,ONE_CHAR:D,DOTS_SLASH:R,NO_DOT:I,NO_DOTS:M,NO_DOTS_SLASH:$,STAR:E,START_ANCHOR:q}=c.globChars(j),F=_.dot?M:I,U=_.dot?$:I,K=_.capture?"":"?:",W={negated:!1,prefix:""};let z=_.bash===!0?".*?":E;_.capture&&(z=`(${z})`);const ne=X=>X.noglobstar===!0?z:`(${K}(?:(?!${q}${X.dot?R:x}).)*?)`,w=X=>{switch(X){case"*":return`${F}${D}${z}`;case".*":return`${x}${D}${z}`;case"*.*":return`${F}${z}${x}${D}${z}`;case"*/*":return`${F}${z}${P}${D}${U}${z}`;case"**":return F+ne(_);case"**/*":return`(?:${F}${ne(_)}${P})?${U}${D}${z}`;case"**/*.*":return`(?:${F}${ne(_)}${P})?${U}${z}${x}${D}${z}`;case"**/.*":return`(?:${F}${ne(_)}${P})?${x}${D}${z}`;default:{const te=/^(.*?)\.(\w+)$/.exec(X);if(!te)return;const Z=w(te[1]);return Z?Z+x+te[2]:void 0}}},N=l.removePrefix(v,W);let L=w(N);return L&&_.strictSlashes!==!0&&(L+=`${P}?`),L},o.exports=g},683:(o,i,a)=>{const c=a(17),l=a(700),u=a(754),f=a(513),m=a(356),d=h=>h&&typeof h=="object"&&!Array.isArray(h),p=(h,y,g=!1)=>{if(Array.isArray(h)){const P=h.map(R=>p(R,y,g));return R=>{for(const I of P){const M=I(R);if(M)return M}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),S=v?p.compileRe(h,y):p.makeRe(h,y,!1,!0),C=S.state;delete S.state;let j=()=>!1;if(A.ignore){const P={...y,ignore:null,onMatch:null,onResult:null};j=p(A.ignore,P,g)}const x=(P,D=!1)=>{const{isMatch:R,match:I,output:M}=p.test(P,S,y,{glob:h,posix:_}),$={glob:h,state:C,regex:S,posix:_,input:P,output:M,match:I,isMatch:R};return typeof A.onResult=="function"&&A.onResult($),R===!1?($.isMatch=!1,D?$:!1):j(P)?(typeof A.onIgnore=="function"&&A.onIgnore($),$.isMatch=!1,D?$:!1):(typeof A.onMatch=="function"&&A.onMatch($),D?$:!0)};return g&&(x.state=C),x};p.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||{},S=_.format||(A?f.toPosixSlashes:null);let C=h===v,j=C&&S?S(h):h;return C===!1&&(j=S?S(h):h,C=j===v),(C===!1||_.capture===!0)&&(_.matchBase===!0||_.basename===!0?C=p.matchBase(h,y,g,A):C=y.exec(j)),{isMatch:!!C,match:C,output:j}},p.matchBase=(h,y,g,v=f.isWindows(g))=>(y instanceof RegExp?y:p.makeRe(y,g)).test(c.basename(h)),p.isMatch=(h,y,g)=>p(y,g)(h),p.parse=(h,y)=>Array.isArray(h)?h.map(g=>p.parse(g,y)):u(h,{...y,fastpaths:!1}),p.scan=(h,y)=>l(h,y),p.compileRe=(h,y,g=!1,v=!1)=>{if(g===!0)return h.output;const A=y||{},_=A.contains?"":"^",S=A.contains?"":"$";let C=`${_}(?:${h.output})${S}`;h&&h.negated===!0&&(C=`^(?!${C}).*$`);const j=p.toRegex(C,y);return v===!0&&(j.state=h),j},p.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},S="",C;return h.startsWith("./")&&(h=h.slice(2),S=_.prefix="./"),A.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(C=u.fastpaths(h,y)),C===void 0?(_=u(h,y),_.prefix=S+(_.prefix||"")):_.output=C,p.compileRe(_,y,g,v)},p.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/$^/}},p.constants=m,o.exports=p},700:(o,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:m,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,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:S,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:j}=a(356),x=R=>R===h||R===f,P=R=>{R.isPrefix!==!0&&(R.depth=R.isGlobstar?1/0:1)},D=(R,I)=>{const M=I||{},$=R.length-1,E=M.parts===!0||M.scanToEnd===!0,q=[],F=[],U=[];let K=R,W=-1,z=0,ne=0,w=!1,N=!1,L=!1,X=!1,te=!1,Z=!1,T=!1,J=!1,Y=!1,ee=0,k,O,re={value:"",depth:0,isGlob:!1};const ae=()=>W>=$,ce=()=>K.charCodeAt(W+1),le=()=>(k=O,K.charCodeAt(++W));for(;W<$;){O=le();let me;if(O===f){T=re.backslashes=!0,O=le(),O===y&&(Z=!0);continue}if(Z===!0||O===y){for(ee++;ae()!==!0&&(O=le());){if(O===f){T=re.backslashes=!0,le();continue}if(O===y){ee++;continue}if(Z!==!0&&O===d&&(O=le())===d){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(Z!==!0&&O===m){if(w=re.isBrace=!0,L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(O===S&&(ee--,ee===0)){Z=!1,w=re.isBrace=!0,Y=!0;break}}if(E===!0)continue;break}if(O===h){if(q.push(W),F.push(re),re={value:"",depth:0,isGlob:!1},Y===!0)continue;if(k===d&&W===z+1){z+=2;continue}ne=W+1;continue}if(M.noext!==!0&&(O===A||O===u||O===l||O===_||O===p)===!0&&ce()===g){if(L=re.isGlob=!0,X=re.isExtglob=!0,Y=!0,E===!0){for(;ae()!==!0&&(O=le());){if(O===f){T=re.backslashes=!0,O=le();continue}if(O===C){L=re.isGlob=!0,Y=!0;break}}continue}break}if(O===l){if(k===l&&(te=re.isGlobstar=!0),L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(O===_){if(L=re.isGlob=!0,Y=!0,E===!0)continue;break}if(O===v){for(;ae()!==!0&&(me=le());){if(me===f){T=re.backslashes=!0,le();continue}if(me===j){N=re.isBracket=!0,L=re.isGlob=!0,Y=!0;break}}if(E===!0)continue;break}if(M.nonegate!==!0&&O===p&&W===z){J=re.negated=!0,z++;continue}if(M.noparen!==!0&&O===g){if(L=re.isGlob=!0,E===!0){for(;ae()!==!0&&(O=le());){if(O===g){T=re.backslashes=!0,O=le();continue}if(O===C){Y=!0;break}}continue}break}if(L===!0){if(Y=!0,E===!0)continue;break}}M.noext===!0&&(X=!1,L=!1);let se=K,H="",he="";z>0&&(H=K.slice(0,z),K=K.slice(z),ne-=z),se&&L===!0&&ne>0?(se=K.slice(0,ne),he=K.slice(ne)):L===!0?(se="",he=K):se=K,se&&se!==""&&se!=="/"&&se!==K&&x(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),M.unescape===!0&&(he&&(he=c.removeBackslashes(he)),se&&T===!0&&(se=c.removeBackslashes(se)));const ie={prefix:H,input:R,start:z,base:se,glob:he,isBrace:w,isBracket:N,isGlob:L,isExtglob:X,isGlobstar:te,negated:J};if(M.tokens===!0&&(ie.maxDepth=0,x(O)||F.push(re),ie.tokens=F),M.parts===!0||M.tokens===!0){let me;for(let G=0;G<q.length;G++){const ue=me?me+1:z,Ce=q[G],Q=R.slice(ue,Ce);M.tokens&&(G===0&&z!==0?(F[G].isPrefix=!0,F[G].value=H):F[G].value=Q,P(F[G]),ie.maxDepth+=F[G].depth),(G!==0||Q!=="")&&U.push(Q),me=Ce}if(me&&me+1<R.length){const G=R.slice(me+1);U.push(G),M.tokens&&(F[F.length-1].value=G,P(F[F.length-1]),ie.maxDepth+=F[F.length-1].depth)}ie.slashes=q,ie.parts=U}return ie};o.exports=D},513:(o,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:f,REGEX_SPECIAL_CHARS:m,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),i.hasRegexChars=p=>m.test(p),i.isRegexChar=p=>p.length===1&&i.hasRegexChars(p),i.escapeRegex=p=>p.replace(d,"\\$1"),i.toPosixSlashes=p=>p.replace(u,"/"),i.removeBackslashes=p=>p.replace(f,h=>h==="\\"?"":h),i.supportsLookbehinds=()=>{const p=process.version.slice(1).split(".").map(Number);return p.length===3&&p[0]>=9||p[0]===8&&p[1]>=10},i.isWindows=p=>p&&typeof p.windows=="boolean"?p.windows:l===!0||c.sep==="\\",i.escapeLast=(p,h,y)=>{const g=p.lastIndexOf(h,y);return g===-1?p:p[g-1]==="\\"?i.escapeLast(p,h,g-1):`${p.slice(0,g)}\\${p.slice(g)}`},i.removePrefix=(p,h={})=>{let y=p;return y.startsWith("./")&&(y=y.slice(2),h.prefix="./"),y},i.wrapOutput=(p,h={},y={})=>{const g=y.contains?"":"^",v=y.contains?"":"$";let A=`${g}(?:${p})${v}`;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=(x,P,D)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||x===P)return String(x);if(c(P)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...D};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let I=String(R.relaxZeros),M=String(R.shorthand),$=String(R.capture),E=String(R.wrap),q=x+":"+P+"="+I+M+$+E;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let F=Math.min(x,P),U=Math.max(x,P);if(Math.abs(F-U)===1){let w=x+"|"+P;return R.capture?`(${w})`:R.wrap===!1?w:`(?:${w})`}let K=C(x)||C(P),W={min:x,max:P,a:F,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),W,R),F=W.a=0}return U>=0&&(z=d(F,U,W,R)),W.negatives=ne,W.positives=z,W.result=u(ne,z),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(x,P,D){let R=p(x,P,"-",!1)||[],I=p(P,x,"",!1)||[],M=p(x,P,"-?",!0)||[];return R.concat(M).concat(I).join("|")}function f(x,P){let D=1,R=1,I=v(x,D),M=new Set([P]);for(;x<=I&&I<=P;)M.add(I),D+=1,I=v(x,D);for(I=A(P+1,R)-1;x<I&&I<=P;)M.add(I),R+=1,I=A(P+1,R)-1;return M=[...M],M.sort(y),M}function m(x,P,D){if(x===P)return{pattern:x,count:[],digits:0};let R=h(x,P),I=R.length,M="",$=0;for(let E=0;E<I;E++){let[q,F]=R[E];q===F?M+=q:q!=="0"||F!=="9"?M+=S(q,F):$++}return $&&(M+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[$],digits:I}}function d(x,P,D,R){let I=f(x,P),M=[],$=x,E;for(let q=0;q<I.length;q++){let F=I[q],U=m(String($),String(F),R),K="";if(!D.isPadded&&E&&E.pattern===U.pattern){E.count.length>1&&E.count.pop(),E.count.push(U.count[0]),E.string=E.pattern+_(E.count),$=F+1;continue}D.isPadded&&(K=j(F,D,R)),U.string=K+U.pattern+_(U.count),M.push(U),$=F+1,E=U}return M}function p(x,P,D,R,I){let M=[];for(let $ of x){let{string:E}=$;!R&&!g(P,"string",E)&&M.push(D+E),R&&g(P,"string",E)&&M.push(D+E)}return M}function h(x,P){let D=[];for(let R=0;R<x.length;R++)D.push([x[R],P[R]]);return D}function y(x,P){return x>P?1:P>x?-1:0}function g(x,P,D){return x.some(R=>R[P]===D)}function v(x,P){return Number(String(x).slice(0,-P)+"9".repeat(P))}function A(x,P){return x-x%Math.pow(10,P)}function _(x){let[P=0,D=""]=x;return D||P>1?`{${P+(D?","+D:"")}}`:""}function S(x,P,D){return`[${x}${P-x===1?"":"-"}${P}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,P,D){if(!P.isPadded)return x;let R=Math.abs(P.maxLen-String(x).length),I=D.relaxZeros!==!1;switch(R){case 0:return"";case 1:return I?"0?":"0";case 2:return I?"0{0,2}":"00";default:return I?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=Xd},837:o=>{o.exports=Of()}},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);Nr.exports=n})()),Nr.exports}var Ca;function Mf(){return Ca||(Ca=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=Tf();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))}}(Ir)),Ir}var Sa;function hc(){return Sa||(Sa=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}=Mf();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}(Pr)),Pr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Ee,o=zt()._(B),i=r._(Pa),a=r._(Gd()),c=fo,l=Gt,u=Wd(),f=ft,m=Hs(),d=r._(hc()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,P){const D=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===D)return;_["data-loaded-src"]=D,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:_});let M=!1,$=!1;C.current({...I,nativeEvent:I,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{M=!0,I.preventDefault()},stopPropagation:()=>{$=!0,I.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const I=new URL(D,"http://n").searchParams.get("url")||D;if(_.getAttribute("data-nimg")==="fill"){if(!P&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+I+'" 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:E}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(E)||(0,f.warnOnce)('Image with src "'+I+'" has "fill" and parent element with invalid "position". Provided "'+E+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+I+'" 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 M=_.height.toString()!==_.getAttribute("height"),$=_.width.toString()!==_.getAttribute("width");(M&&!$||!M&&$)&&(0,f.warnOnce)('Image with src "'+I+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),j=parseInt(S,10),x=parseInt(C,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:j,sizes:x,height:P,width:D,decoding:R,className:I,style:M,fetchPriority:$,placeholder:E,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:O,...L}=_;return o.default.createElement("img",{...L,...y($),loading:q,width:D,height:P,decoding:R,"data-nimg":U?"fill":"1",className:I,style:M,sizes:x,srcSet:j,src:C,ref:(0,o.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(O&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,E,K,W,z,F))},[C,E,K,W,z,O,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,E,K,W,z,F)},onError:X=>{ne(!0),E!=="empty"&&z(!0),O&&O(X)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const j={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,j),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...j}))}const A=(0,o.forwardRef)((_,S)=>{const j=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(u.ImageConfigContext),P=(0,o.useMemo)(()=>{const W=p||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,O)=>w-O),ne=W.deviceSizes.sort((w,O)=>w-O);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:D,onLoadingComplete:R}=_,I=(0,o.useRef)(D);(0,o.useEffect)(()=>{I.current=D},[D]);const M=(0,o.useRef)(R);(0,o.useEffect)(()=>{M.current=R},[R]);const[$,E]=(0,o.useState)(!1),[q,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:P,blurComplete:$,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:I,onLoadingCompleteRef:M,setBlurComplete:E,setShowAltText:F,ref:S}),K.priority?o.default.createElement(v,{isAppRouter:j,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)})(Vn,Vn.exports);var kf=Vn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Ee,n=fo,o=ft,i=kf,a=r._(hc()),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[m,d]of Object.entries(f))d===void 0&&delete f[m];return{props:f}},l=i.Image})(oc);var Lf=oc;const Aa=Ht(Lf),Df=({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(je,{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(Aa,{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(Aa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},$f=({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(Df,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Bf=({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})]})}),qf=({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})})})]}),Tn=e=>{const{isMobile:t}=Oe();return t?s.jsx(qf,{...e}):s.jsx(Bf,{...e})},kt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:p,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Te();switch(e){case"menu":v=s.jsx(je,{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((S,C)=>s.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});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((S,C)=>s.jsx(je,{prefetch:!1,href:S.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:p}},...g,children:s.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},Hf=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),gc=()=>{const{nextimage:e}=Te();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})})};gc.displayName="Footer.Stamps";const yc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Oe(),a=B.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})]})};yc.displayName="Footer.Wrapper";const _c=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(yc,{adornment:o,legalTextSlot:s.jsx(Hf,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(Tn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,m)=>s.jsx(kt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},m))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Tn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(kt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),s.jsxs(Tn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(kt,{children:r==null?void 0:r.subTitle}):null,s.jsx(kt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(gc,{})]})]})};_c.displayName="Footer";const zf=Object.freeze(Object.defineProperty({__proto__:null,Footer:_c,FooterSupport:$f},Symbol.toStringTag,{value:"Module"})),yo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},_o=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=We(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),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"})]})})};_o.displayName="Header.Bag";const gt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(je,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,vc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Be(),o=i=>{i?n(i):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(gt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(b.Header.CategoryItem,{className:yo["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}`))})};vc.displayName="Header.Categories";function Ff({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=oo();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 Uf={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},vo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:Uf["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(co,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(je,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[s.jsx(Me.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}`)})})};vo.displayName="Menu.Thumbnail";const Kn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},bc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Te(),{reset:i}=Be(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=xe();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 p,h,y;const m=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.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(gt,{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,...m,className:Kn["submenu-categories"],children:u.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(et,{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"})]})};bc.displayName="Menu.Categories";const xc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();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"})]})};xc.displayName="Menu.MenuRoot";const Gf=uo(()=>Promise.resolve(xc),{ssr:!1}),Mn={Root:Gf,Categories:bc,Thumbnail:vo},Cc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Bt(),{reset:n}=Be();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(m=>!!m.srcDesk);return s.jsxs(Mn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Mn.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Mn.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Cc.displayName="Header.SubMenu";const Sc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return s.jsx(je,{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"})})})};Sc.displayName="Header.WishList";const Ac=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=Be(),{setValue:a}=qt();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(je,{href:"/",onMouseEnter:i,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),s.jsx(vc,{}),s.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[s.jsx(Ff,{SearchModal:t}),s.jsx(e,{target:r.current,children:s.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:yo["btn-login"],innerRef:r,children:s.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),s.jsx(Sc,{}),s.jsx(_o,{id:"cart-button"})]})]}),s.jsx(Cc,{})]})};Ac.displayName="Header.HeaderDesktopWrapper";const Wf="_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:Wf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Rc=({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(Me.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})});Rc.displayName="Menu.MenuCategories";const Ec=({children:e,link:t})=>{const{reset:r}=Ue();return t?s.jsx(je,{href:t??"#",onClick:r,children:e}):e};Ec.displayName="Menu.MenuCategoriesWrapper";const wc=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Te(),{reset:n}=Ue(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end: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(gt,{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((m,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:s.jsx(et,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;n(),o({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};wc.displayName="Menu.SubMenuSubCategory";const jc=({submenu:e})=>{var i;const t=Bt(),{handleCloseSubMenu:r}=dt(),{reset:n}=Be(),{CONSTANTS:o}=xe();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(vo,{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(wc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};jc.displayName="Menu.SubMenuItem";const Pc=()=>{const{headerData:e}=xe(),t=Bt(),{reset:r}=Be(),{bodyRef:n}=dt();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(jc,{submenu:o},`submenu-${o.id}-${i}`))})})};Pc.displayName="Menu.SubMenu";const Ic=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=Be(),{bodyRef:o}=dt(),{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(Ec,{link:a.submenuId?null:a.link,children:s.jsx(Rc,{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(Pc,{})]})};Ic.displayName="Menu.MenuBody";const Nc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();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})]})};Nc.displayName="Menu.MenuHeaderWrapper";const Oc=({navigationLinks:e})=>{const{reset:t}=Ue(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(et,{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};Oc.displayName="Menu.MenuHeaderNavLinks";const Tc=()=>{const{headerData:e}=xe();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Nc,{title:e.title,subtitle:e.subtitle}),s.jsx(Oc,{navigationLinks:e.navigationLinks})]})};Tc.displayName="Menu.MenuHeaderContainer";const Mc=({children:e})=>{const{documentBodyRef:t}=dt(),{CONSTANTS:r}=xe(),n=no(),{setValue:o}=Ue();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})})};Mc.displayName="Menu.MenuRoot";const Vf=uo(()=>Promise.resolve(Mc),{ssr:!1}),Dt=({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})]});Dt.displayName="Menu.NavigationBarItem";const kc=()=>{const{setIsOpen:e}=We(),{reset:t}=Ue(),{setValue:r}=qt(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Te();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(Dt,{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(Dt,{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(Dt,{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})]})};kc.displayName="Menu.NavigationBar";const Lt={Root:Vf,NavigationBar:kc,Header:Tc,Body:Ic},Lc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),n=B.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:l}=ge(),{setValue:u}=oo(),{setValue:f}=Ue(),{setValue:m}=qt();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(je,{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:()=>{m(!0),l({content:"header:user_menu"})},innerRef:n,children:s.jsx(b.Icon,{name:a.person,size:"medium"})}),s.jsx(_o,{}),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(ws,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),i?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};Lc.displayName="Header.HeaderMobileWrapper";const Dc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{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:yo["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:Ze["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:s.jsx(Lc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Ze["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:s.jsx(Ac,{UserMenu:r,SearchModal:n})}),t,s.jsx(lo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Dc.displayName="Header";const Kf="_shippingFreight_6z8rf_6",Xf="_shippingFreight__postalCodeGrid_6z8rf_10",Qf="_shippingFreight__grid_6z8rf_14",Yf="_shippingFreight__grid__title_6z8rf_18",Zf="_shippingFreight__grid__remember_6z8rf_29",Jf="_postalCodeContainer_6z8rf_44",ep="_deliveryStatusBar__tag_6z8rf_49",tp="_deliveryStatusBarError__tag_6z8rf_66",rp="_deliveryInfo_6z8rf_74",np="_deliveryInfo__content_6z8rf_78",op="_deliveryInfo__text_6z8rf_84",ip="_deliveryInfo__title_6z8rf_89",ap="_deliveryInfo__subtitle_6z8rf_99",sp="_deliveryInfo__tooltipIcon_6z8rf_109",cp="_deliveryInfo__tooltip_6z8rf_109",lp="_freightGrid_6z8rf_148",up="_freightContainer_6z8rf_155",dp="_freightOption__content_6z8rf_160",fp="_freightOption__value_6z8rf_166",pp="_freightOption__title_6z8rf_177",mp="_freightOption__title_item_6z8rf_181",hp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Kf,shippingFreight__postalCodeGrid:Xf,shippingFreight__grid:Qf,shippingFreight__grid__title:Yf,shippingFreight__grid__remember:Zf,postalCodeContainer:Jf,deliveryStatusBar__tag:ep,deliveryStatusBarError__tag:tp,deliveryInfo:rp,deliveryInfo__content:np,deliveryInfo__text:op,deliveryInfo__title:ip,deliveryInfo__subtitle:ap,deliveryInfo__tooltipIcon:sp,deliveryInfo__tooltip:cp,freightGrid:lp,freightContainer:up,freightOption__content:dp,freightOption__value:fp,freightOption__title:pp,freightOption__title_item:mp,freightOption__paragraph:hp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},gp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=B.useState(!1),f=B.useRef(null),m=()=>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:m,onMouseLeave:m,"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})]})]})]})},yp=({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})]})})})]})}),_p=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),vp=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),bp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),Ra=({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]})}),xp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Cp=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},Sp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Oe();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})})},Ap=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var I,M,$,E;const f=Qe(),m=Qe(q=>q.shipping),[d,p]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[A,_]=B.useState(!1),S=(M=(I=f.shippingData)==null?void 0:I.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=B.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?p(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(U)},P=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await Co.get(`https://viacep.com.br/ws/${F}/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.")}},D=async()=>{y(!0);try{const q=await Co.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(Cp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},R=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await P({target:{value:C}}),h||(D(),a(!0))};return s.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?s.jsx(Sp,{component:c,isOpen:A,parent:j.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:(E=($=f.shippingData)==null?void 0:$.address)==null?void 0:E.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(b.Button,{onClick:R,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Rp=({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(et,{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})]}),Ep=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),wp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=B.useState(""),[m,d]=B.useState([]),[p,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>f(_),A=_=>{d(_),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(Ep,{className:e,children:[s.jsxs(Rp,{freightConfig:c.freightConfig,children:[s.jsx(bp,{children:s.jsx(Ap,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),p?s.jsx(Ra,{size:o,message:p,setError:h}):m.length>0&&s.jsx(Ra,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!p?m.length>0&&s.jsxs(_p,{children:[s.jsx(vp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(yp,{id:_.id,value:Zn({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${xp(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(gp,{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]})},$c=B.createContext({}),jp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=B.useState(null),c=B.useRef(null),l=B.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),m=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},p=()=>{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}),m("select_item")};return s.jsx($c.Provider,{value:B.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:p}),[o,t,c,i]),children:e})},Ne=()=>{const e=B.useContext($c);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"},Bc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Ne();return a?s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(we.Wrapper,{type:"actions--group",children:[s.jsx(we.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Bc.displayName="ProductCard.Actions";const qc=({className:e,isKit:t,...r})=>{const{addToCart:n}=We(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Ne(),f=()=>{var p;if(!i)return;const d=eo(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:(p=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:p.url}),l()},m=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":m})};qc.displayName="ProductCard.Actions.BuyButton";const Hc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Ne();return s.jsxs(we.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"})]})};Hc.displayName="ProductCard.Actions.Header";const zc=({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:m,CONSTANTS:d}=Ne(),p=$a({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(je,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:h,alternateName:y},g)=>B.createElement(Me.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(we.Video,{url:u,poster:p[0].url}),t]})};zc.displayName="ProductCard.Media.Media";const Fc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Ne(),{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})]})};Fc.displayName="ProductCard.OutStock";const Uc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>s.jsx(jp,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Uc.displayName="ProductCard.Root";const Gc=({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})]});Gc.displayName="ProductCard.SizeSelector.Item";const Wc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Ne();n.productId=i.id;const u=Ma(n),f=Oa(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=B.useCallback(p=>{const h=r===p?null:p;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=B.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,u,i]);return s.jsx(Gc,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};Wc.displayName="ProductCard.SizeSelector.SkuItem";const Vc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Ne();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(Wc,{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})]})};Vc.displayName="ProductCard.SizeSelector";const Xn=({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(Me.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]})})]})]}),Pp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Ne(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(Xn,{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(Xn,{size:o,total:r.length-n,more:!0})]})},Kc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Ne(),c=o||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(Pp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(Xn,{active:!0,size:"x-small",src:l.url})})};Kc.displayName="ProductCard.StyleSelector";const Xc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Ne();l.current.priceInfo={price:o,listPrice:i};const u=Le(i,t),f=Le(o,t),m=Le(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 ${m}`,size:"small"}):null]})})})};Xc.displayName="ProductCard.Price";const Qc=({tag:e,className:t})=>{const{item:{name:r}}=Ne();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})})})})]})};Qc.displayName="ProductCard.Title";const Yc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Ne();return B.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(m=>{Ba(m.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(Me.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Yc.displayName="ProductCard.Media.Video";const Zc=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Zc.displayName="ProductCard.Wrapper";const we={Actions:Bc,BuyButton:qc,Header:Hc,Media:zc,Root:Uc,OutStock:Fc,Price:Xc,SizeSelector:Vc,StyleSelector:Kc,Title:Qc,Video:Yc,Wrapper:Zc},Ea=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=La(e.imageUrl,n.pdp),{nextimage:i}=Te();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Ip=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=B.useRef(!1);return s.jsx(Me.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})},Np={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Jc=({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:m=>{i(m)},className:Np["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:m=>c==null?void 0:c.navigateTo(m)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ea,{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(Ip,{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((m,d)=>d===0?null:s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ea,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Jc.displayName="PDP.Carousel";const Op=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=to(),[o,i]=B.useState({show:!1,initialIndex:0});B.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Jc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},el=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=to(),n=B.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(Op,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};el.displayName="PDP.Gallery";const Tp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:el},Symbol.toStringTag,{value:"Module"})),Mp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},bo=({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(Mp["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})]});bo.displayName="SnackBar";const tl=B.createContext({}),kp=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,P,D,R;const[n,o]=B.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:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:x.textColorVariant,content:((D=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:D.items)??[]},u=(R=l.content)==null?void 0:R.filter(I=>!I.countDownEndDate||new Date(I.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},p=b.helpers.ValidateProp({fieldTypes:at.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(tl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},qe=()=>B.useContext(tl),Lp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(Un,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Dp="_tipbar_bt3p0_1",$p="_tipbar__carousel_bt3p0_15",yt={tipbar:Dp,tipbar__carousel:$p,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Bp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),[i,a]=B.useState({status:!1,showSnackBar:!1}),c=()=>{a({status:!0,showSnackBar:!0})};return B.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:c,disabled:i.status,className:yt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&s.jsx(bo,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},qp=({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})]})}),Hp=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=qe();if(o==="countdown")return s.jsx(Lp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:at.Mode,property:r.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:at.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?s.jsx(Bp,{coupon:r.coupon,mode:a,variant:c,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return s.jsx(qp,{title:n,description:t,mode:i,className:e})},zp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),a=B.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=o.controller)==null||m.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=B.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=u}},[n,o]);return B.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(b.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:yt.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})}})]})},wa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(b.Button,{title:"fechar tipbar",className:yt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},Fp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:c}=qe(),l=t&&i;return s.jsx("div",{style:o,"data-hasclosebtn":n,className:yt.tipbar,children:t?s.jsxs(s.Fragment,{children:[s.jsx(zp,{mode:r,showCarouselArrows:l,slideTranstionTimer:a,children:e}),n&&s.jsx(wa,{handleCloseTipbar:c,showCarouselArrows:l,mode:r})]}):s.jsxs(s.Fragment,{children:[e,n&&s.jsx(wa,{handleCloseTipbar:c,mode:r})]})})},Up=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=s.jsx("div",{...r,className:yt["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},rl=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(Fp,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(gt,{href:n.link,children:s.jsx(Up,{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(Hp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};rl.displayName="TipBar.Root";const nl=({className:e,...t})=>s.jsx(kp,{...t,children:s.jsx(rl,{className:e})});nl.displayName="TipBar";const Gp="_container_1sy8s_16",$e={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Gp,"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"},Wp=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:$e["add-itens-to-cart-container"],children:[s.jsxs("div",{className:$e["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:$e["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:$e["add-itens-to-cart-total"],children:s.jsx("span",{children:Zn({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:$e["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Vp=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},[]),Kp=({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=eo(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}},Xp="_carousel_245ib_1",Qp="_shelf__container_245ib_14",Yp="_shelf_without_carousel_245ib_34",it={carousel:Xp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Qp,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Yp},ja=({title:e})=>s.jsx("div",{className:it.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",Ze["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Ze["responsive-desktop-flex"]),children:e})]})})}),Zp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Oe(),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=B.Children.toArray(e).length;return o||f>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:it.carousel,children:[s.jsxs("div",{className:it["custom-controllers"],children:[n&&s.jsx(ja,{title:n}),i<f&&s.jsxs(b.Carousel.Controller,{className:it["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:B.Children.map(e,(d,p)=>s.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${p}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(ja,{title:n}),s.jsx("div",{className:it.shelf_without_carousel,children:e})]})},Jp={Shelf:Zp},em=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=B.useMemo(()=>Vp(r),[r]),{isMobile:a}=Oe(),{addItemsToCart:c}=We(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=Yn(),[f,m]=B.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}}})},p=({selectedProduct:h,productId:y})=>{const g=Kp({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});m(g)};return B.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),s.jsxs("div",{className:$e.container,ref:n,children:[s.jsx("div",{className:$e["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(Jp.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,_,S;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?s.jsxs(we.Root,{item:{...h,image:io.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(we.Header,{product:h,tag:g.commercial}),s.jsx(we.Media,{}),s.jsxs(we.Wrapper,{type:"body",children:[s.jsx(we.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(S=g.institucional)==null?void 0:S.icon}}),s.jsx(we.Actions,{children:s.jsx(we.SizeSelector,{callback:C=>p({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:$e["add-cart-container"],children:s.jsx(Wp,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},tm={teamComponents:{AddToCart:lo,BackToTop:dd,BuyPackage:em,...zf,FreightCalculation:wp,Header:Dc,Link:et,Media:Me,ProductCard:we,TipBar:nl},template:{pdp:Tp},utils:{EventCollector:fd,ExternalScripts:Sd,LinkOrNotLink:gt,ObserverWrapper:co,SnackBarComponent:bo}};exports.cms=id;exports.contexts=tu;exports.data=io;exports.layout=tm;
40
+ */const c=a(357),l=(x,P,D)=>{if(c(x)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(P===void 0||x===P)return String(x);if(c(P)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let R={relaxZeros:!0,...D};typeof R.strictZeros=="boolean"&&(R.relaxZeros=R.strictZeros===!1);let I=String(R.relaxZeros),M=String(R.shorthand),$=String(R.capture),E=String(R.wrap),q=x+":"+P+"="+I+M+$+E;if(l.cache.hasOwnProperty(q))return l.cache[q].result;let F=Math.min(x,P),U=Math.max(x,P);if(Math.abs(F-U)===1){let w=x+"|"+P;return R.capture?`(${w})`:R.wrap===!1?w:`(?:${w})`}let K=C(x)||C(P),W={min:x,max:P,a:F,b:U},z=[],ne=[];if(K&&(W.isPadded=K,W.maxLen=String(W.max).length),F<0){let w=U<0?Math.abs(U):1;ne=d(w,Math.abs(F),W,R),F=W.a=0}return U>=0&&(z=d(F,U,W,R)),W.negatives=ne,W.positives=z,W.result=u(ne,z),R.capture===!0?W.result=`(${W.result})`:R.wrap!==!1&&z.length+ne.length>1&&(W.result=`(?:${W.result})`),l.cache[q]=W,W.result};function u(x,P,D){let R=p(x,P,"-",!1)||[],I=p(P,x,"",!1)||[],M=p(x,P,"-?",!0)||[];return R.concat(M).concat(I).join("|")}function f(x,P){let D=1,R=1,I=v(x,D),M=new Set([P]);for(;x<=I&&I<=P;)M.add(I),D+=1,I=v(x,D);for(I=A(P+1,R)-1;x<I&&I<=P;)M.add(I),R+=1,I=A(P+1,R)-1;return M=[...M],M.sort(y),M}function m(x,P,D){if(x===P)return{pattern:x,count:[],digits:0};let R=h(x,P),I=R.length,M="",$=0;for(let E=0;E<I;E++){let[q,F]=R[E];q===F?M+=q:q!=="0"||F!=="9"?M+=S(q,F):$++}return $&&(M+=D.shorthand===!0?"\\d":"[0-9]"),{pattern:M,count:[$],digits:I}}function d(x,P,D,R){let I=f(x,P),M=[],$=x,E;for(let q=0;q<I.length;q++){let F=I[q],U=m(String($),String(F),R),K="";if(!D.isPadded&&E&&E.pattern===U.pattern){E.count.length>1&&E.count.pop(),E.count.push(U.count[0]),E.string=E.pattern+_(E.count),$=F+1;continue}D.isPadded&&(K=j(F,D,R)),U.string=K+U.pattern+_(U.count),M.push(U),$=F+1,E=U}return M}function p(x,P,D,R,I){let M=[];for(let $ of x){let{string:E}=$;!R&&!g(P,"string",E)&&M.push(D+E),R&&g(P,"string",E)&&M.push(D+E)}return M}function h(x,P){let D=[];for(let R=0;R<x.length;R++)D.push([x[R],P[R]]);return D}function y(x,P){return x>P?1:P>x?-1:0}function g(x,P,D){return x.some(R=>R[P]===D)}function v(x,P){return Number(String(x).slice(0,-P)+"9".repeat(P))}function A(x,P){return x-x%Math.pow(10,P)}function _(x){let[P=0,D=""]=x;return D||P>1?`{${P+(D?","+D:"")}}`:""}function S(x,P,D){return`[${x}${P-x===1?"":"-"}${P}]`}function C(x){return/^-?(0+)\d/.test(x)}function j(x,P,D){if(!P.isPadded)return x;let R=Math.abs(P.maxLen-String(x).length),I=D.relaxZeros!==!1;switch(R){case 0:return"";case 1:return I?"0?":"0";case 2:return I?"0{0,2}":"00";default:return I?`0{0,${R}}`:`0{${R}}`}}l.cache={},l.clearCache=()=>l.cache={},o.exports=l},17:o=>{o.exports=Xd},837:o=>{o.exports=Nf()}},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);Or.exports=n})()),Or.exports}var Ca;function Mf(){return Ca||(Ca=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=Tf();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))}}(Ir)),Ir}var Sa;function hc(){return Sa||(Sa=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}=Mf();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}(Pr)),Pr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return A}});const r=Ee,o=zt()._(B),i=r._(Pa),a=r._(Gd()),c=fo,l=Gt,u=Wd(),f=ft,m=Hs(),d=r._(hc()),p=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function h(_,S,C,j,x,P){const D=_==null?void 0:_.src;if(!_||_["data-loaded-src"]===D)return;_["data-loaded-src"]=D,("decode"in _?_.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!_.parentElement||!_.isConnected)){if(S!=="empty"&&x(!0),C!=null&&C.current){const I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:_});let M=!1,$=!1;C.current({...I,nativeEvent:I,currentTarget:_,target:_,isDefaultPrevented:()=>M,isPropagationStopped:()=>$,persist:()=>{},preventDefault:()=>{M=!0,I.preventDefault()},stopPropagation:()=>{$=!0,I.stopPropagation()}})}if(j!=null&&j.current&&j.current(_),process.env.NODE_ENV!=="production"){const I=new URL(D,"http://n").searchParams.get("url")||D;if(_.getAttribute("data-nimg")==="fill"){if(!P&&(!_.getAttribute("sizes")||_.getAttribute("sizes")==="100vw")&&_.getBoundingClientRect().width/window.innerWidth<.6&&(0,f.warnOnce)('Image with src "'+I+'" 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:E}=window.getComputedStyle(_.parentElement),q=["absolute","fixed","relative"];q.includes(E)||(0,f.warnOnce)('Image with src "'+I+'" has "fill" and parent element with invalid "position". Provided "'+E+'" should be one of '+q.map(String).join(",")+".")}_.height===0&&(0,f.warnOnce)('Image with src "'+I+'" 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 M=_.height.toString()!==_.getAttribute("height"),$=_.width.toString()!==_.getAttribute("width");(M&&!$||!M&&$)&&(0,f.warnOnce)('Image with src "'+I+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function y(_){const[S,C]=o.version.split("."),j=parseInt(S,10),x=parseInt(C,10);return j>18||j===18&&x>=3?{fetchPriority:_}:{fetchpriority:_}}const g=(0,o.forwardRef)((_,S)=>{let{src:C,srcSet:j,sizes:x,height:P,width:D,decoding:R,className:I,style:M,fetchPriority:$,placeholder:E,loading:q,unoptimized:F,fill:U,onLoadRef:K,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:ne,onLoad:w,onError:N,...L}=_;return o.default.createElement("img",{...L,...y($),loading:q,width:D,height:P,decoding:R,"data-nimg":U?"fill":"1",className:I,style:M,sizes:x,srcSet:j,src:C,ref:(0,o.useCallback)(X=>{S&&(typeof S=="function"?S(X):typeof S=="object"&&(S.current=X)),X&&(N&&(X.src=X.src),process.env.NODE_ENV!=="production"&&(C||console.error('Image is missing required "src" property:',X),X.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),X.complete&&h(X,E,K,W,z,F))},[C,E,K,W,z,N,F,S]),onLoad:X=>{const te=X.currentTarget;h(te,E,K,W,z,F)},onError:X=>{ne(!0),E!=="empty"&&z(!0),N&&N(X)}})});function v(_){let{isAppRouter:S,imgAttributes:C}=_;const j={as:"image",imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:C.crossOrigin,referrerPolicy:C.referrerPolicy,...y(C.fetchPriority)};return S&&i.default.preload?(i.default.preload(C.src,j),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+C.src+C.srcSet+C.sizes,rel:"preload",href:C.srcSet?void 0:C.src,...j}))}const A=(0,o.forwardRef)((_,S)=>{const j=!(0,o.useContext)(m.RouterContext),x=(0,o.useContext)(u.ImageConfigContext),P=(0,o.useMemo)(()=>{const W=p||x||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((w,N)=>w-N),ne=W.deviceSizes.sort((w,N)=>w-N);return{...W,allSizes:z,deviceSizes:ne}},[x]),{onLoad:D,onLoadingComplete:R}=_,I=(0,o.useRef)(D);(0,o.useEffect)(()=>{I.current=D},[D]);const M=(0,o.useRef)(R);(0,o.useEffect)(()=>{M.current=R},[R]);const[$,E]=(0,o.useState)(!1),[q,F]=(0,o.useState)(!1),{props:U,meta:K}=(0,c.getImgProps)(_,{defaultLoader:d.default,imgConf:P,blurComplete:$,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:I,onLoadingCompleteRef:M,setBlurComplete:E,setShowAltText:F,ref:S}),K.priority?o.default.createElement(v,{isAppRouter:j,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)})(Vn,Vn.exports);var kf=Vn.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,f){for(var m in f)Object.defineProperty(u,m,{enumerable:!0,get:f[m]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Ee,n=fo,o=ft,i=kf,a=r._(hc()),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[m,d]of Object.entries(f))d===void 0&&delete f[m];return{props:f}},l=i.Image})(oc);var Lf=oc;const Aa=Ht(Lf),Df=({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(je,{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(Aa,{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(Aa,{alt:n,src:`/assets/${n}.svg`,width:20,height:20}):s.jsx(b.Icon,{size:"small",name:n})]})},$f=({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(Df,{item:o,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${n}`))}),Bf=({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})]})}),qf=({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})})})]}),Tn=e=>{const{isMobile:t}=Ne();return t?s.jsx(qf,{...e}):s.jsx(Bf,{...e})},kt=({type:e,children:t,className:r,collumnName:n,collumnNameIcon:o,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:f,rowAlignContent:m,columnAlignContent:d,columnAlignItems:p,textAlignContent:h,textAlignItems:y,...g})=>{let v;const{handleSelectContent:A}=ge(),{nextimage:_}=Te();switch(e){case"menu":v=s.jsx(je,{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((S,C)=>s.jsx(_,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},C))})]})]});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((S,C)=>s.jsx(je,{prefetch:!1,href:S.link??"#",target:"_blank",children:s.jsx(b.Icon,{size:"medium",name:S.icon,onClick:()=>A({content:`footer:redes-sociais:${S.icon}`})})},C))})});break;default:v=s.jsx("div",{className:r,...g,children:t})}return s.jsx(b.TextStructure.Root,{layoutProps:{textRow:{alignContent:m,alignItems:m},columnWrapper:{alignContent:d,alignItems:p}},...g,children:s.jsx(b.TextStructure.DivWrapper,{alignContent:h,alignItems:y,className:b.helpers.classNameConcat(pe.footer__item,r),children:v})})},Hf=({className:e,text:t,...r})=>s.jsx("div",{...r,className:b.helpers.classNameConcat(pe.footer__legalInformation,e),children:s.jsx("span",{children:t})}),gc=()=>{const{nextimage:e}=Te();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})})};gc.displayName="Footer.Stamps";const yc=({children:e,legalTextSlot:t,adornment:r,className:n,...o})=>{const{isMobile:i}=Ne(),a=B.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})]})};yc.displayName="Footer.Wrapper";const _c=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:n,adornment:o,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return s.jsxs(yc,{adornment:o,legalTextSlot:s.jsx(Hf,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>s.jsx(Tn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((f,m)=>s.jsx(kt,{type:"menu",link:f.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:f.text},m))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&s.jsx(Tn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:s.jsx(kt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),s.jsxs(Tn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?s.jsx(kt,{children:r==null?void 0:r.subTitle}):null,s.jsx(kt,{type:"social-media",iconSize:24,iconLink:n}),s.jsx(gc,{})]})]})};_c.displayName="Footer";const zf=Object.freeze(Object.defineProperty({__proto__:null,Footer:_c,FooterSupport:$f},Symbol.toStringTag,{value:"Module"})),yo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},_o=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=We(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),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"})]})})};_o.displayName="Header.Bag";const gt=({children:e,href:t,...r})=>t&&t!=="#"?s.jsx(je,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,vc=()=>{const{headerData:e}=xe(),{handleSelectContent:t}=ge(),{reset:r,updateValue:n}=Be(),o=i=>{i?n(i):r()};return s.jsx(b.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>s.jsx(gt,{href:i.link,onMouseEnter:()=>o(i.submenuId),onFocus:()=>o(i.submenuId),children:s.jsx(b.Header.CategoryItem,{className:yo["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}`))})};vc.displayName="Header.Categories";function Ff({SearchModal:e}){const{handleSelectContent:t}=ge(),{CONSTANTS:r}=xe(),{setValue:n}=oo();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 Uf={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},vo=({thumbnails:e,category:t,isMobile:r=!0,callBack:n})=>{const{handleSelectPromotionEvent:o}=ge(),i=50/e.length;return s.jsx("div",{className:Uf["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(co,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:s.jsxs(je,{href:a.link??"#",onClick:()=>{typeof n=="function"&&n(),o({updatePromotionRef:!0,promotion:u})},children:[s.jsx(Me.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}`)})})};vo.displayName="Menu.Thumbnail";const Kn={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},bc=({children:e,dividerOnRight:t=!0,subMenu:r,...n})=>{var l;const{router:o}=Te(),{reset:i}=Be(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=xe();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 p,h,y;const m=u.listCollapseDesk&&!((p=u.see_all)!=null&&p.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(gt,{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,...m,className:Kn["submenu-categories"],children:u.items.map((g,v)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${g.label}-${v}`,children:s.jsx(et,{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"})]})};bc.displayName="Menu.Categories";const xc=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:n}=xe();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"})]})};xc.displayName="Menu.MenuRoot";const Gf=uo(()=>Promise.resolve(xc),{ssr:!1}),Mn={Root:Gf,Categories:bc,Thumbnail:vo},Cc=()=>{const{headerData:e,CONSTANTS:t}=xe(),r=Bt(),{reset:n}=Be();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(m=>!!m.srcDesk);return s.jsxs(Mn.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[s.jsx(Mn.Categories,{dividerOnRight:!!f,subMenu:o}),Array.isArray(a)&&s.jsx(Mn.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:n})]},`submenu-${l}-${i}`)})})};Cc.displayName="Header.SubMenu";const Sc=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=xe();return s.jsx(je,{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"})})})};Sc.displayName="Header.WishList";const Ac=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),{CONSTANTS:n}=xe(),{handleSelectContent:o}=ge(),{reset:i}=Be(),{setValue:a}=qt();return s.jsxs(s.Fragment,{children:[s.jsxs(b.Header.Wrapper,{children:[s.jsx(b.Header.Logo,{style:{width:"100%"},children:s.jsx(je,{href:"/",onMouseEnter:i,children:s.jsx(b.Icon,{name:n.header.ICONS.logo,size:"x-large",onClick:()=>{o({content:"header:logo"})}})})}),s.jsx(vc,{}),s.jsxs(b.Header.Support,{onMouseEnter:i,style:{justifyContent:"flex-end"},children:[s.jsx(Ff,{SearchModal:t}),s.jsx(e,{target:r.current,children:s.jsx(b.Header.SupportItem,{onClick:()=>{a(!0),o({content:"header:user_menu"})},className:yo["btn-login"],innerRef:r,children:s.jsx(b.Icon,{name:n.header.ICONS.person,size:"medium"})})}),s.jsx(Sc,{}),s.jsx(_o,{id:"cart-button"})]})]}),s.jsx(Cc,{})]})};Ac.displayName="Header.HeaderDesktopWrapper";const Wf="_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:Wf,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Rc=({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(Me.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})});Rc.displayName="Menu.MenuCategories";const Ec=({children:e,link:t})=>{const{reset:r}=Ue();return t?s.jsx(je,{href:t??"#",onClick:r,children:e}):e};Ec.displayName="Menu.MenuCategoriesWrapper";const wc=({subcategory:e,submenuLabel:t})=>{var l,u,f;const{router:r}=Te(),{reset:n}=Ue(),{handleSelectContent:o}=ge(),{CONSTANTS:i}=xe(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end: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(gt,{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((m,d)=>s.jsx(b.ComponentList.ListItem,{id:`list-item-${m.label}-${d}`,divider:!0,children:s.jsx(et,{href:m.link??"#",size:"x-small",title:m.label??"",disableUnderline:!0,onClick:()=>{n(),o({content:`menu:${e.label??""}:${m.label}:${t}`})},children:m.label})},`list-item-${m.label}-${d}`))}),((f=e.see_all)==null?void 0:f.link)&&s.jsx(b.ComponentList.Support,{...c,size:"small",onClick:()=>{var m;n(),o({content:`menu:${e.label??""}:${t}`}),(m=e.see_all)!=null&&m.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};wc.displayName="Menu.SubMenuSubCategory";const jc=({submenu:e})=>{var i;const t=Bt(),{handleCloseSubMenu:r}=dt(),{reset:n}=Be(),{CONSTANTS:o}=xe();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(vo,{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(wc,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};jc.displayName="Menu.SubMenuItem";const Pc=()=>{const{headerData:e}=xe(),t=Bt(),{reset:r}=Be(),{bodyRef:n}=dt();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(jc,{submenu:o},`submenu-${o.id}-${i}`))})})};Pc.displayName="Menu.SubMenu";const Ic=({className:e,...t})=>{const{headerData:r}=xe(),{setValue:n}=Be(),{bodyRef:o}=dt(),{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(Ec,{link:a.submenuId?null:a.link,children:s.jsx(Rc,{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(Pc,{})]})};Ic.displayName="Menu.MenuBody";const Oc=({title:e,subtitle:t})=>{const{CONSTANTS:r}=xe();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})]})};Oc.displayName="Menu.MenuHeaderWrapper";const Nc=({navigationLinks:e})=>{const{reset:t}=Ue(),{handleSelectContent:r}=ge();return e?s.jsx("nav",{className:_e["menu-header-navlinks"],children:e.map((n,o)=>s.jsx(et,{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};Nc.displayName="Menu.MenuHeaderNavLinks";const Tc=()=>{const{headerData:e}=xe();return s.jsxs("div",{className:_e["menu-header-container"],children:[s.jsx(Oc,{title:e.title,subtitle:e.subtitle}),s.jsx(Nc,{navigationLinks:e.navigationLinks})]})};Tc.displayName="Menu.MenuHeaderContainer";const Mc=({children:e})=>{const{documentBodyRef:t}=dt(),{CONSTANTS:r}=xe(),n=no(),{setValue:o}=Ue();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})})};Mc.displayName="Menu.MenuRoot";const Vf=uo(()=>Promise.resolve(Mc),{ssr:!1}),Dt=({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})]});Dt.displayName="Menu.NavigationBarItem";const kc=()=>{const{setIsOpen:e}=We(),{reset:t}=Ue(),{setValue:r}=qt(),{handleSelectContent:n}=ge(),{CONSTANTS:o}=xe(),{router:i}=Te();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(Dt,{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(Dt,{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(Dt,{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})]})};kc.displayName="Menu.NavigationBar";const Lt={Root:Vf,NavigationBar:kc,Header:Tc,Body:Ic},Lc=({UserMenu:e,SearchModal:t})=>{const r=B.useRef(null),n=B.useRef(null),{CONSTANTS:o}=xe(),{MENU_NAVIGATION_BAR_ALLOWED:i,ICONS:a,MENU_MOB_BTN_SIDE:c="right"}=o.header,{handleSelectContent:l}=ge(),{setValue:u}=oo(),{setValue:f}=Ue(),{setValue:m}=qt();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(je,{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:()=>{m(!0),l({content:"header:user_menu"})},innerRef:n,children:s.jsx(b.Icon,{name:a.person,size:"medium"})}),s.jsx(_o,{}),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(ws,{children:s.jsx(e,{target:n==null?void 0:n.current,children:s.jsxs(Lt.Root,{children:[s.jsx(Lt.Header,{}),s.jsx(Lt.Body,{}),i?s.jsx(Lt.NavigationBar,{}):s.jsx(s.Fragment,{})]})})})]})};Lc.displayName="Header.HeaderMobileWrapper";const Dc=({tipBar:e,miniCart:t,UserMenu:r,SearchModal:n})=>{const{structureRef:o,rootRef:i,CONSTANTS:a}=xe(),{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:yo["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:Ze["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:l.header_mobile},children:s.jsx(Lc,{UserMenu:r,SearchModal:n})}),s.jsx("div",{className:Ze["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:l.header_desktop},children:s.jsx(Ac,{UserMenu:r,SearchModal:n})}),t,s.jsx(lo,{title:"Produto adicionado à sua sacola!",CONSTANTS:a.addToCart})]})})};Dc.displayName="Header";const Kf="_shippingFreight_6z8rf_6",Xf="_shippingFreight__postalCodeGrid_6z8rf_10",Qf="_shippingFreight__grid_6z8rf_14",Yf="_shippingFreight__grid__title_6z8rf_18",Zf="_shippingFreight__grid__remember_6z8rf_29",Jf="_postalCodeContainer_6z8rf_44",ep="_deliveryStatusBar__tag_6z8rf_49",tp="_deliveryStatusBarError__tag_6z8rf_66",rp="_deliveryInfo_6z8rf_74",np="_deliveryInfo__content_6z8rf_78",op="_deliveryInfo__text_6z8rf_84",ip="_deliveryInfo__title_6z8rf_89",ap="_deliveryInfo__subtitle_6z8rf_99",sp="_deliveryInfo__tooltipIcon_6z8rf_109",cp="_deliveryInfo__tooltip_6z8rf_109",lp="_freightGrid_6z8rf_148",up="_freightContainer_6z8rf_155",dp="_freightOption__content_6z8rf_160",fp="_freightOption__value_6z8rf_166",pp="_freightOption__title_6z8rf_177",mp="_freightOption__title_item_6z8rf_181",hp="_freightOption__paragraph_6z8rf_192",fe={shippingFreight:Kf,shippingFreight__postalCodeGrid:Xf,shippingFreight__grid:Qf,shippingFreight__grid__title:Yf,shippingFreight__grid__remember:Zf,postalCodeContainer:Jf,deliveryStatusBar__tag:ep,deliveryStatusBarError__tag:tp,deliveryInfo:rp,deliveryInfo__content:np,deliveryInfo__text:op,deliveryInfo__title:ip,deliveryInfo__subtitle:ap,deliveryInfo__tooltipIcon:sp,deliveryInfo__tooltip:cp,freightGrid:lp,freightContainer:up,freightOption__content:dp,freightOption__value:fp,freightOption__title:pp,freightOption__title_item:mp,freightOption__paragraph:hp,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},gp=({icon:e,title:t,subtitle:r,packageCount:n,packageUnit:o="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=B.useState(!1),f=B.useRef(null),m=()=>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:m,onMouseLeave:m,"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})]})]})]})},yp=({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})]})})})]})}),_p=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),vp=({children:e})=>s.jsx("div",{className:fe.freightGrid,children:e}),bp=({children:e})=>s.jsx("div",{className:fe.postalCodeContainer,children:e}),Ra=({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]})}),xp=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},Cp=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},Sp=({component:e,parent:t,top:r,left:n,target:o,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=Ne();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})})},Ap=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:n,quantity:o,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var I,M,$,E;const f=Qe(),m=Qe(q=>q.shipping),[d,p]=B.useState(),[h,y]=B.useState(!1),[g,v]=B.useState(!1),[A,_]=B.useState(!1),S=(M=(I=f.shippingData)==null?void 0:I.address)==null?void 0:M.postalCode,C=!(d!=null&&d.length)&&S?S:d,j=B.useRef(null),x=async q=>{const U=q.target.value.replace(/\D/g,"").slice(0,8);U.length>5?p(U.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):p(U)},P=async q=>{const F=q.target.value.replace(/\D/g,"");try{if((await Co.get(`https://viacep.com.br/ws/${F}/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.")}},D=async()=>{y(!0);try{const q=await Co.post("/api/checkout/simulation",{items:[{id:n,quantity:o,seller:t}],country:"BRA",postalCode:C});e(Cp(q.data))}catch(q){console.error("Erro ao atualizar o documento:",q)}finally{y(!1),m(C,"BRA")}},R=async()=>{if(!n){_(!0),setTimeout(()=>_(!1),1500);return}await P({target:{value:C}}),h||(D(),a(!0))};return s.jsxs("div",{ref:j,style:{position:"relative"},children:[!n&&A?s.jsx(Sp,{component:c,isOpen:A,parent:j.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:(E=($=f.shippingData)==null?void 0:$.address)==null?void 0:E.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>n?null:_(!0),onMouseOut:()=>n?null:_(!1),mode:"simple",onChange:x,onKeyDown:q=>{q.key==="Enter"&&R()},className:fe["input-modifier"],feedback:g?"error":"none"}),right:s.jsx(b.Button,{onClick:R,size:r,title:"button",children:h?s.jsx(b.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},Rp=({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(et,{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})]}),Ep=({children:e})=>s.jsx("div",{className:fe.freightContainer,children:e}),wp=({className:e,sellerId:t,skuId:r,quantity:n,size:o,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,f]=B.useState(""),[m,d]=B.useState([]),[p,h]=B.useState(""),[y,g]=B.useState(!1),v=_=>f(_),A=_=>{d(_),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:_.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return s.jsxs(Ep,{className:e,children:[s.jsxs(Rp,{freightConfig:c.freightConfig,children:[s.jsx(bp,{children:s.jsx(Ap,{onUpdateFreightItems:A,skuId:r,quantity:n,size:o,sellerId:t,local:a,setError:h,setIsButtonClicked:g,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),p?s.jsx(Ra,{size:o,message:p,setError:h}):m.length>0&&s.jsx(Ra,{size:o,message:c.freightConfig.messages.delivered_by,seller:i})]}),y&&!p?m.length>0&&s.jsxs(_p,{children:[s.jsx(vp,{children:m.filter(({id:_})=>!_.includes("Retirada")).map(_=>s.jsx(yp,{id:_.id,value:Zn({valueInCents:_.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:_.name,paragraph:`${c.freightConfig.messages.prefix_days}${xp(_.shippingEstimate)}`,radioValue:u,changeValue:v},_.id))}),c.deliveryInfoBoxesAllowed?s.jsx(gp,{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]})},$c=B.createContext({}),jp=({children:e,item:t,index:r,shelfTitle:n,...o})=>{const[i,a]=B.useState(null),c=B.useRef(null),l=B.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:f}=ge(),m=y=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:y}})},d=()=>{m("add_to_wishlist")},p=()=>{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}),m("select_item")};return s.jsx($c.Provider,{value:B.useMemo(()=>({...o,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:h,sendAddToCartEvent:p}),[o,t,c,i]),children:e})},Oe=()=>{const e=B.useContext($c);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"},Bc=({callback:e,children:t,className:r,data:n,isKit:o,...i})=>{const{item:{availability:{status:a},image:c}}=Oe();return a?s.jsxs("div",{...i,className:b.helpers.classNameConcat(Se["product-card--actions"],r),children:[s.jsxs(we.Wrapper,{type:"actions--group",children:[s.jsx(we.Price,{}),s.jsx("div",{className:Se["product-card--actions--selectors"],children:!o&&s.jsx(we.StyleSelector,{data:n,images:c,callback:e})})]}),t]}):null};Bc.displayName="ProductCard.Actions";const qc=({className:e,isKit:t,...r})=>{const{addToCart:n}=We(),{isMobile:o=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Oe(),f=()=>{var p;if(!i)return;const d=eo(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:(p=c==null?void 0:c.image.find(h=>u.TEXTURE_IMAGE.includes(h.alternateName)))==null?void 0:p.url}),l()},m=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":m})};qc.displayName="ProductCard.Actions.BuyButton";const Hc=({product:e,tag:t,size:r="small"})=>{const n=e.offers.offers[0],{CONSTANTS:o,WishListToggle:i}=Oe();return s.jsxs(we.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"})]})};Hc.displayName="ProductCard.Actions.Header";const zc=({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:m,CONSTANTS:d}=Oe(),p=$a({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(je,{href:`/${l}/p`,onClick:f,onMouseUp:h=>{h.button===1&&f(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(m))},children:s.jsx("div",{className:Se["product-card--image--container"],children:Array.isArray(p)&&p.map(({url:h,alternateName:y},g)=>B.createElement(Me.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(we.Video,{url:u,poster:p[0].url}),t]})};zc.displayName="ProductCard.Media.Media";const Fc=({className:e,callback:t,children:r,...n})=>{const{isMobile:o,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Oe(),{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})]})};Fc.displayName="ProductCard.OutStock";const Uc=({children:e,className:t="",index:r,isMobile:n=!1,item:o,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:f,...m})=>s.jsx(jp,{item:o,isMobile:n,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:f,children:s.jsx("div",{...m,className:b.helpers.classNameConcat(Se["product-card--wrapper"],t),"data-size":i,children:e})});Uc.displayName="ProductCard.Root";const Gc=({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})]});Gc.displayName="ProductCard.SizeSelector.Item";const Wc=({active:e=!1,callback:t,selectedSku:r=null,item:n,setNotify:o})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Oe();n.productId=i.id;const u=Ma(n),f=Na(n,"tamanho");!u&&!l.current.availableSkus.includes(f)&&l.current.availableSkus.push(f);const m=B.useCallback(p=>{const h=r===p?null:p;typeof c=="function"&&c(h),typeof t=="function"&&t(h)},[t,c,r]),d=B.useCallback(()=>{if(u&&typeof o=="function"){o(i,n);return}m(n)},[n,o,m,u,i]);return s.jsx(Gc,{active:e,disabled:u,label:f,onClick:()=>d(),size:a?"x-small":"small",value:n})};Wc.displayName="ProductCard.SizeSelector.SkuItem";const Vc=({callback:e,className:t="",children:r,setNotify:n,...o})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Oe();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(Wc,{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})]})};Vc.displayName="ProductCard.SizeSelector";const Xn=({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(Me.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]})})]})]}),Pp=({children:e,callback:t,data:r,total:n=4,size:o,...i})=>{const{index:a}=Oe(),{triggerSelectItemEventRef:c}=ge();return s.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,n).map((l,u)=>s.jsx(Xn,{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(Xn,{size:o,total:r.length-n,more:!0})]})},Kc=({callback:e,className:t,data:r,images:n=[],findTexture:o,...i})=>{const{CONSTANTS:a}=Oe(),c=o||a.TEXTURE_IMAGE,l=n==null?void 0:n.find(u=>c.includes(u.alternateName));return s.jsx(Pp,{...i,callback:e,className:b.helpers.classNameConcat(Se["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&s.jsx(Xn,{active:!0,size:"x-small",src:l.url})})};Kc.displayName="ProductCard.StyleSelector";const Xc=({className:e,hasDecimal:t,...r})=>{const{isMobile:n,item:{offers:{lowPrice:o,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Oe();l.current.priceInfo={price:o,listPrice:i};const u=Le(i,t),f=Le(o,t),m=Le(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 ${m}`,size:"small"}):null]})})})};Xc.displayName="ProductCard.Price";const Qc=({tag:e,className:t})=>{const{item:{name:r}}=Oe();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})})})})]})};Qc.displayName="ProductCard.Title";const Yc=({className:e,url:t,poster:r,...n})=>{const{element:o}=Oe();return B.useEffect(()=>{if(!(o!=null&&o.current))return;const i=o.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(f=>{f.forEach(m=>{Ba(m.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(Me.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};Yc.displayName="ProductCard.Media.Video";const Zc=({children:e,className:t,type:r,...n})=>s.jsx("div",{...n,className:b.helpers.classNameConcat(Se[`product-card--${r}`],t),children:e});Zc.displayName="ProductCard.Wrapper";const we={Actions:Bc,BuyButton:qc,Header:Hc,Media:zc,Root:Uc,OutStock:Fc,Price:Xc,SizeSelector:Vc,StyleSelector:Kc,Title:Qc,Video:Yc,Wrapper:Zc},Ea=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:n})=>{const o=La(e.imageUrl,n.pdp),{nextimage:i}=Te();return s.jsx(i,{src:o,alt:e.imageLabel,objectFit:"contain",...n.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Ip=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:n}=ge(),o=B.useRef(!1);return s.jsx(Me.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})},Op={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},Jc=({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:m=>{i(m)},className:Op["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:m=>c==null?void 0:c.navigateTo(m)})}),s.jsxs(b.Carousel.Body,{children:[s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ea,{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(Ip,{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((m,d)=>d===0?null:s.jsx(b.Carousel.Item,{style:l,children:s.jsx(Ea,{image:m,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})},`PDP_gallery_${d}`))]})]})};Jc.displayName="PDP.Carousel";const Np=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{video:r,productName:n}=to(),[o,i]=B.useState({show:!1,initialIndex:0});B.useEffect(()=>(o.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[o]);const a=c=>{i({show:!0,initialIndex:c})};return s.jsx(s.Fragment,{children:s.jsx(Jc,{images:e,video:r,handleZoom:a,productName:n,PRODUCT_IMAGE_DIMENSIONS:t})})},el=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t})=>{const{images:r}=to(),n=B.useMemo(()=>{const o=r.filter(i=>!e.includes(i.imageLabel));return o.length>0?o:r},[]);return s.jsx(Np,{productImgs:n,PRODUCT_IMAGE_DIMENSIONS:t})};el.displayName="PDP.Gallery";const Tp=Object.freeze(Object.defineProperty({__proto__:null,Gallery:el},Symbol.toStringTag,{value:"Module"})),Mp={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},bo=({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(Mp["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})]});bo.displayName="SnackBar";const tl=B.createContext({}),kp=({data:e,children:t,...r})=>{var h,y,g,v,A,_,S,C,j,x,P,D,R;const[n,o]=B.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:(C=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:C.backgroundColor,textColorVariant:(x=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:x.textColorVariant,content:((D=(P=e==null?void 0:e.content)==null?void 0:P.content)==null?void 0:D.items)??[]},u=(R=l.content)==null?void 0:R.filter(I=>!I.countDownEndDate||new Date(I.countDownEndDate)>new Date),f=u.length>1,m={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{o(!1)},p=b.helpers.ValidateProp({fieldTypes:at.Mode,property:l.textColorVariant,fallback:"default"});return s.jsx(tl.Provider,{value:{isOpen:n,setIsOpen:o,hasCarousel:f,backgroundStyle:m,handleCloseTipbar:d,mode:p,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},qe=()=>B.useContext(tl),Lp=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=qe();return s.jsx(Un,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Dp="_tipbar_bt3p0_1",$p="_tipbar__carousel_bt3p0_15",yt={tipbar:Dp,tipbar__carousel:$p,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},Bp=({coupon:e,feedbackTitle:t,feedbackDescription:r,...n})=>{const{CONSTANTS:o}=qe(),[i,a]=B.useState({status:!1,showSnackBar:!1}),c=()=>{a({status:!0,showSnackBar:!0})};return B.useEffect(()=>{i.status&&setTimeout(()=>{a({status:!0,showSnackBar:!1})},o.TIPBAR_CONFIGS.snackbar_timeout)},[i]),s.jsxs(s.Fragment,{children:[s.jsx(b.Button,{...n,onClick:c,disabled:i.status,className:yt["tipbar-item__coupon"],children:i.status?"Cupom aplicado":"Aplicar cupom"}),i.showSnackBar&&(t||r)&&s.jsx(bo,{title:t,subtitle:r,Z_INDEX_WAR:o.Z_INDEX_WAR},`feedback-coupon-${e}`)]})},qp=({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})]})}),Hp=({className:e,description:t,staticZone:r,title:n,type:o})=>{const{mode:i}=qe();if(o==="countdown")return s.jsx(Lp,{dateEnd:r.countDownEndDate,size:"x-small",mode:i});if(o==="coupon"){const a=b.helpers.ValidateProp({fieldTypes:at.Mode,property:r.couponButtonMode,fallback:"default"}),c=b.helpers.ValidateProp({fieldTypes:at.VariantsExtended,property:r.couponButtonVariant,fallback:"primary"});return r.coupon?s.jsx(Bp,{coupon:r.coupon,mode:a,variant:c,feedbackTitle:r.couponFeedbackTitle,feedbackDescription:r.couponFeedbackDescription}):null}return s.jsx(qp,{title:n,description:t,mode:i,className:e})},zp=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:n})=>{const{carouselProps:o,CONSTANTS:i}=qe(),a=B.useRef(null),c=(u,f)=>{var m,d;u.stopPropagation(),u.preventDefault(),f==="prev"?(m=o.controller)==null||m.prevPage():(d=o.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=B.useCallback(()=>{if(n&&o.controller){const u=setInterval(()=>{var f;(f=o.controller)==null||f.nextPage()},n);a.current=u}},[n,o]);return B.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[n,l]),s.jsxs(b.Carousel.Root,{innerRef:u=>{o.initialize(u)},className:yt.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})}})]})},wa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=qe();return s.jsx(b.Button,{title:"fechar tipbar",className:yt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:s.jsx(b.Icon,{name:r.ICONS.close})}})},Fp=({children:e})=>{const{hasCarousel:t,mode:r,hasCloseBtn:n,backgroundStyle:o,showCarouselArrows:i,slideTranstionTimer:a,handleCloseTipbar:c}=qe(),l=t&&i;return s.jsx("div",{style:o,"data-hasclosebtn":n,className:yt.tipbar,children:t?s.jsxs(s.Fragment,{children:[s.jsx(zp,{mode:r,showCarouselArrows:l,slideTranstionTimer:a,children:e}),n&&s.jsx(wa,{handleCloseTipbar:c,showCarouselArrows:l,mode:r})]}):s.jsxs(s.Fragment,{children:[e,n&&s.jsx(wa,{handleCloseTipbar:c,mode:r})]})})},Up=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:n,carouselProps:o}=qe(),i=s.jsx("div",{...r,className:yt["tipbar-item"],children:e});return n?s.jsx(b.Carousel.Item,{style:o.itemsStyles,children:i}):i},rl=({className:e})=>{const{isOpen:t,slices:r}=qe();return r.length&&t?s.jsx(Fp,{children:r.map((n,o)=>{var i;return s.jsx(s.Fragment,{children:s.jsx(gt,{href:n.link,children:s.jsx(Up,{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(Hp,{staticZone:n,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${o}`)})}):null};rl.displayName="TipBar.Root";const nl=({className:e,...t})=>s.jsx(kp,{...t,children:s.jsx(rl,{className:e})});nl.displayName="TipBar";const Gp="_container_1sy8s_16",$e={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Gp,"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"},Wp=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const n=Object.values(e.products).length;return s.jsxs("div",{className:$e["add-itens-to-cart-container"],children:[s.jsxs("div",{className:$e["add-itens-to-cart-container-values"],children:[s.jsx("div",{className:$e["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:$e["add-itens-to-cart-total"],children:s.jsx("span",{children:Zn({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),s.jsx(b.Button,{onClick:t,className:$e["add-button"],size:"large",disabled:n===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},Vp=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},[]),Kp=({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=eo(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}},Xp="_carousel_245ib_1",Qp="_shelf__container_245ib_14",Yp="_shelf_without_carousel_245ib_34",it={carousel:Xp,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:Qp,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:Yp},ja=({title:e})=>s.jsx("div",{className:it.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",Ze["responsive-mobile-flex"]),children:e}),s.jsx("h2",{className:b.helpers.classNameConcat("typography-style-heading-md",Ze["responsive-desktop-flex"]),children:e})]})})}),Zp=({children:e,ICONS:t,itemsPerPage:r,title:n})=>{const{isMobile:o}=Ne(),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=B.Children.toArray(e).length;return o||f>=4?s.jsxs(b.Carousel.Root,{innerRef:d=>{a(d)},className:it.carousel,children:[s.jsxs("div",{className:it["custom-controllers"],children:[n&&s.jsx(ja,{title:n}),i<f&&s.jsxs(b.Carousel.Controller,{className:it["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:B.Children.map(e,(d,p)=>s.jsx(b.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${n}_${p}`))})]}):s.jsxs(s.Fragment,{children:[n&&s.jsx(ja,{title:n}),s.jsx("div",{className:it.shelf_without_carousel,children:e})]})},Jp={Shelf:Zp},em=({CONSTANTS:e,inView:t,products:r,innerRef:n,WishListToggle:o})=>{const i=B.useMemo(()=>Vp(r),[r]),{isMobile:a}=Ne(),{addItemsToCart:c}=We(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=Yn(),[f,m]=B.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}}})},p=({selectedProduct:h,productId:y})=>{const g=Kp({selectedProduct:h,productId:y,prevState:f,mainSellerId:e.StoreConfig_MainSellerId});m(g)};return B.useEffect(()=>{if(!t||i.length===0)return;const h=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:h},outsideEcommerceData:{item_list_name:h}}})},[t]),s.jsxs("div",{className:$e.container,ref:n,children:[s.jsx("div",{className:$e["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:s.jsx(Jp.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,_,S;const g=u(h.cluster.highlights),{availability:{status:v}}=h;return v?s.jsxs(we.Root,{item:{...h,image:io.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(we.Header,{product:h,tag:g.commercial}),s.jsx(we.Media,{}),s.jsxs(we.Wrapper,{type:"body",children:[s.jsx(we.Title,{tag:{value:(A=g.institucional)==null?void 0:A.value,enableIcon:(_=g.institucional)==null?void 0:_.enableIcon,icon:(S=g.institucional)==null?void 0:S.icon}}),s.jsx(we.Actions,{children:s.jsx(we.SizeSelector,{callback:C=>p({selectedProduct:C,productId:h.id})})})]})]},h.id):null})})}),s.jsx("div",{className:$e["add-cart-container"],children:s.jsx(Wp,{handleAddAllToCart:d,selectedProducts:f,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},tm={teamComponents:{AddToCart:lo,BackToTop:dd,BuyPackage:em,...zf,FreightCalculation:wp,Header:Dc,Link:et,Media:Me,ProductCard:we,TipBar:nl},template:{pdp:Tp},utils:{EventCollector:fd,ExternalScripts:Sd,LinkOrNotLink:gt,ObserverWrapper:co,SnackBarComponent:bo}};exports.cms=id;exports.contexts=tu;exports.data=io;exports.layout=tm;