@maveio/components 0.0.167 → 0.0.169

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 (126) hide show
  1. package/dist/chunk-2E5GLLOS.cjs +19 -0
  2. package/dist/chunk-2EIQ3VMA.cjs +1 -0
  3. package/dist/chunk-2FUCHY2J.cjs +35 -0
  4. package/dist/chunk-2JCNQPEK.js +1 -0
  5. package/dist/chunk-5PIHL662.js +19 -0
  6. package/dist/chunk-5QLIDHRT.cjs +33 -0
  7. package/dist/chunk-AOBEOJ2U.cjs +10 -0
  8. package/dist/chunk-B6P2GJBQ.js +9 -0
  9. package/dist/chunk-BL2IUHCP.cjs +1663 -0
  10. package/dist/chunk-BTCK3T4L.cjs +24 -0
  11. package/dist/{chunk-DITZCOYN.cjs → chunk-C3CI3U2Z.js} +6 -6
  12. package/dist/{chunk-SF36AD3G.js → chunk-CNPQ5Q2M.js} +1 -1
  13. package/dist/chunk-CVXHA76S.js +3 -0
  14. package/dist/chunk-DL4BV5IH.cjs +24 -0
  15. package/dist/chunk-EVKPEPYP.cjs +2 -0
  16. package/dist/chunk-FAONFKQ2.cjs +9 -0
  17. package/dist/{chunk-E2IDHUN5.js → chunk-GHE5KR7E.js} +4 -4
  18. package/dist/chunk-GSVKVWEI.js +33 -0
  19. package/dist/chunk-IBQULJZC.cjs +3 -0
  20. package/dist/chunk-IETV3B4F.cjs +38 -0
  21. package/dist/{chunk-AJ33W3DD.cjs → chunk-IMY6Z3YA.cjs} +3 -3
  22. package/dist/{chunk-YKO34INI.cjs → chunk-K5Z7QHTN.cjs} +1 -1
  23. package/dist/{chunk-7MR3ZC3G.js → chunk-KLJGACPT.js} +3 -3
  24. package/dist/{chunk-HS74B6NF.cjs → chunk-L667KKJP.cjs} +4 -4
  25. package/dist/{chunk-BS3IICLO.cjs → chunk-MU4WLTQR.cjs} +4 -4
  26. package/dist/chunk-N2L5GXPF.cjs +211 -0
  27. package/dist/chunk-NPP5B5PV.cjs +16 -0
  28. package/dist/chunk-OVZCXWUJ.js +1663 -0
  29. package/dist/{chunk-WO4HFIOO.js → chunk-OX42Y2HR.js} +1 -1
  30. package/dist/{chunk-BN4D4W23.js → chunk-P5OWX4UR.js} +4 -4
  31. package/dist/chunk-PTN427IG.js +24 -0
  32. package/dist/chunk-Q3FGRSLA.js +38 -0
  33. package/dist/chunk-QFF6OUH6.js +9 -0
  34. package/dist/chunk-QOM4AP6R.cjs +9 -0
  35. package/dist/chunk-QQDH35OW.cjs +9 -0
  36. package/dist/{chunk-ZZBI6DXY.js → chunk-R3SDTEHC.js} +1 -1
  37. package/dist/chunk-RHTBV6KZ.js +24 -0
  38. package/dist/{chunk-PXLLLBZ3.cjs → chunk-RQN3DXJB.cjs} +1 -1
  39. package/dist/{chunk-E7TZALBH.js → chunk-SWRFZ3FV.js} +1 -1
  40. package/dist/chunk-TFOTA27Y.js +211 -0
  41. package/dist/chunk-TH3DUBVR.js +35 -0
  42. package/dist/{chunk-JUDFZS5N.cjs → chunk-TKJYRGEU.cjs} +1 -1
  43. package/dist/{chunk-T2P4BAWY.js → chunk-V54NMMTT.cjs} +6 -6
  44. package/dist/chunk-WOXKZOJ3.js +10 -0
  45. package/dist/chunk-WTS6WHUH.js +1 -0
  46. package/dist/chunk-X7OGQ4KH.cjs +1 -0
  47. package/dist/chunk-YPCQNE3R.js +16 -0
  48. package/dist/chunk-ZTDQPDC6.js +2 -0
  49. package/dist/components/audio-track-menu.cjs +1 -1
  50. package/dist/components/audio-track-menu.js +1 -1
  51. package/dist/components/clip.cjs +1 -1
  52. package/dist/components/clip.js +1 -1
  53. package/dist/components/files.cjs +1 -1
  54. package/dist/components/files.js +1 -1
  55. package/dist/components/img.cjs +1 -1
  56. package/dist/components/img.js +1 -1
  57. package/dist/components/list.cjs +1 -1
  58. package/dist/components/list.js +1 -1
  59. package/dist/components/player.cjs +1 -1
  60. package/dist/components/player.js +1 -1
  61. package/dist/components/pop.cjs +1 -1
  62. package/dist/components/pop.js +1 -1
  63. package/dist/components/text.cjs +1 -1
  64. package/dist/components/text.js +1 -1
  65. package/dist/components/upload.cjs +1 -1
  66. package/dist/components/upload.js +1 -1
  67. package/dist/config.cjs +1 -1
  68. package/dist/config.d.cts +1 -1
  69. package/dist/config.d.ts +1 -1
  70. package/dist/config.js +1 -1
  71. package/dist/embed/api.cjs +1 -1
  72. package/dist/embed/api.js +1 -1
  73. package/dist/embed/caption.cjs +1 -1
  74. package/dist/embed/caption.js +1 -1
  75. package/dist/embed/controller.cjs +1 -1
  76. package/dist/embed/controller.js +1 -1
  77. package/dist/embed/socket.cjs +1 -1
  78. package/dist/embed/socket.js +1 -1
  79. package/dist/index.cjs +1 -1
  80. package/dist/index.js +1 -1
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +1 -1
  83. package/dist/themes/loader.cjs +1 -1
  84. package/dist/themes/loader.js +1 -1
  85. package/dist/utils/localization.cjs +1 -1
  86. package/dist/utils/localization.d.cts +2 -2
  87. package/dist/utils/localization.d.ts +2 -2
  88. package/dist/utils/localization.js +1 -1
  89. package/dist/utils/mave_element.cjs +1 -1
  90. package/dist/utils/mave_element.js +1 -1
  91. package/dist/vue.cjs +1 -1
  92. package/dist/vue.d.cts +16 -16
  93. package/dist/vue.d.ts +16 -16
  94. package/dist/vue.js +1 -1
  95. package/package.json +2 -2
  96. package/dist/chunk-27BWRXCN.js +0 -29
  97. package/dist/chunk-3T573OW4.cjs +0 -35
  98. package/dist/chunk-55JWHJJ5.cjs +0 -211
  99. package/dist/chunk-5STN56TL.cjs +0 -2
  100. package/dist/chunk-6XBQ5C3V.js +0 -17
  101. package/dist/chunk-BSJIDMTZ.js +0 -18
  102. package/dist/chunk-BZKKXYJP.js +0 -37
  103. package/dist/chunk-D75M3UFL.js +0 -1
  104. package/dist/chunk-D7LG2SMD.cjs +0 -33
  105. package/dist/chunk-ES5FUTSE.cjs +0 -1
  106. package/dist/chunk-F6EKAS27.js +0 -1
  107. package/dist/chunk-FUSQ4EZG.cjs +0 -3
  108. package/dist/chunk-GO6BV3T4.cjs +0 -29
  109. package/dist/chunk-HT464LCH.js +0 -10
  110. package/dist/chunk-J74VK4RB.cjs +0 -9
  111. package/dist/chunk-JBV2AYRP.js +0 -2
  112. package/dist/chunk-JR7IABIG.cjs +0 -18
  113. package/dist/chunk-KNAAIER3.js +0 -3
  114. package/dist/chunk-KUPCZDOX.cjs +0 -10
  115. package/dist/chunk-M22WSPSU.js +0 -9
  116. package/dist/chunk-NB5PC42C.js +0 -33
  117. package/dist/chunk-NROHM3YR.cjs +0 -1532
  118. package/dist/chunk-O2WRWRDO.cjs +0 -9
  119. package/dist/chunk-OIZ5B5LE.cjs +0 -17
  120. package/dist/chunk-TSTFPNEM.js +0 -211
  121. package/dist/chunk-TVXCJNTZ.js +0 -1532
  122. package/dist/chunk-UHJ4X2NY.cjs +0 -37
  123. package/dist/chunk-WIS6FQDY.cjs +0 -24
  124. package/dist/chunk-ZJWT7IOI.js +0 -24
  125. package/dist/chunk-ZODBVQLM.cjs +0 -1
  126. package/dist/chunk-ZUM5T3HV.js +0 -35
@@ -3,10 +3,10 @@ import { ReactiveControllerHost } from 'lit';
3
3
 
4
4
  declare const localization: {
5
5
  getLocale: (() => string) & {
6
- _LIT_LOCALIZE_GET_LOCALE_?: undefined;
6
+ _LIT_LOCALIZE_GET_LOCALE_?: never;
7
7
  };
8
8
  setLocale: ((newLocale: string) => Promise<void>) & {
9
- _LIT_LOCALIZE_SET_LOCALE_?: undefined;
9
+ _LIT_LOCALIZE_SET_LOCALE_?: never;
10
10
  };
11
11
  };
12
12
  declare class LanguageController {
@@ -1 +1 @@
1
- export{d as LanguageController,c as localization,a as localized,b as msg}from'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-KA24PL7V.js';
1
+ export{d as LanguageController,c as localization,b as localized,a as msg}from'../chunk-GSVKVWEI.js';import'../chunk-P6SBZPDR.js';import'../chunk-KA24PL7V.js';
@@ -1 +1 @@
1
- 'use strict';var chunkJUDFZS5N_cjs=require('../chunk-JUDFZS5N.cjs');require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveElement",{enumerable:true,get:function(){return chunkJUDFZS5N_cjs.a}});
1
+ 'use strict';var chunkTKJYRGEU_cjs=require('../chunk-TKJYRGEU.cjs');require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveElement",{enumerable:true,get:function(){return chunkTKJYRGEU_cjs.a}});
@@ -1 +1 @@
1
- export{a as MaveElement}from'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
1
+ export{a as MaveElement}from'../chunk-SWRFZ3FV.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
package/dist/vue.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkHS74B6NF_cjs=require('./chunk-HS74B6NF.cjs'),chunkAJ33W3DD_cjs=require('./chunk-AJ33W3DD.cjs'),chunkNROHM3YR_cjs=require('./chunk-NROHM3YR.cjs');require('./chunk-ES5FUTSE.cjs');var chunk3T573OW4_cjs=require('./chunk-3T573OW4.cjs'),chunk55JWHJJ5_cjs=require('./chunk-55JWHJJ5.cjs');require('./chunk-FUSQ4EZG.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-D7LG2SMD.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-O2WRWRDO.cjs'),require('./chunk-YKO34INI.cjs'),require('./chunk-DITZCOYN.cjs');var chunkUHJ4X2NY_cjs=require('./chunk-UHJ4X2NY.cjs');require('./chunk-JR7IABIG.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-J74VK4RB.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkBS3IICLO_cjs=require('./chunk-BS3IICLO.cjs');require('./chunk-PXLLLBZ3.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-OIZ5B5LE.cjs');var chunkKUPCZDOX_cjs=require('./chunk-KUPCZDOX.cjs');require('./chunk-JUDFZS5N.cjs'),require('./chunk-WIS6FQDY.cjs'),require('./chunk-GO6BV3T4.cjs'),require('./chunk-5STN56TL.cjs'),require('./chunk-JHSFSCC2.cjs');var vue=require('vue');var l={Clip:{tag:"mave-clip",element:chunkUHJ4X2NY_cjs.a},Files:{tag:"mave-files",element:chunkBS3IICLO_cjs.a},Image:{tag:"mave-img",element:chunkKUPCZDOX_cjs.a},List:{tag:"mave-list",element:chunkHS74B6NF_cjs.a},Player:{tag:"mave-player",element:chunkNROHM3YR_cjs.a},Pop:{tag:"mave-pop",element:chunkAJ33W3DD_cjs.a},Text:{tag:"mave-text",element:chunk3T573OW4_cjs.a},Upload:{tag:"mave-upload",element:chunk55JWHJJ5_cjs.a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(vue.cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),vue.defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=vue.ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),vue.onMounted(()=>{d(),b(a.value);}),vue.onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return vue.h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};exports.Clip=W;exports.Files=z;exports.Image=q;exports.List=B;exports.Player=G;exports.Pop=J;exports.Text=Q;exports.Upload=X;exports.default=Y;exports.registerMaveComponents=S;
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkL667KKJP_cjs=require('./chunk-L667KKJP.cjs'),chunkIMY6Z3YA_cjs=require('./chunk-IMY6Z3YA.cjs'),chunkBL2IUHCP_cjs=require('./chunk-BL2IUHCP.cjs');require('./chunk-2EIQ3VMA.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunkN2L5GXPF_cjs=require('./chunk-N2L5GXPF.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-5QLIDHRT.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-V54NMMTT.cjs');var chunkIETV3B4F_cjs=require('./chunk-IETV3B4F.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkMU4WLTQR_cjs=require('./chunk-MU4WLTQR.cjs');require('./chunk-RQN3DXJB.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs');var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-NPP5B5PV.cjs'),require('./chunk-EVKPEPYP.cjs'),require('./chunk-JHSFSCC2.cjs');var vue=require('vue');var l={Clip:{tag:"mave-clip",element:chunkIETV3B4F_cjs.a},Files:{tag:"mave-files",element:chunkMU4WLTQR_cjs.a},Image:{tag:"mave-img",element:chunkAOBEOJ2U_cjs.a},List:{tag:"mave-list",element:chunkL667KKJP_cjs.a},Player:{tag:"mave-player",element:chunkBL2IUHCP_cjs.a},Pop:{tag:"mave-pop",element:chunkIMY6Z3YA_cjs.a},Text:{tag:"mave-text",element:chunk2FUCHY2J_cjs.a},Upload:{tag:"mave-upload",element:chunkN2L5GXPF_cjs.a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(vue.cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),vue.defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=vue.ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),vue.onMounted(()=>{d(),b(a.value);}),vue.onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return vue.h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};exports.Clip=W;exports.Files=z;exports.Image=q;exports.List=B;exports.Player=G;exports.Pop=J;exports.Text=Q;exports.Upload=X;exports.default=Y;exports.registerMaveComponents=S;
package/dist/vue.d.cts CHANGED
@@ -2,60 +2,60 @@ import * as vue from 'vue';
2
2
  import { App, VNode } from 'vue';
3
3
 
4
4
  declare const Clip: vue.DefineComponent<{
5
- [x: string]: any;
5
+ [x: string]: /*elided*/ any;
6
6
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
7
7
  [key: string]: any;
8
8
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
9
- [x: string]: any;
9
+ [x: string]: /*elided*/ any;
10
10
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
11
11
  declare const Files: vue.DefineComponent<{
12
- [x: string]: any;
12
+ [x: string]: /*elided*/ any;
13
13
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
14
14
  [key: string]: any;
15
15
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
16
- [x: string]: any;
16
+ [x: string]: /*elided*/ any;
17
17
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
18
18
  declare const Image: vue.DefineComponent<{
19
- [x: string]: any;
19
+ [x: string]: /*elided*/ any;
20
20
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
21
21
  [key: string]: any;
22
22
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
23
- [x: string]: any;
23
+ [x: string]: /*elided*/ any;
24
24
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
25
25
  declare const List: vue.DefineComponent<{
26
- [x: string]: any;
26
+ [x: string]: /*elided*/ any;
27
27
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
28
28
  [key: string]: any;
29
29
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
30
- [x: string]: any;
30
+ [x: string]: /*elided*/ any;
31
31
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
32
32
  declare const Player: vue.DefineComponent<{
33
- [x: string]: any;
33
+ [x: string]: /*elided*/ any;
34
34
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
35
35
  [key: string]: any;
36
36
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
37
- [x: string]: any;
37
+ [x: string]: /*elided*/ any;
38
38
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
39
39
  declare const Pop: vue.DefineComponent<{
40
- [x: string]: any;
40
+ [x: string]: /*elided*/ any;
41
41
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
42
42
  [key: string]: any;
43
43
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
44
- [x: string]: any;
44
+ [x: string]: /*elided*/ any;
45
45
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
46
46
  declare const Text: vue.DefineComponent<{
47
- [x: string]: any;
47
+ [x: string]: /*elided*/ any;
48
48
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
49
49
  [key: string]: any;
50
50
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
51
- [x: string]: any;
51
+ [x: string]: /*elided*/ any;
52
52
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
53
53
  declare const Upload: vue.DefineComponent<{
54
- [x: string]: any;
54
+ [x: string]: /*elided*/ any;
55
55
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
56
56
  [key: string]: any;
57
57
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
58
- [x: string]: any;
58
+ [x: string]: /*elided*/ any;
59
59
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
60
60
  declare function registerMaveComponents(app: App): void;
61
61
  declare const _default: {
package/dist/vue.d.ts CHANGED
@@ -2,60 +2,60 @@ import * as vue from 'vue';
2
2
  import { App, VNode } from 'vue';
3
3
 
4
4
  declare const Clip: vue.DefineComponent<{
5
- [x: string]: any;
5
+ [x: string]: /*elided*/ any;
6
6
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
7
7
  [key: string]: any;
8
8
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
9
- [x: string]: any;
9
+ [x: string]: /*elided*/ any;
10
10
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
11
11
  declare const Files: vue.DefineComponent<{
12
- [x: string]: any;
12
+ [x: string]: /*elided*/ any;
13
13
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
14
14
  [key: string]: any;
15
15
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
16
- [x: string]: any;
16
+ [x: string]: /*elided*/ any;
17
17
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
18
18
  declare const Image: vue.DefineComponent<{
19
- [x: string]: any;
19
+ [x: string]: /*elided*/ any;
20
20
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
21
21
  [key: string]: any;
22
22
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
23
- [x: string]: any;
23
+ [x: string]: /*elided*/ any;
24
24
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
25
25
  declare const List: vue.DefineComponent<{
26
- [x: string]: any;
26
+ [x: string]: /*elided*/ any;
27
27
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
28
28
  [key: string]: any;
29
29
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
30
- [x: string]: any;
30
+ [x: string]: /*elided*/ any;
31
31
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
32
32
  declare const Player: vue.DefineComponent<{
33
- [x: string]: any;
33
+ [x: string]: /*elided*/ any;
34
34
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
35
35
  [key: string]: any;
36
36
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
37
- [x: string]: any;
37
+ [x: string]: /*elided*/ any;
38
38
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
39
39
  declare const Pop: vue.DefineComponent<{
40
- [x: string]: any;
40
+ [x: string]: /*elided*/ any;
41
41
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
42
42
  [key: string]: any;
43
43
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
44
- [x: string]: any;
44
+ [x: string]: /*elided*/ any;
45
45
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
46
46
  declare const Text: vue.DefineComponent<{
47
- [x: string]: any;
47
+ [x: string]: /*elided*/ any;
48
48
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
49
49
  [key: string]: any;
50
50
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
51
- [x: string]: any;
51
+ [x: string]: /*elided*/ any;
52
52
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
53
53
  declare const Upload: vue.DefineComponent<{
54
- [x: string]: any;
54
+ [x: string]: /*elided*/ any;
55
55
  }, () => VNode<vue.RendererNode, vue.RendererElement, {
56
56
  [key: string]: any;
57
57
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{
58
- [x: string]: any;
58
+ [x: string]: /*elided*/ any;
59
59
  }> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
60
60
  declare function registerMaveComponents(app: App): void;
61
61
  declare const _default: {
package/dist/vue.js CHANGED
@@ -1 +1 @@
1
- import {a as a$4}from'./chunk-E2IDHUN5.js';import {a as a$2}from'./chunk-7MR3ZC3G.js';import {a as a$3}from'./chunk-TVXCJNTZ.js';import'./chunk-D75M3UFL.js';import {a as a$1}from'./chunk-ZUM5T3HV.js';import {a}from'./chunk-TSTFPNEM.js';import'./chunk-KNAAIER3.js';import'./chunk-WE5NUDRY.js';import'./chunk-NB5PC42C.js';import'./chunk-P6SBZPDR.js';import'./chunk-M22WSPSU.js';import'./chunk-SF36AD3G.js';import'./chunk-T2P4BAWY.js';import {a as a$7}from'./chunk-BZKKXYJP.js';import'./chunk-BSJIDMTZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-ZZBI6DXY.js';import'./chunk-MMHEOMF5.js';import {a as a$6}from'./chunk-BN4D4W23.js';import'./chunk-WO4HFIOO.js';import'./chunk-F6EKAS27.js';import'./chunk-6XBQ5C3V.js';import {a as a$5}from'./chunk-HT464LCH.js';import'./chunk-E7TZALBH.js';import'./chunk-ZJWT7IOI.js';import'./chunk-27BWRXCN.js';import'./chunk-JBV2AYRP.js';import'./chunk-KA24PL7V.js';import {defineComponent,ref,onMounted,onUpdated,h,cloneVNode}from'vue';var l={Clip:{tag:"mave-clip",element:a$7},Files:{tag:"mave-files",element:a$6},Image:{tag:"mave-img",element:a$5},List:{tag:"mave-list",element:a$4},Player:{tag:"mave-player",element:a$3},Pop:{tag:"mave-pop",element:a$2},Text:{tag:"mave-text",element:a$1},Upload:{tag:"mave-upload",element:a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),onMounted(()=>{d(),b(a.value);}),onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};export{W as Clip,z as Files,q as Image,B as List,G as Player,J as Pop,Q as Text,X as Upload,Y as default,S as registerMaveComponents};
1
+ import {a as a$4}from'./chunk-GHE5KR7E.js';import {a as a$2}from'./chunk-KLJGACPT.js';import {a as a$3}from'./chunk-OVZCXWUJ.js';import'./chunk-WTS6WHUH.js';import {a as a$1}from'./chunk-TH3DUBVR.js';import {a}from'./chunk-TFOTA27Y.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-GSVKVWEI.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-C3CI3U2Z.js';import {a as a$7}from'./chunk-Q3FGRSLA.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$6}from'./chunk-P5OWX4UR.js';import'./chunk-OX42Y2HR.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import {a as a$5}from'./chunk-WOXKZOJ3.js';import'./chunk-SWRFZ3FV.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-YPCQNE3R.js';import'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';import {defineComponent,ref,onMounted,onUpdated,h,cloneVNode}from'vue';var l={Clip:{tag:"mave-clip",element:a$7},Files:{tag:"mave-files",element:a$6},Image:{tag:"mave-img",element:a$5},List:{tag:"mave-list",element:a$4},Player:{tag:"mave-player",element:a$3},Pop:{tag:"mave-pop",element:a$2},Text:{tag:"mave-text",element:a$1},Upload:{tag:"mave-upload",element:a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),onMounted(()=>{d(),b(a.value);}),onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};export{W as Clip,z as Files,q as Image,B as List,G as Player,J as Pop,Q as Text,X as Upload,Y as default,S as registerMaveComponents};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maveio/components",
3
- "version": "0.0.167",
3
+ "version": "0.0.169",
4
4
  "description": "privacy friendly (🇪🇺), iframe-less, video UI elements for videos hosted on mave.io",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -114,7 +114,7 @@
114
114
  "@lit/localize": "^0.12.1",
115
115
  "@lit/react": "^1.0.5",
116
116
  "@lit/task": "^1.0.0",
117
- "@maveio/metrics": "^0.1.5",
117
+ "@maveio/data": "^0.1.0",
118
118
  "hls.js": "^1.6.13",
119
119
  "lit": "^3.1.2",
120
120
  "media-chrome": "^4.15.0",
@@ -1,29 +0,0 @@
1
- var x=globalThis,L=x.trustedTypes,rt=L?L.createPolicy("lit-html",{createHTML:r=>r}):void 0,Q="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,X="?"+$,Ut=`<${X}>`,A=document,O=()=>A.createComment(""),R=r=>r===null||typeof r!="object"&&typeof r!="function",ct=Array.isArray,pt=r=>ct(r)||typeof r?.[Symbol.iterator]=="function",G=`[
2
- \f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ot=/-->/g,nt=/>/g,S=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,at=/"/g,dt=/^(?:script|style|textarea|title)$/i,ut=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zt=ut(1),Ft=ut(2),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,g=A.createTreeWalker(A,129);function $t(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return rt!==void 0?rt.createHTML(t):t}var _t=(r,t)=>{let e=r.length-1,s=[],i,o=t===2?"<svg>":"",n=U;for(let d=0;d<e;d++){let h=r[d],l,p,a=-1,u=0;for(;u<h.length&&(n.lastIndex=u,p=n.exec(h),p!==null);)u=n.lastIndex,n===U?p[1]==="!--"?n=ot:p[1]!==void 0?n=nt:p[2]!==void 0?(dt.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=S):p[3]!==void 0&&(n=S):n===S?p[0]===">"?(n=i??U,a=-1):p[1]===void 0?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=p[3]===void 0?S:p[3]==='"'?at:ht):n===at||n===ht?n=S:n===ot||n===nt?n=U:(n=S,i=void 0);let f=n===S&&r[d+1].startsWith("/>")?" ":"";o+=n===U?h+Ut:a>=0?(s.push(l),h.slice(0,a)+Q+h.slice(a)+$+f):h+$+(a===-2?d:f);}return [$t(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),s]},T=class r{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0,d=t.length-1,h=this.parts,[l,p]=_t(t,e);if(this.el=r.createElement(l,s),g.currentNode=this.el.content,e===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(i=g.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(let a of i.getAttributeNames())if(a.endsWith(Q)){let u=p[n++],f=i.getAttribute(a).split($),k=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:k[2],strings:f,ctor:k[1]==="."?j:k[1]==="?"?D:k[1]==="@"?B:b}),i.removeAttribute(a);}else a.startsWith($)&&(h.push({type:6,index:o}),i.removeAttribute(a));if(dt.test(i.tagName)){let a=i.textContent.split($),u=a.length-1;if(u>0){i.textContent=L?L.emptyScript:"";for(let f=0;f<u;f++)i.append(a[f],O()),g.nextNode(),h.push({type:2,index:++o});i.append(a[u],O());}}}else if(i.nodeType===8)if(i.data===X)h.push({type:2,index:o});else {let a=-1;for(;(a=i.data.indexOf($,a+1))!==-1;)h.push({type:7,index:o}),a+=$.length-1;}o++;}}static createElement(t,e){let s=A.createElement("template");return s.innerHTML=t,s}};function v(r,t,e=r,s){if(t===E)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,o=R(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(false),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=v(r,i._$AS(r,t.values),i,s)),t}var z=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,true);g.currentNode=i;let o=g.nextNode(),n=0,d=0,h=s[0];for(;h!==void 0;){if(n===h.index){let l;h.type===2?l=new w(o,o.nextSibling,this,t):h.type===1?l=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(l=new I(o,this,t)),this._$AV.push(l),h=s[++d];}n!==h?.index&&(o=g.nextNode(),n++);}return g.currentNode=A,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++;}},w=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),R(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pt(t)?this.k(t):this._(t);}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t));}_(t){this._$AH!==c&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=T.createElement($t(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else {let o=new z(i,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o;}}_$AC(t){let e=lt.get(t.strings);return e===void 0&&lt.set(t.strings,e=new T(t)),e}k(t){ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let o of t)i===e.length?e.push(s=new r(this.S(O()),this.S(O()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},b=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c;}_$AI(t,e=this,s,i){let o=this.strings,n=false;if(o===void 0)t=v(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else {let d=t,h,l;for(t=o[0],h=0;h<o.length-1;h++)l=v(this,d[s+h],e,h),l===E&&(l=this._$AH[h]),n||(n=!R(l)||l!==this._$AH[h]),l===c?t=c:t!==c&&(t+=(l??"")+o[h+1]),this._$AH[h]=l;}n&&!i&&this.j(t);}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},j=class extends b{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===c?void 0:t;}},D=class extends b{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c);}},B=class extends b{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5;}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===E)return;let s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},I=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t);}},Gt={P:Q,A:$,C:X,M:1,L:_t,R:z,D:pt,V:v,I:w,H:b,N:D,U:B,B:j,F:I},xt=x.litHtmlPolyfillSupport;xt?.(T,w),(x.litHtmlVersions??(x.litHtmlVersions=[])).push("3.1.2");var ft=(r,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let o=e?.renderBefore??null;s._$litPart$=i=new w(t.insertBefore(O(),o),o,void 0,e??{});}return i._$AI(r),i};var W=globalThis,V=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),mt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=true,s!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(V&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&mt.set(e,t));}return t}toString(){return this.cssText}},yt=r=>new M(typeof r=="string"?r:r+"",void 0,Y),Ot=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,i,o)=>s+(n=>{if(n._$cssResult$===true)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1]),r[0]);return new M(e,r,Y)},tt=(r,t)=>{if(V)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),i=W.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s);}},q=V?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return yt(e)})(r):r;var{is:Rt,defineProperty:Tt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:Nt,getOwnPropertySymbols:Ht,getPrototypeOf:kt}=Object,m=globalThis,St=m.trustedTypes,Lt=St?St.emptyScript:"",zt=m.reactiveElementPolyfillSupport,N=(r,t)=>r,et={toAttribute(r,t){switch(t){case Boolean:r=r?Lt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r);}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r);}catch{e=null;}}return e}},At=(r,t)=>!Rt(r,t),gt={attribute:true,type:String,converter:et,reflect:false,hasChanged:At};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=gt){if(e.state&&(e.attribute=false),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Tt(this.prototype,t,i);}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=Mt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n;}};return {get(){return i?.call(this)},set(n){let d=i?.call(this);o.call(this,n),this.requestUpdate(t,d,s);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??gt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;let t=kt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(N("properties"))){let e=this.properties,s=[...Nt(e),...Ht(e)];for(let i of s)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i);}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(q(i));}else t!==void 0&&e.push(q(t));return e}static _$Eu(t,e){let s=e.attribute;return s===false?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return tt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,e,s){this._$AK(t,s);}_$EC(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===true){let o=(s.converter?.toAttribute!==void 0?s.converter:et).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:et;this._$Em=i,this[i]=n.fromAttribute(e,o.type),this._$Em=null;}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??At)(this[t],e))return;this.P(t,e,s);}this.isUpdatePending===false&&(this._$ES=this._$ET());}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===true&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s)o.wrapped!==true||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o);}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EC(e,this[e])))),this._$EU();}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[N("elementProperties")]=new Map,_[N("finalized")]=new Map,zt?.({ReactiveElement:_}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");var P=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;let t=super.createRenderRoot();return (e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ft(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return E}};P._$litElement$=true,P.finalized=true,globalThis.litElementHydrateSupport?.({LitElement:P});var jt=globalThis.litElementPolyfillSupport;jt?.({LitElement:P});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");var K=globalThis,Z=K.ShadowRoot&&(K.ShadyCSS===void 0||K.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Et=new WeakMap,J=class{constructor(t,e,s){if(this._$cssResult$=true,s!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Et.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Et.set(e,t));}return t}toString(){return this.cssText}},bt=r=>new J(typeof r=="string"?r:r+"",void 0,vt);var st=(r,t)=>{if(Z)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),i=K.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s);}},F=Z?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return bt(e)})(r):r;var {is:Dt,defineProperty:Bt,getOwnPropertyDescriptor:It,getOwnPropertyNames:Wt,getOwnPropertySymbols:Vt,getPrototypeOf:qt}=Object,y=globalThis,Ct=y.trustedTypes,Kt=Ct?Ct.emptyScript:"",Jt=y.reactiveElementPolyfillSupport,H=(r,t)=>r,it={toAttribute(r,t){switch(t){case Boolean:r=r?Kt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r);}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r);}catch{e=null;}}return e}},Pt=(r,t)=>!Dt(r,t),wt={attribute:true,type:String,converter:it,reflect:false,hasChanged:Pt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.litPropertyMetadata=new WeakMap);var C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=wt){if(e.state&&(e.attribute=false),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Bt(this.prototype,t,i);}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=It(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n;}};return {get(){return i?.call(this)},set(n){let d=i?.call(this);o.call(this,n),this.requestUpdate(t,d,s);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??wt}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;let t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(H("properties"))){let e=this.properties,s=[...Wt(e),...Vt(e)];for(let i of s)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i);}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(F(i));}else t!==void 0&&e.push(F(t));return e}static _$Eu(t,e){let s=e.attribute;return s===false?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return st(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,e,s){this._$AK(t,s);}_$EC(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===true){let o=(s.converter?.toAttribute!==void 0?s.converter:it).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:it;this._$Em=i,this[i]=n.fromAttribute(e,o.type),this._$Em=null;}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??Pt)(this[t],e))return;this.P(t,e,s);}this.isUpdatePending===false&&(this._$ES=this._$ET());}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===true&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s)o.wrapped!==true||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o);}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EC(e,this[e])))),this._$EU();}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[H("elementProperties")]=new Map,C[H("finalized")]=new Map,Jt?.({ReactiveElement:C}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.0.4");/*! Bundled license information:
4
-
5
- lit-html/lit-html.js:
6
- @lit/reactive-element/reactive-element.js:
7
- lit-element/lit-element.js:
8
- @lit/reactive-element/reactive-element.js:
9
- (**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- *)
14
-
15
- @lit/reactive-element/css-tag.js:
16
- @lit/reactive-element/css-tag.js:
17
- (**
18
- * @license
19
- * Copyright 2019 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- *)
22
-
23
- lit-html/is-server.js:
24
- (**
25
- * @license
26
- * Copyright 2022 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- *)
29
- */export{it as a,Pt as b,Zt as c,Ft as d,E as e,c as f,Gt as g,Ot as h,P as i};
@@ -1,35 +0,0 @@
1
- 'use strict';var chunkO2WRWRDO_cjs=require('./chunk-O2WRWRDO.cjs'),chunkYKO34INI_cjs=require('./chunk-YKO34INI.cjs'),chunkJ74VK4RB_cjs=require('./chunk-J74VK4RB.cjs'),chunkWIS6FQDY_cjs=require('./chunk-WIS6FQDY.cjs'),chunkGO6BV3T4_cjs=require('./chunk-GO6BV3T4.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var o,k,C,S,n=class extends chunkGO6BV3T4_cjs.i{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,o);this._clickable=true;this._autoscroll=true;this._lastScrollTime=0;this.currentTime=0;}get embed(){return this._embedId}set embed(t){this._embedId!=t&&(this._embedId=t,this.captionController=new chunkYKO34INI_cjs.a(this,this.embed),this.reset(),this.requestUpdate("embed"));}get clickable(){return this._clickable}set clickable(t){this._clickable!=t&&(typeof t=="string"?this._clickable=t==="true"||t==="":this._clickable=t,this.requestUpdate("clickable"));}get autoscroll(){return this._autoscroll}set autoscroll(t){this._autoscroll!=t&&(typeof t=="string"?this._autoscroll=t==="true"||t==="":this._autoscroll=t,this.requestUpdate("autoscroll"));}get wordIndex(){return this._wordIndex}set wordIndex(t){if(this._wordIndex!=t&&(this._wordIndex=t,this.autoscroll)){let e=this.shadowRoot?.querySelector(`[data-word-id="word-${this.segmentIndex}-${this.wordIndex}"]`);if(e&&this._lastScrollTime+2500<Date.now()){let r=this.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.top-r.top;if(s>0){let c=this.scrollTop+s;chunkJHSFSCC2_cjs.g(this,o,k).call(this,this,c-i.height/2);}}}}get segmentIndex(){return this._segmentIndex}set segmentIndex(t){this._segmentIndex!=t&&(this._segmentIndex=t);}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",chunkJHSFSCC2_cjs.g(this,o,C).bind(this)),this.reset();}reset(){if(typeof document>"u")return;this.loop=false,this.currentTime=0,this.wordIndex=0,this.segmentIndex=0;let t=document.querySelector(`mave-player[embed="${this.embed}"]`);t&&(this.player=t,t.addEventListener("play",()=>{this.loop=true,this.loopUpdateTime();}),t.addEventListener("pause",()=>{this.loop=false;}));}updateTime(){this.currentTime=this.player.currentTime;}loopUpdateTime(){this.updateTime(),setTimeout(()=>{this.loop&&requestAnimationFrame(this.loopUpdateTime.bind(this));},10);}inRange({start:t,end:e},r,i,s){if(this.currentTime>=t&&this.currentTime<=e)return s&&(this.wordIndex=s),i&&(this.segmentIndex=i),r||true}segmentStyle(){return this.clickable?{cursor:"pointer"}:{}}wordStyle(t){return t?{"background-color":this.highlight}:{}}render(){return this.captionController?this.captionController.render({complete:t=>(this.captions=t,chunkGO6BV3T4_cjs.c`
2
- <div>
3
- ${this.captions.segments.map((e,r)=>chunkGO6BV3T4_cjs.c`
4
- <p
5
- data-segment-id="segment-${r}"
6
- style=${chunkO2WRWRDO_cjs.a(this.segmentStyle())}
7
- @click=${this.clickable?chunkJHSFSCC2_cjs.g(this,o,S):chunkGO6BV3T4_cjs.f}
8
- part=${chunkJ74VK4RB_cjs.a(this.inRange(e,"segment"))}
9
- x-caption-segment-start="${e.start}"
10
- x-caption-segment-end="${e.end}"
11
- >
12
- ${e.words.map((i,s)=>chunkGO6BV3T4_cjs.c`
13
- <span
14
- data-word-id="word-${r}-${s}"
15
- style=${chunkO2WRWRDO_cjs.a(this.wordStyle(this.inRange(i)))}
16
- part=${chunkJ74VK4RB_cjs.a(this.inRange(i,"word",r,s))}
17
- x-caption-word-start="${i.start}"
18
- x-caption-word-end="${i.end}"
19
- >${i.word.trim()}</span
20
- >
21
- `)}
22
- </p>
23
- `)}
24
- </div>
25
- `)}):chunkGO6BV3T4_cjs.f}};o=new WeakSet,k=function(t,e,r=500){let i=this.scrollTop,s=e-i,c=null,p=false;function w(l){c||(c=l);let y=l-c,v=Math.min(y/r,1);t.scrollTop=i+s*x(v),y<r&&p?requestAnimationFrame(w):p=false;}function x(l){return l<.5?2*l*l:1-Math.pow(-2*l+2,2)/2}p=true,requestAnimationFrame(w);},C=function(){this._lastScrollTime=Date.now();},S=function(t){if(this.clickable){let e=t.target.closest("p");if(e&&this.player){let r=e.getAttribute("x-caption-segment-start");this.player.currentTime=Number(r),this.player.paused&&this.player.play();}}},n.styles=chunkGO6BV3T4_cjs.h`
26
- :host {
27
- display: block;
28
- width: 100%;
29
- height: 100%;
30
- }
31
-
32
- [part='word'] {
33
- background-color: rgba(255, 210, 42, 0.5);
34
- }
35
- `,chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],n.prototype,"embed",1),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],n.prototype,"highlight",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],n.prototype,"clickable",1),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],n.prototype,"autoscroll",1),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.b()],n.prototype,"currentTime",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.b()],n.prototype,"captions",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-text")||window.customElements.define("mave-text",n));exports.a=n;