@soma-vertical-web/multi-lib 1.0.1 → 1.0.3

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 (34) hide show
  1. package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
  2. package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
  3. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
  4. package/cms/index.d.ts +2 -2
  5. package/cms/server.d.ts +1 -1
  6. package/contexts/hooks/useOperations.d.ts +1 -1
  7. package/index-4WXjd-uR.js +4 -0
  8. package/index-4tOP7lCS.js +4 -0
  9. package/index-ByhWQJ9Z.mjs +1844 -0
  10. package/index-CCvTne7y.mjs +1826 -0
  11. package/index.js +13 -13
  12. package/index.mjs +3952 -3828
  13. package/index2.js +1 -1
  14. package/index2.mjs +407 -404
  15. package/layout/index.d.ts +3 -3
  16. package/layout/team-component/BackToTop/BackToTop.d.ts +1 -1
  17. package/layout/team-component/Footer/Footer.d.ts +1 -1
  18. package/layout/team-component/ProductList/Composite/Card/Actions.d.ts +1 -1
  19. package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
  20. package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +1 -1
  21. package/layout/template/MiniCart/Composite/Card/index.d.ts +2 -2
  22. package/layout/template/PDC/Composite/Grid/Banners.d.ts +1 -1
  23. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  24. package/layout/template/SearchModal/Composite/Recommendations.d.ts +4 -2
  25. package/layout/template/SearchModal/SearchModal.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/server.d.ts +16 -0
  28. package/style.css +1 -1
  29. package/types/cms/ContentTypes/Footer/index.d.ts +1 -0
  30. package/types/cms/Sections/BannerCarousel/index.d.ts +2 -1
  31. package/types/cms/Sections/SectionZone/index.d.ts +1 -0
  32. package/types/layout/team-components/BackToTop/index.d.ts +1 -0
  33. package/types/layout/templates/PLP/index.d.ts +2 -2
  34. package/types/layout/templates/SearchModal/index.d.ts +1 -2
@@ -1,3 +1,3 @@
1
1
  import { FooterContentProps } from '../../../types/cms/ContentTypes/Footer';
2
2
 
3
- export declare const FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, ...props }: FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
3
+ export declare const FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, hasFooterStamps, ...props }: FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { BannerContentProps } from '../../../../types/cms/Sections/Banner';
3
3
 
4
- export declare const BannerContent: ({ data, videoUrl, priority, videoRef, ICONS, TEXTCONTENT_EXPANDED, TIME_ZONE, ...props }: BannerContentProps & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const BannerContent: ({ data, videoUrl, priority, videoRef, ICONS, TEXTCONTENT_EXPANDED, TIME_ZONE, className, ...props }: BannerContentProps & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { ProductCarouselProps, PDPProductCarouselProps } from '../../../types/cms/Sections/ProductCarousel';
2
2
 
3
- export declare const PDPProductCarousel: ({ data, CONSTANTS, }: PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
4
- export declare const ProductCarousel: ({ data, CONSTANTS }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
3
+ export declare const PDPProductCarousel: ({ data, CONSTANTS, }: PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
4
+ export declare const ProductCarousel: ({ data, CONSTANTS }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
package/cms/index.d.ts CHANGED
@@ -17,8 +17,8 @@ export declare const clientCMS: {
17
17
  SearchPageScreening: ({ children, data, SectionZone, className, }: import('../types/cms/ContentTypes/Search').SearchPageScrenningProps) => import("react/jsx-runtime").JSX.Element;
18
18
  SearchContent: ({ SectionZone, name, storeId, previewId, }: import('../types/cms/ContentTypes/Search').SearchContentProps) => import("react/jsx-runtime").JSX.Element;
19
19
  NewsletterSection: ({ data: { componentIndex, ...props }, CONSTANTS, }: import('../types/cms/Sections/Newsletter').NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
20
- PDPProductCarousel: ({ data, CONSTANTS, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
21
- ProductCarousel: ({ data, CONSTANTS }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
20
+ PDPProductCarousel: ({ data, CONSTANTS, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
21
+ ProductCarousel: ({ data, CONSTANTS }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
22
22
  EmbedLive: ({ data }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
23
23
  PopupModalSection: ({ data, CONSTANTS, }: import('../types/cms/Sections/PopupModal').PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
24
24
  SectionZone: import('react').FunctionComponent<import('../types/cms/Sections/SectionZone').SectionZoneProps>;
package/cms/server.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const serverCMS: {
5
5
  FlagsAndTagsContent: ({ children, ClientFlagsAndTagsProvider, ...props }: import('../types/cms/ContentTypes/FlagsAndTags').FlagsAndTagsContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
6
6
  HeaderContent: ({ children, ClientHeaderProvider, ...props }: import('../types/cms/ContentTypes/Header').HeaderContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
7
7
  TipbarContent: ({ ClientTipbarContent, ...props }: import('../types/cms/ContentTypes/Tipbar').TipbarContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
8
- FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, ...props }: import('../types/cms/ContentTypes/Footer').FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
8
+ FooterContent: ({ className, PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, ICONS, SectionZone, Footer, FooterSupport, hasFooterStamps, ...props }: import('../types/cms/ContentTypes/Footer').FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
9
9
  PLPContent: ({ className, children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: import('../types/cms/ContentTypes/PLP').PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
10
10
  PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: import('../types/cms/ContentTypes/PDP').PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
11
11
  getRedirectData: ({ slug, ...props }: import('../types/cms/ContentTypes/Redirects').Redirects) => Promise<{
@@ -5,7 +5,7 @@ import { ShippingOption, ShippingData, DeliveryMode } from '../../types/data/api
5
5
  declare const useOperations: () => {
6
6
  addCoupon: (orderFormId: string, coupon: string) => Promise<any>;
7
7
  addItem: (orderFormId: string, items: CartItemStore[], item: AddToCart | AddToCart[]) => Promise<any>;
8
- addSellerCode: (orderFormId: string, code: string, keys?: Record<string, string>) => Promise<any>;
8
+ addSellerCode: (orderFormId: string, code: string, keys?: Record<string, string>, isOpen?: boolean) => Promise<any>;
9
9
  addMarketingData: (orderFormId: string, marketingData: any) => Promise<any>;
10
10
  giftItem: (orderFormId: string, id: string, itemIndex: number, remove?: boolean) => Promise<any>;
11
11
  emptyCart: (orderFormId: string) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ "use strict";const w=require("react/jsx-runtime"),$r=require("@soma-vertical-web/core-components"),ve=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Mt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:ve(0):ve(t/100),Bt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},Xe=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},kt=(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()}},Ut=(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},Lt=(t,e)=>t.replace(e,"").trim(),Ir=t=>t.replace(/\//g,""),zt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var u;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:s,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;r.price=l,r.listPrice=s;const p=(u=f==null?void 0:f[0])==null?void 0:u.installments;if(p){const{count:m,value:d}=p[p.length-1];r.installments={count:m,value:d/100}}};let o=!0;const a=t.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Xe(c.nameComplete??c.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=c.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}},Wt=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)},Gt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],jt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Ht=(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},Kt=({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},Rr=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},Vt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Fr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Wt,formatPriceToCurrency:ve,freightParsePrice:Mt,getAspectRatio:Rr,getColorAndSizeFromSkuName:kt,getDiscountPercent:Bt,getFirstImages:Kt,getProductNameWithoutSku:Lt,getSKUName:Ut,getSkuInfos:zt,getThumbImage:Gt,getValidOffer:qt,removeSlashes:Ir,resizingImg:jt,setVideoPlay:Vt,splitNameAndSizeFromFullName:Xe,updatedResizedImg:Ht},Symbol.toStringTag,{value:"Module"})),lt="fuzzy",ct="operator",Nr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Tr=(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})},Qt=(t,e)=>e?t==="category-1":!1,Cr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Dr=t=>t.type==="TEXT",Mr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Br=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))}},kr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Ur=(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||!Qt(i.key,o)).map(i=>Dr(i)?Br(i):kr(i))},Lr=(t,e)=>{const r=t.find(({key:o})=>o===lt)??null,n=t.find(({key:o})=>o===ct)??null;r&&Mr(r)&&e.append(lt,r.value),n&&Cr(n)&&e.append(ct,n.value)},zr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),Wr=(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}=Nr(n);return n==null?void 0:n.filter(a=>!Qt(a.key,o))},qr=({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:zr(r),term:o,base:o?"":t,page:a}},Gr=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},jr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hr(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 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"},Kr="_header_mpbx7_57",Vr="_actions_mpbx7_131",Qr="_breadcrumb_mpbx7_142",Jr="_credits_mpbx7_157",Yr="_pdplinks_mpbx7_185",Xr="_similars_mpbx7_212",Zr="_sizes_mpbx7_251",en="_measurementTable_mpbx7_267",tn="_measurementHead_mpbx7_280",rn="_measurementRows_mpbx7_285",nn="_measurementRowsTitle_mpbx7_302",on="_measurementRowsText_mpbx7_314",an="_measurementImage_mpbx7_325",ln="_measurementImageContainer_mpbx7_328",cn="_measurementContent_mpbx7_337",fn="_measurementTitle_mpbx7_341",un="_measurementClose_mpbx7_352",sn="_productref_mpbx7_417",pn="_slideOut_mpbx7_1",yn="_slideIn_mpbx7_1",dn="_content_mpbx7_397",mn="_pdp_mpbx7_185",vn="_divider_mpbx7_580",gn={"bottom-navigation":"_bottom-navigation_mpbx7_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_mpbx7_18","bottom-navigation__header":"_bottom-navigation__header_mpbx7_21","bottom-navigation__header-content":"_bottom-navigation__header-content_mpbx7_26","golden-tag-content":"_golden-tag-content_mpbx7_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_mpbx7_48",header:Kr,"golden-tag":"_golden-tag_mpbx7_45","golden-tag-video":"_golden-tag-video_mpbx7_86","golden-tag-content-text":"_golden-tag-content-text_mpbx7_105",actions:Vr,"add-to-cart":"_add-to-cart_mpbx7_138",breadcrumb:Qr,"breadcrumb--active":"_breadcrumb--active_mpbx7_147",credits:Jr,"gallery-carousel-modifier":"_gallery-carousel-modifier_mpbx7_162",pdplinks:Yr,"links-wrapper":"_links-wrapper_mpbx7_195",similars:Xr,"similars-info":"_similars-info_mpbx7_224","toggle-style-modifier":"_toggle-style-modifier_mpbx7_233","accessibility-info":"_accessibility-info_mpbx7_237",sizes:Zr,"price-wrapper":"_price-wrapper_mpbx7_263",measurementTable:en,measurementHead:tn,measurementRows:rn,measurementRowsTitle:nn,measurementRowsText:on,measurementImage:an,measurementImageContainer:ln,measurementContent:cn,measurementTitle:fn,measurementClose:un,"tabs-root-modifier":"_tabs-root-modifier_mpbx7_358","tabs-list-modifier":"_tabs-list-modifier_mpbx7_376","tabs-item-modifier":"_tabs-item-modifier_mpbx7_393","content-wrapper":"_content-wrapper_mpbx7_397",productref:sn,"tabs-panel":"_tabs-panel_mpbx7_428","tabs-panel-exit":"_tabs-panel-exit_mpbx7_434",slideOut:pn,"tabs-panel-enter":"_tabs-panel-enter_mpbx7_438",slideIn:yn,content:dn,pdp:mn,"pdp-main":"_pdp-main_mpbx7_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_mpbx7_501","pdp-main__info":"_pdp-main__info_mpbx7_518","pdp-main__info-main-content":"_pdp-main__info-main-content_mpbx7_538","pdp-main__info-subsection":"_pdp-main__info-subsection_mpbx7_538","subsection-product-info":"_subsection-product-info_mpbx7_549","subsection-similars":"_subsection-similars_mpbx7_552","subsection-sizes":"_subsection-sizes_mpbx7_555","subsection-actions":"_subsection-actions_mpbx7_558","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_mpbx7_562","sections-title":"_sections-title_mpbx7_568",divider:vn,"breadcrumbs-desktop":"_breadcrumbs-desktop_mpbx7_585","breadcrumbs-mobile":"_breadcrumbs-mobile_mpbx7_594"},hn=({children:t,data:e,SectionZone:r,className:n})=>{var f,p;const o=((f=e==null?void 0:e.filter(u=>{var m,d;return((d=(m=u.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:f.sections)||[],a=((p=e==null?void 0:e.filter(u=>{var m,d;return((d=(m=u.config)==null?void 0:m.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),c=o.slice(1,o.length),l=a.slice(0,1),s=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:l??[]})})]}),t,w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:c??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:s??[]})}),w.jsx($r.Utils.Divider,{})]})};var J=TypeError;const bn={},_n=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"})),Sn=Hr(_n);var Ze=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=Ze&&$e&&typeof $e.get=="function"?$e.get:null,ut=Ze&&Map.prototype.forEach,et=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=et&&Ie&&typeof Ie.get=="function"?Ie.get:null,st=et&&Set.prototype.forEach,wn=typeof WeakMap=="function"&&WeakMap.prototype,te=wn?WeakMap.prototype.has:null,An=typeof WeakSet=="function"&&WeakSet.prototype,re=An?WeakSet.prototype.has:null,On=typeof WeakRef=="function"&&WeakRef.prototype,pt=On?WeakRef.prototype.deref:null,xn=Boolean.prototype.valueOf,Pn=Object.prototype.toString,En=Function.prototype.toString,$n=String.prototype.match,tt=String.prototype.slice,C=String.prototype.replace,In=String.prototype.toUpperCase,yt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,dt=Array.prototype.concat,P=Array.prototype.join,Rn=Array.prototype.slice,mt=Math.floor,He=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,Ke=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,Xt=Object.prototype.propertyIsEnumerable,vt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function gt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Yt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-mt(-t):mt(t);if(n!==t){var o=String(n),a=tt.call(e,o.length+1);return C.call(o,r,"$&_")+"."+C.call(C.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(e,r,"$&_")}var Ve=Sn,ht=Ve.custom,bt=tr(ht)?ht:null,Zt={__proto__:null,double:'"',single:"'"},Fn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if($(a,"quoteStyle")&&!$(Zt,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(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=$(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($(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($(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=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 nr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?gt(e,l):l}if(typeof e=="bigint"){var s=String(e)+"n";return c?gt(e,s):s}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Qe(e)?"[Array]":"[Object]";var p=Qn(a,n);if(typeof o>"u")o=[];else if(rr(o,e)>=0)return"[Circular]";function u(A,T,E){if(T&&(o=Rn.call(o),o.push(T)),E){var X={depth:a.depth};return $(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(A,X,n+1,o)}return t(A,a,n+1,o)}if(typeof e=="function"&&!_t(e)){var m=Ln(e),d=se(e,u);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(d.length>0?" { "+P.call(d,", ")+" }":"")}if(tr(e)){var _=V?C.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ke.call(e);return typeof e=="object"&&!V?Z(_):_}if(Hn(e)){for(var S="<"+yt.call(String(e.nodeName)),I=e.attributes||[],R=0;R<I.length;R++)S+=" "+I[R].name+"="+er(Nn(I[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+yt.call(String(e.nodeName))+">",S}if(Qe(e)){if(e.length===0)return"[]";var v=se(e,u);return p&&!Vn(v)?"["+Je(v,p)+"]":"[ "+P.call(v,", ")+" ]"}if(Cn(e)){var F=se(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!Xt.call(e,"cause")?"{ ["+String(e)+"] "+P.call(dt.call("[cause]: "+u(e.cause),F),", ")+" }":F.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(F,", ")+" }"}if(typeof e=="object"&&i){if(bt&&typeof e[bt]=="function"&&Ve)return Ve(e,{depth:f-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(zn(e)){var M=[];return ut&&ut.call(e,function(A,T){M.push(u(T,e,!0)+" => "+u(A,e))}),St("Map",ge.call(e),M,p)}if(Gn(e)){var Y=[];return st&&st.call(e,function(A){Y.push(u(A,e))}),St("Set",he.call(e),Y,p)}if(Wn(e))return Fe("WeakMap");if(jn(e))return Fe("WeakSet");if(qn(e))return Fe("WeakRef");if(Mn(e))return Z(u(Number(e)));if(kn(e))return Z(u(He.call(e)));if(Bn(e))return Z(xn.call(e));if(Dn(e))return Z(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ft<"u"&&e===ft)return"{ [object globalThis] }";if(!Tn(e)&&!_t(e)){var W=se(e,u),fe=vt?vt(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",N=!fe&&ne&&Object(e)===e&&ne in e?tt.call(D(e),8,-1):B?"Object":"",ue=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",q=ue+(N||B?"["+P.call(dt.call([],N||[],B||[]),": ")+"] ":"");return W.length===0?q+"{}":p?q+"{"+Je(W,p)+"}":q+"{ "+P.call(W,", ")+" }"}return String(e)};function er(t,e,r){var n=r.quoteStyle||e,o=Zt[n];return o+t+o}function Nn(t){return C.call(String(t),/"/g,"&quot;")}function z(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Qe(t){return D(t)==="[object Array]"&&z(t)}function Tn(t){return D(t)==="[object Date]"&&z(t)}function _t(t){return D(t)==="[object RegExp]"&&z(t)}function Cn(t){return D(t)==="[object Error]"&&z(t)}function Dn(t){return D(t)==="[object String]"&&z(t)}function Mn(t){return D(t)==="[object Number]"&&z(t)}function Bn(t){return D(t)==="[object Boolean]"&&z(t)}function tr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ke)return!1;try{return Ke.call(t),!0}catch{}return!1}function kn(t){if(!t||typeof t!="object"||!He)return!1;try{return He.call(t),!0}catch{}return!1}var Un=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return Un.call(t,e)}function D(t){return Pn.call(t)}function Ln(t){if(t.name)return t.name;var e=$n.call(En.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rr(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 zn(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 Wn(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 qn(t){if(!pt||!t||typeof t!="object")return!1;try{return pt.call(t),!0}catch{}return!1}function Gn(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 jn(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 Hn(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function nr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nr(tt.call(t,0,e.maxStringLength),e)+n}var o=Fn[e.quoteStyle||"single"];o.lastIndex=0;var a=C.call(C.call(t,o,"\\$1"),/[\x00-\x1f]/g,Kn);return er(a,"single",e)}function Kn(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":"")+In.call(e.toString(16))}function Z(t){return"Object("+t+")"}function Fe(t){return t+" { ? }"}function St(t,e,r,n){var o=n?Je(r,n):P.call(r,", ");return t+" ("+e+") {"+o+"}"}function Vn(t){for(var e=0;e<t.length;e++)if(rr(t[e],`
2
+ `)>=0)return!1;return!0}function Qn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=P.call(Array(t.indent+1)," ");else return null;return{base:r,prev:P.call(Array(e+1),r)}}function Je(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+P.call(t,","+r)+`
4
+ `+e.prev}function se(t,e){var r=Qe(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)$(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(Yt.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++)Xt.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var Jn=Se,Yn=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},Xn=function(t,e){if(t){var r=we(t,e);return r&&r.value}},Zn=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},eo=function(t,e){return t?!!we(t,e):!1},to=function(t,e){if(t)return we(t,e,!0)},ro=function(){var e,r={assert:function(n){if(!r.has(n))throw new Yn("Side channel does not contain "+Jn(n))},delete:function(n){var o=e&&e.next,a=to(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return Xn(e,n)},has:function(n){return eo(e,n)},set:function(n,o){e||(e={next:void 0}),Zn(e,n,o)}};return r},or=Object,no=Error,oo=EvalError,ao=RangeError,io=ReferenceError,lo=SyntaxError,co=URIError,fo=Math.abs,uo=Math.floor,so=Math.max,po=Math.min,yo=Math.pow,mo=Math.round,vo=Number.isNaN||function(e){return e!==e},go=vo,ho=function(e){return go(e)||e===0?e:e<0?-1:1},bo=Object.getOwnPropertyDescriptor,ye=bo;if(ye)try{ye([],"length")}catch{ye=null}var ar=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var _o=de,Ne,wt;function So(){return wt||(wt=1,Ne=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 c=Object.getOwnPropertyDescriptor(e,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Ne}var Te,At;function wo(){if(At)return Te;At=1;var t=typeof Symbol<"u"&&Symbol,e=So();return Te=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Te}var Ce,Ot;function ir(){return Ot||(Ot=1,Ce=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ce}var De,xt;function lr(){if(xt)return De;xt=1;var t=or;return De=t.getPrototypeOf||null,De}var Ao="Function.prototype.bind called on incompatible ",Oo=Object.prototype.toString,xo=Math.max,Po="[object Function]",Pt=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},Eo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},$o=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Io=function(e){var r=this;if(typeof r!="function"||Oo.apply(r)!==Po)throw new TypeError(Ao+r);for(var n=Eo(arguments,1),o,a=function(){if(this instanceof o){var f=r.apply(this,Pt(n,arguments));return Object(f)===f?f:this}return r.apply(e,Pt(n,arguments))},i=xo(0,r.length-n.length),c=[],l=0;l<i;l++)c[l]="$"+l;if(o=Function("binder","return function ("+$o(c,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o},Ro=Io,Ae=Function.prototype.bind||Ro,rt=Function.prototype.call,Me,Et;function cr(){return Et||(Et=1,Me=Function.prototype.apply),Me}var Fo=typeof Reflect<"u"&&Reflect&&Reflect.apply,No=Ae,To=cr(),Co=rt,Do=Fo,Mo=Do||No.call(Co,To),Bo=Ae,ko=J,Uo=rt,Lo=Mo,fr=function(e){if(e.length<1||typeof e[0]!="function")throw new ko("a function is required");return Lo(Bo,Uo,e)},Be,$t;function zo(){if($t)return Be;$t=1;var t=fr,e=ar,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 Be=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(c){return a(c==null?c:o(c))}:!1,Be}var ke,It;function Wo(){if(It)return ke;It=1;var t=ir(),e=lr(),r=zo();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 Ue,Rt;function qo(){if(Rt)return Ue;Rt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Ae;return Ue=r.call(t,e),Ue}var y,Go=or,jo=no,Ho=oo,Ko=ao,Vo=io,Q=lo,K=J,Qo=co,Jo=fo,Yo=uo,Xo=so,Zo=po,ea=yo,ta=mo,ra=ho,ur=Function,Le=function(t){try{return ur('"use strict"; return ('+t+").constructor;")()}catch{}},ae=ar,na=_o,ze=function(){throw new K},oa=ae?function(){try{return arguments.callee,ze}catch{try{return ae(arguments,"callee").get}catch{return ze}}}():ze,G=wo()(),b=Wo(),aa=lr(),ia=ir(),sr=cr(),ie=rt,H={},la=typeof Uint8Array>"u"||!b?y:b(Uint8Array),U={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":G&&b?b([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":jo,"%eval%":eval,"%EvalError%":Ho,"%Float16Array%":typeof Float16Array>"u"?y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":ur,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G&&b?b(b([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!b?y:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Go,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":Ko,"%ReferenceError%":Vo,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G||!b?y:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&b?b(""[Symbol.iterator]()):y,"%Symbol%":G?Symbol:y,"%SyntaxError%":Q,"%ThrowTypeError%":oa,"%TypedArray%":la,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":Qo,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":sr,"%Object.defineProperty%":na,"%Object.getPrototypeOf%":aa,"%Math.abs%":Jo,"%Math.floor%":Yo,"%Math.max%":Xo,"%Math.min%":Zo,"%Math.pow%":ea,"%Math.round%":ta,"%Math.sign%":ra,"%Reflect.getPrototypeOf%":ia};if(b)try{null.error}catch(t){var ca=b(b(t));U["%Error.prototype%"]=ca}var fa=function t(e){var r;if(e==="%AsyncFunction%")r=Le("async function () {}");else if(e==="%GeneratorFunction%")r=Le("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Le("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 U[e]=r,r},Ft={__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=Ae,be=qo(),ua=le.call(ie,Array.prototype.concat),sa=le.call(sr,Array.prototype.splice),Nt=le.call(ie,String.prototype.replace),_e=le.call(ie,String.prototype.slice),pa=le.call(ie,RegExp.prototype.exec),ya=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,ma=function(e){var r=_e(e,0,1),n=_e(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 Nt(e,ya,function(a,i,c,l){o[o.length]=c?Nt(l,da,"$1"):i||a}),o},va=function(e,r){var n=e,o;if(be(Ft,n)&&(o=Ft[n],n="%"+o[0]+"%"),be(U,n)){var a=U[n];if(a===H&&(a=fa(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!")},nt=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(pa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ma(e),o=n.length>0?n[0]:"",a=va("%"+o+"%",r),i=a.name,c=a.value,l=!1,s=a.alias;s&&(o=s[0],sa(n,ua([0,1],s)));for(var f=1,p=!0;f<n.length;f+=1){var u=n[f],m=_e(u,0,1),d=_e(u,-1);if((m==='"'||m==="'"||m==="`"||d==='"'||d==="'"||d==="`")&&m!==d)throw new Q("property names with quotes must have matching quotes");if((u==="constructor"||!p)&&(l=!0),o+="."+u,i="%"+o+"%",be(U,i))c=U[i];else if(c!=null){if(!(u in c)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&f+1>=n.length){var _=ae(c,u);p=!!_,p&&"get"in _&&!("originalValue"in _.get)?c=_.get:c=c[u]}else p=be(c,u),c=c[u];p&&!l&&(U[i]=c)}}return c},pr=nt,yr=fr,ga=yr([pr("%String.prototype.indexOf%")]),dr=function(e,r){var n=pr(e,!!r);return typeof n=="function"&&ga(e,".prototype.")>-1?yr([n]):n},ha=nt,ce=dr,ba=Se,_a=J,Tt=ha("%Map%",!0),Sa=ce("Map.prototype.get",!0),wa=ce("Map.prototype.set",!0),Aa=ce("Map.prototype.has",!0),Oa=ce("Map.prototype.delete",!0),xa=ce("Map.prototype.size",!0),mr=!!Tt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new _a("Side channel does not contain "+ba(n))},delete:function(n){if(e){var o=Oa(e,n);return xa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Sa(e,n)},has:function(n){return e?Aa(e,n):!1},set:function(n,o){e||(e=new Tt),wa(e,n,o)}};return r},Pa=nt,Oe=dr,Ea=Se,pe=mr,$a=J,j=Pa("%WeakMap%",!0),Ia=Oe("WeakMap.prototype.get",!0),Ra=Oe("WeakMap.prototype.set",!0),Fa=Oe("WeakMap.prototype.has",!0),Na=Oe("WeakMap.prototype.delete",!0),Ta=j?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new $a("Side channel does not contain "+Ea(o))},delete:function(o){if(j&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Na(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return j&&o&&(typeof o=="object"||typeof o=="function")&&e?Ia(e,o):r&&r.get(o)},has:function(o){return j&&o&&(typeof o=="object"||typeof o=="function")&&e?Fa(e,o):!!r&&r.has(o)},set:function(o,a){j&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new j),Ra(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Ca=J,Da=Se,Ma=ro,Ba=mr,ka=Ta,Ua=ka||Ba||Ma,La=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ca("Side channel does not contain "+Da(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=Ua()),e.set(n,o)}};return r},za=String.prototype.replace,Wa=/%20/g,We={RFC1738:"RFC1738",RFC3986:"RFC3986"},ot={default:We.RFC3986,formatters:{RFC1738:function(t){return za.call(t,Wa,"+")},RFC3986:function(t){return String(t)}},RFC1738:We.RFC1738,RFC3986:We.RFC3986},qa=ot,qe=Object.prototype.hasOwnProperty,k=Array.isArray,O=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Ga=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(k(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},vr=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},ja=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(k(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qe.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 k(e)&&!k(r)&&(o=vr(e,n)),k(e)&&k(r)?(r.forEach(function(a,i){if(qe.call(e,i)){var c=e[i];c&&typeof c=="object"&&a&&typeof a=="object"?e[i]=t(c,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var c=r[i];return qe.call(a,i)?a[i]=t(a[i],c,n):a[i]=c,a},o)},Ha=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ka=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}},Ge=1024,Va=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(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var c="",l=0;l<i.length;l+=Ge){for(var s=i.length>=Ge?i.slice(l,l+Ge):i,f=[],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===qa.RFC1738&&(u===40||u===41)){f[f.length]=s.charAt(p);continue}if(u<128){f[f.length]=O[u];continue}if(u<2048){f[f.length]=O[192|u>>6]+O[128|u&63];continue}if(u<55296||u>=57344){f[f.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),f[f.length]=O[240|u>>18]+O[128|u>>12&63]+O[128|u>>6&63]+O[128|u&63]}c+=f.join("")}return c},Qa=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],c=Object.keys(i),l=0;l<c.length;++l){var s=c[l],f=i[s];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:i,prop:s}),n.push(f))}return Ga(r),e},Ja=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ya=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Xa=function(e,r){return[].concat(e,r)},Za=function(e,r){if(k(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},gr={arrayToObject:vr,assign:Ha,combine:Xa,compact:Qa,decode:Ka,encode:Va,isBuffer:Ya,isRegExp:Ja,maybeMap:Za,merge:ja},hr=La,me=gr,oe=ot,ei=Object.prototype.hasOwnProperty,br={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,_r=function(t,e){ti.apply(t,x(e)?e:[e])},ri=Date.prototype.toISOString,Ct=oe.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:me.encode,encodeValuesOnly:!1,filter:void 0,format:Ct,formatter:oe.formatters[Ct],indices:!1,serializeDate:function(e){return ri.call(e)},skipNulls:!1,strictNullHandling:!1},ni=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},je={},oi=function t(e,r,n,o,a,i,c,l,s,f,p,u,m,d,_,S,I,R){for(var v=e,F=R,M=0,Y=!1;(F=F.get(je))!==void 0&&!Y;){var W=F.get(e);if(M+=1,typeof W<"u"){if(W===M)throw new RangeError("Cyclic object value");Y=!0}typeof F.get(je)>"u"&&(M=0)}if(typeof f=="function"?v=f(r,v):v instanceof Date?v=m(v):n==="comma"&&x(v)&&(v=me.maybeMap(v,function(Ee){return Ee instanceof Date?m(Ee):Ee})),v===null){if(i)return s&&!S?s(r,h.encoder,I,"key",d):r;v=""}if(ni(v)||me.isBuffer(v)){if(s){var fe=S?r:s(r,h.encoder,I,"key",d);return[_(fe)+"="+_(s(v,h.encoder,I,"value",d))]}return[_(r)+"="+_(String(v))]}var B=[];if(typeof v>"u")return B;var N;if(n==="comma"&&x(v))S&&s&&(v=me.maybeMap(v,s)),N=[{value:v.length>0?v.join(",")||null:void 0}];else if(x(f))N=f;else{var ue=Object.keys(v);N=p?ue.sort(p):ue}var q=l?String(r).replace(/\./g,"%2E"):String(r),A=o&&x(v)&&v.length===1?q+"[]":q;if(a&&x(v)&&v.length===0)return A+"[]";for(var T=0;T<N.length;++T){var E=N[T],X=typeof E=="object"&&E&&typeof E.value<"u"?E.value:v[E];if(!(c&&X===null)){var Pe=u&&l?String(E).replace(/\./g,"%2E"):String(E),Er=x(v)?typeof n=="function"?n(A,Pe):A:A+(u?"."+Pe:"["+Pe+"]");R.set(e,M);var it=hr();it.set(je,R),_r(B,t(X,Er,n,o,a,i,c,l,n==="comma"&&S&&x(v)?null:s,f,p,u,m,d,_,S,I,it))}}return B},ai=function(e){if(!e)return h;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||h.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(!ei.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=h.filter;(typeof e.filter=="function"||x(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in br?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=h.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},ii=function(t,e){var r=t,n=ai(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 c=br[n.arrayFormat],l=c==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=hr(),f=0;f<o.length;++f){var p=o[f],u=r[p];n.skipNulls&&u===null||_r(i,oi(u,p,c,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 m=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&"),m.length>0?d+m:""},L=gr,Ye=Object.prototype.hasOwnProperty,Dt=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:L.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},li=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Sr=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},ci="utf8=%26%2310003%3B",fi="utf8=%E2%9C%93",ui=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 c=-1,l,s=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===fi?s="utf-8":i[l]===ci&&(s="iso-8859-1"),c=l,l=i.length);for(l=0;l<i.length;++l)if(l!==c){var f=i[l],p=f.indexOf("]="),u=p===-1?f.indexOf("="):p+1,m,d;u===-1?(m=r.decoder(f,g.decoder,s,"key"),d=r.strictNullHandling?null:""):(m=r.decoder(f.slice(0,u),g.decoder,s,"key"),d=L.maybeMap(Sr(f.slice(u+1),r,Dt(n[m])?n[m].length:0),function(S){return r.decoder(S,g.decoder,s,"value")})),d&&r.interpretNumericEntities&&s==="iso-8859-1"&&(d=li(String(d))),f.indexOf("[]=")>-1&&(d=Dt(d)?[d]:d);var _=Ye.call(n,m);_&&r.duplicates==="combine"?n[m]=L.combine(n[m],d):(!_||r.duplicates==="last")&&(n[m]=d)}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:Sr(e,r,o),c=t.length-1;c>=0;--c){var l,s=t[c];if(s==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:L.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var f=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,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},pi=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),s=l?a.slice(0,l.index):a,f=[];if(s){if(!n.plainObjects&&Ye.call(Object.prototype,s)&&!n.allowPrototypes)return;f.push(s)}for(var p=0;n.depth>0&&(l=c.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ye.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(l.index)+"]")}return si(f,r,n,o)}},yi=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"||L.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}},di=function(t,e){var r=yi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?ui(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var c=a[i],l=pi(c,n[c],r,typeof t=="string");o=L.merge(o,l,r)}return r.allowSparse===!0?o:L.compact(o)},mi=ii,vi=di,gi=ot,hi={formats:gi,parse:vi,stringify:mi};const bi=Jt(hi);async function xe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${bi.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 wr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Ar(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}`:"",c=new URL(at(`${t}${i}`,r)),l=await xe(c,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const s=await l.json(),f=e.findIndex(p=>p.documentId===s.id);return f!==-1?(e[f]=s,[...e]):[s,...e]}return e}const _i=Object.freeze(Object.defineProperty({__proto__:null,createUrl:at,fetchCMS:xe,mergePreviewDocument:Ar,spreadStrapiData:wr},Symbol.toStringTag,{value:"Module"}));async function Or(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await xe(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?wr(a):a}:{status:404,data:[],error:"No data found"}}async function xr(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 c=1,l=0,s=!0;try{do{const f=await xe(e,{...a,page:c},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));c===1&&(l=f.totalItems),Array.isArray(f==null?void 0:f.data)&&i.push(...f.data),s=!!(f!=null&&f.hasNextPage),c++}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 f=await Ar(t,i,a);return{status:f.length>0?200:404,data:f}}return{status:i.length?200:404,data:i}}catch(f){return{status:500,data:[],error:f instanceof Error?f.message:String(f)}}}const Si=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Or,vtexCMSData:xr},Symbol.toStringTag,{value:"Module"}));async function wi({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 Pr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(at(t,e));return n!=="vtex"?Or(o,e,r):xr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ai=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Pr,getCMSContentType:wi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=hn;exports.addSearchParamsFacets=Lr;exports.cms=Ai;exports.cmsHelpers=Si;exports.cmsUtils=_i;exports.convertSearchParams=Gr;exports.disableSKU=Wt;exports.fetchContentType=Pr;exports.filterNonCategorySelected=Tr;exports.filterNonRootFacets=Wr;exports.formatPriceToCurrency=ve;exports.formattedFacets=Ur;exports.freightParsePrice=Mt;exports.getColorAndSizeFromSkuName=kt;exports.getDefaultExportFromCjs=Jt;exports.getDiscountPercent=Bt;exports.getFirstImages=Kt;exports.getProductNameWithoutSku=Lt;exports.getSKUName=Ut;exports.getSkuInfos=zt;exports.getThumbImage=Gt;exports.getValidOffer=qt;exports.navigateToSearchPage=jr;exports.parseSearchState=qr;exports.productHelpers=Fr;exports.resizingImg=jt;exports.responsive=ee;exports.setVideoPlay=Vt;exports.splitNameAndSizeFromFullName=Xe;exports.styles=gn;exports.updatedResizedImg=Ht;
@@ -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),Lt=({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():""}},zt=(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()}},Wt=(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},Gt=(t,e)=>t.replace(e,"").trim(),Cr=t=>t.replace(/\//g,""),Ht=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,f)=>{var s;f&&(f.sellerId=i.sellerId,f.sellerName=i.sellerName,f.available=!0,f.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:u,PaymentOptions:{installmentOptions:c}}=i.commertialOffer;r.price=l,r.listPrice=u;const p=(s=c==null?void 0:c[0])==null?void 0:s.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},u=f.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&u.length>0&&(l.available=!0,n(u[0],{...l,sellerId:u[0].sellerId,sellerName:u[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},Kt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,Vt=(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)},Qt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Jt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Yt=(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},Xt=({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},Tr=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},Zt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Dr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Kt,formatPriceToCurrency:me,freightParsePrice:Lt,getAspectRatio:Tr,getColorAndSizeFromSkuName:zt,getDiscountPercent:qt,getFirstImages:Xt,getProductNameWithoutSku:Gt,getSKUName:Wt,getSkuInfos:Ht,getThumbImage:Qt,getValidOffer:Vt,removeSlashes:Cr,resizingImg:Jt,setVideoPlay:Zt,splitNameAndSizeFromFullName:tt,updatedResizedImg:Yt},Symbol.toStringTag,{value:"Module"})),ut="fuzzy",st="operator",Mr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),jr=(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})},er=(t,e)=>e?t==="category-1":!1,Br=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Ur=t=>t.type==="TEXT",Lr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),qr=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))}},zr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Wr=(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||!er(i.key,o)).map(i=>Ur(i)?qr(i):zr(i))},Gr=(t,e)=>{const r=t.find(({key:o})=>o===ut)??null,n=t.find(({key:o})=>o===st)??null;r&&Lr(r)&&e.append(ut,r.value),n&&Br(n)&&e.append(st,n.value)},Hr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),Kr=(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}=Mr(n);return n==null?void 0:n.filter(a=>!er(a.key,o))},Vr=({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:Hr(r),term:o,base:o?"":t,page:a}},Qr=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},Jr=(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 tr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yr(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 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"},Xr="_header_9xxjk_57",Zr="_actions_9xxjk_131",en="_breadcrumb_9xxjk_142",tn="_credits_9xxjk_157",rn="_pdplinks_9xxjk_185",nn="_similars_9xxjk_212",on="_sizes_9xxjk_251",an="_measurementTable_9xxjk_267",ln="_measurementHead_9xxjk_280",cn="_measurementRows_9xxjk_285",fn="_measurementRowsTitle_9xxjk_302",un="_measurementRowsText_9xxjk_314",sn="_measurementImage_9xxjk_325",pn="_measurementImageContainer_9xxjk_328",yn="_measurementContent_9xxjk_337",dn="_measurementTitle_9xxjk_341",vn="_measurementClose_9xxjk_352",mn="_productref_9xxjk_417",gn="_slideOut_9xxjk_1",hn="_slideIn_9xxjk_1",_n="_content_9xxjk_397",bn="_pdp_9xxjk_185",Sn="_divider_9xxjk_575",wn={"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:Xr,"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:Zr,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:en,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:tn,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:rn,"links-wrapper":"_links-wrapper_9xxjk_195",similars:nn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:on,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:an,measurementHead:ln,measurementRows:cn,measurementRowsTitle:fn,measurementRowsText:un,measurementImage:sn,measurementImageContainer:pn,measurementContent:yn,measurementTitle:dn,measurementClose:vn,"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:mn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:gn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:hn,content:_n,pdp:bn,"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:Sn,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},xn=({children:t,data:e,SectionZone:r,className:n})=>{var c,p;const o=((c=e==null?void 0:e.filter(s=>{var v,y;return((y=(v=s.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(s=>{var v,y;return((y=(v=s.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),u=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:u??[]})}),x.jsx(Nr.Utils.Divider,{})]})};var J=TypeError;const An={},On=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Pn=Yr(On);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,yt=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,dt=nt&&Set.prototype.forEach,En=typeof WeakMap=="function"&&WeakMap.prototype,te=En?WeakMap.prototype.has:null,$n=typeof WeakSet=="function"&&WeakSet.prototype,re=$n?WeakSet.prototype.has:null,In=typeof WeakRef=="function"&&WeakRef.prototype,vt=In?WeakRef.prototype.deref:null,Rn=Boolean.prototype.valueOf,kn=Object.prototype.toString,Fn=Function.prototype.toString,Nn=String.prototype.match,ot=String.prototype.slice,C=String.prototype.replace,Cn=String.prototype.toUpperCase,mt=String.prototype.toLowerCase,rr=RegExp.prototype.test,gt=Array.prototype.concat,E=Array.prototype.join,Tn=Array.prototype.slice,ht=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,nr=Object.prototype.propertyIsEnumerable,_t=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function bt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||rr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-ht(-t):ht(t);if(n!==t){var o=String(n),a=ot.call(e,o.length+1);return C.call(o,r,"$&_")+"."+C.call(C.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(e,r,"$&_")}var Ye=Pn,St=Ye.custom,wt=ir(St)?St:null,or={__proto__:null,double:'"',single:"'"},Dn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if(I(a,"quoteStyle")&&!I(or,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 cr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return f?bt(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return f?bt(e,u):u}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=eo(a,n);if(typeof o>"u")o=[];else if(lr(o,e)>=0)return"[Circular]";function s(A,N,$){if(N&&(o=Tn.call(o),o.push(N)),$){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"&&!xt(e)){var v=Gn(e),y=se(e,s);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+E.call(y,", ")+" }":"")}if(ir(e)){var h=V?C.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Je.call(e);return typeof e=="object"&&!V?Z(h):h}if(Yn(e)){for(var S="<"+mt.call(String(e.nodeName)),w=e.attributes||[],R=0;R<w.length;R++)S+=" "+w[R].name+"="+ar(Mn(w[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+mt.call(String(e.nodeName))+">",S}if(Xe(e)){if(e.length===0)return"[]";var m=se(e,s);return p&&!Zn(m)?"["+Ze(m,p)+"]":"[ "+E.call(m,", ")+" ]"}if(Bn(e)){var k=se(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!nr.call(e,"cause")?"{ ["+String(e)+"] "+E.call(gt.call("[cause]: "+s(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(k,", ")+" }"}if(typeof e=="object"&&i){if(wt&&typeof e[wt]=="function"&&Ye)return Ye(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Hn(e)){var D=[];return yt&&yt.call(e,function(A,N){D.push(s(N,e,!0)+" => "+s(A,e))}),At("Map",ge.call(e),D,p)}if(Qn(e)){var Y=[];return dt&&dt.call(e,function(A){Y.push(s(A,e))}),At("Set",he.call(e),Y,p)}if(Kn(e))return ke("WeakMap");if(Jn(e))return ke("WeakSet");if(Vn(e))return ke("WeakRef");if(Ln(e))return Z(s(Number(e)));if(zn(e))return Z(s(Qe.call(e)));if(qn(e))return Z(Rn.call(e));if(Un(e))return Z(s(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)&&!xt(e)){var q=se(e,s),fe=_t?_t(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",F=!fe&&ne&&Object(e)===e&&ne in e?ot.call(T(e),8,-1):M?"Object":"",ue=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=ue+(F||M?"["+E.call(gt.call([],F||[],M||[]),": ")+"] ":"");return q.length===0?z+"{}":p?z+"{"+Ze(q,p)+"}":z+"{ "+E.call(q,", ")+" }"}return String(e)};function ar(t,e,r){var n=r.quoteStyle||e,o=or[n];return o+t+o}function Mn(t){return C.call(String(t),/"/g,"&quot;")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Xe(t){return T(t)==="[object Array]"&&L(t)}function jn(t){return T(t)==="[object Date]"&&L(t)}function xt(t){return T(t)==="[object RegExp]"&&L(t)}function Bn(t){return T(t)==="[object Error]"&&L(t)}function Un(t){return T(t)==="[object String]"&&L(t)}function Ln(t){return T(t)==="[object Number]"&&L(t)}function qn(t){return T(t)==="[object Boolean]"&&L(t)}function ir(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 zn(t){if(!t||typeof t!="object"||!Qe)return!1;try{return Qe.call(t),!0}catch{}return!1}var Wn=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return Wn.call(t,e)}function T(t){return kn.call(t)}function Gn(t){if(t.name)return t.name;var e=Nn.call(Fn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function lr(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 Hn(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 Kn(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 Vn(t){if(!vt||!t||typeof t!="object")return!1;try{return vt.call(t),!0}catch{}return!1}function Qn(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 Jn(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 Yn(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function cr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return cr(ot.call(t,0,e.maxStringLength),e)+n}var o=Dn[e.quoteStyle||"single"];o.lastIndex=0;var a=C.call(C.call(t,o,"\\$1"),/[\x00-\x1f]/g,Xn);return ar(a,"single",e)}function Xn(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":"")+Cn.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function At(t,e,r,n){var o=n?Ze(r,n):E.call(r,", ");return t+" ("+e+") {"+o+"}"}function Zn(t){for(var e=0;e<t.length;e++)if(lr(t[e],`
2
+ `)>=0)return!1;return!0}function eo(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 se(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||(rr.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 u=0;u<a.length;u++)nr.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var to=Se,ro=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},no=function(t,e){if(t){var r=we(t,e);return r&&r.value}},oo=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},ao=function(t,e){return t?!!we(t,e):!1},io=function(t,e){if(t)return we(t,e,!0)},lo=function(){var e,r={assert:function(n){if(!r.has(n))throw new ro("Side channel does not contain "+to(n))},delete:function(n){var o=e&&e.next,a=io(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return no(e,n)},has:function(n){return ao(e,n)},set:function(n,o){e||(e={next:void 0}),oo(e,n,o)}};return r},fr=Object,co=Error,fo=EvalError,uo=RangeError,so=ReferenceError,po=SyntaxError,yo=URIError,vo=Math.abs,mo=Math.floor,go=Math.max,ho=Math.min,_o=Math.pow,bo=Math.round,So=Number.isNaN||function(e){return e!==e},wo=So,xo=function(e){return wo(e)||e===0?e:e<0?-1:1},Ao=Object.getOwnPropertyDescriptor,ye=Ao;if(ye)try{ye([],"length")}catch{ye=null}var ur=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var Oo=de,Fe,Ot;function Po(){return Ot||(Ot=1,Fe=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}),Fe}var Ne,Pt;function Eo(){if(Pt)return Ne;Pt=1;var t=typeof Symbol<"u"&&Symbol,e=Po();return Ne=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ne}var Ce,Et;function sr(){return Et||(Et=1,Ce=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ce}var Te,$t;function pr(){if($t)return Te;$t=1;var t=fr;return Te=t.getPrototypeOf||null,Te}var De,It;function $o(){if(It)return De;It=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,u){for(var c=[],p=0;p<l.length;p+=1)c[p]=l[p];for(var s=0;s<u.length;s+=1)c[s+l.length]=u[s];return c},a=function(l,u){for(var c=[],p=u,s=0;p<l.length;p+=1,s+=1)c[s]=l[p];return c},i=function(f,l){for(var u="",c=0;c<f.length;c+=1)u+=f[c],c+1<f.length&&(u+=l);return u};return De=function(l){var u=this;if(typeof u!="function"||e.apply(u)!==n)throw new TypeError(t+u);for(var c=a(arguments,1),p,s=function(){if(this instanceof p){var w=u.apply(this,o(c,arguments));return Object(w)===w?w:this}return u.apply(l,o(c,arguments))},v=r(0,u.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); }")(s),u.prototype){var S=function(){};S.prototype=u.prototype,p.prototype=new S,S.prototype=null}return p},De}var Me,Rt;function xe(){if(Rt)return Me;Rt=1;var t=$o();return Me=Function.prototype.bind||t,Me}var je,kt;function at(){return kt||(kt=1,je=Function.prototype.call),je}var Be,Ft;function yr(){return Ft||(Ft=1,Be=Function.prototype.apply),Be}var Io=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ro=xe(),ko=yr(),Fo=at(),No=Io,Co=No||Ro.call(Fo,ko),To=xe(),Do=J,Mo=at(),jo=Co,dr=function(e){if(e.length<1||typeof e[0]!="function")throw new Do("a function is required");return jo(To,Mo,e)},Ue,Nt;function Bo(){if(Nt)return Ue;Nt=1;var t=dr,e=ur,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,Ct;function Uo(){if(Ct)return Le;Ct=1;var t=sr(),e=pr(),r=Bo();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 qe,Tt;function Lo(){if(Tt)return qe;Tt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe();return qe=r.call(t,e),qe}var d,qo=fr,zo=co,Wo=fo,Go=uo,Ho=so,Q=po,K=J,Ko=yo,Vo=vo,Qo=mo,Jo=go,Yo=ho,Xo=_o,Zo=bo,ea=xo,vr=Function,ze=function(t){try{return vr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=ur,ta=Oo,We=function(){throw new K},ra=ae?function(){try{return arguments.callee,We}catch{try{return ae(arguments,"callee").get}catch{return We}}}():We,W=Eo()(),b=Uo(),na=pr(),oa=sr(),mr=yr(),ie=at(),H={},aa=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%":zo,"%eval%":eval,"%EvalError%":Wo,"%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%":vr,"%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%":qo,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":Go,"%ReferenceError%":Ho,"%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%":ra,"%TypedArray%":aa,"%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%":Ko,"%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%":mr,"%Object.defineProperty%":ta,"%Object.getPrototypeOf%":na,"%Math.abs%":Vo,"%Math.floor%":Qo,"%Math.max%":Jo,"%Math.min%":Yo,"%Math.pow%":Xo,"%Math.round%":Zo,"%Math.sign%":ea,"%Reflect.getPrototypeOf%":oa};if(b)try{null.error}catch(t){var ia=b(b(t));B["%Error.prototype%"]=ia}var la=function t(e){var r;if(e==="%AsyncFunction%")r=ze("async function () {}");else if(e==="%GeneratorFunction%")r=ze("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ze("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},Dt={__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=Lo(),ca=le.call(ie,Array.prototype.concat),fa=le.call(mr,Array.prototype.splice),Mt=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),ua=le.call(ie,RegExp.prototype.exec),sa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pa=/\\(\\)?/g,ya=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 Mt(e,sa,function(a,i,f,l){o[o.length]=f?Mt(l,pa,"$1"):i||a}),o},da=function(e,r){var n=e,o;if(_e(Dt,n)&&(o=Dt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=la(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(ua(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ya(e),o=n.length>0?n[0]:"",a=da("%"+o+"%",r),i=a.name,f=a.value,l=!1,u=a.alias;u&&(o=u[0],fa(n,ca([0,1],u)));for(var c=1,p=!0;c<n.length;c+=1){var s=n[c],v=be(s,0,1),y=be(s,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new Q("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(l=!0),o+="."+s,i="%"+o+"%",_e(B,i))f=B[i];else if(f!=null){if(!(s 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,s);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?f=h.get:f=f[s]}else p=_e(f,s),f=f[s];p&&!l&&(B[i]=f)}}return f},gr=it,hr=dr,va=hr([gr("%String.prototype.indexOf%")]),_r=function(e,r){var n=gr(e,!!r);return typeof n=="function"&&va(e,".prototype.")>-1?hr([n]):n},ma=it,ce=_r,ga=Se,ha=J,jt=ma("%Map%",!0),_a=ce("Map.prototype.get",!0),ba=ce("Map.prototype.set",!0),Sa=ce("Map.prototype.has",!0),wa=ce("Map.prototype.delete",!0),xa=ce("Map.prototype.size",!0),br=!!jt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new ha("Side channel does not contain "+ga(n))},delete:function(n){if(e){var o=wa(e,n);return xa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return _a(e,n)},has:function(n){return e?Sa(e,n):!1},set:function(n,o){e||(e=new jt),ba(e,n,o)}};return r},Aa=it,Ae=_r,Oa=Se,pe=br,Pa=J,G=Aa("%WeakMap%",!0),Ea=Ae("WeakMap.prototype.get",!0),$a=Ae("WeakMap.prototype.set",!0),Ia=Ae("WeakMap.prototype.has",!0),Ra=Ae("WeakMap.prototype.delete",!0),ka=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Pa("Side channel does not contain "+Oa(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ra(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?Ea(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Ia(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),$a(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Fa=J,Na=Se,Ca=lo,Ta=br,Da=ka,Ma=Da||Ta||Ca,ja=function(){var e,r={assert:function(n){if(!r.has(n))throw new Fa("Side channel does not contain "+Na(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=Ma()),e.set(n,o)}};return r},Ba=String.prototype.replace,Ua=/%20/g,Ge={RFC1738:"RFC1738",RFC3986:"RFC3986"},lt={default:Ge.RFC3986,formatters:{RFC1738:function(t){return Ba.call(t,Ua,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ge.RFC1738,RFC3986:Ge.RFC3986},La=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}(),qa=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}}},Sr=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},za=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=Sr(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)},Wa=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ga=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,Ha=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 u=i.length>=Ke?i.slice(l,l+Ke):i,c=[],p=0;p<u.length;++p){var s=u.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===La.RFC1738&&(s===40||s===41)){c[c.length]=u.charAt(p);continue}if(s<128){c[c.length]=O[s];continue}if(s<2048){c[c.length]=O[192|s>>6]+O[128|s&63];continue}if(s<55296||s>=57344){c[c.length]=O[224|s>>12]+O[128|s>>6&63]+O[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=O[240|s>>18]+O[128|s>>12&63]+O[128|s>>6&63]+O[128|s&63]}f+=c.join("")}return f},Ka=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 u=f[l],c=i[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:u}),n.push(c))}return qa(r),e},Va=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Qa=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ja=function(e,r){return[].concat(e,r)},Ya=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)},wr={arrayToObject:Sr,assign:Wa,combine:Ja,compact:Ka,decode:Ga,encode:Ha,isBuffer:Qa,isRegExp:Va,maybeMap:Ya,merge:za},xr=ja,ve=wr,oe=lt,Xa=Object.prototype.hasOwnProperty,Ar={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},P=Array.isArray,Za=Array.prototype.push,Or=function(t,e){Za.apply(t,P(e)?e:[e])},ei=Date.prototype.toISOString,Bt=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:Bt,formatter:oe.formatters[Bt],indices:!1,serializeDate:function(e){return ei.call(e)},skipNulls:!1,strictNullHandling:!1},ti=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ve={},ri=function t(e,r,n,o,a,i,f,l,u,c,p,s,v,y,h,S,w,R){for(var m=e,k=R,D=0,Y=!1;(k=k.get(Ve))!==void 0&&!Y;){var q=k.get(e);if(D+=1,typeof q<"u"){if(q===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 u&&!S?u(r,_.encoder,w,"key",y):r;m=""}if(ti(m)||ve.isBuffer(m)){if(u){var fe=S?r:u(r,_.encoder,w,"key",y);return[h(fe)+"="+h(u(m,_.encoder,w,"value",y))]}return[h(r)+"="+h(String(m))]}var M=[];if(typeof m>"u")return M;var F;if(n==="comma"&&P(m))S&&u&&(m=ve.maybeMap(m,u)),F=[{value:m.length>0?m.join(",")||null:void 0}];else if(P(c))F=c;else{var ue=Object.keys(m);F=p?ue.sort(p):ue}var z=l?String(r).replace(/\./g,"%2E"):String(r),A=o&&P(m)&&m.length===1?z+"[]":z;if(a&&P(m)&&m.length===0)return A+"[]";for(var N=0;N<F.length;++N){var $=F[N],X=typeof $=="object"&&$&&typeof $.value<"u"?$.value:m[$];if(!(f&&X===null)){var Pe=s&&l?String($).replace(/\./g,"%2E"):String($),Fr=P(m)?typeof n=="function"?n(A,Pe):A:A+(s?"."+Pe:"["+Pe+"]");R.set(e,D);var ft=xr();ft.set(Ve,R),Or(M,t(X,Fr,n,o,a,i,f,l,n==="comma"&&S&&P(m)?null:u,c,p,s,v,y,h,S,w,ft))}}return M},ni=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(!Xa.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 Ar?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}},oi=function(t,e){var r=t,n=ni(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=Ar[n.arrayFormat],l=f==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=xr(),c=0;c<o.length;++c){var p=o[c],s=r[p];n.skipNulls&&s===null||Or(i,ri(s,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,u))}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=wr,et=Object.prototype.hasOwnProperty,Ut=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},ai=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Pr=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},ii="utf8=%26%2310003%3B",li="utf8=%E2%9C%93",ci=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,u=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===li?u="utf-8":i[l]===ii&&(u="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("]="),s=p===-1?c.indexOf("="):p+1,v,y;s===-1?(v=r.decoder(c,g.decoder,u,"key"),y=r.strictNullHandling?null:""):(v=r.decoder(c.slice(0,s),g.decoder,u,"key"),y=U.maybeMap(Pr(c.slice(s+1),r,Ut(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,u,"value")})),y&&r.interpretNumericEntities&&u==="iso-8859-1"&&(y=ai(String(y))),c.indexOf("[]=")>-1&&(y=Ut(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},fi=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:Pr(e,r,o),f=t.length-1;f>=0;--f){var l,u=t[f];if(u==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,s=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(s)&&u!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(l=[],l[s]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},ui=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),u=l?a.slice(0,l.index):a,c=[];if(u){if(!n.plainObjects&&et.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}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 fi(c,r,n,o)}},si=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}},pi=function(t,e){var r=si(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?ci(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var f=a[i],l=ui(f,n[f],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},yi=oi,di=pi,vi=lt,mi={formats:vi,parse:di,stringify:yi};const gi=tr(mi);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${gi.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 Er(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function $r(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 u=await l.json(),c=e.findIndex(p=>p.documentId===u.id);return c!==-1?(e[c]=u,[...e]):[u,...e]}return e}const hi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:ct,fetchCMS:Oe,mergePreviewDocument:$r,spreadStrapiData:Er},Symbol.toStringTag,{value:"Module"}));async function Ir(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?Er(a):a}:{status:404,data:[],error:"No data found"}}async function Rr(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,u=!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),u=!!(c!=null&&c.hasNextPage),f++}while(u&&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 $r(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 _i=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Ir,vtexCMSData:Rr},Symbol.toStringTag,{value:"Module"}));async function bi({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 kr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(ct(t,e));return n!=="vtex"?Ir(o,e,r):Rr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Si=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:kr,getCMSContentType:bi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=xn;exports.addSearchParamsFacets=Gr;exports.cms=Si;exports.cmsHelpers=_i;exports.cmsUtils=hi;exports.convertSearchParams=Qr;exports.disableSKU=Kt;exports.fetchContentType=kr;exports.filterNonCategorySelected=jr;exports.filterNonRootFacets=Kr;exports.formatPriceToCurrency=me;exports.formattedFacets=Wr;exports.freightParsePrice=Lt;exports.getColorAndSizeFromSkuName=zt;exports.getDefaultExportFromCjs=tr;exports.getDiscountPercent=qt;exports.getFirstImages=Xt;exports.getProductNameWithoutSku=Gt;exports.getSKUName=Wt;exports.getSkuInfos=Ht;exports.getThumbImage=Qt;exports.getValidOffer=Vt;exports.navigateToSearchPage=Jr;exports.parseSearchState=Vr;exports.productHelpers=Dr;exports.resizingImg=Jt;exports.responsive=ee;exports.setVideoPlay=Zt;exports.splitNameAndSizeFromFullName=tt;exports.styles=wn;exports.updatedResizedImg=Yt;