@soma-vertical-web/multi-lib 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/constants.d.ts +1 -0
  2. package/contexts/contexts/newsletter/Context.d.ts +1 -1
  3. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  4. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  5. package/contexts/contexts/plp/PLPInfiniteContext.d.ts +6 -0
  6. package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
  7. package/contexts/contexts/search/Search.d.ts +1 -1
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -16
  10. package/contexts/store/plp.d.ts +2 -2
  11. package/data/api/DitoIngest/authorization/index.d.ts +1 -0
  12. package/data/api/DitoIngest/ditoIngestService.d.ts +3 -0
  13. package/data/helpers/plp/index.d.ts +4 -13
  14. package/data/helpers/search/facets.d.ts +1 -0
  15. package/data/helpers/search/index.d.ts +4 -0
  16. package/data/helpers/search/product/index.d.ts +13 -1
  17. package/data/helpers/search/search.d.ts +1 -0
  18. package/data/index.d.ts +2 -0
  19. package/index-AgO_aUeQ.mjs +2371 -0
  20. package/index-Cqk3VcE0.js +4 -0
  21. package/index-D0PGMDh5.js +4 -0
  22. package/index-DctCSt6v.mjs +2695 -0
  23. package/index.js +17 -17
  24. package/index.mjs +11380 -9243
  25. package/index2.js +2 -2
  26. package/index2.mjs +736 -653
  27. package/layout/index.d.ts +4 -4
  28. package/layout/team-component/Newsletter/index.d.ts +1 -1
  29. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  30. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +2 -6
  31. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  34. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  35. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  37. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  38. package/layout/template/PDC/PDC.d.ts +1 -1
  39. package/layout/template/PDC/index.d.ts +2 -2
  40. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
  41. package/layout/template/SearchResult/Composite/Products.d.ts +1 -1
  42. package/package.json +1 -1
  43. package/server.d.ts +6 -0
  44. package/style.css +1 -1
  45. package/types/cms/Sections/Newsletter/index.d.ts +4 -0
  46. package/types/contexts/contexts/plp.d.ts +62 -20
  47. package/types/contexts/contexts/search.d.ts +29 -28
  48. package/types/contexts/hooks/index.d.ts +0 -2
  49. package/types/data/api/dito-ingest/index.d.ts +12 -1
  50. package/types/layout/team-components/Newsletter/index.d.ts +6 -0
  51. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  52. package/types/layout/templates/PDP/index.d.ts +0 -1
  53. package/types/layout/templates/PLP/index.d.ts +14 -4
@@ -0,0 +1,4 @@
1
+ "use strict";const Bn=require("jose"),Gn=require("yup"),w=require("react/jsx-runtime"),kn=require("@soma-vertical-web/core-components");function Hn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const j=Hn(Gn),Oe=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),or=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Oe(0):Oe(t/100),ar=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},st=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},ir=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},lr=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},cr=(t,e)=>t.replace(e,"").trim(),qn=t=>t.replace(/\//g,""),ur=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:f,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=f;const p=(s=u==null?void 0:u[0])==null?void 0:s.installments;if(p){const{count:y,value:d}=p[p.length-1];r.installments={count:y,value:d/100}}};let o=!0;const a=t.reduce((i,l)=>{var u;const c={name:l.name,sku:l.itemId,value:((u=l.Tamanho)==null?void 0:u[0])??st(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&f.length>0&&(c.available=!0,n(f[0],{...c,sellerId:f[0].sellerId,sellerName:f[0].sellerName})),c.available===!1&&(o=!1),i.push(c),i},[]);return{...r,sizes:a,allSizesAvailable:o}},sr=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,fr=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},pr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],dr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},yr=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},vr=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},Wn=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},gr=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Xn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:sr,formatPriceToCurrency:Oe,freightParsePrice:or,getAspectRatio:Wn,getColorAndSizeFromSkuName:ir,getDiscountPercent:ar,getFirstImages:vr,getProductNameWithoutSku:cr,getSKUName:lr,getSkuInfos:ur,getThumbImage:pr,getValidOffer:fr,removeSlashes:qn,resizingImg:dr,setVideoPlay:gr,splitNameAndSizeFromFullName:st,updatedResizedImg:yr},Symbol.toStringTag,{value:"Module"})),Vn={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},T=Promise.resolve(!1),mr={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>T,addItem:()=>T,addSellerCode:()=>T,addMarketingData:()=>T,emptyCart:()=>({}),removeItem:()=>T,setIsOpen:()=>({}),shipping:()=>T,shippingUpdate:()=>T,toggleServiceToProduct:()=>T,updateItemQuantity:()=>T,insertProfileEmail:()=>T,setRecentlyAddedProducts:()=>({})},ft=t=>t===0,hr=(t,e)=>{if(!t||t.length===0)return[];let r="";const n=[],o=t.match(/\d+/g)??[];for(const a of o){const i=e[Number(a)];i&&(r+=(r?"/":"")+i,n.push(r))}return n},Sr=(t,e)=>{const{availability:r,additionalInfo:{brandName:n},bundleItems:o,id:a,uniqueId:i,detailUrl:l,ean:c,imageUrl:f,name:u,listPrice:p,quantity:s,price:y,priceDefinition:d,productCategories:h,productCategoryIds:_,productId:b,refId:O,seller:g,referenceId:R,offerings:I,productRefId:L,skuName:N,sellingPrice:G}=t;return{availability:r,bundleItems:o,referenceId:R,productRefId:L,id:a,ean:c,uniqueId:i,itemOffered:{additionalProperty:[],brand:{name:n},categories:hr(_,h),categoriesIds:_,gtin:O,image:[{alternateName:(e==null?void 0:e.MAIN_IMAGE)??"1",url:f}],name:u,isVariationOf:{name:u,productGroupID:b},sku:a,slug:l,skuName:N},listPrice:p,quantity:s,offerings:I,price:y,priceDefinition:d,sellingPrice:G,seller:g}},_r=(t,e)=>{const r=t.map(n=>({id:n.uniqueId,quantity:n.quantity,seller:n.seller}));return Array.isArray(e)?[...r,...e]:[...r,e]},Er=(t,e)=>{const r=t.find(n=>n.id===e);if(r){const n=t.map((o,a)=>{var i,l;return{id:((i=o.itemOffered)==null?void 0:i.sku)??"",index:a,quantity:(r==null?void 0:r.id)===((l=o.itemOffered)==null?void 0:l.sku)?0:o.quantity,seller:o.seller??""}});return{updateItems:n,filterItems:n.filter(o=>o.id!==e)}}return{updateItems:[],filterItems:[]}},Ar=(t,e,r)=>t.filter(n=>n.availability!=="withoutStock"&&n.availability!=="https://schema.org/OutOfStock").map((n,o)=>{var a,i;return n.id===e?{id:n.id,index:o,quantity:r,seller:n.seller,sku:((a=n.itemOffered)==null?void 0:a.sku)??""}:{id:n.id,index:o,quantity:n.quantity,seller:n.seller,sku:((i=n.itemOffered)==null?void 0:i.sku)??""}}),Pr=(t,e)=>t.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===e),zn=(t,e)=>{var r;return Array.isArray(t)?(((r=t==null?void 0:t.find(n=>{var o;return((o=n==null?void 0:n.id)==null?void 0:o.toLowerCase())===e}))==null?void 0:r.value)??0)/100:0},Kn=t=>{const e=t.reduce((o,a)=>{const i=ft(a.price)?0:a.quantity;return o+i},0),r=t.reduce((o,a)=>o+a.price*a.quantity,0),n=t.reduce((o,a)=>o+a.listPrice*a.quantity,0);return{totalItems:e,total:r,subTotal:n}},Yn=t=>Array.isArray(t)?t.filter(e=>e.availability!=="withoutStock").reduce((e,r)=>e+(ft(r==null?void 0:r.price)?0:r.quantity),0):0,pt=(t,e)=>{const{items:r,orderFormId:n,...o}=t;return{...o,id:n,items:Array.isArray(r)?r.map(a=>Sr(a,e)):[]}},br=(t,e)=>{const r=t.find(n=>n.id===e);return r?r.availability==="unavailableItemFulfillment":!1},Qn=(t,e)=>{const r=t.sku,n=t.isVariantOf.hasVariant.find(o=>o.sku===r);return n?n.name.split(e)[1]:"--"},Or=(t,e,r=!1)=>!t&&e!==""?{code:300,value:e,statusOk:r}:t===e?{code:200,value:e,statusOk:r}:{code:400,value:e,statusOk:r},Jn=(t,e)=>{const r=new Set;return[t,...e].filter(n=>!r.has(n)&&r.add(n),r)},Rr=(t,e)=>e&&Array.isArray(e)&&e.find(n=>n.id===t)?Promise.resolve(t):Promise.resolve(!1),Ir=(t,e)=>e?Promise.resolve(t[e]):Promise.resolve(!1),wr=async t=>{try{const e=await t();if(typeof e!="boolean")return e}catch(e){console.error(`[Error orderForm]: ${e}`)}return!1},Tr=(t,e)=>{if(e!==-1){const r=Number(t);return r?r+1:1}return t??1},Cr=(t,e)=>Array.isArray(t)?t.filter(r=>e==null?void 0:e.some(n=>n.id===r.id)):[],Nr=async(t,e)=>t.then(r=>[...r??[],...e??[]]),Zn=async(t,e,r,n)=>{const{priority:o="auto",body:a}=e;return fetch(t,{headers:{"Content-Type":"application/json"},priority:o,method:"POST",body:JSON.stringify(a)}).then(async i=>{const l=await i.json();return r?l:pt(l,n)})},Dr=(t,e,r)=>({notifications:[...t.notifications,{id:Date.now(),message:e,callback:r}]}),xr=t=>[...Array.isArray(t)?t:[t],"faststore"],Fr=t=>{const e=t.get("utm_source")||V("utm_source"),r=t.get("utm_campaign")||V("utm_campaign"),n=t.get("utm_medium")||V("utm_medium"),o=t.get("utmi_cp")||V("utmi_cp"),a=t.get("utmi_pc")||V("utmi_pc"),i=t.get("utmi_p")||V("utmi_p");return{...e&&{utmSource:e},...n&&{utmMedium:n},...r&&{utmCampaign:r},...o&&{utmiCampaign:o},...a&&{utmiPart:a},...i&&{utmipage:i}}},V=t=>{if(!t||typeof window>"u")return;const e=window.location.href;t=t.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),n=r.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},Mr=(t,e,r="BR")=>{const n=e,o={country:r,addressType:"",postalCode:t||null,city:"",state:"",street:"",number:"",neighborhood:"",complement:"",reference:"",geoCoordinates:[]};if(n){const a=typeof n=="object"&&"latitude"in n?n.latitude:null,i=typeof n=="object"&&"longitude"in n?n.longitude:null;o.geoCoordinates=typeof a=="number"&&typeof i=="number"?{latitude:a,longitude:i}:null}return[o]},eo=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Vn,addItemOrder:_r,addNotification:Dr,createItemOrder:Sr,createNewAddress:Mr,fetchCartAPI:Zn,findItemIndex:Pr,findOptions:Cr,findTotalizerValue:zn,getCategories:hr,getCode:Or,getQuantity:Tr,getRemoveId:Rr,getSize:Qn,getTotalItems:Yn,getTotalizer:Kn,getUrlParameter:V,getValue:Ir,initialState:mr,isGift:ft,marketingTagsBuilder:xr,mergeOptionsPromise:Nr,mountMarketingData:Fr,orderFormValues:pt,promiseDefault:T,removeQuantity:Er,updateItemSellerExternal:br,updateOrderFormPromise:wr,updateQuantity:Ar,wishlistArray:Jn},Symbol.toStringTag,{value:"Module"})),nt={baseUrl:""},to=t=>{nt.baseUrl||Object.defineProperty(nt,"baseUrl",{value:`https://${t}.myvtex.com`,writable:!1,configurable:!1})},dt=(t,e)=>fetch(`${nt.baseUrl}${t}`,e),ro=async(t,e,r=!1,n)=>{const{priority:o="auto",body:a}=e,i=await dt(t,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(a),priority:o});if(!i.ok){const c=await i.json().catch(()=>({message:"Unknown error"}));throw new Error(c.message||`HTTP ${i.status}`)}const l=await i.json();return r?l:pt(l,n)},wt="fuzzy",Tt="operator",no=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),$r=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},Lr=(t,e)=>e?t==="category-1":!1,oo=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),ao=t=>t.type==="TEXT",io=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),lo=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},co=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),uo=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!Lr(i.key,o)).map(i=>ao(i)?lo(i):co(i))},so=(t,e)=>{const r=t.find(({key:o})=>o===wt)??null,n=t.find(({key:o})=>o===Tt)??null;r&&io(r)&&e.append(wt,r.value),n&&oo(n)&&e.append(Tt,n.value)},yt=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),Ur=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/"),n=t.filter(({value:a})=>!r.includes(decodeURIComponent(a))).map(a=>({...a,value:decodeURIComponent(a.value)})),{isDepartment:o}=no(n);return n==null?void 0:n.filter(a=>!Lr(a.key,o))},fo=t=>t.getAll("facets").flatMap(e=>{const[r,...n]=e.split("/");return!r||n.length===0?[]:[{key:r,value:n.join("/")}]}),po=t=>{const e=Bn.decodeJwt(t??"");return{email:e.sub,userId:e.userId}},yo=({pathname:t,searchParams:e},r)=>{const n=e.get("sort")??"",o=e.get("query")??null,a=parseInt(e.get("page")??"1",10);return{sort:n,facets:yt(r),term:o,base:o?"":t,page:a}},vo=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},go=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)},jr={parseSearchState:yo,convertSearchParams:vo,filterNonRootFacets:Ur,selectedFacets:yt,filterNonCategorySelected:$r},mo=Object.freeze(Object.defineProperty({__proto__:null,default:jr},Symbol.toStringTag,{value:"Module"}));var Ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Br(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ho(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var Gr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(Gr);var Ne={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(Ne);var vt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Ne;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(vt);var kr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(jn,Rt){for(var It in Rt)Object.defineProperty(jn,It,{enumerable:!0,get:Rt[It]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return Q},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return U},ESLINT_DEFAULT_DIRS:function(){return Mn},GSP_NO_RETURNED_VALUE:function(){return Tn},GSSP_COMPONENT_MEMBER_ERROR:function(){return Dn},GSSP_NO_RETURNED_VALUE:function(){return Cn},INSTRUMENTATION_HOOK_FILENAME:function(){return N},MIDDLEWARE_FILENAME:function(){return I},MIDDLEWARE_LOCATION_REGEXP:function(){return L},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return g},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return h},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return y},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return _},NEXT_CACHE_TAG_MAX_LENGTH:function(){return b},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return xn},PAGES_DIR_ALIAS:function(){return G},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ae},ROOT_DIR_ALIAS:function(){return D},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return X},RSC_ACTION_ENCRYPTION_ALIAS:function(){return C},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_VALIDATE_ALIAS:function(){return P},RSC_MOD_REF_PROXY_ALIAS:function(){return k},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return wn},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return he},SERVER_PROPS_SSG_CONFLICT:function(){return ie},SERVER_RUNTIME:function(){return $n},SSG_FALLBACK_EXPORT_ERROR:function(){return Fn},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Ue},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return In},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Nn},WEBPACK_LAYERS:function(){return Ln},WEBPACK_RESOURCE_QUERIES:function(){return Un}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",c=".action",f=".json",u=".meta",p=".body",s="x-next-cache-tags",y="x-next-cache-soft-tags",d="x-next-revalidated-tags",h="x-next-revalidate-tag-token",_=128,b=256,O=1024,g="_N_T_",R=31536e3,I="middleware",L=`(?:src/)?${I}`,N="instrumentation",G="private-next-pages",U="private-dot-next",D="private-next-root-dir",Q="private-next-app-dir",k="private-next-rsc-mod-ref-proxy",P="private-next-rsc-action-validate",x="private-next-rsc-server-reference",C="private-next-rsc-action-encryption",X="private-next-rsc-action-client-wrapper",ae="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Ue="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",he="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ie="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",In="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",wn="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Tn="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Cn="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Nn="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Dn="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",xn='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Fn="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Mn=["app","pages","components","lib","src"],$n={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},Ln={...E,GROUP:{serverOnly:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.instrument],clientOnly:[E.serverSideRendering,E.appPagesBrowser],nonClientServerTarget:[E.middleware,E.api],app:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument]}},Un={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(kr);var Hr={},gt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Ne;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(gt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=gt,r=vt;function n(o,a,i,l){if(!a||a===i)return o;const c=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(c,"/api")||(0,r.pathHasPrefix)(c,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(Hr);var qr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(qr);var Wr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const c=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(f=>f.toLowerCase()===o))return l}}}})(Wr);const So=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Nt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(So).join(e),_o=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Nt(a)).join(","):Nt(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Eo=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),Ao=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},Po=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},bo=new Set(["brand","category","department","subcategory","collection","cluster"]),Oo=t=>typeof(t==null?void 0:t.pageType)=="string"&&bo.has(t==null?void 0:t.pageType.toLowerCase()),Ro=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),Xr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),Io=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:_o,createSeoCategory:Eo,findCategory:Ao,formattedSimilars:Xr,isCollectionPageType:Oo,notFindCategoryError:Po,responseAdapter:Ro},Symbol.toStringTag,{value:"Module"})),ue={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},mt=async(t,e={})=>{const{method:r="GET",body:n,headers:o={},priority:a="auto",cache:i="default"}=e;return fetch(t,{method:r,headers:{...o,Accept:"application/json","Content-Type":"application/json"},priority:a,cache:i,...n?{body:JSON.stringify(n)}:{}}).then(l=>l.json()).catch(l=>{console.error("[ERROR FETCH VTEX]",l)})},le=new Map;async function wo(t,e={}){var r;try{const{abort:n=!1}=e,o=new AbortController;n&&(le.has(t)&&((r=le.get(t))==null||r.abort(),le.delete(t)),le.set(t,o));const a=mt(t,{...e,...n?{signal:o.signal}:{}});return n&&le.delete(t),a}catch(n){if(n.name==="AbortError"){console.log(`[REQUEST CANCELLED]: ${t}`);return}throw console.error(`[ERROR API]: ${n.message}`),n}}const To=j.object({orderFormId:j.string().required(),coupon:j.string().nullable(),utmSource:j.string().optional(),utmMedium:j.string().optional(),utmCampaign:j.string().optional(),utmiCampaign:j.string().optional(),utmiPart:j.string().optional(),utmipage:j.string().optional()});async function Vr({apiUrl:t,body:e}){if(!e){console.error("[ERROR FETCHING] Body is required");return}await To.validate(e);const{orderFormId:r,utmiPart:n,coupon:o,...a}=e,i=`${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;return mt(i,{method:"POST",body:{orderFormId:r,utmiPart:n??r,coupon:o??null,...a}})}const Co=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:Vr},Symbol.toStringTag,{value:"Module"})),No=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(s=>{var y,d;return((d=(y=s.config)==null?void 0:y.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:u.sections)||[],a=((p=e==null?void 0:e.filter(s=>{var y,d;return((d=(y=s.config)==null?void 0:y.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),c=a.slice(0,1),f=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ue["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ue["responsive-desktop-flex"],children:w.jsx(r,{data:c??[]})})]}),t,w.jsx("div",{className:ue["responsive-mobile-flex"],children:w.jsx(r,{data:l??[]})}),w.jsx("div",{className:ue["responsive-desktop-flex"],children:w.jsx(r,{data:f??[]})}),w.jsx(kn.Utils.Divider,{})]})};var oe=TypeError;const Do={},xo=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),Fo=ho(xo);var ht=typeof Map=="function"&&Map.prototype,je=Object.getOwnPropertyDescriptor&&ht?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Re=ht&&je&&typeof je.get=="function"?je.get:null,Dt=ht&&Map.prototype.forEach,St=typeof Set=="function"&&Set.prototype,Be=Object.getOwnPropertyDescriptor&&St?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ie=St&&Be&&typeof Be.get=="function"?Be.get:null,xt=St&&Set.prototype.forEach,Mo=typeof WeakMap=="function"&&WeakMap.prototype,se=Mo?WeakMap.prototype.has:null,$o=typeof WeakSet=="function"&&WeakSet.prototype,fe=$o?WeakSet.prototype.has:null,Lo=typeof WeakRef=="function"&&WeakRef.prototype,Ft=Lo?WeakRef.prototype.deref:null,Uo=Boolean.prototype.valueOf,jo=Object.prototype.toString,Bo=Function.prototype.toString,Go=String.prototype.match,_t=String.prototype.slice,H=String.prototype.replace,ko=String.prototype.toUpperCase,Mt=String.prototype.toLowerCase,zr=RegExp.prototype.test,$t=Array.prototype.concat,$=Array.prototype.join,Ho=Array.prototype.slice,Lt=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ge=Object.getOwnPropertySymbols,at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,Kr=Object.prototype.propertyIsEnumerable,Ut=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||zr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Lt(-t):Lt(t);if(n!==t){var o=String(n),a=_t.call(e,o.length+1);return H.call(o,r,"$&_")+"."+H.call(H.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(e,r,"$&_")}var it=Fo,Bt=it.custom,Gt=Jr(Bt)?Bt:null,Yr={__proto__:null,double:'"',single:"'"},qo={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},De=function t(e,r,n,o){var a=r||{};if(B(a,"quoteStyle")&&!B(Yr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=B(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return en(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?jt(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return l?jt(e,f):f}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return lt(e)?"[Array]":"[Object]";var p=ca(a,n);if(typeof o>"u")o=[];else if(Zr(o,e)>=0)return"[Circular]";function s(P,x,C){if(x&&(o=Ho.call(o),o.push(x)),C){var X={depth:a.depth};return B(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(P,X,n+1,o)}return t(P,a,n+1,o)}if(typeof e=="function"&&!kt(e)){var y=Zo(e),d=Se(e,s);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+$.call(d,", ")+" }":"")}if(Jr(e)){var h=re?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):at.call(e);return typeof e=="object"&&!re?ce(h):h}if(aa(e)){for(var _="<"+Mt.call(String(e.nodeName)),b=e.attributes||[],O=0;O<b.length;O++)_+=" "+b[O].name+"="+Qr(Wo(b[O].value),"double",a);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+Mt.call(String(e.nodeName))+">",_}if(lt(e)){if(e.length===0)return"[]";var g=Se(e,s);return p&&!la(g)?"["+ct(g,p)+"]":"[ "+$.call(g,", ")+" ]"}if(Vo(e)){var R=Se(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!Kr.call(e,"cause")?"{ ["+String(e)+"] "+$.call($t.call("[cause]: "+s(e.cause),R),", ")+" }":R.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(R,", ")+" }"}if(typeof e=="object"&&i){if(Gt&&typeof e[Gt]=="function"&&it)return it(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ea(e)){var I=[];return Dt&&Dt.call(e,function(P,x){I.push(s(x,e,!0)+" => "+s(P,e))}),Ht("Map",Re.call(e),I,p)}if(na(e)){var L=[];return xt&&xt.call(e,function(P){L.push(s(P,e))}),Ht("Set",Ie.call(e),L,p)}if(ta(e))return ke("WeakMap");if(oa(e))return ke("WeakSet");if(ra(e))return ke("WeakRef");if(Ko(e))return ce(s(Number(e)));if(Qo(e))return ce(s(ot.call(e)));if(Yo(e))return ce(Uo.call(e));if(zo(e))return ce(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Ct<"u"&&e===Ct)return"{ [object globalThis] }";if(!Xo(e)&&!kt(e)){var N=Se(e,s),G=Ut?Ut(e)===Object.prototype:e instanceof Object||e.constructor===Object,U=e instanceof Object?"":"null prototype",D=!G&&pe&&Object(e)===e&&pe in e?_t.call(W(e),8,-1):U?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=Q+(D||U?"["+$.call($t.call([],D||[],U||[]),": ")+"] ":"");return N.length===0?k+"{}":p?k+"{"+ct(N,p)+"}":k+"{ "+$.call(N,", ")+" }"}return String(e)};function Qr(t,e,r){var n=r.quoteStyle||e,o=Yr[n];return o+t+o}function Wo(t){return H.call(String(t),/"/g,"&quot;")}function Y(t){return!pe||!(typeof t=="object"&&(pe in t||typeof t[pe]<"u"))}function lt(t){return W(t)==="[object Array]"&&Y(t)}function Xo(t){return W(t)==="[object Date]"&&Y(t)}function kt(t){return W(t)==="[object RegExp]"&&Y(t)}function Vo(t){return W(t)==="[object Error]"&&Y(t)}function zo(t){return W(t)==="[object String]"&&Y(t)}function Ko(t){return W(t)==="[object Number]"&&Y(t)}function Yo(t){return W(t)==="[object Boolean]"&&Y(t)}function Jr(t){if(re)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!at)return!1;try{return at.call(t),!0}catch{}return!1}function Qo(t){if(!t||typeof t!="object"||!ot)return!1;try{return ot.call(t),!0}catch{}return!1}var Jo=Object.prototype.hasOwnProperty||function(t){return t in this};function B(t,e){return Jo.call(t,e)}function W(t){return jo.call(t)}function Zo(t){if(t.name)return t.name;var e=Go.call(Bo.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Zr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function ea(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Ie.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ta(t){if(!se||!t||typeof t!="object")return!1;try{se.call(t,se);try{fe.call(t,fe)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function ra(t){if(!Ft||!t||typeof t!="object")return!1;try{return Ft.call(t),!0}catch{}return!1}function na(t){if(!Ie||!t||typeof t!="object")return!1;try{Ie.call(t);try{Re.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function oa(t){if(!fe||!t||typeof t!="object")return!1;try{fe.call(t,fe);try{se.call(t,se)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function aa(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function en(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return en(_t.call(t,0,e.maxStringLength),e)+n}var o=qo[e.quoteStyle||"single"];o.lastIndex=0;var a=H.call(H.call(t,o,"\\$1"),/[\x00-\x1f]/g,ia);return Qr(a,"single",e)}function ia(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+ko.call(e.toString(16))}function ce(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function Ht(t,e,r,n){var o=n?ct(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function la(t){for(var e=0;e<t.length;e++)if(Zr(t[e],`
2
+ `)>=0)return!1;return!0}function ca(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function ct(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+$.call(t,","+r)+`
4
+ `+e.prev}function Se(t,e){var r=lt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=B(t,o)?e(t[o],t):""}var a=typeof Ge=="function"?Ge(t):[],i;if(re){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)B(t,c)&&(r&&String(Number(c))===c&&c<t.length||re&&i["$"+c]instanceof Symbol||(zr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Ge=="function")for(var f=0;f<a.length;f++)Kr.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var ua=De,sa=oe,xe=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},fa=function(t,e){if(t){var r=xe(t,e);return r&&r.value}},pa=function(t,e,r){var n=xe(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},da=function(t,e){return t?!!xe(t,e):!1},ya=function(t,e){if(t)return xe(t,e,!0)},va=function(){var e,r={assert:function(n){if(!r.has(n))throw new sa("Side channel does not contain "+ua(n))},delete:function(n){var o=e&&e.next,a=ya(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return fa(e,n)},has:function(n){return da(e,n)},set:function(n,o){e||(e={next:void 0}),pa(e,n,o)}};return r},tn=Object,ga=Error,ma=EvalError,ha=RangeError,Sa=ReferenceError,_a=SyntaxError,Ea=URIError,Aa=Math.abs,Pa=Math.floor,ba=Math.max,Oa=Math.min,Ra=Math.pow,Ia=Math.round,wa=Number.isNaN||function(e){return e!==e},Ta=wa,Ca=function(e){return Ta(e)||e===0?e:e<0?-1:1},Na=Object.getOwnPropertyDescriptor,Ee=Na;if(Ee)try{Ee([],"length")}catch{Ee=null}var rn=Ee,Ae=Object.defineProperty||!1;if(Ae)try{Ae({},"a",{value:1})}catch{Ae=!1}var Da=Ae,He,qt;function xa(){return qt||(qt=1,He=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),He}var qe,Wt;function Fa(){if(Wt)return qe;Wt=1;var t=typeof Symbol<"u"&&Symbol,e=xa();return qe=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qe}var We,Xt;function nn(){return Xt||(Xt=1,We=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),We}var Xe,Vt;function on(){if(Vt)return Xe;Vt=1;var t=tn;return Xe=t.getPrototypeOf||null,Xe}var Ma="Function.prototype.bind called on incompatible ",$a=Object.prototype.toString,La=Math.max,Ua="[object Function]",zt=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<r.length;a+=1)n[a+e.length]=r[a];return n},ja=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},Ba=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Ga=function(e){var r=this;if(typeof r!="function"||$a.apply(r)!==Ua)throw new TypeError(Ma+r);for(var n=ja(arguments,1),o,a=function(){if(this instanceof o){var u=r.apply(this,zt(n,arguments));return Object(u)===u?u:this}return r.apply(e,zt(n,arguments))},i=La(0,r.length-n.length),l=[],c=0;c<i;c++)l[c]="$"+c;if(o=Function("binder","return function ("+Ba(l,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o},ka=Ga,Fe=Function.prototype.bind||ka,Et=Function.prototype.call,Ve,Kt;function an(){return Kt||(Kt=1,Ve=Function.prototype.apply),Ve}var Ha=typeof Reflect<"u"&&Reflect&&Reflect.apply,qa=Fe,Wa=an(),Xa=Et,Va=Ha,za=Va||qa.call(Xa,Wa),Ka=Fe,Ya=oe,Qa=Et,Ja=za,ln=function(e){if(e.length<1||typeof e[0]!="function")throw new Ya("a function is required");return Ja(Ka,Qa,e)},ze,Yt;function Za(){if(Yt)return ze;Yt=1;var t=ln,e=rn,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return ze=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,ze}var Ke,Qt;function ei(){if(Qt)return Ke;Qt=1;var t=nn(),e=on(),r=Za();return Ke=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Ke}var Ye,Jt;function ti(){if(Jt)return Ye;Jt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Fe;return Ye=r.call(t,e),Ye}var v,ri=tn,ni=ga,oi=ma,ai=ha,ii=Sa,ne=_a,te=oe,li=Ea,ci=Aa,ui=Pa,si=ba,fi=Oa,pi=Ra,di=Ia,yi=Ca,cn=Function,Qe=function(t){try{return cn('"use strict"; return ('+t+").constructor;")()}catch{}},ye=rn,vi=Da,Je=function(){throw new te},gi=ye?function(){try{return arguments.callee,Je}catch{try{return ye(arguments,"callee").get}catch{return Je}}}():Je,J=Fa()(),A=ei(),mi=on(),hi=nn(),un=an(),ve=Et,ee={},Si=typeof Uint8Array>"u"||!A?v:A(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":J&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ni,"%eval%":eval,"%EvalError%":oi,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":cn,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ri,"%Object.getOwnPropertyDescriptor%":ye,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":ai,"%ReferenceError%":ii,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J&&A?A(""[Symbol.iterator]()):v,"%Symbol%":J?Symbol:v,"%SyntaxError%":ne,"%ThrowTypeError%":gi,"%TypedArray%":Si,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":li,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":ve,"%Function.prototype.apply%":un,"%Object.defineProperty%":vi,"%Object.getPrototypeOf%":mi,"%Math.abs%":ci,"%Math.floor%":ui,"%Math.max%":si,"%Math.min%":fi,"%Math.pow%":pi,"%Math.round%":di,"%Math.sign%":yi,"%Reflect.getPrototypeOf%":hi};if(A)try{null.error}catch(t){var _i=A(A(t));K["%Error.prototype%"]=_i}var Ei=function t(e){var r;if(e==="%AsyncFunction%")r=Qe("async function () {}");else if(e==="%GeneratorFunction%")r=Qe("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Qe("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return K[e]=r,r},Zt={__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"]},ge=Fe,we=ti(),Ai=ge.call(ve,Array.prototype.concat),Pi=ge.call(un,Array.prototype.splice),er=ge.call(ve,String.prototype.replace),Te=ge.call(ve,String.prototype.slice),bi=ge.call(ve,RegExp.prototype.exec),Oi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ri=/\\(\\)?/g,Ii=function(e){var r=Te(e,0,1),n=Te(e,-1);if(r==="%"&&n!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var o=[];return er(e,Oi,function(a,i,l,c){o[o.length]=l?er(c,Ri,"$1"):i||a}),o},wi=function(e,r){var n=e,o;if(we(Zt,n)&&(o=Zt[n],n="%"+o[0]+"%"),we(K,n)){var a=K[n];if(a===ee&&(a=Ei(n)),typeof a>"u"&&!r)throw new te("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ne("intrinsic "+e+" does not exist!")},At=function(e,r){if(typeof e!="string"||e.length===0)throw new te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new te('"allowMissing" argument must be a boolean');if(bi(/^%?[^%]*%?$/,e)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ii(e),o=n.length>0?n[0]:"",a=wi("%"+o+"%",r),i=a.name,l=a.value,c=!1,f=a.alias;f&&(o=f[0],Pi(n,Ai([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var s=n[u],y=Te(s,0,1),d=Te(s,-1);if((y==='"'||y==="'"||y==="`"||d==='"'||d==="'"||d==="`")&&y!==d)throw new ne("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),o+="."+s,i="%"+o+"%",we(K,i))l=K[i];else if(l!=null){if(!(s in l)){if(!r)throw new te("base intrinsic for "+e+" exists, but the property is not available.");return}if(ye&&u+1>=n.length){var h=ye(l,s);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[s]}else p=we(l,s),l=l[s];p&&!c&&(K[i]=l)}}return l},sn=At,fn=ln,Ti=fn([sn("%String.prototype.indexOf%")]),pn=function(e,r){var n=sn(e,!!r);return typeof n=="function"&&Ti(e,".prototype.")>-1?fn([n]):n},Ci=At,me=pn,Ni=De,Di=oe,tr=Ci("%Map%",!0),xi=me("Map.prototype.get",!0),Fi=me("Map.prototype.set",!0),Mi=me("Map.prototype.has",!0),$i=me("Map.prototype.delete",!0),Li=me("Map.prototype.size",!0),dn=!!tr&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Di("Side channel does not contain "+Ni(n))},delete:function(n){if(e){var o=$i(e,n);return Li(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return xi(e,n)},has:function(n){return e?Mi(e,n):!1},set:function(n,o){e||(e=new tr),Fi(e,n,o)}};return r},Ui=At,Me=pn,ji=De,_e=dn,Bi=oe,Z=Ui("%WeakMap%",!0),Gi=Me("WeakMap.prototype.get",!0),ki=Me("WeakMap.prototype.set",!0),Hi=Me("WeakMap.prototype.has",!0),qi=Me("WeakMap.prototype.delete",!0),Wi=Z?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Bi("Side channel does not contain "+ji(o))},delete:function(o){if(Z&&o&&(typeof o=="object"||typeof o=="function")){if(e)return qi(e,o)}else if(_e&&r)return r.delete(o);return!1},get:function(o){return Z&&o&&(typeof o=="object"||typeof o=="function")&&e?Gi(e,o):r&&r.get(o)},has:function(o){return Z&&o&&(typeof o=="object"||typeof o=="function")&&e?Hi(e,o):!!r&&r.has(o)},set:function(o,a){Z&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Z),ki(e,o,a)):_e&&(r||(r=_e()),r.set(o,a))}};return n}:_e,Xi=oe,Vi=De,zi=va,Ki=dn,Yi=Wi,Qi=Yi||Ki||zi,yn=function(){var e,r={assert:function(n){if(!r.has(n))throw new Xi("Side channel does not contain "+Vi(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=Qi()),e.set(n,o)}};return r},Ji=String.prototype.replace,Zi=/%20/g,Ze={RFC1738:"RFC1738",RFC3986:"RFC3986"},Pt={default:Ze.RFC3986,formatters:{RFC1738:function(t){return Ji.call(t,Zi,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ze.RFC1738,RFC3986:Ze.RFC3986},el=Pt,tl=yn,et=Object.prototype.hasOwnProperty,z=Array.isArray,$e=tl(),vn=function(e,r){return $e.set(e,r),e},Ce=function(e){return $e.has(e)},ut=function(e){return $e.get(e)},gn=function(e,r){$e.set(e,r)},F=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),rl=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(z(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},bt=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},nl=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(z(e))e.push(r);else if(e&&typeof e=="object")if(Ce(e)){var o=ut(e)+1;e[o]=r,gn(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!et.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Ce(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<a.length;l++){var c=parseInt(a[l],10);i[c+1]=r[a[l]]}return vn(i,ut(r)+1)}return[e].concat(r)}var f=e;return z(e)&&!z(r)&&(f=bt(e,n)),z(e)&&z(r)?(r.forEach(function(u,p){if(et.call(e,p)){var s=e[p];s&&typeof s=="object"&&u&&typeof u=="object"?e[p]=t(s,u,n):e.push(u)}else e[p]=u}),e):Object.keys(r).reduce(function(u,p){var s=r[p];return et.call(u,p)?u[p]=t(u[p],s,n):u[p]=s,u},f)},ol=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},al=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},tt=1024,il=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",c=0;c<i.length;c+=tt){for(var f=i.length>=tt?i.slice(c,c+tt):i,u=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===el.RFC1738&&(s===40||s===41)){u[u.length]=f.charAt(p);continue}if(s<128){u[u.length]=F[s];continue}if(s<2048){u[u.length]=F[192|s>>6]+F[128|s&63];continue}if(s<55296||s>=57344){u[u.length]=F[224|s>>12]+F[128|s>>6&63]+F[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),u[u.length]=F[240|s>>18]+F[128|s>>12&63]+F[128|s>>6&63]+F[128|s&63]}l+=u.join("")}return l},ll=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),c=0;c<l.length;++c){var f=l[c],u=i[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:f}),n.push(u))}return rl(r),e},cl=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ul=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},sl=function(e,r,n,o){if(Ce(e)){var a=ut(e)+1;return e[a]=r,gn(e,a),e}var i=[].concat(e,r);return i.length>n?vn(bt(i,{plainObjects:o}),i.length-1):i},fl=function(e,r){if(z(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},mn={arrayToObject:bt,assign:ol,combine:sl,compact:ll,decode:al,encode:il,isBuffer:ul,isOverflow:Ce,isRegExp:cl,maybeMap:fl,merge:nl},hn=yn,Pe=mn,de=Pt,pl=Object.prototype.hasOwnProperty,Sn={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},M=Array.isArray,dl=Array.prototype.push,_n=function(t,e){dl.apply(t,M(e)?e:[e])},yl=Date.prototype.toISOString,rr=de.default,S={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Pe.encode,encodeValuesOnly:!1,filter:void 0,format:rr,formatter:de.formatters[rr],indices:!1,serializeDate:function(e){return yl.call(e)},skipNulls:!1,strictNullHandling:!1},vl=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},rt={},gl=function t(e,r,n,o,a,i,l,c,f,u,p,s,y,d,h,_,b,O){for(var g=e,R=O,I=0,L=!1;(R=R.get(rt))!==void 0&&!L;){var N=R.get(e);if(I+=1,typeof N<"u"){if(N===I)throw new RangeError("Cyclic object value");L=!0}typeof R.get(rt)>"u"&&(I=0)}if(typeof u=="function"?g=u(r,g):g instanceof Date?g=y(g):n==="comma"&&M(g)&&(g=Pe.maybeMap(g,function(ie){return ie instanceof Date?y(ie):ie})),g===null){if(i)return f&&!_?f(r,S.encoder,b,"key",d):r;g=""}if(vl(g)||Pe.isBuffer(g)){if(f){var G=_?r:f(r,S.encoder,b,"key",d);return[h(G)+"="+h(f(g,S.encoder,b,"value",d))]}return[h(r)+"="+h(String(g))]}var U=[];if(typeof g>"u")return U;var D;if(n==="comma"&&M(g))_&&f&&(g=Pe.maybeMap(g,f)),D=[{value:g.length>0?g.join(",")||null:void 0}];else if(M(u))D=u;else{var Q=Object.keys(g);D=p?Q.sort(p):Q}var k=c?String(r).replace(/\./g,"%2E"):String(r),P=o&&M(g)&&g.length===1?k+"[]":k;if(a&&M(g)&&g.length===0)return P+"[]";for(var x=0;x<D.length;++x){var C=D[x],X=typeof C=="object"&&C&&typeof C.value<"u"?C.value:g[C];if(!(l&&X===null)){var ae=s&&c?String(C).replace(/\./g,"%2E"):String(C),Ue=M(g)?typeof n=="function"?n(P,ae):P:P+(s?"."+ae:"["+ae+"]");O.set(e,I);var he=hn();he.set(rt,O),_n(U,t(X,Ue,n,o,a,i,l,c,n==="comma"&&_&&M(g)?null:f,u,p,s,y,d,h,_,b,he))}}return U},ml=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||S.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!pl.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=de.formatters[n],a=S.filter;(typeof e.filter=="function"||M(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Sn?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=S.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:S.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?S.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:S.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:S.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:S.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:S.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:S.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:S.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling}},hl=function(t,e){var r=t,n=ml(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):M(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Sn[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=hn(),u=0;u<o.length;++u){var p=o[u],s=r[p];n.skipNulls&&s===null||_n(i,gl(s,p,l,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var y=i.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),y.length>0?d+y:""},q=mn,be=Object.prototype.hasOwnProperty,nr=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:q.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Sl=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},En=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},_l="utf8=%26%2310003%3B",El="utf8=%E2%9C%93",Al=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,c,f=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===El?f="utf-8":i[c]===_l&&(f="iso-8859-1"),l=c,c=i.length);for(c=0;c<i.length;++c)if(c!==l){var u=i[c],p=u.indexOf("]="),s=p===-1?u.indexOf("="):p+1,y,d;if(s===-1?(y=r.decoder(u,m.decoder,f,"key"),d=r.strictNullHandling?null:""):(y=r.decoder(u.slice(0,s),m.decoder,f,"key"),y!==null&&(d=q.maybeMap(En(u.slice(s+1),r,nr(n[y])?n[y].length:0),function(_){return r.decoder(_,m.decoder,f,"value")}))),d&&r.interpretNumericEntities&&f==="iso-8859-1"&&(d=Sl(String(d))),u.indexOf("[]=")>-1&&(d=nr(d)?[d]:d),y!==null){var h=be.call(n,y);h&&r.duplicates==="combine"?n[y]=q.combine(n[y],d,r.arrayLimit,r.plainObjects):(!h||r.duplicates==="last")&&(n[y]=d)}}return n},Pl=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:En(e,r,o),l=t.length-1;l>=0;--l){var c,f=t[l];if(f==="[]"&&r.parseArrays)q.isOverflow(i)?c=i:c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:q.combine([],i,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,s=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(c=[],c[s]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},bl=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&be.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),l=i?n.slice(0,i.index):n,c=[];if(l){if(!r.plainObjects&&be.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;(i=a.exec(n))!==null&&f<r.depth;){f+=1;var u=i[1].slice(1,-1);if(!r.plainObjects&&be.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(i[1])}if(i){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+n.slice(i.index)+"]")}return c},Ol=function(e,r,n,o){if(e){var a=bl(e,n);if(a)return Pl(a,r,n,o)}},Rl=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||q.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Il=function(t,e){var r=Rl(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Al(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Ol(l,n[l],r,typeof t=="string");o=q.merge(o,c,r)}return r.allowSparse===!0?o:q.compact(o)},wl=hl,Tl=Il,Cl=Pt,Nl={formats:Cl,parse:Tl,stringify:wl};const Dl=Br(Nl);async function Le(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Dl.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function Ot(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function An(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Pn(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(Ot(`${t}${i}`,r)),c=await Le(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const f=await c.json(),u=e.findIndex(p=>p.documentId===f.id);return u!==-1?(e[u]=f,[...e]):[f,...e]}return e}const xl=Object.freeze(Object.defineProperty({__proto__:null,createUrl:Ot,fetchCMS:Le,mergePreviewDocument:Pn,spreadStrapiData:An},Symbol.toStringTag,{value:"Module"}));async function bn(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Le(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?An(a):a}:{status:404,data:[],error:"No data found"}}async function On(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,c=0,f=!0;try{do{const u=await Le(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(c=u.totalItems),Array.isArray(u==null?void 0:u.data)&&i.push(...u.data),f=!!(u!=null&&u.hasNextPage),l++}while(f&&i.length<c);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const u=await Pn(t,i,a);return{status:u.length>0?200:404,data:u}}return{status:i.length?200:404,data:i}}catch(u){return{status:500,data:[],error:u instanceof Error?u.message:String(u)}}}const Fl=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:bn,vtexCMSData:On},Symbol.toStringTag,{value:"Module"}));async function Ml({contentType:t,documentId:e,versionId:r,CMS_PROJECT_NAME:n}){const o=e&&e.length?`/${e}`:"",a=r&&r.length?`?versionId=${r}`:"";return dt(`/cms/api/${n}/${t}${o}${a}`,{cache:"no-cache"})}async function Rn(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(Ot(t,e));return n!=="vtex"?bn(o,e,r):On(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const $l=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Rn,getCMSContentType:Ml},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=No;exports.addItemOrder=_r;exports.addLocale=Hr;exports.addNotification=Dr;exports.addPathPrefix=gt;exports.addSearchParamsFacets=so;exports.cart=eo;exports.catalogHelpers=Io;exports.cms=$l;exports.cmsHelpers=Fl;exports.cmsUtils=xl;exports.configureFetchProxy=to;exports.constants=kr;exports.createNewAddress=Mr;exports.detectDomainLocale=Wr;exports.disableSKU=sr;exports.fetchContentType=Rn;exports.fetchProxy=dt;exports.fetchVtex=mt;exports.fetchVtexWithAbortController=wo;exports.filterNonCategorySelected=$r;exports.filterNonRootFacets=Ur;exports.findItemIndex=Pr;exports.findOptions=Cr;exports.formatPriceToCurrency=Oe;exports.formattedFacets=uo;exports.formattedSimilars=Xr;exports.freightParsePrice=or;exports.getAuthenticatedUser=po;exports.getCode=Or;exports.getColorAndSizeFromSkuName=ir;exports.getDefaultExportFromCjs=Br;exports.getDiscountPercent=ar;exports.getFacetsActiveSearchParams=fo;exports.getFirstImages=vr;exports.getProductNameWithoutSku=cr;exports.getQuantity=Tr;exports.getRemoveId=Rr;exports.getSKUName=lr;exports.getSkuInfos=ur;exports.getThumbImage=pr;exports.getValidOffer=fr;exports.getValue=Ir;exports.initialState=mr;exports.marketingTagsBuilder=xr;exports.marketingdata=Co;exports.mergeOptionsPromise=Nr;exports.mountMarketingData=Fr;exports.navigateToSearchPage=go;exports.normalizeLocalePath=qr;exports.parsePath=Ne;exports.pathHasPrefix=vt;exports.postMediaData=Vr;exports.productHelpers=Xn;exports.promiseDefault=T;exports.proxyCartAPI=ro;exports.removeQuantity=Er;exports.removeTrailingSlash=Gr;exports.resizingImg=dr;exports.responsive=ue;exports.search=mo;exports.searchHelpers=jr;exports.selectedFacets=yt;exports.setVideoPlay=gr;exports.splitNameAndSizeFromFullName=st;exports.updateItemSellerExternal=br;exports.updateOrderFormPromise=wr;exports.updateQuantity=Ar;exports.updatedResizedImg=yr;
@@ -0,0 +1,4 @@
1
+ "use strict";const _n=require("yup"),R=require("react/jsx-runtime"),En=require("@soma-vertical-web/core-components");function An(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const $=An(_n),Pe=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),nr=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Pe(0):Pe(t/100),or=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},ft=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},ar=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},ir=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},lr=(t,e)=>t.replace(e,"").trim(),Pn=t=>t.replace(/\//g,""),cr=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var f;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:u,ListPrice:s,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=u,r.listPrice=s;const p=(f=c==null?void 0:c[0])==null?void 0:f.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/100}}};let o=!0;const a=t.reduce((i,l)=>{var c;const u={name:l.name,sku:l.itemId,value:((c=l.Tamanho)==null?void 0:c[0])??ft(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(u.available=!0,n(p,u)),p.commertialOffer.IsAvailable));return!u.isSellerDefault&&s.length>0&&(u.available=!0,n(s[0],{...u,sellerId:s[0].sellerId,sellerName:s[0].sellerName})),u.available===!1&&(o=!1),i.push(u),i},[]);return{...r,sizes:a,allSizesAvailable:o}},ur=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,fr=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},sr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],pr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},yr=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},dr=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},On=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},vr=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Rn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:ur,formatPriceToCurrency:Pe,freightParsePrice:nr,getAspectRatio:On,getColorAndSizeFromSkuName:ar,getDiscountPercent:or,getFirstImages:dr,getProductNameWithoutSku:lr,getSKUName:ir,getSkuInfos:cr,getThumbImage:sr,getValidOffer:fr,removeSlashes:Pn,resizingImg:pr,setVideoPlay:vr,splitNameAndSizeFromFullName:ft,updatedResizedImg:yr},Symbol.toStringTag,{value:"Module"})),Rt="fuzzy",bt="operator",bn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),gr=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},hr=(t,e)=>e?t==="category-1":!1,In=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Tn=t=>t.type==="TEXT",wn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Cn=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},Nn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Dn=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!hr(i.key,o)).map(i=>Tn(i)?Cn(i):Nn(i))},xn=(t,e)=>{const r=t.find(({key:o})=>o===Rt)??null,n=t.find(({key:o})=>o===bt)??null;r&&wn(r)&&e.append(Rt,r.value),n&&In(n)&&e.append(bt,n.value)},st=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),mr=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/"),n=t.filter(({value:a})=>!r.includes(decodeURIComponent(a))).map(a=>({...a,value:decodeURIComponent(a.value)})),{isDepartment:o}=bn(n);return n==null?void 0:n.filter(a=>!hr(a.key,o))},Fn=t=>t.getAll("facets").flatMap(e=>{const[r,...n]=e.split("/");return!r||n.length===0?[]:[{key:r,value:n.join("/")}]}),Mn=({pathname:t,searchParams:e},r)=>{const n=e.get("sort")??"",o=e.get("query")??null,a=parseInt(e.get("page")??"1",10);return{sort:n,facets:st(r),term:o,base:o?"":t,page:a}},$n=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},Ln=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)},Sr={parseSearchState:Mn,convertSearchParams:$n,filterNonRootFacets:mr,selectedFacets:st,filterNonCategorySelected:gr},Un=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"}));var It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Bn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var Er={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(Er);var we={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(we);var pt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=we;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(pt);var Ar={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(Sn,Pt){for(var Ot in Pt)Object.defineProperty(Sn,Ot,{enumerable:!0,get:Pt[Ot]})}e(t,{ACTION_SUFFIX:function(){return u},APP_DIR_ALIAS:function(){return K},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return M},ESLINT_DEFAULT_DIRS:function(){return vn},GSP_NO_RETURNED_VALUE:function(){return un},GSSP_COMPONENT_MEMBER_ERROR:function(){return pn},GSSP_NO_RETURNED_VALUE:function(){return fn},INSTRUMENTATION_HOOK_FILENAME:function(){return U},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return g},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return h},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return s},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return c},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return yn},PAGES_DIR_ALIAS:function(){return z},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return W},RSC_ACTION_ENCRYPTION_ALIAS:function(){return b},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return O},RSC_MOD_REF_PROXY_ALIAS:function(){return B},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return cn},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ge},SERVER_PROPS_SSG_CONFLICT:function(){return oe},SERVER_RUNTIME:function(){return gn},SSG_FALLBACK_EXPORT_ERROR:function(){return dn},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return $e},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ln},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return sn},WEBPACK_LAYERS:function(){return hn},WEBPACK_RESOURCE_QUERIES:function(){return mn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",u=".action",s=".json",c=".meta",p=".body",f="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",h="x-next-revalidate-tag-token",S=128,P=256,I=1024,g="_N_T_",T=31536e3,w="middleware",k=`(?:src/)?${w}`,U="instrumentation",z="private-next-pages",M="private-dot-next",C="private-next-root-dir",K="private-next-app-dir",B="private-next-rsc-mod-ref-proxy",O="private-next-rsc-action-validate",N="private-next-rsc-server-reference",b="private-next-rsc-action-encryption",W="private-next-rsc-action-client-wrapper",ne="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",$e="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ge="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",oe="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ln="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",cn="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",un="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",fn="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",sn="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",pn="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",yn='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',dn="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",vn=["app","pages","components","lib","src"],gn={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},hn={...E,GROUP:{serverOnly:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.instrument],clientOnly:[E.serverSideRendering,E.appPagesBrowser],nonClientServerTarget:[E.middleware,E.api],app:[E.reactServerComponents,E.actionBrowser,E.appMetadataRoute,E.appRouteHandler,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument]}},mn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Ar);var Pr={},yt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=we;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(yt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=yt,r=pt;function n(o,a,i,l){if(!a||a===i)return o;const u=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(u,"/api")||(0,r.pathHasPrefix)(u,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(Pr);var Or={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(Or);var Rr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const u=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===u||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(s=>s.toLowerCase()===o))return l}}}})(Rr);const Gn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Tt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Gn).join(e),jn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Tt(a)).join(","):Tt(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},Hn=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),kn=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},Wn=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Xn=new Set(["brand","category","department","subcategory","collection","cluster"]),qn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Xn.has(t==null?void 0:t.pageType.toLowerCase()),Vn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),br=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),zn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:jn,createSeoCategory:Hn,findCategory:kn,formattedSimilars:br,isCollectionPageType:qn,notFindCategoryError:Wn,responseAdapter:Vn},Symbol.toStringTag,{value:"Module"})),le={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},dt=async(t,e={})=>{const{method:r="GET",body:n,headers:o={},priority:a="auto",cache:i="default"}=e;return fetch(t,{method:r,headers:{...o,Accept:"application/json","Content-Type":"application/json"},priority:a,cache:i,...n?{body:JSON.stringify(n)}:{}}).then(l=>l.json()).catch(l=>{console.error("[ERROR FETCH VTEX]",l)})},ae=new Map;async function Kn(t,e={}){var r;try{const{abort:n=!1}=e,o=new AbortController;n&&(ae.has(t)&&((r=ae.get(t))==null||r.abort(),ae.delete(t)),ae.set(t,o));const a=dt(t,{...e,...n?{signal:o.signal}:{}});return n&&ae.delete(t),a}catch(n){if(n.name==="AbortError"){console.log(`[REQUEST CANCELLED]: ${t}`);return}throw console.error(`[ERROR API]: ${n.message}`),n}}const Yn=$.object({orderFormId:$.string().required(),coupon:$.string().nullable(),utmSource:$.string().optional(),utmMedium:$.string().optional(),utmCampaign:$.string().optional(),utmiCampaign:$.string().optional(),utmiPart:$.string().optional(),utmipage:$.string().optional()});async function Ir({apiUrl:t,body:e}){if(!e){console.error("[ERROR FETCHING] Body is required");return}await Yn.validate(e);const{orderFormId:r,utmiPart:n,coupon:o,...a}=e,i=`${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;return dt(i,{method:"POST",body:{orderFormId:r,utmiPart:n??r,coupon:o??null,...a}})}const Qn=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:Ir},Symbol.toStringTag,{value:"Module"})),Jn=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:c.sections)||[],a=((p=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),u=a.slice(0,1),s=a.slice(1,a.length);return R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:n,children:[R.jsx("div",{className:le["responsive-mobile-flex"],children:R.jsx(r,{data:i??[]})}),R.jsx("div",{className:le["responsive-desktop-flex"],children:R.jsx(r,{data:u??[]})})]}),t,R.jsx("div",{className:le["responsive-mobile-flex"],children:R.jsx(r,{data:l??[]})}),R.jsx("div",{className:le["responsive-desktop-flex"],children:R.jsx(r,{data:s??[]})}),R.jsx(En.Utils.Divider,{})]})};var re=TypeError;const Zn={},eo=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),to=Bn(eo);var vt=typeof Map=="function"&&Map.prototype,Le=Object.getOwnPropertyDescriptor&&vt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oe=vt&&Le&&typeof Le.get=="function"?Le.get:null,wt=vt&&Map.prototype.forEach,gt=typeof Set=="function"&&Set.prototype,Ue=Object.getOwnPropertyDescriptor&&gt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=gt&&Ue&&typeof Ue.get=="function"?Ue.get:null,Ct=gt&&Set.prototype.forEach,ro=typeof WeakMap=="function"&&WeakMap.prototype,ce=ro?WeakMap.prototype.has:null,no=typeof WeakSet=="function"&&WeakSet.prototype,ue=no?WeakSet.prototype.has:null,oo=typeof WeakRef=="function"&&WeakRef.prototype,Nt=oo?WeakRef.prototype.deref:null,ao=Boolean.prototype.valueOf,io=Object.prototype.toString,lo=Function.prototype.toString,co=String.prototype.match,ht=String.prototype.slice,G=String.prototype.replace,uo=String.prototype.toUpperCase,Dt=String.prototype.toLowerCase,Tr=RegExp.prototype.test,xt=Array.prototype.concat,F=Array.prototype.join,fo=Array.prototype.slice,Ft=Math.floor,ot=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee||!0)?Symbol.toStringTag:null,wr=Object.prototype.propertyIsEnumerable,Mt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $t(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Tr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ft(-t):Ft(t);if(n!==t){var o=String(n),a=ht.call(e,o.length+1);return G.call(o,r,"$&_")+"."+G.call(G.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(e,r,"$&_")}var it=to,Lt=it.custom,Ut=Dr(Lt)?Lt:null,Cr={__proto__:null,double:'"',single:"'"},so={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(Cr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=L(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(L(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Fr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return l?$t(e,u):u}if(typeof e=="bigint"){var s=String(e)+"n";return l?$t(e,s):s}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return lt(e)?"[Array]":"[Object]";var p=Co(a,n);if(typeof o>"u")o=[];else if(xr(o,e)>=0)return"[Circular]";function f(O,N,b){if(N&&(o=fo.call(o),o.push(N)),b){var W={depth:a.depth};return L(a,"quoteStyle")&&(W.quoteStyle=a.quoteStyle),t(O,W,n+1,o)}return t(O,a,n+1,o)}if(typeof e=="function"&&!Bt(e)){var d=Eo(e),y=he(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+F.call(y,", ")+" }":"")}if(Dr(e)){var h=ee?G.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):at.call(e);return typeof e=="object"&&!ee?ie(h):h}if(Io(e)){for(var S="<"+Dt.call(String(e.nodeName)),P=e.attributes||[],I=0;I<P.length;I++)S+=" "+P[I].name+"="+Nr(po(P[I].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+Dt.call(String(e.nodeName))+">",S}if(lt(e)){if(e.length===0)return"[]";var g=he(e,f);return p&&!wo(g)?"["+ct(g,p)+"]":"[ "+F.call(g,", ")+" ]"}if(vo(e)){var T=he(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!wr.call(e,"cause")?"{ ["+String(e)+"] "+F.call(xt.call("[cause]: "+f(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(T,", ")+" }"}if(typeof e=="object"&&i){if(Ut&&typeof e[Ut]=="function"&&it)return it(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ao(e)){var w=[];return wt&&wt.call(e,function(O,N){w.push(f(N,e,!0)+" => "+f(O,e))}),Gt("Map",Oe.call(e),w,p)}if(Ro(e)){var k=[];return Ct&&Ct.call(e,function(O){k.push(f(O,e))}),Gt("Set",Re.call(e),k,p)}if(Po(e))return Ge("WeakMap");if(bo(e))return Ge("WeakSet");if(Oo(e))return Ge("WeakRef");if(ho(e))return ie(f(Number(e)));if(So(e))return ie(f(ot.call(e)));if(mo(e))return ie(ao.call(e));if(go(e))return ie(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof It<"u"&&e===It)return"{ [object globalThis] }";if(!yo(e)&&!Bt(e)){var U=he(e,f),z=Mt?Mt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",C=!z&&fe&&Object(e)===e&&fe in e?ht.call(H(e),8,-1):M?"Object":"",K=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",B=K+(C||M?"["+F.call(xt.call([],C||[],M||[]),": ")+"] ":"");return U.length===0?B+"{}":p?B+"{"+ct(U,p)+"}":B+"{ "+F.call(U,", ")+" }"}return String(e)};function Nr(t,e,r){var n=r.quoteStyle||e,o=Cr[n];return o+t+o}function po(t){return G.call(String(t),/"/g,"&quot;")}function V(t){return!fe||!(typeof t=="object"&&(fe in t||typeof t[fe]<"u"))}function lt(t){return H(t)==="[object Array]"&&V(t)}function yo(t){return H(t)==="[object Date]"&&V(t)}function Bt(t){return H(t)==="[object RegExp]"&&V(t)}function vo(t){return H(t)==="[object Error]"&&V(t)}function go(t){return H(t)==="[object String]"&&V(t)}function ho(t){return H(t)==="[object Number]"&&V(t)}function mo(t){return H(t)==="[object Boolean]"&&V(t)}function Dr(t){if(ee)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!at)return!1;try{return at.call(t),!0}catch{}return!1}function So(t){if(!t||typeof t!="object"||!ot)return!1;try{return ot.call(t),!0}catch{}return!1}var _o=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return _o.call(t,e)}function H(t){return io.call(t)}function Eo(t){if(t.name)return t.name;var e=co.call(lo.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function xr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ao(t){if(!Oe||!t||typeof t!="object")return!1;try{Oe.call(t);try{Re.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Po(t){if(!ce||!t||typeof t!="object")return!1;try{ce.call(t,ce);try{ue.call(t,ue)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Oo(t){if(!Nt||!t||typeof t!="object")return!1;try{return Nt.call(t),!0}catch{}return!1}function Ro(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Oe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function bo(t){if(!ue||!t||typeof t!="object")return!1;try{ue.call(t,ue);try{ce.call(t,ce)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Io(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Fr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Fr(ht.call(t,0,e.maxStringLength),e)+n}var o=so[e.quoteStyle||"single"];o.lastIndex=0;var a=G.call(G.call(t,o,"\\$1"),/[\x00-\x1f]/g,To);return Nr(a,"single",e)}function To(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+uo.call(e.toString(16))}function ie(t){return"Object("+t+")"}function Ge(t){return t+" { ? }"}function Gt(t,e,r,n){var o=n?ct(r,n):F.call(r,", ");return t+" ("+e+") {"+o+"}"}function wo(t){for(var e=0;e<t.length;e++)if(xr(t[e],`
2
+ `)>=0)return!1;return!0}function Co(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=F.call(Array(t.indent+1)," ");else return null;return{base:r,prev:F.call(Array(e+1),r)}}function ct(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+F.call(t,","+r)+`
4
+ `+e.prev}function he(t,e){var r=lt(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof Be=="function"?Be(t):[],i;if(ee){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in t)L(t,u)&&(r&&String(Number(u))===u&&u<t.length||ee&&i["$"+u]instanceof Symbol||(Tr.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Be=="function")for(var s=0;s<a.length;s++)wr.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var No=Ce,Do=re,Ne=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},xo=function(t,e){if(t){var r=Ne(t,e);return r&&r.value}},Fo=function(t,e,r){var n=Ne(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Mo=function(t,e){return t?!!Ne(t,e):!1},$o=function(t,e){if(t)return Ne(t,e,!0)},Lo=function(){var e,r={assert:function(n){if(!r.has(n))throw new Do("Side channel does not contain "+No(n))},delete:function(n){var o=e&&e.next,a=$o(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return xo(e,n)},has:function(n){return Mo(e,n)},set:function(n,o){e||(e={next:void 0}),Fo(e,n,o)}};return r},Mr=Object,Uo=Error,Bo=EvalError,Go=RangeError,jo=ReferenceError,Ho=SyntaxError,ko=URIError,Wo=Math.abs,Xo=Math.floor,qo=Math.max,Vo=Math.min,zo=Math.pow,Ko=Math.round,Yo=Number.isNaN||function(e){return e!==e},Qo=Yo,Jo=function(e){return Qo(e)||e===0?e:e<0?-1:1},Zo=Object.getOwnPropertyDescriptor,Se=Zo;if(Se)try{Se([],"length")}catch{Se=null}var $r=Se,_e=Object.defineProperty||!1;if(_e)try{_e({},"a",{value:1})}catch{_e=!1}var ea=_e,je,jt;function ta(){return jt||(jt=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),je}var He,Ht;function ra(){if(Ht)return He;Ht=1;var t=typeof Symbol<"u"&&Symbol,e=ta();return He=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},He}var ke,kt;function Lr(){return kt||(kt=1,ke=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ke}var We,Wt;function Ur(){if(Wt)return We;Wt=1;var t=Mr;return We=t.getPrototypeOf||null,We}var Xe,Xt;function na(){if(Xt)return Xe;Xt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(u,s){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var f=0;f<s.length;f+=1)c[f+u.length]=s[f];return c},a=function(u,s){for(var c=[],p=s,f=0;p<u.length;p+=1,f+=1)c[f]=u[p];return c},i=function(l,u){for(var s="",c=0;c<l.length;c+=1)s+=l[c],c+1<l.length&&(s+=u);return s};return Xe=function(u){var s=this;if(typeof s!="function"||e.apply(s)!==n)throw new TypeError(t+s);for(var c=a(arguments,1),p,f=function(){if(this instanceof p){var P=s.apply(this,o(c,arguments));return Object(P)===P?P:this}return s.apply(u,o(c,arguments))},d=r(0,s.length-c.length),y=[],h=0;h<d;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(f),s.prototype){var S=function(){};S.prototype=s.prototype,p.prototype=new S,S.prototype=null}return p},Xe}var qe,qt;function De(){if(qt)return qe;qt=1;var t=na();return qe=Function.prototype.bind||t,qe}var Ve,Vt;function mt(){return Vt||(Vt=1,Ve=Function.prototype.call),Ve}var ze,zt;function Br(){return zt||(zt=1,ze=Function.prototype.apply),ze}var oa=typeof Reflect<"u"&&Reflect&&Reflect.apply,aa=De(),ia=Br(),la=mt(),ca=oa,ua=ca||aa.call(la,ia),fa=De(),sa=re,pa=mt(),ya=ua,Gr=function(e){if(e.length<1||typeof e[0]!="function")throw new sa("a function is required");return ya(fa,pa,e)},Ke,Kt;function da(){if(Kt)return Ke;Kt=1;var t=Gr,e=$r,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Ke=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Ke}var Ye,Yt;function va(){if(Yt)return Ye;Yt=1;var t=Lr(),e=Ur(),r=da();return Ye=t?function(o){return t(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:r?function(o){return r(o)}:null,Ye}var Qe,Qt;function ga(){if(Qt)return Qe;Qt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=De();return Qe=r.call(t,e),Qe}var v,ha=Mr,ma=Uo,Sa=Bo,_a=Go,Ea=jo,te=Ho,Z=re,Aa=ko,Pa=Wo,Oa=Xo,Ra=qo,ba=Vo,Ia=zo,Ta=Ko,wa=Jo,jr=Function,Je=function(t){try{return jr('"use strict"; return ('+t+").constructor;")()}catch{}},pe=$r,Ca=ea,Ze=function(){throw new Z},Na=pe?function(){try{return arguments.callee,Ze}catch{try{return pe(arguments,"callee").get}catch{return Ze}}}():Ze,Y=ra()(),A=va(),Da=Ur(),xa=Lr(),Hr=Br(),ye=mt(),J={},Fa=typeof Uint8Array>"u"||!A?v:A(Uint8Array),q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ma,"%eval%":eval,"%EvalError%":Sa,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":jr,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ha,"%Object.getOwnPropertyDescriptor%":pe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":_a,"%ReferenceError%":Ea,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&A?A(""[Symbol.iterator]()):v,"%Symbol%":Y?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":Na,"%TypedArray%":Fa,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":Aa,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":ye,"%Function.prototype.apply%":Hr,"%Object.defineProperty%":Ca,"%Object.getPrototypeOf%":Da,"%Math.abs%":Pa,"%Math.floor%":Oa,"%Math.max%":Ra,"%Math.min%":ba,"%Math.pow%":Ia,"%Math.round%":Ta,"%Math.sign%":wa,"%Reflect.getPrototypeOf%":xa};if(A)try{null.error}catch(t){var Ma=A(A(t));q["%Error.prototype%"]=Ma}var $a=function t(e){var r;if(e==="%AsyncFunction%")r=Je("async function () {}");else if(e==="%GeneratorFunction%")r=Je("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Je("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return q[e]=r,r},Jt={__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"]},de=De(),be=ga(),La=de.call(ye,Array.prototype.concat),Ua=de.call(Hr,Array.prototype.splice),Zt=de.call(ye,String.prototype.replace),Ie=de.call(ye,String.prototype.slice),Ba=de.call(ye,RegExp.prototype.exec),Ga=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ja=/\\(\\)?/g,Ha=function(e){var r=Ie(e,0,1),n=Ie(e,-1);if(r==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return Zt(e,Ga,function(a,i,l,u){o[o.length]=l?Zt(u,ja,"$1"):i||a}),o},ka=function(e,r){var n=e,o;if(be(Jt,n)&&(o=Jt[n],n="%"+o[0]+"%"),be(q,n)){var a=q[n];if(a===J&&(a=$a(n)),typeof a>"u"&&!r)throw new Z("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new te("intrinsic "+e+" does not exist!")},St=function(e,r){if(typeof e!="string"||e.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(Ba(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ha(e),o=n.length>0?n[0]:"",a=ka("%"+o+"%",r),i=a.name,l=a.value,u=!1,s=a.alias;s&&(o=s[0],Ua(n,La([0,1],s)));for(var c=1,p=!0;c<n.length;c+=1){var f=n[c],d=Ie(f,0,1),y=Ie(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(u=!0),o+="."+f,i="%"+o+"%",be(q,i))l=q[i];else if(l!=null){if(!(f in l)){if(!r)throw new Z("base intrinsic for "+e+" exists, but the property is not available.");return}if(pe&&c+1>=n.length){var h=pe(l,f);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[f]}else p=be(l,f),l=l[f];p&&!u&&(q[i]=l)}}return l},kr=St,Wr=Gr,Wa=Wr([kr("%String.prototype.indexOf%")]),Xr=function(e,r){var n=kr(e,!!r);return typeof n=="function"&&Wa(e,".prototype.")>-1?Wr([n]):n},Xa=St,ve=Xr,qa=Ce,Va=re,er=Xa("%Map%",!0),za=ve("Map.prototype.get",!0),Ka=ve("Map.prototype.set",!0),Ya=ve("Map.prototype.has",!0),Qa=ve("Map.prototype.delete",!0),Ja=ve("Map.prototype.size",!0),qr=!!er&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Va("Side channel does not contain "+qa(n))},delete:function(n){if(e){var o=Qa(e,n);return Ja(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return za(e,n)},has:function(n){return e?Ya(e,n):!1},set:function(n,o){e||(e=new er),Ka(e,n,o)}};return r},Za=St,xe=Xr,ei=Ce,me=qr,ti=re,Q=Za("%WeakMap%",!0),ri=xe("WeakMap.prototype.get",!0),ni=xe("WeakMap.prototype.set",!0),oi=xe("WeakMap.prototype.has",!0),ai=xe("WeakMap.prototype.delete",!0),ii=Q?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new ti("Side channel does not contain "+ei(o))},delete:function(o){if(Q&&o&&(typeof o=="object"||typeof o=="function")){if(e)return ai(e,o)}else if(me&&r)return r.delete(o);return!1},get:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?ri(e,o):r&&r.get(o)},has:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?oi(e,o):!!r&&r.has(o)},set:function(o,a){Q&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Q),ni(e,o,a)):me&&(r||(r=me()),r.set(o,a))}};return n}:me,li=re,ci=Ce,ui=Lo,fi=qr,si=ii,pi=si||fi||ui,Vr=function(){var e,r={assert:function(n){if(!r.has(n))throw new li("Side channel does not contain "+ci(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=pi()),e.set(n,o)}};return r},yi=String.prototype.replace,di=/%20/g,et={RFC1738:"RFC1738",RFC3986:"RFC3986"},_t={default:et.RFC3986,formatters:{RFC1738:function(t){return yi.call(t,di,"+")},RFC3986:function(t){return String(t)}},RFC1738:et.RFC1738,RFC3986:et.RFC3986},vi=_t,gi=Vr,tt=Object.prototype.hasOwnProperty,X=Array.isArray,Fe=gi(),zr=function(e,r){return Fe.set(e,r),e},Te=function(e){return Fe.has(e)},ut=function(e){return Fe.get(e)},Kr=function(e,r){Fe.set(e,r)},D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),hi=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(X(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Et=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},mi=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(X(e))e.push(r);else if(e&&typeof e=="object")if(Te(e)){var o=ut(e)+1;e[o]=r,Kr(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!tt.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Te(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<a.length;l++){var u=parseInt(a[l],10);i[u+1]=r[a[l]]}return zr(i,ut(r)+1)}return[e].concat(r)}var s=e;return X(e)&&!X(r)&&(s=Et(e,n)),X(e)&&X(r)?(r.forEach(function(c,p){if(tt.call(e,p)){var f=e[p];f&&typeof f=="object"&&c&&typeof c=="object"?e[p]=t(f,c,n):e.push(c)}else e[p]=c}),e):Object.keys(r).reduce(function(c,p){var f=r[p];return tt.call(c,p)?c[p]=t(c[p],f,n):c[p]=f,c},s)},Si=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},_i=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},rt=1024,Ei=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",u=0;u<i.length;u+=rt){for(var s=i.length>=rt?i.slice(u,u+rt):i,c=[],p=0;p<s.length;++p){var f=s.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===vi.RFC1738&&(f===40||f===41)){c[c.length]=s.charAt(p);continue}if(f<128){c[c.length]=D[f];continue}if(f<2048){c[c.length]=D[192|f>>6]+D[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=D[224|f>>12]+D[128|f>>6&63]+D[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|s.charCodeAt(p)&1023),c[c.length]=D[240|f>>18]+D[128|f>>12&63]+D[128|f>>6&63]+D[128|f&63]}l+=c.join("")}return l},Ai=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),u=0;u<l.length;++u){var s=l[u],c=i[s];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:s}),n.push(c))}return hi(r),e},Pi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Oi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ri=function(e,r,n,o){if(Te(e)){var a=ut(e)+1;return e[a]=r,Kr(e,a),e}var i=[].concat(e,r);return i.length>n?zr(Et(i,{plainObjects:o}),i.length-1):i},bi=function(e,r){if(X(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Yr={arrayToObject:Et,assign:Si,combine:Ri,compact:Ai,decode:_i,encode:Ei,isBuffer:Oi,isOverflow:Te,isRegExp:Pi,maybeMap:bi,merge:mi},Qr=Vr,Ee=Yr,se=_t,Ii=Object.prototype.hasOwnProperty,Jr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},x=Array.isArray,Ti=Array.prototype.push,Zr=function(t,e){Ti.apply(t,x(e)?e:[e])},wi=Date.prototype.toISOString,tr=se.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ee.encode,encodeValuesOnly:!1,filter:void 0,format:tr,formatter:se.formatters[tr],indices:!1,serializeDate:function(e){return wi.call(e)},skipNulls:!1,strictNullHandling:!1},Ci=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},nt={},Ni=function t(e,r,n,o,a,i,l,u,s,c,p,f,d,y,h,S,P,I){for(var g=e,T=I,w=0,k=!1;(T=T.get(nt))!==void 0&&!k;){var U=T.get(e);if(w+=1,typeof U<"u"){if(U===w)throw new RangeError("Cyclic object value");k=!0}typeof T.get(nt)>"u"&&(w=0)}if(typeof c=="function"?g=c(r,g):g instanceof Date?g=d(g):n==="comma"&&x(g)&&(g=Ee.maybeMap(g,function(oe){return oe instanceof Date?d(oe):oe})),g===null){if(i)return s&&!S?s(r,_.encoder,P,"key",y):r;g=""}if(Ci(g)||Ee.isBuffer(g)){if(s){var z=S?r:s(r,_.encoder,P,"key",y);return[h(z)+"="+h(s(g,_.encoder,P,"value",y))]}return[h(r)+"="+h(String(g))]}var M=[];if(typeof g>"u")return M;var C;if(n==="comma"&&x(g))S&&s&&(g=Ee.maybeMap(g,s)),C=[{value:g.length>0?g.join(",")||null:void 0}];else if(x(c))C=c;else{var K=Object.keys(g);C=p?K.sort(p):K}var B=u?String(r).replace(/\./g,"%2E"):String(r),O=o&&x(g)&&g.length===1?B+"[]":B;if(a&&x(g)&&g.length===0)return O+"[]";for(var N=0;N<C.length;++N){var b=C[N],W=typeof b=="object"&&b&&typeof b.value<"u"?b.value:g[b];if(!(l&&W===null)){var ne=f&&u?String(b).replace(/\./g,"%2E"):String(b),$e=x(g)?typeof n=="function"?n(O,ne):O:O+(f?"."+ne:"["+ne+"]");I.set(e,w);var ge=Qr();ge.set(nt,I),Zr(M,t(W,$e,n,o,a,i,l,u,n==="comma"&&S&&x(g)?null:s,c,p,f,d,y,h,S,P,ge))}}return M},Di=function(e){if(!e)return _;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||_.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=se.default;if(typeof e.format<"u"){if(!Ii.call(se.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=se.formatters[n],a=_.filter;(typeof e.filter=="function"||x(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Jr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=_.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},xi=function(t,e){var r=t,n=Di(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):x(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Jr[n.arrayFormat],u=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Qr(),c=0;c<o.length;++c){var p=o[c],f=r[p];n.skipNulls&&f===null||Zr(i,Ni(f,p,l,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},j=Yr,Ae=Object.prototype.hasOwnProperty,rr=Array.isArray,m={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Fi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},en=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},Mi="utf8=%26%2310003%3B",$i="utf8=%E2%9C%93",Li=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,u,s=r.charset;if(r.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===$i?s="utf-8":i[u]===Mi&&(s="iso-8859-1"),l=u,u=i.length);for(u=0;u<i.length;++u)if(u!==l){var c=i[u],p=c.indexOf("]="),f=p===-1?c.indexOf("="):p+1,d,y;if(f===-1?(d=r.decoder(c,m.decoder,s,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(c.slice(0,f),m.decoder,s,"key"),d!==null&&(y=j.maybeMap(en(c.slice(f+1),r,rr(n[d])?n[d].length:0),function(S){return r.decoder(S,m.decoder,s,"value")}))),y&&r.interpretNumericEntities&&s==="iso-8859-1"&&(y=Fi(String(y))),c.indexOf("[]=")>-1&&(y=rr(y)?[y]:y),d!==null){var h=Ae.call(n,d);h&&r.duplicates==="combine"?n[d]=j.combine(n[d],y,r.arrayLimit,r.plainObjects):(!h||r.duplicates==="last")&&(n[d]=y)}}return n},Ui=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:en(e,r,o),l=t.length-1;l>=0;--l){var u,s=t[l];if(s==="[]"&&r.parseArrays)j.isOverflow(i)?u=i:u=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:j.combine([],i,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(p,10);!r.parseArrays&&p===""?u={0:i}:!isNaN(f)&&s!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(u=[],u[f]=i):p!=="__proto__"&&(u[p]=i)}i=u}return i},Bi=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Ae.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),l=i?n.slice(0,i.index):n,u=[];if(l){if(!r.plainObjects&&Ae.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var s=0;(i=a.exec(n))!==null&&s<r.depth;){s+=1;var c=i[1].slice(1,-1);if(!r.plainObjects&&Ae.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(i[1])}if(i){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+n.slice(i.index)+"]")}return u},Gi=function(e,r,n,o){if(e){var a=Bi(e,n);if(a)return Ui(a,r,n,o)}},ji=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?m.charset:e.charset,n=typeof e.duplicates>"u"?m.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:m.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:m.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:m.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:m.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:m.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:m.decoder,delimiter:typeof e.delimiter=="string"||j.isRegExp(e.delimiter)?e.delimiter:m.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:m.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:m.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:m.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:m.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:m.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Hi=function(t,e){var r=ji(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Li(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],u=Gi(l,n[l],r,typeof t=="string");o=j.merge(o,u,r)}return r.allowSparse===!0?o:j.compact(o)},ki=xi,Wi=Hi,Xi=_t,qi={formats:Xi,parse:Wi,stringify:ki};const Vi=_r(qi);async function Me(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Vi.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function At(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function tn(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function rn(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(At(`${t}${i}`,r)),u=await Me(l,r,o);if(!u.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${u.statusText}`),[];const s=await u.json(),c=e.findIndex(p=>p.documentId===s.id);return c!==-1?(e[c]=s,[...e]):[s,...e]}return e}const zi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:At,fetchCMS:Me,mergePreviewDocument:rn,spreadStrapiData:tn},Symbol.toStringTag,{value:"Module"}));async function nn(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Me(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?tn(a):a}:{status:404,data:[],error:"No data found"}}async function on(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,u=0,s=!0;try{do{const c=await Me(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(u=c.totalItems),Array.isArray(c==null?void 0:c.data)&&i.push(...c.data),s=!!(c!=null&&c.hasNextPage),l++}while(s&&i.length<u);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const c=await rn(t,i,a);return{status:c.length>0?200:404,data:c}}return{status:i.length?200:404,data:i}}catch(c){return{status:500,data:[],error:c instanceof Error?c.message:String(c)}}}const Ki=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:nn,vtexCMSData:on},Symbol.toStringTag,{value:"Module"}));async function Yi({contentType:t,documentId:e,versionId:r,storeId:n,CMS_PROJECT_NAME:o}){const a=e&&e.length?`/${e}`:"",i=r&&r.length?`?versionId=${r}`:"";return fetch(`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,{cache:"no-cache"})}async function an(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(At(t,e));return n!=="vtex"?nn(o,e,r):on(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Qi=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:an,getCMSContentType:Yi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Jn;exports.addLocale=Pr;exports.addPathPrefix=yt;exports.addSearchParamsFacets=xn;exports.catalogHelpers=zn;exports.cms=Qi;exports.cmsHelpers=Ki;exports.cmsUtils=zi;exports.constants=Ar;exports.detectDomainLocale=Rr;exports.disableSKU=ur;exports.fetchContentType=an;exports.fetchVtex=dt;exports.fetchVtexWithAbortController=Kn;exports.filterNonCategorySelected=gr;exports.filterNonRootFacets=mr;exports.formatPriceToCurrency=Pe;exports.formattedFacets=Dn;exports.formattedSimilars=br;exports.freightParsePrice=nr;exports.getColorAndSizeFromSkuName=ar;exports.getDefaultExportFromCjs=_r;exports.getDiscountPercent=or;exports.getFacetsActiveSearchParams=Fn;exports.getFirstImages=dr;exports.getProductNameWithoutSku=lr;exports.getSKUName=ir;exports.getSkuInfos=cr;exports.getThumbImage=sr;exports.getValidOffer=fr;exports.marketingdata=Qn;exports.navigateToSearchPage=Ln;exports.normalizeLocalePath=Or;exports.parsePath=we;exports.pathHasPrefix=pt;exports.postMediaData=Ir;exports.productHelpers=Rn;exports.removeTrailingSlash=Er;exports.resizingImg=pr;exports.responsive=le;exports.search=Un;exports.searchHelpers=Sr;exports.selectedFacets=st;exports.setVideoPlay=vr;exports.splitNameAndSizeFromFullName=ft;exports.updatedResizedImg=yr;