classicy 0.5.9 → 0.5.18

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 (223) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -197
  3. package/dist/Preview-B06KD3T-.mjs +86 -0
  4. package/dist/classocy.css +1 -0
  5. package/dist/classocy.es.js +33767 -0
  6. package/dist/classocy.umd.js +3773 -0
  7. package/dist/dash.all.min-DImUSJ65.mjs +18804 -0
  8. package/dist/hls-D6RfXIgo.mjs +21708 -0
  9. package/dist/index-QIA8HMdL.mjs +15813 -0
  10. package/dist/index.d.ts +2 -0
  11. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppManager/ClassicyAppManager.d.ts +4 -4
  12. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppManager/ClassicyAppManagerContext.d.ts +1 -1
  13. package/dist/lib/components/SystemFolder/ControlPanels/AppManager/index.d.ts +2 -0
  14. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppearanceManager/ClassicyAppearance.d.ts +2 -2
  15. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppearanceManager/ClassicyAppearanceManager.d.ts +1 -1
  16. package/dist/lib/components/SystemFolder/ControlPanels/AppearanceManager/index.d.ts +4 -0
  17. package/dist/lib/components/SystemFolder/ControlPanels/ClassicyControlPanels.d.ts +1 -0
  18. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManager.d.ts +2 -2
  19. package/dist/lib/components/SystemFolder/ControlPanels/DateAndTimeManager/index.d.ts +1 -0
  20. package/dist/lib/components/SystemFolder/ControlPanels/SoundManager/ClassicySoundManager.d.ts +2 -0
  21. package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/SoundManager/ClassicySoundManagerContext.d.ts +2 -2
  22. package/dist/lib/components/SystemFolder/ControlPanels/SoundManager/index.d.ts +3 -0
  23. package/dist/lib/components/SystemFolder/ControlPanels/index.d.ts +5 -0
  24. package/dist/lib/components/SystemFolder/Finder/Finder.d.ts +1 -0
  25. package/dist/lib/components/SystemFolder/Finder/FinderContext.d.ts +2 -0
  26. package/dist/lib/components/SystemFolder/Finder/index.d.ts +2 -0
  27. package/{SystemFolder → dist/lib/components/SystemFolder}/QuickTime/MoviePlayer/MoviePlayerContext.d.ts +1 -1
  28. package/{SystemFolder → dist/lib/components/SystemFolder}/QuickTime/PictureViewer/PictureViewerContext.d.ts +2 -2
  29. package/{SystemFolder/QuickTime → dist/lib/components/SystemFolder/QuickTimeApp}/MoviePlayer/MoviePlayer.d.ts +1 -1
  30. package/dist/lib/components/SystemFolder/QuickTimeApp/MoviePlayer/MoviePlayerContext.d.ts +15 -0
  31. package/dist/lib/components/SystemFolder/QuickTimeApp/MoviePlayer/index.d.ts +2 -0
  32. package/{SystemFolder/QuickTime → dist/lib/components/SystemFolder/QuickTimeApp}/PictureViewer/PictureViewer.d.ts +1 -1
  33. package/dist/lib/components/SystemFolder/QuickTimeApp/PictureViewer/PictureViewerContext.d.ts +9 -0
  34. package/dist/lib/components/SystemFolder/QuickTimeApp/PictureViewer/index.d.ts +2 -0
  35. package/dist/lib/components/SystemFolder/QuickTimeApp/index.d.ts +2 -0
  36. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/AboutWindow/ClassicyAboutWindow.d.ts +3 -4
  37. package/dist/lib/components/SystemFolder/SystemResources/AboutWindow/index.d.ts +1 -0
  38. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/App/ClassicyApp.d.ts +1 -1
  39. package/dist/lib/components/SystemFolder/SystemResources/App/index.d.ts +2 -0
  40. package/dist/lib/components/SystemFolder/SystemResources/Boot/ClassicyBoot.d.ts +2 -0
  41. package/dist/lib/components/SystemFolder/SystemResources/Boot/index.d.ts +1 -0
  42. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Button/ClassicyButton.d.ts +1 -2
  43. package/dist/lib/components/SystemFolder/SystemResources/Button/index.d.ts +1 -0
  44. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Checkbox/ClassicyCheckbox.d.ts +1 -2
  45. package/dist/lib/components/SystemFolder/SystemResources/Checkbox/index.d.ts +1 -0
  46. package/dist/lib/components/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenu.d.ts +9 -0
  47. package/dist/lib/components/SystemFolder/SystemResources/ContextualMenu/index.d.ts +1 -0
  48. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/ControlGroup/ClassicyControlGroup.d.ts +1 -2
  49. package/dist/lib/components/SystemFolder/SystemResources/ControlGroup/index.d.ts +1 -0
  50. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/ControlLabel/ClassicyControlLabel.d.ts +1 -2
  51. package/dist/lib/components/SystemFolder/SystemResources/ControlLabel/index.d.ts +1 -0
  52. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/DatePicker/ClassicyDatePicker.d.ts +1 -2
  53. package/dist/lib/components/SystemFolder/SystemResources/DatePicker/index.d.ts +2 -0
  54. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Desktop/ClassicyDesktop.d.ts +1 -3
  55. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Desktop/ClassicyDesktopIcon.d.ts +1 -2
  56. package/dist/lib/components/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconContext.d.ts +4 -0
  57. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Desktop/ClassicyDesktopManager.d.ts +3 -3
  58. package/dist/lib/components/SystemFolder/SystemResources/Desktop/ClassicyDesktopWindowManagerContext.d.ts +2 -0
  59. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyDesktopMenuBar.d.ts +2 -0
  60. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Desktop/MenuBar/Widgets/Sound/ClassicyDesktopMenuWidgetSound.d.ts +1 -3
  61. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Sound/index.d.ts +1 -0
  62. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/ClassicyDesktopMenuWidgetTime.d.ts +2 -0
  63. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/index.d.ts +1 -0
  64. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/index.d.ts +2 -0
  65. package/dist/lib/components/SystemFolder/SystemResources/Desktop/MenuBar/index.d.ts +2 -0
  66. package/dist/lib/components/SystemFolder/SystemResources/Desktop/index.d.ts +6 -0
  67. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Disclosure/ClassicyDisclosure.d.ts +1 -2
  68. package/dist/lib/components/SystemFolder/SystemResources/Disclosure/index.d.ts +1 -0
  69. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileBrowser.d.ts +2 -2
  70. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileBrowserUtils.d.ts +1 -1
  71. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileBrowserViewIcons.d.ts +2 -2
  72. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileBrowserViewTable.d.ts +2 -3
  73. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileSystem.d.ts +1 -1
  74. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/DefaultClassicyFileSystem.d.ts +1 -1
  75. package/dist/lib/components/SystemFolder/SystemResources/File/index.d.ts +7 -0
  76. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Icon/ClassicyIcon.d.ts +1 -2
  77. package/dist/lib/components/SystemFolder/SystemResources/Icon/index.d.ts +1 -0
  78. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Input/ClassicyInput.d.ts +1 -2
  79. package/dist/lib/components/SystemFolder/SystemResources/Input/index.d.ts +1 -0
  80. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Menu/ClassicyMenu.d.ts +1 -2
  81. package/dist/lib/components/SystemFolder/SystemResources/Menu/index.d.ts +1 -0
  82. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/PopUpMenu/ClassicyPopUpMenu.d.ts +1 -2
  83. package/dist/lib/components/SystemFolder/SystemResources/PopUpMenu/index.d.ts +1 -0
  84. package/dist/lib/components/SystemFolder/SystemResources/ProgressBar/ClassicyProgressBar.d.ts +0 -0
  85. package/dist/lib/components/SystemFolder/SystemResources/ProgressBar/index.d.ts +1 -0
  86. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/QuickTime/QuickTimeMovieEmbed.d.ts +1 -2
  87. package/dist/lib/components/SystemFolder/SystemResources/QuickTime/index.d.ts +2 -0
  88. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/RadioInput/ClassicyRadioInput.d.ts +1 -2
  89. package/dist/lib/components/SystemFolder/SystemResources/RadioInput/index.d.ts +1 -0
  90. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/RichTextEditor/ClassicyRichTextEditor.d.ts +1 -2
  91. package/dist/lib/components/SystemFolder/SystemResources/RichTextEditor/index.d.ts +1 -0
  92. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Tabs/ClassicyTabs.d.ts +1 -2
  93. package/dist/lib/components/SystemFolder/SystemResources/Tabs/index.d.ts +1 -0
  94. package/dist/lib/components/SystemFolder/SystemResources/TextEditor/ClassicyTextEditor.d.ts +0 -0
  95. package/dist/lib/components/SystemFolder/SystemResources/TextEditor/index.d.ts +1 -0
  96. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/TimePicker/ClassicyTimePicker.d.ts +1 -2
  97. package/dist/lib/components/SystemFolder/SystemResources/TimePicker/index.d.ts +1 -0
  98. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Window/ClassicyWindow.d.ts +2 -3
  99. package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/Window/ClassicyWindowContext.d.ts +1 -1
  100. package/dist/lib/components/SystemFolder/SystemResources/Window/index.d.ts +2 -0
  101. package/dist/lib/components/SystemFolder/SystemResources/index.d.ts +24 -0
  102. package/dist/lib/components/SystemFolder/index.d.ts +3 -0
  103. package/dist/lib/components/index.d.ts +1 -0
  104. package/dist/lib/index.d.ts +1 -0
  105. package/dist/lib/storybook-utils.d.ts +4 -0
  106. package/dist/mixin-W-X7UVn9.mjs +780 -0
  107. package/dist/react-6cTPiRGz.mjs +285 -0
  108. package/dist/react-BwkETl1n.mjs +520 -0
  109. package/dist/react-BxlQMOfz.mjs +418 -0
  110. package/dist/react-COAP-MIW.mjs +376 -0
  111. package/dist/react-CkLX6aCd.mjs +372 -0
  112. package/dist/react-CpEfuIRC.mjs +458 -0
  113. package/dist/react-ad5TEs09.mjs +237 -0
  114. package/dist/react-fDIY1ne4.mjs +3100 -0
  115. package/package.json +36 -75
  116. package/173.index.js +0 -2
  117. package/173.index.js.LICENSE.txt +0 -25
  118. package/262.index.js +0 -2
  119. package/262.index.js.LICENSE.txt +0 -11
  120. package/303.index.js +0 -2
  121. package/303.index.js.LICENSE.txt +0 -1
  122. package/340.index.js +0 -2
  123. package/340.index.js.LICENSE.txt +0 -11
  124. package/353.index.js +0 -1
  125. package/394.index.js +0 -1
  126. package/395.index.js +0 -2
  127. package/395.index.js.LICENSE.txt +0 -11
  128. package/3c6dd90084fa516904c8.svg +0 -35
  129. package/42.index.js +0 -2
  130. package/42.index.js.LICENSE.txt +0 -11
  131. package/446.index.js +0 -2
  132. package/446.index.js.LICENSE.txt +0 -11
  133. package/723.index.js +0 -73
  134. package/723.index.js.LICENSE.txt +0 -7
  135. package/771.index.js +0 -2
  136. package/771.index.js.LICENSE.txt +0 -11
  137. package/85.index.js +0 -2
  138. package/85.index.js.LICENSE.txt +0 -11
  139. package/SystemFolder/ControlPanels/ClassicyControlPanels.d.ts +0 -2
  140. package/SystemFolder/ControlPanels/SoundManager/ClassicySoundManager.d.ts +0 -3
  141. package/SystemFolder/Finder/Finder.d.ts +0 -2
  142. package/SystemFolder/Finder/FinderContext.d.ts +0 -2
  143. package/SystemFolder/SystemResources/Boot/ClassicyBoot.d.ts +0 -3
  144. package/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenu.d.ts +0 -11
  145. package/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconContext.d.ts +0 -4
  146. package/SystemFolder/SystemResources/Desktop/ClassicyDesktopWindowManagerContext.d.ts +0 -3
  147. package/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyDesktopMenuBar.d.ts +0 -4
  148. package/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/ClassicyDesktopMenuWidgetTime.d.ts +0 -4
  149. package/SystemFolder/SystemResources/ProgressBar/ClassicyProgressBar.d.ts +0 -1
  150. package/SystemFolder/SystemResources/TextEditor/ClassicyTextEditor.d.ts +0 -1
  151. package/assets/img/icons/control-panels/appearance-manager/app.png +0 -0
  152. package/assets/img/icons/control-panels/appearance-manager/platinum.png +0 -0
  153. package/assets/img/icons/control-panels/date-time-manager/date-time-manager.png +0 -0
  154. package/assets/img/icons/control-panels/sound-manager/app.png +0 -0
  155. package/assets/img/icons/control-panels/sound-manager/sound-33.png +0 -0
  156. package/assets/img/icons/control-panels/sound-manager/sound-66.png +0 -0
  157. package/assets/img/icons/control-panels/sound-manager/sound-off.png +0 -0
  158. package/assets/img/icons/control-panels/sound-manager/sound-on.png +0 -0
  159. package/assets/img/icons/system/apple.png +0 -0
  160. package/assets/img/icons/system/drives/disk.png +0 -0
  161. package/assets/img/icons/system/files/file.png +0 -0
  162. package/assets/img/icons/system/folders/directory.png +0 -0
  163. package/assets/img/icons/system/mac.png +0 -0
  164. package/assets/img/icons/system/macos.png +0 -0
  165. package/assets/img/icons/system/quicktime/cc.png +0 -0
  166. package/assets/img/icons/system/quicktime/movie.png +0 -0
  167. package/assets/img/icons/system/quicktime/player.png +0 -0
  168. package/assets/img/wallpapers/azul_dark.png +0 -0
  169. package/assets/img/wallpapers/azul_extra_light.png +0 -0
  170. package/assets/img/wallpapers/azul_light.png +0 -0
  171. package/assets/img/wallpapers/bondi.png +0 -0
  172. package/assets/img/wallpapers/bondi_dark.png +0 -0
  173. package/assets/img/wallpapers/bondi_extra_dark.png +0 -0
  174. package/assets/img/wallpapers/bondi_light.png +0 -0
  175. package/assets/img/wallpapers/bondi_medium.png +0 -0
  176. package/assets/img/wallpapers/bossanova_bondi.png +0 -0
  177. package/assets/img/wallpapers/bossanova_poppy.png +0 -0
  178. package/assets/img/wallpapers/bossanova_poppy_2.png +0 -0
  179. package/assets/img/wallpapers/bubbles_bondi.png +0 -0
  180. package/assets/img/wallpapers/bubbles_poppy.png +0 -0
  181. package/assets/img/wallpapers/candy_bar.png +0 -0
  182. package/assets/img/wallpapers/candy_bar_azul.png +0 -0
  183. package/assets/img/wallpapers/candy_bar_pistachio.png +0 -0
  184. package/assets/img/wallpapers/candy_bar_sunny.png +0 -0
  185. package/assets/img/wallpapers/default.png +0 -0
  186. package/assets/img/wallpapers/diagonals_bondi.png +0 -0
  187. package/assets/img/wallpapers/diagonals_bondi_dark.png +0 -0
  188. package/assets/img/wallpapers/diagonals_poppy.png +0 -0
  189. package/assets/img/wallpapers/flat_peanuts.png +0 -0
  190. package/assets/img/wallpapers/flat_peanuts_poppy.png +0 -0
  191. package/assets/img/wallpapers/french_blue_dark.png +0 -0
  192. package/assets/img/wallpapers/french_blue_light.png +0 -0
  193. package/assets/img/wallpapers/macos.png +0 -0
  194. package/assets/img/wallpapers/peanuts_azul.png +0 -0
  195. package/assets/img/wallpapers/peanuts_pistachio.png +0 -0
  196. package/assets/img/wallpapers/pistachio_dark.png +0 -0
  197. package/assets/img/wallpapers/pistachio_light.png +0 -0
  198. package/assets/img/wallpapers/pistachio_medium.png +0 -0
  199. package/assets/img/wallpapers/poppy.png +0 -0
  200. package/assets/img/wallpapers/poppy_dark.png +0 -0
  201. package/assets/img/wallpapers/poppy_light.png +0 -0
  202. package/assets/img/wallpapers/poppy_medium.png +0 -0
  203. package/assets/img/wallpapers/rio_azul.png +0 -0
  204. package/assets/img/wallpapers/rio_pistachio.png +0 -0
  205. package/assets/img/wallpapers/ripple_azul.png +0 -0
  206. package/assets/img/wallpapers/ripple_bondi.png +0 -0
  207. package/assets/img/wallpapers/ripple_poppy.png +0 -0
  208. package/assets/img/wallpapers/sunny.png +0 -0
  209. package/assets/img/wallpapers/sunny_dark.png +0 -0
  210. package/assets/img/wallpapers/sunny_light.png +0 -0
  211. package/assets/img/wallpapers/waves_azul.png +0 -0
  212. package/assets/img/wallpapers/waves_bondi.png +0 -0
  213. package/assets/img/wallpapers/waves_sunny.png +0 -0
  214. package/e7dead02eb942a2c597f.svg +0 -49
  215. package/index.d.ts +0 -57
  216. package/index.js +0 -2
  217. package/index.js.LICENSE.txt +0 -86
  218. /package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppearanceManager/ClassicyColors.d.ts +0 -0
  219. /package/{SystemFolder → dist/lib/components/SystemFolder}/ControlPanels/AppearanceManager/ClassicySize.d.ts +0 -0
  220. /package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/App/ClassicyAppUtils.d.ts +0 -0
  221. /package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/DatePicker/ClassicyDatePickerUtils.d.ts +0 -0
  222. /package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/File/ClassicyFileSystemModel.d.ts +0 -0
  223. /package/{SystemFolder → dist/lib/components/SystemFolder}/SystemResources/QuickTime/QuickTimeUtils.d.ts +0 -0
@@ -0,0 +1,458 @@
1
+ var lt = Object.defineProperty;
2
+ var G = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var dt = (t, e, i) => e in t ? lt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
6
+ var x = (t, e, i) => dt(t, typeof e != "symbol" ? e + "" : e, i), I = (t, e, i) => e.has(t) || G("Cannot " + i);
7
+ var T = (t, e, i) => (I(t, e, "read from private field"), i ? i.call(t) : e.get(t)), A = (t, e, i) => e.has(t) ? G("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), M = (t, e, i, n) => (I(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i), y = (t, e, i) => (I(t, e, "access private method"), i);
8
+ import ut from "react";
9
+ const ct = [
10
+ "abort",
11
+ "canplay",
12
+ "canplaythrough",
13
+ "durationchange",
14
+ "emptied",
15
+ "encrypted",
16
+ "ended",
17
+ "error",
18
+ "loadeddata",
19
+ "loadedmetadata",
20
+ "loadstart",
21
+ "pause",
22
+ "play",
23
+ "playing",
24
+ "progress",
25
+ "ratechange",
26
+ "seeked",
27
+ "seeking",
28
+ "stalled",
29
+ "suspend",
30
+ "timeupdate",
31
+ "volumechange",
32
+ "waiting",
33
+ "waitingforkey",
34
+ "resize",
35
+ "enterpictureinpicture",
36
+ "leavepictureinpicture",
37
+ "webkitbeginfullscreen",
38
+ "webkitendfullscreen",
39
+ "webkitpresentationmodechanged"
40
+ ];
41
+ var V;
42
+ const B = (V = globalThis.document) == null ? void 0 : V.createElement("template");
43
+ B && (B.innerHTML = /*html*/
44
+ `
45
+ <style>
46
+ :host {
47
+ display: inline-block;
48
+ line-height: 0;
49
+ }
50
+
51
+ video,
52
+ audio {
53
+ max-width: 100%;
54
+ max-height: 100%;
55
+ min-width: 100%;
56
+ min-height: 100%;
57
+ }
58
+ </style>
59
+ <slot></slot>
60
+ `);
61
+ const tt = (t, { tag: e, is: i }) => {
62
+ var v, c, b, H, et, _, w, P, L, p, E, l, N, it, st, ot, nt, rt;
63
+ const n = (v = globalThis.document) == null ? void 0 : v.createElement(e, { is: i }), h = n ? J(n) : [];
64
+ return c = class extends t {
65
+ constructor() {
66
+ super();
67
+ A(this, l);
68
+ A(this, _);
69
+ A(this, w);
70
+ A(this, P, !1);
71
+ A(this, L, !1);
72
+ A(this, p);
73
+ A(this, E);
74
+ this.shadowRoot || (this.attachShadow({ mode: "open" }), this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))), this.load !== c.prototype.load && (this.loadComplete = new K());
75
+ }
76
+ static get observedAttributes() {
77
+ var o, m;
78
+ return y(o = c, H, et).call(o), [
79
+ ...((m = n == null ? void 0 : n.constructor) == null ? void 0 : m.observedAttributes) ?? [],
80
+ "autopictureinpicture",
81
+ "disablepictureinpicture",
82
+ "disableremoteplayback",
83
+ "autoplay",
84
+ "controls",
85
+ "controlslist",
86
+ "crossorigin",
87
+ "loop",
88
+ "muted",
89
+ "playsinline",
90
+ "poster",
91
+ "preload",
92
+ "src"
93
+ ];
94
+ }
95
+ get loadComplete() {
96
+ return T(this, w);
97
+ }
98
+ set loadComplete(s) {
99
+ M(this, L, !1), M(this, w, s), s == null || s.then(() => {
100
+ M(this, L, !0);
101
+ });
102
+ }
103
+ get isLoaded() {
104
+ return T(this, L);
105
+ }
106
+ get nativeEl() {
107
+ return T(this, p) ?? this.shadowRoot.querySelector(e) ?? this.querySelector(e);
108
+ }
109
+ set nativeEl(s) {
110
+ M(this, p, s);
111
+ }
112
+ get defaultMuted() {
113
+ return this.hasAttribute("muted");
114
+ }
115
+ set defaultMuted(s) {
116
+ this.toggleAttribute("muted", !!s);
117
+ }
118
+ get src() {
119
+ return this.getAttribute("src");
120
+ }
121
+ set src(s) {
122
+ this.setAttribute("src", `${s}`);
123
+ }
124
+ get preload() {
125
+ var s;
126
+ return this.getAttribute("preload") ?? ((s = this.nativeEl) == null ? void 0 : s.preload);
127
+ }
128
+ set preload(s) {
129
+ this.setAttribute("preload", `${s}`);
130
+ }
131
+ attributeChangedCallback(s, o, m) {
132
+ y(this, l, N).call(this), s === "src" && this.load !== c.prototype.load && y(this, l, nt).call(this), y(this, l, rt).call(this, s, o, m);
133
+ }
134
+ connectedCallback() {
135
+ y(this, l, N).call(this);
136
+ }
137
+ }, b = new WeakMap(), H = new WeakSet(), et = function() {
138
+ if (T(this, b)) return;
139
+ M(this, b, !0);
140
+ const s = new Set(this.observedAttributes);
141
+ s.delete("muted");
142
+ for (let o of h) {
143
+ if (o in this.prototype) continue;
144
+ if (typeof n[o] == "function")
145
+ this.prototype[o] = function(...g) {
146
+ y(this, l, N).call(this);
147
+ const a = () => this.call ? this.call(o, ...g) : this.nativeEl[o].apply(this.nativeEl, g);
148
+ return this.loadComplete && !this.isLoaded ? this.loadComplete.then(a) : a();
149
+ };
150
+ else {
151
+ let g = {
152
+ get() {
153
+ var d, C;
154
+ y(this, l, N).call(this);
155
+ let a = o.toLowerCase();
156
+ if (s.has(a)) {
157
+ const R = this.getAttribute(a);
158
+ return R === null ? !1 : R === "" ? !0 : R;
159
+ }
160
+ return ((d = this.get) == null ? void 0 : d.call(this, o)) ?? ((C = this.nativeEl) == null ? void 0 : C[o]) ?? T(this, E)[o];
161
+ }
162
+ };
163
+ o !== o.toUpperCase() && (g.set = async function(a) {
164
+ y(this, l, N).call(this);
165
+ let d = o.toLowerCase();
166
+ if (s.has(d)) {
167
+ a === !0 || a === !1 || a == null ? this.toggleAttribute(d, !!a) : this.setAttribute(d, a);
168
+ return;
169
+ }
170
+ if (this.loadComplete && !this.isLoaded && await this.loadComplete, this.set) {
171
+ this.set(o, a);
172
+ return;
173
+ }
174
+ this.nativeEl[o] = a;
175
+ }), Object.defineProperty(this.prototype, o, g);
176
+ }
177
+ }
178
+ }, _ = new WeakMap(), w = new WeakMap(), P = new WeakMap(), L = new WeakMap(), p = new WeakMap(), E = new WeakMap(), l = new WeakSet(), N = async function() {
179
+ var m, g;
180
+ if (T(this, _)) return;
181
+ M(this, _, !0), y(this, l, st).call(this), y(this, l, ot).call(this);
182
+ for (let a of h)
183
+ y(this, l, it).call(this, a);
184
+ const s = /* @__PURE__ */ new Map(), o = this.shadowRoot.querySelector("slot:not([name])");
185
+ o == null || o.addEventListener("slotchange", () => {
186
+ const a = new Map(s);
187
+ o.assignedElements().filter((d) => ["track", "source"].includes(d.localName)).forEach(async (d) => {
188
+ var R, z;
189
+ a.delete(d);
190
+ let C = s.get(d);
191
+ C || (C = d.cloneNode(), s.set(d, C)), this.loadComplete && !this.isLoaded && await this.loadComplete, (z = (R = this.nativeEl).append) == null || z.call(R, C);
192
+ }), a.forEach((d) => d.remove());
193
+ });
194
+ for (let a of this.constructor.Events)
195
+ (g = (m = this.shadowRoot).addEventListener) == null || g.call(m, a, (d) => {
196
+ d.target === this.nativeEl && this.dispatchEvent(new CustomEvent(d.type, { detail: d.detail }));
197
+ }, !0);
198
+ }, it = function(s) {
199
+ if (Object.prototype.hasOwnProperty.call(this, s)) {
200
+ const o = this[s];
201
+ delete this[s], this[s] = o;
202
+ }
203
+ }, st = function() {
204
+ const s = document.createElement(e, { is: i });
205
+ s.muted = this.hasAttribute("muted");
206
+ for (let { name: o, value: m } of this.attributes)
207
+ s.setAttribute(o, m);
208
+ M(this, E, {});
209
+ for (let o of J(s))
210
+ T(this, E)[o] = s[o];
211
+ s.removeAttribute("src"), s.load();
212
+ }, ot = async function() {
213
+ if (this.loadComplete && !this.isLoaded && await this.loadComplete, !this.nativeEl) {
214
+ const s = document.createElement(e, { is: i });
215
+ s.part = e, this.shadowRoot.append(s);
216
+ }
217
+ this.nativeEl.muted = this.hasAttribute("muted");
218
+ }, nt = async function() {
219
+ var s;
220
+ T(this, P) && (this.loadComplete = new K()), M(this, P, !0), await Promise.resolve(), await this.load(), (s = this.loadComplete) == null || s.resolve(), await this.loadComplete;
221
+ }, rt = async function(s, o, m) {
222
+ var g, a, d, C;
223
+ this.loadComplete && !this.isLoaded && await this.loadComplete, !["id", "class", ...this.constructor.skipAttributes].includes(s) && (m === null ? (a = (g = this.nativeEl).removeAttribute) == null || a.call(g, s) : (C = (d = this.nativeEl).setAttribute) == null || C.call(d, s, m));
224
+ }, A(c, H), x(c, "Events", ct), x(c, "template", B), x(c, "skipAttributes", []), A(c, b), c;
225
+ };
226
+ function J(t) {
227
+ let e = [];
228
+ for (let i = Object.getPrototypeOf(t); i && i !== HTMLElement.prototype; i = Object.getPrototypeOf(i))
229
+ e.push(...Object.getOwnPropertyNames(i));
230
+ return e;
231
+ }
232
+ class K extends Promise {
233
+ constructor(e = () => {
234
+ }) {
235
+ let i, n;
236
+ super((h, v) => {
237
+ e(h, v), i = h, n = v;
238
+ }), this.resolve = i, this.reject = n;
239
+ }
240
+ }
241
+ const ht = globalThis.document ? tt(HTMLElement, { tag: "video" }) : class {
242
+ };
243
+ globalThis.document && tt(HTMLElement, { tag: "audio" });
244
+ var Q, X;
245
+ const W = (Q = globalThis.document) == null ? void 0 : Q.createElement("template");
246
+ W && (W.innerHTML = /*html*/
247
+ `
248
+ <div class="wistia_embed"></div>
249
+ `);
250
+ const D = (X = globalThis.document) == null ? void 0 : X.createElement("template");
251
+ D && (D.innerHTML = /*html*/
252
+ `
253
+ <style>
254
+ :host {
255
+ display: inline-block;
256
+ min-width: 300px;
257
+ min-height: 150px;
258
+ position: relative;
259
+ }
260
+ ::slotted(.wistia_embed) {
261
+ position: absolute;
262
+ width: 100%;
263
+ height: 100%;
264
+ }
265
+ </style>
266
+ <slot></slot>
267
+ `);
268
+ class q extends ht {
269
+ get nativeEl() {
270
+ var e;
271
+ return ((e = this.api) == null ? void 0 : e.elem()) ?? this.querySelector("video");
272
+ }
273
+ async load() {
274
+ var e;
275
+ if ((e = this.querySelector(".wistia_embed")) == null || e.remove(), !this.src)
276
+ return;
277
+ await new Promise((b) => setTimeout(b, 50));
278
+ const i = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i, n = this.src.match(i)[1], h = {
279
+ autoPlay: this.autoplay,
280
+ preload: this.preload ?? "metadata",
281
+ playsinline: this.playsInline,
282
+ endVideoBehavior: this.loop && "loop",
283
+ chromeless: !this.controls,
284
+ playButton: this.controls,
285
+ muted: this.defaultMuted
286
+ };
287
+ this.append(W.content.cloneNode(!0));
288
+ const v = this.querySelector(".wistia_embed");
289
+ v.id || (v.id = mt(n)), v.classList.add(`wistia_async_${n}`), await pt("https://fast.wistia.com/assets/external/E-v1.js", "Wistia"), this.api = await new Promise((b) => {
290
+ globalThis._wq.push({
291
+ id: v.id,
292
+ onReady: b,
293
+ options: h
294
+ });
295
+ });
296
+ }
297
+ async attributeChangedCallback(e, i, n) {
298
+ if (e === "controls") {
299
+ switch (await this.loadComplete, e) {
300
+ case "controls":
301
+ this.api.bigPlayButtonEnabled(this.controls), this.controls ? this.api.releaseChromeless() : this.api.requestChromeless();
302
+ break;
303
+ }
304
+ return;
305
+ }
306
+ super.attributeChangedCallback(e, i, n);
307
+ }
308
+ // Override some methods w/ defaults if the video element is not ready yet when called.
309
+ // Some methods require the Wistia API instead of the native video element API.
310
+ get duration() {
311
+ var e;
312
+ return (e = this.api) == null ? void 0 : e.duration();
313
+ }
314
+ async play() {
315
+ return await this.loadComplete, this.api.play(), new Promise((e) => this.addEventListener("playing", e));
316
+ }
317
+ }
318
+ x(q, "template", D), x(q, "skipAttributes", ["src"]);
319
+ const $ = {};
320
+ async function pt(t, e) {
321
+ return $[t] ? $[t] : self[e] ? self[e] : $[t] = new Promise((i, n) => {
322
+ const h = document.createElement("script");
323
+ h.defer = !0, h.src = t, h.onload = () => i(self[e]), h.onerror = n, document.head.append(h);
324
+ });
325
+ }
326
+ let ft = 0;
327
+ function mt(t) {
328
+ const e = ++ft;
329
+ return `${t}${e}`;
330
+ }
331
+ globalThis.customElements && !globalThis.customElements.get("wistia-video") && globalThis.customElements.define("wistia-video", q);
332
+ var vt = q, yt = /* @__PURE__ */ new Set([
333
+ "style",
334
+ "children",
335
+ "ref",
336
+ "key",
337
+ "suppressContentEditableWarning",
338
+ "suppressHydrationWarning",
339
+ "dangerouslySetInnerHTML"
340
+ ]), bt = {
341
+ className: "class",
342
+ htmlFor: "for"
343
+ };
344
+ function at(t) {
345
+ return t.toLowerCase();
346
+ }
347
+ function Y(t) {
348
+ if (typeof t == "boolean") return t ? "" : void 0;
349
+ if (typeof t != "function" && !(typeof t == "object" && t !== null))
350
+ return t;
351
+ }
352
+ function wt({
353
+ react: t,
354
+ tagName: e,
355
+ elementClass: i,
356
+ events: n,
357
+ displayName: h,
358
+ defaultProps: v,
359
+ toAttributeName: c = at,
360
+ toAttributeValue: b = Y
361
+ }) {
362
+ const H = Number.parseInt(t.version) >= 19, F = t.forwardRef((_, w) => {
363
+ var P, L;
364
+ const p = t.useRef(null), E = t.useRef(/* @__PURE__ */ new Map()), l = {}, U = {}, k = {}, j = {};
365
+ for (const [r, u] of Object.entries(_)) {
366
+ if (yt.has(r)) {
367
+ k[r] = u;
368
+ continue;
369
+ }
370
+ const f = c(bt[r] ?? r);
371
+ if (i.prototype && r in i.prototype && !(r in (((P = globalThis.HTMLElement) == null ? void 0 : P.prototype) ?? {})) && !((L = i.observedAttributes) != null && L.some((O) => O === f))) {
372
+ j[r] = u;
373
+ continue;
374
+ }
375
+ if (r.startsWith("on")) {
376
+ l[r] = u;
377
+ continue;
378
+ }
379
+ const S = b(u);
380
+ if (f && S != null && (U[f] = String(S), H || (k[f] = S)), f && H) {
381
+ const O = Y(u);
382
+ S !== O ? k[f] = S : k[f] = u;
383
+ }
384
+ }
385
+ if (typeof window < "u") {
386
+ for (const r in l) {
387
+ const u = l[r], f = r.endsWith("Capture"), S = ((n == null ? void 0 : n[r]) ?? r.slice(2).toLowerCase()).slice(
388
+ 0,
389
+ f ? -7 : void 0
390
+ );
391
+ t.useLayoutEffect(() => {
392
+ const O = p == null ? void 0 : p.current;
393
+ if (!(!O || typeof u != "function"))
394
+ return O.addEventListener(S, u, f), () => {
395
+ O.removeEventListener(S, u, f);
396
+ };
397
+ }, [p == null ? void 0 : p.current, u]);
398
+ }
399
+ t.useLayoutEffect(() => {
400
+ if (p.current === null) return;
401
+ const r = /* @__PURE__ */ new Map();
402
+ for (const u in j)
403
+ Z(p.current, u, j[u]), E.current.delete(u), r.set(u, j[u]);
404
+ for (const [u, f] of E.current)
405
+ Z(p.current, u, void 0);
406
+ E.current = r;
407
+ });
408
+ }
409
+ if (typeof window > "u" && (i != null && i.getTemplateHTML) && (i != null && i.shadowRootOptions)) {
410
+ const { mode: r, delegatesFocus: u } = i.shadowRootOptions, f = t.createElement("template", {
411
+ shadowrootmode: r,
412
+ shadowrootdelegatesfocus: u,
413
+ dangerouslySetInnerHTML: {
414
+ __html: i.getTemplateHTML(U, _)
415
+ },
416
+ key: "ce-la-react-ssr-template-shadow-root"
417
+ });
418
+ k.children = [f, k.children];
419
+ }
420
+ return t.createElement(e, {
421
+ ...v,
422
+ ...k,
423
+ ref: t.useCallback(
424
+ (r) => {
425
+ p.current = r, typeof w == "function" ? w(r) : w !== null && (w.current = r);
426
+ },
427
+ [w]
428
+ )
429
+ }, k.children);
430
+ });
431
+ return F.displayName = h ?? i.name, F;
432
+ }
433
+ function Z(t, e, i) {
434
+ var n;
435
+ t[e] = i, i == null && e in (((n = globalThis.HTMLElement) == null ? void 0 : n.prototype) ?? {}) && t.removeAttribute(e);
436
+ }
437
+ var Ct = wt({
438
+ react: ut,
439
+ tagName: "wistia-video",
440
+ elementClass: vt,
441
+ toAttributeName(t) {
442
+ return t === "muted" ? "" : t === "defaultMuted" ? "muted" : at(t);
443
+ }
444
+ });
445
+ /*! Bundled license information:
446
+
447
+ ce-la-react/dist/ce-la-react.js:
448
+ (**
449
+ * @license
450
+ * Copyright 2018 Google LLC
451
+ * SPDX-License-Identifier: BSD-3-Clause
452
+ *
453
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
454
+ *)
455
+ */
456
+ export {
457
+ Ct as default
458
+ };
@@ -0,0 +1,237 @@
1
+ var D = Object.defineProperty;
2
+ var P = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var F = (t, i, e) => i in t ? D(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
6
+ var L = (t, i, e) => F(t, typeof i != "symbol" ? i + "" : i, e), N = (t, i, e) => i.has(t) || P("Cannot " + e);
7
+ var $ = (t, i, e) => (N(t, i, "read from private field"), e ? e.call(t) : i.get(t)), A = (t, i, e) => i.has(t) ? P("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), C = (t, i, e, s) => (N(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
8
+ import W from "react";
9
+ import { M as U, C as I } from "./mixin-W-X7UVn9.mjs";
10
+ var M;
11
+ class k extends U(I) {
12
+ constructor() {
13
+ super(...arguments);
14
+ A(this, M);
15
+ }
16
+ attributeChangedCallback(e, s, n) {
17
+ e !== "src" && super.attributeChangedCallback(e, s, n), e === "src" && s != n && this.load();
18
+ }
19
+ async _initThumbnails(e) {
20
+ const s = async (d, v) => {
21
+ const g = [], h = e.timescale || 1, E = e.startNumber || 1, _ = e.presentationTimeOffset ? e.presentationTimeOffset / h : 0, m = e.segmentDuration;
22
+ for (let b = 0; b < d; b++) {
23
+ const y = K({
24
+ thIndex: b,
25
+ thduration: v,
26
+ ttiles: d,
27
+ tduration: m,
28
+ startNumber: E,
29
+ pto: _
30
+ }), S = y + v, f = new Promise((w, a) => {
31
+ this.api.provideThumbnail(y, ({ url: r, width: l, height: p, x: T, y: O }) => {
32
+ try {
33
+ const R = new VTTCue(
34
+ y,
35
+ S,
36
+ `${r}#xywh=${T},${O},${l},${p}`
37
+ );
38
+ w(R);
39
+ } catch (R) {
40
+ a(R);
41
+ }
42
+ });
43
+ });
44
+ g.push(f);
45
+ }
46
+ return await Promise.all(g).catch((b) => console.error("Error processing thumbnails", b));
47
+ }, { totalThumbnails: n, thumbnailDuration: o } = j(e), u = await s(n, o);
48
+ let c = this.nativeEl.querySelector('track[label="thumbnails"]');
49
+ if (!c) {
50
+ c = q(), this.nativeEl.appendChild(c);
51
+ const d = z(u);
52
+ c.src = d, c.dispatchEvent(new Event("change"));
53
+ }
54
+ }
55
+ async load() {
56
+ if ($(this, M)) {
57
+ this.api.attachSource(this.src);
58
+ return;
59
+ }
60
+ C(this, M, !0);
61
+ const e = await import("./dash.all.min-DImUSJ65.mjs");
62
+ this.api = e.MediaPlayer().create(), this.api.initialize(this.nativeEl, this.src, this.autoplay), this.api.on(e.MediaPlayer.events.STREAM_INITIALIZED, () => {
63
+ const s = this.api.getRepresentationsByType("video");
64
+ let n = this.videoTracks.getTrackById("main");
65
+ n || (n = this.addVideoTrack("main"), n.id = "main", n.selected = !0), s.forEach((o) => {
66
+ const u = o.bandwidth ?? o.bitrate ?? (Number.isFinite(o.bitrateInKbit) ? o.bitrateInKbit * 1e3 : void 0), c = n.addRendition(o.id, o.width, o.height, o.mimeType ?? o.codec, u);
67
+ c.id = o.id;
68
+ }), this.videoRenditions.addEventListener("change", () => {
69
+ const o = this.videoRenditions[this.videoRenditions.selectedIndex];
70
+ o != null && o.id ? (this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: !1 } } } }), this.api.setRepresentationForTypeById("video", o.id, !0)) : this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: !0 } } } });
71
+ }), this.api.isDynamic() || this.api.getRepresentationsByType("image").forEach(async (u, c) => {
72
+ c > 0 || this._initThumbnails(u);
73
+ });
74
+ });
75
+ }
76
+ }
77
+ M = new WeakMap(), L(k, "shadowRootOptions", { ...I.shadowRootOptions }), L(k, "getTemplateHTML", (e) => {
78
+ const { src: s, ...n } = e;
79
+ return I.getTemplateHTML(n);
80
+ });
81
+ function j(t) {
82
+ var i, e;
83
+ const s = t.essentialProperties[0], [n, o] = s.value.split("x").map(Number), u = n * o, c = ((e = (i = t.adaptation) == null ? void 0 : i.period) == null ? void 0 : e.duration) || null, d = t.segmentDuration, v = t.timescale || 1, h = d / v / u;
84
+ return { totalThumbnails: c != null ? Math.ceil(c / h) : Math.ceil(d / h), thumbnailDuration: h };
85
+ }
86
+ function K({ thIndex: t, tduration: i, thduration: e, ttiles: s, startNumber: n, pto: o }) {
87
+ const u = Math.floor(t / s) + n, c = t % s + 1, d = (u - 1) * i - o, v = (c - 1) * e;
88
+ return d + v;
89
+ }
90
+ function q() {
91
+ const t = document.createElement("track");
92
+ return t.kind = "metadata", t.label = "thumbnails", t.srclang = "en", t.mode = "hidden", t.default = !0, t;
93
+ }
94
+ function z(t) {
95
+ let i = `WEBVTT
96
+
97
+ `;
98
+ for (const n of t)
99
+ i += `${s(n.startTime)} --> ${s(n.endTime)}
100
+ `, i += `${n.text}
101
+
102
+ `;
103
+ const e = new Blob([i], { type: "text/vtt" });
104
+ return URL.createObjectURL(e);
105
+ function s(n) {
106
+ const o = String(Math.floor(n / 3600)).padStart(2, "0"), u = String(Math.floor(n % 3600 / 60)).padStart(2, "0"), c = (n % 60).toFixed(3).padStart(6, "0");
107
+ return `${o}:${u}:${c}`;
108
+ }
109
+ }
110
+ globalThis.customElements && !globalThis.customElements.get("dash-video") && globalThis.customElements.define("dash-video", k);
111
+ var Z = k, G = /* @__PURE__ */ new Set([
112
+ "style",
113
+ "children",
114
+ "ref",
115
+ "key",
116
+ "suppressContentEditableWarning",
117
+ "suppressHydrationWarning",
118
+ "dangerouslySetInnerHTML"
119
+ ]), J = {
120
+ className: "class",
121
+ htmlFor: "for"
122
+ };
123
+ function H(t) {
124
+ return t.toLowerCase();
125
+ }
126
+ function x(t) {
127
+ if (typeof t == "boolean") return t ? "" : void 0;
128
+ if (typeof t != "function" && !(typeof t == "object" && t !== null))
129
+ return t;
130
+ }
131
+ function Q({
132
+ react: t,
133
+ tagName: i,
134
+ elementClass: e,
135
+ events: s,
136
+ displayName: n,
137
+ defaultProps: o,
138
+ toAttributeName: u = H,
139
+ toAttributeValue: c = x
140
+ }) {
141
+ const d = Number.parseInt(t.version) >= 19, v = t.forwardRef((g, h) => {
142
+ var E, _;
143
+ const m = t.useRef(null), b = t.useRef(/* @__PURE__ */ new Map()), y = {}, S = {}, f = {}, w = {};
144
+ for (const [a, r] of Object.entries(g)) {
145
+ if (G.has(a)) {
146
+ f[a] = r;
147
+ continue;
148
+ }
149
+ const l = u(J[a] ?? a);
150
+ if (e.prototype && a in e.prototype && !(a in (((E = globalThis.HTMLElement) == null ? void 0 : E.prototype) ?? {})) && !((_ = e.observedAttributes) != null && _.some((T) => T === l))) {
151
+ w[a] = r;
152
+ continue;
153
+ }
154
+ if (a.startsWith("on")) {
155
+ y[a] = r;
156
+ continue;
157
+ }
158
+ const p = c(r);
159
+ if (l && p != null && (S[l] = String(p), d || (f[l] = p)), l && d) {
160
+ const T = x(r);
161
+ p !== T ? f[l] = p : f[l] = r;
162
+ }
163
+ }
164
+ if (typeof window < "u") {
165
+ for (const a in y) {
166
+ const r = y[a], l = a.endsWith("Capture"), p = ((s == null ? void 0 : s[a]) ?? a.slice(2).toLowerCase()).slice(
167
+ 0,
168
+ l ? -7 : void 0
169
+ );
170
+ t.useLayoutEffect(() => {
171
+ const T = m == null ? void 0 : m.current;
172
+ if (!(!T || typeof r != "function"))
173
+ return T.addEventListener(p, r, l), () => {
174
+ T.removeEventListener(p, r, l);
175
+ };
176
+ }, [m == null ? void 0 : m.current, r]);
177
+ }
178
+ t.useLayoutEffect(() => {
179
+ if (m.current === null) return;
180
+ const a = /* @__PURE__ */ new Map();
181
+ for (const r in w)
182
+ B(m.current, r, w[r]), b.current.delete(r), a.set(r, w[r]);
183
+ for (const [r, l] of b.current)
184
+ B(m.current, r, void 0);
185
+ b.current = a;
186
+ });
187
+ }
188
+ if (typeof window > "u" && (e != null && e.getTemplateHTML) && (e != null && e.shadowRootOptions)) {
189
+ const { mode: a, delegatesFocus: r } = e.shadowRootOptions, l = t.createElement("template", {
190
+ shadowrootmode: a,
191
+ shadowrootdelegatesfocus: r,
192
+ dangerouslySetInnerHTML: {
193
+ __html: e.getTemplateHTML(S, g)
194
+ },
195
+ key: "ce-la-react-ssr-template-shadow-root"
196
+ });
197
+ f.children = [l, f.children];
198
+ }
199
+ return t.createElement(i, {
200
+ ...o,
201
+ ...f,
202
+ ref: t.useCallback(
203
+ (a) => {
204
+ m.current = a, typeof h == "function" ? h(a) : h !== null && (h.current = a);
205
+ },
206
+ [h]
207
+ )
208
+ }, f.children);
209
+ });
210
+ return v.displayName = n ?? e.name, v;
211
+ }
212
+ function B(t, i, e) {
213
+ var s;
214
+ t[i] = e, e == null && i in (((s = globalThis.HTMLElement) == null ? void 0 : s.prototype) ?? {}) && t.removeAttribute(i);
215
+ }
216
+ var tt = Q({
217
+ react: W,
218
+ tagName: "dash-video",
219
+ elementClass: Z,
220
+ toAttributeName(t) {
221
+ return t === "muted" ? "" : t === "defaultMuted" ? "muted" : H(t);
222
+ }
223
+ });
224
+ /*! Bundled license information:
225
+
226
+ ce-la-react/dist/ce-la-react.js:
227
+ (**
228
+ * @license
229
+ * Copyright 2018 Google LLC
230
+ * SPDX-License-Identifier: BSD-3-Clause
231
+ *
232
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
233
+ *)
234
+ */
235
+ export {
236
+ tt as default
237
+ };