@sgrsoft/vpe-react-ui 0.1.0
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.
- package/README.md +54 -0
- package/dist/vpe-react-ui.css +1 -0
- package/dist/vpe-react-ui.es.js +699 -0
- package/dist/vpe-react-ui.umd.js +1 -0
- package/package.json +56 -0
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# VPE React SDK (초안)
|
|
2
|
+
|
|
3
|
+
React 19/Vite 기반 VPE 플레이어 UI 라이브러리입니다. hls.js/dashjs는 번들에 포함되지 않으며, 외부 플러그인으로 주입합니다.
|
|
4
|
+
|
|
5
|
+
## 설치
|
|
6
|
+
```bash
|
|
7
|
+
pnpm add @sgrsoft/vpe-react-ui
|
|
8
|
+
# 선택: 스트리밍 라이브러리
|
|
9
|
+
pnpm add hls.js dashjs
|
|
10
|
+
```
|
|
11
|
+
- hls.js/dashjs는 선택적 peerDependency입니다. 브라우저/CDN 또는 `import Hls from "hls.js"`, `import dashjs from "dashjs"`로 주입하세요.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 사용법
|
|
15
|
+
### React (ESM)
|
|
16
|
+
```tsx
|
|
17
|
+
import Hls from "hls.js";
|
|
18
|
+
import dashjs from "dashjs";
|
|
19
|
+
import { VpePlayer } from "@sgrsoft/vpe-react-ui";
|
|
20
|
+
|
|
21
|
+
export function App() {
|
|
22
|
+
return (
|
|
23
|
+
<VpePlayer
|
|
24
|
+
accessKey="..."
|
|
25
|
+
appId="..."
|
|
26
|
+
platform="pub"
|
|
27
|
+
stage="prod"
|
|
28
|
+
aspectRatio="16/9"
|
|
29
|
+
hls={Hls}
|
|
30
|
+
dashjs={dashjs}
|
|
31
|
+
options={{
|
|
32
|
+
playlist: [...],
|
|
33
|
+
}}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### UMD
|
|
40
|
+
```html
|
|
41
|
+
<link rel="stylesheet" href="./vpePlayer.css" />
|
|
42
|
+
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
|
43
|
+
<script src="https://cdn.jsdelivr.net/npm/dashjs@4"></script>
|
|
44
|
+
<script src="./vpePlayer.js"></script>
|
|
45
|
+
<div id="video"></div>
|
|
46
|
+
<script>
|
|
47
|
+
const player = vpe.setup("#video", {
|
|
48
|
+
aspectRatio: "16/9",
|
|
49
|
+
hls: window.Hls,
|
|
50
|
+
dashjs: window.dashjs,
|
|
51
|
+
});
|
|
52
|
+
// player.destroy() 로 해제 가능
|
|
53
|
+
</script>
|
|
54
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.obtn{background-color:#00000073;aspect-ratio:1/1;width:2.5em;border-radius:500px;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.obtnNoBg{aspect-ratio:1.2/1;width:2.3em;border-radius:500px;display:flex;justify-content:center;align-items:center}.obtn:hover{background-color:#000000a6}.obtnNoBg:hover{background-color:#00000073}.obtn-group{background-color:#00000040;height:2.5em;border-radius:500px;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.obtn-group:hover{background-color:#0000004d}.tra200{transition:all .2s ease}
|
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
var U = { exports: {} }, L = {};
|
|
2
|
+
var K;
|
|
3
|
+
function pe() {
|
|
4
|
+
if (K) return L;
|
|
5
|
+
K = 1;
|
|
6
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
7
|
+
function o(l, a, m) {
|
|
8
|
+
var f = null;
|
|
9
|
+
if (m !== void 0 && (f = "" + m), a.key !== void 0 && (f = "" + a.key), "key" in a) {
|
|
10
|
+
m = {};
|
|
11
|
+
for (var p in a)
|
|
12
|
+
p !== "key" && (m[p] = a[p]);
|
|
13
|
+
} else m = a;
|
|
14
|
+
return a = m.ref, {
|
|
15
|
+
$$typeof: r,
|
|
16
|
+
type: l,
|
|
17
|
+
key: f,
|
|
18
|
+
ref: a !== void 0 ? a : null,
|
|
19
|
+
props: m
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return L.Fragment = t, L.jsx = o, L.jsxs = o, L;
|
|
23
|
+
}
|
|
24
|
+
var ee;
|
|
25
|
+
function _e() {
|
|
26
|
+
return ee || (ee = 1, U.exports = pe()), U.exports;
|
|
27
|
+
}
|
|
28
|
+
var h = _e(), F = { exports: {} }, D = {}, z = { exports: {} }, s = {}, te;
|
|
29
|
+
function ye() {
|
|
30
|
+
if (te) return s;
|
|
31
|
+
te = 1;
|
|
32
|
+
var r = {};
|
|
33
|
+
var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), p = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), x = Symbol.for("react.activity"), A = Symbol.iterator;
|
|
34
|
+
function M(e) {
|
|
35
|
+
return e === null || typeof e != "object" ? null : (e = A && e[A] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
36
|
+
}
|
|
37
|
+
var P = {
|
|
38
|
+
isMounted: function() {
|
|
39
|
+
return !1;
|
|
40
|
+
},
|
|
41
|
+
enqueueForceUpdate: function() {
|
|
42
|
+
},
|
|
43
|
+
enqueueReplaceState: function() {
|
|
44
|
+
},
|
|
45
|
+
enqueueSetState: function() {
|
|
46
|
+
}
|
|
47
|
+
}, H = Object.assign, V = {};
|
|
48
|
+
function T(e, n, c) {
|
|
49
|
+
this.props = e, this.context = n, this.refs = V, this.updater = c || P;
|
|
50
|
+
}
|
|
51
|
+
T.prototype.isReactComponent = {}, T.prototype.setState = function(e, n) {
|
|
52
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
53
|
+
throw Error(
|
|
54
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
55
|
+
);
|
|
56
|
+
this.updater.enqueueSetState(this, e, n, "setState");
|
|
57
|
+
}, T.prototype.forceUpdate = function(e) {
|
|
58
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
59
|
+
};
|
|
60
|
+
function O() {
|
|
61
|
+
}
|
|
62
|
+
O.prototype = T.prototype;
|
|
63
|
+
function $(e, n, c) {
|
|
64
|
+
this.props = e, this.context = n, this.refs = V, this.updater = c || P;
|
|
65
|
+
}
|
|
66
|
+
var b = $.prototype = new O();
|
|
67
|
+
b.constructor = $, H(b, T.prototype), b.isPureReactComponent = !0;
|
|
68
|
+
var J = Array.isArray;
|
|
69
|
+
function I() {
|
|
70
|
+
}
|
|
71
|
+
var _ = { H: null, A: null, T: null, S: null }, W = Object.prototype.hasOwnProperty;
|
|
72
|
+
function Y(e, n, c) {
|
|
73
|
+
var i = c.ref;
|
|
74
|
+
return {
|
|
75
|
+
$$typeof: t,
|
|
76
|
+
type: e,
|
|
77
|
+
key: n,
|
|
78
|
+
ref: i !== void 0 ? i : null,
|
|
79
|
+
props: c
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function ce(e, n) {
|
|
83
|
+
return Y(e.type, n, e.props);
|
|
84
|
+
}
|
|
85
|
+
function k(e) {
|
|
86
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
87
|
+
}
|
|
88
|
+
function le(e) {
|
|
89
|
+
var n = { "=": "=0", ":": "=2" };
|
|
90
|
+
return "$" + e.replace(/[=:]/g, function(c) {
|
|
91
|
+
return n[c];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
var Q = /\/+/g;
|
|
95
|
+
function q(e, n) {
|
|
96
|
+
return typeof e == "object" && e !== null && e.key != null ? le("" + e.key) : n.toString(36);
|
|
97
|
+
}
|
|
98
|
+
function fe(e) {
|
|
99
|
+
switch (e.status) {
|
|
100
|
+
case "fulfilled":
|
|
101
|
+
return e.value;
|
|
102
|
+
case "rejected":
|
|
103
|
+
throw e.reason;
|
|
104
|
+
default:
|
|
105
|
+
switch (typeof e.status == "string" ? e.then(I, I) : (e.status = "pending", e.then(
|
|
106
|
+
function(n) {
|
|
107
|
+
e.status === "pending" && (e.status = "fulfilled", e.value = n);
|
|
108
|
+
},
|
|
109
|
+
function(n) {
|
|
110
|
+
e.status === "pending" && (e.status = "rejected", e.reason = n);
|
|
111
|
+
}
|
|
112
|
+
)), e.status) {
|
|
113
|
+
case "fulfilled":
|
|
114
|
+
return e.value;
|
|
115
|
+
case "rejected":
|
|
116
|
+
throw e.reason;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
throw e;
|
|
120
|
+
}
|
|
121
|
+
function Z(e, n, c, i, E) {
|
|
122
|
+
var d = typeof e;
|
|
123
|
+
(d === "undefined" || d === "boolean") && (e = null);
|
|
124
|
+
var y = !1;
|
|
125
|
+
if (e === null) y = !0;
|
|
126
|
+
else
|
|
127
|
+
switch (d) {
|
|
128
|
+
case "bigint":
|
|
129
|
+
case "string":
|
|
130
|
+
case "number":
|
|
131
|
+
y = !0;
|
|
132
|
+
break;
|
|
133
|
+
case "object":
|
|
134
|
+
switch (e.$$typeof) {
|
|
135
|
+
case t:
|
|
136
|
+
case o:
|
|
137
|
+
y = !0;
|
|
138
|
+
break;
|
|
139
|
+
case C:
|
|
140
|
+
return y = e._init, Z(
|
|
141
|
+
y(e._payload),
|
|
142
|
+
n,
|
|
143
|
+
c,
|
|
144
|
+
i,
|
|
145
|
+
E
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
if (y)
|
|
150
|
+
return E = E(e), y = i === "" ? "." + q(e, 0) : i, J(E) ? (c = "", y != null && (c = y.replace(Q, "$&/") + "/"), Z(E, n, c, "", function(de) {
|
|
151
|
+
return de;
|
|
152
|
+
})) : E != null && (k(E) && (E = ce(
|
|
153
|
+
E,
|
|
154
|
+
c + (E.key == null || e && e.key === E.key ? "" : ("" + E.key).replace(
|
|
155
|
+
Q,
|
|
156
|
+
"$&/"
|
|
157
|
+
) + "/") + y
|
|
158
|
+
)), n.push(E)), 1;
|
|
159
|
+
y = 0;
|
|
160
|
+
var j = i === "" ? "." : i + ":";
|
|
161
|
+
if (J(e))
|
|
162
|
+
for (var S = 0; S < e.length; S++)
|
|
163
|
+
i = e[S], d = j + q(i, S), y += Z(
|
|
164
|
+
i,
|
|
165
|
+
n,
|
|
166
|
+
c,
|
|
167
|
+
d,
|
|
168
|
+
E
|
|
169
|
+
);
|
|
170
|
+
else if (S = M(e), typeof S == "function")
|
|
171
|
+
for (e = S.call(e), S = 0; !(i = e.next()).done; )
|
|
172
|
+
i = i.value, d = j + q(i, S++), y += Z(
|
|
173
|
+
i,
|
|
174
|
+
n,
|
|
175
|
+
c,
|
|
176
|
+
d,
|
|
177
|
+
E
|
|
178
|
+
);
|
|
179
|
+
else if (d === "object") {
|
|
180
|
+
if (typeof e.then == "function")
|
|
181
|
+
return Z(
|
|
182
|
+
fe(e),
|
|
183
|
+
n,
|
|
184
|
+
c,
|
|
185
|
+
i,
|
|
186
|
+
E
|
|
187
|
+
);
|
|
188
|
+
throw n = String(e), Error(
|
|
189
|
+
"Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
return y;
|
|
193
|
+
}
|
|
194
|
+
function N(e, n, c) {
|
|
195
|
+
if (e == null) return e;
|
|
196
|
+
var i = [], E = 0;
|
|
197
|
+
return Z(e, i, "", "", function(d) {
|
|
198
|
+
return n.call(c, d, E++);
|
|
199
|
+
}), i;
|
|
200
|
+
}
|
|
201
|
+
function me(e) {
|
|
202
|
+
if (e._status === -1) {
|
|
203
|
+
var n = e._result;
|
|
204
|
+
n = n(), n.then(
|
|
205
|
+
function(c) {
|
|
206
|
+
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = c);
|
|
207
|
+
},
|
|
208
|
+
function(c) {
|
|
209
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = c);
|
|
210
|
+
}
|
|
211
|
+
), e._status === -1 && (e._status = 0, e._result = n);
|
|
212
|
+
}
|
|
213
|
+
if (e._status === 1) return e._result.default;
|
|
214
|
+
throw e._result;
|
|
215
|
+
}
|
|
216
|
+
var X = typeof reportError == "function" ? reportError : function(e) {
|
|
217
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
218
|
+
var n = new window.ErrorEvent("error", {
|
|
219
|
+
bubbles: !0,
|
|
220
|
+
cancelable: !0,
|
|
221
|
+
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
222
|
+
error: e
|
|
223
|
+
});
|
|
224
|
+
if (!window.dispatchEvent(n)) return;
|
|
225
|
+
} else if (typeof r == "object" && typeof r.emit == "function") {
|
|
226
|
+
r.emit("uncaughtException", e);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
console.error(e);
|
|
230
|
+
}, Ee = {
|
|
231
|
+
map: N,
|
|
232
|
+
forEach: function(e, n, c) {
|
|
233
|
+
N(
|
|
234
|
+
e,
|
|
235
|
+
function() {
|
|
236
|
+
n.apply(this, arguments);
|
|
237
|
+
},
|
|
238
|
+
c
|
|
239
|
+
);
|
|
240
|
+
},
|
|
241
|
+
count: function(e) {
|
|
242
|
+
var n = 0;
|
|
243
|
+
return N(e, function() {
|
|
244
|
+
n++;
|
|
245
|
+
}), n;
|
|
246
|
+
},
|
|
247
|
+
toArray: function(e) {
|
|
248
|
+
return N(e, function(n) {
|
|
249
|
+
return n;
|
|
250
|
+
}) || [];
|
|
251
|
+
},
|
|
252
|
+
only: function(e) {
|
|
253
|
+
if (!k(e))
|
|
254
|
+
throw Error(
|
|
255
|
+
"React.Children.only expected to receive a single React element child."
|
|
256
|
+
);
|
|
257
|
+
return e;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return s.Activity = x, s.Children = Ee, s.Component = T, s.Fragment = l, s.Profiler = m, s.PureComponent = $, s.StrictMode = a, s.Suspense = v, s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _, s.__COMPILER_RUNTIME = {
|
|
261
|
+
__proto__: null,
|
|
262
|
+
c: function(e) {
|
|
263
|
+
return _.H.useMemoCache(e);
|
|
264
|
+
}
|
|
265
|
+
}, s.cache = function(e) {
|
|
266
|
+
return function() {
|
|
267
|
+
return e.apply(null, arguments);
|
|
268
|
+
};
|
|
269
|
+
}, s.cacheSignal = function() {
|
|
270
|
+
return null;
|
|
271
|
+
}, s.cloneElement = function(e, n, c) {
|
|
272
|
+
if (e == null)
|
|
273
|
+
throw Error(
|
|
274
|
+
"The argument must be a React element, but you passed " + e + "."
|
|
275
|
+
);
|
|
276
|
+
var i = H({}, e.props), E = e.key;
|
|
277
|
+
if (n != null)
|
|
278
|
+
for (d in n.key !== void 0 && (E = "" + n.key), n)
|
|
279
|
+
!W.call(n, d) || d === "key" || d === "__self" || d === "__source" || d === "ref" && n.ref === void 0 || (i[d] = n[d]);
|
|
280
|
+
var d = arguments.length - 2;
|
|
281
|
+
if (d === 1) i.children = c;
|
|
282
|
+
else if (1 < d) {
|
|
283
|
+
for (var y = Array(d), j = 0; j < d; j++)
|
|
284
|
+
y[j] = arguments[j + 2];
|
|
285
|
+
i.children = y;
|
|
286
|
+
}
|
|
287
|
+
return Y(e.type, E, i);
|
|
288
|
+
}, s.createContext = function(e) {
|
|
289
|
+
return e = {
|
|
290
|
+
$$typeof: p,
|
|
291
|
+
_currentValue: e,
|
|
292
|
+
_currentValue2: e,
|
|
293
|
+
_threadCount: 0,
|
|
294
|
+
Provider: null,
|
|
295
|
+
Consumer: null
|
|
296
|
+
}, e.Provider = e, e.Consumer = {
|
|
297
|
+
$$typeof: f,
|
|
298
|
+
_context: e
|
|
299
|
+
}, e;
|
|
300
|
+
}, s.createElement = function(e, n, c) {
|
|
301
|
+
var i, E = {}, d = null;
|
|
302
|
+
if (n != null)
|
|
303
|
+
for (i in n.key !== void 0 && (d = "" + n.key), n)
|
|
304
|
+
W.call(n, i) && i !== "key" && i !== "__self" && i !== "__source" && (E[i] = n[i]);
|
|
305
|
+
var y = arguments.length - 2;
|
|
306
|
+
if (y === 1) E.children = c;
|
|
307
|
+
else if (1 < y) {
|
|
308
|
+
for (var j = Array(y), S = 0; S < y; S++)
|
|
309
|
+
j[S] = arguments[S + 2];
|
|
310
|
+
E.children = j;
|
|
311
|
+
}
|
|
312
|
+
if (e && e.defaultProps)
|
|
313
|
+
for (i in y = e.defaultProps, y)
|
|
314
|
+
E[i] === void 0 && (E[i] = y[i]);
|
|
315
|
+
return Y(e, d, E);
|
|
316
|
+
}, s.createRef = function() {
|
|
317
|
+
return { current: null };
|
|
318
|
+
}, s.forwardRef = function(e) {
|
|
319
|
+
return { $$typeof: g, render: e };
|
|
320
|
+
}, s.isValidElement = k, s.lazy = function(e) {
|
|
321
|
+
return {
|
|
322
|
+
$$typeof: C,
|
|
323
|
+
_payload: { _status: -1, _result: e },
|
|
324
|
+
_init: me
|
|
325
|
+
};
|
|
326
|
+
}, s.memo = function(e, n) {
|
|
327
|
+
return {
|
|
328
|
+
$$typeof: R,
|
|
329
|
+
type: e,
|
|
330
|
+
compare: n === void 0 ? null : n
|
|
331
|
+
};
|
|
332
|
+
}, s.startTransition = function(e) {
|
|
333
|
+
var n = _.T, c = {};
|
|
334
|
+
_.T = c;
|
|
335
|
+
try {
|
|
336
|
+
var i = e(), E = _.S;
|
|
337
|
+
E !== null && E(c, i), typeof i == "object" && i !== null && typeof i.then == "function" && i.then(I, X);
|
|
338
|
+
} catch (d) {
|
|
339
|
+
X(d);
|
|
340
|
+
} finally {
|
|
341
|
+
n !== null && c.types !== null && (n.types = c.types), _.T = n;
|
|
342
|
+
}
|
|
343
|
+
}, s.unstable_useCacheRefresh = function() {
|
|
344
|
+
return _.H.useCacheRefresh();
|
|
345
|
+
}, s.use = function(e) {
|
|
346
|
+
return _.H.use(e);
|
|
347
|
+
}, s.useActionState = function(e, n, c) {
|
|
348
|
+
return _.H.useActionState(e, n, c);
|
|
349
|
+
}, s.useCallback = function(e, n) {
|
|
350
|
+
return _.H.useCallback(e, n);
|
|
351
|
+
}, s.useContext = function(e) {
|
|
352
|
+
return _.H.useContext(e);
|
|
353
|
+
}, s.useDebugValue = function() {
|
|
354
|
+
}, s.useDeferredValue = function(e, n) {
|
|
355
|
+
return _.H.useDeferredValue(e, n);
|
|
356
|
+
}, s.useEffect = function(e, n) {
|
|
357
|
+
return _.H.useEffect(e, n);
|
|
358
|
+
}, s.useEffectEvent = function(e) {
|
|
359
|
+
return _.H.useEffectEvent(e);
|
|
360
|
+
}, s.useId = function() {
|
|
361
|
+
return _.H.useId();
|
|
362
|
+
}, s.useImperativeHandle = function(e, n, c) {
|
|
363
|
+
return _.H.useImperativeHandle(e, n, c);
|
|
364
|
+
}, s.useInsertionEffect = function(e, n) {
|
|
365
|
+
return _.H.useInsertionEffect(e, n);
|
|
366
|
+
}, s.useLayoutEffect = function(e, n) {
|
|
367
|
+
return _.H.useLayoutEffect(e, n);
|
|
368
|
+
}, s.useMemo = function(e, n) {
|
|
369
|
+
return _.H.useMemo(e, n);
|
|
370
|
+
}, s.useOptimistic = function(e, n) {
|
|
371
|
+
return _.H.useOptimistic(e, n);
|
|
372
|
+
}, s.useReducer = function(e, n, c) {
|
|
373
|
+
return _.H.useReducer(e, n, c);
|
|
374
|
+
}, s.useRef = function(e) {
|
|
375
|
+
return _.H.useRef(e);
|
|
376
|
+
}, s.useState = function(e) {
|
|
377
|
+
return _.H.useState(e);
|
|
378
|
+
}, s.useSyncExternalStore = function(e, n, c) {
|
|
379
|
+
return _.H.useSyncExternalStore(
|
|
380
|
+
e,
|
|
381
|
+
n,
|
|
382
|
+
c
|
|
383
|
+
);
|
|
384
|
+
}, s.useTransition = function() {
|
|
385
|
+
return _.H.useTransition();
|
|
386
|
+
}, s.version = "19.2.1", s;
|
|
387
|
+
}
|
|
388
|
+
var ne;
|
|
389
|
+
function ue() {
|
|
390
|
+
return ne || (ne = 1, z.exports = ye()), z.exports;
|
|
391
|
+
}
|
|
392
|
+
var re;
|
|
393
|
+
function ve() {
|
|
394
|
+
if (re) return D;
|
|
395
|
+
re = 1;
|
|
396
|
+
var r = ue().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
397
|
+
return D.c = function(t) {
|
|
398
|
+
return r.H.useMemoCache(t);
|
|
399
|
+
}, D;
|
|
400
|
+
}
|
|
401
|
+
var oe;
|
|
402
|
+
function he() {
|
|
403
|
+
return oe || (oe = 1, F.exports = ve()), F.exports;
|
|
404
|
+
}
|
|
405
|
+
var w = he(), u = ue();
|
|
406
|
+
const Re = /* @__PURE__ */ new Map([
|
|
407
|
+
[
|
|
408
|
+
"bold",
|
|
409
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z" }))
|
|
410
|
+
],
|
|
411
|
+
[
|
|
412
|
+
"duotone",
|
|
413
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement(
|
|
414
|
+
"path",
|
|
415
|
+
{
|
|
416
|
+
d: "M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",
|
|
417
|
+
opacity: "0.2"
|
|
418
|
+
}
|
|
419
|
+
), /* @__PURE__ */ u.createElement("path", { d: "M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z" }))
|
|
420
|
+
],
|
|
421
|
+
[
|
|
422
|
+
"fill",
|
|
423
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z" }))
|
|
424
|
+
],
|
|
425
|
+
[
|
|
426
|
+
"light",
|
|
427
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z" }))
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
"regular",
|
|
431
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z" }))
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
"thin",
|
|
435
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z" }))
|
|
436
|
+
]
|
|
437
|
+
]), Ae = /* @__PURE__ */ new Map([
|
|
438
|
+
[
|
|
439
|
+
"bold",
|
|
440
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z" }))
|
|
441
|
+
],
|
|
442
|
+
[
|
|
443
|
+
"duotone",
|
|
444
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement(
|
|
445
|
+
"path",
|
|
446
|
+
{
|
|
447
|
+
d: "M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",
|
|
448
|
+
opacity: "0.2"
|
|
449
|
+
}
|
|
450
|
+
), /* @__PURE__ */ u.createElement("path", { d: "M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z" }))
|
|
451
|
+
],
|
|
452
|
+
[
|
|
453
|
+
"fill",
|
|
454
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z" }))
|
|
455
|
+
],
|
|
456
|
+
[
|
|
457
|
+
"light",
|
|
458
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z" }))
|
|
459
|
+
],
|
|
460
|
+
[
|
|
461
|
+
"regular",
|
|
462
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z" }))
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
"thin",
|
|
466
|
+
/* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("path", { d: "M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z" }))
|
|
467
|
+
]
|
|
468
|
+
]), ge = u.createContext({
|
|
469
|
+
color: "currentColor",
|
|
470
|
+
size: "1em",
|
|
471
|
+
weight: "regular",
|
|
472
|
+
mirrored: !1
|
|
473
|
+
}), G = u.forwardRef(
|
|
474
|
+
(r, t) => {
|
|
475
|
+
const {
|
|
476
|
+
alt: o,
|
|
477
|
+
color: l,
|
|
478
|
+
size: a,
|
|
479
|
+
weight: m,
|
|
480
|
+
mirrored: f,
|
|
481
|
+
children: p,
|
|
482
|
+
weights: g,
|
|
483
|
+
...v
|
|
484
|
+
} = r, {
|
|
485
|
+
color: R = "currentColor",
|
|
486
|
+
size: C,
|
|
487
|
+
weight: x = "regular",
|
|
488
|
+
mirrored: A = !1,
|
|
489
|
+
...M
|
|
490
|
+
} = u.useContext(ge);
|
|
491
|
+
return /* @__PURE__ */ u.createElement(
|
|
492
|
+
"svg",
|
|
493
|
+
{
|
|
494
|
+
ref: t,
|
|
495
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
496
|
+
width: a ?? C,
|
|
497
|
+
height: a ?? C,
|
|
498
|
+
fill: l ?? R,
|
|
499
|
+
viewBox: "0 0 256 256",
|
|
500
|
+
transform: f || A ? "scale(-1, 1)" : void 0,
|
|
501
|
+
...M,
|
|
502
|
+
...v
|
|
503
|
+
},
|
|
504
|
+
!!o && /* @__PURE__ */ u.createElement("title", null, o),
|
|
505
|
+
p,
|
|
506
|
+
g.get(m ?? x)
|
|
507
|
+
);
|
|
508
|
+
}
|
|
509
|
+
);
|
|
510
|
+
G.displayName = "IconBase";
|
|
511
|
+
const se = u.forwardRef((r, t) => /* @__PURE__ */ u.createElement(G, { ref: t, ...r, weights: Re }));
|
|
512
|
+
se.displayName = "PauseIcon";
|
|
513
|
+
const ie = u.forwardRef((r, t) => /* @__PURE__ */ u.createElement(G, { ref: t, ...r, weights: Ae }));
|
|
514
|
+
ie.displayName = "PlayIcon";
|
|
515
|
+
const B = /* @__PURE__ */ new Map();
|
|
516
|
+
function He(r, t) {
|
|
517
|
+
if (B.has(r))
|
|
518
|
+
return B.get(r);
|
|
519
|
+
const l = {
|
|
520
|
+
value: typeof t == "function" ? t() : t,
|
|
521
|
+
listeners: /* @__PURE__ */ new Set()
|
|
522
|
+
};
|
|
523
|
+
return B.set(r, l), l;
|
|
524
|
+
}
|
|
525
|
+
function Te(r, t) {
|
|
526
|
+
const o = w.c(12);
|
|
527
|
+
let l;
|
|
528
|
+
o[0] !== t || o[1] !== r ? (l = He(r, t), o[0] = t, o[1] = r, o[2] = l) : l = o[2];
|
|
529
|
+
const a = l;
|
|
530
|
+
let m;
|
|
531
|
+
o[3] !== a.listeners ? (m = (A) => (a.listeners.add(A), () => a.listeners.delete(A)), o[3] = a.listeners, o[4] = m) : m = o[4];
|
|
532
|
+
const f = m;
|
|
533
|
+
let p;
|
|
534
|
+
o[5] !== a.value ? (p = () => a.value, o[5] = a.value, o[6] = p) : p = o[6];
|
|
535
|
+
const g = p;
|
|
536
|
+
let v;
|
|
537
|
+
o[7] !== a ? (v = (A) => {
|
|
538
|
+
a.value = typeof A == "function" ? A(a.value) : A, a.listeners.forEach(Ce);
|
|
539
|
+
}, o[7] = a, o[8] = v) : v = o[8];
|
|
540
|
+
const R = v, C = u.useSyncExternalStore(f, g);
|
|
541
|
+
let x;
|
|
542
|
+
return o[9] !== R || o[10] !== C ? (x = [C, R], o[9] = R, o[10] = C, o[11] = x) : x = o[11], x;
|
|
543
|
+
}
|
|
544
|
+
function Ce(r) {
|
|
545
|
+
return r();
|
|
546
|
+
}
|
|
547
|
+
const Se = "playerState", xe = {
|
|
548
|
+
isPlaying: !1,
|
|
549
|
+
initPlay: !1
|
|
550
|
+
};
|
|
551
|
+
function ae() {
|
|
552
|
+
const r = w.c(5), [t, o] = Te(Se, xe);
|
|
553
|
+
let l;
|
|
554
|
+
r[0] !== o ? (l = (f) => {
|
|
555
|
+
o((p) => {
|
|
556
|
+
const g = typeof f == "function" ? f(p) : f;
|
|
557
|
+
return {
|
|
558
|
+
...p,
|
|
559
|
+
...g
|
|
560
|
+
};
|
|
561
|
+
});
|
|
562
|
+
}, r[0] = o, r[1] = l) : l = r[1];
|
|
563
|
+
const a = l;
|
|
564
|
+
let m;
|
|
565
|
+
return r[2] !== a || r[3] !== t ? (m = [t, a], r[2] = a, r[3] = t, r[4] = m) : m = r[4], m;
|
|
566
|
+
}
|
|
567
|
+
function Ve(r) {
|
|
568
|
+
const t = w.c(23), o = u.useRef(null), [l, a] = ae(), m = r.hlsLib, f = r.options;
|
|
569
|
+
let p;
|
|
570
|
+
t[0] !== m || t[1] !== f || t[2] !== r ? (p = () => {
|
|
571
|
+
const H = o.current, V = r?.src?.file;
|
|
572
|
+
if (!(!H || !V)) {
|
|
573
|
+
if (m?.isSupported?.()) {
|
|
574
|
+
const T = new m({
|
|
575
|
+
lowLatencyMode: f.lowLatencyMode
|
|
576
|
+
});
|
|
577
|
+
return T.attachMedia(H), T.on(m.Events.MEDIA_ATTACHED, () => {
|
|
578
|
+
T.loadSource(V);
|
|
579
|
+
}), T.on(m.Events.ERROR, (O, $) => {
|
|
580
|
+
r.onError && r.onError({
|
|
581
|
+
evt: O,
|
|
582
|
+
data: $
|
|
583
|
+
});
|
|
584
|
+
}), () => {
|
|
585
|
+
T.destroy();
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
H.src = V;
|
|
589
|
+
}
|
|
590
|
+
}, t[0] = m, t[1] = f, t[2] = r, t[3] = p) : p = t[3];
|
|
591
|
+
const g = r?.src?.file;
|
|
592
|
+
let v;
|
|
593
|
+
t[4] !== m || t[5] !== r.onError || t[6] !== g ? (v = [m, g, r.onError], t[4] = m, t[5] = r.onError, t[6] = g, t[7] = v) : v = t[7], u.useEffect(p, v);
|
|
594
|
+
let R, C;
|
|
595
|
+
t[8] !== f ? (R = () => {
|
|
596
|
+
const H = o.current;
|
|
597
|
+
if (!H)
|
|
598
|
+
return;
|
|
599
|
+
const V = f?.playbackRate;
|
|
600
|
+
typeof V == "number" && (H.playbackRate = V);
|
|
601
|
+
}, C = [f], t[8] = f, t[9] = R, t[10] = C) : (R = t[9], C = t[10]), u.useEffect(R, C);
|
|
602
|
+
let x, A;
|
|
603
|
+
t[11] !== a ? (x = () => {
|
|
604
|
+
const H = o.current;
|
|
605
|
+
if (!H)
|
|
606
|
+
return;
|
|
607
|
+
const V = () => {
|
|
608
|
+
a({
|
|
609
|
+
isPlaying: !0,
|
|
610
|
+
initPlay: !0
|
|
611
|
+
});
|
|
612
|
+
}, T = () => {
|
|
613
|
+
a({
|
|
614
|
+
isPlaying: !1
|
|
615
|
+
});
|
|
616
|
+
};
|
|
617
|
+
return H.addEventListener("play", V), H.addEventListener("pause", T), () => {
|
|
618
|
+
H.removeEventListener("play", V), H.removeEventListener("pause", T);
|
|
619
|
+
};
|
|
620
|
+
}, A = [a], t[11] = a, t[12] = x, t[13] = A) : (x = t[12], A = t[13]), u.useEffect(x, A);
|
|
621
|
+
let M;
|
|
622
|
+
t[14] !== f?.autostart || t[15] !== f?.muted || t[16] !== f?.objectFit || t[17] !== f?.repeat || t[18] !== l || t[19] !== r.src ? (M = r?.src?.file && /* @__PURE__ */ h.jsx("video", { playsInline: !0, ref: o, className: "w-full h-full", controls: !1, autoPlay: f?.autostart, muted: f?.muted, loop: f?.repeat, style: {
|
|
623
|
+
background: r.src.poster ? l.initPlay ? "transparent" : `url(${r.src.poster}) center / ${f?.objectFit ?? "contain"} no-repeat` : void 0,
|
|
624
|
+
objectFit: f?.objectFit ?? "contain"
|
|
625
|
+
} }), t[14] = f?.autostart, t[15] = f?.muted, t[16] = f?.objectFit, t[17] = f?.repeat, t[18] = l, t[19] = r.src, t[20] = M) : M = t[20];
|
|
626
|
+
let P;
|
|
627
|
+
return t[21] !== M ? (P = /* @__PURE__ */ h.jsx(h.Fragment, { children: M }), t[21] = M, t[22] = P) : P = t[22], P;
|
|
628
|
+
}
|
|
629
|
+
function we(r) {
|
|
630
|
+
const t = w.c(4);
|
|
631
|
+
let o;
|
|
632
|
+
t[0] !== r.src ? (o = r?.src?.file && /* @__PURE__ */ h.jsx("div", { children: r.src.file }), t[0] = r.src, t[1] = o) : o = t[1];
|
|
633
|
+
let l;
|
|
634
|
+
return t[2] !== o ? (l = /* @__PURE__ */ h.jsx(h.Fragment, { children: o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
635
|
+
}
|
|
636
|
+
function Me(r) {
|
|
637
|
+
const t = w.c(4);
|
|
638
|
+
let o;
|
|
639
|
+
t[0] !== r.src ? (o = r?.src?.file && /* @__PURE__ */ h.jsx("div", { children: r.src.file }), t[0] = r.src, t[1] = o) : o = t[1];
|
|
640
|
+
let l;
|
|
641
|
+
return t[2] !== o ? (l = /* @__PURE__ */ h.jsx(h.Fragment, { children: o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
642
|
+
}
|
|
643
|
+
function je(r) {
|
|
644
|
+
const t = w.c(3);
|
|
645
|
+
let o;
|
|
646
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
647
|
+
display: "flex",
|
|
648
|
+
justifyContent: "center",
|
|
649
|
+
alignItems: "center"
|
|
650
|
+
}, t[0] = o) : o = t[0];
|
|
651
|
+
let l;
|
|
652
|
+
return t[1] !== r.children ? (l = /* @__PURE__ */ h.jsx("div", { style: o, className: "obtn", children: r.children }), t[1] = r.children, t[2] = l) : l = t[2], l;
|
|
653
|
+
}
|
|
654
|
+
function Pe(r) {
|
|
655
|
+
const t = w.c(2);
|
|
656
|
+
let o;
|
|
657
|
+
return t[0] !== r ? (o = /* @__PURE__ */ h.jsx(Ve, { ...r }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
658
|
+
}
|
|
659
|
+
function Ze(r) {
|
|
660
|
+
const t = w.c(2);
|
|
661
|
+
let o;
|
|
662
|
+
return t[0] !== r ? (o = /* @__PURE__ */ h.jsx(we, { ...r }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
663
|
+
}
|
|
664
|
+
function $e(r) {
|
|
665
|
+
const t = w.c(2);
|
|
666
|
+
let o;
|
|
667
|
+
return t[0] !== r ? (o = /* @__PURE__ */ h.jsx(Me, { ...r }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
668
|
+
}
|
|
669
|
+
function Le(r) {
|
|
670
|
+
const t = w.c(6), {
|
|
671
|
+
size: o,
|
|
672
|
+
weight: l,
|
|
673
|
+
color: a
|
|
674
|
+
} = r, m = o === void 0 ? 25 : o, f = l === void 0 ? "fill" : l, p = a === void 0 ? "#ffffff" : a, [g] = ae();
|
|
675
|
+
let v;
|
|
676
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
677
|
+
background: "transparent",
|
|
678
|
+
border: 0,
|
|
679
|
+
padding: 0,
|
|
680
|
+
lineHeight: "100%",
|
|
681
|
+
display: "flex",
|
|
682
|
+
justifyContent: "center",
|
|
683
|
+
alignItems: "center"
|
|
684
|
+
}, t[0] = v) : v = t[0];
|
|
685
|
+
let R;
|
|
686
|
+
return t[1] !== p || t[2] !== g.isPlaying || t[3] !== m || t[4] !== f ? (R = /* @__PURE__ */ h.jsx(je, { children: /* @__PURE__ */ h.jsx("button", { type: "button", style: v, children: g.isPlaying ? /* @__PURE__ */ h.jsx(se, { size: m, weight: f, color: p }) : /* @__PURE__ */ h.jsx(ie, { size: m, weight: f, color: p }) }) }), t[1] = p, t[2] = g.isPlaying, t[3] = m, t[4] = f, t[5] = R) : R = t[5], R;
|
|
687
|
+
}
|
|
688
|
+
function Oe() {
|
|
689
|
+
const r = w.c(1);
|
|
690
|
+
let t;
|
|
691
|
+
return r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ h.jsx("div", { children: "btn2" }), r[0] = t) : t = r[0], t;
|
|
692
|
+
}
|
|
693
|
+
export {
|
|
694
|
+
Ze as DashVideo,
|
|
695
|
+
Pe as HlsVideo,
|
|
696
|
+
$e as Mp4Video,
|
|
697
|
+
Le as PlayBtn,
|
|
698
|
+
Oe as PlayBtn2
|
|
699
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(x,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(x=typeof globalThis<"u"?globalThis:x||self,Z(x.VpeReactUi={}))})(this,(function(x){"use strict";var Z={exports:{}},b={};var W;function ce(){if(W)return b;W=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(c,a,m){var f=null;if(m!==void 0&&(f=""+m),a.key!==void 0&&(f=""+a.key),"key"in a){m={};for(var p in a)p!=="key"&&(m[p]=a[p])}else m=a;return a=m.ref,{$$typeof:r,type:c,key:f,ref:a!==void 0?a:null,props:m}}return b.Fragment=t,b.jsx=o,b.jsxs=o,b}var Q;function fe(){return Q||(Q=1,Z.exports=ce()),Z.exports}var v=fe(),Y={exports:{}},U={},k={exports:{}},s={},X;function me(){if(X)return s;X=1;var r={};var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),A=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,w={};function H(e,n,l){this.props=e,this.context=n,this.refs=w,this.updater=l||$}H.prototype.isReactComponent={},H.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},H.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N(){}N.prototype=H.prototype;function O(e,n,l){this.props=e,this.context=n,this.refs=w,this.updater=l||$}var D=O.prototype=new N;D.constructor=O,T(D,H.prototype),D.isPureReactComponent=!0;var se=Array.isArray;function B(){}var _={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function z(e,n,l){var i=l.ref;return{$$typeof:t,type:e,key:n,ref:i!==void 0?i:null,props:l}}function je(e,n){return z(e.type,n,e.props)}function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function Ze(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return n[l]})}var ae=/\/+/g;function J(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Ze(""+e.key):n.toString(36)}function $e(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(B,B):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function L(e,n,l,i,d){var E=typeof e;(E==="undefined"||E==="boolean")&&(e=null);var y=!1;if(e===null)y=!0;else switch(E){case"bigint":case"string":case"number":y=!0;break;case"object":switch(e.$$typeof){case t:case o:y=!0;break;case C:return y=e._init,L(y(e._payload),n,l,i,d)}}if(y)return d=d(e),y=i===""?"."+J(e,0):i,se(d)?(l="",y!=null&&(l=y.replace(ae,"$&/")+"/"),L(d,n,l,"",function(Oe){return Oe})):d!=null&&(G(d)&&(d=je(d,l+(d.key==null||e&&e.key===d.key?"":(""+d.key).replace(ae,"$&/")+"/")+y)),n.push(d)),1;y=0;var j=i===""?".":i+":";if(se(e))for(var S=0;S<e.length;S++)i=e[S],E=j+J(i,S),y+=L(i,n,l,E,d);else if(S=P(e),typeof S=="function")for(e=S.call(e),S=0;!(i=e.next()).done;)i=i.value,E=j+J(i,S++),y+=L(i,n,l,E,d);else if(E==="object"){if(typeof e.then=="function")return L($e(e),n,l,i,d);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return y}function I(e,n,l){if(e==null)return e;var i=[],d=0;return L(e,i,"","",function(E){return n.call(l,E,d++)}),i}function Le(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof r=="object"&&typeof r.emit=="function"){r.emit("uncaughtException",e);return}console.error(e)},be={map:I,forEach:function(e,n,l){I(e,function(){n.apply(this,arguments)},l)},count:function(e){var n=0;return I(e,function(){n++}),n},toArray:function(e){return I(e,function(n){return n})||[]},only:function(e){if(!G(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return s.Activity=V,s.Children=be,s.Component=H,s.Fragment=c,s.Profiler=m,s.PureComponent=O,s.StrictMode=a,s.Suspense=h,s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,s.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _.H.useMemoCache(e)}},s.cache=function(e){return function(){return e.apply(null,arguments)}},s.cacheSignal=function(){return null},s.cloneElement=function(e,n,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=T({},e.props),d=e.key;if(n!=null)for(E in n.key!==void 0&&(d=""+n.key),n)!ie.call(n,E)||E==="key"||E==="__self"||E==="__source"||E==="ref"&&n.ref===void 0||(i[E]=n[E]);var E=arguments.length-2;if(E===1)i.children=l;else if(1<E){for(var y=Array(E),j=0;j<E;j++)y[j]=arguments[j+2];i.children=y}return z(e.type,d,i)},s.createContext=function(e){return e={$$typeof:p,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:f,_context:e},e},s.createElement=function(e,n,l){var i,d={},E=null;if(n!=null)for(i in n.key!==void 0&&(E=""+n.key),n)ie.call(n,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(d[i]=n[i]);var y=arguments.length-2;if(y===1)d.children=l;else if(1<y){for(var j=Array(y),S=0;S<y;S++)j[S]=arguments[S+2];d.children=j}if(e&&e.defaultProps)for(i in y=e.defaultProps,y)d[i]===void 0&&(d[i]=y[i]);return z(e,E,d)},s.createRef=function(){return{current:null}},s.forwardRef=function(e){return{$$typeof:g,render:e}},s.isValidElement=G,s.lazy=function(e){return{$$typeof:C,_payload:{_status:-1,_result:e},_init:Le}},s.memo=function(e,n){return{$$typeof:R,type:e,compare:n===void 0?null:n}},s.startTransition=function(e){var n=_.T,l={};_.T=l;try{var i=e(),d=_.S;d!==null&&d(l,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(B,le)}catch(E){le(E)}finally{n!==null&&l.types!==null&&(n.types=l.types),_.T=n}},s.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},s.use=function(e){return _.H.use(e)},s.useActionState=function(e,n,l){return _.H.useActionState(e,n,l)},s.useCallback=function(e,n){return _.H.useCallback(e,n)},s.useContext=function(e){return _.H.useContext(e)},s.useDebugValue=function(){},s.useDeferredValue=function(e,n){return _.H.useDeferredValue(e,n)},s.useEffect=function(e,n){return _.H.useEffect(e,n)},s.useEffectEvent=function(e){return _.H.useEffectEvent(e)},s.useId=function(){return _.H.useId()},s.useImperativeHandle=function(e,n,l){return _.H.useImperativeHandle(e,n,l)},s.useInsertionEffect=function(e,n){return _.H.useInsertionEffect(e,n)},s.useLayoutEffect=function(e,n){return _.H.useLayoutEffect(e,n)},s.useMemo=function(e,n){return _.H.useMemo(e,n)},s.useOptimistic=function(e,n){return _.H.useOptimistic(e,n)},s.useReducer=function(e,n,l){return _.H.useReducer(e,n,l)},s.useRef=function(e){return _.H.useRef(e)},s.useState=function(e){return _.H.useState(e)},s.useSyncExternalStore=function(e,n,l){return _.H.useSyncExternalStore(e,n,l)},s.useTransition=function(){return _.H.useTransition()},s.version="19.2.1",s}var K;function ee(){return K||(K=1,k.exports=me()),k.exports}var te;function de(){if(te)return U;te=1;var r=ee().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return U.c=function(t){return r.H.useMemoCache(t)},U}var ne;function Ee(){return ne||(ne=1,Y.exports=de()),Y.exports}var M=Ee(),u=ee();const pe=new Map([["bold",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",u.createElement(u.Fragment,null,u.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),u.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),_e=new Map([["bold",u.createElement(u.Fragment,null,u.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",u.createElement(u.Fragment,null,u.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),u.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",u.createElement(u.Fragment,null,u.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",u.createElement(u.Fragment,null,u.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",u.createElement(u.Fragment,null,u.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",u.createElement(u.Fragment,null,u.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),ye=u.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),q=u.forwardRef((r,t)=>{const{alt:o,color:c,size:a,weight:m,mirrored:f,children:p,weights:g,...h}=r,{color:R="currentColor",size:C,weight:V="regular",mirrored:A=!1,...P}=u.useContext(ye);return u.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:a??C,height:a??C,fill:c??R,viewBox:"0 0 256 256",transform:f||A?"scale(-1, 1)":void 0,...P,...h},!!o&&u.createElement("title",null,o),p,g.get(m??V))});q.displayName="IconBase";const re=u.forwardRef((r,t)=>u.createElement(q,{ref:t,...r,weights:pe}));re.displayName="PauseIcon";const oe=u.forwardRef((r,t)=>u.createElement(q,{ref:t,...r,weights:_e}));oe.displayName="PlayIcon";const F=new Map;function ve(r,t){if(F.has(r))return F.get(r);const c={value:typeof t=="function"?t():t,listeners:new Set};return F.set(r,c),c}function he(r,t){const o=M.c(12);let c;o[0]!==t||o[1]!==r?(c=ve(r,t),o[0]=t,o[1]=r,o[2]=c):c=o[2];const a=c;let m;o[3]!==a.listeners?(m=A=>(a.listeners.add(A),()=>a.listeners.delete(A)),o[3]=a.listeners,o[4]=m):m=o[4];const f=m;let p;o[5]!==a.value?(p=()=>a.value,o[5]=a.value,o[6]=p):p=o[6];const g=p;let h;o[7]!==a?(h=A=>{a.value=typeof A=="function"?A(a.value):A,a.listeners.forEach(Re)},o[7]=a,o[8]=h):h=o[8];const R=h,C=u.useSyncExternalStore(f,g);let V;return o[9]!==R||o[10]!==C?(V=[C,R],o[9]=R,o[10]=C,o[11]=V):V=o[11],V}function Re(r){return r()}const Ae="playerState",ge={isPlaying:!1,initPlay:!1};function ue(){const r=M.c(5),[t,o]=he(Ae,ge);let c;r[0]!==o?(c=f=>{o(p=>{const g=typeof f=="function"?f(p):f;return{...p,...g}})},r[0]=o,r[1]=c):c=r[1];const a=c;let m;return r[2]!==a||r[3]!==t?(m=[t,a],r[2]=a,r[3]=t,r[4]=m):m=r[4],m}function Te(r){const t=M.c(23),o=u.useRef(null),[c,a]=ue(),m=r.hlsLib,f=r.options;let p;t[0]!==m||t[1]!==f||t[2]!==r?(p=()=>{const T=o.current,w=r?.src?.file;if(!(!T||!w)){if(m?.isSupported?.()){const H=new m({lowLatencyMode:f.lowLatencyMode});return H.attachMedia(T),H.on(m.Events.MEDIA_ATTACHED,()=>{H.loadSource(w)}),H.on(m.Events.ERROR,(N,O)=>{r.onError&&r.onError({evt:N,data:O})}),()=>{H.destroy()}}T.src=w}},t[0]=m,t[1]=f,t[2]=r,t[3]=p):p=t[3];const g=r?.src?.file;let h;t[4]!==m||t[5]!==r.onError||t[6]!==g?(h=[m,g,r.onError],t[4]=m,t[5]=r.onError,t[6]=g,t[7]=h):h=t[7],u.useEffect(p,h);let R,C;t[8]!==f?(R=()=>{const T=o.current;if(!T)return;const w=f?.playbackRate;typeof w=="number"&&(T.playbackRate=w)},C=[f],t[8]=f,t[9]=R,t[10]=C):(R=t[9],C=t[10]),u.useEffect(R,C);let V,A;t[11]!==a?(V=()=>{const T=o.current;if(!T)return;const w=()=>{a({isPlaying:!0,initPlay:!0})},H=()=>{a({isPlaying:!1})};return T.addEventListener("play",w),T.addEventListener("pause",H),()=>{T.removeEventListener("play",w),T.removeEventListener("pause",H)}},A=[a],t[11]=a,t[12]=V,t[13]=A):(V=t[12],A=t[13]),u.useEffect(V,A);let P;t[14]!==f?.autostart||t[15]!==f?.muted||t[16]!==f?.objectFit||t[17]!==f?.repeat||t[18]!==c||t[19]!==r.src?(P=r?.src?.file&&v.jsx("video",{playsInline:!0,ref:o,className:"w-full h-full",controls:!1,autoPlay:f?.autostart,muted:f?.muted,loop:f?.repeat,style:{background:r.src.poster?c.initPlay?"transparent":`url(${r.src.poster}) center / ${f?.objectFit??"contain"} no-repeat`:void 0,objectFit:f?.objectFit??"contain"}}),t[14]=f?.autostart,t[15]=f?.muted,t[16]=f?.objectFit,t[17]=f?.repeat,t[18]=c,t[19]=r.src,t[20]=P):P=t[20];let $;return t[21]!==P?($=v.jsx(v.Fragment,{children:P}),t[21]=P,t[22]=$):$=t[22],$}function He(r){const t=M.c(4);let o;t[0]!==r.src?(o=r?.src?.file&&v.jsx("div",{children:r.src.file}),t[0]=r.src,t[1]=o):o=t[1];let c;return t[2]!==o?(c=v.jsx(v.Fragment,{children:o}),t[2]=o,t[3]=c):c=t[3],c}function Ce(r){const t=M.c(4);let o;t[0]!==r.src?(o=r?.src?.file&&v.jsx("div",{children:r.src.file}),t[0]=r.src,t[1]=o):o=t[1];let c;return t[2]!==o?(c=v.jsx(v.Fragment,{children:o}),t[2]=o,t[3]=c):c=t[3],c}function Se(r){const t=M.c(3);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={display:"flex",justifyContent:"center",alignItems:"center"},t[0]=o):o=t[0];let c;return t[1]!==r.children?(c=v.jsx("div",{style:o,className:"obtn",children:r.children}),t[1]=r.children,t[2]=c):c=t[2],c}function Ve(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(Te,{...r}),t[0]=r,t[1]=o):o=t[1],o}function we(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(He,{...r}),t[0]=r,t[1]=o):o=t[1],o}function Me(r){const t=M.c(2);let o;return t[0]!==r?(o=v.jsx(Ce,{...r}),t[0]=r,t[1]=o):o=t[1],o}function xe(r){const t=M.c(6),{size:o,weight:c,color:a}=r,m=o===void 0?25:o,f=c===void 0?"fill":c,p=a===void 0?"#ffffff":a,[g]=ue();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},t[0]=h):h=t[0];let R;return t[1]!==p||t[2]!==g.isPlaying||t[3]!==m||t[4]!==f?(R=v.jsx(Se,{children:v.jsx("button",{type:"button",style:h,children:g.isPlaying?v.jsx(re,{size:m,weight:f,color:p}):v.jsx(oe,{size:m,weight:f,color:p})})}),t[1]=p,t[2]=g.isPlaying,t[3]=m,t[4]=f,t[5]=R):R=t[5],R}function Pe(){const r=M.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=v.jsx("div",{children:"btn2"}),r[0]=t):t=r[0],t}x.DashVideo=we,x.HlsVideo=Ve,x.Mp4Video=Me,x.PlayBtn=xe,x.PlayBtn2=Pe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sgrsoft/vpe-react-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/vpe-react-ui.umd.js",
|
|
7
|
+
"module": "./dist/vpe-react-ui.es.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/vpe-react-ui.es.js",
|
|
11
|
+
"require": "./dist/vpe-react-ui.umd.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "tsc -b && vite build",
|
|
20
|
+
"lint": "eslint .",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"release Private": "release-it --only-version --access=restricted",
|
|
23
|
+
"release:beta Private": "release-it --preRelease=beta --access=restricted",
|
|
24
|
+
"release": "release-it --only-version",
|
|
25
|
+
"release:beta": "release-it --preRelease=beta"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@phosphor-icons/react": "^2.1.10"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^19.2.0",
|
|
32
|
+
"react-dom": "^19.2.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@eslint/js": "^9.39.1",
|
|
36
|
+
"@release-it/conventional-changelog": "^10.0.2",
|
|
37
|
+
"@types/node": "^24.10.1",
|
|
38
|
+
"@types/react": "^19.2.7",
|
|
39
|
+
"@types/react-dom": "^19.2.3",
|
|
40
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
41
|
+
"autoprefixer": "^10.4.23",
|
|
42
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
43
|
+
"eslint": "^9.39.1",
|
|
44
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
45
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
46
|
+
"globals": "^16.5.0",
|
|
47
|
+
"postcss": "^8.5.6",
|
|
48
|
+
"release-it": "^19.0.6",
|
|
49
|
+
"tailwindcss": "^3",
|
|
50
|
+
"typescript": "~5.9.3",
|
|
51
|
+
"typescript-eslint": "^8.46.4",
|
|
52
|
+
"vite": "^7.2.7",
|
|
53
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
54
|
+
},
|
|
55
|
+
"packageManager": "pnpm@10.23.0+sha256.a1cdd7b468386a9d78a081da05d6049d7e598db62a299db92df21a7062a4b183"
|
|
56
|
+
}
|