@soma-vertical-web/multi-lib 1.0.12 → 1.0.13

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