@soma-vertical-web/multi-lib 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/ContentTypes/LPLojas/typing.d.ts +33 -0
- package/cms/Sections/ProductCarousel/request.d.ts +4 -0
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/contexts/search/Products.d.ts +1 -1
- package/contexts/contexts/search/QueryFacets.d.ts +5 -0
- package/contexts/contexts/search/QueryProducts.d.ts +5 -0
- package/contexts/contexts/search/RootTank.d.ts +9 -0
- package/contexts/contexts/search/TopSearches.d.ts +2 -3
- package/contexts/index.d.ts +2 -2
- package/data/api/checkout/order-form/items/index.d.ts +1 -1
- package/data/api/checkout/order-form/items/update/index.d.ts +1 -1
- package/data/api/search/crosseling/index.d.ts +1 -1
- package/data/helpers/plp/index.d.ts +2 -1
- package/data/helpers/search/product/index.d.ts +1 -1
- package/index-4tOP7lCS.js +4 -0
- package/index-67k__dSl.mjs +1908 -0
- package/index-BFX4NpXJ.js +4 -0
- package/index-BhiCzrut.mjs +2255 -0
- package/index-BlwJMBFA.mjs +1890 -0
- package/index-Bq0pOeo_.js +4 -0
- package/index-ByhWQJ9Z.mjs +1844 -0
- package/{index-BM8vTUKg.mjs → index-C3vJ4G_S.mjs} +748 -703
- package/index-CkpbvnLx.mjs +1830 -0
- package/index-CpUjW-m9.mjs +1877 -0
- package/index-D0LSqsck.js +4 -0
- package/index-D61YFVi9.mjs +2261 -0
- package/index-DZ1MbO8M.js +4 -0
- package/index-Dj1bg0lu.mjs +1826 -0
- package/index-DvhdPe3b.js +4 -0
- package/index-DyKuIyRP.js +4 -0
- package/index-dtcYsqh-.js +4 -0
- package/index-xWhZ_YcF.js +4 -0
- package/index.js +16 -16
- package/index.mjs +3945 -3935
- package/index2.js +2 -2
- package/index2.mjs +55 -49
- package/layout/index.d.ts +2 -2
- package/layout/team-component/AddToCart/AddToCart.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/Card.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/Content.d.ts +1 -1
- package/layout/team-component/AddToCart/Composite/Card/StyleSize.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +18 -0
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +10 -0
- package/layout/template/LPLojas/constant.d.ts +1 -0
- package/layout/template/LPLojas/interfaces.d.ts +18 -0
- package/layout/template/MiniCart/Composite/Card/Card.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/index.d.ts +2 -2
- package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +1 -1
- package/layout/template/MiniCart/index.d.ts +2 -2
- package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/contexts/contexts/plp.d.ts +3 -3
- package/types/contexts/contexts/search.d.ts +8 -2
- package/types/contexts/hooks/index.d.ts +3 -3
- package/types/data/api/cms/index.d.ts +3 -1
- package/types/layout/team-components/AddToCart/index.d.ts +5 -1
- package/types/layout/templates/MiniCart/index.d.ts +2 -0
- package/types/layout/templates/SearchModal/index.d.ts +2 -1
- package/index-CZjoMPpQ.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const sn=require("yup"),O=require("react/jsx-runtime"),pn=require("@soma-vertical-web/core-components");function yn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const M=yn(sn),Pe=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Qt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Pe(0):Pe(t/100),Jt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},lt=(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()}},er=(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},tr=(t,e)=>t.replace(e,"").trim(),dn=t=>t.replace(/\//g,""),rr=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var f;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:s,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=s;const p=(f=u==null?void 0:u[0])==null?void 0:f.installments;if(p){const{count:d,value:y}=p[p.length-1];r.installments={count:d,value:y/100}}};let o=!0;const a=t.reduce((i,l)=>{var u;const c={name:l.name,sku:l.itemId,value:((u=l.Tamanho)==null?void 0:u[0])??lt(l.nameComplete??l.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&s.length>0&&(c.available=!0,n(s[0],{...c,sellerId:s[0].sellerId,sellerName:s[0].sellerName})),c.available===!1&&(o=!1),i.push(c),i},[]);return{...r,sizes:a,allSizesAvailable:o}},nr=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,or=(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)},ar=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],ir=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},lr=(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},cr=({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},vn=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},ur=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},gn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:nr,formatPriceToCurrency:Pe,freightParsePrice:Qt,getAspectRatio:vn,getColorAndSizeFromSkuName:Zt,getDiscountPercent:Jt,getFirstImages:cr,getProductNameWithoutSku:tr,getSKUName:er,getSkuInfos:rr,getThumbImage:ar,getValidOffer:or,removeSlashes:dn,resizingImg:ir,setVideoPlay:ur,splitNameAndSizeFromFullName:lt,updatedResizedImg:lr},Symbol.toStringTag,{value:"Module"})),Et="fuzzy",At="operator",hn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),mn=(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})},fr=(t,e)=>e?t==="category-1":!1,Sn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),_n=t=>t.type==="TEXT",En=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),An=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))}},Pn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),On=(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||!fr(i.key,o)).map(i=>_n(i)?An(i):Pn(i))},Rn=(t,e)=>{const r=t.find(({key:o})=>o===Et)??null,n=t.find(({key:o})=>o===At)??null;r&&En(r)&&e.append(Et,r.value),n&&Sn(n)&&e.append(At,n.value)},bn=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),In=(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}=hn(n);return n==null?void 0:n.filter(a=>!fr(a.key,o))},Tn=({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:bn(r),term:o,base:o?"":t,page:a}},wn=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},Cn=(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 sr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Nn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var pr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(pr);var we={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}})(we);var ct={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=we;function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,e.parsePath)(n);return a===o||a.startsWith(o+"/")}})(ct);var yr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(fn,St){for(var _t in St)Object.defineProperty(fn,_t,{enumerable:!0,get:St[_t]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return K},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return F},ESLINT_DEFAULT_DIRS:function(){return an},GSP_NO_RETURNED_VALUE:function(){return Zr},GSSP_COMPONENT_MEMBER_ERROR:function(){return rn},GSSP_NO_RETURNED_VALUE:function(){return en},INSTRUMENTATION_HOOK_FILENAME:function(){return U},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return g},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return S},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return A},NEXT_CACHE_TAG_MAX_LENGTH:function(){return b},NEXT_DATA_SUFFIX:function(){return s},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return nn},PAGES_DIR_ALIAS:function(){return q},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return W},RSC_ACTION_ENCRYPTION_ALIAS:function(){return R},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return P},RSC_MOD_REF_PROXY_ALIAS:function(){return G},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return Jr},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ge},SERVER_PROPS_SSG_CONFLICT:function(){return oe},SERVER_RUNTIME:function(){return ln},SSG_FALLBACK_EXPORT_ERROR:function(){return on},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Me},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Qr},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return tn},WEBPACK_LAYERS:function(){return cn},WEBPACK_RESOURCE_QUERIES:function(){return un}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",c=".action",s=".json",u=".meta",p=".body",f="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",S="x-next-revalidate-tag-token",A=128,b=256,I=1024,g="_N_T_",T=31536e3,w="middleware",k=`(?:src/)?${w}`,U="instrumentation",q="private-next-pages",F="private-dot-next",C="private-next-root-dir",K="private-next-app-dir",G="private-next-rsc-mod-ref-proxy",P="private-next-rsc-action-validate",N="private-next-rsc-server-reference",R="private-next-rsc-action-encryption",W="private-next-rsc-action-client-wrapper",ne="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Me="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ge="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",oe="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Qr="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Jr="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Zr="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",en="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",tn="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",rn="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",nn='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',on="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",an=["app","pages","components","lib","src"],ln={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},_={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},cn={..._,GROUP:{serverOnly:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.instrument],clientOnly:[_.serverSideRendering,_.appPagesBrowser],nonClientServerTarget:[_.middleware,_.api],app:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.serverSideRendering,_.appPagesBrowser,_.shared,_.instrument]}},un={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(yr);var dr={},ut={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=we;function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:l}=(0,e.parsePath)(n);return""+o+a+i+l}})(ut);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=ut,r=ct;function n(o,a,i,l){if(!a||a===i)return o;const c=o.toLowerCase();return!l&&((0,r.pathHasPrefix)(c,"/api")||(0,r.pathHasPrefix)(c,"/"+a.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+a)}})(dr);var vr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}})(vr);var gr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const c=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(s=>s.toLowerCase()===o))return l}}}})(gr);const Dn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Ot=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Dn).join(e),xn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Ot(a)).join(","):Ot(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},$n=({canonical:t,category:e,previousImages:r,seo:n})=>({category:String(e==null?void 0:e.id),title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,alternates:{canonical:t},openGraph:{type:"website",title:(e==null?void 0:e.Title)??n.title,description:(e==null?void 0:e.MetaTagDescription)??n.description,images:Array.isArray(r)?[...r]:[]}}),Fn=({items:t,parent:e,apiUrl:r,find:n})=>{const o=t.find(i=>i.url.replace(r,"")===decodeURIComponent(e.toLowerCase()));return(o==null?void 0:o.children.find(i=>i.name.toLowerCase()===decodeURIComponent(String(n))))??o},Mn=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Ln=new Set(["brand","category","department","subcategory","collection","cluster"]),Un=t=>typeof(t==null?void 0:t.pageType)=="string"&&Ln.has(t==null?void 0:t.pageType.toLowerCase()),Gn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),hr=(t,e)=>t.reduce((r,n)=>{if(n.items.filter(i=>i.sellers.find(l=>l.commertialOffer.IsAvailable)).length===0||(r==null?void 0:r.find(i=>(i==null?void 0:i.productId)===(n==null?void 0:n.productId)))!==void 0)return r;const a=n.items[0].images.find(i=>e.includes(i.imageLabel));return r.push({slug:`/${n.linkText}/p`,productId:n==null?void 0:n.productId,textureImage:(a==null?void 0:a.imageUrl)??"",textureAlt:(a==null?void 0:a.imageText)??""}),r},[]),Bn=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:xn,createSeoCategory:$n,findCategory:Fn,formattedSimilars:hr,isCollectionPageType:Un,notFindCategoryError:Mn,responseAdapter:Gn},Symbol.toStringTag,{value:"Module"})),le={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},ft=async(t,e={})=>{const{method:r="GET",body:n,headers:o={},priority:a="auto",cache:i="default"}=e;return fetch(t,{method:r,headers:{...o,Accept:"application/json","Content-Type":"application/json"},priority:a,cache:i,...n?{body:JSON.stringify(n)}:{}}).then(l=>l.json()).catch(l=>{console.error("[ERROR FETCH VTEX]",l)})},ae=new Map;async function jn(t,e={}){var r;try{const{abort:n=!1}=e,o=new AbortController;n&&(ae.has(t)&&((r=ae.get(t))==null||r.abort(),ae.delete(t)),ae.set(t,o));const a=ft(t,{...e,...n?{signal:o.signal}:{}});return n&&ae.delete(t),a}catch(n){if(n.name==="AbortError"){console.log(`[REQUEST CANCELLED]: ${t}`);return}throw console.error(`[ERROR API]: ${n.message}`),n}}const Hn=M.object({orderFormId:M.string().required(),coupon:M.string().nullable(),utmSource:M.string().optional(),utmMedium:M.string().optional(),utmCampaign:M.string().optional(),utmiCampaign:M.string().optional(),utmiPart:M.string().optional(),utmipage:M.string().optional()});async function mr({apiUrl:t,body:e}){if(!e){console.error("[ERROR FETCHING] Body is required");return}await Hn.validate(e);const{orderFormId:r,utmiPart:n,coupon:o,...a}=e,i=`${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;return ft(i,{method:"POST",body:{orderFormId:r,utmiPart:n??r,coupon:o??null,...a}})}const kn=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:mr},Symbol.toStringTag,{value:"Module"})),Wn=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="mobile"})[0])==null?void 0:u.sections)||[],a=((p=e==null?void 0:e.filter(f=>{var d,y;return((y=(d=f.config)==null?void 0:d.responsive)==null?void 0:y.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),l=o.slice(1,o.length),c=a.slice(0,1),s=a.slice(1,a.length);return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:n,children:[O.jsx("div",{className:le["responsive-mobile-flex"],children:O.jsx(r,{data:i??[]})}),O.jsx("div",{className:le["responsive-desktop-flex"],children:O.jsx(r,{data:c??[]})})]}),t,O.jsx("div",{className:le["responsive-mobile-flex"],children:O.jsx(r,{data:l??[]})}),O.jsx("div",{className:le["responsive-desktop-flex"],children:O.jsx(r,{data:s??[]})}),O.jsx(pn.Utils.Divider,{})]})};var re=TypeError;const Xn={},Vn=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"})),zn=Nn(Vn);var st=typeof Map=="function"&&Map.prototype,Le=Object.getOwnPropertyDescriptor&&st?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Oe=st&&Le&&typeof Le.get=="function"?Le.get:null,Rt=st&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,Ue=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=pt&&Ue&&typeof Ue.get=="function"?Ue.get:null,bt=pt&&Set.prototype.forEach,qn=typeof WeakMap=="function"&&WeakMap.prototype,ce=qn?WeakMap.prototype.has:null,Kn=typeof WeakSet=="function"&&WeakSet.prototype,ue=Kn?WeakSet.prototype.has:null,Yn=typeof WeakRef=="function"&&WeakRef.prototype,It=Yn?WeakRef.prototype.deref:null,Qn=Boolean.prototype.valueOf,Jn=Object.prototype.toString,Zn=Function.prototype.toString,eo=String.prototype.match,yt=String.prototype.slice,B=String.prototype.replace,to=String.prototype.toUpperCase,Tt=String.prototype.toLowerCase,Sr=RegExp.prototype.test,wt=Array.prototype.concat,$=Array.prototype.join,ro=Array.prototype.slice,Ct=Math.floor,tt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ge=Object.getOwnPropertySymbols,rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee||!0)?Symbol.toStringTag:null,_r=Object.prototype.propertyIsEnumerable,Nt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Dt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Sr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ct(-t):Ct(t);if(n!==t){var o=String(n),a=yt.call(e,o.length+1);return B.call(o,r,"$&_")+"."+B.call(B.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return B.call(e,r,"$&_")}var nt=zn,xt=nt.custom,$t=Pr(xt)?xt:null,Er={__proto__:null,double:'"',single:"'"},no={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(Er,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=L(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(L(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Rr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Dt(e,c):c}if(typeof e=="bigint"){var s=String(e)+"n";return l?Dt(e,s):s}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return ot(e)?"[Array]":"[Object]";var p=Ao(a,n);if(typeof o>"u")o=[];else if(Or(o,e)>=0)return"[Circular]";function f(P,N,R){if(N&&(o=ro.call(o),o.push(N)),R){var W={depth:a.depth};return L(a,"quoteStyle")&&(W.quoteStyle=a.quoteStyle),t(P,W,n+1,o)}return t(P,a,n+1,o)}if(typeof e=="function"&&!Ft(e)){var d=po(e),y=he(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+$.call(y,", ")+" }":"")}if(Pr(e)){var S=ee?B.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):rt.call(e);return typeof e=="object"&&!ee?ie(S):S}if(So(e)){for(var A="<"+Tt.call(String(e.nodeName)),b=e.attributes||[],I=0;I<b.length;I++)A+=" "+b[I].name+"="+Ar(oo(b[I].value),"double",a);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+Tt.call(String(e.nodeName))+">",A}if(ot(e)){if(e.length===0)return"[]";var g=he(e,f);return p&&!Eo(g)?"["+at(g,p)+"]":"[ "+$.call(g,", ")+" ]"}if(io(e)){var T=he(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!_r.call(e,"cause")?"{ ["+String(e)+"] "+$.call(wt.call("[cause]: "+f(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(T,", ")+" }"}if(typeof e=="object"&&i){if($t&&typeof e[$t]=="function"&&nt)return nt(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(yo(e)){var w=[];return Rt&&Rt.call(e,function(P,N){w.push(f(N,e,!0)+" => "+f(P,e))}),Mt("Map",Oe.call(e),w,p)}if(ho(e)){var k=[];return bt&&bt.call(e,function(P){k.push(f(P,e))}),Mt("Set",Re.call(e),k,p)}if(vo(e))return Be("WeakMap");if(mo(e))return Be("WeakSet");if(go(e))return Be("WeakRef");if(co(e))return ie(f(Number(e)));if(fo(e))return ie(f(tt.call(e)));if(uo(e))return ie(Qn.call(e));if(lo(e))return ie(f(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(!ao(e)&&!Ft(e)){var U=he(e,f),q=Nt?Nt(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",C=!q&&fe&&Object(e)===e&&fe in e?yt.call(H(e),8,-1):F?"Object":"",K=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",G=K+(C||F?"["+$.call(wt.call([],C||[],F||[]),": ")+"] ":"");return U.length===0?G+"{}":p?G+"{"+at(U,p)+"}":G+"{ "+$.call(U,", ")+" }"}return String(e)};function Ar(t,e,r){var n=r.quoteStyle||e,o=Er[n];return o+t+o}function oo(t){return B.call(String(t),/"/g,""")}function z(t){return!fe||!(typeof t=="object"&&(fe in t||typeof t[fe]<"u"))}function ot(t){return H(t)==="[object Array]"&&z(t)}function ao(t){return H(t)==="[object Date]"&&z(t)}function Ft(t){return H(t)==="[object RegExp]"&&z(t)}function io(t){return H(t)==="[object Error]"&&z(t)}function lo(t){return H(t)==="[object String]"&&z(t)}function co(t){return H(t)==="[object Number]"&&z(t)}function uo(t){return H(t)==="[object Boolean]"&&z(t)}function Pr(t){if(ee)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!rt)return!1;try{return rt.call(t),!0}catch{}return!1}function fo(t){if(!t||typeof t!="object"||!tt)return!1;try{return tt.call(t),!0}catch{}return!1}var so=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return so.call(t,e)}function H(t){return Jn.call(t)}function po(t){if(t.name)return t.name;var e=eo.call(Zn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Or(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 yo(t){if(!Oe||!t||typeof t!="object")return!1;try{Oe.call(t);try{Re.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function vo(t){if(!ce||!t||typeof t!="object")return!1;try{ce.call(t,ce);try{ue.call(t,ue)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function go(t){if(!It||!t||typeof t!="object")return!1;try{return It.call(t),!0}catch{}return!1}function ho(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Oe.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function mo(t){if(!ue||!t||typeof t!="object")return!1;try{ue.call(t,ue);try{ce.call(t,ce)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function So(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Rr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Rr(yt.call(t,0,e.maxStringLength),e)+n}var o=no[e.quoteStyle||"single"];o.lastIndex=0;var a=B.call(B.call(t,o,"\\$1"),/[\x00-\x1f]/g,_o);return Ar(a,"single",e)}function _o(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":"")+to.call(e.toString(16))}function ie(t){return"Object("+t+")"}function Be(t){return t+" { ? }"}function Mt(t,e,r,n){var o=n?at(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function Eo(t){for(var e=0;e<t.length;e++)if(Or(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Ao(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function at(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+$.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function he(t,e){var r=ot(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=L(t,o)?e(t[o],t):""}var a=typeof Ge=="function"?Ge(t):[],i;if(ee){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)L(t,c)&&(r&&String(Number(c))===c&&c<t.length||ee&&i["$"+c]instanceof Symbol||(Sr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Ge=="function")for(var s=0;s<a.length;s++)_r.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var Po=Ce,Oo=re,Ne=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},Ro=function(t,e){if(t){var r=Ne(t,e);return r&&r.value}},bo=function(t,e,r){var n=Ne(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Io=function(t,e){return t?!!Ne(t,e):!1},To=function(t,e){if(t)return Ne(t,e,!0)},wo=function(){var e,r={assert:function(n){if(!r.has(n))throw new Oo("Side channel does not contain "+Po(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 Ro(e,n)},has:function(n){return Io(e,n)},set:function(n,o){e||(e={next:void 0}),bo(e,n,o)}};return r},br=Object,Co=Error,No=EvalError,Do=RangeError,xo=ReferenceError,$o=SyntaxError,Fo=URIError,Mo=Math.abs,Lo=Math.floor,Uo=Math.max,Go=Math.min,Bo=Math.pow,jo=Math.round,Ho=Number.isNaN||function(e){return e!==e},ko=Ho,Wo=function(e){return ko(e)||e===0?e:e<0?-1:1},Xo=Object.getOwnPropertyDescriptor,Se=Xo;if(Se)try{Se([],"length")}catch{Se=null}var Ir=Se,_e=Object.defineProperty||!1;if(_e)try{_e({},"a",{value:1})}catch{_e=!1}var Vo=_e,je,Lt;function zo(){return Lt||(Lt=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),je}var He,Ut;function qo(){if(Ut)return He;Ut=1;var t=typeof Symbol<"u"&&Symbol,e=zo();return He=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},He}var ke,Gt;function Tr(){return Gt||(Gt=1,ke=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ke}var We,Bt;function wr(){if(Bt)return We;Bt=1;var t=br;return We=t.getPrototypeOf||null,We}var Ko="Function.prototype.bind called on incompatible ",Yo=Object.prototype.toString,Qo=Math.max,Jo="[object Function]",jt=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},Zo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},ea=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},ta=function(e){var r=this;if(typeof r!="function"||Yo.apply(r)!==Jo)throw new TypeError(Ko+r);for(var n=Zo(arguments,1),o,a=function(){if(this instanceof o){var u=r.apply(this,jt(n,arguments));return Object(u)===u?u:this}return r.apply(e,jt(n,arguments))},i=Qo(0,r.length-n.length),l=[],c=0;c<i;c++)l[c]="$"+c;if(o=Function("binder","return function ("+ea(l,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o},ra=ta,De=Function.prototype.bind||ra,dt=Function.prototype.call,Xe,Ht;function Cr(){return Ht||(Ht=1,Xe=Function.prototype.apply),Xe}var na=typeof Reflect<"u"&&Reflect&&Reflect.apply,oa=De,aa=Cr(),ia=dt,la=na,ca=la||oa.call(ia,aa),ua=De,fa=re,sa=dt,pa=ca,Nr=function(e){if(e.length<1||typeof e[0]!="function")throw new fa("a function is required");return pa(ua,sa,e)},Ve,kt;function ya(){if(kt)return Ve;kt=1;var t=Nr,e=Ir,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 Ve=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Ve}var ze,Wt;function da(){if(Wt)return ze;Wt=1;var t=Tr(),e=wr(),r=ya();return ze=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,ze}var qe,Xt;function va(){if(Xt)return qe;Xt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=De;return qe=r.call(t,e),qe}var v,ga=br,ha=Co,ma=No,Sa=Do,_a=xo,te=$o,Z=re,Ea=Fo,Aa=Mo,Pa=Lo,Oa=Uo,Ra=Go,ba=Bo,Ia=jo,Ta=Wo,Dr=Function,Ke=function(t){try{return Dr('"use strict"; return ('+t+").constructor;")()}catch{}},pe=Ir,wa=Vo,Ye=function(){throw new Z},Ca=pe?function(){try{return arguments.callee,Ye}catch{try{return pe(arguments,"callee").get}catch{return Ye}}}():Ye,Y=qo()(),E=da(),Na=wr(),Da=Tr(),xr=Cr(),ye=dt,J={},xa=typeof Uint8Array>"u"||!E?v:E(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&E?E([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ha,"%eval%":eval,"%EvalError%":ma,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":Dr,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&E?E(E([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!E?v:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ga,"%Object.getOwnPropertyDescriptor%":pe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":Sa,"%ReferenceError%":_a,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!E?v:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&E?E(""[Symbol.iterator]()):v,"%Symbol%":Y?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":Ca,"%TypedArray%":xa,"%TypeError%":Z,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":Ea,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":ye,"%Function.prototype.apply%":xr,"%Object.defineProperty%":wa,"%Object.getPrototypeOf%":Na,"%Math.abs%":Aa,"%Math.floor%":Pa,"%Math.max%":Oa,"%Math.min%":Ra,"%Math.pow%":ba,"%Math.round%":Ia,"%Math.sign%":Ta,"%Reflect.getPrototypeOf%":Da};if(E)try{null.error}catch(t){var $a=E(E(t));V["%Error.prototype%"]=$a}var Fa=function t(e){var r;if(e==="%AsyncFunction%")r=Ke("async function () {}");else if(e==="%GeneratorFunction%")r=Ke("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ke("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&E&&(r=E(o.prototype))}return V[e]=r,r},Vt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=De,be=va(),Ma=de.call(ye,Array.prototype.concat),La=de.call(xr,Array.prototype.splice),zt=de.call(ye,String.prototype.replace),Ie=de.call(ye,String.prototype.slice),Ua=de.call(ye,RegExp.prototype.exec),Ga=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ba=/\\(\\)?/g,ja=function(e){var r=Ie(e,0,1),n=Ie(e,-1);if(r==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return zt(e,Ga,function(a,i,l,c){o[o.length]=l?zt(c,Ba,"$1"):i||a}),o},Ha=function(e,r){var n=e,o;if(be(Vt,n)&&(o=Vt[n],n="%"+o[0]+"%"),be(V,n)){var a=V[n];if(a===J&&(a=Fa(n)),typeof a>"u"&&!r)throw new Z("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new te("intrinsic "+e+" does not exist!")},vt=function(e,r){if(typeof e!="string"||e.length===0)throw new Z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Z('"allowMissing" argument must be a boolean');if(Ua(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ja(e),o=n.length>0?n[0]:"",a=Ha("%"+o+"%",r),i=a.name,l=a.value,c=!1,s=a.alias;s&&(o=s[0],La(n,Ma([0,1],s)));for(var u=1,p=!0;u<n.length;u+=1){var f=n[u],d=Ie(f,0,1),y=Ie(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),o+="."+f,i="%"+o+"%",be(V,i))l=V[i];else if(l!=null){if(!(f in l)){if(!r)throw new Z("base intrinsic for "+e+" exists, but the property is not available.");return}if(pe&&u+1>=n.length){var S=pe(l,f);p=!!S,p&&"get"in S&&!("originalValue"in S.get)?l=S.get:l=l[f]}else p=be(l,f),l=l[f];p&&!c&&(V[i]=l)}}return l},$r=vt,Fr=Nr,ka=Fr([$r("%String.prototype.indexOf%")]),Mr=function(e,r){var n=$r(e,!!r);return typeof n=="function"&&ka(e,".prototype.")>-1?Fr([n]):n},Wa=vt,ve=Mr,Xa=Ce,Va=re,qt=Wa("%Map%",!0),za=ve("Map.prototype.get",!0),qa=ve("Map.prototype.set",!0),Ka=ve("Map.prototype.has",!0),Ya=ve("Map.prototype.delete",!0),Qa=ve("Map.prototype.size",!0),Lr=!!qt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Va("Side channel does not contain "+Xa(n))},delete:function(n){if(e){var o=Ya(e,n);return Qa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return za(e,n)},has:function(n){return e?Ka(e,n):!1},set:function(n,o){e||(e=new qt),qa(e,n,o)}};return r},Ja=vt,xe=Mr,Za=Ce,me=Lr,ei=re,Q=Ja("%WeakMap%",!0),ti=xe("WeakMap.prototype.get",!0),ri=xe("WeakMap.prototype.set",!0),ni=xe("WeakMap.prototype.has",!0),oi=xe("WeakMap.prototype.delete",!0),ai=Q?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new ei("Side channel does not contain "+Za(o))},delete:function(o){if(Q&&o&&(typeof o=="object"||typeof o=="function")){if(e)return oi(e,o)}else if(me&&r)return r.delete(o);return!1},get:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?ti(e,o):r&&r.get(o)},has:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?ni(e,o):!!r&&r.has(o)},set:function(o,a){Q&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Q),ri(e,o,a)):me&&(r||(r=me()),r.set(o,a))}};return n}:me,ii=re,li=Ce,ci=wo,ui=Lr,fi=ai,si=fi||ui||ci,Ur=function(){var e,r={assert:function(n){if(!r.has(n))throw new ii("Side channel does not contain "+li(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=si()),e.set(n,o)}};return r},pi=String.prototype.replace,yi=/%20/g,Qe={RFC1738:"RFC1738",RFC3986:"RFC3986"},gt={default:Qe.RFC3986,formatters:{RFC1738:function(t){return pi.call(t,yi,"+")},RFC3986:function(t){return String(t)}},RFC1738:Qe.RFC1738,RFC3986:Qe.RFC3986},di=gt,vi=Ur,Je=Object.prototype.hasOwnProperty,X=Array.isArray,$e=vi(),Gr=function(e,r){return $e.set(e,r),e},Te=function(e){return $e.has(e)},it=function(e){return $e.get(e)},Br=function(e,r){$e.set(e,r)},D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),gi=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(X(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},ht=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},hi=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(X(e))e.push(r);else if(e&&typeof e=="object")if(Te(e)){var o=it(e)+1;e[o]=r,Br(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!Je.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(Te(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<a.length;l++){var c=parseInt(a[l],10);i[c+1]=r[a[l]]}return Gr(i,it(r)+1)}return[e].concat(r)}var s=e;return X(e)&&!X(r)&&(s=ht(e,n)),X(e)&&X(r)?(r.forEach(function(u,p){if(Je.call(e,p)){var f=e[p];f&&typeof f=="object"&&u&&typeof u=="object"?e[p]=t(f,u,n):e.push(u)}else e[p]=u}),e):Object.keys(r).reduce(function(u,p){var f=r[p];return Je.call(u,p)?u[p]=t(u[p],f,n):u[p]=f,u},s)},mi=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Si=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}},Ze=1024,_i=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var l="",c=0;c<i.length;c+=Ze){for(var s=i.length>=Ze?i.slice(c,c+Ze):i,u=[],p=0;p<s.length;++p){var f=s.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===di.RFC1738&&(f===40||f===41)){u[u.length]=s.charAt(p);continue}if(f<128){u[u.length]=D[f];continue}if(f<2048){u[u.length]=D[192|f>>6]+D[128|f&63];continue}if(f<55296||f>=57344){u[u.length]=D[224|f>>12]+D[128|f>>6&63]+D[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|s.charCodeAt(p)&1023),u[u.length]=D[240|f>>18]+D[128|f>>12&63]+D[128|f>>6&63]+D[128|f&63]}l+=u.join("")}return l},Ei=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),c=0;c<l.length;++c){var s=l[c],u=i[s];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:s}),n.push(u))}return gi(r),e},Ai=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Pi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Oi=function(e,r,n,o){if(Te(e)){var a=it(e)+1;return e[a]=r,Br(e,a),e}var i=[].concat(e,r);return i.length>n?Gr(ht(i,{plainObjects:o}),i.length-1):i},Ri=function(e,r){if(X(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},jr={arrayToObject:ht,assign:mi,combine:Oi,compact:Ei,decode:Si,encode:_i,isBuffer:Pi,isOverflow:Te,isRegExp:Ai,maybeMap:Ri,merge:hi},Hr=Ur,Ee=jr,se=gt,bi=Object.prototype.hasOwnProperty,kr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},x=Array.isArray,Ii=Array.prototype.push,Wr=function(t,e){Ii.apply(t,x(e)?e:[e])},Ti=Date.prototype.toISOString,Kt=se.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ee.encode,encodeValuesOnly:!1,filter:void 0,format:Kt,formatter:se.formatters[Kt],indices:!1,serializeDate:function(e){return Ti.call(e)},skipNulls:!1,strictNullHandling:!1},wi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},et={},Ci=function t(e,r,n,o,a,i,l,c,s,u,p,f,d,y,S,A,b,I){for(var g=e,T=I,w=0,k=!1;(T=T.get(et))!==void 0&&!k;){var U=T.get(e);if(w+=1,typeof U<"u"){if(U===w)throw new RangeError("Cyclic object value");k=!0}typeof T.get(et)>"u"&&(w=0)}if(typeof u=="function"?g=u(r,g):g instanceof Date?g=d(g):n==="comma"&&x(g)&&(g=Ee.maybeMap(g,function(oe){return oe instanceof Date?d(oe):oe})),g===null){if(i)return s&&!A?s(r,m.encoder,b,"key",y):r;g=""}if(wi(g)||Ee.isBuffer(g)){if(s){var q=A?r:s(r,m.encoder,b,"key",y);return[S(q)+"="+S(s(g,m.encoder,b,"value",y))]}return[S(r)+"="+S(String(g))]}var F=[];if(typeof g>"u")return F;var C;if(n==="comma"&&x(g))A&&s&&(g=Ee.maybeMap(g,s)),C=[{value:g.length>0?g.join(",")||null:void 0}];else if(x(u))C=u;else{var K=Object.keys(g);C=p?K.sort(p):K}var G=c?String(r).replace(/\./g,"%2E"):String(r),P=o&&x(g)&&g.length===1?G+"[]":G;if(a&&x(g)&&g.length===0)return P+"[]";for(var N=0;N<C.length;++N){var R=C[N],W=typeof R=="object"&&R&&typeof R.value<"u"?R.value:g[R];if(!(l&&W===null)){var ne=f&&c?String(R).replace(/\./g,"%2E"):String(R),Me=x(g)?typeof n=="function"?n(P,ne):P:P+(f?"."+ne:"["+ne+"]");I.set(e,w);var ge=Hr();ge.set(et,I),Wr(F,t(W,Me,n,o,a,i,l,c,n==="comma"&&A&&x(g)?null:s,u,p,f,d,y,S,A,b,ge))}}return F},Ni=function(e){if(!e)return m;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.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||m.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=se.default;if(typeof e.format<"u"){if(!bi.call(se.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=se.formatters[n],a=m.filter;(typeof e.filter=="function"||x(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in kr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=m.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:m.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:m.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?m.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:m.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:m.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:m.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:m.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:m.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:m.strictNullHandling}},Di=function(t,e){var r=t,n=Ni(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):x(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=kr[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Hr(),u=0;u<o.length;++u){var p=o[u],f=r[p];n.skipNulls&&f===null||Wr(i,Ci(f,p,l,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var d=i.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},j=jr,Ae=Object.prototype.hasOwnProperty,Yt=Array.isArray,h={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:j.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},xi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Xr=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},$i="utf8=%26%2310003%3B",Fi="utf8=%E2%9C%93",Mi=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,c,s=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===Fi?s="utf-8":i[c]===$i&&(s="iso-8859-1"),l=c,c=i.length);for(c=0;c<i.length;++c)if(c!==l){var u=i[c],p=u.indexOf("]="),f=p===-1?u.indexOf("="):p+1,d,y;if(f===-1?(d=r.decoder(u,h.decoder,s,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(u.slice(0,f),h.decoder,s,"key"),d!==null&&(y=j.maybeMap(Xr(u.slice(f+1),r,Yt(n[d])?n[d].length:0),function(A){return r.decoder(A,h.decoder,s,"value")}))),y&&r.interpretNumericEntities&&s==="iso-8859-1"&&(y=xi(String(y))),u.indexOf("[]=")>-1&&(y=Yt(y)?[y]:y),d!==null){var S=Ae.call(n,d);S&&r.duplicates==="combine"?n[d]=j.combine(n[d],y,r.arrayLimit,r.plainObjects):(!S||r.duplicates==="last")&&(n[d]=y)}}return n},Li=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:Xr(e,r,o),l=t.length-1;l>=0;--l){var c,s=t[l];if(s==="[]"&&r.parseArrays)j.isOverflow(i)?c=i:c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:j.combine([],i,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(f)&&s!==p&&String(f)===p&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(c=[],c[f]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Ui=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Ae.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),l=i?n.slice(0,i.index):n,c=[];if(l){if(!r.plainObjects&&Ae.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var s=0;(i=a.exec(n))!==null&&s<r.depth;){s+=1;var u=i[1].slice(1,-1);if(!r.plainObjects&&Ae.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(i[1])}if(i){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+n.slice(i.index)+"]")}return c},Gi=function(e,r,n,o){if(e){var a=Ui(e,n);if(a)return Li(a,r,n,o)}},Bi=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.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"?h.charset:e.charset,n=typeof e.duplicates>"u"?h.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:h.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:h.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:h.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:h.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:h.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:h.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:h.decoder,delimiter:typeof e.delimiter=="string"||j.isRegExp(e.delimiter)?e.delimiter:h.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:h.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:h.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:h.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:h.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},ji=function(t,e){var r=Bi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Mi(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Gi(l,n[l],r,typeof t=="string");o=j.merge(o,c,r)}return r.allowSparse===!0?o:j.compact(o)},Hi=Di,ki=ji,Wi=gt,Xi={formats:Wi,parse:ki,stringify:Hi};const Vi=sr(Xi);async function Fe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Vi.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function mt(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 Vr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function zr(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",l=new URL(mt(`${t}${i}`,r)),c=await Fe(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const s=await c.json(),u=e.findIndex(p=>p.documentId===s.id);return u!==-1?(e[u]=s,[...e]):[s,...e]}return e}const zi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:mt,fetchCMS:Fe,mergePreviewDocument:zr,spreadStrapiData:Vr},Symbol.toStringTag,{value:"Module"}));async function qr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Fe(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?Vr(a):a}:{status:404,data:[],error:"No data found"}}async function Kr(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,c=0,s=!0;try{do{const u=await Fe(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(c=u.totalItems),Array.isArray(u==null?void 0:u.data)&&i.push(...u.data),s=!!(u!=null&&u.hasNextPage),l++}while(s&&i.length<c);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const u=await zr(t,i,a);return{status:u.length>0?200:404,data:u}}return{status:i.length?200:404,data:i}}catch(u){return{status:500,data:[],error:u instanceof Error?u.message:String(u)}}}const qi=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:qr,vtexCMSData:Kr},Symbol.toStringTag,{value:"Module"}));async function Ki({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 Yr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(mt(t,e));return n!=="vtex"?qr(o,e,r):Kr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Yi=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Yr,getCMSContentType:Ki},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Wn;exports.addLocale=dr;exports.addPathPrefix=ut;exports.addSearchParamsFacets=Rn;exports.catalogHelpers=Bn;exports.cms=Yi;exports.cmsHelpers=qi;exports.cmsUtils=zi;exports.constants=yr;exports.convertSearchParams=wn;exports.detectDomainLocale=gr;exports.disableSKU=nr;exports.fetchContentType=Yr;exports.fetchVtex=ft;exports.fetchVtexWithAbortController=jn;exports.filterNonCategorySelected=mn;exports.filterNonRootFacets=In;exports.formatPriceToCurrency=Pe;exports.formattedFacets=On;exports.formattedSimilars=hr;exports.freightParsePrice=Qt;exports.getColorAndSizeFromSkuName=Zt;exports.getDefaultExportFromCjs=sr;exports.getDiscountPercent=Jt;exports.getFirstImages=cr;exports.getProductNameWithoutSku=tr;exports.getSKUName=er;exports.getSkuInfos=rr;exports.getThumbImage=ar;exports.getValidOffer=or;exports.marketingdata=kn;exports.navigateToSearchPage=Cn;exports.normalizeLocalePath=vr;exports.parsePath=we;exports.parseSearchState=Tn;exports.pathHasPrefix=ct;exports.postMediaData=mr;exports.productHelpers=gn;exports.removeTrailingSlash=pr;exports.resizingImg=ir;exports.responsive=le;exports.setVideoPlay=ur;exports.splitNameAndSizeFromFullName=lt;exports.updatedResizedImg=lr;
|