@soma-vertical-web/multi-lib 1.0.26 → 1.0.27

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.
@@ -0,0 +1,4 @@
1
+ "use strict";const fn=require("yup"),O=require("react/jsx-runtime"),sn=require("@soma-vertical-web/core-components");function pn(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 L=pn(fn),Ae=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Jt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:Ae(0):Ae(t/100),Zt=(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():""}},er=(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()}},tr=(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},rr=(t,e)=>t.replace(e,"").trim(),yn=t=>t.replace(/\//g,""),nr=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,l)=>{var s;l&&(l.sellerId=i.sellerId,l.sellerName=i.sellerName,l.available=!0,l.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:f,PaymentOptions:{installmentOptions:u}}=i.commertialOffer;r.price=c,r.listPrice=f;const p=(s=u==null?void 0:u[0])==null?void 0:s.installments;if(p){const{count: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},f=l.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(c.available=!0,n(p,c)),p.commertialOffer.IsAvailable));return!c.isSellerDefault&&f.length>0&&(c.available=!0,n(f[0],{...c,sellerId:f[0].sellerId,sellerName:f[0].sellerName})),c.available===!1&&(o=!1),i.push(c),i},[]);return{...r,sizes:a,allSizesAvailable:o}},or=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,ar=(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)},ir=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],lr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},cr=(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},ur=({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},dn=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},fr=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},vn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:or,formatPriceToCurrency:Ae,freightParsePrice:Jt,getAspectRatio:dn,getColorAndSizeFromSkuName:er,getDiscountPercent:Zt,getFirstImages:ur,getProductNameWithoutSku:rr,getSKUName:tr,getSkuInfos:nr,getThumbImage:ir,getValidOffer:ar,removeSlashes:yn,resizingImg:lr,setVideoPlay:fr,splitNameAndSizeFromFullName:lt,updatedResizedImg:cr},Symbol.toStringTag,{value:"Module"})),Et="fuzzy",_t="operator",gn=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})},sr=(t,e)=>e?t==="category-1":!1,hn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Sn=t=>t.type==="TEXT",En=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),_n=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))}},An=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Pn=(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||!sr(i.key,o)).map(i=>Sn(i)?_n(i):An(i))},Rn=(t,e)=>{const r=t.find(({key:o})=>o===Et)??null,n=t.find(({key:o})=>o===_t)??null;r&&En(r)&&e.append(Et,r.value),n&&hn(n)&&e.append(_t,n.value)},On=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),bn=(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}=gn(n);return n==null?void 0:n.filter(a=>!sr(a.key,o))},In=({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:On(r),term:o,base:o?"":t,page:a}},Tn=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},wn=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Cn(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 yr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(yr);var Ie={};(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:""}}})(Ie);var ct={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Ie;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 dr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(un,ht){for(var St in ht)Object.defineProperty(un,St,{enumerable:!0,get:ht[St]})}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 on},GSP_NO_RETURNED_VALUE:function(){return Jr},GSSP_COMPONENT_MEMBER_ERROR:function(){return tn},GSSP_NO_RETURNED_VALUE:function(){return Zr},INSTRUMENTATION_HOOK_FILENAME:function(){return U},MIDDLEWARE_FILENAME:function(){return w},MIDDLEWARE_LOCATION_REGEXP:function(){return j},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 m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return I},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return S},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return rn},PAGES_DIR_ALIAS:function(){return z},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return k},RSC_ACTION_ENCRYPTION_ALIAS:function(){return b},RSC_ACTION_PROXY_ALIAS:function(){return N},RSC_ACTION_VALIDATE_ALIAS:function(){return R},RSC_MOD_REF_PROXY_ALIAS:function(){return B},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return Qr},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ge},SERVER_PROPS_SSG_CONFLICT:function(){return oe},SERVER_RUNTIME:function(){return an},SSG_FALLBACK_EXPORT_ERROR:function(){return nn},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return $e},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Yr},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return en},WEBPACK_LAYERS:function(){return ln},WEBPACK_RESOURCE_QUERIES:function(){return cn}});const r="nxtP",n="nxtI",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",i=".prefetch.rsc",l=".rsc",c=".action",f=".json",u=".meta",p=".body",s="x-next-cache-tags",d="x-next-cache-soft-tags",y="x-next-revalidated-tags",m="x-next-revalidate-tag-token",S=128,P=256,I=1024,g="_N_T_",T=31536e3,w="middleware",j=`(?:src/)?${w}`,U="instrumentation",z="private-next-pages",F="private-dot-next",C="private-next-root-dir",K="private-next-app-dir",B="private-next-rsc-mod-ref-proxy",R="private-next-rsc-action-validate",N="private-next-rsc-server-reference",b="private-next-rsc-action-encryption",k="private-next-rsc-action-client-wrapper",ne="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",$e="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ge="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",oe="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Yr="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Qr="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Jr="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Zr="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",en="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",tn="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",rn='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',nn="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",on=["app","pages","components","lib","src"],an={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"},ln={..._,GROUP:{serverOnly:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.instrument],clientOnly:[_.serverSideRendering,_.appPagesBrowser],nonClientServerTarget:[_.middleware,_.api],app:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.serverSideRendering,_.appPagesBrowser,_.shared,_.instrument]}},cn={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(dr);var vr={},ut={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Ie;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)}})(vr);var gr={};(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}}})(gr);var mr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const l of r){var a,i;const c=(a=l.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===l.defaultLocale.toLowerCase()||(i=l.locales)!=null&&i.some(f=>f.toLowerCase()===o))return l}}}})(mr);const Nn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Pt=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(Nn).join(e),Dn=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Pt(a)).join(","):Pt(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]:[]}}),xn=({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},Fn=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"]),Mn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Ln.has(t==null?void 0:t.pageType.toLowerCase()),Un=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:Dn,createSeoCategory:$n,findCategory:xn,formattedSimilars:hr,isCollectionPageType:Mn,notFindCategoryError:Fn,responseAdapter:Un},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 Gn(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=L.object({orderFormId:L.string().required(),coupon:L.string().nullable(),utmSource:L.string().optional(),utmMedium:L.string().optional(),utmCampaign:L.string().optional(),utmiCampaign:L.string().optional(),utmiPart:L.string().optional(),utmipage:L.string().optional()});async function Sr({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 jn=Object.freeze(Object.defineProperty({__proto__:null,postMediaData:Sr},Symbol.toStringTag,{value:"Module"})),kn=({children:t,data:e,SectionZone:r,className:n})=>{var u,p;const o=((u=e==null?void 0:e.filter(s=>{var d,y;return((y=(d=s.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(s=>{var d,y;return((y=(d=s.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),f=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:f??[]})}),O.jsx(sn.Utils.Divider,{})]})};var re=TypeError;const Wn={},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),qn=Cn(Xn);var st=typeof Map=="function"&&Map.prototype,xe=Object.getOwnPropertyDescriptor&&st?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pe=st&&xe&&typeof xe.get=="function"?xe.get:null,Rt=st&&Map.prototype.forEach,pt=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=pt&&Fe&&typeof Fe.get=="function"?Fe.get:null,Ot=pt&&Set.prototype.forEach,Vn=typeof WeakMap=="function"&&WeakMap.prototype,ce=Vn?WeakMap.prototype.has:null,zn=typeof WeakSet=="function"&&WeakSet.prototype,ue=zn?WeakSet.prototype.has:null,Kn=typeof WeakRef=="function"&&WeakRef.prototype,bt=Kn?WeakRef.prototype.deref:null,Yn=Boolean.prototype.valueOf,Qn=Object.prototype.toString,Jn=Function.prototype.toString,Zn=String.prototype.match,yt=String.prototype.slice,G=String.prototype.replace,eo=String.prototype.toUpperCase,It=String.prototype.toLowerCase,Er=RegExp.prototype.test,Tt=Array.prototype.concat,x=Array.prototype.join,to=Array.prototype.slice,wt=Math.floor,tt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Le=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,Ct=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Nt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Er.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-wt(-t):wt(t);if(n!==t){var o=String(n),a=yt.call(e,o.length+1);return G.call(o,r,"$&_")+"."+G.call(G.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(e,r,"$&_")}var nt=qn,Dt=nt.custom,$t=Rr(Dt)?Dt:null,Ar={__proto__:null,double:'"',single:"'"},ro={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Te=function t(e,r,n,o){var a=r||{};if(M(a,"quoteStyle")&&!M(Ar,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(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=M(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(M(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(M(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 br(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Nt(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return l?Nt(e,f):f}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return ot(e)?"[Array]":"[Object]";var p=_o(a,n);if(typeof o>"u")o=[];else if(Or(o,e)>=0)return"[Circular]";function s(R,N,b){if(N&&(o=to.call(o),o.push(N)),b){var k={depth:a.depth};return M(a,"quoteStyle")&&(k.quoteStyle=a.quoteStyle),t(R,k,n+1,o)}return t(R,a,n+1,o)}if(typeof e=="function"&&!xt(e)){var d=so(e),y=me(e,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+x.call(y,", ")+" }":"")}if(Rr(e)){var m=ee?G.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):rt.call(e);return typeof e=="object"&&!ee?ie(m):m}if(ho(e)){for(var S="<"+It.call(String(e.nodeName)),P=e.attributes||[],I=0;I<P.length;I++)S+=" "+P[I].name+"="+Pr(no(P[I].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+It.call(String(e.nodeName))+">",S}if(ot(e)){if(e.length===0)return"[]";var g=me(e,s);return p&&!Eo(g)?"["+at(g,p)+"]":"[ "+x.call(g,", ")+" ]"}if(ao(e)){var T=me(e,s);return!("cause"in Error.prototype)&&"cause"in e&&!_r.call(e,"cause")?"{ ["+String(e)+"] "+x.call(Tt.call("[cause]: "+s(e.cause),T),", ")+" }":T.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+x.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(po(e)){var w=[];return Rt&&Rt.call(e,function(R,N){w.push(s(N,e,!0)+" => "+s(R,e))}),Ft("Map",Pe.call(e),w,p)}if(go(e)){var j=[];return Ot&&Ot.call(e,function(R){j.push(s(R,e))}),Ft("Set",Re.call(e),j,p)}if(yo(e))return Me("WeakMap");if(mo(e))return Me("WeakSet");if(vo(e))return Me("WeakRef");if(lo(e))return ie(s(Number(e)));if(uo(e))return ie(s(tt.call(e)));if(co(e))return ie(Yn.call(e));if(io(e))return ie(s(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof At<"u"&&e===At)return"{ [object globalThis] }";if(!oo(e)&&!xt(e)){var U=me(e,s),z=Ct?Ct(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",C=!z&&fe&&Object(e)===e&&fe in e?yt.call(H(e),8,-1):F?"Object":"",K=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",B=K+(C||F?"["+x.call(Tt.call([],C||[],F||[]),": ")+"] ":"");return U.length===0?B+"{}":p?B+"{"+at(U,p)+"}":B+"{ "+x.call(U,", ")+" }"}return String(e)};function Pr(t,e,r){var n=r.quoteStyle||e,o=Ar[n];return o+t+o}function no(t){return G.call(String(t),/"/g,"&quot;")}function V(t){return!fe||!(typeof t=="object"&&(fe in t||typeof t[fe]<"u"))}function ot(t){return H(t)==="[object Array]"&&V(t)}function oo(t){return H(t)==="[object Date]"&&V(t)}function xt(t){return H(t)==="[object RegExp]"&&V(t)}function ao(t){return H(t)==="[object Error]"&&V(t)}function io(t){return H(t)==="[object String]"&&V(t)}function lo(t){return H(t)==="[object Number]"&&V(t)}function co(t){return H(t)==="[object Boolean]"&&V(t)}function Rr(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 uo(t){if(!t||typeof t!="object"||!tt)return!1;try{return tt.call(t),!0}catch{}return!1}var fo=Object.prototype.hasOwnProperty||function(t){return t in this};function M(t,e){return fo.call(t,e)}function H(t){return Qn.call(t)}function so(t){if(t.name)return t.name;var e=Zn.call(Jn.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 po(t){if(!Pe||!t||typeof t!="object")return!1;try{Pe.call(t);try{Re.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function yo(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 vo(t){if(!bt||!t||typeof t!="object")return!1;try{return bt.call(t),!0}catch{}return!1}function go(t){if(!Re||!t||typeof t!="object")return!1;try{Re.call(t);try{Pe.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 ho(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function br(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return br(yt.call(t,0,e.maxStringLength),e)+n}var o=ro[e.quoteStyle||"single"];o.lastIndex=0;var a=G.call(G.call(t,o,"\\$1"),/[\x00-\x1f]/g,So);return Pr(a,"single",e)}function So(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+eo.call(e.toString(16))}function ie(t){return"Object("+t+")"}function Me(t){return t+" { ? }"}function Ft(t,e,r,n){var o=n?at(r,n):x.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 _o(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=x.call(Array(t.indent+1)," ");else return null;return{base:r,prev:x.call(Array(e+1),r)}}function at(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+x.call(t,","+r)+`
4
+ `+e.prev}function me(t,e){var r=ot(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=M(t,o)?e(t[o],t):""}var a=typeof Le=="function"?Le(t):[],i;if(ee){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)M(t,c)&&(r&&String(Number(c))===c&&c<t.length||ee&&i["$"+c]instanceof Symbol||(Er.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Le=="function")for(var f=0;f<a.length;f++)_r.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}var Ao=Te,Po=re,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},Ro=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}},bo=function(t,e){return t?!!we(t,e):!1},Io=function(t,e){if(t)return we(t,e,!0)},To=function(){var e,r={assert:function(n){if(!r.has(n))throw new Po("Side channel does not contain "+Ao(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 Ro(e,n)},has:function(n){return bo(e,n)},set:function(n,o){e||(e={next:void 0}),Oo(e,n,o)}};return r},Ir=Object,wo=Error,Co=EvalError,No=RangeError,Do=ReferenceError,$o=SyntaxError,xo=URIError,Fo=Math.abs,Lo=Math.floor,Mo=Math.max,Uo=Math.min,Bo=Math.pow,Go=Math.round,Ho=Number.isNaN||function(e){return e!==e},jo=Ho,ko=function(e){return jo(e)||e===0?e:e<0?-1:1},Wo=Object.getOwnPropertyDescriptor,Se=Wo;if(Se)try{Se([],"length")}catch{Se=null}var Tr=Se,Ee=Object.defineProperty||!1;if(Ee)try{Ee({},"a",{value:1})}catch{Ee=!1}var Xo=Ee,Ue,Lt;function qo(){return Lt||(Lt=1,Ue=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}),Ue}var Be,Mt;function Vo(){if(Mt)return Be;Mt=1;var t=typeof Symbol<"u"&&Symbol,e=qo();return Be=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Be}var Ge,Ut;function wr(){return Ut||(Ut=1,Ge=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ge}var He,Bt;function Cr(){if(Bt)return He;Bt=1;var t=Ir;return He=t.getPrototypeOf||null,He}var je,Gt;function zo(){if(Gt)return je;Gt=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,f){for(var u=[],p=0;p<c.length;p+=1)u[p]=c[p];for(var s=0;s<f.length;s+=1)u[s+c.length]=f[s];return u},a=function(c,f){for(var u=[],p=f,s=0;p<c.length;p+=1,s+=1)u[s]=c[p];return u},i=function(l,c){for(var f="",u=0;u<l.length;u+=1)f+=l[u],u+1<l.length&&(f+=c);return f};return je=function(c){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var u=a(arguments,1),p,s=function(){if(this instanceof p){var P=f.apply(this,o(u,arguments));return Object(P)===P?P:this}return f.apply(c,o(u,arguments))},d=r(0,f.length-u.length),y=[],m=0;m<d;m++)y[m]="$"+m;if(p=Function("binder","return function ("+i(y,",")+"){ return binder.apply(this,arguments); }")(s),f.prototype){var S=function(){};S.prototype=f.prototype,p.prototype=new S,S.prototype=null}return p},je}var ke,Ht;function Ce(){if(Ht)return ke;Ht=1;var t=zo();return ke=Function.prototype.bind||t,ke}var We,jt;function dt(){return jt||(jt=1,We=Function.prototype.call),We}var Xe,kt;function Nr(){return kt||(kt=1,Xe=Function.prototype.apply),Xe}var Ko=typeof Reflect<"u"&&Reflect&&Reflect.apply,Yo=Ce(),Qo=Nr(),Jo=dt(),Zo=Ko,ea=Zo||Yo.call(Jo,Qo),ta=Ce(),ra=re,na=dt(),oa=ea,Dr=function(e){if(e.length<1||typeof e[0]!="function")throw new ra("a function is required");return oa(ta,na,e)},qe,Wt;function aa(){if(Wt)return qe;Wt=1;var t=Dr,e=Tr,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 qe=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,qe}var Ve,Xt;function ia(){if(Xt)return Ve;Xt=1;var t=wr(),e=Cr(),r=aa();return Ve=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,Ve}var ze,qt;function la(){if(qt)return ze;qt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Ce();return ze=r.call(t,e),ze}var v,ca=Ir,ua=wo,fa=Co,sa=No,pa=Do,te=$o,Z=re,ya=xo,da=Fo,va=Lo,ga=Mo,ma=Uo,ha=Bo,Sa=Go,Ea=ko,$r=Function,Ke=function(t){try{return $r('"use strict"; return ('+t+").constructor;")()}catch{}},pe=Tr,_a=Xo,Ye=function(){throw new Z},Aa=pe?function(){try{return arguments.callee,Ye}catch{try{return pe(arguments,"callee").get}catch{return Ye}}}():Ye,Y=Vo()(),A=ia(),Pa=Cr(),Ra=wr(),xr=Nr(),ye=dt(),J={},Oa=typeof Uint8Array>"u"||!A?v:A(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":Y&&A?A([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ua,"%eval%":eval,"%EvalError%":fa,"%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%":$r,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Y&&A?A(A([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Y||!A?v:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ca,"%Object.getOwnPropertyDescriptor%":pe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":sa,"%ReferenceError%":pa,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Y||!A?v:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Y&&A?A(""[Symbol.iterator]()):v,"%Symbol%":Y?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":Aa,"%TypedArray%":Oa,"%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%":ya,"%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%":_a,"%Object.getPrototypeOf%":Pa,"%Math.abs%":da,"%Math.floor%":va,"%Math.max%":ga,"%Math.min%":ma,"%Math.pow%":ha,"%Math.round%":Sa,"%Math.sign%":Ea,"%Reflect.getPrototypeOf%":Ra};if(A)try{null.error}catch(t){var ba=A(A(t));X["%Error.prototype%"]=ba}var Ia=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&&A&&(r=A(o.prototype))}return X[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=Ce(),Oe=la(),Ta=de.call(ye,Array.prototype.concat),wa=de.call(xr,Array.prototype.splice),zt=de.call(ye,String.prototype.replace),be=de.call(ye,String.prototype.slice),Ca=de.call(ye,RegExp.prototype.exec),Na=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Da=/\\(\\)?/g,$a=function(e){var r=be(e,0,1),n=be(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,Na,function(a,i,l,c){o[o.length]=l?zt(c,Da,"$1"):i||a}),o},xa=function(e,r){var n=e,o;if(Oe(Vt,n)&&(o=Vt[n],n="%"+o[0]+"%"),Oe(X,n)){var a=X[n];if(a===J&&(a=Ia(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(Ca(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=$a(e),o=n.length>0?n[0]:"",a=xa("%"+o+"%",r),i=a.name,l=a.value,c=!1,f=a.alias;f&&(o=f[0],wa(n,Ta([0,1],f)));for(var u=1,p=!0;u<n.length;u+=1){var s=n[u],d=be(s,0,1),y=be(s,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((s==="constructor"||!p)&&(c=!0),o+="."+s,i="%"+o+"%",Oe(X,i))l=X[i];else if(l!=null){if(!(s 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 m=pe(l,s);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[s]}else p=Oe(l,s),l=l[s];p&&!c&&(X[i]=l)}}return l},Fr=vt,Lr=Dr,Fa=Lr([Fr("%String.prototype.indexOf%")]),Mr=function(e,r){var n=Fr(e,!!r);return typeof n=="function"&&Fa(e,".prototype.")>-1?Lr([n]):n},La=vt,ve=Mr,Ma=Te,Ua=re,Kt=La("%Map%",!0),Ba=ve("Map.prototype.get",!0),Ga=ve("Map.prototype.set",!0),Ha=ve("Map.prototype.has",!0),ja=ve("Map.prototype.delete",!0),ka=ve("Map.prototype.size",!0),Ur=!!Kt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ua("Side channel does not contain "+Ma(n))},delete:function(n){if(e){var o=ja(e,n);return ka(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ba(e,n)},has:function(n){return e?Ha(e,n):!1},set:function(n,o){e||(e=new Kt),Ga(e,n,o)}};return r},Wa=vt,Ne=Mr,Xa=Te,he=Ur,qa=re,Q=Wa("%WeakMap%",!0),Va=Ne("WeakMap.prototype.get",!0),za=Ne("WeakMap.prototype.set",!0),Ka=Ne("WeakMap.prototype.has",!0),Ya=Ne("WeakMap.prototype.delete",!0),Qa=Q?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new qa("Side channel does not contain "+Xa(o))},delete:function(o){if(Q&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ya(e,o)}else if(he&&r)return r.delete(o);return!1},get:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?Va(e,o):r&&r.get(o)},has:function(o){return Q&&o&&(typeof o=="object"||typeof o=="function")&&e?Ka(e,o):!!r&&r.has(o)},set:function(o,a){Q&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Q),za(e,o,a)):he&&(r||(r=he()),r.set(o,a))}};return n}:he,Ja=re,Za=Te,ei=To,ti=Ur,ri=Qa,ni=ri||ti||ei,oi=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ja("Side channel does not contain "+Za(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=ni()),e.set(n,o)}};return r},ai=String.prototype.replace,ii=/%20/g,Qe={RFC1738:"RFC1738",RFC3986:"RFC3986"},gt={default:Qe.RFC3986,formatters:{RFC1738:function(t){return ai.call(t,ii,"+")},RFC3986:function(t){return String(t)}},RFC1738:Qe.RFC1738,RFC3986:Qe.RFC3986},li=gt,Je=Object.prototype.hasOwnProperty,W=Array.isArray,D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ci=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(W(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Br=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},ui=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(W(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Je.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 W(e)&&!W(r)&&(o=Br(e,n)),W(e)&&W(r)?(r.forEach(function(a,i){if(Je.call(e,i)){var l=e[i];l&&typeof l=="object"&&a&&typeof a=="object"?e[i]=t(l,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var l=r[i];return Je.call(a,i)?a[i]=t(a[i],l,n):a[i]=l,a},o)},fi=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,pi=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 f=i.length>=Ze?i.slice(c,c+Ze):i,u=[],p=0;p<f.length;++p){var s=f.charCodeAt(p);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||a===li.RFC1738&&(s===40||s===41)){u[u.length]=f.charAt(p);continue}if(s<128){u[u.length]=D[s];continue}if(s<2048){u[u.length]=D[192|s>>6]+D[128|s&63];continue}if(s<55296||s>=57344){u[u.length]=D[224|s>>12]+D[128|s>>6&63]+D[128|s&63];continue}p+=1,s=65536+((s&1023)<<10|f.charCodeAt(p)&1023),u[u.length]=D[240|s>>18]+D[128|s>>12&63]+D[128|s>>6&63]+D[128|s&63]}l+=u.join("")}return l},yi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],l=Object.keys(i),c=0;c<l.length;++c){var f=l[c],u=i[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:i,prop:f}),n.push(u))}return ci(r),e},di=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},vi=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},gi=function(e,r){return[].concat(e,r)},mi=function(e,r){if(W(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Gr={arrayToObject:Br,assign:fi,combine:gi,compact:yi,decode:si,encode:pi,isBuffer:vi,isRegExp:di,maybeMap:mi,merge:ui},Hr=oi,_e=Gr,se=gt,hi=Object.prototype.hasOwnProperty,jr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},$=Array.isArray,Si=Array.prototype.push,kr=function(t,e){Si.apply(t,$(e)?e:[e])},Ei=Date.prototype.toISOString,Yt=se.default,E={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:_e.encode,encodeValuesOnly:!1,filter:void 0,format:Yt,formatter:se.formatters[Yt],indices:!1,serializeDate:function(e){return Ei.call(e)},skipNulls:!1,strictNullHandling:!1},_i=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},et={},Ai=function t(e,r,n,o,a,i,l,c,f,u,p,s,d,y,m,S,P,I){for(var g=e,T=I,w=0,j=!1;(T=T.get(et))!==void 0&&!j;){var U=T.get(e);if(w+=1,typeof U<"u"){if(U===w)throw new RangeError("Cyclic object value");j=!0}typeof T.get(et)>"u"&&(w=0)}if(typeof u=="function"?g=u(r,g):g instanceof Date?g=d(g):n==="comma"&&$(g)&&(g=_e.maybeMap(g,function(oe){return oe instanceof Date?d(oe):oe})),g===null){if(i)return f&&!S?f(r,E.encoder,P,"key",y):r;g=""}if(_i(g)||_e.isBuffer(g)){if(f){var z=S?r:f(r,E.encoder,P,"key",y);return[m(z)+"="+m(f(g,E.encoder,P,"value",y))]}return[m(r)+"="+m(String(g))]}var F=[];if(typeof g>"u")return F;var C;if(n==="comma"&&$(g))S&&f&&(g=_e.maybeMap(g,f)),C=[{value:g.length>0?g.join(",")||null:void 0}];else if($(u))C=u;else{var K=Object.keys(g);C=p?K.sort(p):K}var B=c?String(r).replace(/\./g,"%2E"):String(r),R=o&&$(g)&&g.length===1?B+"[]":B;if(a&&$(g)&&g.length===0)return R+"[]";for(var N=0;N<C.length;++N){var b=C[N],k=typeof b=="object"&&b&&typeof b.value<"u"?b.value:g[b];if(!(l&&k===null)){var ne=s&&c?String(b).replace(/\./g,"%2E"):String(b),$e=$(g)?typeof n=="function"?n(R,ne):R:R+(s?"."+ne:"["+ne+"]");I.set(e,w);var ge=Hr();ge.set(et,I),kr(F,t(k,$e,n,o,a,i,l,c,n==="comma"&&S&&$(g)?null:f,u,p,s,d,y,m,S,P,ge))}}return F},Pi=function(e){if(!e)return E;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||E.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(!hi.call(se.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=se.formatters[n],a=E.filter;(typeof e.filter=="function"||$(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in jr?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=E.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:E.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:E.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:E.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:E.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?E.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:E.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:E.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:E.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:E.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:E.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:E.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:E.strictNullHandling}},Ri=function(t,e){var r=t,n=Pi(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):$(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=jr[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Hr(),u=0;u<o.length;++u){var p=o[u],s=r[p];n.skipNulls&&s===null||kr(i,Ai(s,p,l,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var 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:""},q=Gr,it=Object.prototype.hasOwnProperty,Qt=Array.isArray,h={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:q.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Oi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Wr=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},bi="utf8=%26%2310003%3B",Ii="utf8=%E2%9C%93",Ti=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var l=-1,c,f=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===Ii?f="utf-8":i[c]===bi&&(f="iso-8859-1"),l=c,c=i.length);for(c=0;c<i.length;++c)if(c!==l){var u=i[c],p=u.indexOf("]="),s=p===-1?u.indexOf("="):p+1,d,y;s===-1?(d=r.decoder(u,h.decoder,f,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(u.slice(0,s),h.decoder,f,"key"),y=q.maybeMap(Wr(u.slice(s+1),r,Qt(n[d])?n[d].length:0),function(S){return r.decoder(S,h.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=Oi(String(y))),u.indexOf("[]=")>-1&&(y=Qt(y)?[y]:y);var m=it.call(n,d);m&&r.duplicates==="combine"?n[d]=q.combine(n[d],y):(!m||r.duplicates==="last")&&(n[d]=y)}return n},wi=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:Wr(e,r,o),l=t.length-1;l>=0;--l){var c,f=t[l];if(f==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:q.combine([],i);else{c=r.plainObjects?{__proto__:null}:{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,s=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(s)&&f!==p&&String(s)===p&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(c=[],c[s]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Ci=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(a),f=c?a.slice(0,c.index):a,u=[];if(f){if(!n.plainObjects&&it.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var p=0;n.depth>0&&(c=l.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&it.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+a.slice(c.index)+"]")}return wi(u,r,n,o)}},Ni=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"||q.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}},Di=function(t,e){var r=Ni(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Ti(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Ci(l,n[l],r,typeof t=="string");o=q.merge(o,c,r)}return r.allowSparse===!0?o:q.compact(o)},$i=Ri,xi=Di,Fi=gt,Li={formats:Fi,parse:xi,stringify:$i};const Mi=pr(Li);async function De(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Mi.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 Xr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function qr(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 De(l,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const f=await c.json(),u=e.findIndex(p=>p.documentId===f.id);return u!==-1?(e[u]=f,[...e]):[f,...e]}return e}const Ui=Object.freeze(Object.defineProperty({__proto__:null,createUrl:mt,fetchCMS:De,mergePreviewDocument:qr,spreadStrapiData:Xr},Symbol.toStringTag,{value:"Module"}));async function Vr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await De(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?Xr(a):a}:{status:404,data:[],error:"No data found"}}async function zr(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let l=1,c=0,f=!0;try{do{const u=await De(e,{...a,page:l},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));l===1&&(c=u.totalItems),Array.isArray(u==null?void 0:u.data)&&i.push(...u.data),f=!!(u!=null&&u.hasNextPage),l++}while(f&&i.length<c);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const u=await qr(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 Bi=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Vr,vtexCMSData:zr},Symbol.toStringTag,{value:"Module"}));async function Gi({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(mt(t,e));return n!=="vtex"?Vr(o,e,r):zr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Hi=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Kr,getCMSContentType:Gi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=kn;exports.addLocale=vr;exports.addPathPrefix=ut;exports.addSearchParamsFacets=Rn;exports.catalogHelpers=Bn;exports.cms=Hi;exports.cmsHelpers=Bi;exports.cmsUtils=Ui;exports.constants=dr;exports.convertSearchParams=Tn;exports.detectDomainLocale=mr;exports.disableSKU=or;exports.fetchContentType=Kr;exports.fetchVtex=ft;exports.fetchVtexWithAbortController=Gn;exports.filterNonCategorySelected=mn;exports.filterNonRootFacets=bn;exports.formatPriceToCurrency=Ae;exports.formattedFacets=Pn;exports.formattedSimilars=hr;exports.freightParsePrice=Jt;exports.getColorAndSizeFromSkuName=er;exports.getDefaultExportFromCjs=pr;exports.getDiscountPercent=Zt;exports.getFirstImages=ur;exports.getProductNameWithoutSku=rr;exports.getSKUName=tr;exports.getSkuInfos=nr;exports.getThumbImage=ir;exports.getValidOffer=ar;exports.marketingdata=jn;exports.navigateToSearchPage=wn;exports.normalizeLocalePath=gr;exports.parsePath=Ie;exports.parseSearchState=In;exports.pathHasPrefix=ct;exports.postMediaData=Sr;exports.productHelpers=vn;exports.removeTrailingSlash=yr;exports.resizingImg=lr;exports.responsive=le;exports.setVideoPlay=fr;exports.splitNameAndSizeFromFullName=lt;exports.updatedResizedImg=cr;