cloudcommerce 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/.vscode/settings.json +2 -1
  2. package/CHANGELOG.md +18 -0
  3. package/action.yml +9 -6
  4. package/ecomplus-stores/barra-doce/.vscode/settings.json +4 -2
  5. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  6. package/ecomplus-stores/barra-doce/functions/ssr/package.json +7 -7
  7. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeaderMenu.vue +2 -1
  8. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  9. package/ecomplus-stores/barra-doce/package.json +2 -2
  10. package/ecomplus-stores/tia-sonia/.vscode/launch.json +11 -0
  11. package/ecomplus-stores/tia-sonia/.vscode/settings.json +7 -1
  12. package/package.json +4 -4
  13. package/packages/api/package.json +1 -1
  14. package/packages/apps/affiliate-program/package.json +1 -1
  15. package/packages/apps/correios/package.json +2 -2
  16. package/packages/apps/custom-payment/package.json +1 -1
  17. package/packages/apps/custom-shipping/package.json +1 -1
  18. package/packages/apps/datafrete/package.json +1 -1
  19. package/packages/apps/discounts/package.json +1 -1
  20. package/packages/apps/emails/package.json +1 -1
  21. package/packages/apps/fb-conversions/package.json +1 -1
  22. package/packages/apps/flash-courier/package.json +1 -1
  23. package/packages/apps/frenet/package.json +1 -1
  24. package/packages/apps/galaxpay/package.json +1 -1
  25. package/packages/apps/google-analytics/package.json +1 -1
  26. package/packages/apps/jadlog/package.json +1 -1
  27. package/packages/apps/loyalty-points/package.json +1 -1
  28. package/packages/apps/mandae/package.json +1 -1
  29. package/packages/apps/melhor-envio/package.json +1 -1
  30. package/packages/apps/mercadopago/package.json +1 -1
  31. package/packages/apps/pagarme/package.json +1 -1
  32. package/packages/apps/pagarme-v5/package.json +1 -1
  33. package/packages/apps/paghiper/package.json +1 -1
  34. package/packages/apps/pix/package.json +1 -1
  35. package/packages/apps/tiny-erp/package.json +1 -1
  36. package/packages/apps/webhooks/package.json +1 -1
  37. package/packages/cli/package.json +1 -1
  38. package/packages/config/package.json +1 -1
  39. package/packages/emails/package.json +1 -1
  40. package/packages/eslint/package.json +5 -5
  41. package/packages/events/package.json +1 -1
  42. package/packages/feeds/package.json +1 -1
  43. package/packages/firebase/lib/config.js +8 -0
  44. package/packages/firebase/lib/config.js.map +1 -1
  45. package/packages/firebase/package.json +3 -2
  46. package/packages/firebase/src/config.ts +11 -0
  47. package/packages/i18n/package.json +1 -1
  48. package/packages/modules/package.json +2 -2
  49. package/packages/passport/package.json +1 -1
  50. package/packages/ssr/package.json +3 -3
  51. package/packages/storefront/dist/client/_astro/{AccountPage.oxrx8xO0.js → AccountPage.sfdU6Ju1.js} +1 -1
  52. package/packages/storefront/dist/client/_astro/{CartSidebar.ShqcM66P.js → CartSidebar.1fFe2RGR.js} +1 -1
  53. package/packages/storefront/dist/client/_astro/{HeroSlider.OYdereCn.js → HeroSlider.GWgaYE3A.js} +1 -1
  54. package/packages/storefront/dist/client/_astro/{PitchBar.RVEArMQA.js → PitchBar._m4Oyh26.js} +1 -1
  55. package/packages/storefront/dist/client/_astro/{Prices.Bsod-tLh.js → Prices.ij-wiXyI.js} +1 -1
  56. package/packages/storefront/dist/client/_astro/{ProductDetails.TQM36pzk.js → ProductDetails.WXj4miM3.js} +1 -1
  57. package/packages/storefront/dist/client/_astro/{ProductShelf.HX1P9sTW.js → ProductShelf.GkYOYehE.js} +1 -1
  58. package/packages/storefront/dist/client/_astro/ProductShelf.I8ZQzwkT.js +1 -0
  59. package/packages/storefront/dist/client/_astro/{QuantitySelector.SEAsIOhe.js → QuantitySelector.BLGwL_-E.js} +1 -1
  60. package/packages/storefront/dist/client/_astro/{SearchModal.JVuqMQFe.js → SearchModal.3j8PYOg4.js} +1 -1
  61. package/packages/storefront/dist/client/_astro/{SearchShowcase.zwEq0xsL.js → SearchShowcase.na8UFES5.js} +1 -1
  62. package/packages/storefront/dist/client/_astro/{ShopHeader.BoPmUmjI.js → ShopHeader.27oTzgGP.js} +2 -2
  63. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.zwYIxbLv.js +5 -0
  64. package/packages/storefront/dist/client/_astro/_slug_.gHu56-HX.css +1 -0
  65. package/packages/storefront/dist/client/_astro/client.guyl5T6O.js +1 -0
  66. package/packages/storefront/dist/client/_astro/{customer-session.yn5lG3w3.js → customer-session.zys3PDaD.js} +1 -1
  67. package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
  68. package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
  69. package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
  70. package/packages/storefront/dist/client/_astro/{format-money.ykh8O7d2.js → format-money.85X7Tchr.js} +1 -1
  71. package/packages/storefront/dist/client/_astro/{grid-title.z5ui_5pL.js → grid-title.tJFKNjnT.js} +1 -1
  72. package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
  73. package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
  74. package/packages/storefront/dist/client/_astro/{hoisted.daSrX1-i.js → hoisted.3l9XzKQq.js} +1 -1
  75. package/packages/storefront/dist/client/_astro/{hoisted.hpPOAcMM.js → hoisted.J3ui9KfA.js} +1 -1
  76. package/packages/storefront/dist/client/_astro/hoisted.X6EeZJCY.js +1 -0
  77. package/packages/storefront/dist/client/_astro/{i18n.MycOopxQ.js → i18n.vH3oaO8m.js} +1 -1
  78. package/packages/storefront/dist/client/_astro/{img.c2KI4eO6.js → img.PXVYiEi4.js} +1 -1
  79. package/packages/storefront/dist/client/_astro/{index.8acAQSHW.js → index.ZVw4Qnet.js} +1 -1
  80. package/packages/storefront/dist/client/_astro/{index.NRzvVgQf.js → index._z3KfWlu.js} +1 -1
  81. package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
  82. package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
  83. package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
  84. package/packages/storefront/dist/client/_astro/{modules-info.dHD0h8Nc.js → modules-info.39sWCsAH.js} +1 -1
  85. package/packages/storefront/dist/client/_astro/name.LjTu3VQY.js +1 -0
  86. package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
  87. package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
  88. package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
  89. package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
  90. package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
  91. package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
  92. package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
  93. package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
  94. package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
  95. package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
  96. package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
  97. package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
  98. package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
  99. package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
  100. package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
  101. package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
  102. package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
  103. package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
  104. package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
  105. package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
  106. package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
  107. package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
  108. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.arxvxBux.js +13 -0
  109. package/packages/storefront/dist/client/_astro/sf-utils.Z4H-dRBJ.js +1 -0
  110. package/packages/storefront/dist/client/_astro/{shopping-cart.MgpVRgys.js → shopping-cart.bLFDGb3i.js} +1 -1
  111. package/packages/storefront/dist/client/_astro/{use-analytics.D9xd-k7D.js → use-analytics.qryUNUh7.js} +1 -1
  112. package/packages/storefront/dist/client/_astro/{use-product-card.gKh9czSW.js → use-product-card.h3dJsLOD.js} +1 -1
  113. package/packages/storefront/dist/client/_astro/{use-text-value.ZIz7zsXT.js → use-text-value.dpiQwgOv.js} +1 -1
  114. package/packages/storefront/dist/client/app/account/index.html +56 -0
  115. package/packages/storefront/dist/client/app/index.html +96 -0
  116. package/packages/storefront/dist/client/blog/1/index.html +82 -0
  117. package/packages/storefront/dist/client/index.html +122 -0
  118. package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +89 -0
  119. package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +89 -0
  120. package/packages/storefront/dist/client/p/contato/index.html +86 -0
  121. package/packages/storefront/dist/client/p/terms/index.html +97 -0
  122. package/packages/storefront/dist/client/posts/3/index.html +97 -0
  123. package/packages/storefront/dist/client/posts/4/index.html +97 -0
  124. package/packages/storefront/dist/client/~fallback/index.html +97 -0
  125. package/packages/storefront/package.json +3 -3
  126. package/packages/storefront/src/helpers/server-data.ts +2 -1
  127. package/packages/storefront/src/lib/pages/_vue.ts +3 -2
  128. package/packages/test-base/package.json +1 -1
  129. package/packages/types/package.json +1 -1
  130. package/packages/storefront/dist/client/_astro/ProductShelf._0iHMZBO.js +0 -1
  131. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.40kDRyEO.js +0 -1
  132. package/packages/storefront/dist/client/_astro/_slug_.PTG68eA8.css +0 -1
  133. package/packages/storefront/dist/client/_astro/client.nPN_zw-c.js +0 -1
  134. package/packages/storefront/dist/client/_astro/hoisted.FcmEawNA.js +0 -1
  135. package/packages/storefront/dist/client/_astro/name.itYHl42A.js +0 -1
  136. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.Pr2hdd7G.js +0 -1
  137. package/packages/storefront/dist/client/_astro/sf-utils.yjuG8NjM.js +0 -1
@@ -0,0 +1 @@
1
+ import{_ as B,T as ne,c as ae,d as oe}from"./_plugin-vue_export-helper.zwYIxbLv.js";import{d as C,c,N as y,$ as z,V as A,Z as b,a0 as G,O as R,a2 as J,a3 as ee,R as S,T as v,a4 as se,a as L,w as k,a6 as K,H as ie,E as le,ac as ue,a5 as ce,Q as Z,k as $,ad as de}from"./runtime-core.esm-bundler.arxvxBux.js";import{g as fe}from"./img.PXVYiEi4.js";import{u as me}from"./index.ZVw4Qnet.js";import{g as ve}from"./img-sizes.gxAI9JNh.js";import{i as pe}from"./i18n.vH3oaO8m.js";import{f as ge}from"./format-money.85X7Tchr.js";import{a as he,b as ye}from"./index._z3KfWlu.js";import"./price.Easct8WC.js";const _e=C({__name:"Fade",props:{speed:{default:"default"},slide:{},isFloating:{type:Boolean,default:!1},isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${e.speed}, .4s linear)`),s=c(()=>{switch(e.slide){case"down":return"translate3d(0, -100%, 0)";case"left":return"translate3d(-100%, 0, 0)";case"right":return"translate3d(100%, 0, 0)";case"up":return"translate3d(0, 100%, 0)";default:return"none"}}),i=c(()=>s.value!=="none"?.1:0),u=c(()=>e.isEnterFrom?i.value:1),g=c(()=>e.isLeaveTo?i.value:1),P=c(()=>e.isEnterFrom?s.value:"none"),f=c(()=>e.isLeaveTo?s.value:"none"),l=c(()=>e.slide==="down"||e.slide==="up"),_=c(()=>e.isFloating?null:l.value?0:"auto"),T=c(()=>e.isFloating?null:e.slide&&!l.value?0:"auto"),m=c(()=>e.isEnterFrom?_.value:"auto"),w=c(()=>e.isEnterFrom?T.value:"auto"),x=c(()=>{let n="opacity";return s.value!=="none"&&(n+=", transform"),_.value===0&&(n+=", height"),T.value===0&&(n+=", width"),n}),p={props:e,duration:t,transform:s,opacity:i,enterFromOpacity:u,leaveToOpacity:g,enterFromTransform:P,leaveToTransform:f,isSlideY:l,height:_,width:T,enterFromHeight:m,enterFromWidth:w,willChange:x,setInitialStyles:n=>{n.style.setProperty("--fade-will-change",x.value),n.style.setProperty("--fade-duration",t.value),n.style.setProperty("--fade-enter-opacity",String(u.value)),n.style.setProperty("--fade-enter-transform",String(P.value)),n.style.setProperty("--fade-enter-height",String(m.value)),n.style.setProperty("--fade-enter-width",String(w.value)),n.style.setProperty("--fade-leave-opacity",String(g.value)),n.style.setProperty("--fade-leave-transform",String(f.value))},onEnter:n=>{if(e.slide&&!e.isFloating&&e.isEnterFrom){l.value?(n.style.width=getComputedStyle(n).width,n.style.height="auto"):(n.style.width="auto",n.style.height=getComputedStyle(n).height),n.style.position="absolute",n.style.visibility="hidden";const{width:h,height:N}=getComputedStyle(n);n.style.width=l.value?"":"0",n.style.height=l.value?"0":"",n.style.position="",n.style.visibility="",getComputedStyle(n)[l.value?"height":"width"],requestAnimationFrame(()=>{l.value?n.style.height=N:n.style.width=h})}},onAfterEnter:n=>{e.slide&&!e.isFloating&&e.isEnterFrom&&(n.style[l.value?"height":"width"]="")},onLeave:n=>{if(e.slide&&!e.isFloating&&e.isLeaveTo){l.value?n.style.height=getComputedStyle(n).height:n.style.width=getComputedStyle(n).width;const h=l.value?"height":"width";getComputedStyle(n)[h],requestAnimationFrame(()=>{n.style[h]="0"})}}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});function xe(r,a,e,t,s,i){return y(),z(ne,{name:"sf-fade",onBeforeEnter:t.setInitialStyles,onEnter:t.onEnter,onBeforeLeave:t.setInitialStyles,onAfterEnter:t.onAfterEnter,onLeave:t.onLeave},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterEnter","onLeave"])}const Se=B(_e,[["render",xe]]),we=C({__name:"ALink",props:{href:{},target:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>{if(e.href){if(e.target)return e.target;if(e.href.startsWith("http")){const i=globalThis.$storefront.settings.domain||window.location.host;return e.href.startsWith(`https://${i}`)?void 0:"_blank"}}}),s={props:e,linkTarget:t};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function be(r,a,e,t,s,i){return y(),z(G(e.href?"a":"span"),{href:e.href,target:t.linkTarget,rel:t.linkTarget==="_blank"?"noopener":void 0},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["href","target","rel"])}const Ce=B(we,[["render",be]]),Pe=C({__name:"AImg",props:{picture:{},loading:{default:"lazy"},decoding:{},alt:{},preferredSize:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.picture.url?e.picture:fe(e.picture,void 0,e.preferredSize)||{}),s=c(()=>ve(t.value)),i=c(()=>({src:t.value.url,alt:t.value.alt||e.alt,width:s.value.width||void 0,height:s.value.height||void 0,loading:e.loading,decoding:e.decoding||(s.value.height?"async":void 0)})),u={props:e,image:t,dimensions:s,attrs:i};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function Te(r,a,e,t,s,i){return y(),R("img",J(ee(t.attrs)),null,16)}const Ee=B(Pe,[["render",Te]]),q="bg-gray-200 rounded-md dark:bg-gray-700",Le=C({__name:"Skeleton",props:{isBold:{type:Boolean},isLarge:{type:Boolean}},setup(r,{expose:a}){a();const e=r,t=c(()=>`${q} ${e.isBold?"h-8 mb-6":"h-2.5 mb-4"}`),s=c(()=>`${q} ${e.isBold?"h-5 mb-4":"h-2 mb-2.5"}`),i={props:e,rowClassName:q,firstRowClassName:t,nextRowsClassName:s};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),Be=S("span",{class:"sr-only"},"Loading...",-1);function Fe(r,a,e,t,s,i){return y(),R("div",{role:"status",class:v(["animate-pulse",e.isLarge?"max-w-4xl":"max-w-sm"])},[S("div",{class:v([t.firstRowClassName,e.isLarge?"w-96":"w-48"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[680px]":"max-w-[340px]"])},null,2),S("div",{class:v(t.nextRowsClassName)},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[660px]":"max-w-[330px]"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[600px]":"max-w-[300px]"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[720px]":"max-w-[360px]"])},null,2),Be],2)}const ke=B(Le,[["render",Fe]]),ze=(r,a=1)=>Number.isInteger(r)?`${r}%`:`${r.toFixed(a)}%`,Ae=r=>{r.use({install:(a,e)=>{a.config.globalProperties.$t=(t,s)=>pe(t,s||e?.lang),a.config.globalProperties.$money=ge,a.config.globalProperties.$percentage=ze,a.config.globalProperties.$settings=globalThis.$storefront.settings,a.config.globalProperties.$apiContext=globalThis.$storefront.apiContext}}),r.component("Fade",Se),r.component("ALink",Ce),r.component("AImg",Ee),r.component("Skeleton",ke)},Ie=C({__name:"CarouselControl",props:{isPrev:{type:Boolean,default:!1}},setup(r,{expose:a}){a();const{axis:e,changeSlide:t}=se(D),i={axis:e,changeSlide:t,isX:e==="x"};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),Ne=["aria-label","data-carousel-control"];function Oe(r,a,e,t,s,i){return y(),R("button",{type:"button","aria-label":e.isPrev?"Anterior":"Próximo",onClick:a[0]||(a[0]=u=>t.changeSlide(e.isPrev?-1:1)),class:v(["group absolute z-[11]",t.isX?`${e.isPrev?"left-0":"right-0"} top-0`:`${e.isPrev?"top-0":"bottom-0"} left-0`]),"data-carousel-control":e.isPrev?"previous":"next"},[b(r.$slots,"default",{},()=>[S("i",{class:v(["i-chevron-right m-0",{"group-active:translate-x-1":t.isX&&!e.isPrev,"rotate-180 group-active:-translate-x-1":t.isX&&e.isPrev,"rotate-90 group-active:translate-y-1":!t.isX&&!e.isPrev,"-rotate-90 group-active:-translate-y-1":!t.isX&&e.isPrev}])},null,2)])],10,Ne)}const te=B(Ie,[["render",Oe]]),D=Symbol("carousel"),$e=C({__name:"Carousel",props:{as:{default:"ul"},index:{default:0},autoplay:{},axis:{default:"x"},hasControls:{type:Boolean},wrapperKey:{}},emits:["update:index"],setup(r,{expose:a,emit:e}){a();const t=r,s=e,i=L(0);k(K(t,"index"),o=>{if(o!==i.value){const d=o-i.value;h(d,!1)}},{immediate:!0}),k(i,(o,d)=>{o!==d&&s("update:index",o)});const u=L(null),{[t.axis]:g,isScrolling:P,arrivedState:f}=he(u),l=t.axis==="x",_=c(()=>l?f.left:f.top),T=c(()=>l?f.right:f.bottom),m=L([]),w=L(0),x=L(0),H=()=>{u.value&&(l?(w.value=u.value.scrollWidth,x.value=u.value.offsetWidth):(w.value=u.value.scrollHeight,x.value=u.value.offsetHeight))},j=()=>{if(!u.value)return;let o=[...u.value.children];o.length===1&&o[0].tagName.endsWith("SLOT")&&(o=[...o[0].children]),m.value=o.map(d=>({offset:l?d.offsetLeft:d.offsetTop,size:l?d.offsetWidth:d.offsetHeight}))},X=o=>{let d=i.value+o;if(d>=m.value.length)return 0;d<0&&(d=m.value.length+d);const{offset:F,size:E}=m.value[d]||{};return E?F:0},I=()=>{const o=m.value.findIndex(d=>Math.abs(d.offset-g.value)<=5);o>-1&&(i.value=o||0)};let p;const n=()=>{t.autoplay&&(clearTimeout(p),p=setTimeout(()=>{h(1)},t.autoplay))},h=(o,d=!0)=>{if(m.value.length<2)return;let F=-1;if(g.value+x.value>=w.value)F=0;else{if(d&&(o===1||o===-1)){let E=0,Y=0;for(let M=i.value;M<m.value.length;M++){const{size:V}=m.value[M]||{};if(V&&(E+=1,Y+=V,Y+V*.75>=x.value))break}E&&(o=o>0?E:-E)}F=X(o)}u.value?.scrollTo({[l?"left":"top"]:F,behavior:"smooth"}),n()};k(P,o=>{o?clearTimeout(p):(I(),n())});const N=L(null),Q=ye(N);k(Q,o=>{o?clearTimeout(p):n()});const O=()=>{u.value&&(H(),j(),I())},W=me(()=>{u.value&&(l?u.value.scrollLeft=0:u.value.scrollTop=0,O())},400);ie(()=>{O(),le(()=>{u.value&&[...u.value.children].forEach(o=>{o.setAttribute("tabindex","0")})}),n(),window.addEventListener("resize",W)}),k(K(t,"wrapperKey"),O),ue(()=>{window.removeEventListener("resize",W),clearTimeout(p)}),ce(D,{autoplay:K(t,"autoplay"),axis:t.axis,changeSlide:h,isBoundStart:_,isBoundEnd:T});const U={carouselKey:D,props:t,emit:s,activeIndex:i,wrapper:u,currentPos:g,isScrolling:P,arrivedState:f,isX:l,isBoundStart:_,isBoundEnd:T,slideSizes:m,wrapperScrollSize:w,wrapperVisibleSize:x,calcWrapperSize:H,calcSlidesSize:j,calcNextOffset:X,calcCurrentIndex:I,get autoplayTimer(){return p},set autoplayTimer(o){p=o},restartAutoplay:n,changeSlide:h,carousel:N,isHovered:Q,calcOnInit:O,onResize:W,CarouselControl:te};return Object.defineProperty(U,"__isScriptSetup",{enumerable:!1,value:!0}),U}});function Re(r,a,e,t,s,i){return y(),R("div",{ref:"carousel",class:v(`relative ${t.isX?"":"overflow-hidden"}`),"data-carousel":""},[(y(),z(G(e.as),{ref:"wrapper",class:v(["m-0 flex snap-mandatory list-none scroll-smooth p-0 [&>*]:snap-start [&>*]:outline-none",t.isX?"snap-x overflow-y-hidden overflow-x-scroll":"h-full flex-col snap-y overflow-x-hidden overflow-y-scroll"]),style:{"scrollbar-width":"none","-webkit-overflow-scrolling":"touch","-ms-overflow-style":"none"},"data-carousel-wrapper":""},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["class"])),b(r.$slots,"controls",J(ee({changeSlide:t.changeSlide,isBoundStart:t.isBoundStart,isBoundEnd:t.isBoundEnd,activeIndex:t.activeIndex})),()=>[t.slideSizes.length>1||e.hasControls?(y(),z(t.CarouselControl,{key:0,"is-prev":""},{default:A(()=>[b(r.$slots,"previous")]),_:3})):Z("",!0),t.slideSizes.length>1||e.hasControls?(y(),z(t.CarouselControl,{key:1},{default:A(()=>[b(r.$slots,"next")]),_:3})):Z("",!0)])],2)}const He=B($e,[["render",Re]]),re=r=>{Ae(r),r.component("Carousel",He),r.component("CarouselControl",te)},je=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),Xe=async r=>{"default"in je&&await re(r)},We=C({props:{value:String,name:String,hydrate:{type:Boolean,default:!0}},setup({name:r,value:a,hydrate:e}){if(!a)return()=>null;let t=e?"astro-slot":"astro-static-slot";return()=>$(t,{name:r,innerHTML:a})}}),Je=r=>async(a,e,t,{client:s})=>{if(!r.hasAttribute("ssr"))return;const i=a.name?`${a.name} Host`:void 0,u={};for(const[l,_]of Object.entries(t))u[l]=()=>$(We,{value:_,name:l==="default"?void 0:l});const g=s!=="only",f=(g?ae:oe)({name:i,render(){let l=$(a,e,u);return Me(a.setup)&&(l=$(de,null,l)),l}});await Xe(f),f.mount(r,g),r.addEventListener("astro:unmount",()=>f.unmount(),{once:!0})};function Me(r){const a=r?.constructor;return a&&a.name==="AsyncFunction"}export{Je as default};
@@ -1,4 +1,4 @@
1
- import{r as M}from"./sf-utils.yjuG8NjM.js";import{h as x}from"./index.8acAQSHW.js";import{r as C,c as b}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const K=e=>{if(e){if(e.display_name)return e.display_name;if(e.name&&e.name.given_name)return e.name.given_name}return""},z=K,J="modulepreload",G=function(e){return"/"+e},I={},V=function(a,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=G(s),s in I)return;I[s]=!0;const n=s.endsWith(".css"),f=n?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===s&&(!n||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":J,n||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),n)return new Promise((p,g)=>{l.addEventListener("load",p),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>a()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},F=(e,a,t=globalThis.localStorage)=>{if(!t)return C(a);let r;const i=t.getItem(e);if(i)try{r=JSON.parse(i)}catch{r=null,t.removeItem(e)}const o=C(r||a);return x(o,()=>{t.setItem(e,JSON.stringify(o))},{debounce:50}),o};globalThis.__apiCache||(globalThis.__apiCache={});const y=typeof process=="object"&&process?.env||globalThis;class S extends Error{constructor(a,t,r,i=!1){t?(super(t.statusText),this.data=t.data,this.statusCode=t.status):super(r||"Request error"),this.config=a,this.response=t,this.isTimeout=i}}const Y={middleware(e){const a={...e.headers};if(!e.isNoAuth)if(e.accessToken)a.Authorization=`Bearer ${e.accessToken}`;else{const o=e.authenticationId||y.ECOM_AUTHENTICATION_ID,s=e.apiKey||y.ECOM_API_KEY;if(o&&s){const n=`${o}:${s}`,f=typeof Buffer=="function"?Buffer.from(n).toString("base64"):btoa(n);a.Authorization=`Basic ${f}`}}let t=e.baseUrl||y.API_BASE_URL||"https://ecomplus.io/v2";const{endpoint:r,params:i}=e;if(r!=="login"&&r!=="authenticate"&&r!=="ask-auth-callback"&&r!=="check-username"){const o=e.storeId||y.ECOM_STORE_ID;if(!o)throw new Error("`storeId` must be set in config or `ECOM_STORE_ID` env var");t+=`/:${o}`;const s=e.lang||y.ECOM_LANG;s&&(t+=`,lang:${s}`)}if(t+=`/${r}`,typeof i=="string")t+=`?${i}`;else{const o=i||{};if(["fields","sort"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n.join(","))}),["limit","offset","count","buckets","concise","verbose"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n)}),Object.keys(o).length){const s=new URLSearchParams;Object.keys(o).forEach(n=>{const f=o[n];Array.isArray(f)?f.forEach(_=>{s.append(n,_)}):f!==void 0&&s.append(n,f)}),t+=`?${s.toString()}`}}return{url:t,headers:a}}},c=async(e,a=0)=>{const t=globalThis.$apiMergeConfig?{...globalThis.$apiMergeConfig,...e}:e,{url:r,headers:i}=Y.middleware(t),o=t.method?.toUpperCase()||"GET",{timeout:s=2e4,maxRetries:n=3,cacheMaxAge:f=6e5}=t,_=o==="GET"&&t.canCache;let l;if(_){l=`${r}${JSON.stringify(i)}`;const m=globalThis.__apiCache[l];if(m&&Date.now()-m.timestamp<=f)return{...m.res,config:t}}const p=t.body||t.data;let g;p&&(g=JSON.stringify(p),i["Content-Type"]="application/json");const T=new AbortController;let A=!1;const L=setTimeout(()=>{T.abort(),A=!0},s);let u;try{u=await(t.fetch||fetch)(r,{method:o,headers:i,body:g,signal:T.signal})}catch(m){let d=m.message;throw m.cause&&(d+=` - ${m.cause}`),new S(t,u,d,A)}if(clearTimeout(L),u){if(u.ok){const d=u;return d.data=u.status!==204?await u.json():null,_&&l&&(globalThis.__apiCache[l]={timestamp:Date.now(),res:d}),d.config=t,d}const{status:m}=u;if(n<a&&(m===429||m>=500)){const d=u.headers.get("retry-after");return new Promise((U,B)=>{setTimeout(()=>{c(e,a+1).then(U).catch(B)},d&&parseInt(d,10)*1e3||5e3)})}}try{u.data=await u?.json()}catch{}throw new S(t,u)},q=(e,a)=>c({...a,endpoint:e}),H=(e,a,t)=>c({...t,method:"post",endpoint:e,body:a}),Q=(e,a,t)=>c({...t,method:"put",endpoint:e,body:a}),W=(e,a,t)=>c({...t,method:"patch",endpoint:e,body:a}),N=(e,a)=>c({...a,method:"delete",endpoint:e});c.get=q;c.post=H;c.put=Q;c.patch=W;c.del=N;c.delete=N;const X="emailForSignIn",P="ecomSession",v={customer:{display_name:"",main_email:""},auth:null},h=F(P,v),E=b(()=>{const{auth:e}=h;return e&&new Date(e.expires).getTime()-Date.now()>1e3*10}),R=b(()=>h.customer),k=b(()=>z(R.value)),O=b({get(){return R.value.main_email},set(e){h.customer.main_email=e}});let w;const ne=b(()=>E.value||!!w?.currentUser?.emailVerified),Z=()=>{h.auth=v.auth,h.customer=v.customer,localStorage.removeItem(P),w.signOut()},j=(e="Not authenticated")=>{const a=new Error(e);throw a.isNoAuth=!0,a},D=async()=>{const e=await w.currentUser?.getIdToken();if(!e){j("Can't get Firebase user ID token");return}const{domain:a}=globalThis.$storefront.settings;try{const t=await fetch(`https://${a}/_api/passport/token`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});h.auth=await t.json()}catch(t){console.error(t)}},ee=async()=>(E.value||await D(),h.auth?h.auth.access_token:j()),te=async()=>{const e=await ee(),a=h.auth,{data:t}=await c.get(`customers/${a.customer_id}`,{accessToken:e});return h.customer=t,t};let $=!1;const re=e=>{if($)return;e===void 0&&(e=!window.location.pathname.startsWith("/app/")),$=!0;const a=()=>V(()=>import("./firebase-app.cPMfoOsn.js"),__vite__mapDeps([0,1])).then(({getAuth:t,onAuthStateChanged:r,isSignInWithEmailLink:i,signInWithEmailLink:o})=>{if(w=t(),r(w,async s=>{if(s){if(s.displayName&&!k.value&&(h.customer.display_name=s.displayName),s.email&&(!O.value||s.emailVerified)&&(h.customer.main_email=s.email),s.emailVerified){const n=s.email!==O.value;(n||!E.value)&&(await D(),(n||!k.value)&&await te())}}else Z()}),i(w,window.location.href)){const n=new URLSearchParams(window.location.search).get("email");n&&o(w,n,window.location.href).then(()=>window.localStorage.removeItem(X)).catch(console.error)}}).catch(console.error);e?M(a):a()};export{X as E,V as _,k as a,c as b,R as c,ne as d,re as e,O as f,E as i,Z as l,h as s,F as u};
1
+ import{r as M}from"./sf-utils.Z4H-dRBJ.js";import{h as x}from"./index.ZVw4Qnet.js";import{r as C,c as b}from"./runtime-core.esm-bundler.arxvxBux.js";const K=e=>{if(e){if(e.display_name)return e.display_name;if(e.name&&e.name.given_name)return e.name.given_name}return""},z=K,J="modulepreload",G=function(e){return"/"+e},I={},V=function(a,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=G(s),s in I)return;I[s]=!0;const n=s.endsWith(".css"),f=n?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===s&&(!n||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":J,n||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),n)return new Promise((p,g)=>{l.addEventListener("load",p),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>a()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},F=(e,a,t=globalThis.localStorage)=>{if(!t)return C(a);let r;const i=t.getItem(e);if(i)try{r=JSON.parse(i)}catch{r=null,t.removeItem(e)}const o=C(r||a);return x(o,()=>{t.setItem(e,JSON.stringify(o))},{debounce:50}),o};globalThis.__apiCache||(globalThis.__apiCache={});const y=typeof process=="object"&&process?.env||globalThis;class S extends Error{constructor(a,t,r,i=!1){t?(super(t.statusText),this.data=t.data,this.statusCode=t.status):super(r||"Request error"),this.config=a,this.response=t,this.isTimeout=i}}const Y={middleware(e){const a={...e.headers};if(!e.isNoAuth)if(e.accessToken)a.Authorization=`Bearer ${e.accessToken}`;else{const o=e.authenticationId||y.ECOM_AUTHENTICATION_ID,s=e.apiKey||y.ECOM_API_KEY;if(o&&s){const n=`${o}:${s}`,f=typeof Buffer=="function"?Buffer.from(n).toString("base64"):btoa(n);a.Authorization=`Basic ${f}`}}let t=e.baseUrl||y.API_BASE_URL||"https://ecomplus.io/v2";const{endpoint:r,params:i}=e;if(r!=="login"&&r!=="authenticate"&&r!=="ask-auth-callback"&&r!=="check-username"){const o=e.storeId||y.ECOM_STORE_ID;if(!o)throw new Error("`storeId` must be set in config or `ECOM_STORE_ID` env var");t+=`/:${o}`;const s=e.lang||y.ECOM_LANG;s&&(t+=`,lang:${s}`)}if(t+=`/${r}`,typeof i=="string")t+=`?${i}`;else{const o=i||{};if(["fields","sort"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n.join(","))}),["limit","offset","count","buckets","concise","verbose"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n)}),Object.keys(o).length){const s=new URLSearchParams;Object.keys(o).forEach(n=>{const f=o[n];Array.isArray(f)?f.forEach(_=>{s.append(n,_)}):f!==void 0&&s.append(n,f)}),t+=`?${s.toString()}`}}return{url:t,headers:a}}},c=async(e,a=0)=>{const t=globalThis.$apiMergeConfig?{...globalThis.$apiMergeConfig,...e}:e,{url:r,headers:i}=Y.middleware(t),o=t.method?.toUpperCase()||"GET",{timeout:s=2e4,maxRetries:n=3,cacheMaxAge:f=6e5}=t,_=o==="GET"&&t.canCache;let l;if(_){l=`${r}${JSON.stringify(i)}`;const m=globalThis.__apiCache[l];if(m&&Date.now()-m.timestamp<=f)return{...m.res,config:t}}const p=t.body||t.data;let g;p&&(g=JSON.stringify(p),i["Content-Type"]="application/json");const T=new AbortController;let A=!1;const L=setTimeout(()=>{T.abort(),A=!0},s);let u;try{u=await(t.fetch||fetch)(r,{method:o,headers:i,body:g,signal:T.signal})}catch(m){let d=m.message;throw m.cause&&(d+=` - ${m.cause}`),new S(t,u,d,A)}if(clearTimeout(L),u){if(u.ok){const d=u;return d.data=u.status!==204?await u.json():null,_&&l&&(globalThis.__apiCache[l]={timestamp:Date.now(),res:d}),d.config=t,d}const{status:m}=u;if(n<a&&(m===429||m>=500)){const d=u.headers.get("retry-after");return new Promise((U,B)=>{setTimeout(()=>{c(e,a+1).then(U).catch(B)},d&&parseInt(d,10)*1e3||5e3)})}}try{u.data=await u?.json()}catch{}throw new S(t,u)},q=(e,a)=>c({...a,endpoint:e}),H=(e,a,t)=>c({...t,method:"post",endpoint:e,body:a}),Q=(e,a,t)=>c({...t,method:"put",endpoint:e,body:a}),W=(e,a,t)=>c({...t,method:"patch",endpoint:e,body:a}),N=(e,a)=>c({...a,method:"delete",endpoint:e});c.get=q;c.post=H;c.put=Q;c.patch=W;c.del=N;c.delete=N;const X="emailForSignIn",P="ecomSession",v={customer:{display_name:"",main_email:""},auth:null},h=F(P,v),E=b(()=>{const{auth:e}=h;return e&&new Date(e.expires).getTime()-Date.now()>1e3*10}),R=b(()=>h.customer),k=b(()=>z(R.value)),O=b({get(){return R.value.main_email},set(e){h.customer.main_email=e}});let w;const ne=b(()=>E.value||!!w?.currentUser?.emailVerified),Z=()=>{h.auth=v.auth,h.customer=v.customer,localStorage.removeItem(P),w.signOut()},j=(e="Not authenticated")=>{const a=new Error(e);throw a.isNoAuth=!0,a},D=async()=>{const e=await w.currentUser?.getIdToken();if(!e){j("Can't get Firebase user ID token");return}const{domain:a}=globalThis.$storefront.settings;try{const t=await fetch(`https://${a}/_api/passport/token`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});h.auth=await t.json()}catch(t){console.error(t)}},ee=async()=>(E.value||await D(),h.auth?h.auth.access_token:j()),te=async()=>{const e=await ee(),a=h.auth,{data:t}=await c.get(`customers/${a.customer_id}`,{accessToken:e});return h.customer=t,t};let $=!1;const re=e=>{if($)return;e===void 0&&(e=!window.location.pathname.startsWith("/app/")),$=!0;const a=()=>V(()=>import("./firebase-app.cPMfoOsn.js"),__vite__mapDeps([0,1])).then(({getAuth:t,onAuthStateChanged:r,isSignInWithEmailLink:i,signInWithEmailLink:o})=>{if(w=t(),r(w,async s=>{if(s){if(s.displayName&&!k.value&&(h.customer.display_name=s.displayName),s.email&&(!O.value||s.emailVerified)&&(h.customer.main_email=s.email),s.emailVerified){const n=s.email!==O.value;(n||!E.value)&&(await D(),(n||!k.value)&&await te())}}else Z()}),i(w,window.location.href)){const n=new URLSearchParams(window.location.search).get("email");n&&o(w,n,window.location.href).then(()=>window.localStorage.removeItem(X)).catch(console.error)}}).catch(console.error);e?M(a):a()};export{X as E,V as _,k as a,c as b,R as c,ne as d,re as e,O as f,E as i,Z as l,h as s,F as u};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
4
  __vite__mapDeps.viteFileDeps = ["_astro/firebase-app.cPMfoOsn.js","_astro/index-dd468b12.D5s8VdAL.js"]
@@ -1 +1 @@
1
- import{_ as t}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
1
+ import{_ as t}from"./runtime-core.esm-bundler.arxvxBux.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
@@ -1 +1 @@
1
- import{_ as g}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as a}from"./name.itYHl42A.js";const s=(t,e,i=g.get("lang"))=>{let r;return Array.isArray(e)?r=e.find(o=>o.grid_id===t):console.error("`grids` must be array to get grid title"),r?a(r,i):t},m=s;export{m as g};
1
+ import{_ as g}from"./runtime-core.esm-bundler.arxvxBux.js";import{g as a}from"./name.LjTu3VQY.js";const s=(t,e,i=g.get("lang"))=>{let r;return Array.isArray(e)?r=e.find(o=>o.grid_id===t):console.error("`grids` must be array to get grid title"),r?a(r,i):t},m=s;export{m as g};
@@ -1 +1 @@
1
- import{i as E,s as b,c as p,a as N}from"./customer-session.yn5lG3w3.js";import{s as w}from"./shopping-cart.MgpVRgys.js";import{g as v,e as I}from"./use-analytics.D9xd-k7D.js";import{u as O}from"./afetch.5c8VmT0-.js";import"./index.8acAQSHW.js";import{w as T}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import"./hoisted.hpPOAcMM.js";import"./sf-utils.yjuG8NjM.js";import"./price.Easct8WC.js";import"./name.itYHl42A.js";import"./i18n.MycOopxQ.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
1
+ import{i as E,s as b,c as p,a as N}from"./customer-session.zys3PDaD.js";import{s as w}from"./shopping-cart.bLFDGb3i.js";import{g as v,e as I}from"./use-analytics.qryUNUh7.js";import{u as O}from"./afetch.5c8VmT0-.js";import"./index.ZVw4Qnet.js";import{w as T}from"./runtime-core.esm-bundler.arxvxBux.js";import"./hoisted.J3ui9KfA.js";import"./sf-utils.Z4H-dRBJ.js";import"./price.Easct8WC.js";import"./name.LjTu3VQY.js";import"./i18n.vH3oaO8m.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
@@ -1 +1 @@
1
- import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.D9xd-k7D.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.8acAQSHW.js";import"./customer-session.yn5lG3w3.js";import"./sf-utils.yjuG8NjM.js";import"./runtime-core.esm-bundler.Pr2hdd7G.js";import"./shopping-cart.MgpVRgys.js";import"./price.Easct8WC.js";import"./name.itYHl42A.js";import"./i18n.MycOopxQ.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
1
+ import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.qryUNUh7.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.ZVw4Qnet.js";import"./customer-session.zys3PDaD.js";import"./sf-utils.Z4H-dRBJ.js";import"./runtime-core.esm-bundler.arxvxBux.js";import"./shopping-cart.bLFDGb3i.js";import"./price.Easct8WC.js";import"./name.LjTu3VQY.js";import"./i18n.vH3oaO8m.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
@@ -0,0 +1 @@
1
+ import"./hoisted.J3ui9KfA.js";import"./afetch.5c8VmT0-.js";import"./use-analytics.qryUNUh7.js";import"./customer-session.zys3PDaD.js";import"./sf-utils.Z4H-dRBJ.js";import"./index.ZVw4Qnet.js";import"./runtime-core.esm-bundler.arxvxBux.js";import"./shopping-cart.bLFDGb3i.js";import"./price.Easct8WC.js";import"./name.LjTu3VQY.js";import"./i18n.vH3oaO8m.js";const t=window.location.search.includes("status=404")?"404Msg":"5xxMsg";document.getElementById(t).style.display="block";document.getElementById("loadingMsg").style.display="none";
@@ -1 +1 @@
1
- import{D as n,_ as o}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
1
+ import{D as n,_ as o}from"./runtime-core.esm-bundler.arxvxBux.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
@@ -1 +1 @@
1
- import{_ as n}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
1
+ import{_ as n}from"./runtime-core.esm-bundler.arxvxBux.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
@@ -1 +1 @@
1
- import{C as D,_ as C,w as b,E as T,F as A,a as y,G as F,c as W,H as _,I,J as k,K as M}from"./runtime-core.esm-bundler.Pr2hdd7G.js";D.$ecomConfig||C;function E(e){return k()?(M(e),!0):!1}function $(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():A(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G=Object.prototype.toString,q=e=>G.call(e)==="[object Object]",l=()=>{},B=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=s=>{clearTimeout(s),i(),i=l};return s=>{const u=m(e),c=m(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(s())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(s())},u)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,s=l,u;const c=()=>{r&&(clearTimeout(r),r=void 0,s(),s=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>u=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(u=new Promise((g,j)=>{s=o?j:g,r=setTimeout(()=>{i=Date.now(),a=!0,g(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,u)}}function L(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function V(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const H=/-(\w)/g,N=V(e=>e.replace(H,(t,n)=>n?n.toUpperCase():""));function Q(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function J(e){return e||I()}function X(e,t=200,n={}){return v(x(t,n),e)}function Y(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return b(e,v(o,t),i)}function Z(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:u}=L(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:u}}function ee(e,t=!0,n){J()?_(e,n):t?e():T(e)}function K(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,a()}function u(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&u()),E(s),{isPending:F(i),start:u,stop:s}}function te(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=K(o??l,e,t),r=W(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ne(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function oe(e,t,n){const o=b(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{q as a,Y as b,N as c,ee as d,B as e,E as f,oe as g,ne as h,O as i,te as j,$ as m,l as n,Q as p,m as t,X as u,Z as w};
1
+ import{C as D,_ as C,w as b,E as T,F as A,a as y,G as F,c as W,H as _,I,J as k,K as M}from"./runtime-core.esm-bundler.arxvxBux.js";D.$ecomConfig||C;function E(e){return k()?(M(e),!0):!1}function $(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():A(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G=Object.prototype.toString,q=e=>G.call(e)==="[object Object]",l=()=>{},B=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=s=>{clearTimeout(s),i(),i=l};return s=>{const u=m(e),c=m(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(s())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(s())},u)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,s=l,u;const c=()=>{r&&(clearTimeout(r),r=void 0,s(),s=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>u=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(u=new Promise((g,j)=>{s=o?j:g,r=setTimeout(()=>{i=Date.now(),a=!0,g(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,u)}}function L(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function V(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const H=/-(\w)/g,N=V(e=>e.replace(H,(t,n)=>n?n.toUpperCase():""));function Q(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function J(e){return e||I()}function X(e,t=200,n={}){return v(x(t,n),e)}function Y(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return b(e,v(o,t),i)}function Z(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:u}=L(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:u}}function ee(e,t=!0,n){J()?_(e,n):t?e():T(e)}function K(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,a()}function u(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&u()),E(s),{isPending:F(i),start:u,stop:s}}function te(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=K(o??l,e,t),r=W(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ne(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function oe(e,t,n){const o=b(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{q as a,Y as b,N as c,ee as d,B as e,E as f,oe as g,ne as h,O as i,te as j,$ as m,l as n,Q as p,m as t,X as u,Z as w};
@@ -1 +1 @@
1
- import{m as N,w as X,i as q,n as $,a as z,t as _,c as B,u as Q,b as Y,d as G,e as J,f as Z}from"./index.8acAQSHW.js";import{s as ee,r as D,w as te,d as W,a as C,c as j}from"./runtime-core.esm-bundler.Pr2hdd7G.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=W({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=W({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[B(o)]=t[o];return u}function k(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return $;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[k(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return $;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",$)),r.document.documentElement.addEventListener("click",$));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=k(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=k(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=k(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=k(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=$,onScroll:p=$,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=j({get(){return h.value},set(a){m(a,void 0)}}),c=j({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,x,P;if(!f)return;const S=_(t);S&&((P=S instanceof Document?f.document.body:S)==null||P.scrollTo({top:(E=_(L))!=null?E:c.value,left:(x=_(a))!=null?x:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=Q(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:x,flexDirection:P}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;x==="flex"&&P==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;x==="flex"&&P==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Y(H,o,!0,!1):H,i),G(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ie as a,ae as b,re as c,le as o,ce as u};
1
+ import{m as N,w as X,i as q,n as $,a as z,t as _,c as B,u as Q,b as Y,d as G,e as J,f as Z}from"./index.ZVw4Qnet.js";import{s as ee,r as D,w as te,d as W,a as C,c as j}from"./runtime-core.esm-bundler.arxvxBux.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=W({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=W({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[B(o)]=t[o];return u}function k(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return $;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[k(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return $;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",$)),r.document.documentElement.addEventListener("click",$));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=k(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=k(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=k(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=k(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=$,onScroll:p=$,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=j({get(){return h.value},set(a){m(a,void 0)}}),c=j({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,x,P;if(!f)return;const S=_(t);S&&((P=S instanceof Document?f.document.body:S)==null||P.scrollTo({top:(E=_(L))!=null?E:c.value,left:(x=_(a))!=null?x:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=Q(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:x,flexDirection:P}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;x==="flex"&&P==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;x==="flex"&&P==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Y(H,o,!0,!1):H,i),G(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ie as a,ae as b,re as c,le as o,ce as u};
@@ -1 +1 @@
1
- import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.yjuG8NjM.js";import{r as S,c as l}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{f as x}from"./format-money.ykh8O7d2.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
1
+ import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.Z4H-dRBJ.js";import{r as S,c as l}from"./runtime-core.esm-bundler.arxvxBux.js";import{f as x}from"./format-money.85X7Tchr.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
@@ -0,0 +1 @@
1
+ import{_ as t}from"./runtime-core.esm-bundler.arxvxBux.js";import{i as n}from"./i18n.vH3oaO8m.js";const r=(e,i=t.get("lang"))=>i&&e.i18n&&e.i18n[i]?e.i18n[i]:e.name||e.title||n(e.i18n,i)||"",a=r;export{a as g};
@@ -0,0 +1,13 @@
1
+ var gs={};let Ut,gn;typeof window=="object"&&window?gn=Ut=window:typeof process=="object"&&gs?(gn=global,Ut=gs):gn=Ut=typeof self=="object"&&self||{};const Qr="en_us",Xr="USD",zr="$",el="US",tl=1011,nl="5b1abe30a4d4531b8fe40725",sl=e=>{if(typeof document=="object"&&document){const t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++)if(t[n].getAttribute("name")===e.replace(/_/g,"-")){const s=t[n].getAttribute("content");return e==="ecom_store_id"?parseInt(s,10):s}}return Ut[e.toUpperCase()]},wn={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{wn[e]=sl("ecom_"+e)});const ao={get(e){const t=wn[e];if(t!=null&&t!=="")return t;switch(e){case"lang":return Qr;case"currency":return Xr;case"currency_symbol":return zr;case"country_code":return el;case"store_id":return tl;case"store_object_id":return nl}return null},set(e,t){wn[e]=t}};/**
2
+ * @vue/shared v3.4.11
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Vn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},nt=[],Te=()=>{},rl=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$s=e=>e.startsWith("onUpdate:"),ue=Object.assign,$n=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,J=(e,t)=>ll.call(e,t),U=Array.isArray,st=e=>Et(e)==="[object Map]",Ds=e=>Et(e)==="[object Set]",ps=e=>Et(e)==="[object Date]",V=e=>typeof e=="function",le=e=>typeof e=="string",De=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Ks=e=>(z(e)||V(e))&&V(e.then)&&V(e.catch),Ws=Object.prototype.toString,Et=e=>Ws.call(e),il=e=>Et(e).slice(8,-1),qs=e=>Et(e)==="[object Object]",Dn=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gt=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),en=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ol=/-(\w)/g,Be=en(e=>e.replace(ol,(t,n)=>n?n.toUpperCase():"")),fl=/\B([A-Z])/g,tn=en(e=>e.replace(fl,"-$1").toLowerCase()),Kn=en(e=>e.charAt(0).toUpperCase()+e.slice(1)),pn=en(e=>e?`on${Kn(e)}`:""),Ke=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Kt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},cl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ul=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let _s;const Gs=()=>_s||(_s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?gl(s):nn(s);if(r)for(const l in r)t[l]=r[l]}return t}else if(le(e)||z(e))return e}const al=/;(?![^(]*\))/g,hl=/:([^]+)/,dl=/\/\*[^]*?\*\//g;function gl(e){const t={};return e.replace(dl,"").split(al).forEach(n=>{if(n){const s=n.split(hl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function sn(e){let t="";if(le(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=sn(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ho(e){if(!e)return null;let{class:t,style:n}=e;return t&&!le(t)&&(e.class=sn(t)),n&&(e.style=nn(n)),e}const pl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",go=Vn(pl);function po(e){return!!e||e===""}function _l(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ys(e[s],t[s]);return n}function Ys(e,t){if(e===t)return!0;let n=ps(e),s=ps(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=De(e),s=De(t),n||s)return e===t;if(n=U(e),s=U(t),n||s)return n&&s?_l(e,t):!1;if(n=z(e),s=z(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,l=Object.keys(t).length;if(r!==l)return!1;for(const i in e){const o=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(o&&!c||!o&&c||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}const _o=e=>le(e)?e:e==null?"":U(e)||z(e)&&(e.toString===Ws||!V(e.toString))?JSON.stringify(e,Js,2):String(e),Js=(e,t)=>t&&t.__v_isRef?Js(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],l)=>(n[yn(s,l)+" =>"]=r,n),{})}:Ds(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>yn(n))}:De(t)?yn(t):z(t)&&!U(t)&&!qs(t)?String(t):t,yn=(e,t="")=>{var n;return De(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.4.11
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let me;class yl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function ml(e,t=me){t&&t.active&&t.effects.push(e)}function bl(){return me}function yo(e){me&&me.cleanups.push(e)}let Ze;class Wn{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,ml(this,r)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,Xe();for(const t of this.deps)if(t.computed&&(xl(t.computed),this._dirtyLevel>=2))break;ze(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ve,n=Ze;try{return Ve=!0,Ze=this,this._runnings++,ys(this),this.fn()}finally{ms(this),this._runnings--,Ze=n,Ve=t}}stop(){var t;this.active&&(ys(this),ms(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function xl(e){return e.value}function ys(e){e._trackId++,e._depsLength=0}function ms(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Zs(e.deps[t],e);e.deps.length=e._depsLength}}function Zs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ve=!0,vn=0;const Qs=[];function Xe(){Qs.push(Ve),Ve=!1}function ze(){const e=Qs.pop();Ve=e===void 0?!0:e}function qn(){vn++}function Gn(){for(vn--;!vn&&Fn.length;)Fn.shift()()}function Xs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Zs(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fn=[];function zs(e,t,n){qn();for(const s of e.keys())if(!(!s.allowRecurse&&s._runnings)&&s._dirtyLevel<t&&(!s._runnings||s.allowRecurse||t!==2)){const r=s._dirtyLevel;s._dirtyLevel=t,r===0&&(!s._queryings||t!==2)&&(s.trigger(),s.scheduler&&Fn.push(s.scheduler))}Gn()}const er=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Wt=new WeakMap,Qe=Symbol(""),An=Symbol("");function _e(e,t,n){if(Ve&&Ze){let s=Wt.get(e);s||Wt.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=er(()=>s.delete(n))),Xs(Ze,r)}}function Le(e,t,n,s,r,l){const i=Wt.get(e);if(!i)return;let o=[];if(t==="clear")o=[...i.values()];else if(n==="length"&&U(e)){const c=Number(s);i.forEach((a,d)=>{(d==="length"||!De(d)&&d>=c)&&o.push(a)})}else switch(n!==void 0&&o.push(i.get(n)),t){case"add":U(e)?Dn(n)&&o.push(i.get("length")):(o.push(i.get(Qe)),st(e)&&o.push(i.get(An)));break;case"delete":U(e)||(o.push(i.get(Qe)),st(e)&&o.push(i.get(An)));break;case"set":st(e)&&o.push(i.get(Qe));break}qn();for(const c of o)c&&zs(c,3);Gn()}function Cl(e,t){var n;return(n=Wt.get(e))==null?void 0:n.get(t)}const Tl=Vn("__proto__,__v_isRef,__isVue"),tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De)),bs=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Z(this);for(let l=0,i=this.length;l<i;l++)_e(s,"get",l+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Z)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xe(),qn();const s=Z(this)[t].apply(this,n);return Gn(),ze(),s}}),e}function wl(e){const t=Z(this);return _e(t,"has",e),t.hasOwnProperty(e)}class nr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return s===(r?l?jl:ir:l?lr:rr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){if(i&&J(bs,n))return Reflect.get(bs,n,s);if(n==="hasOwnProperty")return wl}const o=Reflect.get(t,n,s);return(De(n)?tr.has(n):Tl(n))||(r||_e(t,"get",n),l)?o:ae(o)?i&&Dn(n)?o:o.value:z(o)?r?or(o):Zn(o):o}}class sr extends nr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let l=t[n];if(!this._shallow){const c=ft(l);if(!qt(s)&&!ft(s)&&(l=Z(l),s=Z(s)),!U(t)&&ae(l)&&!ae(s))return c?!1:(l.value=s,!0)}const i=U(t)&&Dn(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,s,r);return t===Z(r)&&(i?Ke(s,l)&&Le(t,"set",n,s):Le(t,"add",n,s)),o}deleteProperty(t,n){const s=J(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Le(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!De(n)||!tr.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",U(t)?"length":Qe),Reflect.ownKeys(t)}}class vl extends nr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fl=new sr,Al=new vl,Rl=new sr(!0),Yn=e=>e,rn=e=>Reflect.getPrototypeOf(e);function Ot(e,t,n=!1,s=!1){e=e.__v_raw;const r=Z(e),l=Z(t);n||(Ke(t,l)&&_e(r,"get",t),_e(r,"get",l));const{has:i}=rn(r),o=s?Yn:n?Xn:mt;if(i.call(r,t))return o(e.get(t));if(i.call(r,l))return o(e.get(l));e!==r&&e.get(t)}function Mt(e,t=!1){const n=this.__v_raw,s=Z(n),r=Z(e);return t||(Ke(e,r)&&_e(s,"has",e),_e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function It(e,t=!1){return e=e.__v_raw,!t&&_e(Z(e),"iterate",Qe),Reflect.get(e,"size",e)}function xs(e){e=Z(e);const t=Z(this);return rn(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Cs(e,t){t=Z(t);const n=Z(this),{has:s,get:r}=rn(n);let l=s.call(n,e);l||(e=Z(e),l=s.call(n,e));const i=r.call(n,e);return n.set(e,t),l?Ke(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function Ts(e){const t=Z(this),{has:n,get:s}=rn(t);let r=n.call(t,e);r||(e=Z(e),r=n.call(t,e)),s&&s.call(t,e);const l=t.delete(e);return r&&Le(t,"delete",e,void 0),l}function Es(){const e=Z(this),t=e.size!==0,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function Pt(e,t){return function(s,r){const l=this,i=l.__v_raw,o=Z(i),c=t?Yn:e?Xn:mt;return!e&&_e(o,"iterate",Qe),i.forEach((a,d)=>s.call(r,c(a),c(d),l))}}function Lt(e,t,n){return function(...s){const r=this.__v_raw,l=Z(r),i=st(l),o=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),d=n?Yn:t?Xn:mt;return!t&&_e(l,"iterate",c?An:Qe),{next(){const{value:h,done:_}=a.next();return _?{value:h,done:_}:{value:o?[d(h[0]),d(h[1])]:d(h),done:_}},[Symbol.iterator](){return this}}}}function ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ol(){const e={get(l){return Ot(this,l)},get size(){return It(this)},has:Mt,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Pt(!1,!1)},t={get(l){return Ot(this,l,!1,!0)},get size(){return It(this)},has:Mt,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Pt(!1,!0)},n={get(l){return Ot(this,l,!0)},get size(){return It(this,!0)},has(l){return Mt.call(this,l,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:Pt(!0,!1)},s={get(l){return Ot(this,l,!0,!0)},get size(){return It(this,!0)},has(l){return Mt.call(this,l,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:Pt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Lt(l,!1,!1),n[l]=Lt(l,!0,!1),t[l]=Lt(l,!1,!0),s[l]=Lt(l,!0,!0)}),[e,n,t,s]}const[Ml,Il,Pl,Ll]=Ol();function Jn(e,t){const n=t?e?Ll:Pl:e?Il:Ml;return(s,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(J(n,r)&&r in s?n:s,r,l)}const Bl={get:Jn(!1,!1)},Nl={get:Jn(!1,!0)},kl={get:Jn(!0,!1)},rr=new WeakMap,lr=new WeakMap,ir=new WeakMap,jl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(il(e))}function Zn(e){return ft(e)?e:Qn(e,!1,Fl,Bl,rr)}function Sl(e){return Qn(e,!1,Rl,Nl,lr)}function or(e){return Qn(e,!0,Al,kl,ir)}function Qn(e,t,n,s,r){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=Ul(e);if(i===0)return e;const o=new Proxy(e,i===2?s:n);return r.set(e,o),o}function rt(e){return ft(e)?rt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function fr(e){return rt(e)||ft(e)}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function cr(e){return Kt(e,"__v_skip",!0),e}const mt=e=>z(e)?Zn(e):e,Xn=e=>z(e)?or(e):e;class ur{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Wn(()=>t(this._value),()=>Rn(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Z(this);return ar(t),(!t._cacheable||t.effect.dirty)&&Ke(t._value,t._value=t.effect.run())&&Rn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Vl(e,t,n=!1){let s,r;const l=V(e);return l?(s=e,r=Te):(s=e.get,r=e.set),new ur(s,r,l||!r,n)}function ar(e){Ve&&Ze&&(e=Z(e),Xs(Ze,e.dep||(e.dep=er(()=>e.dep=void 0,e instanceof ur?e:void 0))))}function Rn(e,t=3,n){e=Z(e);const s=e.dep;s&&zs(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function St(e){return hr(e,!1)}function mo(e){return hr(e,!0)}function hr(e,t){return ae(e)?e:new $l(e,t)}class $l{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Z(t),this._value=n?t:mt(t)}get value(){return ar(this),this._value}set value(t){const n=this.__v_isShallow||qt(t)||ft(t);t=n?t:Z(t),Ke(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:mt(t),Rn(this,3))}}function Dl(e){return ae(e)?e.value:e}const Kl={get:(e,t,n)=>Dl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function dr(e){return rt(e)?e:new Proxy(e,Kl)}class Wl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Cl(Z(this._object),this._key)}}class ql{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function bo(e,t,n){return ae(e)?e:V(e)?new ql(e):z(e)&&arguments.length>1?Gl(e,t,n):St(e)}function Gl(e,t,n){const s=e[t];return ae(s)?s:new Wl(e,t,n)}/**
10
+ * @vue/runtime-core v3.4.11
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function $e(e,t,n,s){let r;try{r=s?e(...s):e()}catch(l){at(l,t,n)}return r}function ve(e,t,n,s){if(V(e)){const l=$e(e,t,n,s);return l&&Ks(l)&&l.catch(i=>{at(i,t,n)}),l}const r=[];for(let l=0;l<e.length;l++)r.push(ve(e[l],t,n,s));return r}function at(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let l=t.parent;const i=t.proxy,o=`https://vuejs.org/errors/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,o)===!1)return}l=l.parent}const c=t.appContext.config.errorHandler;if(c){$e(c,null,10,[e,i,o]);return}}Yl(e,n,r,s)}function Yl(e,t,n,s=!0){console.error(e)}let bt=!1,On=!1;const ce=[];let Oe=0;const lt=[];let He=null,Ye=0;const gr=Promise.resolve();let zn=null;function Jl(e){const t=zn||gr;return e?t.then(this?e.bind(this):e):t}function Zl(e){let t=Oe+1,n=ce.length;for(;t<n;){const s=t+n>>>1,r=ce[s],l=xt(r);l<e||l===e&&r.pre?t=s+1:n=s}return t}function ln(e){(!ce.length||!ce.includes(e,bt&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?ce.push(e):ce.splice(Zl(e.id),0,e),pr())}function pr(){!bt&&!On&&(On=!0,zn=gr.then(_r))}function Ql(e){const t=ce.indexOf(e);t>Oe&&ce.splice(t,1)}function Mn(e){U(e)?lt.push(...e):(!He||!He.includes(e,e.allowRecurse?Ye+1:Ye))&&lt.push(e),pr()}function ws(e,t,n=bt?Oe+1:0){for(;n<ce.length;n++){const s=ce[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;ce.splice(n,1),n--,s()}}}function Gt(e){if(lt.length){const t=[...new Set(lt)].sort((n,s)=>xt(n)-xt(s));if(lt.length=0,He){He.push(...t);return}for(He=t,Ye=0;Ye<He.length;Ye++)He[Ye]();He=null,Ye=0}}const xt=e=>e.id==null?1/0:e.id,Xl=(e,t)=>{const n=xt(e)-xt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _r(e){On=!1,bt=!0,ce.sort(Xl);try{for(Oe=0;Oe<ce.length;Oe++){const t=ce[Oe];t&&t.active!==!1&&$e(t,null,14)}}finally{Oe=0,ce.length=0,Gt(),bt=!1,zn=null,(ce.length||lt.length)&&_r()}}function zl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const l=t.startsWith("update:"),i=l&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:_}=s[d]||ee;_&&(r=n.map(v=>le(v)?v.trim():v)),h&&(r=n.map(cl))}let o,c=s[o=pn(t)]||s[o=pn(Be(t))];!c&&l&&(c=s[o=pn(tn(t))]),c&&ve(c,e,6,r);const a=s[o+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ve(a,e,6,r)}}function yr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const l=e.emits;let i={},o=!1;if(!V(e)){const c=a=>{const d=yr(a,t,!0);d&&(o=!0,ue(i,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(z(e)&&s.set(e,null),null):(U(l)?l.forEach(c=>i[c]=null):ue(i,l),z(e)&&s.set(e,i),i)}function on(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,tn(t))||J(e,t))}let re=null,mr=null;function Yt(e){const t=re;return re=e,mr=e&&e.type.__scopeId||null,t}function ei(e,t=re,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Us(-1);const l=Yt(t);let i;try{i=e(...r)}finally{Yt(l),s._d&&Us(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function mn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:l,propsOptions:[i],slots:o,attrs:c,emit:a,render:d,renderCache:h,data:_,setupState:v,ctx:O,inheritAttrs:I}=e;let D,W;const K=Yt(e);try{if(n.shapeFlag&4){const T=r||s,C=T;D=Ce(d.call(C,T,h,l,v,_,O)),W=c}else{const T=t;D=Ce(T.length>1?T(l,{attrs:c,slots:o,emit:a}):T(l,null)),W=t.props?c:ni(c)}}catch(T){yt.length=0,at(T,e,1),D=ne(de)}let g=D;if(W&&I!==!1){const T=Object.keys(W),{shapeFlag:C}=g;T.length&&C&7&&(i&&T.some($s)&&(W=si(W,i)),g=We(g,W))}return n.dirs&&(g=We(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),D=g,Yt(K),D}function ti(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(Tt(r)){if(r.type!==de||r.children==="v-if"){if(n)return;n=r}}else return}return n}const ni=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},si=(e,t)=>{const n={};for(const s in e)(!$s(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ri(e,t,n){const{props:s,children:r,component:l}=e,{props:i,children:o,patchFlag:c}=t,a=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?vs(s,i,a):!!i;if(c&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const _=d[h];if(i[_]!==s[_]&&!on(a,_))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===i?!1:s?i?vs(s,i,a):!0:!!i;return!1}function vs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const l=s[r];if(t[l]!==e[l]&&!on(n,l))return!0}return!1}function es({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ts="components";function xo(e,t){return xr(ts,e,!0,t)||e}const br=Symbol.for("v-ndc");function Co(e){return le(e)?xr(ts,e,!1)||e:e||br}function xr(e,t,n=!0,s=!1){const r=re||oe;if(r){const l=r.type;if(e===ts){const o=oo(l,!1);if(o&&(o===t||o===Be(t)||o===Kn(Be(t))))return l}const i=Fs(r[e]||l[e],t)||Fs(r.appContext[e],t);return!i&&s?l:i}}function Fs(e,t){return e&&(e[t]||e[Be(t)]||e[Kn(Be(t))])}const li=e=>e.__isSuspense;let In=0;const ii={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,l,i,o,c,a){if(e==null)oi(t,n,s,r,l,i,o,c,a);else{if(l&&l.deps>0){t.suspense=e.suspense;return}fi(e,t,n,s,r,i,o,c,a)}},hydrate:ci,create:ns,normalize:ui},To=ii;function Ct(e,t){const n=e.props&&e.props[t];V(n)&&n()}function oi(e,t,n,s,r,l,i,o,c){const{p:a,o:{createElement:d}}=c,h=d("div"),_=e.suspense=ns(e,r,s,t,h,n,l,i,o,c);a(null,_.pendingBranch=e.ssContent,h,null,s,_,l,i),_.deps>0?(Ct(e,"onPending"),Ct(e,"onFallback"),a(null,e.ssFallback,t,n,s,null,l,i),it(_,e.ssFallback)):_.resolve(!1,!0)}function fi(e,t,n,s,r,l,i,o,{p:c,um:a,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const _=t.ssContent,v=t.ssFallback,{activeBranch:O,pendingBranch:I,isInFallback:D,isHydrating:W}=h;if(I)h.pendingBranch=_,Me(_,I)?(c(I,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0?h.resolve():D&&(W||(c(O,v,n,s,r,null,l,i,o),it(h,v)))):(h.pendingId=In++,W?(h.isHydrating=!1,h.activeBranch=I):a(I,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),D?(c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0?h.resolve():(c(O,v,n,s,r,null,l,i,o),it(h,v))):O&&Me(_,O)?(c(O,_,n,s,r,h,l,i,o),h.resolve(!0)):(c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0&&h.resolve()));else if(O&&Me(_,O))c(O,_,n,s,r,h,l,i,o),it(h,_);else if(Ct(t,"onPending"),h.pendingBranch=_,_.shapeFlag&512?h.pendingId=_.component.suspenseId:h.pendingId=In++,c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0)h.resolve();else{const{timeout:K,pendingId:g}=h;K>0?setTimeout(()=>{h.pendingId===g&&h.fallback(v)},K):K===0&&h.fallback(v)}}function ns(e,t,n,s,r,l,i,o,c,a,d=!1){const{p:h,m:_,um:v,n:O,o:{parentNode:I,remove:D}}=a;let W;const K=ai(e);K&&t?.pendingBranch&&(W=t.pendingId,t.deps++);const g=e.props?ul(e.props.timeout):void 0,T=l,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:s,hiddenContainer:r,deps:0,pendingId:In++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(b=!1,B=!1){const{vnode:A,activeBranch:L,pendingBranch:M,pendingId:$,effects:Y,parentComponent:Q,container:fe}=C;let se=!1;C.isHydrating?C.isHydrating=!1:b||(se=L&&M.transition&&M.transition.mode==="out-in",se&&(L.transition.afterLeave=()=>{$===C.pendingId&&(_(M,fe,l===T?O(L):l,0),Mn(Y))}),L&&(I(L.el)!==C.hiddenContainer&&(l=O(L)),v(L,Q,C,!0)),se||_(M,fe,l,0)),it(C,M),C.pendingBranch=null,C.isInFallback=!1;let N=C.parent,q=!1;for(;N;){if(N.pendingBranch){N.effects.push(...Y),q=!0;break}N=N.parent}!q&&!se&&Mn(Y),C.effects=[],K&&t&&t.pendingBranch&&W===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),Ct(A,"onResolve")},fallback(b){if(!C.pendingBranch)return;const{vnode:B,activeBranch:A,parentComponent:L,container:M,namespace:$}=C;Ct(B,"onFallback");const Y=O(A),Q=()=>{C.isInFallback&&(h(null,b,M,Y,L,null,$,o,c),it(C,b))},fe=b.transition&&b.transition.mode==="out-in";fe&&(A.transition.afterLeave=Q),C.isInFallback=!0,v(A,L,null,!0),fe||Q()},move(b,B,A){C.activeBranch&&_(C.activeBranch,b,B,A),C.container=b},next(){return C.activeBranch&&O(C.activeBranch)},registerDep(b,B){const A=!!C.pendingBranch;A&&C.deps++;const L=b.vnode.el;b.asyncDep.catch(M=>{at(M,b,0)}).then(M=>{if(b.isUnmounted||C.isUnmounted||C.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:$}=b;Sn(b,M,!1),L&&($.el=L);const Y=!L&&b.subTree.el;B(b,$,I(L||b.subTree.el),L?null:O(b.subTree),C,i,c),Y&&D(Y),es(b,$.el),A&&--C.deps===0&&C.resolve()})},unmount(b,B){C.isUnmounted=!0,C.activeBranch&&v(C.activeBranch,n,b,B),C.pendingBranch&&v(C.pendingBranch,n,b,B)}};return C}function ci(e,t,n,s,r,l,i,o,c){const a=t.suspense=ns(t,s,n,e.parentNode,document.createElement("div"),null,r,l,i,o,!0),d=c(e,a.pendingBranch=t.ssContent,n,a,l,i);return a.deps===0&&a.resolve(!1,!0),d}function ui(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=As(s?n.default:n),e.ssFallback=s?As(n.fallback):ne(de)}function As(e){let t;if(V(e)){const n=ut&&e._c;n&&(e._d=!1,os()),e=e(),n&&(e._d=!0,t=Ee,Vr())}return U(e)&&(e=ti(e)),e=Ce(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Cr(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Mn(e)}function it(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,es(s,r))}function ai(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const hi=Symbol.for("v-scx"),di=()=>Vt(hi);function Eo(e,t){return ss(e,null,t)}const Bt={};function bn(e,t,n){return ss(e,t,n)}function ss(e,t,{immediate:n,deep:s,flush:r,once:l,onTrack:i,onTrigger:o}=ee){if(t&&l){const b=t;t=(...B)=>{b(...B),C()}}const c=oe,a=b=>s===!0?b:Je(b,s===!1?1:void 0);let d,h=!1,_=!1;if(ae(e)?(d=()=>e.value,h=qt(e)):rt(e)?(d=()=>a(e),h=!0):U(e)?(_=!0,h=e.some(b=>rt(b)||qt(b)),d=()=>e.map(b=>{if(ae(b))return b.value;if(rt(b))return a(b);if(V(b))return $e(b,c,2)})):V(e)?t?d=()=>$e(e,c,2):d=()=>(v&&v(),ve(e,c,3,[O])):d=Te,t&&s){const b=d;d=()=>Je(b())}let v,O=b=>{v=g.onStop=()=>{$e(b,c,4),v=g.onStop=void 0}},I;if(Ft)if(O=Te,t?n&&ve(t,c,3,[d(),_?[]:void 0,O]):d(),r==="sync"){const b=di();I=b.__watcherHandles||(b.__watcherHandles=[])}else return Te;let D=_?new Array(e.length).fill(Bt):Bt;const W=()=>{if(!(!g.active||!g.dirty))if(t){const b=g.run();(s||h||(_?b.some((B,A)=>Ke(B,D[A])):Ke(b,D)))&&(v&&v(),ve(t,c,3,[b,D===Bt?void 0:_&&D[0]===Bt?[]:D,O]),D=b)}else g.run()};W.allowRecurse=!!t;let K;r==="sync"?K=W:r==="post"?K=()=>ge(W,c&&c.suspense):(W.pre=!0,c&&(W.id=c.uid),K=()=>ln(W));const g=new Wn(d,Te,K),T=bl(),C=()=>{g.stop(),T&&$n(T.effects,g)};return t?n?W():D=g.run():r==="post"?ge(g.run.bind(g),c&&c.suspense):g.run(),I&&I.push(C),C}function gi(e,t,n){const s=this.proxy,r=le(e)?e.includes(".")?Tr(s,e):()=>s[e]:e.bind(s,s);let l;V(t)?l=t:(l=t.handler,n=t);const i=vt(this),o=ss(r,l.bind(s),n);return i(),o}function Tr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Je(e,t,n=0,s){if(!z(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ae(e))Je(e.value,t,n,s);else if(U(e))for(let r=0;r<e.length;r++)Je(e[r],t,n,s);else if(Ds(e)||st(e))e.forEach(r=>{Je(r,t,n,s)});else if(qs(e))for(const r in e)Je(e[r],t,n,s);return e}function wo(e,t){if(re===null)return e;const n=un(re)||re.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,i,o,c=ee]=t[r];l&&(V(l)&&(l={mounted:l,updated:l}),l.deep&&Je(i),s.push({dir:l,instance:n,value:i,oldValue:void 0,arg:o,modifiers:c}))}return e}function Re(e,t,n,s){const r=e.dirs,l=t&&t.dirs;for(let i=0;i<r.length;i++){const o=r[i];l&&(o.oldValue=l[i].value);let c=o.dir[s];c&&(Xe(),ve(c,n,8,[e.el,o,e,t]),ze())}}const Ue=Symbol("_leaveCb"),Nt=Symbol("_enterCb");function pi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fr(()=>{e.isMounted=!0}),Ar(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:be,onEnter:be,onAfterEnter:be,onEnterCancelled:be,onBeforeLeave:be,onLeave:be,onAfterLeave:be,onLeaveCancelled:be,onBeforeAppear:be,onAppear:be,onAfterAppear:be,onAppearCancelled:be},yi={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=no(),s=pi();let r;return()=>{const l=t.default&&wr(t.default(),!0);if(!l||!l.length)return;let i=l[0];if(l.length>1){for(const I of l)if(I.type!==de){i=I;break}}const o=Z(e),{mode:c}=o;if(s.isLeaving)return xn(i);const a=Rs(i);if(!a)return xn(i);const d=Pn(a,o,s,n);Ln(a,d);const h=n.subTree,_=h&&Rs(h);let v=!1;const{getTransitionKey:O}=a.type;if(O){const I=O();r===void 0?r=I:I!==r&&(r=I,v=!0)}if(_&&_.type!==de&&(!Me(a,_)||v)){const I=Pn(_,o,s,n);if(Ln(_,I),c==="out-in")return s.isLeaving=!0,I.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},xn(i);c==="in-out"&&a.type!==de&&(I.delayLeave=(D,W,K)=>{const g=Er(s,_);g[String(_.key)]=_,D[Ue]=()=>{W(),D[Ue]=void 0,delete d.delayedLeave},d.delayedLeave=K})}return i}}},vo=yi;function Er(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Pn(e,t,n,s){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:o,onEnter:c,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:h,onLeave:_,onAfterLeave:v,onLeaveCancelled:O,onBeforeAppear:I,onAppear:D,onAfterAppear:W,onAppearCancelled:K}=t,g=String(e.key),T=Er(n,e),C=(A,L)=>{A&&ve(A,s,9,L)},b=(A,L)=>{const M=L[1];C(A,L),U(A)?A.every($=>$.length<=1)&&M():A.length<=1&&M()},B={mode:l,persisted:i,beforeEnter(A){let L=o;if(!n.isMounted)if(r)L=I||o;else return;A[Ue]&&A[Ue](!0);const M=T[g];M&&Me(e,M)&&M.el[Ue]&&M.el[Ue](),C(L,[A])},enter(A){let L=c,M=a,$=d;if(!n.isMounted)if(r)L=D||c,M=W||a,$=K||d;else return;let Y=!1;const Q=A[Nt]=fe=>{Y||(Y=!0,fe?C($,[A]):C(M,[A]),B.delayedLeave&&B.delayedLeave(),A[Nt]=void 0)};L?b(L,[A,Q]):Q()},leave(A,L){const M=String(e.key);if(A[Nt]&&A[Nt](!0),n.isUnmounting)return L();C(h,[A]);let $=!1;const Y=A[Ue]=Q=>{$||($=!0,L(),Q?C(O,[A]):C(v,[A]),A[Ue]=void 0,T[M]===e&&delete T[M])};T[M]=e,_?b(_,[A,Y]):Y()},clone(A){return Pn(A,t,n,s)}};return B}function xn(e){if(wt(e))return e=We(e),e.children=null,e}function Rs(e){return wt(e)?e.children?e.children[0]:void 0:e}function Ln(e,t){e.shapeFlag&6&&e.component?Ln(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wr(e,t=!1,n){let s=[],r=0;for(let l=0;l<e.length;l++){let i=e[l];const o=n==null?i.key:String(n)+String(i.key!=null?i.key:l);i.type===pe?(i.patchFlag&128&&r++,s=s.concat(wr(i.children,t,o))):(t||i.type!==de)&&s.push(o!=null?We(i,{key:o}):i)}if(r>1)for(let l=0;l<s.length;l++)s[l].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function mi(e,t){return V(e)?ue({name:e.name},t,{setup:e}):e}const ot=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fo(e){V(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:l,suspensible:i=!0,onError:o}=e;let c=null,a,d=0;const h=()=>(d++,c=null,_()),_=()=>{let v;return c||(v=c=t().catch(O=>{if(O=O instanceof Error?O:new Error(String(O)),o)return new Promise((I,D)=>{o(O,()=>I(h()),()=>D(O),d+1)});throw O}).then(O=>v!==c&&c?c:(O&&(O.__esModule||O[Symbol.toStringTag]==="Module")&&(O=O.default),a=O,O)))};return mi({name:"AsyncComponentWrapper",__asyncLoader:_,get __asyncResolved(){return a},setup(){const v=oe;if(a)return()=>Cn(a,v);const O=K=>{c=null,at(K,v,13,!s)};if(i&&v.suspense||Ft)return _().then(K=>()=>Cn(K,v)).catch(K=>(O(K),()=>s?ne(s,{error:K}):null));const I=St(!1),D=St(),W=St(!!r);return r&&setTimeout(()=>{W.value=!1},r),l!=null&&setTimeout(()=>{if(!I.value&&!D.value){const K=new Error(`Async component timed out after ${l}ms.`);O(K),D.value=K}},l),_().then(()=>{I.value=!0,v.parent&&wt(v.parent.vnode)&&(v.parent.effect.dirty=!0,ln(v.parent.update))}).catch(K=>{O(K),D.value=K}),()=>{if(I.value&&a)return Cn(a,v);if(D.value&&s)return ne(s,{error:D.value});if(n&&!W.value)return ne(n)}}})}function Cn(e,t){const{ref:n,props:s,children:r,ce:l}=t.vnode,i=ne(e,s,r);return i.ref=n,i.ce=l,delete t.vnode.ce,i}const wt=e=>e.type.__isKeepAlive;function bi(e,t){vr(e,"a",t)}function xi(e,t){vr(e,"da",t)}function vr(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(fn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)wt(r.parent.vnode)&&Ci(s,t,n,r),r=r.parent}}function Ci(e,t,n,s){const r=fn(t,e,s,!0);Rr(()=>{$n(s[t],r)},n)}function fn(e,t,n=oe,s=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Xe();const o=vt(n),c=ve(t,n,e,i);return o(),ze(),c});return s?r.unshift(l):r.push(l),l}}const Ne=e=>(t,n=oe)=>(!Ft||e==="sp")&&fn(e,(...s)=>t(...s),n),Ti=Ne("bm"),Fr=Ne("m"),Ei=Ne("bu"),wi=Ne("u"),Ar=Ne("bum"),Rr=Ne("um"),vi=Ne("sp"),Fi=Ne("rtg"),Ai=Ne("rtc");function Ri(e,t=oe){fn("ec",e,t)}function Ao(e,t,n,s){let r;const l=n&&n[s];if(U(e)||le(e)){r=new Array(e.length);for(let i=0,o=e.length;i<o;i++)r[i]=t(e[i],i,void 0,l&&l[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,l&&l[i])}else if(z(e))if(e[Symbol.iterator])r=Array.from(e,(i,o)=>t(i,o,void 0,l&&l[o]));else{const i=Object.keys(e);r=new Array(i.length);for(let o=0,c=i.length;o<c;o++){const a=i[o];r[o]=t(e[a],a,o,l&&l[o])}}else r=[];return n&&(n[s]=r),r}function Ro(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(U(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const l=s.fn(...r);return l&&(l.key=s.key),l}:s.fn)}return e}function Oo(e,t,n={},s,r){if(re.isCE||re.parent&&ot(re.parent)&&re.parent.isCE)return t!=="default"&&(n.name=t),ne("slot",n,s&&s());let l=e[t];l&&l._c&&(l._d=!1),os();const i=l&&Or(l(n)),o=Dr(pe,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o}function Or(e){return e.some(t=>Tt(t)?!(t.type===de||t.type===pe&&!Or(t.children)):!0)?e:null}const Bn=e=>e?Gr(e)?un(e)||e.proxy:Bn(e.parent):null,pt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ln(e.update)}),$nextTick:e=>e.n||(e.n=Jl.bind(e.proxy)),$watch:e=>gi.bind(e)}),Tn=(e,t)=>e!==ee&&!e.__isScriptSetup&&J(e,t),Oi={get({_:e},t){const{ctx:n,setupState:s,data:r,props:l,accessCache:i,type:o,appContext:c}=e;let a;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(Tn(s,t))return i[t]=1,s[t];if(r!==ee&&J(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&J(a,t))return i[t]=3,l[t];if(n!==ee&&J(n,t))return i[t]=4,n[t];Nn&&(i[t]=0)}}const d=pt[t];let h,_;if(d)return t==="$attrs"&&_e(e,"get",t),d(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ee&&J(n,t))return i[t]=4,n[t];if(_=c.config.globalProperties,J(_,t))return _[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:l}=e;return Tn(r,t)?(r[t]=n,!0):s!==ee&&J(s,t)?(s[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:l}},i){let o;return!!n[i]||e!==ee&&J(e,i)||Tn(t,i)||(o=l[0])&&J(o,i)||J(s,i)||J(pt,i)||J(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Nn=!0;function Mi(e){const t=rs(e),n=e.proxy,s=e.ctx;Nn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:o,provide:c,inject:a,created:d,beforeMount:h,mounted:_,beforeUpdate:v,updated:O,activated:I,deactivated:D,beforeDestroy:W,beforeUnmount:K,destroyed:g,unmounted:T,render:C,renderTracked:b,renderTriggered:B,errorCaptured:A,serverPrefetch:L,expose:M,inheritAttrs:$,components:Y,directives:Q,filters:fe}=t;if(a&&Ii(a,s,null),i)for(const q in i){const j=i[q];V(j)&&(s[q]=j.bind(n))}if(r){const q=r.call(n,n);z(q)&&(e.data=Zn(q))}if(Nn=!0,l)for(const q in l){const j=l[q],Ie=V(j)?j.bind(n,n):V(j.get)?j.get.bind(n,n):Te,At=!V(j)&&V(j.set)?j.set.bind(n):Te,qe=co({get:Ie,set:At});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Fe=>qe.value=Fe})}if(o)for(const q in o)Mr(o[q],s,n,q);if(c){const q=V(c)?c.call(n):c;Reflect.ownKeys(q).forEach(j=>{ji(j,q[j])})}d&&Ms(d,e,"c");function N(q,j){U(j)?j.forEach(Ie=>q(Ie.bind(n))):j&&q(j.bind(n))}if(N(Ti,h),N(Fr,_),N(Ei,v),N(wi,O),N(bi,I),N(xi,D),N(Ri,A),N(Ai,b),N(Fi,B),N(Ar,K),N(Rr,T),N(vi,L),U(M))if(M.length){const q=e.exposed||(e.exposed={});M.forEach(j=>{Object.defineProperty(q,j,{get:()=>n[j],set:Ie=>n[j]=Ie})})}else e.exposed||(e.exposed={});C&&e.render===Te&&(e.render=C),$!=null&&(e.inheritAttrs=$),Y&&(e.components=Y),Q&&(e.directives=Q)}function Ii(e,t,n=Te){U(e)&&(e=kn(e));for(const s in e){const r=e[s];let l;z(r)?"default"in r?l=Vt(r.from||s,r.default,!0):l=Vt(r.from||s):l=Vt(r),ae(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[s]=l}}function Ms(e,t,n){ve(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mr(e,t,n,s){const r=s.includes(".")?Tr(n,s):()=>n[s];if(le(e)){const l=t[e];V(l)&&bn(r,l)}else if(V(e))bn(r,e.bind(n));else if(z(e))if(U(e))e.forEach(l=>Mr(l,t,n,s));else{const l=V(e.handler)?e.handler.bind(n):t[e.handler];V(l)&&bn(r,l,e)}}function rs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,o=l.get(t);let c;return o?c=o:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Jt(c,a,i,!0)),Jt(c,t,i)),z(t)&&l.set(t,c),c}function Jt(e,t,n,s=!1){const{mixins:r,extends:l}=t;l&&Jt(e,l,n,!0),r&&r.forEach(i=>Jt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const o=Pi[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Pi={data:Is,props:Ps,emits:Ps,methods:dt,computed:dt,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:dt,directives:dt,watch:Bi,provide:Is,inject:Li};function Is(e,t){return t?e?function(){return ue(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Li(e,t){return dt(kn(e),kn(t))}function kn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function he(e,t){return e?[...new Set([].concat(e,t))]:t}function dt(e,t){return e?ue(Object.create(null),e,t):t}function Ps(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ue(Object.create(null),Os(e),Os(t??{})):t}function Bi(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const s in t)n[s]=he(e[s],t[s]);return n}function Ir(){return{app:null,config:{isNativeTag:rl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ni=0;function ki(e,t){return function(s,r=null){V(s)||(s=ue({},s)),r!=null&&!z(r)&&(r=null);const l=Ir(),i=new WeakSet;let o=!1;const c=l.app={_uid:Ni++,_component:s,_props:r,_container:null,_context:l,_instance:null,version:uo,get config(){return l.config},set config(a){},use(a,...d){return i.has(a)||(a&&V(a.install)?(i.add(a),a.install(c,...d)):V(a)&&(i.add(a),a(c,...d))),c},mixin(a){return l.mixins.includes(a)||l.mixins.push(a),c},component(a,d){return d?(l.components[a]=d,c):l.components[a]},directive(a,d){return d?(l.directives[a]=d,c):l.directives[a]},mount(a,d,h){if(!o){const _=ne(s,r);return _.appContext=l,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(_,a):e(_,a,h),o=!0,c._container=a,a.__vue_app__=c,un(_.component)||_.component.proxy}},unmount(){o&&(e(null,c._container),delete c._container.__vue_app__)},provide(a,d){return l.provides[a]=d,c},runWithContext(a){Zt=c;try{return a()}finally{Zt=null}}};return c}}let Zt=null;function ji(e,t){if(oe){let n=oe.provides;const s=oe.parent&&oe.parent.provides;s===n&&(n=oe.provides=Object.create(s)),n[e]=t}}function Vt(e,t,n=!1){const s=oe||re;if(s||Zt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Zt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&V(t)?t.call(s&&s.proxy):t}}function Hi(e,t,n,s=!1){const r={},l={};Kt(l,cn,1),e.propsDefaults=Object.create(null),Pr(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Sl(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Ui(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,o=Z(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let _=d[h];if(on(e.emitsOptions,_))continue;const v=t[_];if(c)if(J(l,_))v!==l[_]&&(l[_]=v,a=!0);else{const O=Be(_);r[O]=jn(c,o,O,v,e,!1)}else v!==l[_]&&(l[_]=v,a=!0)}}}else{Pr(e,t,r,l)&&(a=!0);let d;for(const h in o)(!t||!J(t,h)&&((d=tn(h))===h||!J(t,d)))&&(c?n&&(n[h]!==void 0||n[d]!==void 0)&&(r[h]=jn(c,o,h,void 0,e,!0)):delete r[h]);if(l!==o)for(const h in l)(!t||!J(t,h))&&(delete l[h],a=!0)}a&&Le(e,"set","$attrs")}function Pr(e,t,n,s){const[r,l]=e.propsOptions;let i=!1,o;if(t)for(let c in t){if(gt(c))continue;const a=t[c];let d;r&&J(r,d=Be(c))?!l||!l.includes(d)?n[d]=a:(o||(o={}))[d]=a:on(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,i=!0)}if(l){const c=Z(n),a=o||ee;for(let d=0;d<l.length;d++){const h=l[d];n[h]=jn(r,c,h,a[h],e,!J(a,h))}}return i}function jn(e,t,n,s,r,l){const i=e[n];if(i!=null){const o=J(i,"default");if(o&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&V(c)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=vt(r);s=a[n]=c.call(null,t),d()}}else s=c}i[0]&&(l&&!o?s=!1:i[1]&&(s===""||s===tn(n))&&(s=!0))}return s}function Lr(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const l=e.props,i={},o=[];let c=!1;if(!V(e)){const d=h=>{c=!0;const[_,v]=Lr(h,t,!0);ue(i,_),v&&o.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return z(e)&&s.set(e,nt),nt;if(U(l))for(let d=0;d<l.length;d++){const h=Be(l[d]);Ls(h)&&(i[h]=ee)}else if(l)for(const d in l){const h=Be(d);if(Ls(h)){const _=l[d],v=i[h]=U(_)||V(_)?{type:_}:ue({},_);if(v){const O=ks(Boolean,v.type),I=ks(String,v.type);v[0]=O>-1,v[1]=I<0||O<I,(O>-1||J(v,"default"))&&o.push(h)}}}const a=[i,o];return z(e)&&s.set(e,a),a}function Ls(e){return e[0]!=="$"}function Bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ns(e,t){return Bs(e)===Bs(t)}function ks(e,t){return U(t)?t.findIndex(n=>Ns(n,e)):V(t)&&Ns(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",ls=e=>U(e)?e.map(Ce):[Ce(e)],Si=(e,t,n)=>{if(t._n)return t;const s=ei((...r)=>ls(t(...r)),n);return s._c=!1,s},Nr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Br(r))continue;const l=e[r];if(V(l))t[r]=Si(r,l,s);else if(l!=null){const i=ls(l);t[r]=()=>i}}},kr=(e,t)=>{const n=ls(t);e.slots.default=()=>n},Vi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Z(t),Kt(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&kr(e,t);Kt(e.slots,cn,1)},$i=(e,t,n)=>{const{vnode:s,slots:r}=e;let l=!0,i=ee;if(s.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:(ue(r,t),!n&&o===1&&delete r._):(l=!t.$stable,Nr(t,r)),i=t}else t&&(kr(e,t),i={default:1});if(l)for(const o in r)!Br(o)&&i[o]==null&&delete r[o]};function Qt(e,t,n,s,r=!1){if(U(e)){e.forEach((_,v)=>Qt(_,t&&(U(t)?t[v]:t),n,s,r));return}if(ot(s)&&!r)return;const l=s.shapeFlag&4?un(s.component)||s.component.proxy:s.el,i=r?null:l,{i:o,r:c}=e,a=t&&t.r,d=o.refs===ee?o.refs={}:o.refs,h=o.setupState;if(a!=null&&a!==c&&(le(a)?(d[a]=null,J(h,a)&&(h[a]=null)):ae(a)&&(a.value=null)),V(c))$e(c,o,12,[i,d]);else{const _=le(c),v=ae(c);if(_||v){const O=()=>{if(e.f){const I=_?J(h,c)?h[c]:d[c]:c.value;r?U(I)&&$n(I,l):U(I)?I.includes(l)||I.push(l):_?(d[c]=[l],J(h,c)&&(h[c]=d[c])):(c.value=[l],e.k&&(d[e.k]=c.value))}else _?(d[c]=i,J(h,c)&&(h[c]=i)):v&&(c.value=i,e.k&&(d[e.k]=i))};i?(O.id=-1,ge(O,n)):O()}}}let je=!1;const Di=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Ki=e=>e.namespaceURI.includes("MathML"),kt=e=>{if(Di(e))return"svg";if(Ki(e))return"mathml"},jt=e=>e.nodeType===8;function Wi(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:l,parentNode:i,remove:o,insert:c,createComment:a}}=e,d=(g,T)=>{if(!T.hasChildNodes()){n(null,g,T),Gt(),T._vnode=g;return}je=!1,h(T.firstChild,g,null,null,null),Gt(),T._vnode=g,je&&console.error("Hydration completed but contains mismatches.")},h=(g,T,C,b,B,A=!1)=>{const L=jt(g)&&g.data==="[",M=()=>I(g,T,C,b,B,L),{type:$,ref:Y,shapeFlag:Q,patchFlag:fe}=T;let se=g.nodeType;T.el=g,fe===-2&&(A=!1,T.dynamicChildren=null);let N=null;switch($){case ct:se!==3?T.children===""?(c(T.el=r(""),i(g),g),N=g):N=M():(g.data!==T.children&&(je=!0,g.data=T.children),N=l(g));break;case de:K(g)?(N=l(g),W(T.el=g.content.firstChild,g,C)):se!==8||L?N=M():N=l(g);break;case $t:if(L&&(g=l(g),se=g.nodeType),se===1||se===3){N=g;const q=!T.children.length;for(let j=0;j<T.staticCount;j++)q&&(T.children+=N.nodeType===1?N.outerHTML:N.data),j===T.staticCount-1&&(T.anchor=N),N=l(N);return L?l(N):N}else M();break;case pe:L?N=O(g,T,C,b,B,A):N=M();break;default:if(Q&1)(se!==1||T.type.toLowerCase()!==g.tagName.toLowerCase())&&!K(g)?N=M():N=_(g,T,C,b,B,A);else if(Q&6){T.slotScopeIds=B;const q=i(g);if(L?N=D(g):jt(g)&&g.data==="teleport start"?N=D(g,g.data,"teleport end"):N=l(g),t(T,q,null,C,b,kt(q),A),ot(T)){let j;L?(j=ne(pe),j.anchor=N?N.previousSibling:q.lastChild):j=g.nodeType===3?qr(""):ne("div"),j.el=g,T.component.subTree=j}}else Q&64?se!==8?N=M():N=T.type.hydrate(g,T,C,b,B,A,e,v):Q&128&&(N=T.type.hydrate(g,T,C,b,kt(i(g)),B,A,e,h))}return Y!=null&&Qt(Y,null,b,T),N},_=(g,T,C,b,B,A)=>{A=A||!!T.dynamicChildren;const{type:L,props:M,patchFlag:$,shapeFlag:Y,dirs:Q,transition:fe}=T,se=L==="input"||L==="option";if(se||$!==-1){Q&&Re(T,null,C,"created");let N=!1;if(K(g)){N=Hr(b,fe)&&C&&C.vnode.props&&C.vnode.props.appear;const j=g.content.firstChild;N&&fe.beforeEnter(j),W(j,g,C),T.el=g=j}if(Y&16&&!(M&&(M.innerHTML||M.textContent))){let j=v(g.firstChild,T,g,C,b,B,A);for(;j;){je=!0;const Ie=j;j=j.nextSibling,o(Ie)}}else Y&8&&g.textContent!==T.children&&(je=!0,g.textContent=T.children);if(M)if(se||!A||$&48)for(const j in M)(se&&(j.endsWith("value")||j==="indeterminate")||zt(j)&&!gt(j)||j[0]===".")&&s(g,j,null,M[j],void 0,void 0,C);else M.onClick&&s(g,"onClick",null,M.onClick,void 0,void 0,C);let q;(q=M&&M.onVnodeBeforeMount)&&xe(q,C,T),Q&&Re(T,null,C,"beforeMount"),((q=M&&M.onVnodeMounted)||Q||N)&&Cr(()=>{q&&xe(q,C,T),N&&fe.enter(g),Q&&Re(T,null,C,"mounted")},b)}return g.nextSibling},v=(g,T,C,b,B,A,L)=>{L=L||!!T.dynamicChildren;const M=T.children,$=M.length;for(let Y=0;Y<$;Y++){const Q=L?M[Y]:M[Y]=Ce(M[Y]);if(g)g=h(g,Q,b,B,A,L);else{if(Q.type===ct&&!Q.children)continue;je=!0,n(null,Q,C,null,b,B,kt(C),A)}}return g},O=(g,T,C,b,B,A)=>{const{slotScopeIds:L}=T;L&&(B=B?B.concat(L):L);const M=i(g),$=v(l(g),T,M,C,b,B,A);return $&&jt($)&&$.data==="]"?l(T.anchor=$):(je=!0,c(T.anchor=a("]"),M,$),$)},I=(g,T,C,b,B,A)=>{if(je=!0,T.el=null,A){const $=D(g);for(;;){const Y=l(g);if(Y&&Y!==$)o(Y);else break}}const L=l(g),M=i(g);return o(g),n(null,T,M,L,C,b,kt(M),B),L},D=(g,T="[",C="]")=>{let b=0;for(;g;)if(g=l(g),g&&jt(g)&&(g.data===T&&b++,g.data===C)){if(b===0)return l(g);b--}return g},W=(g,T,C)=>{const b=T.parentNode;b&&b.replaceChild(g,T);let B=C;for(;B;)B.vnode.el===T&&(B.vnode.el=B.subTree.el=g),B=B.parent},K=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[d,h]}const ge=Cr;function Mo(e){return jr(e)}function Io(e){return jr(e,Wi)}function jr(e,t){const n=Gs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:l,createElement:i,createText:o,createComment:c,setText:a,setElementText:d,parentNode:h,nextSibling:_,setScopeId:v=Te,insertStaticContent:O}=e,I=(f,u,p,y=null,m=null,w=null,R=void 0,E=null,F=!!u.dynamicChildren)=>{if(f===u)return;f&&!Me(f,u)&&(y=Rt(f),Fe(f,m,w,!0),f=null),u.patchFlag===-2&&(F=!1,u.dynamicChildren=null);const{type:x,ref:P,shapeFlag:H}=u;switch(x){case ct:D(f,u,p,y);break;case de:W(f,u,p,y);break;case $t:f==null&&K(u,p,y,R);break;case pe:Y(f,u,p,y,m,w,R,E,F);break;default:H&1?C(f,u,p,y,m,w,R,E,F):H&6?Q(f,u,p,y,m,w,R,E,F):(H&64||H&128)&&x.process(f,u,p,y,m,w,R,E,F,et)}P!=null&&m&&Qt(P,f&&f.ref,w,u||f,!u)},D=(f,u,p,y)=>{if(f==null)s(u.el=o(u.children),p,y);else{const m=u.el=f.el;u.children!==f.children&&a(m,u.children)}},W=(f,u,p,y)=>{f==null?s(u.el=c(u.children||""),p,y):u.el=f.el},K=(f,u,p,y)=>{[f.el,f.anchor]=O(f.children,u,p,y,f.el,f.anchor)},g=({el:f,anchor:u},p,y)=>{let m;for(;f&&f!==u;)m=_(f),s(f,p,y),f=m;s(u,p,y)},T=({el:f,anchor:u})=>{let p;for(;f&&f!==u;)p=_(f),r(f),f=p;r(u)},C=(f,u,p,y,m,w,R,E,F)=>{u.type==="svg"?R="svg":u.type==="math"&&(R="mathml"),f==null?b(u,p,y,m,w,R,E,F):L(f,u,m,w,R,E,F)},b=(f,u,p,y,m,w,R,E)=>{let F,x;const{props:P,shapeFlag:H,transition:k,dirs:S}=f;if(F=f.el=i(f.type,w,P&&P.is,P),H&8?d(F,f.children):H&16&&A(f.children,F,null,y,m,En(f,w),R,E),S&&Re(f,null,y,"created"),B(F,f,f.scopeId,R,y),P){for(const X in P)X!=="value"&&!gt(X)&&l(F,X,null,P[X],w,f.children,y,m,Pe);"value"in P&&l(F,"value",null,P.value,w),(x=P.onVnodeBeforeMount)&&xe(x,y,f)}S&&Re(f,null,y,"beforeMount");const G=Hr(m,k);G&&k.beforeEnter(F),s(F,u,p),((x=P&&P.onVnodeMounted)||G||S)&&ge(()=>{x&&xe(x,y,f),G&&k.enter(F),S&&Re(f,null,y,"mounted")},m)},B=(f,u,p,y,m)=>{if(p&&v(f,p),y)for(let w=0;w<y.length;w++)v(f,y[w]);if(m){let w=m.subTree;if(u===w){const R=m.vnode;B(f,R,R.scopeId,R.slotScopeIds,m.parent)}}},A=(f,u,p,y,m,w,R,E,F=0)=>{for(let x=F;x<f.length;x++){const P=f[x]=E?Se(f[x]):Ce(f[x]);I(null,P,u,p,y,m,w,R,E)}},L=(f,u,p,y,m,w,R)=>{const E=u.el=f.el;let{patchFlag:F,dynamicChildren:x,dirs:P}=u;F|=f.patchFlag&16;const H=f.props||ee,k=u.props||ee;let S;if(p&&Ge(p,!1),(S=k.onVnodeBeforeUpdate)&&xe(S,p,u,f),P&&Re(u,f,p,"beforeUpdate"),p&&Ge(p,!0),x?M(f.dynamicChildren,x,E,p,y,En(u,m),w):R||j(f,u,E,null,p,y,En(u,m),w,!1),F>0){if(F&16)$(E,u,H,k,p,y,m);else if(F&2&&H.class!==k.class&&l(E,"class",null,k.class,m),F&4&&l(E,"style",H.style,k.style,m),F&8){const G=u.dynamicProps;for(let X=0;X<G.length;X++){const te=G[X],ie=H[te],we=k[te];(we!==ie||te==="value")&&l(E,te,ie,we,m,f.children,p,y,Pe)}}F&1&&f.children!==u.children&&d(E,u.children)}else!R&&x==null&&$(E,u,H,k,p,y,m);((S=k.onVnodeUpdated)||P)&&ge(()=>{S&&xe(S,p,u,f),P&&Re(u,f,p,"updated")},y)},M=(f,u,p,y,m,w,R)=>{for(let E=0;E<u.length;E++){const F=f[E],x=u[E],P=F.el&&(F.type===pe||!Me(F,x)||F.shapeFlag&70)?h(F.el):p;I(F,x,P,null,y,m,w,R,!0)}},$=(f,u,p,y,m,w,R)=>{if(p!==y){if(p!==ee)for(const E in p)!gt(E)&&!(E in y)&&l(f,E,p[E],null,R,u.children,m,w,Pe);for(const E in y){if(gt(E))continue;const F=y[E],x=p[E];F!==x&&E!=="value"&&l(f,E,x,F,R,u.children,m,w,Pe)}"value"in y&&l(f,"value",p.value,y.value,R)}},Y=(f,u,p,y,m,w,R,E,F)=>{const x=u.el=f?f.el:o(""),P=u.anchor=f?f.anchor:o("");let{patchFlag:H,dynamicChildren:k,slotScopeIds:S}=u;S&&(E=E?E.concat(S):S),f==null?(s(x,p,y),s(P,p,y),A(u.children||[],p,P,m,w,R,E,F)):H>0&&H&64&&k&&f.dynamicChildren?(M(f.dynamicChildren,k,p,m,w,R,E),(u.key!=null||m&&u===m.subTree)&&is(f,u,!0)):j(f,u,p,P,m,w,R,E,F)},Q=(f,u,p,y,m,w,R,E,F)=>{u.slotScopeIds=E,f==null?u.shapeFlag&512?m.ctx.activate(u,p,y,R,F):fe(u,p,y,m,w,R,F):se(f,u,F)},fe=(f,u,p,y,m,w,R)=>{const E=f.component=to(f,y,m);if(wt(f)&&(E.ctx.renderer=et),so(E),E.asyncDep){if(m&&m.registerDep(E,N),!f.el){const F=E.subTree=ne(de);W(null,F,u,p)}}else N(E,f,u,p,m,w,R)},se=(f,u,p)=>{const y=u.component=f.component;if(ri(f,u,p))if(y.asyncDep&&!y.asyncResolved){q(y,u,p);return}else y.next=u,Ql(y.update),y.effect.dirty=!0,y.update();else u.el=f.el,y.vnode=u},N=(f,u,p,y,m,w,R)=>{const E=()=>{if(f.isMounted){let{next:P,bu:H,u:k,parent:S,vnode:G}=f;{const tt=Ur(f);if(tt){P&&(P.el=G.el,q(f,P,R)),tt.asyncDep.then(()=>{f.isUnmounted||E()});return}}let X=P,te;Ge(f,!1),P?(P.el=G.el,q(f,P,R)):P=G,H&&_n(H),(te=P.props&&P.props.onVnodeBeforeUpdate)&&xe(te,S,P,G),Ge(f,!0);const ie=mn(f),we=f.subTree;f.subTree=ie,I(we,ie,h(we.el),Rt(we),f,m,w),P.el=ie.el,X===null&&es(f,ie.el),k&&ge(k,m),(te=P.props&&P.props.onVnodeUpdated)&&ge(()=>xe(te,S,P,G),m)}else{let P;const{el:H,props:k}=u,{bm:S,m:G,parent:X}=f,te=ot(u);if(Ge(f,!1),S&&_n(S),!te&&(P=k&&k.onVnodeBeforeMount)&&xe(P,X,u),Ge(f,!0),H&&dn){const ie=()=>{f.subTree=mn(f),dn(H,f.subTree,f,m,null)};te?u.type.__asyncLoader().then(()=>!f.isUnmounted&&ie()):ie()}else{const ie=f.subTree=mn(f);I(null,ie,p,y,f,m,w),u.el=ie.el}if(G&&ge(G,m),!te&&(P=k&&k.onVnodeMounted)){const ie=u;ge(()=>xe(P,X,ie),m)}(u.shapeFlag&256||X&&ot(X.vnode)&&X.vnode.shapeFlag&256)&&f.a&&ge(f.a,m),f.isMounted=!0,u=p=y=null}},F=f.effect=new Wn(E,Te,()=>ln(x),f.scope),x=f.update=()=>{F.dirty&&F.run()};x.id=f.uid,Ge(f,!0),x()},q=(f,u,p)=>{u.component=f;const y=f.vnode.props;f.vnode=u,f.next=null,Ui(f,u.props,y,p),$i(f,u.children,p),Xe(),ws(f),ze()},j=(f,u,p,y,m,w,R,E,F=!1)=>{const x=f&&f.children,P=f?f.shapeFlag:0,H=u.children,{patchFlag:k,shapeFlag:S}=u;if(k>0){if(k&128){At(x,H,p,y,m,w,R,E,F);return}else if(k&256){Ie(x,H,p,y,m,w,R,E,F);return}}S&8?(P&16&&Pe(x,m,w),H!==x&&d(p,H)):P&16?S&16?At(x,H,p,y,m,w,R,E,F):Pe(x,m,w,!0):(P&8&&d(p,""),S&16&&A(H,p,y,m,w,R,E,F))},Ie=(f,u,p,y,m,w,R,E,F)=>{f=f||nt,u=u||nt;const x=f.length,P=u.length,H=Math.min(x,P);let k;for(k=0;k<H;k++){const S=u[k]=F?Se(u[k]):Ce(u[k]);I(f[k],S,p,null,m,w,R,E,F)}x>P?Pe(f,m,w,!0,!1,H):A(u,p,y,m,w,R,E,F,H)},At=(f,u,p,y,m,w,R,E,F)=>{let x=0;const P=u.length;let H=f.length-1,k=P-1;for(;x<=H&&x<=k;){const S=f[x],G=u[x]=F?Se(u[x]):Ce(u[x]);if(Me(S,G))I(S,G,p,null,m,w,R,E,F);else break;x++}for(;x<=H&&x<=k;){const S=f[H],G=u[k]=F?Se(u[k]):Ce(u[k]);if(Me(S,G))I(S,G,p,null,m,w,R,E,F);else break;H--,k--}if(x>H){if(x<=k){const S=k+1,G=S<P?u[S].el:y;for(;x<=k;)I(null,u[x]=F?Se(u[x]):Ce(u[x]),p,G,m,w,R,E,F),x++}}else if(x>k)for(;x<=H;)Fe(f[x],m,w,!0),x++;else{const S=x,G=x,X=new Map;for(x=G;x<=k;x++){const ye=u[x]=F?Se(u[x]):Ce(u[x]);ye.key!=null&&X.set(ye.key,x)}let te,ie=0;const we=k-G+1;let tt=!1,as=0;const ht=new Array(we);for(x=0;x<we;x++)ht[x]=0;for(x=S;x<=H;x++){const ye=f[x];if(ie>=we){Fe(ye,m,w,!0);continue}let Ae;if(ye.key!=null)Ae=X.get(ye.key);else for(te=G;te<=k;te++)if(ht[te-G]===0&&Me(ye,u[te])){Ae=te;break}Ae===void 0?Fe(ye,m,w,!0):(ht[Ae-G]=x+1,Ae>=as?as=Ae:tt=!0,I(ye,u[Ae],p,null,m,w,R,E,F),ie++)}const hs=tt?qi(ht):nt;for(te=hs.length-1,x=we-1;x>=0;x--){const ye=G+x,Ae=u[ye],ds=ye+1<P?u[ye+1].el:y;ht[x]===0?I(null,Ae,p,ds,m,w,R,E,F):tt&&(te<0||x!==hs[te]?qe(Ae,p,ds,2):te--)}}},qe=(f,u,p,y,m=null)=>{const{el:w,type:R,transition:E,children:F,shapeFlag:x}=f;if(x&6){qe(f.component.subTree,u,p,y);return}if(x&128){f.suspense.move(u,p,y);return}if(x&64){R.move(f,u,p,et);return}if(R===pe){s(w,u,p);for(let H=0;H<F.length;H++)qe(F[H],u,p,y);s(f.anchor,u,p);return}if(R===$t){g(f,u,p);return}if(y!==2&&x&1&&E)if(y===0)E.beforeEnter(w),s(w,u,p),ge(()=>E.enter(w),m);else{const{leave:H,delayLeave:k,afterLeave:S}=E,G=()=>s(w,u,p),X=()=>{H(w,()=>{G(),S&&S()})};k?k(w,G,X):X()}else s(w,u,p)},Fe=(f,u,p,y=!1,m=!1)=>{const{type:w,props:R,ref:E,children:F,dynamicChildren:x,shapeFlag:P,patchFlag:H,dirs:k}=f;if(E!=null&&Qt(E,null,p,f,!0),P&256){u.ctx.deactivate(f);return}const S=P&1&&k,G=!ot(f);let X;if(G&&(X=R&&R.onVnodeBeforeUnmount)&&xe(X,u,f),P&6)Zr(f.component,p,y);else{if(P&128){f.suspense.unmount(p,y);return}S&&Re(f,null,u,"beforeUnmount"),P&64?f.type.remove(f,u,p,m,et,y):x&&(w!==pe||H>0&&H&64)?Pe(x,u,p,!1,!0):(w===pe&&H&384||!m&&P&16)&&Pe(F,u,p),y&&cs(f)}(G&&(X=R&&R.onVnodeUnmounted)||S)&&ge(()=>{X&&xe(X,u,f),S&&Re(f,null,u,"unmounted")},p)},cs=f=>{const{type:u,el:p,anchor:y,transition:m}=f;if(u===pe){Jr(p,y);return}if(u===$t){T(f);return}const w=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:E}=m,F=()=>R(p,w);E?E(f.el,w,F):F()}else w()},Jr=(f,u)=>{let p;for(;f!==u;)p=_(f),r(f),f=p;r(u)},Zr=(f,u,p)=>{const{bum:y,scope:m,update:w,subTree:R,um:E}=f;y&&_n(y),m.stop(),w&&(w.active=!1,Fe(R,f,u,p)),E&&ge(E,u),ge(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Pe=(f,u,p,y=!1,m=!1,w=0)=>{for(let R=w;R<f.length;R++)Fe(f[R],u,p,y,m)},Rt=f=>f.shapeFlag&6?Rt(f.component.subTree):f.shapeFlag&128?f.suspense.next():_(f.anchor||f.el);let an=!1;const us=(f,u,p)=>{f==null?u._vnode&&Fe(u._vnode,null,null,!0):I(u._vnode||null,f,u,null,null,null,p),an||(an=!0,ws(),Gt(),an=!1),u._vnode=f},et={p:I,um:Fe,m:qe,r:cs,mt:fe,mc:A,pc:j,pbc:M,n:Rt,o:e};let hn,dn;return t&&([hn,dn]=t(et)),{render:us,hydrate:hn,createApp:ki(us,hn)}}function En({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Hr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let l=0;l<s.length;l++){const i=s[l];let o=r[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[l]=Se(r[l]),o.el=i.el),n||is(i,o)),o.type===ct&&(o.el=i.el)}}function qi(e){const t=e.slice(),n=[0];let s,r,l,i,o;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(l=0,i=n.length-1;l<i;)o=l+i>>1,e[n[o]]<a?l=o+1:i=o;a<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}for(l=n.length,i=n[l-1];l-- >0;)n[l]=i,i=t[i];return n}function Ur(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ur(t)}const Gi=e=>e.__isTeleport,_t=e=>e&&(e.disabled||e.disabled===""),js=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hn=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Yi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,l,i,o,c,a){const{mc:d,pc:h,pbc:_,o:{insert:v,querySelector:O,createText:I,createComment:D}}=a,W=_t(t.props);let{shapeFlag:K,children:g,dynamicChildren:T}=t;if(e==null){const C=t.el=I(""),b=t.anchor=I("");v(C,n,s),v(b,n,s);const B=t.target=Hn(t.props,O),A=t.targetAnchor=I("");B&&(v(A,B),i==="svg"||js(B)?i="svg":(i==="mathml"||Hs(B))&&(i="mathml"));const L=(M,$)=>{K&16&&d(g,M,$,r,l,i,o,c)};W?L(n,b):B&&L(B,A)}else{t.el=e.el;const C=t.anchor=e.anchor,b=t.target=e.target,B=t.targetAnchor=e.targetAnchor,A=_t(e.props),L=A?n:b,M=A?C:B;if(i==="svg"||js(b)?i="svg":(i==="mathml"||Hs(b))&&(i="mathml"),T?(_(e.dynamicChildren,T,L,r,l,i,o),is(e,t,!0)):c||h(e,t,L,M,r,l,i,o,!1),W)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ht(t,n,C,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=Hn(t.props,O);$&&Ht(t,$,null,a,0)}else A&&Ht(t,b,B,a,1)}Sr(t)},remove(e,t,n,s,{um:r,o:{remove:l}},i){const{shapeFlag:o,children:c,anchor:a,targetAnchor:d,target:h,props:_}=e;if(h&&l(d),i&&l(a),o&16){const v=i||!_t(_);for(let O=0;O<c.length;O++){const I=c[O];r(I,t,n,v,!!I.dynamicChildren)}}},move:Ht,hydrate:Ji};function Ht(e,t,n,{o:{insert:s},m:r},l=2){l===0&&s(e.targetAnchor,t,n);const{el:i,anchor:o,shapeFlag:c,children:a,props:d}=e,h=l===2;if(h&&s(i,t,n),(!h||_t(d))&&c&16)for(let _=0;_<a.length;_++)r(a[_],t,n,2);h&&s(o,t,n)}function Ji(e,t,n,s,r,l,{o:{nextSibling:i,parentNode:o,querySelector:c}},a){const d=t.target=Hn(t.props,c);if(d){const h=d._lpa||d.firstChild;if(t.shapeFlag&16)if(_t(t.props))t.anchor=a(i(e),t,o(e),n,s,r,l),t.targetAnchor=h;else{t.anchor=i(e);let _=h;for(;_;)if(_=i(_),_&&_.nodeType===8&&_.data==="teleport anchor"){t.targetAnchor=_,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(h,t,d,n,s,r,l)}Sr(t)}return t.anchor&&i(t.anchor)}const Po=Yi;function Sr(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const pe=Symbol.for("v-fgt"),ct=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),$t=Symbol.for("v-stc"),yt=[];let Ee=null;function os(e=!1){yt.push(Ee=e?null:[])}function Vr(){yt.pop(),Ee=yt[yt.length-1]||null}let ut=1;function Us(e){ut+=e}function $r(e){return e.dynamicChildren=ut>0?Ee||nt:null,Vr(),ut>0&&Ee&&Ee.push(e),e}function Lo(e,t,n,s,r,l){return $r(Wr(e,t,n,s,r,l,!0))}function Dr(e,t,n,s,r){return $r(ne(e,t,n,s,r,!0))}function Tt(e){return e?e.__v_isVNode===!0:!1}function Me(e,t){return e.type===t.type&&e.key===t.key}const cn="__vInternal",Kr=({key:e})=>e??null,Dt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ae(e)||V(e)?{i:re,r:e,k:t,f:!!n}:e:null);function Wr(e,t=null,n=null,s=0,r=null,l=e===pe?0:1,i=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&Dt(t),scopeId:mr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:re};return o?(fs(c,n),l&128&&e.normalize(c)):n&&(c.shapeFlag|=le(n)?8:16),ut>0&&!i&&Ee&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Ee.push(c),c}const ne=Zi;function Zi(e,t=null,n=null,s=0,r=null,l=!1){if((!e||e===br)&&(e=de),Tt(e)){const o=We(e,t,!0);return n&&fs(o,n),ut>0&&!l&&Ee&&(o.shapeFlag&6?Ee[Ee.indexOf(e)]=o:Ee.push(o)),o.patchFlag|=-2,o}if(fo(e)&&(e=e.__vccOpts),t){t=Qi(t);let{class:o,style:c}=t;o&&!le(o)&&(t.class=sn(o)),z(c)&&(fr(c)&&!U(c)&&(c=ue({},c)),t.style=nn(c))}const i=le(e)?1:li(e)?128:Gi(e)?64:z(e)?4:V(e)?2:0;return Wr(e,t,n,s,r,i,l,!0)}function Qi(e){return e?fr(e)||cn in e?ue({},e):e:null}function We(e,t,n=!1){const{props:s,ref:r,patchFlag:l,children:i}=e,o=t?Xi(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Kr(o),ref:t&&t.ref?n&&r?U(r)?r.concat(Dt(t)):[r,Dt(t)]:Dt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&We(e.ssContent),ssFallback:e.ssFallback&&We(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function qr(e=" ",t=0){return ne(ct,null,e,t)}function Bo(e="",t=!1){return t?(os(),Dr(de,null,e)):ne(de,null,e)}function Ce(e){return e==null||typeof e=="boolean"?ne(de):U(e)?ne(pe,null,e.slice()):typeof e=="object"?Se(e):ne(ct,null,String(e))}function Se(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:We(e)}function fs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),fs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(cn in t)?t._ctx=re:r===3&&re&&(re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:re},n=32):(t=String(t),s&64?(n=16,t=[qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xi(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=sn([t.class,s.class]));else if(r==="style")t.style=nn([t.style,s.style]);else if(zt(r)){const l=t[r],i=s[r];i&&l!==i&&!(U(l)&&l.includes(i))&&(t[r]=l?[].concat(l,i):i)}else r!==""&&(t[r]=s[r])}return t}function xe(e,t,n,s=null){ve(e,t,7,[n,s])}const zi=Ir();let eo=0;function to(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||zi,l={uid:eo++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new yl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lr(s,r),emitsOptions:yr(s,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=zl.bind(null,l),e.ce&&e.ce(l),l}let oe=null;const no=()=>oe||re;let Xt,Un;{const e=Gs(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};Xt=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),Un=t("__VUE_SSR_SETTERS__",n=>Ft=n)}const vt=e=>{const t=oe;return Xt(e),e.scope.on(),()=>{e.scope.off(),Xt(t)}},Ss=()=>{oe&&oe.scope.off(),Xt(null)};function Gr(e){return e.vnode.shapeFlag&4}let Ft=!1;function so(e,t=!1){t&&Un(t);const{props:n,children:s}=e.vnode,r=Gr(e);Hi(e,n,r,t),Vi(e,s);const l=r?ro(e,t):void 0;return t&&Un(!1),l}function ro(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=cr(new Proxy(e.ctx,Oi));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?io(e):null,l=vt(e);Xe();const i=$e(s,e,0,[e.props,r]);if(ze(),l(),Ks(i)){if(i.then(Ss,Ss),t)return i.then(o=>{Sn(e,o,t)}).catch(o=>{at(o,e,0)});e.asyncDep=i}else Sn(e,i,t)}else Yr(e,t)}function Sn(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=dr(t)),Yr(e,n)}let Vs;function Yr(e,t,n){const s=e.type;if(!e.render){if(!t&&Vs&&!s.render){const r=s.template||rs(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:c}=s,a=ue(ue({isCustomElement:l,delimiters:o},i),c);s.render=Vs(r,a)}}e.render=s.render||Te}{const r=vt(e);Xe();try{Mi(e)}finally{ze(),r()}}}function lo(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}}))}function io(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return lo(e)},slots:e.slots,emit:e.emit,expose:t}}function un(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dr(cr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pt)return pt[n](e)},has(t,n){return n in t||n in pt}}))}function oo(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function fo(e){return V(e)&&"__vccOpts"in e}const co=(e,t)=>Vl(e,t,Ft);function No(e,t,n){const s=arguments.length;return s===2?z(t)&&!U(t)?Tt(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Tt(n)&&(n=[n]),ne(e,t,n))}const uo="3.4.11";export{Dr as $,ve as A,vo as B,gn as C,Qr as D,Jl as E,Dl as F,or as G,Fr as H,no as I,bl as J,yo as K,Sl as L,xo as M,os as N,Lo as O,_o as P,Bo as Q,Wr as R,qr as S,sn as T,ne as U,ei as V,wo as W,pe as X,Ao as Y,Oo as Z,ao as _,St as a,Co as a0,Xi as a1,ho as a2,Qi as a3,Vt as a4,ji as a5,bo as a6,Us as a7,nn as a8,Rr as a9,Eo as aa,Z as ab,Ar as ac,To as ad,Po as ae,Fo as af,We as ag,Ro as ah,le as b,co as c,mi as d,Mo as e,Io as f,U as g,_n as h,V as i,Ys as j,No as k,cl as l,ue as m,_i as n,z as o,zt as p,$s as q,Zn as r,mo as s,ul as t,tn as u,Be as v,bn as w,Kn as x,go as y,po as z};
@@ -0,0 +1 @@
1
+ let s,r;s=navigator.userAgent,r=document.body?document.body.offsetWidth:window.screen.width;const p=/Android|iPhone|iPad|iPod|webOS/i.test(s),d=r<640,u=r>=1024,o=["whatsapp","instagram","facebook","twitter","youtube","tiktok","pinterest","threads"],a={},c=()=>{if(!globalThis.$storefront)return;const{settings:e}=globalThis.$storefront;o.forEach(t=>{e[t]&&(a[t]=e[t])})};c();let n=-1;const f=()=>String(++n),w=(e,t=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,t)},l=e=>e.replace(/[ÁáÃãÂâÀà]/g,"a").replace(/[ÉéÊê]/g,"e").replace(/[Íí]/g,"i").replace(/[ÕõÓóÔô]/g,"o").replace(/[Úú]/g,"u").replace(/[Çç]/g,"c"),b=e=>l(e.trim()).toLowerCase().replace(/[\W\r\n]/gm,"-").replace(/-{2,}/g,"-").replace(/(^-)|(-$)/g,""),i=e=>e.toLowerCase().replace(/Á/g,"á").replace(/Ã/g,"ã").replace(/Â/g,"â").replace(/À/g,"à").replace(/É/g,"é").replace(/Ê/g,"ê").replace(/Í/g,"í").replace(/Õ/g,"õ").replace(/Ó/g,"ó").replace(/Ô/g,"ô").replace(/Ú/g,"ú").replace(/Ç/g,"ç"),g=e=>i(e.trim()).replace(/[\r\n]/gm," ").replace(/[^\w-&%áãâàéêíõóôúç]/g," ").replace(/\s{2,}/g," "),h=(e,t="/s/")=>`${t}${encodeURIComponent(g(e))}`,m=(e,t=0)=>{for(;e.offsetParent;)t+=e.offsetTop,e=e.offsetParent;return window.scroll({top:t,behavior:"smooth"})};export{m as a,p as b,l as c,d,a as e,h as g,u as i,w as r,b as s,f as u};
@@ -1 +1 @@
1
- import{u as _}from"./customer-session.yn5lG3w3.js";import{u as l}from"./index.8acAQSHW.js";import{g as y}from"./price.Easct8WC.js";import{c as m,w as g}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:y(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=l(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);g(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};
1
+ import{u as _}from"./customer-session.zys3PDaD.js";import{u as l}from"./index.ZVw4Qnet.js";import{g as y}from"./price.Easct8WC.js";import{c as m,w as g}from"./runtime-core.esm-bundler.arxvxBux.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:y(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=l(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);g(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};