@soma-vertical-web/multi-lib 1.0.22 → 1.0.24
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/NotFoundPage/NotFoundContent.d.ts +3 -0
- package/cms/server.d.ts +1 -0
- package/data/api/catalog/index.d.ts +1 -0
- package/data/api/catalog/pageInfo/index.d.ts +7 -0
- package/{index-BhiCzrut.mjs → index-3re_PcOZ.mjs} +717 -738
- package/index-5ycwc4R2.mjs +2230 -0
- package/index-BngdrDvh.js +4 -0
- package/index-ByLB8d6o.js +4 -0
- package/{index-D61YFVi9.mjs → index-DjjGiBzS.mjs} +697 -742
- package/index-Rwk0NGoh.js +4 -0
- package/index.js +13 -13
- package/index.mjs +3431 -3348
- package/index2.js +2 -2
- package/index2.mjs +351 -319
- package/layout/index.d.ts +4 -0
- package/layout/template/ErrorTemplate/ErrorTemplate.d.ts +7 -0
- package/layout/template/ErrorTemplate/index.d.ts +1 -0
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/QuickShop/Composite/Similars.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/NotFoundPage/index.d.ts +6 -1
- package/types/data/api/index.d.ts +13 -0
- package/types/layout/templates/ErrorTemplate/index.d.ts +12 -0
- package/types/layout/templates/QuickShop/index.d.ts +2 -1
- package/cms/ContentTypes/LPLojas/typing.d.ts +0 -33
- package/contexts/contexts/search/QueryFacets.d.ts +0 -5
- package/contexts/contexts/search/QueryProducts.d.ts +0 -5
- package/contexts/contexts/search/RootTank.d.ts +0 -9
- package/index-4tOP7lCS.js +0 -4
- package/index-67k__dSl.mjs +0 -1908
- package/index-BFX4NpXJ.js +0 -4
- package/index-BlwJMBFA.mjs +0 -1890
- package/index-ByhWQJ9Z.mjs +0 -1844
- package/index-CkpbvnLx.mjs +0 -1830
- package/index-CpUjW-m9.mjs +0 -1877
- package/index-D0LSqsck.js +0 -4
- package/index-DZ1MbO8M.js +0 -4
- package/index-Dj1bg0lu.mjs +0 -1826
- package/index-DvhdPe3b.js +0 -4
- package/index-DyKuIyRP.js +0 -4
- package/index-dtcYsqh-.js +0 -4
- package/index-xWhZ_YcF.js +0 -4
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +0 -18
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +0 -10
- package/layout/template/LPLojas/constant.d.ts +0 -1
- package/layout/template/LPLojas/interfaces.d.ts +0 -18
- package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
package/index-DvhdPe3b.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),$r=require("@soma-vertical-web/core-components"),me=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Dt=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:me(0):me(t/100),Mt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},Xe=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},jt=(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()}},Bt=(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},Ut=(t,e)=>t.replace(e,"").trim(),Ir=t=>t.replace(/\//g,""),Lt=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,c)=>{var u;c&&(c.sellerId=i.sellerId,c.sellerName=i.sellerName,c.available=!0,c.isSellerDefault=i.sellerDefault);const{Price:l,ListPrice:s,PaymentOptions:{installmentOptions:f}}=i.commertialOffer;r.price=l,r.listPrice=s;const p=(u=f==null?void 0:f[0])==null?void 0:u.installments;if(p){const{count:v,value:d}=p[p.length-1];r.installments={count:v,value:d/100}}};let o=!0;const a=t.reduce((i,c)=>{var f;const l={name:c.name,sku:c.itemId,value:((f=c.Tamanho)==null?void 0:f[0])??Xe(c.nameComplete??c.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=c.sellers.filter(p=>(p.sellerDefault&&p.commertialOffer.IsAvailable&&(l.available=!0,n(p,l)),p.commertialOffer.IsAvailable));return!l.isSellerDefault&&s.length>0&&(l.available=!0,n(s[0],{...l,sellerId:s[0].sellerId,sellerName:s[0].sellerName})),l.available===!1&&(o=!1),i.push(l),i},[]);return{...r,sizes:a,allSizesAvailable:o}},zt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,Wt=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},qt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Gt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Ht=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Kt=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},Rr=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},Vt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},kr=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:zt,formatPriceToCurrency:me,freightParsePrice:Dt,getAspectRatio:Rr,getColorAndSizeFromSkuName:jt,getDiscountPercent:Mt,getFirstImages:Kt,getProductNameWithoutSku:Ut,getSKUName:Bt,getSkuInfos:Lt,getThumbImage:qt,getValidOffer:Wt,removeSlashes:Ir,resizingImg:Gt,setVideoPlay:Vt,splitNameAndSizeFromFullName:Xe,updatedResizedImg:Ht},Symbol.toStringTag,{value:"Module"})),lt="fuzzy",ct="operator",Fr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),Nr=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},Qt=(t,e)=>e?t==="category-1":!1,Tr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),Cr=t=>t.type==="TEXT",Dr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Mr=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))}},jr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Br=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!Qt(i.key,o)).map(i=>Cr(i)?Mr(i):jr(i))},Ur=(t,e)=>{const r=t.find(({key:o})=>o===lt)??null,n=t.find(({key:o})=>o===ct)??null;r&&Dr(r)&&e.append(lt,r.value),n&&Tr(n)&&e.append(ct,n.value)},Lr=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),zr=(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}=Fr(n);return n==null?void 0:n.filter(a=>!Qt(a.key,o))},Wr=({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:Lr(r),term:o,base:o?"":t,page:a}},qr=t=>{const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{Array.isArray(n)?n.forEach(o=>e.append(r,o)):n!==void 0&&e.append(r,n)}),e},Gr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}const ee={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},Kr="_header_9xxjk_57",Vr="_actions_9xxjk_131",Qr="_breadcrumb_9xxjk_142",Jr="_credits_9xxjk_157",Yr="_pdplinks_9xxjk_185",Xr="_similars_9xxjk_212",Zr="_sizes_9xxjk_251",en="_measurementTable_9xxjk_267",tn="_measurementHead_9xxjk_280",rn="_measurementRows_9xxjk_285",nn="_measurementRowsTitle_9xxjk_302",on="_measurementRowsText_9xxjk_314",an="_measurementImage_9xxjk_325",ln="_measurementImageContainer_9xxjk_328",cn="_measurementContent_9xxjk_337",fn="_measurementTitle_9xxjk_341",un="_measurementClose_9xxjk_352",sn="_productref_9xxjk_417",pn="_slideOut_9xxjk_1",yn="_slideIn_9xxjk_1",dn="_content_9xxjk_397",vn="_pdp_9xxjk_185",mn="_divider_9xxjk_575",gn={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:Kr,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:Vr,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:Qr,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:Jr,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:Yr,"links-wrapper":"_links-wrapper_9xxjk_195",similars:Xr,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:Zr,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:en,measurementHead:tn,measurementRows:rn,measurementRowsTitle:nn,measurementRowsText:on,measurementImage:an,measurementImageContainer:ln,measurementContent:cn,measurementTitle:fn,measurementClose:un,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:sn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:pn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:yn,content:dn,pdp:vn,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:mn,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},hn=({children:t,data:e,SectionZone:r,className:n})=>{var f,p;const o=((f=e==null?void 0:e.filter(u=>{var v,d;return((d=(v=u.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:f.sections)||[],a=((p=e==null?void 0:e.filter(u=>{var v,d;return((d=(v=u.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),c=o.slice(1,o.length),l=a.slice(0,1),s=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:l??[]})})]}),t,w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:c??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:s??[]})}),w.jsx($r.Utils.Divider,{})]})};var J=TypeError;const _n={},bn=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"})),Sn=Hr(bn);var Ze=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=Ze&&$e&&typeof $e.get=="function"?$e.get:null,ut=Ze&&Map.prototype.forEach,et=typeof Set=="function"&&Set.prototype,Ie=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,he=et&&Ie&&typeof Ie.get=="function"?Ie.get:null,st=et&&Set.prototype.forEach,wn=typeof WeakMap=="function"&&WeakMap.prototype,te=wn?WeakMap.prototype.has:null,xn=typeof WeakSet=="function"&&WeakSet.prototype,re=xn?WeakSet.prototype.has:null,An=typeof WeakRef=="function"&&WeakRef.prototype,pt=An?WeakRef.prototype.deref:null,On=Boolean.prototype.valueOf,Pn=Object.prototype.toString,En=Function.prototype.toString,$n=String.prototype.match,tt=String.prototype.slice,T=String.prototype.replace,In=String.prototype.toUpperCase,yt=String.prototype.toLowerCase,Yt=RegExp.prototype.test,dt=Array.prototype.concat,P=Array.prototype.join,Rn=Array.prototype.slice,vt=Math.floor,He=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Re=Object.getOwnPropertySymbols,Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Xt=Object.prototype.propertyIsEnumerable,mt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function gt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Yt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-vt(-t):vt(t);if(n!==t){var o=String(n),a=tt.call(e,o.length+1);return T.call(o,r,"$&_")+"."+T.call(T.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(e,r,"$&_")}var Ve=Sn,ht=Ve.custom,_t=tr(ht)?ht:null,Zt={__proto__:null,double:'"',single:"'"},kn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Se=function t(e,r,n,o){var a=r||{};if($(a,"quoteStyle")&&!$(Zt,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=$(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return nr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?gt(e,l):l}if(typeof e=="bigint"){var s=String(e)+"n";return c?gt(e,s):s}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Qe(e)?"[Array]":"[Object]";var p=Qn(a,n);if(typeof o>"u")o=[];else if(rr(o,e)>=0)return"[Circular]";function u(x,N,E){if(N&&(o=Rn.call(o),o.push(N)),E){var X={depth:a.depth};return $(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(x,X,n+1,o)}return t(x,a,n+1,o)}if(typeof e=="function"&&!bt(e)){var v=Un(e),d=se(e,u);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(d.length>0?" { "+P.call(d,", ")+" }":"")}if(tr(e)){var b=V?T.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ke.call(e);return typeof e=="object"&&!V?Z(b):b}if(Hn(e)){for(var S="<"+yt.call(String(e.nodeName)),I=e.attributes||[],R=0;R<I.length;R++)S+=" "+I[R].name+"="+er(Fn(I[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+yt.call(String(e.nodeName))+">",S}if(Qe(e)){if(e.length===0)return"[]";var m=se(e,u);return p&&!Vn(m)?"["+Je(m,p)+"]":"[ "+P.call(m,", ")+" ]"}if(Tn(e)){var k=se(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!Xt.call(e,"cause")?"{ ["+String(e)+"] "+P.call(dt.call("[cause]: "+u(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(k,", ")+" }"}if(typeof e=="object"&&i){if(_t&&typeof e[_t]=="function"&&Ve)return Ve(e,{depth:f-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ln(e)){var D=[];return ut&&ut.call(e,function(x,N){D.push(u(N,e,!0)+" => "+u(x,e))}),St("Map",ge.call(e),D,p)}if(qn(e)){var Y=[];return st&&st.call(e,function(x){Y.push(u(x,e))}),St("Set",he.call(e),Y,p)}if(zn(e))return ke("WeakMap");if(Gn(e))return ke("WeakSet");if(Wn(e))return ke("WeakRef");if(Dn(e))return Z(u(Number(e)));if(jn(e))return Z(u(He.call(e)));if(Mn(e))return Z(On.call(e));if(Cn(e))return Z(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ft<"u"&&e===ft)return"{ [object globalThis] }";if(!Nn(e)&&!bt(e)){var z=se(e,u),fe=mt?mt(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",F=!fe&&ne&&Object(e)===e&&ne in e?tt.call(C(e),8,-1):M?"Object":"",ue=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=ue+(F||M?"["+P.call(dt.call([],F||[],M||[]),": ")+"] ":"");return z.length===0?W+"{}":p?W+"{"+Je(z,p)+"}":W+"{ "+P.call(z,", ")+" }"}return String(e)};function er(t,e,r){var n=r.quoteStyle||e,o=Zt[n];return o+t+o}function Fn(t){return T.call(String(t),/"/g,""")}function L(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Qe(t){return C(t)==="[object Array]"&&L(t)}function Nn(t){return C(t)==="[object Date]"&&L(t)}function bt(t){return C(t)==="[object RegExp]"&&L(t)}function Tn(t){return C(t)==="[object Error]"&&L(t)}function Cn(t){return C(t)==="[object String]"&&L(t)}function Dn(t){return C(t)==="[object Number]"&&L(t)}function Mn(t){return C(t)==="[object Boolean]"&&L(t)}function tr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ke)return!1;try{return Ke.call(t),!0}catch{}return!1}function jn(t){if(!t||typeof t!="object"||!He)return!1;try{return He.call(t),!0}catch{}return!1}var Bn=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return Bn.call(t,e)}function C(t){return Pn.call(t)}function Un(t){if(t.name)return t.name;var e=$n.call(En.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ln(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{he.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function zn(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Wn(t){if(!pt||!t||typeof t!="object")return!1;try{return pt.call(t),!0}catch{}return!1}function qn(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Gn(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Hn(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function nr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nr(tt.call(t,0,e.maxStringLength),e)+n}var o=kn[e.quoteStyle||"single"];o.lastIndex=0;var a=T.call(T.call(t,o,"\\$1"),/[\x00-\x1f]/g,Kn);return er(a,"single",e)}function Kn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+In.call(e.toString(16))}function Z(t){return"Object("+t+")"}function ke(t){return t+" { ? }"}function St(t,e,r,n){var o=n?Je(r,n):P.call(r,", ");return t+" ("+e+") {"+o+"}"}function Vn(t){for(var e=0;e<t.length;e++)if(rr(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function Qn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=P.call(Array(t.indent+1)," ");else return null;return{base:r,prev:P.call(Array(e+1),r)}}function Je(t,e){if(t.length===0)return"";var r=`
|
|
3
|
-
`+e.prev+e.base;return r+P.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function se(t,e){var r=Qe(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a=typeof Re=="function"?Re(t):[],i;if(V){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)$(t,l)&&(r&&String(Number(l))===l&&l<t.length||V&&i["$"+l]instanceof Symbol||(Yt.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Re=="function")for(var s=0;s<a.length;s++)Xt.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var Jn=Se,Yn=J,we=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},Xn=function(t,e){if(t){var r=we(t,e);return r&&r.value}},Zn=function(t,e,r){var n=we(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},eo=function(t,e){return t?!!we(t,e):!1},to=function(t,e){if(t)return we(t,e,!0)},ro=function(){var e,r={assert:function(n){if(!r.has(n))throw new Yn("Side channel does not contain "+Jn(n))},delete:function(n){var o=e&&e.next,a=to(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return Xn(e,n)},has:function(n){return eo(e,n)},set:function(n,o){e||(e={next:void 0}),Zn(e,n,o)}};return r},or=Object,no=Error,oo=EvalError,ao=RangeError,io=ReferenceError,lo=SyntaxError,co=URIError,fo=Math.abs,uo=Math.floor,so=Math.max,po=Math.min,yo=Math.pow,vo=Math.round,mo=Number.isNaN||function(e){return e!==e},go=mo,ho=function(e){return go(e)||e===0?e:e<0?-1:1},_o=Object.getOwnPropertyDescriptor,ye=_o;if(ye)try{ye([],"length")}catch{ye=null}var ar=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var bo=de,Fe,wt;function So(){return wt||(wt=1,Fe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),Fe}var Ne,xt;function wo(){if(xt)return Ne;xt=1;var t=typeof Symbol<"u"&&Symbol,e=So();return Ne=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ne}var Te,At;function ir(){return At||(At=1,Te=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Te}var Ce,Ot;function lr(){if(Ot)return Ce;Ot=1;var t=or;return Ce=t.getPrototypeOf||null,Ce}var xo="Function.prototype.bind called on incompatible ",Ao=Object.prototype.toString,Oo=Math.max,Po="[object Function]",Pt=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<r.length;a+=1)n[a+e.length]=r[a];return n},Eo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},$o=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Io=function(e){var r=this;if(typeof r!="function"||Ao.apply(r)!==Po)throw new TypeError(xo+r);for(var n=Eo(arguments,1),o,a=function(){if(this instanceof o){var f=r.apply(this,Pt(n,arguments));return Object(f)===f?f:this}return r.apply(e,Pt(n,arguments))},i=Oo(0,r.length-n.length),c=[],l=0;l<i;l++)c[l]="$"+l;if(o=Function("binder","return function ("+$o(c,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o},Ro=Io,xe=Function.prototype.bind||Ro,rt=Function.prototype.call,De,Et;function cr(){return Et||(Et=1,De=Function.prototype.apply),De}var ko=typeof Reflect<"u"&&Reflect&&Reflect.apply,Fo=xe,No=cr(),To=rt,Co=ko,Do=Co||Fo.call(To,No),Mo=xe,jo=J,Bo=rt,Uo=Do,fr=function(e){if(e.length<1||typeof e[0]!="function")throw new jo("a function is required");return Uo(Mo,Bo,e)},Me,$t;function Lo(){if($t)return Me;$t=1;var t=fr,e=ar,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Me=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(c){return a(c==null?c:o(c))}:!1,Me}var je,It;function zo(){if(It)return je;It=1;var t=ir(),e=lr(),r=Lo();return je=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,je}var Be,Rt;function Wo(){if(Rt)return Be;Rt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=xe;return Be=r.call(t,e),Be}var y,qo=or,Go=no,Ho=oo,Ko=ao,Vo=io,Q=lo,K=J,Qo=co,Jo=fo,Yo=uo,Xo=so,Zo=po,ea=yo,ta=vo,ra=ho,ur=Function,Ue=function(t){try{return ur('"use strict"; return ('+t+").constructor;")()}catch{}},ae=ar,na=bo,Le=function(){throw new K},oa=ae?function(){try{return arguments.callee,Le}catch{try{return ae(arguments,"callee").get}catch{return Le}}}():Le,q=wo()(),_=zo(),aa=lr(),ia=ir(),sr=cr(),ie=rt,H={},la=typeof Uint8Array>"u"||!_?y:_(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":q&&_?_([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Go,"%eval%":eval,"%EvalError%":Ho,"%Float16Array%":typeof Float16Array>"u"?y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":ur,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&_?_(_([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!_?y:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qo,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":Ko,"%ReferenceError%":Vo,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!_?y:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&_?_(""[Symbol.iterator]()):y,"%Symbol%":q?Symbol:y,"%SyntaxError%":Q,"%ThrowTypeError%":oa,"%TypedArray%":la,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":Qo,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":sr,"%Object.defineProperty%":na,"%Object.getPrototypeOf%":aa,"%Math.abs%":Jo,"%Math.floor%":Yo,"%Math.max%":Xo,"%Math.min%":Zo,"%Math.pow%":ea,"%Math.round%":ta,"%Math.sign%":ra,"%Reflect.getPrototypeOf%":ia};if(_)try{null.error}catch(t){var ca=_(_(t));B["%Error.prototype%"]=ca}var fa=function t(e){var r;if(e==="%AsyncFunction%")r=Ue("async function () {}");else if(e==="%GeneratorFunction%")r=Ue("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ue("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return B[e]=r,r},kt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},le=xe,_e=Wo(),ua=le.call(ie,Array.prototype.concat),sa=le.call(sr,Array.prototype.splice),Ft=le.call(ie,String.prototype.replace),be=le.call(ie,String.prototype.slice),pa=le.call(ie,RegExp.prototype.exec),ya=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,va=function(e){var r=be(e,0,1),n=be(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return Ft(e,ya,function(a,i,c,l){o[o.length]=c?Ft(l,da,"$1"):i||a}),o},ma=function(e,r){var n=e,o;if(_e(kt,n)&&(o=kt[n],n="%"+o[0]+"%"),_e(B,n)){var a=B[n];if(a===H&&(a=fa(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},nt=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(pa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=va(e),o=n.length>0?n[0]:"",a=ma("%"+o+"%",r),i=a.name,c=a.value,l=!1,s=a.alias;s&&(o=s[0],sa(n,ua([0,1],s)));for(var f=1,p=!0;f<n.length;f+=1){var u=n[f],v=be(u,0,1),d=be(u,-1);if((v==='"'||v==="'"||v==="`"||d==='"'||d==="'"||d==="`")&&v!==d)throw new Q("property names with quotes must have matching quotes");if((u==="constructor"||!p)&&(l=!0),o+="."+u,i="%"+o+"%",_e(B,i))c=B[i];else if(c!=null){if(!(u in c)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&f+1>=n.length){var b=ae(c,u);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?c=b.get:c=c[u]}else p=_e(c,u),c=c[u];p&&!l&&(B[i]=c)}}return c},pr=nt,yr=fr,ga=yr([pr("%String.prototype.indexOf%")]),dr=function(e,r){var n=pr(e,!!r);return typeof n=="function"&&ga(e,".prototype.")>-1?yr([n]):n},ha=nt,ce=dr,_a=Se,ba=J,Nt=ha("%Map%",!0),Sa=ce("Map.prototype.get",!0),wa=ce("Map.prototype.set",!0),xa=ce("Map.prototype.has",!0),Aa=ce("Map.prototype.delete",!0),Oa=ce("Map.prototype.size",!0),vr=!!Nt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new ba("Side channel does not contain "+_a(n))},delete:function(n){if(e){var o=Aa(e,n);return Oa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Sa(e,n)},has:function(n){return e?xa(e,n):!1},set:function(n,o){e||(e=new Nt),wa(e,n,o)}};return r},Pa=nt,Ae=dr,Ea=Se,pe=vr,$a=J,G=Pa("%WeakMap%",!0),Ia=Ae("WeakMap.prototype.get",!0),Ra=Ae("WeakMap.prototype.set",!0),ka=Ae("WeakMap.prototype.has",!0),Fa=Ae("WeakMap.prototype.delete",!0),Na=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new $a("Side channel does not contain "+Ea(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Fa(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?Ia(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?ka(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),Ra(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Ta=J,Ca=Se,Da=ro,Ma=vr,ja=Na,Ba=ja||Ma||Da,Ua=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ta("Side channel does not contain "+Ca(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=Ba()),e.set(n,o)}};return r},La=String.prototype.replace,za=/%20/g,ze={RFC1738:"RFC1738",RFC3986:"RFC3986"},ot={default:ze.RFC3986,formatters:{RFC1738:function(t){return La.call(t,za,"+")},RFC3986:function(t){return String(t)}},RFC1738:ze.RFC1738,RFC3986:ze.RFC3986},Wa=ot,We=Object.prototype.hasOwnProperty,j=Array.isArray,A=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),qa=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(j(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},mr=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},Ga=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(j(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!We.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return j(e)&&!j(r)&&(o=mr(e,n)),j(e)&&j(r)?(r.forEach(function(a,i){if(We.call(e,i)){var c=e[i];c&&typeof c=="object"&&a&&typeof a=="object"?e[i]=t(c,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var c=r[i];return We.call(a,i)?a[i]=t(a[i],c,n):a[i]=c,a},o)},Ha=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ka=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},qe=1024,Va=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var c="",l=0;l<i.length;l+=qe){for(var s=i.length>=qe?i.slice(l,l+qe):i,f=[],p=0;p<s.length;++p){var u=s.charCodeAt(p);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===Wa.RFC1738&&(u===40||u===41)){f[f.length]=s.charAt(p);continue}if(u<128){f[f.length]=A[u];continue}if(u<2048){f[f.length]=A[192|u>>6]+A[128|u&63];continue}if(u<55296||u>=57344){f[f.length]=A[224|u>>12]+A[128|u>>6&63]+A[128|u&63];continue}p+=1,u=65536+((u&1023)<<10|s.charCodeAt(p)&1023),f[f.length]=A[240|u>>18]+A[128|u>>12&63]+A[128|u>>6&63]+A[128|u&63]}c+=f.join("")}return c},Qa=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],c=Object.keys(i),l=0;l<c.length;++l){var s=c[l],f=i[s];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:i,prop:s}),n.push(f))}return qa(r),e},Ja=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ya=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Xa=function(e,r){return[].concat(e,r)},Za=function(e,r){if(j(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},gr={arrayToObject:mr,assign:Ha,combine:Xa,compact:Qa,decode:Ka,encode:Va,isBuffer:Ya,isRegExp:Ja,maybeMap:Za,merge:Ga},hr=Ua,ve=gr,oe=ot,ei=Object.prototype.hasOwnProperty,_r={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},O=Array.isArray,ti=Array.prototype.push,br=function(t,e){ti.apply(t,O(e)?e:[e])},ri=Date.prototype.toISOString,Tt=oe.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Tt,formatter:oe.formatters[Tt],indices:!1,serializeDate:function(e){return ri.call(e)},skipNulls:!1,strictNullHandling:!1},ni=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ge={},oi=function t(e,r,n,o,a,i,c,l,s,f,p,u,v,d,b,S,I,R){for(var m=e,k=R,D=0,Y=!1;(k=k.get(Ge))!==void 0&&!Y;){var z=k.get(e);if(D+=1,typeof z<"u"){if(z===D)throw new RangeError("Cyclic object value");Y=!0}typeof k.get(Ge)>"u"&&(D=0)}if(typeof f=="function"?m=f(r,m):m instanceof Date?m=v(m):n==="comma"&&O(m)&&(m=ve.maybeMap(m,function(Ee){return Ee instanceof Date?v(Ee):Ee})),m===null){if(i)return s&&!S?s(r,h.encoder,I,"key",d):r;m=""}if(ni(m)||ve.isBuffer(m)){if(s){var fe=S?r:s(r,h.encoder,I,"key",d);return[b(fe)+"="+b(s(m,h.encoder,I,"value",d))]}return[b(r)+"="+b(String(m))]}var M=[];if(typeof m>"u")return M;var F;if(n==="comma"&&O(m))S&&s&&(m=ve.maybeMap(m,s)),F=[{value:m.length>0?m.join(",")||null:void 0}];else if(O(f))F=f;else{var ue=Object.keys(m);F=p?ue.sort(p):ue}var W=l?String(r).replace(/\./g,"%2E"):String(r),x=o&&O(m)&&m.length===1?W+"[]":W;if(a&&O(m)&&m.length===0)return x+"[]";for(var N=0;N<F.length;++N){var E=F[N],X=typeof E=="object"&&E&&typeof E.value<"u"?E.value:m[E];if(!(c&&X===null)){var Pe=u&&l?String(E).replace(/\./g,"%2E"):String(E),Er=O(m)?typeof n=="function"?n(x,Pe):x:x+(u?"."+Pe:"["+Pe+"]");R.set(e,D);var it=hr();it.set(Ge,R),br(M,t(X,Er,n,o,a,i,c,l,n==="comma"&&S&&O(m)?null:s,f,p,u,v,d,b,S,I,it))}}return M},ai=function(e){if(!e)return h;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||h.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=oe.default;if(typeof e.format<"u"){if(!ei.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=h.filter;(typeof e.filter=="function"||O(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in _r?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=h.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},ii=function(t,e){var r=t,n=ai(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):O(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var c=_r[n.arrayFormat],l=c==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=hr(),f=0;f<o.length;++f){var p=o[f],u=r[p];n.skipNulls&&u===null||br(i,oi(u,p,c,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var v=i.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),v.length>0?d+v:""},U=gr,Ye=Object.prototype.hasOwnProperty,Ct=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:U.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},li=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Sr=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},ci="utf8=%26%2310003%3B",fi="utf8=%E2%9C%93",ui=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var c=-1,l,s=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===fi?s="utf-8":i[l]===ci&&(s="iso-8859-1"),c=l,l=i.length);for(l=0;l<i.length;++l)if(l!==c){var f=i[l],p=f.indexOf("]="),u=p===-1?f.indexOf("="):p+1,v,d;u===-1?(v=r.decoder(f,g.decoder,s,"key"),d=r.strictNullHandling?null:""):(v=r.decoder(f.slice(0,u),g.decoder,s,"key"),d=U.maybeMap(Sr(f.slice(u+1),r,Ct(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,s,"value")})),d&&r.interpretNumericEntities&&s==="iso-8859-1"&&(d=li(String(d))),f.indexOf("[]=")>-1&&(d=Ct(d)?[d]:d);var b=Ye.call(n,v);b&&r.duplicates==="combine"?n[v]=U.combine(n[v],d):(!b||r.duplicates==="last")&&(n[v]=d)}return n},si=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var i=n?e:Sr(e,r,o),c=t.length-1;c>=0;--c){var l,s=t[c];if(s==="[]"&&r.parseArrays)l=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:U.combine([],i);else{l=r.plainObjects?{__proto__:null}:{};var f=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,u=parseInt(p,10);!r.parseArrays&&p===""?l={0:i}:!isNaN(u)&&s!==p&&String(u)===p&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(l=[],l[u]=i):p!=="__proto__"&&(l[p]=i)}i=l}return i},pi=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(a),s=l?a.slice(0,l.index):a,f=[];if(s){if(!n.plainObjects&&Ye.call(Object.prototype,s)&&!n.allowPrototypes)return;f.push(s)}for(var p=0;n.depth>0&&(l=c.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ye.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(l.index)+"]")}return si(f,r,n,o)}},yi=function(e){if(!e)return g;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||U.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},di=function(t,e){var r=yi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?ui(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var c=a[i],l=pi(c,n[c],r,typeof t=="string");o=U.merge(o,l,r)}return r.allowSparse===!0?o:U.compact(o)},vi=ii,mi=di,gi=ot,hi={formats:gi,parse:mi,stringify:vi};const _i=Jt(hi);async function Oe(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${_i.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function at(t,e){return!(e!=null&&e.cms)||(e==null?void 0:e.cms)==="vtex"?`https://${e==null?void 0:e.storeId}.myvtex.com/_v/cms/api/${e==null?void 0:e.name}/${t}`:String(new URL(`api/${t}`,process.env.NEXT_PUBLIC_API_URL))}function wr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function xr(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",c=new URL(at(`${t}${i}`,r)),l=await Oe(c,r,o);if(!l.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`),[];const s=await l.json(),f=e.findIndex(p=>p.documentId===s.id);return f!==-1?(e[f]=s,[...e]):[s,...e]}return e}const bi=Object.freeze(Object.defineProperty({__proto__:null,createUrl:at,fetchCMS:Oe,mergePreviewDocument:xr,spreadStrapiData:wr},Symbol.toStringTag,{value:"Module"}));async function Ar(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await Oe(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?wr(a):a}:{status:404,data:[],error:"No data found"}}async function Or(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let c=1,l=0,s=!0;try{do{const f=await Oe(e,{...a,page:c},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));c===1&&(l=f.totalItems),Array.isArray(f==null?void 0:f.data)&&i.push(...f.data),s=!!(f!=null&&f.hasNextPage),c++}while(s&&i.length<l);if(o&&i.length>0){if(!t||!n)throw new Error("contentType and previewId are required for preview mode in vtexCMSData");const f=await xr(t,i,a);return{status:f.length>0?200:404,data:f}}return{status:i.length?200:404,data:i}}catch(f){return{status:500,data:[],error:f instanceof Error?f.message:String(f)}}}const Si=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Ar,vtexCMSData:Or},Symbol.toStringTag,{value:"Module"}));async function wi({contentType:t,documentId:e,versionId:r,storeId:n,CMS_PROJECT_NAME:o}){const a=e&&e.length?`/${e}`:"",i=r&&r.length?`?versionId=${r}`:"";return fetch(`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,{cache:"no-cache"})}async function Pr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(at(t,e));return n!=="vtex"?Ar(o,e,r):Or(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const xi=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Pr,getCMSContentType:wi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=hn;exports.addSearchParamsFacets=Ur;exports.cms=xi;exports.cmsHelpers=Si;exports.cmsUtils=bi;exports.convertSearchParams=qr;exports.disableSKU=zt;exports.fetchContentType=Pr;exports.filterNonCategorySelected=Nr;exports.filterNonRootFacets=zr;exports.formatPriceToCurrency=me;exports.formattedFacets=Br;exports.freightParsePrice=Dt;exports.getColorAndSizeFromSkuName=jt;exports.getDefaultExportFromCjs=Jt;exports.getDiscountPercent=Mt;exports.getFirstImages=Kt;exports.getProductNameWithoutSku=Ut;exports.getSKUName=Bt;exports.getSkuInfos=Lt;exports.getThumbImage=qt;exports.getValidOffer=Wt;exports.navigateToSearchPage=Gr;exports.parseSearchState=Wr;exports.productHelpers=kr;exports.resizingImg=Gt;exports.responsive=ee;exports.setVideoPlay=Vt;exports.splitNameAndSizeFromFullName=Xe;exports.styles=gn;exports.updatedResizedImg=Ht;
|
package/index-DyKuIyRP.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),ln=require("@soma-vertical-web/core-components"),Ee=(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:Ee(0):Ee(t/100),Kt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},at=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Yt=(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()}},Qt=(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},Jt=(t,e)=>t.replace(e,"").trim(),cn=t=>t.replace(/\//g,""),Zt=({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])??at(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}},er=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,tr=(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)},rr=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],nr=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},or=(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},ar=({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},un=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},ir=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},fn=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:er,formatPriceToCurrency:Ee,freightParsePrice:qt,getAspectRatio:un,getColorAndSizeFromSkuName:Yt,getDiscountPercent:Kt,getFirstImages:ar,getProductNameWithoutSku:Jt,getSKUName:Qt,getSkuInfos:Zt,getThumbImage:rr,getValidOffer:tr,removeSlashes:cn,resizingImg:nr,setVideoPlay:ir,splitNameAndSizeFromFullName:at,updatedResizedImg:or},Symbol.toStringTag,{value:"Module"})),mt="fuzzy",St="operator",sn=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),pn=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},lr=(t,e)=>e?t==="category-1":!1,yn=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),dn=t=>t.type==="TEXT",vn=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),gn=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))}},hn=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),mn=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!lr(i.key,o)).map(i=>dn(i)?gn(i):hn(i))},Sn=(t,e)=>{const r=t.find(({key:o})=>o===mt)??null,n=t.find(({key:o})=>o===St)??null;r&&vn(r)&&e.append(mt,r.value),n&&yn(n)&&e.append(St,n.value)},_n=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),En=(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}=sn(n);return n==null?void 0:n.filter(a=>!lr(a.key,o))},An=({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:_n(r),term:o,base:o?"":t,page:a}},Pn=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},On=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)};var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Rn(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 ur={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}})(ur);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 it={};(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+"/")}})(it);var fr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(an,gt){for(var ht in gt)Object.defineProperty(an,ht,{enumerable:!0,get:gt[ht]})}e(t,{ACTION_SUFFIX:function(){return c},APP_DIR_ALIAS:function(){return q},CACHE_ONE_YEAR:function(){return w},DOT_NEXT_ALIAS:function(){return F},ESLINT_DEFAULT_DIRS:function(){return tn},GSP_NO_RETURNED_VALUE:function(){return Kr},GSSP_COMPONENT_MEMBER_ERROR:function(){return Jr},GSSP_NO_RETURNED_VALUE:function(){return Yr},INSTRUMENTATION_HOOK_FILENAME:function(){return M},MIDDLEWARE_FILENAME:function(){return T},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 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 Zr},PAGES_DIR_ALIAS:function(){return V},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return re},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return k},RSC_ACTION_ENCRYPTION_ALIAS:function(){return R},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return P},RSC_MOD_REF_PROXY_ALIAS:function(){return U},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 de},SERVER_PROPS_SSG_CONFLICT:function(){return ne},SERVER_RUNTIME:function(){return rn},SSG_FALLBACK_EXPORT_ERROR:function(){return en},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return $e},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Vr},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Qr},WEBPACK_LAYERS:function(){return nn},WEBPACK_RESOURCE_QUERIES:function(){return on}});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_",w=31536e3,T="middleware",j=`(?:src/)?${T}`,M="instrumentation",V="private-next-pages",F="private-dot-next",N="private-next-root-dir",q="private-next-app-dir",U="private-next-rsc-mod-ref-proxy",P="private-next-rsc-action-validate",C="private-next-rsc-server-reference",R="private-next-rsc-action-encryption",k="private-next-rsc-action-client-wrapper",re="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",de="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ne="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Vr="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",Kr="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Yr="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Qr="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Jr="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",Zr='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',en="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",tn=["app","pages","components","lib","src"],rn={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"},nn={..._,GROUP:{serverOnly:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.instrument],clientOnly:[_.serverSideRendering,_.appPagesBrowser],nonClientServerTarget:[_.middleware,_.api],app:[_.reactServerComponents,_.actionBrowser,_.appMetadataRoute,_.appRouteHandler,_.serverSideRendering,_.appPagesBrowser,_.shared,_.instrument]}},on={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(fr);var sr={},lt={};(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}})(lt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=lt,r=it;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)}})(sr);var pr={};(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}}})(pr);var yr={};(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}}}})(yr);const bn=(t="")=>t.charAt(0).toUpperCase()+t.slice(1),Et=(t,e=" ")=>!t||typeof t=="string"&&t.length===0?t:(Array.isArray(t)?t:t.split("-")).map(bn).join(e),In=({canonical:t,seo:e,slug:r})=>{const n=Array.isArray(r)?r.join(", "):r;return{id:0,Title:`${Array.isArray(r)?r.map(a=>Et(a)).join(","):Et(r)} - ${e.title}`,MetaTagDescription:e.description,name:n,hasChildren:!1,url:t,children:[]}},wn=({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]:[]}}),Tn=({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},Nn=t=>{t instanceof Error?(console.error(`[ERROR CATEGORY INFO]: ${t.message}`),console.error(t.stack)):console.error("[ERROR CATEGORY INFO]: Unknown error",t)},Cn=new Set(["brand","category","department","subcategory","collection","cluster"]),Dn=t=>typeof(t==null?void 0:t.pageType)=="string"&&Cn.has(t==null?void 0:t.pageType.toLowerCase()),xn=t=>({collection:t.Coleção,categoryId:t.categoryId,current_collection:t["Coleção Atual"],items:t.items}),dr=(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},[]),$n=Object.freeze(Object.defineProperty({__proto__:null,createEmptySeoCategory:In,createSeoCategory:wn,findCategory:Tn,formattedSimilars:dr,isCollectionPageType:Dn,notFindCategoryError:Nn,responseAdapter:xn},Symbol.toStringTag,{value:"Module"})),ae={"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"},Fn=({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:ae["responsive-mobile-flex"],children:O.jsx(r,{data:i??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:c??[]})})]}),t,O.jsx("div",{className:ae["responsive-mobile-flex"],children:O.jsx(r,{data:l??[]})}),O.jsx("div",{className:ae["responsive-desktop-flex"],children:O.jsx(r,{data:s??[]})}),O.jsx(ln.Utils.Divider,{})]})};var te=TypeError;const Ln={},Mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),Un=Rn(Mn);var ct=typeof Map=="function"&&Map.prototype,Fe=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ae=ct&&Fe&&typeof Fe.get=="function"?Fe.get:null,At=ct&&Map.prototype.forEach,ut=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pe=ut&&Le&&typeof Le.get=="function"?Le.get:null,Pt=ut&&Set.prototype.forEach,Bn=typeof WeakMap=="function"&&WeakMap.prototype,ie=Bn?WeakMap.prototype.has:null,Gn=typeof WeakSet=="function"&&WeakSet.prototype,le=Gn?WeakSet.prototype.has:null,Hn=typeof WeakRef=="function"&&WeakRef.prototype,Ot=Hn?WeakRef.prototype.deref:null,jn=Boolean.prototype.valueOf,kn=Object.prototype.toString,Xn=Function.prototype.toString,Wn=String.prototype.match,ft=String.prototype.slice,B=String.prototype.replace,zn=String.prototype.toUpperCase,Rt=String.prototype.toLowerCase,vr=RegExp.prototype.test,bt=Array.prototype.concat,$=Array.prototype.join,Vn=Array.prototype.slice,It=Math.floor,Ze=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Me=Object.getOwnPropertySymbols,et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Z=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ce=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Z||!0)?Symbol.toStringTag:null,gr=Object.prototype.propertyIsEnumerable,wt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Tt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||vr.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-It(-t):It(t);if(n!==t){var o=String(n),a=ft.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 tt=Un,Nt=tt.custom,Ct=Sr(Nt)?Nt:null,hr={__proto__:null,double:'"',single:"'"},qn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},we=function t(e,r,n,o){var a=r||{};if(L(a,"quoteStyle")&&!L(hr,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 Er(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Tt(e,c):c}if(typeof e=="bigint"){var s=String(e)+"n";return l?Tt(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 rt(e)?"[Array]":"[Object]";var p=po(a,n);if(typeof o>"u")o=[];else if(_r(o,e)>=0)return"[Circular]";function f(P,C,R){if(C&&(o=Vn.call(o),o.push(C)),R){var k={depth:a.depth};return L(a,"quoteStyle")&&(k.quoteStyle=a.quoteStyle),t(P,k,n+1,o)}return t(P,a,n+1,o)}if(typeof e=="function"&&!Dt(e)){var d=no(e),y=ve(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+$.call(y,", ")+" }":"")}if(Sr(e)){var S=Z?B.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):et.call(e);return typeof e=="object"&&!Z?oe(S):S}if(uo(e)){for(var A="<"+Rt.call(String(e.nodeName)),b=e.attributes||[],I=0;I<b.length;I++)A+=" "+b[I].name+"="+mr(Kn(b[I].value),"double",a);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+Rt.call(String(e.nodeName))+">",A}if(rt(e)){if(e.length===0)return"[]";var g=ve(e,f);return p&&!so(g)?"["+nt(g,p)+"]":"[ "+$.call(g,", ")+" ]"}if(Qn(e)){var w=ve(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!gr.call(e,"cause")?"{ ["+String(e)+"] "+$.call(bt.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(w,", ")+" }"}if(typeof e=="object"&&i){if(Ct&&typeof e[Ct]=="function"&&tt)return tt(e,{depth:u-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(oo(e)){var T=[];return At&&At.call(e,function(P,C){T.push(f(C,e,!0)+" => "+f(P,e))}),xt("Map",Ae.call(e),T,p)}if(lo(e)){var j=[];return Pt&&Pt.call(e,function(P){j.push(f(P,e))}),xt("Set",Pe.call(e),j,p)}if(ao(e))return Ue("WeakMap");if(co(e))return Ue("WeakSet");if(io(e))return Ue("WeakRef");if(Zn(e))return oe(f(Number(e)));if(to(e))return oe(f(Ze.call(e)));if(eo(e))return oe(jn.call(e));if(Jn(e))return oe(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof _t<"u"&&e===_t)return"{ [object globalThis] }";if(!Yn(e)&&!Dt(e)){var M=ve(e,f),V=wt?wt(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",N=!V&&ce&&Object(e)===e&&ce in e?ft.call(H(e),8,-1):F?"Object":"",q=V||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=q+(N||F?"["+$.call(bt.call([],N||[],F||[]),": ")+"] ":"");return M.length===0?U+"{}":p?U+"{"+nt(M,p)+"}":U+"{ "+$.call(M,", ")+" }"}return String(e)};function mr(t,e,r){var n=r.quoteStyle||e,o=hr[n];return o+t+o}function Kn(t){return B.call(String(t),/"/g,""")}function z(t){return!ce||!(typeof t=="object"&&(ce in t||typeof t[ce]<"u"))}function rt(t){return H(t)==="[object Array]"&&z(t)}function Yn(t){return H(t)==="[object Date]"&&z(t)}function Dt(t){return H(t)==="[object RegExp]"&&z(t)}function Qn(t){return H(t)==="[object Error]"&&z(t)}function Jn(t){return H(t)==="[object String]"&&z(t)}function Zn(t){return H(t)==="[object Number]"&&z(t)}function eo(t){return H(t)==="[object Boolean]"&&z(t)}function Sr(t){if(Z)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!et)return!1;try{return et.call(t),!0}catch{}return!1}function to(t){if(!t||typeof t!="object"||!Ze)return!1;try{return Ze.call(t),!0}catch{}return!1}var ro=Object.prototype.hasOwnProperty||function(t){return t in this};function L(t,e){return ro.call(t,e)}function H(t){return kn.call(t)}function no(t){if(t.name)return t.name;var e=Wn.call(Xn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function _r(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function oo(t){if(!Ae||!t||typeof t!="object")return!1;try{Ae.call(t);try{Pe.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function ao(t){if(!ie||!t||typeof t!="object")return!1;try{ie.call(t,ie);try{le.call(t,le)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function io(t){if(!Ot||!t||typeof t!="object")return!1;try{return Ot.call(t),!0}catch{}return!1}function lo(t){if(!Pe||!t||typeof t!="object")return!1;try{Pe.call(t);try{Ae.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function co(t){if(!le||!t||typeof t!="object")return!1;try{le.call(t,le);try{ie.call(t,ie)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function uo(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Er(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Er(ft.call(t,0,e.maxStringLength),e)+n}var o=qn[e.quoteStyle||"single"];o.lastIndex=0;var a=B.call(B.call(t,o,"\\$1"),/[\x00-\x1f]/g,fo);return mr(a,"single",e)}function fo(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":"")+zn.call(e.toString(16))}function oe(t){return"Object("+t+")"}function Ue(t){return t+" { ? }"}function xt(t,e,r,n){var o=n?nt(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function so(t){for(var e=0;e<t.length;e++)if(_r(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function po(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function nt(t,e){if(t.length===0)return"";var r=`
|
|
3
|
-
`+e.prev+e.base;return r+$.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function ve(t,e){var r=rt(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 Me=="function"?Me(t):[],i;if(Z){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||Z&&i["$"+c]instanceof Symbol||(vr.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Me=="function")for(var s=0;s<a.length;s++)gr.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var yo=we,vo=te,Te=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},go=function(t,e){if(t){var r=Te(t,e);return r&&r.value}},ho=function(t,e,r){var n=Te(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},mo=function(t,e){return t?!!Te(t,e):!1},So=function(t,e){if(t)return Te(t,e,!0)},_o=function(){var e,r={assert:function(n){if(!r.has(n))throw new vo("Side channel does not contain "+yo(n))},delete:function(n){var o=e&&e.next,a=So(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return go(e,n)},has:function(n){return mo(e,n)},set:function(n,o){e||(e={next:void 0}),ho(e,n,o)}};return r},Ar=Object,Eo=Error,Ao=EvalError,Po=RangeError,Oo=ReferenceError,Ro=SyntaxError,bo=URIError,Io=Math.abs,wo=Math.floor,To=Math.max,No=Math.min,Co=Math.pow,Do=Math.round,xo=Number.isNaN||function(e){return e!==e},$o=xo,Fo=function(e){return $o(e)||e===0?e:e<0?-1:1},Lo=Object.getOwnPropertyDescriptor,he=Lo;if(he)try{he([],"length")}catch{he=null}var Pr=he,me=Object.defineProperty||!1;if(me)try{me({},"a",{value:1})}catch{me=!1}var Mo=me,Be,$t;function Uo(){return $t||($t=1,Be=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}),Be}var Ge,Ft;function Bo(){if(Ft)return Ge;Ft=1;var t=typeof Symbol<"u"&&Symbol,e=Uo();return Ge=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ge}var He,Lt;function Or(){return Lt||(Lt=1,He=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),He}var je,Mt;function Rr(){if(Mt)return je;Mt=1;var t=Ar;return je=t.getPrototypeOf||null,je}var Go="Function.prototype.bind called on incompatible ",Ho=Object.prototype.toString,jo=Math.max,ko="[object Function]",Ut=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},Xo=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},Wo=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},zo=function(e){var r=this;if(typeof r!="function"||Ho.apply(r)!==ko)throw new TypeError(Go+r);for(var n=Xo(arguments,1),o,a=function(){if(this instanceof o){var u=r.apply(this,Ut(n,arguments));return Object(u)===u?u:this}return r.apply(e,Ut(n,arguments))},i=jo(0,r.length-n.length),l=[],c=0;c<i;c++)l[c]="$"+c;if(o=Function("binder","return function ("+Wo(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},Vo=zo,Ne=Function.prototype.bind||Vo,st=Function.prototype.call,ke,Bt;function br(){return Bt||(Bt=1,ke=Function.prototype.apply),ke}var qo=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ko=Ne,Yo=br(),Qo=st,Jo=qo,Zo=Jo||Ko.call(Qo,Yo),ea=Ne,ta=te,ra=st,na=Zo,Ir=function(e){if(e.length<1||typeof e[0]!="function")throw new ta("a function is required");return na(ea,ra,e)},Xe,Gt;function oa(){if(Gt)return Xe;Gt=1;var t=Ir,e=Pr,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&e&&e(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return Xe=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(l){return a(l==null?l:o(l))}:!1,Xe}var We,Ht;function aa(){if(Ht)return We;Ht=1;var t=Or(),e=Rr(),r=oa();return We=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,We}var ze,jt;function ia(){if(jt)return ze;jt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Ne;return ze=r.call(t,e),ze}var v,la=Ar,ca=Eo,ua=Ao,fa=Po,sa=Oo,ee=Ro,J=te,pa=bo,ya=Io,da=wo,va=To,ga=No,ha=Co,ma=Do,Sa=Fo,wr=Function,Ve=function(t){try{return wr('"use strict"; return ('+t+").constructor;")()}catch{}},fe=Pr,_a=Mo,qe=function(){throw new J},Ea=fe?function(){try{return arguments.callee,qe}catch{try{return fe(arguments,"callee").get}catch{return qe}}}():qe,K=Bo()(),E=aa(),Aa=Rr(),Pa=Or(),Tr=br(),se=st,Q={},Oa=typeof Uint8Array>"u"||!E?v:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&E?E([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%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%":ca,"%eval%":eval,"%EvalError%":ua,"%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%":wr,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&E?E(E([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!E?v:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":la,"%Object.getOwnPropertyDescriptor%":fe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":fa,"%ReferenceError%":sa,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!E?v:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&E?E(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":ee,"%ThrowTypeError%":Ea,"%TypedArray%":Oa,"%TypeError%":J,"%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%":pa,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":se,"%Function.prototype.apply%":Tr,"%Object.defineProperty%":_a,"%Object.getPrototypeOf%":Aa,"%Math.abs%":ya,"%Math.floor%":da,"%Math.max%":va,"%Math.min%":ga,"%Math.pow%":ha,"%Math.round%":ma,"%Math.sign%":Sa,"%Reflect.getPrototypeOf%":Pa};if(E)try{null.error}catch(t){var Ra=E(E(t));W["%Error.prototype%"]=Ra}var ba=function t(e){var r;if(e==="%AsyncFunction%")r=Ve("async function () {}");else if(e==="%GeneratorFunction%")r=Ve("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ve("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 W[e]=r,r},kt={__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"]},pe=Ne,Oe=ia(),Ia=pe.call(se,Array.prototype.concat),wa=pe.call(Tr,Array.prototype.splice),Xt=pe.call(se,String.prototype.replace),Re=pe.call(se,String.prototype.slice),Ta=pe.call(se,RegExp.prototype.exec),Na=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ca=/\\(\\)?/g,Da=function(e){var r=Re(e,0,1),n=Re(e,-1);if(r==="%"&&n!=="%")throw new ee("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ee("invalid intrinsic syntax, expected opening `%`");var o=[];return Xt(e,Na,function(a,i,l,c){o[o.length]=l?Xt(c,Ca,"$1"):i||a}),o},xa=function(e,r){var n=e,o;if(Oe(kt,n)&&(o=kt[n],n="%"+o[0]+"%"),Oe(W,n)){var a=W[n];if(a===Q&&(a=ba(n)),typeof a>"u"&&!r)throw new J("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ee("intrinsic "+e+" does not exist!")},pt=function(e,r){if(typeof e!="string"||e.length===0)throw new J("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new J('"allowMissing" argument must be a boolean');if(Ta(/^%?[^%]*%?$/,e)===null)throw new ee("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Da(e),o=n.length>0?n[0]:"",a=xa("%"+o+"%",r),i=a.name,l=a.value,c=!1,s=a.alias;s&&(o=s[0],wa(n,Ia([0,1],s)));for(var u=1,p=!0;u<n.length;u+=1){var f=n[u],d=Re(f,0,1),y=Re(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new ee("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),o+="."+f,i="%"+o+"%",Oe(W,i))l=W[i];else if(l!=null){if(!(f in l)){if(!r)throw new J("base intrinsic for "+e+" exists, but the property is not available.");return}if(fe&&u+1>=n.length){var S=fe(l,f);p=!!S,p&&"get"in S&&!("originalValue"in S.get)?l=S.get:l=l[f]}else p=Oe(l,f),l=l[f];p&&!c&&(W[i]=l)}}return l},Nr=pt,Cr=Ir,$a=Cr([Nr("%String.prototype.indexOf%")]),Dr=function(e,r){var n=Nr(e,!!r);return typeof n=="function"&&$a(e,".prototype.")>-1?Cr([n]):n},Fa=pt,ye=Dr,La=we,Ma=te,Wt=Fa("%Map%",!0),Ua=ye("Map.prototype.get",!0),Ba=ye("Map.prototype.set",!0),Ga=ye("Map.prototype.has",!0),Ha=ye("Map.prototype.delete",!0),ja=ye("Map.prototype.size",!0),xr=!!Wt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ma("Side channel does not contain "+La(n))},delete:function(n){if(e){var o=Ha(e,n);return ja(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ua(e,n)},has:function(n){return e?Ga(e,n):!1},set:function(n,o){e||(e=new Wt),Ba(e,n,o)}};return r},ka=pt,Ce=Dr,Xa=we,ge=xr,Wa=te,Y=ka("%WeakMap%",!0),za=Ce("WeakMap.prototype.get",!0),Va=Ce("WeakMap.prototype.set",!0),qa=Ce("WeakMap.prototype.has",!0),Ka=Ce("WeakMap.prototype.delete",!0),Ya=Y?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Wa("Side channel does not contain "+Xa(o))},delete:function(o){if(Y&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ka(e,o)}else if(ge&&r)return r.delete(o);return!1},get:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?za(e,o):r&&r.get(o)},has:function(o){return Y&&o&&(typeof o=="object"||typeof o=="function")&&e?qa(e,o):!!r&&r.has(o)},set:function(o,a){Y&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Y),Va(e,o,a)):ge&&(r||(r=ge()),r.set(o,a))}};return n}:ge,Qa=te,Ja=we,Za=_o,ei=xr,ti=Ya,ri=ti||ei||Za,$r=function(){var e,r={assert:function(n){if(!r.has(n))throw new Qa("Side channel does not contain "+Ja(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=ri()),e.set(n,o)}};return r},ni=String.prototype.replace,oi=/%20/g,Ke={RFC1738:"RFC1738",RFC3986:"RFC3986"},yt={default:Ke.RFC3986,formatters:{RFC1738:function(t){return ni.call(t,oi,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ke.RFC1738,RFC3986:Ke.RFC3986},ai=yt,ii=$r,Ye=Object.prototype.hasOwnProperty,X=Array.isArray,De=ii(),Fr=function(e,r){return De.set(e,r),e},be=function(e){return De.has(e)},ot=function(e){return De.get(e)},Lr=function(e,r){De.set(e,r)},D=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),li=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}}},dt=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},ci=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(be(e)){var o=ot(e)+1;e[o]=r,Lr(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!Ye.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(be(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 Fr(i,ot(r)+1)}return[e].concat(r)}var s=e;return X(e)&&!X(r)&&(s=dt(e,n)),X(e)&&X(r)?(r.forEach(function(u,p){if(Ye.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 Ye.call(u,p)?u[p]=t(u[p],f,n):u[p]=f,u},s)},ui=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},fi=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}},Qe=1024,si=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+=Qe){for(var s=i.length>=Qe?i.slice(c,c+Qe):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===ai.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},pi=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 li(r),e},yi=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},di=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},vi=function(e,r,n,o){if(be(e)){var a=ot(e)+1;return e[a]=r,Lr(e,a),e}var i=[].concat(e,r);return i.length>n?Fr(dt(i,{plainObjects:o}),i.length-1):i},gi=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)},Mr={arrayToObject:dt,assign:ui,combine:vi,compact:pi,decode:fi,encode:si,isBuffer:di,isOverflow:be,isRegExp:yi,maybeMap:gi,merge:ci},Ur=$r,Se=Mr,ue=yt,hi=Object.prototype.hasOwnProperty,Br={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},x=Array.isArray,mi=Array.prototype.push,Gr=function(t,e){mi.apply(t,x(e)?e:[e])},Si=Date.prototype.toISOString,zt=ue.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Se.encode,encodeValuesOnly:!1,filter:void 0,format:zt,formatter:ue.formatters[zt],indices:!1,serializeDate:function(e){return Si.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"},Je={},Ei=function t(e,r,n,o,a,i,l,c,s,u,p,f,d,y,S,A,b,I){for(var g=e,w=I,T=0,j=!1;(w=w.get(Je))!==void 0&&!j;){var M=w.get(e);if(T+=1,typeof M<"u"){if(M===T)throw new RangeError("Cyclic object value");j=!0}typeof w.get(Je)>"u"&&(T=0)}if(typeof u=="function"?g=u(r,g):g instanceof Date?g=d(g):n==="comma"&&x(g)&&(g=Se.maybeMap(g,function(ne){return ne instanceof Date?d(ne):ne})),g===null){if(i)return s&&!A?s(r,m.encoder,b,"key",y):r;g=""}if(_i(g)||Se.isBuffer(g)){if(s){var V=A?r:s(r,m.encoder,b,"key",y);return[S(V)+"="+S(s(g,m.encoder,b,"value",y))]}return[S(r)+"="+S(String(g))]}var F=[];if(typeof g>"u")return F;var N;if(n==="comma"&&x(g))A&&s&&(g=Se.maybeMap(g,s)),N=[{value:g.length>0?g.join(",")||null:void 0}];else if(x(u))N=u;else{var q=Object.keys(g);N=p?q.sort(p):q}var U=c?String(r).replace(/\./g,"%2E"):String(r),P=o&&x(g)&&g.length===1?U+"[]":U;if(a&&x(g)&&g.length===0)return P+"[]";for(var C=0;C<N.length;++C){var R=N[C],k=typeof R=="object"&&R&&typeof R.value<"u"?R.value:g[R];if(!(l&&k===null)){var re=f&&c?String(R).replace(/\./g,"%2E"):String(R),$e=x(g)?typeof n=="function"?n(P,re):P:P+(f?"."+re:"["+re+"]");I.set(e,T);var de=Ur();de.set(Je,I),Gr(F,t(k,$e,n,o,a,i,l,c,n==="comma"&&A&&x(g)?null:s,u,p,f,d,y,S,A,b,de))}}return F},Ai=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=ue.default;if(typeof e.format<"u"){if(!hi.call(ue.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ue.formatters[n],a=m.filter;(typeof e.filter=="function"||x(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Br?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=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}},Pi=function(t,e){var r=t,n=Ai(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):x(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var l=Br[n.arrayFormat],c=l==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=Ur(),u=0;u<o.length;++u){var p=o[u],f=r[p];n.skipNulls&&f===null||Gr(i,Ei(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:""},G=Mr,_e=Object.prototype.hasOwnProperty,Vt=Array.isArray,h={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:G.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))})},Hr=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},Ri="utf8=%26%2310003%3B",bi="utf8=%E2%9C%93",Ii=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]===bi?s="utf-8":i[c]===Ri&&(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=G.maybeMap(Hr(u.slice(f+1),r,Vt(n[d])?n[d].length:0),function(A){return r.decoder(A,h.decoder,s,"value")}))),y&&r.interpretNumericEntities&&s==="iso-8859-1"&&(y=Oi(String(y))),u.indexOf("[]=")>-1&&(y=Vt(y)?[y]:y),d!==null){var S=_e.call(n,d);S&&r.duplicates==="combine"?n[d]=G.combine(n[d],y,r.arrayLimit,r.plainObjects):(!S||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:Hr(e,r,o),l=t.length-1;l>=0;--l){var c,s=t[l];if(s==="[]"&&r.parseArrays)G.isOverflow(i)?c=i:c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:G.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},Ti=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&_e.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&&_e.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&&_e.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},Ni=function(e,r,n,o){if(e){var a=Ti(e,n);if(a)return wi(a,r,n,o)}},Ci=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"||G.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=Ci(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Ii(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var l=a[i],c=Ni(l,n[l],r,typeof t=="string");o=G.merge(o,c,r)}return r.allowSparse===!0?o:G.compact(o)},xi=Pi,$i=Di,Fi=yt,Li={formats:Fi,parse:$i,stringify:xi};const Mi=cr(Li);async function xe(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 vt(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 jr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function kr(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(vt(`${t}${i}`,r)),c=await xe(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 Ui=Object.freeze(Object.defineProperty({__proto__:null,createUrl:vt,fetchCMS:xe,mergePreviewDocument:kr,spreadStrapiData:jr},Symbol.toStringTag,{value:"Module"}));async function Xr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await xe(t,e,n);if(!o.ok)return console.log(`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`),{status:404,data:[],error:String(o.status)};const{data:a}=await o.json();return a?{status:200,data:r?jr(a):a}:{status:404,data:[],error:"No data found"}}async function Wr(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 xe(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 kr(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:Xr,vtexCMSData:Wr},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 zr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(vt(t,e));return n!=="vtex"?Xr(o,e,r):Wr(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:zr,getCMSContentType:Gi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=Fn;exports.addLocale=sr;exports.addPathPrefix=lt;exports.addSearchParamsFacets=Sn;exports.catalogHelpers=$n;exports.cms=Hi;exports.cmsHelpers=Bi;exports.cmsUtils=Ui;exports.constants=fr;exports.convertSearchParams=Pn;exports.detectDomainLocale=yr;exports.disableSKU=er;exports.fetchContentType=zr;exports.filterNonCategorySelected=pn;exports.filterNonRootFacets=En;exports.formatPriceToCurrency=Ee;exports.formattedFacets=mn;exports.formattedSimilars=dr;exports.freightParsePrice=qt;exports.getColorAndSizeFromSkuName=Yt;exports.getDefaultExportFromCjs=cr;exports.getDiscountPercent=Kt;exports.getFirstImages=ar;exports.getProductNameWithoutSku=Jt;exports.getSKUName=Qt;exports.getSkuInfos=Zt;exports.getThumbImage=rr;exports.getValidOffer=tr;exports.navigateToSearchPage=On;exports.normalizeLocalePath=pr;exports.parsePath=Ie;exports.parseSearchState=An;exports.pathHasPrefix=it;exports.productHelpers=fn;exports.removeTrailingSlash=ur;exports.resizingImg=nr;exports.responsive=ae;exports.setVideoPlay=ir;exports.splitNameAndSizeFromFullName=at;exports.updatedResizedImg=or;
|
package/index-dtcYsqh-.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),jr=require("@soma-vertical-web/core-components"),ge=(t,e=!0)=>Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:e?2:0}).format(t),Ut=({valueInCents:t,hasFree:e,freeTaxMessage:r})=>t===0?e?r:ge(0):ge(t/100),zt=(t,e)=>{const n=(t-e)*100/t;return Math.floor(n)},tt=(t,e)=>{const[r,n]=t.split(e);return{name:r.trim(),size:n?n.trim():""}},Wt=(t,e)=>{if(!t)return{};const[r,n]=t.split(e);return{color:r==null?void 0:r.trim(),size:n==null?void 0:n.trim()}},qt=(t,e="tamanho")=>{if(t.additionalProperty){const[r]=t.additionalProperty;return r!=null&&r.name?r.name.toLocaleLowerCase()===e?r.value:t.name:""}return t.name},Gt=(t,e)=>t.replace(e,"").trim(),Br=t=>t.replace(/\//g,""),Ht=({items:t,NAME_SPLIT_SYMBOL:e})=>{const r={price:0,listPrice:0,installments:{count:0,value:0}},n=(i,f)=>{var u;f&&(f.sellerId=i.sellerId,f.sellerName=i.sellerName,f.available=!0,f.isSellerDefault=i.sellerDefault);const{Price:c,ListPrice:s,PaymentOptions:{installmentOptions:l}}=i.commertialOffer;r.price=c,r.listPrice=s;const p=(u=l==null?void 0:l[0])==null?void 0:u.installments;if(p){const{count:v,value:d}=p[p.length-1];r.installments={count:v,value:d/100}}};let o=!0;const a=t.reduce((i,f)=>{var l;const c={name:f.name,sku:f.itemId,value:((l=f.Tamanho)==null?void 0:l[0])??tt(f.nameComplete??f.name,e).size,available:!1,sellerId:"",sellerName:"",isSellerDefault:!1},s=f.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}},Kt=t=>t?!t.offers.offers.find(({quantity:e=0})=>e>0):!1,Vt=(t,e)=>{const r=t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0&&n.seller.identifier===e);return r||t.find(n=>n.availability.includes("InStock")&&n.quantity&&n.listPrice>0)},Qt=({images:t,TEXTURE_IMAGE:e})=>t.find(r=>e.includes(r.imageLabel))??t[0],Jt=(t,e)=>{const r=/\/ids\/(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Yt=(t,e)=>{const r=/\/ids\/(\d+)-(\d+)-(\d+)\//,n=t.match(r);return n?t.replace(`/${n[1]}-${n[2]}-${n[3]}/`,`/${n[1]}-${e.width}-${e.height}/`):t},Xt=({images:t,label:e})=>{const r=t.filter(n=>n.keywords===e.first||n.keywords===e.second||n.alternateName===e.first||n.alternateName===e.second);return r.length===0?t.slice(0,2):r},Lr=t=>{const[e,r]=t.split("/").map(Number);if(Number.isNaN(e)||Number.isNaN(r))throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");return r/e},Zt=(t,e,r)=>{e&&(t?(e.getAttribute("src")||(e.src=r??""),e.play()):e.pause())},Ur=Object.freeze(Object.defineProperty({__proto__:null,disableSKU:Kt,formatPriceToCurrency:ge,freightParsePrice:Ut,getAspectRatio:Lr,getColorAndSizeFromSkuName:Wt,getDiscountPercent:zt,getFirstImages:Xt,getProductNameWithoutSku:Gt,getSKUName:qt,getSkuInfos:Ht,getThumbImage:Qt,getValidOffer:Vt,removeSlashes:Br,resizingImg:Jt,setVideoPlay:Zt,splitNameAndSizeFromFullName:tt,updatedResizedImg:Yt},Symbol.toStringTag,{value:"Module"})),pt="fuzzy",yt="operator",zr=t=>({isDepartment:t!=null&&t.length?t[0].key==="category-1":!1}),er=(t,e)=>{const r=decodeURIComponent(e??"").slice(1).split("/");return t.map(n=>{if(n.key==="category-2"&&n.__typename==="FacetBoolean"){const o=n.values;return{...n,values:o.filter(a=>!r.find(i=>i.toLowerCase()===a.value||i.toLowerCase()===a.name.toLowerCase()))}}return n})},tr=(t,e)=>e?t==="category-1":!1,Wr=t=>t.key==="operator"&&(t.value==="and"||t.value==="or"),qr=t=>t.type==="TEXT",Gr=t=>t.key==="fuzzy"&&(t.value==="0"||t.value==="1"||t.value==="auto"),Hr=t=>{const{key:e,name:r,values:n}=t;return{__typename:"FacetBoolean",key:e,label:r,values:n.slice().sort((o,a)=>o.name.localeCompare(a.name))}},Kr=({key:t,values:e})=>({__typename:"FacetRange",key:t,values:e}),Vr=(t,e,r)=>{if(!(t instanceof Object)||!("facets"in t))return[];const{facets:n=[]}=t,o=e!=null&&e.length?e[0].key==="category-1":!1;return n.filter(i=>!r||!tr(i.key,o)).map(i=>qr(i)?Hr(i):Kr(i))},Qr=(t,e)=>{const r=t.find(({key:o})=>o===pt)??null,n=t.find(({key:o})=>o===yt)??null;r&&Gr(r)&&e.append(pt,r.value),n&&Wr(n)&&e.append(yt,n.value)},rt=t=>t.map(e=>{const[r,n]=e.split("/");return{key:r,value:n}}),rr=(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}=zr(n);return n==null?void 0:n.filter(a=>!tr(a.key,o))},Jr=t=>t.getAll("facets").flatMap(e=>{const[r,...n]=e.split("/");return!r||n.length===0?[]:[{key:r,value:n.join("/")}]}),Yr=({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:rt(r),term:o,base:o?"":t,page:a}},Xr=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},Zr=(t,e,r=24,n=1,o)=>{const a=`/search?query=${e??""}&count=${r}&page=${n}${o?`&sort=${o.replace("_",":")}`:""}`;t.push(a)},nr={parseSearchState:Yr,convertSearchParams:Xr,filterNonRootFacets:rr,selectedFacets:rt,filterNonCategorySelected:er},en=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"}));var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}const ee={"responsive-mobile-flex":"_responsive-mobile-flex_1e0ai_1","responsive-desktop-flex":"_responsive-desktop-flex_1e0ai_15","responsive-mobile-block":"_responsive-mobile-block_1e0ai_30","responsive-desktop-block":"_responsive-desktop-block_1e0ai_41"},rn="_header_9xxjk_57",nn="_actions_9xxjk_131",on="_breadcrumb_9xxjk_142",an="_credits_9xxjk_157",ln="_pdplinks_9xxjk_185",cn="_similars_9xxjk_212",fn="_sizes_9xxjk_251",un="_measurementTable_9xxjk_267",sn="_measurementHead_9xxjk_280",pn="_measurementRows_9xxjk_285",yn="_measurementRowsTitle_9xxjk_302",dn="_measurementRowsText_9xxjk_314",vn="_measurementImage_9xxjk_325",mn="_measurementImageContainer_9xxjk_328",gn="_measurementContent_9xxjk_337",hn="_measurementTitle_9xxjk_341",_n="_measurementClose_9xxjk_352",bn="_productref_9xxjk_417",Sn="_slideOut_9xxjk_1",wn="_slideIn_9xxjk_1",xn="_content_9xxjk_397",On="_pdp_9xxjk_185",An="_divider_9xxjk_575",Pn={"bottom-navigation":"_bottom-navigation_9xxjk_1","bottom-navigation__credits-modifier":"_bottom-navigation__credits-modifier_9xxjk_18","bottom-navigation__header":"_bottom-navigation__header_9xxjk_21","bottom-navigation__header-content":"_bottom-navigation__header-content_9xxjk_26","golden-tag-content":"_golden-tag-content_9xxjk_45","bottom-navigation__price-and-promo":"_bottom-navigation__price-and-promo_9xxjk_48",header:rn,"golden-tag":"_golden-tag_9xxjk_45","golden-tag-video":"_golden-tag-video_9xxjk_86","golden-tag-content-text":"_golden-tag-content-text_9xxjk_105",actions:nn,"add-to-cart":"_add-to-cart_9xxjk_138",breadcrumb:on,"breadcrumb--active":"_breadcrumb--active_9xxjk_147",credits:an,"gallery-carousel-modifier":"_gallery-carousel-modifier_9xxjk_162",pdplinks:ln,"links-wrapper":"_links-wrapper_9xxjk_195",similars:cn,"similars-info":"_similars-info_9xxjk_224","toggle-style-modifier":"_toggle-style-modifier_9xxjk_233","accessibility-info":"_accessibility-info_9xxjk_237",sizes:fn,"price-wrapper":"_price-wrapper_9xxjk_263",measurementTable:un,measurementHead:sn,measurementRows:pn,measurementRowsTitle:yn,measurementRowsText:dn,measurementImage:vn,measurementImageContainer:mn,measurementContent:gn,measurementTitle:hn,measurementClose:_n,"tabs-root-modifier":"_tabs-root-modifier_9xxjk_358","tabs-list-modifier":"_tabs-list-modifier_9xxjk_376","tabs-item-modifier":"_tabs-item-modifier_9xxjk_393","content-wrapper":"_content-wrapper_9xxjk_397",productref:bn,"tabs-panel":"_tabs-panel_9xxjk_428","tabs-panel-exit":"_tabs-panel-exit_9xxjk_434",slideOut:Sn,"tabs-panel-enter":"_tabs-panel-enter_9xxjk_438",slideIn:wn,content:xn,pdp:On,"pdp-main":"_pdp-main_9xxjk_496","pdp-main__gallery-wrapper":"_pdp-main__gallery-wrapper_9xxjk_501","pdp-main__info":"_pdp-main__info_9xxjk_518","pdp-main__info-main-content":"_pdp-main__info-main-content_9xxjk_533","pdp-main__info-subsection":"_pdp-main__info-subsection_9xxjk_533","subsection-product-info":"_subsection-product-info_9xxjk_544","subsection-similars":"_subsection-similars_9xxjk_547","subsection-sizes":"_subsection-sizes_9xxjk_550","subsection-actions":"_subsection-actions_9xxjk_553","pdp-main__info-secondary-content":"_pdp-main__info-secondary-content_9xxjk_557","sections-title":"_sections-title_9xxjk_563",divider:An,"breadcrumbs-desktop":"_breadcrumbs-desktop_9xxjk_580","breadcrumbs-mobile":"_breadcrumbs-mobile_9xxjk_589"},En=({children:t,data:e,SectionZone:r,className:n})=>{var l,p;const o=((l=e==null?void 0:e.filter(u=>{var v,d;return((d=(v=u.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="mobile"})[0])==null?void 0:l.sections)||[],a=((p=e==null?void 0:e.filter(u=>{var v,d;return((d=(v=u.config)==null?void 0:v.responsive)==null?void 0:d.deviceType)==="desktop"})[0])==null?void 0:p.sections)||[],i=o.slice(0,1),f=o.slice(1,o.length),c=a.slice(0,1),s=a.slice(1,a.length);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:n,children:[w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:i??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:c??[]})})]}),t,w.jsx("div",{className:ee["responsive-mobile-flex"],children:w.jsx(r,{data:f??[]})}),w.jsx("div",{className:ee["responsive-desktop-flex"],children:w.jsx(r,{data:s??[]})}),w.jsx(jr.Utils.Divider,{})]})};var J=TypeError;const $n={},In=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),Rn=tn(In);var nt=typeof Map=="function"&&Map.prototype,ke=Object.getOwnPropertyDescriptor&&nt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,he=nt&&ke&&typeof ke.get=="function"?ke.get:null,vt=nt&&Map.prototype.forEach,ot=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&ot?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_e=ot&&Fe&&typeof Fe.get=="function"?Fe.get:null,mt=ot&&Set.prototype.forEach,kn=typeof WeakMap=="function"&&WeakMap.prototype,te=kn?WeakMap.prototype.has:null,Fn=typeof WeakSet=="function"&&WeakSet.prototype,re=Fn?WeakSet.prototype.has:null,Nn=typeof WeakRef=="function"&&WeakRef.prototype,gt=Nn?WeakRef.prototype.deref:null,Cn=Boolean.prototype.valueOf,Tn=Object.prototype.toString,Dn=Function.prototype.toString,Mn=String.prototype.match,at=String.prototype.slice,C=String.prototype.replace,jn=String.prototype.toUpperCase,ht=String.prototype.toLowerCase,ar=RegExp.prototype.test,_t=Array.prototype.concat,P=Array.prototype.join,Bn=Array.prototype.slice,bt=Math.floor,Qe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ne=Object.getOwnPropertySymbols,Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,ir=Object.prototype.propertyIsEnumerable,St=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function wt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ar.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-bt(-t):bt(t);if(n!==t){var o=String(n),a=at.call(e,o.length+1);return C.call(o,r,"$&_")+"."+C.call(C.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(e,r,"$&_")}var Ye=Rn,xt=Ye.custom,Ot=fr(xt)?xt:null,lr={__proto__:null,double:'"',single:"'"},Ln={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},xe=function t(e,r,n,o){var a=r||{};if($(a,"quoteStyle")&&!$(lr,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=$(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return sr(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return f?wt(e,c):c}if(typeof e=="bigint"){var s=String(e)+"n";return f?wt(e,s):s}var l=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return Xe(e)?"[Array]":"[Object]";var p=oo(a,n);if(typeof o>"u")o=[];else if(ur(o,e)>=0)return"[Circular]";function u(x,N,E){if(N&&(o=Bn.call(o),o.push(N)),E){var X={depth:a.depth};return $(a,"quoteStyle")&&(X.quoteStyle=a.quoteStyle),t(x,X,n+1,o)}return t(x,a,n+1,o)}if(typeof e=="function"&&!At(e)){var v=Qn(e),d=se(e,u);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(d.length>0?" { "+P.call(d,", ")+" }":"")}if(fr(e)){var b=V?C.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Je.call(e);return typeof e=="object"&&!V?Z(b):b}if(to(e)){for(var S="<"+ht.call(String(e.nodeName)),I=e.attributes||[],R=0;R<I.length;R++)S+=" "+I[R].name+"="+cr(Un(I[R].value),"double",a);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+ht.call(String(e.nodeName))+">",S}if(Xe(e)){if(e.length===0)return"[]";var m=se(e,u);return p&&!no(m)?"["+Ze(m,p)+"]":"[ "+P.call(m,", ")+" ]"}if(Wn(e)){var k=se(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!ir.call(e,"cause")?"{ ["+String(e)+"] "+P.call(_t.call("[cause]: "+u(e.cause),k),", ")+" }":k.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(k,", ")+" }"}if(typeof e=="object"&&i){if(Ot&&typeof e[Ot]=="function"&&Ye)return Ye(e,{depth:l-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jn(e)){var M=[];return vt&&vt.call(e,function(x,N){M.push(u(N,e,!0)+" => "+u(x,e))}),Pt("Map",he.call(e),M,p)}if(Zn(e)){var Y=[];return mt&&mt.call(e,function(x){Y.push(u(x,e))}),Pt("Set",_e.call(e),Y,p)}if(Yn(e))return Ce("WeakMap");if(eo(e))return Ce("WeakSet");if(Xn(e))return Ce("WeakRef");if(Gn(e))return Z(u(Number(e)));if(Kn(e))return Z(u(Qe.call(e)));if(Hn(e))return Z(Cn.call(e));if(qn(e))return Z(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof dt<"u"&&e===dt)return"{ [object globalThis] }";if(!zn(e)&&!At(e)){var z=se(e,u),fe=St?St(e)===Object.prototype:e instanceof Object||e.constructor===Object,j=e instanceof Object?"":"null prototype",F=!fe&&ne&&Object(e)===e&&ne in e?at.call(D(e),8,-1):j?"Object":"",ue=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=ue+(F||j?"["+P.call(_t.call([],F||[],j||[]),": ")+"] ":"");return z.length===0?W+"{}":p?W+"{"+Ze(z,p)+"}":W+"{ "+P.call(z,", ")+" }"}return String(e)};function cr(t,e,r){var n=r.quoteStyle||e,o=lr[n];return o+t+o}function Un(t){return C.call(String(t),/"/g,""")}function U(t){return!ne||!(typeof t=="object"&&(ne in t||typeof t[ne]<"u"))}function Xe(t){return D(t)==="[object Array]"&&U(t)}function zn(t){return D(t)==="[object Date]"&&U(t)}function At(t){return D(t)==="[object RegExp]"&&U(t)}function Wn(t){return D(t)==="[object Error]"&&U(t)}function qn(t){return D(t)==="[object String]"&&U(t)}function Gn(t){return D(t)==="[object Number]"&&U(t)}function Hn(t){return D(t)==="[object Boolean]"&&U(t)}function fr(t){if(V)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Je)return!1;try{return Je.call(t),!0}catch{}return!1}function Kn(t){if(!t||typeof t!="object"||!Qe)return!1;try{return Qe.call(t),!0}catch{}return!1}var Vn=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return Vn.call(t,e)}function D(t){return Tn.call(t)}function Qn(t){if(t.name)return t.name;var e=Mn.call(Dn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function ur(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 Jn(t){if(!he||!t||typeof t!="object")return!1;try{he.call(t);try{_e.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Yn(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{re.call(t,re)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Xn(t){if(!gt||!t||typeof t!="object")return!1;try{return gt.call(t),!0}catch{}return!1}function Zn(t){if(!_e||!t||typeof t!="object")return!1;try{_e.call(t);try{he.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function eo(t){if(!re||!t||typeof t!="object")return!1;try{re.call(t,re);try{te.call(t,te)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function to(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function sr(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return sr(at.call(t,0,e.maxStringLength),e)+n}var o=Ln[e.quoteStyle||"single"];o.lastIndex=0;var a=C.call(C.call(t,o,"\\$1"),/[\x00-\x1f]/g,ro);return cr(a,"single",e)}function ro(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":"")+jn.call(e.toString(16))}function Z(t){return"Object("+t+")"}function Ce(t){return t+" { ? }"}function Pt(t,e,r,n){var o=n?Ze(r,n):P.call(r,", ");return t+" ("+e+") {"+o+"}"}function no(t){for(var e=0;e<t.length;e++)if(ur(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function oo(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=P.call(Array(t.indent+1)," ");else return null;return{base:r,prev:P.call(Array(e+1),r)}}function Ze(t,e){if(t.length===0)return"";var r=`
|
|
3
|
-
`+e.prev+e.base;return r+P.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function se(t,e){var r=Xe(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var a=typeof Ne=="function"?Ne(t):[],i;if(V){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var c in t)$(t,c)&&(r&&String(Number(c))===c&&c<t.length||V&&i["$"+c]instanceof Symbol||(ar.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Ne=="function")for(var s=0;s<a.length;s++)ir.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}var ao=xe,io=J,Oe=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},lo=function(t,e){if(t){var r=Oe(t,e);return r&&r.value}},co=function(t,e,r){var n=Oe(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},fo=function(t,e){return t?!!Oe(t,e):!1},uo=function(t,e){if(t)return Oe(t,e,!0)},so=function(){var e,r={assert:function(n){if(!r.has(n))throw new io("Side channel does not contain "+ao(n))},delete:function(n){var o=e&&e.next,a=uo(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return lo(e,n)},has:function(n){return fo(e,n)},set:function(n,o){e||(e={next:void 0}),co(e,n,o)}};return r},pr=Object,po=Error,yo=EvalError,vo=RangeError,mo=ReferenceError,go=SyntaxError,ho=URIError,_o=Math.abs,bo=Math.floor,So=Math.max,wo=Math.min,xo=Math.pow,Oo=Math.round,Ao=Number.isNaN||function(e){return e!==e},Po=Ao,Eo=function(e){return Po(e)||e===0?e:e<0?-1:1},$o=Object.getOwnPropertyDescriptor,ye=$o;if(ye)try{ye([],"length")}catch{ye=null}var yr=ye,de=Object.defineProperty||!1;if(de)try{de({},"a",{value:1})}catch{de=!1}var Io=de,Te,Et;function Ro(){return Et||(Et=1,Te=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,r);if(f.value!==o||f.enumerable!==!0)return!1}return!0}),Te}var De,$t;function ko(){if($t)return De;$t=1;var t=typeof Symbol<"u"&&Symbol,e=Ro();return De=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},De}var Me,It;function dr(){return It||(It=1,Me=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Me}var je,Rt;function vr(){if(Rt)return je;Rt=1;var t=pr;return je=t.getPrototypeOf||null,je}var Fo="Function.prototype.bind called on incompatible ",No=Object.prototype.toString,Co=Math.max,To="[object Function]",kt=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},Do=function(e,r){for(var n=[],o=r,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},Mo=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},jo=function(e){var r=this;if(typeof r!="function"||No.apply(r)!==To)throw new TypeError(Fo+r);for(var n=Do(arguments,1),o,a=function(){if(this instanceof o){var l=r.apply(this,kt(n,arguments));return Object(l)===l?l:this}return r.apply(e,kt(n,arguments))},i=Co(0,r.length-n.length),f=[],c=0;c<i;c++)f[c]="$"+c;if(o=Function("binder","return function ("+Mo(f,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o},Bo=jo,Ae=Function.prototype.bind||Bo,it=Function.prototype.call,Be,Ft;function mr(){return Ft||(Ft=1,Be=Function.prototype.apply),Be}var Lo=typeof Reflect<"u"&&Reflect&&Reflect.apply,Uo=Ae,zo=mr(),Wo=it,qo=Lo,Go=qo||Uo.call(Wo,zo),Ho=Ae,Ko=J,Vo=it,Qo=Go,gr=function(e){if(e.length<1||typeof e[0]!="function")throw new Ko("a function is required");return Qo(Ho,Vo,e)},Le,Nt;function Jo(){if(Nt)return Le;Nt=1;var t=gr,e=yr,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 Le=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(f){return a(f==null?f:o(f))}:!1,Le}var Ue,Ct;function Yo(){if(Ct)return Ue;Ct=1;var t=dr(),e=vr(),r=Jo();return Ue=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,Ue}var ze,Tt;function Xo(){if(Tt)return ze;Tt=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Ae;return ze=r.call(t,e),ze}var y,Zo=pr,ea=po,ta=yo,ra=vo,na=mo,Q=go,K=J,oa=ho,aa=_o,ia=bo,la=So,ca=wo,fa=xo,ua=Oo,sa=Eo,hr=Function,We=function(t){try{return hr('"use strict"; return ('+t+").constructor;")()}catch{}},ae=yr,pa=Io,qe=function(){throw new K},ya=ae?function(){try{return arguments.callee,qe}catch{try{return ae(arguments,"callee").get}catch{return qe}}}():qe,q=ko()(),_=Yo(),da=vr(),va=dr(),_r=mr(),ie=it,H={},ma=typeof Uint8Array>"u"||!_?y:_(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":q&&_?_([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ea,"%eval%":eval,"%EvalError%":ta,"%Float16Array%":typeof Float16Array>"u"?y:Float16Array,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":hr,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&_?_(_([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!_?y:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Zo,"%Object.getOwnPropertyDescriptor%":ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":ra,"%ReferenceError%":na,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!_?y:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&_?_(""[Symbol.iterator]()):y,"%Symbol%":q?Symbol:y,"%SyntaxError%":Q,"%ThrowTypeError%":ya,"%TypedArray%":ma,"%TypeError%":K,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":oa,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet,"%Function.prototype.call%":ie,"%Function.prototype.apply%":_r,"%Object.defineProperty%":pa,"%Object.getPrototypeOf%":da,"%Math.abs%":aa,"%Math.floor%":ia,"%Math.max%":la,"%Math.min%":ca,"%Math.pow%":fa,"%Math.round%":ua,"%Math.sign%":sa,"%Reflect.getPrototypeOf%":va};if(_)try{null.error}catch(t){var ga=_(_(t));L["%Error.prototype%"]=ga}var ha=function t(e){var r;if(e==="%AsyncFunction%")r=We("async function () {}");else if(e==="%GeneratorFunction%")r=We("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=We("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&_&&(r=_(o.prototype))}return L[e]=r,r},Dt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},le=Ae,be=Xo(),_a=le.call(ie,Array.prototype.concat),ba=le.call(_r,Array.prototype.splice),Mt=le.call(ie,String.prototype.replace),Se=le.call(ie,String.prototype.slice),Sa=le.call(ie,RegExp.prototype.exec),wa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xa=/\\(\\)?/g,Oa=function(e){var r=Se(e,0,1),n=Se(e,-1);if(r==="%"&&n!=="%")throw new Q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Q("invalid intrinsic syntax, expected opening `%`");var o=[];return Mt(e,wa,function(a,i,f,c){o[o.length]=f?Mt(c,xa,"$1"):i||a}),o},Aa=function(e,r){var n=e,o;if(be(Dt,n)&&(o=Dt[n],n="%"+o[0]+"%"),be(L,n)){var a=L[n];if(a===H&&(a=ha(n)),typeof a>"u"&&!r)throw new K("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Q("intrinsic "+e+" does not exist!")},lt=function(e,r){if(typeof e!="string"||e.length===0)throw new K("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new K('"allowMissing" argument must be a boolean');if(Sa(/^%?[^%]*%?$/,e)===null)throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Oa(e),o=n.length>0?n[0]:"",a=Aa("%"+o+"%",r),i=a.name,f=a.value,c=!1,s=a.alias;s&&(o=s[0],ba(n,_a([0,1],s)));for(var l=1,p=!0;l<n.length;l+=1){var u=n[l],v=Se(u,0,1),d=Se(u,-1);if((v==='"'||v==="'"||v==="`"||d==='"'||d==="'"||d==="`")&&v!==d)throw new Q("property names with quotes must have matching quotes");if((u==="constructor"||!p)&&(c=!0),o+="."+u,i="%"+o+"%",be(L,i))f=L[i];else if(f!=null){if(!(u in f)){if(!r)throw new K("base intrinsic for "+e+" exists, but the property is not available.");return}if(ae&&l+1>=n.length){var b=ae(f,u);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?f=b.get:f=f[u]}else p=be(f,u),f=f[u];p&&!c&&(L[i]=f)}}return f},br=lt,Sr=gr,Pa=Sr([br("%String.prototype.indexOf%")]),wr=function(e,r){var n=br(e,!!r);return typeof n=="function"&&Pa(e,".prototype.")>-1?Sr([n]):n},Ea=lt,ce=wr,$a=xe,Ia=J,jt=Ea("%Map%",!0),Ra=ce("Map.prototype.get",!0),ka=ce("Map.prototype.set",!0),Fa=ce("Map.prototype.has",!0),Na=ce("Map.prototype.delete",!0),Ca=ce("Map.prototype.size",!0),xr=!!jt&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ia("Side channel does not contain "+$a(n))},delete:function(n){if(e){var o=Na(e,n);return Ca(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ra(e,n)},has:function(n){return e?Fa(e,n):!1},set:function(n,o){e||(e=new jt),ka(e,n,o)}};return r},Ta=lt,Pe=wr,Da=xe,pe=xr,Ma=J,G=Ta("%WeakMap%",!0),ja=Pe("WeakMap.prototype.get",!0),Ba=Pe("WeakMap.prototype.set",!0),La=Pe("WeakMap.prototype.has",!0),Ua=Pe("WeakMap.prototype.delete",!0),za=G?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Ma("Side channel does not contain "+Da(o))},delete:function(o){if(G&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ua(e,o)}else if(pe&&r)return r.delete(o);return!1},get:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?ja(e,o):r&&r.get(o)},has:function(o){return G&&o&&(typeof o=="object"||typeof o=="function")&&e?La(e,o):!!r&&r.has(o)},set:function(o,a){G&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new G),Ba(e,o,a)):pe&&(r||(r=pe()),r.set(o,a))}};return n}:pe,Wa=J,qa=xe,Ga=so,Ha=xr,Ka=za,Va=Ka||Ha||Ga,Or=function(){var e,r={assert:function(n){if(!r.has(n))throw new Wa("Side channel does not contain "+qa(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=Va()),e.set(n,o)}};return r},Qa=String.prototype.replace,Ja=/%20/g,Ge={RFC1738:"RFC1738",RFC3986:"RFC3986"},ct={default:Ge.RFC3986,formatters:{RFC1738:function(t){return Qa.call(t,Ja,"+")},RFC3986:function(t){return String(t)}},RFC1738:Ge.RFC1738,RFC3986:Ge.RFC3986},Ya=ct,Xa=Or,He=Object.prototype.hasOwnProperty,B=Array.isArray,Ee=Xa(),Ar=function(e,r){return Ee.set(e,r),e},we=function(e){return Ee.has(e)},et=function(e){return Ee.get(e)},Pr=function(e,r){Ee.set(e,r)},O=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Za=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(B(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},ft=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},ei=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(B(e))e.push(r);else if(e&&typeof e=="object")if(we(e)){var o=et(e)+1;e[o]=r,Pr(e,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!He.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object"){if(we(r)){for(var a=Object.keys(r),i=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},f=0;f<a.length;f++){var c=parseInt(a[f],10);i[c+1]=r[a[f]]}return Ar(i,et(r)+1)}return[e].concat(r)}var s=e;return B(e)&&!B(r)&&(s=ft(e,n)),B(e)&&B(r)?(r.forEach(function(l,p){if(He.call(e,p)){var u=e[p];u&&typeof u=="object"&&l&&typeof l=="object"?e[p]=t(u,l,n):e.push(l)}else e[p]=l}),e):Object.keys(r).reduce(function(l,p){var u=r[p];return He.call(l,p)?l[p]=t(l[p],u,n):l[p]=u,l},s)},ti=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},ri=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Ke=1024,ni=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var f="",c=0;c<i.length;c+=Ke){for(var s=i.length>=Ke?i.slice(c,c+Ke):i,l=[],p=0;p<s.length;++p){var u=s.charCodeAt(p);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===Ya.RFC1738&&(u===40||u===41)){l[l.length]=s.charAt(p);continue}if(u<128){l[l.length]=O[u];continue}if(u<2048){l[l.length]=O[192|u>>6]+O[128|u&63];continue}if(u<55296||u>=57344){l[l.length]=O[224|u>>12]+O[128|u>>6&63]+O[128|u&63];continue}p+=1,u=65536+((u&1023)<<10|s.charCodeAt(p)&1023),l[l.length]=O[240|u>>18]+O[128|u>>12&63]+O[128|u>>6&63]+O[128|u&63]}f+=l.join("")}return f},oi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],f=Object.keys(i),c=0;c<f.length;++c){var s=f[c],l=i[s];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:i,prop:s}),n.push(l))}return Za(r),e},ai=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ii=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},li=function(e,r,n,o){if(we(e)){var a=et(e)+1;return e[a]=r,Pr(e,a),e}var i=[].concat(e,r);return i.length>n?Ar(ft(i,{plainObjects:o}),i.length-1):i},ci=function(e,r){if(B(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},Er={arrayToObject:ft,assign:ti,combine:li,compact:oi,decode:ri,encode:ni,isBuffer:ii,isOverflow:we,isRegExp:ai,maybeMap:ci,merge:ei},$r=Or,ve=Er,oe=ct,fi=Object.prototype.hasOwnProperty,Ir={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},A=Array.isArray,ui=Array.prototype.push,Rr=function(t,e){ui.apply(t,A(e)?e:[e])},si=Date.prototype.toISOString,Bt=oe.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ve.encode,encodeValuesOnly:!1,filter:void 0,format:Bt,formatter:oe.formatters[Bt],indices:!1,serializeDate:function(e){return si.call(e)},skipNulls:!1,strictNullHandling:!1},pi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ve={},yi=function t(e,r,n,o,a,i,f,c,s,l,p,u,v,d,b,S,I,R){for(var m=e,k=R,M=0,Y=!1;(k=k.get(Ve))!==void 0&&!Y;){var z=k.get(e);if(M+=1,typeof z<"u"){if(z===M)throw new RangeError("Cyclic object value");Y=!0}typeof k.get(Ve)>"u"&&(M=0)}if(typeof l=="function"?m=l(r,m):m instanceof Date?m=v(m):n==="comma"&&A(m)&&(m=ve.maybeMap(m,function(Re){return Re instanceof Date?v(Re):Re})),m===null){if(i)return s&&!S?s(r,h.encoder,I,"key",d):r;m=""}if(pi(m)||ve.isBuffer(m)){if(s){var fe=S?r:s(r,h.encoder,I,"key",d);return[b(fe)+"="+b(s(m,h.encoder,I,"value",d))]}return[b(r)+"="+b(String(m))]}var j=[];if(typeof m>"u")return j;var F;if(n==="comma"&&A(m))S&&s&&(m=ve.maybeMap(m,s)),F=[{value:m.length>0?m.join(",")||null:void 0}];else if(A(l))F=l;else{var ue=Object.keys(m);F=p?ue.sort(p):ue}var W=c?String(r).replace(/\./g,"%2E"):String(r),x=o&&A(m)&&m.length===1?W+"[]":W;if(a&&A(m)&&m.length===0)return x+"[]";for(var N=0;N<F.length;++N){var E=F[N],X=typeof E=="object"&&E&&typeof E.value<"u"?E.value:m[E];if(!(f&&X===null)){var Ie=u&&c?String(E).replace(/\./g,"%2E"):String(E),Mr=A(m)?typeof n=="function"?n(x,Ie):x:x+(u?"."+Ie:"["+Ie+"]");R.set(e,M);var st=$r();st.set(Ve,R),Rr(j,t(X,Mr,n,o,a,i,f,c,n==="comma"&&S&&A(m)?null:s,l,p,u,v,d,b,S,I,st))}}return j},di=function(e){if(!e)return h;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||h.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=oe.default;if(typeof e.format<"u"){if(!fi.call(oe.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=oe.formatters[n],a=h.filter;(typeof e.filter=="function"||A(e.filter))&&(a=e.filter);var i;if(e.arrayFormat in Ir?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=h.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:h.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:f,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:i,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},vi=function(t,e){var r=t,n=di(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):A(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var f=Ir[n.arrayFormat],c=f==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var s=$r(),l=0;l<o.length;++l){var p=o[l],u=r[p];n.skipNulls&&u===null||Rr(i,yi(u,p,f,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 v=i.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),v.length>0?d+v:""},T=Er,me=Object.prototype.hasOwnProperty,Lt=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:T.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},mi=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},kr=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},gi="utf8=%26%2310003%3B",hi="utf8=%E2%9C%93",_i=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,r.throwOnLimitExceeded?a+1:a);if(r.throwOnLimitExceeded&&i.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var f=-1,c,s=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===hi?s="utf-8":i[c]===gi&&(s="iso-8859-1"),f=c,c=i.length);for(c=0;c<i.length;++c)if(c!==f){var l=i[c],p=l.indexOf("]="),u=p===-1?l.indexOf("="):p+1,v,d;if(u===-1?(v=r.decoder(l,g.decoder,s,"key"),d=r.strictNullHandling?null:""):(v=r.decoder(l.slice(0,u),g.decoder,s,"key"),v!==null&&(d=T.maybeMap(kr(l.slice(u+1),r,Lt(n[v])?n[v].length:0),function(S){return r.decoder(S,g.decoder,s,"value")}))),d&&r.interpretNumericEntities&&s==="iso-8859-1"&&(d=mi(String(d))),l.indexOf("[]=")>-1&&(d=Lt(d)?[d]:d),v!==null){var b=me.call(n,v);b&&r.duplicates==="combine"?n[v]=T.combine(n[v],d,r.arrayLimit,r.plainObjects):(!b||r.duplicates==="last")&&(n[v]=d)}}return n},bi=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:kr(e,r,o),f=t.length-1;f>=0;--f){var c,s=t[f];if(s==="[]"&&r.parseArrays)T.isOverflow(i)?c=i:c=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:T.combine([],i,r.arrayLimit,r.plainObjects);else{c=r.plainObjects?{__proto__:null}:{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,p=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(u)&&s!==p&&String(u)===p&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(c=[],c[u]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},Si=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&me.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=o.exec(n),f=i?n.slice(0,i.index):n,c=[];if(f){if(!r.plainObjects&&me.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var s=0;(i=a.exec(n))!==null&&s<r.depth;){s+=1;var l=i[1].slice(1,-1);if(!r.plainObjects&&me.call(Object.prototype,l)&&!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},wi=function(e,r,n,o){if(e){var a=Si(e,n);if(a)return bi(a,r,n,o)}},xi=function(e){if(!e)return g;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?g.charset:e.charset,n=typeof e.duplicates>"u"?g.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:g.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:g.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||T.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:g.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Oi=function(t,e){var r=xi(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?_i(t,r):t,o=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),i=0;i<a.length;++i){var f=a[i],c=wi(f,n[f],r,typeof t=="string");o=T.merge(o,c,r)}return r.allowSparse===!0?o:T.compact(o)},Ai=vi,Pi=Oi,Ei=ct,$i={formats:Ei,parse:Pi,stringify:Ai};const Ii=or($i);async function $e(t,e={},r){const{cms:n="cms"}=e;return fetch(`${t.href}?${Ii.stringify(e)}`,{method:"GET",cache:r?"no-store":"default",headers:{Accept:"application/json","Content-Type":"application/json","strapi-encode-source-maps":n==="strapi"&&r?"true":"false"}})}function ut(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 Fr(t){return Array.isArray(t)&&t.length>0?t[0]:Array.isArray(t)?null:t}async function Nr(t,e=[],r={}){var n;if((r==null?void 0:r.contentType)===t){const o=(r==null?void 0:r.previewMode)==="true",a=(r==null?void 0:r.documentId)??"",i=a&&((n=String(a))!=null&&n.length)?`/${r.documentId}`:"",f=new URL(ut(`${t}${i}`,r)),c=await $e(f,r,o);if(!c.ok)return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`),[];const s=await c.json(),l=e.findIndex(p=>p.documentId===s.id);return l!==-1?(e[l]=s,[...e]):[s,...e]}return e}const Ri=Object.freeze(Object.defineProperty({__proto__:null,createUrl:ut,fetchCMS:$e,mergePreviewDocument:Nr,spreadStrapiData:Fr},Symbol.toStringTag,{value:"Module"}));async function Cr(t,e={},r){const n=!!(e!=null&&e.previewMode),o=await $e(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?Fr(a):a}:{status:404,data:[],error:"No data found"}}async function Tr(t,e,r={}){const n=(r==null?void 0:r.previewId)??"",o=(r==null?void 0:r.previewMode)==="true",a={...r,versionId:n},i=[];let f=1,c=0,s=!0;try{do{const l=await $e(e,{...a,page:f},o).then(p=>p.json()).catch(p=>(console.error("Error fetching VTEX CMS data:",p),console.error("Error URL:",e.toString()),null));f===1&&(c=l.totalItems),Array.isArray(l==null?void 0:l.data)&&i.push(...l.data),s=!!(l!=null&&l.hasNextPage),f++}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 l=await Nr(t,i,a);return{status:l.length>0?200:404,data:l}}return{status:i.length?200:404,data:i}}catch(l){return{status:500,data:[],error:l instanceof Error?l.message:String(l)}}}const ki=Object.freeze(Object.defineProperty({__proto__:null,strapiCMSData:Cr,vtexCMSData:Tr},Symbol.toStringTag,{value:"Module"}));async function Fi({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 Dr(t,e={},r){const{cms:n="vtex"}=e??{};try{const o=new URL(ut(t,e));return n!=="vtex"?Cr(o,e,r):Tr(t,o,e)}catch(o){return console.error(`[Fetch ContentType Error CMS ${n}]`,o),r?{status:400,data:null}:{status:200,data:[]}}}const Ni=Object.freeze(Object.defineProperty({__proto__:null,fetchContentType:Dr,getCMSContentType:Fi},Symbol.toStringTag,{value:"Module"}));exports.SearchPageScreening=En;exports.addSearchParamsFacets=Qr;exports.cms=Ni;exports.cmsHelpers=ki;exports.cmsUtils=Ri;exports.disableSKU=Kt;exports.fetchContentType=Dr;exports.filterNonCategorySelected=er;exports.filterNonRootFacets=rr;exports.formatPriceToCurrency=ge;exports.formattedFacets=Vr;exports.freightParsePrice=Ut;exports.getColorAndSizeFromSkuName=Wt;exports.getDefaultExportFromCjs=or;exports.getDiscountPercent=zt;exports.getFacetsActiveSearchParams=Jr;exports.getFirstImages=Xt;exports.getProductNameWithoutSku=Gt;exports.getSKUName=qt;exports.getSkuInfos=Ht;exports.getThumbImage=Qt;exports.getValidOffer=Vt;exports.navigateToSearchPage=Zr;exports.productHelpers=Ur;exports.resizingImg=Jt;exports.responsive=ee;exports.search=en;exports.searchHelpers=nr;exports.selectedFacets=rt;exports.setVideoPlay=Zt;exports.splitNameAndSizeFromFullName=tt;exports.styles=Pn;exports.updatedResizedImg=Yt;
|