cloudcommerce 0.1.3 → 0.1.4

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 (115) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/ecomplus-stores/monocard/functions/core/package.json +1 -1
  3. package/ecomplus-stores/monocard/functions/events/package.json +2 -2
  4. package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
  5. package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
  6. package/ecomplus-stores/monocard/functions/ssr/package.json +6 -6
  7. package/ecomplus-stores/monocard/package.json +1 -1
  8. package/ecomplus-stores/tia-sonia/functions/core/package.json +1 -1
  9. package/ecomplus-stores/tia-sonia/functions/events/package.json +2 -2
  10. package/ecomplus-stores/tia-sonia/functions/modules/package.json +2 -2
  11. package/ecomplus-stores/tia-sonia/functions/passport/package.json +2 -2
  12. package/ecomplus-stores/tia-sonia/functions/ssr/content/settings.json +1 -1
  13. package/ecomplus-stores/tia-sonia/functions/ssr/package.json +9 -7
  14. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/fimdeano1920x736.jpg +0 -0
  15. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/TheHeader.vue +103 -9
  16. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderBarLink.vue +5 -0
  17. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderButtonLink.vue +1 -1
  18. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderNav.vue +7 -6
  19. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +11 -4
  20. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +2 -2
  21. package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +7 -1
  22. package/ecomplus-stores/tia-sonia/functions/ssr/tailwind.config.cjs +9 -1
  23. package/ecomplus-stores/tia-sonia/functions/ssr/uno.config.cjs +3 -1
  24. package/ecomplus-stores/tia-sonia/package.json +1 -1
  25. package/package.json +2 -1
  26. package/packages/api/package.json +1 -1
  27. package/packages/apps/correios/package.json +1 -1
  28. package/packages/apps/custom-payment/package.json +1 -1
  29. package/packages/apps/custom-shipping/package.json +1 -1
  30. package/packages/apps/discounts/package.json +1 -1
  31. package/packages/apps/emails/package.json +1 -1
  32. package/packages/apps/frenet/events.js +1 -0
  33. package/packages/apps/frenet/lib/frenet-events.d.ts +6 -0
  34. package/packages/apps/frenet/lib/frenet-events.js +19 -0
  35. package/packages/apps/frenet/lib/frenet-events.js.map +1 -0
  36. package/packages/apps/frenet/lib/functions-lib/database.d.ts +18 -0
  37. package/packages/apps/frenet/lib/functions-lib/database.js +128 -0
  38. package/packages/apps/frenet/lib/functions-lib/database.js.map +1 -0
  39. package/packages/apps/frenet/lib/functions-lib/events-to-frenet.d.ts +3 -0
  40. package/packages/apps/frenet/lib/functions-lib/events-to-frenet.js +48 -0
  41. package/packages/apps/frenet/lib/functions-lib/events-to-frenet.js.map +1 -0
  42. package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.d.ts +2 -0
  43. package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.js +19 -0
  44. package/packages/apps/frenet/lib/functions-lib/fetch-tracking-code.js.map +1 -0
  45. package/packages/apps/frenet/lib/functions-lib/remove-delivered.d.ts +2 -0
  46. package/packages/apps/frenet/lib/functions-lib/remove-delivered.js +30 -0
  47. package/packages/apps/frenet/lib/functions-lib/remove-delivered.js.map +1 -0
  48. package/packages/apps/frenet/lib/functions-lib/tracking-codes.d.ts +2 -0
  49. package/packages/apps/frenet/lib/functions-lib/tracking-codes.js +138 -0
  50. package/packages/apps/frenet/lib/functions-lib/tracking-codes.js.map +1 -0
  51. package/packages/apps/frenet/lib/functions-lib/update-fulfillments.d.ts +5 -0
  52. package/packages/apps/frenet/lib/functions-lib/update-fulfillments.js +49 -0
  53. package/packages/apps/frenet/lib/functions-lib/update-fulfillments.js.map +1 -0
  54. package/packages/apps/frenet/package.json +11 -3
  55. package/packages/apps/frenet/src/frenet-events.ts +25 -0
  56. package/packages/apps/frenet/src/functions-lib/database.ts +159 -0
  57. package/packages/apps/frenet/src/functions-lib/events-to-frenet.ts +62 -0
  58. package/packages/apps/frenet/src/functions-lib/fetch-tracking-code.ts +22 -0
  59. package/packages/apps/frenet/src/functions-lib/remove-delivered.ts +31 -0
  60. package/packages/apps/frenet/src/functions-lib/tracking-codes.ts +170 -0
  61. package/packages/apps/frenet/src/functions-lib/update-fulfillments.ts +56 -0
  62. package/packages/apps/galaxpay/package.json +1 -1
  63. package/packages/apps/infinitepay/package.json +1 -1
  64. package/packages/apps/jadlog/package.json +1 -1
  65. package/packages/apps/loyalty-points/package.json +1 -1
  66. package/packages/apps/mercadopago/package.json +1 -1
  67. package/packages/apps/pagarme/package.json +1 -1
  68. package/packages/apps/pix/package.json +1 -1
  69. package/packages/apps/tiny-erp/package.json +1 -1
  70. package/packages/cli/package.json +1 -1
  71. package/packages/config/package.json +1 -1
  72. package/packages/emails/package.json +1 -1
  73. package/packages/events/lib/firebase.js +2 -0
  74. package/packages/events/lib/firebase.js.map +1 -1
  75. package/packages/events/package.json +2 -1
  76. package/packages/events/src/firebase.ts +2 -0
  77. package/packages/firebase/lib/config.d.ts +1 -0
  78. package/packages/firebase/lib/config.js +4 -0
  79. package/packages/firebase/lib/config.js.map +1 -1
  80. package/packages/firebase/package.json +1 -1
  81. package/packages/firebase/src/config.ts +5 -0
  82. package/packages/i18n/package.json +1 -1
  83. package/packages/modules/package.json +1 -1
  84. package/packages/passport/package.json +1 -1
  85. package/packages/ssr/package.json +1 -2
  86. package/packages/storefront/dist/client/HeaderButtons.300c19e5.js +1 -0
  87. package/packages/storefront/dist/client/Prices.d79bd862.js +1 -0
  88. package/packages/storefront/dist/client/{ProductCard.7b68cc35.js → ProductCard.6b27d9fa.js} +1 -1
  89. package/packages/storefront/dist/client/assets/_...slug_.4dbd1d47.css +1 -0
  90. package/packages/storefront/dist/client/assets/server.4d9646d8.css +1 -0
  91. package/packages/storefront/dist/client/chunks/{HeaderButtons.cbbb059d.js → HeaderButtons.1abd5bf4.js} +1 -1
  92. package/packages/storefront/dist/client/chunks/{LoginForm.ac2f1b1f.js → LoginForm.7e7d6137.js} +1 -1
  93. package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.b29421b3.js +1 -0
  94. package/packages/storefront/dist/client/chunks/_plugin-vue_export-helper.fc452b02.js +1 -0
  95. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.b4556b35.js +1 -0
  96. package/packages/storefront/dist/client/client.2a3e5a58.js +1 -0
  97. package/packages/storefront/dist/client/sw.js +1 -1
  98. package/packages/storefront/dist/server/entry.mjs +32 -1556
  99. package/packages/storefront/package.json +4 -5
  100. package/packages/storefront/src/lib/assets/tooltip.css +43 -0
  101. package/packages/storefront/src/lib/components/Prices.vue +1 -1
  102. package/packages/storefront/src/lib/layouts/BaseBody.astro +1 -1
  103. package/packages/storefront/src/lib/pages/_vue.ts +0 -2
  104. package/packages/storefront/tailwind.config.cjs +30 -19
  105. package/packages/storefront/uno.config.cjs +20 -19
  106. package/packages/types/package.json +1 -1
  107. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/header/HeaderNavLink.vue +0 -5
  108. package/packages/storefront/dist/client/HeaderButtons.8acf8a3b.js +0 -1
  109. package/packages/storefront/dist/client/Prices.9099fe99.js +0 -1
  110. package/packages/storefront/dist/client/assets/_...slug_.f19a16ca.css +0 -1
  111. package/packages/storefront/dist/client/assets/server.55b8d73d.css +0 -1
  112. package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.c37148c1.js +0 -1
  113. package/packages/storefront/dist/client/chunks/_plugin-vue_export-helper.5ccc5d75.js +0 -1
  114. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.d5646b29.js +0 -1
  115. package/packages/storefront/dist/client/client.9783ef49.js +0 -1
@@ -1 +0,0 @@
1
- import{_ as Ee,a as ft,c as Qe,T as mt,u as gt,b as wt}from"./chunks/_plugin-vue_export-helper.5ccc5d75.js";import{d as oe,_ as yt,$ as vt,a0 as $t,o as L,q as ce,a1 as _t,f as ae,e as F,F as bt,b as Ze,h as Re,a2 as $e,y as et,l as Se,w as Te,j as Pt,t as St,m as Tt,a as Ce,D as J,c as b,u as x}from"./chunks/runtime-core.esm-bundler.d5646b29.js";/* empty css */import{D as Ct,_ as se}from"./chunks/ecom-utils.b0a26608.js";import{g as xt}from"./chunks/price.ecf7fed4.js";const tt=(e,t=se.get("lang"))=>{if(typeof e=="object"&&e!==null){const o=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(o))return e[t]||e[Ct]||e[o];{const i=Array.isArray(e)?[]:{};for(const n in e)e[n]!==void 0&&(i[n]=tt(e[n],t));return i}}return e},At=tt,Ot=(e,t=se.get("currency"),o=se.get("lang"))=>{if(typeof e=="object"?e!==null&&(e=xt(e)):typeof e=="string"&&(e=parseFloat(e)),t)try{return e.toLocaleString(o.replace("_","-"),{style:"currency",currency:t})}catch(n){console.error(n)}const i=(t||se.get("currency_symbol"))+" ";return typeof e=="number"?i+e:""},Nt=Ot;function z(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function ie(e){return["top","bottom"].includes(z(e))?"x":"y"}function ke(e){return e==="y"?"height":"width"}function De(e){let{reference:t,floating:o,placement:i}=e;const n=t.x+t.width/2-o.width/2,a=t.y+t.height/2-o.height/2;let r;switch(z(i)){case"top":r={x:n,y:t.y-o.height};break;case"bottom":r={x:n,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:a};break;case"left":r={x:t.x-o.width,y:a};break;default:r={x:t.x,y:t.y}}const s=ie(i),l=ke(s);switch(V(i)){case"start":r[s]=r[s]-(t[l]/2-o[l]/2);break;case"end":r[s]=r[s]+(t[l]/2-o[l]/2);break}return r}const zt=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:r}=o;let s=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:d}=De({...s,placement:i}),h=i,f={};for(let c=0;c<a.length;c++){const{name:m,fn:v}=a[c],{x:$,y:w,data:g,reset:y}=await v({x:l,y:d,initialPlacement:i,placement:h,strategy:n,middlewareData:f,rects:s,platform:r,elements:{reference:e,floating:t}});if(l=$??l,d=w??d,f={...f,[m]:g??{}},y){typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(s=y.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:n}):y.rects),{x:l,y:d}=De({...s,placement:h})),c=-1;continue}}return{x:l,y:d,placement:h,strategy:n,middlewareData:f}};function Ht(e){return{top:0,right:0,bottom:0,left:0,...e}}function ot(e){return typeof e!="number"?Ht(e):{top:e,right:e,bottom:e,left:e}}function xe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ue(e,t){t===void 0&&(t={});const{x:o,y:i,platform:n,rects:a,elements:r,strategy:s}=e,{boundary:l="clippingParents",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:c=0}=t,m=ot(c),$=r[f?h==="floating"?"reference":"floating":h],w=await n.getClippingClientRect({element:await n.isElement($)?$:$.contextElement||await n.getDocumentElement({element:r.floating}),boundary:l,rootBoundary:d}),g=xe(await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h==="floating"?{...a.floating,x:o,y:i}:a.reference,offsetParent:await n.getOffsetParent({element:r.floating}),strategy:s}));return{top:w.top-g.top+m.top,bottom:g.bottom-w.bottom+m.bottom,left:w.left-g.left+m.left,right:g.right-w.right+m.right}}const Et=Math.min,B=Math.max;function Ae(e,t,o){return B(e,Et(t,o))}const kt=e=>({name:"arrow",options:e,async fn(t){const{element:o,padding:i=0}=e??{},{x:n,y:a,placement:r,rects:s,platform:l}=t;if(o==null)return{};const d=ot(i),h={x:n,y:a},f=z(r),c=ie(f),m=ke(c),v=await l.getDimensions({element:o}),$=c==="y"?"top":"left",w=c==="y"?"bottom":"right",g=s.reference[m]+s.reference[c]-h[c]-s.floating[m],y=h[c]-s.reference[c],_=await l.getOffsetParent({element:o}),p=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,P=g/2-y/2,H=d[$],W=p-v[m]-d[w],S=p/2-v[m]/2+P,C=Ae(H,S,W);return{data:{[c]:C,centerOffset:S-C}}}}),Lt={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,t=>Lt[t])}function it(e,t){const o=V(e)==="start",i=ie(e),n=ke(i);let a=i==="x"?o?"right":"left":o?"bottom":"top";return t.reference[n]>t.floating[n]&&(a=le(a)),{main:a,cross:le(a)}}const Rt={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,t=>Rt[t])}const Dt=["top","right","bottom","left"],Mt=Dt.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Bt(e,t,o){return(e?[...o.filter(n=>V(n)===e),...o.filter(n=>V(n)!==e)]:o.filter(n=>z(n)===n)).filter(n=>e?V(n)===e||(t?Oe(n)!==n:!1):!0)}const Ft=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n,a,r,s;const{x:l,y:d,rects:h,middlewareData:f,placement:c}=t,{alignment:m=null,allowedPlacements:v=Mt,autoAlignment:$=!0,...w}=e;if((o=f.autoPlacement)!=null&&o.skip)return{};const g=Bt(m,$,v),y=await ue(t,w),_=(i=(n=f.autoPlacement)==null?void 0:n.index)!=null?i:0,p=g[_],{main:P,cross:H}=it(p,h);if(c!==p)return{x:l,y:d,reset:{placement:g[0]}};const W=[y[z(p)],y[P],y[H]],S=[...(a=(r=f.autoPlacement)==null?void 0:r.overflows)!=null?a:[],{placement:p,overflows:W}],C=g[_+1];if(C)return{data:{index:_+1,overflows:S},reset:{placement:C}};const j=S.slice().sort((U,K)=>U.overflows[0]-K.overflows[0]),X=(s=j.find(U=>{let{overflows:K}=U;return K.every(A=>A<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:X??j[0].placement}}}}};function It(e){const t=le(e);return[Oe(e),t,Oe(t)]}const Wt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:a,rects:r,initialPlacement:s}=t;if((o=a.flip)!=null&&o.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",flipAlignment:c=!0,...m}=e,v=z(n),w=h||(v===s||!c?[le(s)]:It(s)),g=[s,...w],y=await ue(t,m),_=[];let p=((i=a.flip)==null?void 0:i.overflows)||[];if(l&&_.push(y[v]),d){const{main:S,cross:C}=it(n,r);_.push(y[S],y[C])}if(p=[...p,{placement:n,overflows:_}],!_.every(S=>S<=0)){var P,H;const S=((P=(H=a.flip)==null?void 0:H.index)!=null?P:0)+1,C=g[S];if(C)return{data:{index:S,overflows:p},reset:{placement:C}};let j="bottom";switch(f){case"bestFit":{var W;const X=(W=p.slice().sort((U,K)=>U.overflows.filter(A=>A>0).reduce((A,ve)=>A+ve,0)-K.overflows.filter(A=>A>0).reduce((A,ve)=>A+ve,0))[0])==null?void 0:W.placement;X&&(j=X);break}case"initialPlacement":j=s;break}return{data:{skip:!0},reset:{placement:j}}}return{}}}};function jt(e){let{placement:t,rects:o,value:i}=e;const n=z(t),a=["left","top"].includes(n)?-1:1,r=typeof i=="function"?i({...o,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof r=="number"?{mainAxis:r,crossAxis:0}:{mainAxis:0,crossAxis:0,...r};return ie(n)==="x"?{x:l,y:s*a}:{x:s*a,y:l}}const Vt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:o,y:i,placement:n,rects:a}=t,r=jt({placement:n,rects:a,value:e});return{x:o+r.x,y:i+r.y,data:r}}}};function Gt(e){return e==="x"?"y":"x"}const qt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:s={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...l}=e,d={x:o,y:i},h=await ue(t,l),f=ie(z(n)),c=Gt(f);let m=d[f],v=d[c];if(a){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=m+h[w],_=m-h[g];m=Ae(y,m,_)}if(r){const w=c==="y"?"top":"left",g=c==="y"?"bottom":"right",y=v+h[w],_=v-h[g];v=Ae(y,v,_)}const $=s.fn({...t,[f]:m,[c]:v});return{...$,data:{x:$.x-o,y:$.y-i}}}}},Yt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o;const{placement:i,rects:n,middlewareData:a}=t,{apply:r,...s}=e;if((o=a.size)!=null&&o.skip)return{};const l=await ue(t,s),d=z(i),h=V(i)==="end";let f,c;d==="top"||d==="bottom"?(f=d,c=h?"left":"right"):(c=d,f=h?"top":"bottom");const m=B(l.left,0),v=B(l.right,0),$=B(l.top,0),w=B(l.bottom,0),g={height:n.floating.height-(["left","right"].includes(i)?2*($!==0||w!==0?$+w:B(l.top,l.bottom)):l[f]),width:n.floating.width-(["top","bottom"].includes(i)?2*(m!==0||v!==0?m+v:B(l.left,l.right)):l[c])};return r?.({...g,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function Le(e){return e?.toString()==="[object Window]"}function R(e){if(e==null)return window;if(!Le(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function fe(e){return R(e).getComputedStyle(e)}function O(e){return Le(e)?"":e?(e.nodeName||"").toLowerCase():""}function N(e){return e instanceof R(e).HTMLElement}function pe(e){return e instanceof R(e).Element}function Xt(e){return e instanceof R(e).Node}function nt(e){const t=R(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function me(e){const{overflow:t,overflowX:o,overflowY:i}=fe(e);return/auto|scroll|overlay|hidden/.test(t+i+o)}function Ut(e){return["table","td","th"].includes(O(e))}function st(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),o=fe(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)}const Me=Math.min,Q=Math.max,de=Math.round;function G(e,t){t===void 0&&(t=!1);const o=e.getBoundingClientRect();let i=1,n=1;return t&&N(e)&&(i=e.offsetWidth>0&&de(o.width)/e.offsetWidth||1,n=e.offsetHeight>0&&de(o.height)/e.offsetHeight||1),{width:o.width/i,height:o.height/n,top:o.top/n,right:o.right/i,bottom:o.bottom/n,left:o.left/i,x:o.left/i,y:o.top/n}}function D(e){return((Xt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ge(e){return Le(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rt(e){return G(D(e)).left+ge(e).scrollLeft}function Kt(e){const t=G(e);return de(t.width)!==e.offsetWidth||de(t.height)!==e.offsetHeight}function Jt(e,t,o){const i=N(t),n=D(t),a=G(e,i&&Kt(t));let r={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&o!=="fixed")if((O(t)!=="body"||me(n))&&(r=ge(t)),N(t)){const l=G(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=rt(n));return{x:a.left+r.scrollLeft-s.x,y:a.top+r.scrollTop-s.y,width:a.width,height:a.height}}function we(e){return O(e)==="html"?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||D(e)}function Be(e){return!N(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Qt(e){let t=we(e);for(;N(t)&&!["html","body"].includes(O(t));){if(st(t))return t;t=t.parentNode}return null}function Ne(e){const t=R(e);let o=Be(e);for(;o&&Ut(o)&&getComputedStyle(o).position==="static";)o=Be(o);return o&&(O(o)==="html"||O(o)==="body"&&getComputedStyle(o).position==="static"&&!st(o))?t:o||Qt(e)||t}function Fe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Zt(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=N(o),a=D(o);if(o===a)return t;let r={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((O(o)!=="body"||me(a))&&(r=ge(o)),N(o))){const l=G(o,!0);s.x=l.x+o.clientLeft,s.y=l.y+o.clientTop}return{...t,x:t.x-r.scrollLeft+s.x,y:t.y-r.scrollTop+s.y}}function eo(e){const t=R(e),o=D(e),i=t.visualViewport;let n=o.clientWidth,a=o.clientHeight,r=0,s=0;return i&&(n=i.width,a=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(r=i.offsetLeft,s=i.offsetTop)),{width:n,height:a,x:r,y:s}}function to(e){var t;const o=D(e),i=ge(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Q(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Q(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+rt(e);const l=-i.scrollTop;return fe(n||o).direction==="rtl"&&(s+=Q(o.clientWidth,n?n.clientWidth:0)-a),{width:a,height:r,x:s,y:l}}function at(e){return["html","body","#document"].includes(O(e))?e.ownerDocument.body:N(e)&&me(e)?e:at(we(e))}function he(e,t){var o;t===void 0&&(t=[]);const i=at(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),a=R(i),r=n?[a].concat(a.visualViewport||[],me(i)?i:[]):i,s=t.concat(r);return n?s:s.concat(he(we(r)))}function oo(e,t){const o=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(o&&nt(o)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function io(e){const t=G(e),o=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:o,left:i,x:i,y:o,right:i+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Ie(e,t){return t==="viewport"?xe(eo(e)):pe(t)?io(t):xe(to(D(e)))}function no(e){const t=he(we(e)),i=["absolute","fixed"].includes(fe(e).position)&&N(e)?Ne(e):e;return pe(i)?t.filter(n=>pe(n)&&oo(n,i)&&O(n)!=="body"):[]}function so(e){let{element:t,boundary:o,rootBoundary:i}=e;const a=[...o==="clippingParents"?no(t):[].concat(o),i],r=a[0],s=a.reduce((l,d)=>{const h=Ie(t,d);return l.top=Q(h.top,l.top),l.right=Me(h.right,l.right),l.bottom=Me(h.bottom,l.bottom),l.left=Q(h.left,l.left),l},Ie(t,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}const ro={getElementRects:e=>{let{reference:t,floating:o,strategy:i}=e;return{reference:Jt(t,Ne(o),i),floating:{...Fe(o),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>Zt(e),getOffsetParent:e=>{let{element:t}=e;return Ne(t)},isElement:e=>pe(e),getDocumentElement:e=>{let{element:t}=e;return D(t)},getClippingClientRect:e=>so(e),getDimensions:e=>{let{element:t}=e;return Fe(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},ao=(e,t,o)=>zt(e,t,{platform:ro,...o});let q=!1;if(typeof window<"u"){q=!1;try{const e=Object.defineProperty({},"passive",{get(){q=!0}});window.addEventListener("test",null,e)}catch{}}let lt=!1;typeof window<"u"&&typeof navigator<"u"&&(lt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const pt=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),We={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},je={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Ve(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function _e(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const I={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Y(e,t){let o=I.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=I.themes[o.$extend]||{}:(o=null,i=I[t]):o=null;while(o);return i}function lo(e){const t=[e];let o=I.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=I.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Ge(e){const t=[e];let o=I.themes[e]||{};do o.$extend?(t.push(o.$extend),o=I.themes[o.$extend]||{}):o=null;while(o);return t}const T=[];let M=null;const qe={};function Ye(e){let t=qe[e];return t||(t=qe[e]=[]),t}let ze=function(){};typeof window<"u"&&(ze=window.Element);function u(e){return function(t){return Y(t.theme,e)}}const be="__floating-vue__popper",po=()=>oe({name:"VPopper",provide(){return{[be]:{parentPopper:this}}},inject:{[be]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:u("disabled")},positioningDisabled:{type:Boolean,default:u("positioningDisabled")},placement:{type:String,default:u("placement"),validator:e=>pt.includes(e)},delay:{type:[String,Number,Object],default:u("delay")},distance:{type:[Number,String],default:u("distance")},skidding:{type:[Number,String],default:u("skidding")},triggers:{type:Array,default:u("triggers")},showTriggers:{type:[Array,Function],default:u("showTriggers")},hideTriggers:{type:[Array,Function],default:u("hideTriggers")},popperTriggers:{type:Array,default:u("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:u("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:u("popperHideTriggers")},container:{type:[String,Object,ze,Boolean],default:u("container")},boundary:{type:[String,ze],default:u("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:u("strategy")},autoHide:{type:[Boolean,Function],default:u("autoHide")},handleResize:{type:Boolean,default:u("handleResize")},instantMove:{type:Boolean,default:u("instantMove")},eagerMount:{type:Boolean,default:u("eagerMount")},popperClass:{type:[String,Array,Object],default:u("popperClass")},computeTransformOrigin:{type:Boolean,default:u("computeTransformOrigin")},autoMinSize:{type:Boolean,default:u("autoMinSize")},autoSize:{type:[Boolean,String],default:u("autoSize")},autoMaxSize:{type:Boolean,default:u("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:u("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:u("preventOverflow")},overflowPadding:{type:[Number,String],default:u("overflowPadding")},arrowPadding:{type:[Number,String],default:u("arrowPadding")},arrowOverflow:{type:Boolean,default:u("arrowOverflow")},flip:{type:Boolean,default:u("flip")},shift:{type:Boolean,default:u("shift")},shiftCrossAxis:{type:Boolean,default:u("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:u("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[be]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes("hover")||this.popperShowTriggers?.includes("hover")}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){this.parentPopper?.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(o||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.()??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Vt({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ft({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(qt({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Wt({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(kt({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:n,middlewareData:a})=>{let r;const{centerOffset:s}=a.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(s)>n.reference.width/2:r=Math.abs(s)>n.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:a,middlewareData:r})=>{if(r.autoSize?.skip)return{};let s,l;return a.startsWith("top")||a.startsWith("bottom")?s=n.reference.width:l=n.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=s!=null?`${s}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=l!=null?`${l}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Yt({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:n})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const o=await ao(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),M&&this.instantMove&&M.instantMove&&M!==this.parentPopper){M.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(M=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await _e(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...he(this.$_referenceNode),...he(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),a=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${a}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<T.length;o++)t=T[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}T.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ge(this.theme))Ye(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await _e(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Ve(T,this),T.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Ge(this.theme)){const i=Ye(o);Ve(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}M===this&&(M=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=Y(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await _e(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,We,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],We,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,je,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],je,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,q?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let a=o;i!=null&&(a=typeof i=="function"?i(a):i),a.forEach(r=>{const s=t[r];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:a}=o;!e||e===n?i.forEach(r=>r.removeEventListener(n,a)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Z>=e.left&&Z<=e.right&&ee>=e.top&&ee<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=Z-E,i=ee-k,a=t.left+t.width/2-E+(t.top+t.height/2)-k+t.width+t.height,r=E+o*a,s=k+i*a;return ne(E,k,r,s,t.left,t.top,t.left,t.bottom)||ne(E,k,r,s,t.left,t.top,t.right,t.top)||ne(E,k,r,s,t.right,t.top,t.right,t.bottom)||ne(E,k,r,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(lt?(document.addEventListener("touchstart",Xe,q?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",co,q?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Xe,!0),window.addEventListener("click",ho,!0)),window.addEventListener("resize",mo));function Xe(e){for(let t=0;t<T.length;t++){const o=T[t];try{const i=o.popperNode();o.$_mouseDownContains=i.contains(e.target)}catch{}}}function ho(e){dt(e)}function co(e){dt(e,!0)}function dt(e,t=!1){const o={};for(let i=T.length-1;i>=0;i--){const n=T[i];try{const a=n.$_containsGlobalTarget=uo(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!o[n.randomId]&&Ue(n,a,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&a){let s=n.parentPopper;for(;s;)o[s.randomId]=!0,s=s.parentPopper;return}let r=n.parentPopper;for(;r&&Ue(r,r.$_containsGlobalTarget,e);){r.$_handleGlobalClose(e,t);r=r.parentPopper}}})}catch{}}}function uo(e,t){const o=e.popperNode();return e.$_mouseDownContains||o.contains(t.target)}function Ue(e,t,o){return o.closeAllPopover||o.closePopover&&t||fo(e,o)&&!t}function fo(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function mo(e){for(let t=0;t<T.length;t++)T[t].$_computePosition(e)}let E=0,k=0,Z=0,ee=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{E=Z,k=ee,Z=e.clientX,ee=e.clientY},q?{passive:!0}:void 0);function ne(e,t,o,i,n,a,r,s){const l=((r-n)*(t-a)-(s-a)*(e-n))/((s-a)*(o-e)-(r-n)*(i-t)),d=((o-e)*(t-a)-(i-t)*(e-n))/((s-a)*(o-e)-(r-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}function go(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let re;function He(){He.init||(He.init=!0,re=go()!==-1)}var ye={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){He(),$t(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",re&&this.$el.appendChild(e),e.data="about:blank",re||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!re&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wo=_t();yt("data-v-b329ee4c");const yo={class:"resize-observer",tabindex:"-1"};vt();const vo=wo((e,t,o,i,n,a)=>(L(),ce("div",yo)));ye.render=vo;ye.__scopeId="data-v-b329ee4c";ye.__file="src/components/ResizeObserver.vue";const $o=(e="theme")=>({computed:{themeClass(){return lo(this[e])}}}),_o=oe({name:"VPopperContent",components:{ResizeObserver:ye},mixins:[$o()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),bo=["id","aria-hidden","tabindex","data-popper-placement"],Po={ref:"inner",class:"v-popper__inner"},So=F("div",{class:"v-popper__arrow-outer"},null,-1),To=F("div",{class:"v-popper__arrow-inner"},null,-1),Co=[So,To];function xo(e,t,o,i,n,a){const r=Se("ResizeObserver");return L(),ae("div",{id:e.popperId,ref:"popover",class:et(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:$e(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ft(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[F("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),F("div",{class:"v-popper__wrapper",style:$e(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[F("div",Po,[e.mounted?(L(),ae(bt,{key:0},[F("div",null,[Ze(e.$slots,"default")]),e.handleResize?(L(),ce(r,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):Re("",!0)],64)):Re("",!0)],512),F("div",{ref:"arrow",class:"v-popper__arrow-container",style:$e(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Co,4)],4)],46,bo)}const Ao=Ee(_o,[["render",xo]]),Oo={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},No=oe({name:"VTooltipDirective",components:{Popper:po(),PopperContent:Ao},mixins:[Oo],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Y(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Y(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),zo=["innerHTML"],Ho=["textContent"];function Eo(e,t,o,i,n,a){const r=Se("PopperContent"),s=Se("Popper");return L(),ce(s,Tt({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Te(({popperId:l,isShown:d,shouldMountContent:h,skipTransition:f,autoHide:c,hide:m,handleResize:v,onResize:$,classes:w,result:g})=>[Pt(r,{ref:"popperContent",class:et({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:h,"skip-transition":f,"auto-hide":c,"handle-resize":v,classes:w,result:g,onHide:m,onResize:$},{default:Te(()=>[e.html?(L(),ae("div",{key:0,innerHTML:e.finalContent},null,8,zo)):(L(),ae("div",{key:1,textContent:St(e.finalContent)},null,8,Ho))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}const ko=Ee(No,[["render",Eo]]),ht="v-popper--has-tooltip";function Lo(e,t){let o=e.placement;if(!o&&t)for(const i of pt)t[i]&&(o=i);return o||(o=Y(e.theme||"tooltip","placement")),o}function ct(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Lo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Pe,te,Ro=0;function Do(){if(Pe)return;te=Ce([]),Pe=Qe({name:"VTooltipDirectiveApp",setup(){return{directives:te}},render(){return this.directives.map(t=>J(ko,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Pe.mount(e)}function Mo(e,t,o){Do();const i=Ce(ct(e,t,o)),n=Ce(!1),a={id:Ro++,options:i,shown:n};return te.value.push(a),e.classList&&e.classList.add(ht),e.$_popper={options:i,item:a,show(){n.value=!0},hide(){n.value=!1}}}function ut(e){if(e.$_popper){const t=te.value.indexOf(e.$_popper.item);t!==-1&&te.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ht)}function Ke(e,{value:t,modifiers:o}){const i=ct(e,t,o);if(!i.content||Y(i.theme||"tooltip","disabled"))ut(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=Mo(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const Bo={beforeMount:Ke,updated:Ke,beforeUnmount(e){ut(e)}},Fo=oe({__name:"Fade",props:{speed:{default:"default"},slide:null,isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(e){const t=e;gt(p=>({de1ebbd6:x(w),fb017372:x(o),a7913688:x(a),"44556fdd":x(s),b31f6b54:x(c),"77b9da92":x(v),"764bb2e8":x(r),"816204a6":x(l),"5ef3e2f4":x(m),"7b2c0887":x($)}));const o=b(()=>t.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${t.speed}, .4s linear)`),i=b(()=>{switch(t.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"}}),n=b(()=>i.value!=="none"?.1:0),a=b(()=>t.isEnterFrom?n.value:1),r=b(()=>t.isLeaveTo?n.value:1),s=b(()=>t.isEnterFrom?i.value:"none"),l=b(()=>t.isLeaveTo?i.value:"none"),d=b(()=>t.slide==="down"||t.slide==="up"),h=b(()=>d.value?0:"auto"),f=b(()=>t.slide&&!d.value?0:"auto"),c=b(()=>t.isEnterFrom?h.value:"auto"),m=b(()=>t.isLeaveTo?h.value:"auto"),v=b(()=>t.isEnterFrom?f.value:"auto"),$=b(()=>t.isLeaveTo?f.value:"auto"),w=b(()=>{let p="opacity";return i.value!=="none"&&(p+=", transform"),h.value!=="auto"&&(p+=", height"),f.value!=="auto"&&(p+=", width"),p}),g=p=>{if(t.slide){d.value?(p.style.width=getComputedStyle(p).width,p.style.height="auto"):(p.style.width="auto",p.style.height=getComputedStyle(p).height),p.style.position="absolute",p.style.visibility="hidden";const{width:P,height:H}=getComputedStyle(p);p.style.width=d.value?null:"0",p.style.height=d.value?"0":null,p.style.position=null,p.style.visibility=null,getComputedStyle(p)[d.value?"height":"width"],requestAnimationFrame(()=>{d.value?p.style.height=H:p.style.width=P})}},y=p=>{t.slide&&(p.style[d.value?"height":"width"]="auto")},_=p=>{if(t.slide){d.value?p.style.height=getComputedStyle(p).height:p.style.width=getComputedStyle(p).width;const P=d.value?"height":"width";getComputedStyle(p)[P],requestAnimationFrame(()=>{p.style[P]="0"})}};return(p,P)=>(L(),ce(mt,{name:"sf-fade",onEnter:g,onAfterEnter:y,onLeave:_},{default:Te(()=>[Ze(p.$slots,"default",{},void 0,!0)]),_:3}))}}),Io=Ee(Fo,[["__scopeId","data-v-f3719df1"]]),Wo=(e,t=1)=>Number.isInteger(e)?`${e}%`:`${e.toFixed(t)}%`,Je=e=>{e.use({install:(t,o)=>{t.config.globalProperties.$t=(i,n)=>At(i,n||o?.lang),t.config.globalProperties.$money=Nt,t.config.globalProperties.$percentage=Wo}}),e.directive("tooltip",Bo),e.component("Fade",Io)},jo=oe({props:{value:String,name:String},setup({name:e,value:t}){return t?()=>J("astro-slot",{name:e,innerHTML:t}):()=>null}}),Uo=e=>async(t,o,i,{client:n})=>{if(delete o.class,!e.hasAttribute("ssr"))return;const a=t.name?`${t.name} Host`:void 0,r={};for(const[s,l]of Object.entries(i))r[s]=()=>J(jo,{value:l,name:s==="default"?void 0:s});if(n==="only"){const s=Qe({name:a,render:()=>J(t,o,r)});await Je(s),s.mount(e,!1)}else{const s=wt({name:a,render:()=>J(t,o,r)});await Je(s),s.mount(e,!0)}};export{Uo as default};