@soma-vertical-web/multi-lib-sacurai 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/api/catalog/product/similars/index.d.ts +5 -1
- package/index-DAG596yA.js +4 -0
- package/index-DIlHiNQP.mjs +1906 -0
- package/index-DbdJ4XHW.mjs +1924 -0
- package/index-DdYLbl9o.js +4 -0
- package/index.js +12 -12
- package/index.mjs +2743 -2737
- package/index2.js +1 -1
- package/index2.mjs +123 -123
- package/layout/index.d.ts +1 -1
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Similars.d.ts +1 -1
- package/package.json +1 -1
- package/server.d.ts +1 -1
- package/types/contexts/contexts/plp.d.ts +1 -0
- package/types/layout/team-components/ProductList/index.d.ts +2 -0
- package/types/layout/templates/PLP/index.d.ts +1 -0
- package/types/layout/templates/QuickShop/index.d.ts +1 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { TEXTURE_IMAGEType } from '../../../../../types/constants';
|
|
2
2
|
|
|
3
|
-
export declare const getSimilars: (productId
|
|
3
|
+
export declare const getSimilars: ({ productId, TEXTURE_IMAGE, apiUrl }: {
|
|
4
|
+
productId: string;
|
|
5
|
+
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
}) => Promise<import('../../../../../types/data/api/catalog/product').SimilarType[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),Nr=require("@soma-vertical-web/core-components"),me=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),zt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:me(0):me(t/100),qt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},tt=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Wt=(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()}},Gt=(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},Ht=(t,e)=>t.replace(e,"").trim(),Dr=t=>t.replace(/\//g,""),Kt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,f)=>{var u;f&&(f.sellerId=i.sellerId,f.sellerName=i.sellerName,f.available=!0,f.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:s,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=l,r.listPrice=s;const p=(u=c==null?void 0:c[0])==null?void 0:u.installments;if(p){const{count:v,value:y}=p[p.length-1];r.installments={count:v,value:y/100}}};let o=!0;const a=t.reduce((i,f)=>{var c;const l={name:f.name,sku:f.itemId,value:((c=f.Tamanho)==null?void 0:c[0])??tt(f.nameComplete??f.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=f.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&s.length>0&&(l.available=!0,n(s[0],{...l,sellerId:s[0].sellerId,sellerName:s[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Vt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,Qt=(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)},Jt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Yt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Xt=(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},Zt=({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},Mr=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},er=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},jr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Vt,formatPriceToCurrency:me,freightParsePrice:zt,getAspectRatio:Mr,getColorAndSizeFromSkuName:Wt,getDiscountPercent:qt,getFirstImages:Zt,getProductNameWithoutSku:Ht,getSKUName:Gt,getSkuInfos:Kt,getThumbImage:Jt,getValidOffer:Qt,removeSlashes:Dr,resizingImg:Yt,setVideoPlay:er,splitNameAndSizeFromFullName:tt,updatedResizedImg:Xt},Symbol.toStringTag,{value:"Module"})),st="fuzzy",ut="operator",Br=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Ur=(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})},tr=(t,e)=>e?t==="category-1":!1,Lr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),zr=t=>t.type==="TEXT",qr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Wr=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))}},Gr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Hr=(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||!tr(i.key,o)).map(i=>zr(i)?Wr(i):Gr(i))},Kr=(t,e)=>{const r=t.find(({key:o})=>o===st)??null,n=t.find(({key:o})=>o===ut)??null;r&&qr(r)&&e.append(st,r.value),n&&Lr(n)&&e.append(ut,n.value)},Vr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),Qr=(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}=Br(n);return n==null?void 0:n.filter(a=>!tr(a.key,o))},Jr=({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:Vr(r),term:o,base:o?"":t,page:a}},Yr=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},Xr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zr(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}const en=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),yt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(en).join(e),tn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>yt(a)).join(","):yt(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},rn=({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]:[]}}),nn=({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},on=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},an=new Set(["brand","category","department","subcategory","collection","cluster"]),ln=t=>typeof(t==null?void 0:t.pageType)=="string"&&an.has(t==null?void 0:t.pageType.toLowerCase()),cn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),nr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(f=>f.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},[]),fn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:tn,createSeoCategory:rn,findCategory:nn,formattedSimilars:nr,isCollectionPageType:ln,notFindCategoryError:on,responseAdapter:cn},Symbol.toStringTag,{value:"Module"})),sn=async({productId:t,TEXTURE_IMAGE:e,apiUrl:r})=>{try{const n=await fetch(`${r}/api/catalog_system/pub/products/crossselling/similars/${t}`,{priority:"low"});if(!n.ok)throw new Error("Erro ao buscar similares.");const o=await n.json();return nr(o,e)}catch(n){return console.error(n),[]}},ee={"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"},un="_header_9xxjk_57",pn="_actions_9xxjk_131",yn="_breadcrumb_9xxjk_142",dn="_credits_9xxjk_157",vn="_pdplinks_9xxjk_185",mn="_similars_9xxjk_212",gn="_sizes_9xxjk_251",hn="_measurementTable_9xxjk_267",_n="_measurementHead_9xxjk_280",bn="_measurementRows_9xxjk_285",Sn="_measurementRowsTitle_9xxjk_302",wn="_measurementRowsText_9xxjk_314",xn="_measurementImage_9xxjk_325",An="_measurementImageContainer_9xxjk_328",On="_measurementContent_9xxjk_337",Pn="_measurementTitle_9xxjk_341",En="_measurementClose_9xxjk_352",$n="_productref_9xxjk_417",In="_slideOut_9xxjk_1",Rn="_slideIn_9xxjk_1",kn="_content_9xxjk_397",Cn="_pdp_9xxjk_185",Tn="_divider_9xxjk_575",Fn={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:un,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:pn,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:yn,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:dn,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:vn,"links-wrapper":"_links-wrapper_9xxjk_195",similars:mn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:gn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:hn,measurementHead:_n,measurementRows:bn,measurementRowsTitle:Sn,measurementRowsText:wn,measurementImage:xn,measurementImageContainer:An,measurementContent:On,measurementTitle:Pn,measurementClose:En,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:$n,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:In,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:Rn,content:kn,pdp:Cn,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:Tn,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},Nn=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(u=>{var v,y;return((y=(v=u.config)==null?void 0:v.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:c.sections)||[],a=((p=e==null?void 0:e.filter(u=>{var v,y;return((y=(v=u.config)==null?void 0:v.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),f=o.slice(1,o.length),l=a.slice(0,1),s=a.slice(1,a.length);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:n,children:[x.jsx("div",{className:ee["responsive-mobile-flex"],children:x.jsx(r,{data:i??[]})}),x.jsx("div",{className:ee["responsive-desktop-flex"],children:x.jsx(r,{data:l??[]})})]}),t,x.jsx("div",{className:ee["responsive-mobile-flex"],children:x.jsx(r,{data:f??[]})}),x.jsx("div",{className:ee["responsive-desktop-flex"],children:x.jsx(r,{data:s??[]})}),x.jsx(Nr.Utils.Divider,{})]})};var J=TypeError;const Dn={},Mn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),jn=Zr(Mn);var rt=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&rt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=rt&&$e&&typeof $e.get=="function"?$e.get:null,dt=rt&&Map.prototype.forEach,nt=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&nt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=nt&&Ie&&typeof Ie.get=="function"?Ie.get:null,vt=nt&&Set.prototype.forEach,Bn=typeof WeakMap=="function"&&WeakMap.prototype,te=Bn?WeakMap.prototype.has:null,Un=typeof WeakSet=="function"&&WeakSet.prototype,re=Un?WeakSet.prototype.has:null,Ln=typeof WeakRef=="function"&&WeakRef.prototype,mt=Ln?WeakRef.prototype.deref:null,zn=Boolean.prototype.valueOf,qn=Object.prototype.toString,Wn=Function.prototype.toString,Gn=String.prototype.match,ot=String.prototype.slice,F=String.prototype.replace,Hn=String.prototype.toUpperCase,gt=String.prototype.toLowerCase,or=RegExp.prototype.test,ht=Array.prototype.concat,E=Array.prototype.join,Kn=Array.prototype.slice,_t=Math.floor,Qe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,ar=Object.prototype.propertyIsEnumerable,bt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function St(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||or.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-_t(-t):_t(t);if(n!==t){var o=String(n),a=ot.call(e,o.length+1);return F.call(o,r,"$&_")+"."+F.call(F.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(e,r,"$&_")}var Ye=jn,wt=Ye.custom,xt=cr(wt)?wt:null,ir={__proto__:null,double:'"',single:"'"},Vn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if(I(a,"quoteStyle")&&!I(ir,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(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=I(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(I(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(I(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=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 sr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return f?St(e,l):l}if(typeof e=="bigint"){var s=String(e)+"n";return f?St(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 Xe(e)?"[Array]":"[Object]";var p=po(a,n);if(typeof o>"u")o=[];else if(fr(o,e)>=0)return"[Circular]";function u(A,T,$){if(T&&(o=Kn.call(o),o.push(T)),$){var X={depth:a.depth};return I(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(A,X,n+1,o)}return t(A,a,n+1,o)}if(typeof e=="function"&&!At(e)){var v=no(e),y=ue(e,u);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+E.call(y,", ")+" }":"")}if(cr(e)){var h=V?F.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Je.call(e);return typeof e=="object"&&!V?Z(h):h}if(fo(e)){for(var S="<"+gt.call(String(e.nodeName)),w=e.attributes||[],R=0;R<w.length;R++)S+=" "+w[R].name+"="+lr(Qn(w[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+gt.call(String(e.nodeName))+">",S}if(Xe(e)){if(e.length===0)return"[]";var m=ue(e,u);return p&&!uo(m)?"["+Ze(m,p)+"]":"[ "+E.call(m,", ")+" ]"}if(Yn(e)){var k=ue(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!ar.call(e,"cause")?"{ ["+String(e)+"] "+E.call(ht.call("[cause]: "+u(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(k,", ")+" }"}if(typeof e=="object"&&i){if(xt&&typeof e[xt]=="function"&&Ye)return Ye(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(oo(e)){var D=[];return dt&&dt.call(e,function(A,T){D.push(u(T,e,!0)+" => "+u(A,e))}),Ot("Map",ge.call(e),D,p)}if(lo(e)){var Y=[];return vt&&vt.call(e,function(A){Y.push(u(A,e))}),Ot("Set",he.call(e),Y,p)}if(ao(e))return ke("WeakMap");if(co(e))return ke("WeakSet");if(io(e))return ke("WeakRef");if(Zn(e))return Z(u(Number(e)));if(to(e))return Z(u(Qe.call(e)));if(eo(e))return Z(zn.call(e));if(Xn(e))return Z(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof pt<"u"&&e===pt)return"{ [object globalThis] }";if(!Jn(e)&&!At(e)){var z=ue(e,u),fe=bt?bt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",C=!fe&&ne&&Object(e)===e&&ne in e?ot.call(N(e),8,-1):M?"Object":"",se=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",q=se+(C||M?"["+E.call(ht.call([],C||[],M||[]),": ")+"] ":"");return z.length===0?q+"{}":p?q+"{"+Ze(z,p)+"}":q+"{ "+E.call(z,", ")+" }"}return String(e)};function lr(t,e,r){var n=r.quoteStyle||e,o=ir[n];return o+t+o}function Qn(t){return F.call(String(t),/"/g,""")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Xe(t){return N(t)==="[object Array]"&&L(t)}function Jn(t){return N(t)==="[object Date]"&&L(t)}function At(t){return N(t)==="[object RegExp]"&&L(t)}function Yn(t){return N(t)==="[object Error]"&&L(t)}function Xn(t){return N(t)==="[object String]"&&L(t)}function Zn(t){return N(t)==="[object Number]"&&L(t)}function eo(t){return N(t)==="[object Boolean]"&&L(t)}function cr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Je)return!1;try{return Je.call(t),!0}catch{}return!1}function to(t){if(!t||typeof t!="object"||!Qe)return!1;try{return Qe.call(t),!0}catch{}return!1}var ro=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return ro.call(t,e)}function N(t){return qn.call(t)}function no(t){if(t.name)return t.name;var e=Gn.call(Wn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function fr(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 oo(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{he.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ao(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function io(t){if(!mt||!t||typeof t!="object")return!1;try{return mt.call(t),!0}catch{}return!1}function lo(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function co(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function fo(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function sr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return sr(ot.call(t,0,e.maxStringLength),e)+n}var o=Vn[e.quoteStyle||"single"];o.lastIndex=0;var a=F.call(F.call(t,o,"\\$1"),/[\x00-\x1f]/g,so);return lr(a,"single",e)}function so(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":"")+Hn.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function Ot(t,e,r,n){var o=n?Ze(r,n):E.call(r,", ");return t+" ("+e+") {"+o+"}"}function uo(t){for(var e=0;e<t.length;e++)if(fr(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function po(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=E.call(Array(t.indent+1)," ");else return null;return{base:r,prev:E.call(Array(e+1),r)}}function Ze(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+E.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function ue(t,e){var r=Xe(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=I(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in t)I(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(or.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Re=="function")for(var s=0;s<a.length;s++)ar.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var yo=Se,vo=J,we=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},mo=function(t,e){if(t){var r=we(t,e);return r&&r.value}},go=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},ho=function(t,e){return t?!!we(t,e):!1},_o=function(t,e){if(t)return we(t,e,!0)},bo=function(){var e,r={assert:function(n){if(!r.has(n))throw new vo("Side channel does not contain "+yo(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 mo(e,n)},has:function(n){return ho(e,n)},set:function(n,o){e||(e={next:void 0}),go(e,n,o)}};return r},ur=Object,So=Error,wo=EvalError,xo=RangeError,Ao=ReferenceError,Oo=SyntaxError,Po=URIError,Eo=Math.abs,$o=Math.floor,Io=Math.max,Ro=Math.min,ko=Math.pow,Co=Math.round,To=Number.isNaN||function(e){return e!==e},Fo=To,No=function(e){return Fo(e)||e===0?e:e<0?-1:1},Do=Object.getOwnPropertyDescriptor,ye=Do;if(ye)try{ye([],"length")}catch{ye=null}var pr=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var Mo=de,Ce,Pt;function jo(){return Pt||(Pt=1,Ce=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 f=Object.getOwnPropertyDescriptor(e,r);if(f.value!==o||f.enumerable!==!0)return!1}return!0}),Ce}var Te,Et;function Bo(){if(Et)return Te;Et=1;var t=typeof Symbol<"u"&&Symbol,e=jo();return Te=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Te}var Fe,$t;function yr(){return $t||($t=1,Fe=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Fe}var Ne,It;function dr(){if(It)return Ne;It=1;var t=ur;return Ne=t.getPrototypeOf||null,Ne}var De,Rt;function Uo(){if(Rt)return De;Rt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,s){for(var c=[],p=0;p<l.length;p+=1)c[p]=l[p];for(var u=0;u<s.length;u+=1)c[u+l.length]=s[u];return c},a=function(l,s){for(var c=[],p=s,u=0;p<l.length;p+=1,u+=1)c[u]=l[p];return c},i=function(f,l){for(var s="",c=0;c<f.length;c+=1)s+=f[c],c+1<f.length&&(s+=l);return s};return De=function(l){var s=this;if(typeof s!="function"||e.apply(s)!==n)throw new TypeError(t+s);for(var c=a(arguments,1),p,u=function(){if(this instanceof p){var w=s.apply(this,o(c,arguments));return Object(w)===w?w:this}return s.apply(l,o(c,arguments))},v=r(0,s.length-c.length),y=[],h=0;h<v;h++)y[h]="$"+h;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(u),s.prototype){var S=function(){};S.prototype=s.prototype,p.prototype=new S,S.prototype=null}return p},De}var Me,kt;function xe(){if(kt)return Me;kt=1;var t=Uo();return Me=Function.prototype.bind||t,Me}var je,Ct;function at(){return Ct||(Ct=1,je=Function.prototype.call),je}var Be,Tt;function vr(){return Tt||(Tt=1,Be=Function.prototype.apply),Be}var Lo=typeof Reflect<"u"&&Reflect&&Reflect.apply,zo=xe(),qo=vr(),Wo=at(),Go=Lo,Ho=Go||zo.call(Wo,qo),Ko=xe(),Vo=J,Qo=at(),Jo=Ho,mr=function(e){if(e.length<1||typeof e[0]!="function")throw new Vo("a function is required");return Jo(Ko,Qo,e)},Ue,Ft;function Yo(){if(Ft)return Ue;Ft=1;var t=mr,e=pr,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 Ue=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(f){return a(f==null?f:o(f))}:!1,Ue}var Le,Nt;function Xo(){if(Nt)return Le;Nt=1;var t=yr(),e=dr(),r=Yo();return Le=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,Le}var ze,Dt;function Zo(){if(Dt)return ze;Dt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe();return ze=r.call(t,e),ze}var d,ea=ur,ta=So,ra=wo,na=xo,oa=Ao,Q=Oo,K=J,aa=Po,ia=Eo,la=$o,ca=Io,fa=Ro,sa=ko,ua=Co,pa=No,gr=Function,qe=function(t){try{return gr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=pr,ya=Mo,We=function(){throw new K},da=ae?function(){try{return arguments.callee,We}catch{try{return ae(arguments,"callee").get}catch{return We}}}():We,W=Bo()(),b=Xo(),va=dr(),ma=yr(),hr=vr(),ie=at(),H={},ga=typeof Uint8Array>"u"||!b?d:b(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":W&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ta,"%eval%":eval,"%EvalError%":ra,"%Float16Array%":typeof Float16Array>"u"?d:Float16Array,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":gr,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":W&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!W||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ea,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":na,"%ReferenceError%":oa,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!W||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":W&&b?b(""[Symbol.iterator]()):d,"%Symbol%":W?Symbol:d,"%SyntaxError%":Q,"%ThrowTypeError%":da,"%TypedArray%":ga,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":aa,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":hr,"%Object.defineProperty%":ya,"%Object.getPrototypeOf%":va,"%Math.abs%":ia,"%Math.floor%":la,"%Math.max%":ca,"%Math.min%":fa,"%Math.pow%":sa,"%Math.round%":ua,"%Math.sign%":pa,"%Reflect.getPrototypeOf%":ma};if(b)try{null.error}catch(t){var ha=b(b(t));B["%Error.prototype%"]=ha}var _a=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&&b&&(r=b(o.prototype))}return B[e]=r,r},Mt={__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"]},le=xe(),_e=Zo(),ba=le.call(ie,Array.prototype.concat),Sa=le.call(hr,Array.prototype.splice),jt=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),wa=le.call(ie,RegExp.prototype.exec),xa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Aa=/\\(\\)?/g,Oa=function(e){var r=be(e,0,1),n=be(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return jt(e,xa,function(a,i,f,l){o[o.length]=f?jt(l,Aa,"$1"):i||a}),o},Pa=function(e,r){var n=e,o;if(_e(Mt,n)&&(o=Mt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=_a(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},it=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(wa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Oa(e),o=n.length>0?n[0]:"",a=Pa("%"+o+"%",r),i=a.name,f=a.value,l=!1,s=a.alias;s&&(o=s[0],Sa(n,ba([0,1],s)));for(var c=1,p=!0;c<n.length;c+=1){var u=n[c],v=be(u,0,1),y=be(u,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new Q("property names with quotes must have matching quotes");if((u==="constructor"||!p)&&(l=!0),o+="."+u,i="%"+o+"%",_e(B,i))f=B[i];else if(f!=null){if(!(u in f)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&c+1>=n.length){var h=ae(f,u);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?f=h.get:f=f[u]}else p=_e(f,u),f=f[u];p&&!l&&(B[i]=f)}}return f},_r=it,br=mr,Ea=br([_r("%String.prototype.indexOf%")]),Sr=function(e,r){var n=_r(e,!!r);return typeof n=="function"&&Ea(e,".prototype.")>-1?br([n]):n},$a=it,ce=Sr,Ia=Se,Ra=J,Bt=$a("%Map%",!0),ka=ce("Map.prototype.get",!0),Ca=ce("Map.prototype.set",!0),Ta=ce("Map.prototype.has",!0),Fa=ce("Map.prototype.delete",!0),Na=ce("Map.prototype.size",!0),wr=!!Bt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ra("Side channel does not contain "+Ia(n))},delete:function(n){if(e){var o=Fa(e,n);return Na(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return ka(e,n)},has:function(n){return e?Ta(e,n):!1},set:function(n,o){e||(e=new Bt),Ca(e,n,o)}};return r},Da=it,Ae=Sr,Ma=Se,pe=wr,ja=J,G=Da("%WeakMap%",!0),Ba=Ae("WeakMap.prototype.get",!0),Ua=Ae("WeakMap.prototype.set",!0),La=Ae("WeakMap.prototype.has",!0),za=Ae("WeakMap.prototype.delete",!0),qa=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new ja("Side channel does not contain "+Ma(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return za(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Ba(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?La(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),Ua(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Wa=J,Ga=Se,Ha=bo,Ka=wr,Va=qa,Qa=Va||Ka||Ha,Ja=function(){var e,r={assert:function(n){if(!r.has(n))throw new Wa("Side channel does not contain "+Ga(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=Qa()),e.set(n,o)}};return r},Ya=String.prototype.replace,Xa=/%20/g,Ge={RFC1738:"RFC1738",RFC3986:"RFC3986"},lt={default:Ge.RFC3986,formatters:{RFC1738:function(t){return Ya.call(t,Xa,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ge.RFC1738,RFC3986:Ge.RFC3986},Za=lt,He=Object.prototype.hasOwnProperty,j=Array.isArray,O=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ei=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(j(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},xr=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},ti=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(j(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!He.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return j(e)&&!j(r)&&(o=xr(e,n)),j(e)&&j(r)?(r.forEach(function(a,i){if(He.call(e,i)){var f=e[i];f&&typeof f=="object"&&a&&typeof a=="object"?e[i]=t(f,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var f=r[i];return He.call(a,i)?a[i]=t(a[i],f,n):a[i]=f,a},o)},ri=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ni=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}},Ke=1024,oi=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(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var f="",l=0;l<i.length;l+=Ke){for(var s=i.length>=Ke?i.slice(l,l+Ke):i,c=[],p=0;p<s.length;++p){var u=s.charCodeAt(p);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===Za.RFC1738&&(u===40||u===41)){c[c.length]=s.charAt(p);continue}if(u<128){c[c.length]=O[u];continue}if(u<2048){c[c.length]=O[192|u>>6]+O[128|u&63];continue}if(u<55296||u>=57344){c[c.length]=O[224|u>>12]+O[128|u>>6&63]+O[128|u&63];continue}p+=1,u=65536+((u&1023)<<10|s.charCodeAt(p)&1023),c[c.length]=O[240|u>>18]+O[128|u>>12&63]+O[128|u>>6&63]+O[128|u&63]}f+=c.join("")}return f},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],f=Object.keys(i),l=0;l<f.length;++l){var s=f[l],c=i[s];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:s}),n.push(c))}return ei(r),e},ii=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},li=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ci=function(e,r){return[].concat(e,r)},fi=function(e,r){if(j(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Ar={arrayToObject:xr,assign:ri,combine:ci,compact:ai,decode:ni,encode:oi,isBuffer:li,isRegExp:ii,maybeMap:fi,merge:ti},Or=Ja,ve=Ar,oe=lt,si=Object.prototype.hasOwnProperty,Pr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},P=Array.isArray,ui=Array.prototype.push,Er=function(t,e){ui.apply(t,P(e)?e:[e])},pi=Date.prototype.toISOString,Ut=oe.default,_={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Ut,formatter:oe.formatters[Ut],indices:!1,serializeDate:function(e){return pi.call(e)},skipNulls:!1,strictNullHandling:!1},yi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ve={},di=function t(e,r,n,o,a,i,f,l,s,c,p,u,v,y,h,S,w,R){for(var m=e,k=R,D=0,Y=!1;(k=k.get(Ve))!==void 0&&!Y;){var z=k.get(e);if(D+=1,typeof z<"u"){if(z===D)throw new RangeError("Cyclic object value");Y=!0}typeof k.get(Ve)>"u"&&(D=0)}if(typeof c=="function"?m=c(r,m):m instanceof Date?m=v(m):n==="comma"&&P(m)&&(m=ve.maybeMap(m,function(Ee){return Ee instanceof Date?v(Ee):Ee})),m===null){if(i)return s&&!S?s(r,_.encoder,w,"key",y):r;m=""}if(yi(m)||ve.isBuffer(m)){if(s){var fe=S?r:s(r,_.encoder,w,"key",y);return[h(fe)+"="+h(s(m,_.encoder,w,"value",y))]}return[h(r)+"="+h(String(m))]}var M=[];if(typeof m>"u")return M;var C;if(n==="comma"&&P(m))S&&s&&(m=ve.maybeMap(m,s)),C=[{value:m.length>0?m.join(",")||null:void 0}];else if(P(c))C=c;else{var se=Object.keys(m);C=p?se.sort(p):se}var q=l?String(r).replace(/\./g,"%2E"):String(r),A=o&&P(m)&&m.length===1?q+"[]":q;if(a&&P(m)&&m.length===0)return A+"[]";for(var T=0;T<C.length;++T){var $=C[T],X=typeof $=="object"&&$&&typeof $.value<"u"?$.value:m[$];if(!(f&&X===null)){var Pe=u&&l?String($).replace(/\./g,"%2E"):String($),Fr=P(m)?typeof n=="function"?n(A,Pe):A:A+(u?"."+Pe:"["+Pe+"]");R.set(e,D);var ft=Or();ft.set(Ve,R),Er(M,t(X,Fr,n,o,a,i,f,l,n==="comma"&&S&&P(m)?null:s,c,p,u,v,y,h,S,w,ft))}}return M},vi=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=oe.default;if(typeof e.format<"u"){if(!si.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=_.filter;(typeof e.filter=="function"||P(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Pr?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 f=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:f,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}},mi=function(t,e){var r=t,n=vi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):P(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var f=Pr[n.arrayFormat],l=f==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Or(),c=0;c<o.length;++c){var p=o[c],u=r[p];n.skipNulls&&u===null||Er(i,di(u,p,f,l,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 v=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&"),v.length>0?y+v:""},U=Ar,et=Object.prototype.hasOwnProperty,Lt=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:U.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},gi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},$r=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},hi="utf8=%26%2310003%3B",_i="utf8=%E2%9C%93",bi=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 f=-1,l,s=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===_i?s="utf-8":i[l]===hi&&(s="iso-8859-1"),f=l,l=i.length);for(l=0;l<i.length;++l)if(l!==f){var c=i[l],p=c.indexOf("]="),u=p===-1?c.indexOf("="):p+1,v,y;u===-1?(v=r.decoder(c,g.decoder,s,"key"),y=r.strictNullHandling?null:""):(v=r.decoder(c.slice(0,u),g.decoder,s,"key"),y=U.maybeMap($r(c.slice(u+1),r,Lt(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,s,"value")})),y&&r.interpretNumericEntities&&s==="iso-8859-1"&&(y=gi(String(y))),c.indexOf("[]=")>-1&&(y=Lt(y)?[y]:y);var h=et.call(n,v);h&&r.duplicates==="combine"?n[v]=U.combine(n[v],y):(!h||r.duplicates==="last")&&(n[v]=y)}return n},Si=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:$r(e,r,o),f=t.length-1;f>=0;--f){var l,s=t[f];if(s==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=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,u=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(u)&&s!==p&&String(u)===p&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(l=[],l[u]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},wi=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),s=l?a.slice(0,l.index):a,c=[];if(s){if(!n.plainObjects&&et.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var p=0;n.depth>0&&(l=f.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&et.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+a.slice(l.index)+"]")}return Si(c,r,n,o)}},xi=function(e){if(!e)return g;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"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.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:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||U.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Ai=function(t,e){var r=xi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?bi(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var f=a[i],l=wi(f,n[f],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},Oi=mi,Pi=Ai,Ei=lt,$i={formats:Ei,parse:Pi,stringify:Oi};const Ii=rr($i);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Ii.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 ct(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 Ir(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Rr(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}`:"",f=new URL(ct(`${t}${i}`,r)),l=await Oe(f,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const s=await l.json(),c=e.findIndex(p=>p.documentId===s.id);return c!==-1?(e[c]=s,[...e]):[s,...e]}return e}const Ri=Object.freeze(Object.defineProperty({__proto__:null,createUrl:ct,fetchCMS:Oe,mergePreviewDocument:Rr,spreadStrapiData:Ir},Symbol.toStringTag,{value:"Module"}));async function kr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Oe(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?Ir(a):a}:{status:404,data:[],error:"No data found"}}async function Cr(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 f=1,l=0,s=!0;try{do{const c=await Oe(e,{...a,page:f},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));f===1&&(l=c.totalItems),Array.isArray(c==null?void 0:c.data)&&i.push(...c.data),s=!!(c!=null&&c.hasNextPage),f++}while(s&&i.length<l);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const c=await Rr(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:kr,vtexCMSData:Cr},Symbol.toStringTag,{value:"Module"}));async function Ci({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 Tr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(ct(t,e));return n!=="vtex"?kr(o,e,r):Cr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ti=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Tr,getCMSContentType:Ci},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Nn;exports.addSearchParamsFacets=Kr;exports.catalogHelpers=fn;exports.cms=Ti;exports.cmsHelpers=ki;exports.cmsUtils=Ri;exports.convertSearchParams=Yr;exports.disableSKU=Vt;exports.fetchContentType=Tr;exports.filterNonCategorySelected=Ur;exports.filterNonRootFacets=Qr;exports.formatPriceToCurrency=me;exports.formattedFacets=Hr;exports.freightParsePrice=zt;exports.getColorAndSizeFromSkuName=Wt;exports.getDefaultExportFromCjs=rr;exports.getDiscountPercent=qt;exports.getFirstImages=Zt;exports.getProductNameWithoutSku=Ht;exports.getSKUName=Gt;exports.getSimilars=sn;exports.getSkuInfos=Kt;exports.getThumbImage=Jt;exports.getValidOffer=Qt;exports.navigateToSearchPage=Xr;exports.parseSearchState=Jr;exports.productHelpers=jr;exports.resizingImg=Yt;exports.responsive=ee;exports.setVideoPlay=er;exports.splitNameAndSizeFromFullName=tt;exports.styles=Fn;exports.updatedResizedImg=Xt;
|