hanc-webrtc-widgets 2.6.12 → 2.6.14
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/dist/hanc-webrtc-widgets.es.js +241 -183
- package/dist/hanc-webrtc-widgets.umd.js +8 -8
- package/dist/src/components/form-overlay/form-overlay.d.ts +34 -0
- package/dist/src/components/form-overlay/form-overlay.styles.d.ts +1 -0
- package/dist/src/components/form-overlay/index.d.ts +1 -0
- package/dist/src/core/livekit-call-manager.d.ts +28 -0
- package/dist/src/orb/components/HancAiWidget.d.ts +5 -1
- package/dist/src/orb/core/LiveKitManager.d.ts +4 -0
- package/package.json +1 -1
|
@@ -739,7 +739,7 @@ var Ng = Object.defineProperty, Og = (i, e, t) => e in i ? Ng(i, e, {
|
|
|
739
739
|
writable: !0,
|
|
740
740
|
value: t
|
|
741
741
|
}) : i[e] = t, Tu = (i, e, t) => Og(i, typeof e != "symbol" ? e + "" : e, t);
|
|
742
|
-
class
|
|
742
|
+
class bn {
|
|
743
743
|
constructor() {
|
|
744
744
|
Tu(this, "_locking"), Tu(this, "_locks"), this._locking = Promise.resolve(), this._locks = 0;
|
|
745
745
|
}
|
|
@@ -2706,7 +2706,7 @@ const V = vv(
|
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
2708
|
);
|
|
2709
|
-
class
|
|
2709
|
+
class mn extends Md {
|
|
2710
2710
|
constructor(e) {
|
|
2711
2711
|
super(), this.seconds = kt.zero, this.nanos = 0, V.util.initPartial(e, this);
|
|
2712
2712
|
}
|
|
@@ -2740,31 +2740,31 @@ class fn extends Md {
|
|
|
2740
2740
|
return new Date(Number(this.seconds) * 1e3 + Math.ceil(this.nanos / 1e6));
|
|
2741
2741
|
}
|
|
2742
2742
|
static now() {
|
|
2743
|
-
return
|
|
2743
|
+
return mn.fromDate(/* @__PURE__ */ new Date());
|
|
2744
2744
|
}
|
|
2745
2745
|
static fromDate(e) {
|
|
2746
2746
|
const t = e.getTime();
|
|
2747
|
-
return new
|
|
2747
|
+
return new mn({
|
|
2748
2748
|
seconds: kt.parse(Math.floor(t / 1e3)),
|
|
2749
2749
|
nanos: t % 1e3 * 1e6
|
|
2750
2750
|
});
|
|
2751
2751
|
}
|
|
2752
2752
|
static fromBinary(e, t) {
|
|
2753
|
-
return new
|
|
2753
|
+
return new mn().fromBinary(e, t);
|
|
2754
2754
|
}
|
|
2755
2755
|
static fromJson(e, t) {
|
|
2756
|
-
return new
|
|
2756
|
+
return new mn().fromJson(e, t);
|
|
2757
2757
|
}
|
|
2758
2758
|
static fromJsonString(e, t) {
|
|
2759
|
-
return new
|
|
2759
|
+
return new mn().fromJsonString(e, t);
|
|
2760
2760
|
}
|
|
2761
2761
|
static equals(e, t) {
|
|
2762
|
-
return V.util.equals(
|
|
2762
|
+
return V.util.equals(mn, e, t);
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2765
|
+
mn.runtime = V;
|
|
2766
|
+
mn.typeName = "google.protobuf.Timestamp";
|
|
2767
|
+
mn.fields = V.util.newFieldList(() => [{
|
|
2768
2768
|
no: 1,
|
|
2769
2769
|
name: "seconds",
|
|
2770
2770
|
kind: "scalar",
|
|
@@ -2787,7 +2787,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2787
2787
|
no: 2,
|
|
2788
2788
|
name: "normalized_timestamp",
|
|
2789
2789
|
kind: "message",
|
|
2790
|
-
T:
|
|
2790
|
+
T: mn
|
|
2791
2791
|
}, {
|
|
2792
2792
|
no: 3,
|
|
2793
2793
|
name: "str_data",
|
|
@@ -2846,7 +2846,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2846
2846
|
no: 2,
|
|
2847
2847
|
name: "normalized_timestamp",
|
|
2848
2848
|
kind: "message",
|
|
2849
|
-
T:
|
|
2849
|
+
T: mn
|
|
2850
2850
|
}, {
|
|
2851
2851
|
no: 3,
|
|
2852
2852
|
name: "value",
|
|
@@ -2887,12 +2887,12 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2887
2887
|
no: 6,
|
|
2888
2888
|
name: "normalized_start_timestamp",
|
|
2889
2889
|
kind: "message",
|
|
2890
|
-
T:
|
|
2890
|
+
T: mn
|
|
2891
2891
|
}, {
|
|
2892
2892
|
no: 7,
|
|
2893
2893
|
name: "normalized_end_timestamp",
|
|
2894
2894
|
kind: "message",
|
|
2895
|
-
T:
|
|
2895
|
+
T: mn,
|
|
2896
2896
|
opt: !0
|
|
2897
2897
|
}, {
|
|
2898
2898
|
no: 8,
|
|
@@ -3532,7 +3532,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3532
3532
|
kind: "scalar",
|
|
3533
3533
|
T: 9
|
|
3534
3534
|
/* ScalarType.STRING */
|
|
3535
|
-
}]),
|
|
3535
|
+
}]), gn = /* @__PURE__ */ V.makeMessageType("livekit.DataPacket", () => [{
|
|
3536
3536
|
no: 1,
|
|
3537
3537
|
name: "kind",
|
|
3538
3538
|
kind: "enum",
|
|
@@ -7701,10 +7701,10 @@ class Z extends hi.EventEmitter {
|
|
|
7701
7701
|
});
|
|
7702
7702
|
}
|
|
7703
7703
|
addAppVisibilityListener() {
|
|
7704
|
-
|
|
7704
|
+
vn() ? (this.isInBackground = document.visibilityState === "hidden", document.addEventListener("visibilitychange", this.appVisibilityChangedListener)) : this.isInBackground = !1;
|
|
7705
7705
|
}
|
|
7706
7706
|
removeAppVisibilityListener() {
|
|
7707
|
-
|
|
7707
|
+
vn() && document.removeEventListener("visibilitychange", this.appVisibilityChangedListener);
|
|
7708
7708
|
}
|
|
7709
7709
|
}
|
|
7710
7710
|
function Ys(i, e) {
|
|
@@ -7886,7 +7886,7 @@ function G0(i) {
|
|
|
7886
7886
|
const e = i.split(V0);
|
|
7887
7887
|
return e.length > 1 ? [e[0], i.substr(e[0].length + 1)] : [i, ""];
|
|
7888
7888
|
}
|
|
7889
|
-
function
|
|
7889
|
+
function yn(i) {
|
|
7890
7890
|
return P(this, void 0, void 0, function* () {
|
|
7891
7891
|
return new Promise((e) => Zt.setTimeout(e, i));
|
|
7892
7892
|
});
|
|
@@ -7960,7 +7960,7 @@ function $0(i) {
|
|
|
7960
7960
|
}
|
|
7961
7961
|
function Kp() {
|
|
7962
7962
|
var i, e;
|
|
7963
|
-
return
|
|
7963
|
+
return vn() ? (
|
|
7964
7964
|
// @ts-expect-error `userAgentData` is not yet part of typescript
|
|
7965
7965
|
(e = (i = navigator.userAgentData) === null || i === void 0 ? void 0 : i.mobile) !== null && e !== void 0 ? e : /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)
|
|
7966
7966
|
) : !1;
|
|
@@ -7970,7 +7970,7 @@ function X0() {
|
|
|
7970
7970
|
if (i)
|
|
7971
7971
|
return i.name !== "Safari" && i.os !== "iOS" || i.os === "iOS" && i.osVersion && di(i.osVersion, e) >= 0 ? !0 : i.name === "Safari" && di(i.version, e) >= 0;
|
|
7972
7972
|
}
|
|
7973
|
-
function
|
|
7973
|
+
function vn() {
|
|
7974
7974
|
return typeof document < "u";
|
|
7975
7975
|
}
|
|
7976
7976
|
function li() {
|
|
@@ -7991,7 +7991,7 @@ function Zp() {
|
|
|
7991
7991
|
return i.platform;
|
|
7992
7992
|
}
|
|
7993
7993
|
function nh() {
|
|
7994
|
-
if (
|
|
7994
|
+
if (vn())
|
|
7995
7995
|
return window.devicePixelRatio;
|
|
7996
7996
|
if (li()) {
|
|
7997
7997
|
let i = Jp();
|
|
@@ -8250,7 +8250,7 @@ function em(i) {
|
|
|
8250
8250
|
const s = n.createAnalyser();
|
|
8251
8251
|
s.fftSize = 2048;
|
|
8252
8252
|
const r = s.frequencyBinCount, a = new Uint8Array(r);
|
|
8253
|
-
n.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(s), yield
|
|
8253
|
+
n.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(s), yield yn(t), s.getByteTimeDomainData(a);
|
|
8254
8254
|
const c = a.some((l) => l !== 128 && l !== 0);
|
|
8255
8255
|
return n.close(), !c;
|
|
8256
8256
|
}
|
|
@@ -8765,7 +8765,7 @@ var Gr;
|
|
|
8765
8765
|
})(Gr || (Gr = {}));
|
|
8766
8766
|
class fb {
|
|
8767
8767
|
constructor() {
|
|
8768
|
-
this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new
|
|
8768
|
+
this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new bn(), this.nextTaskIndex = 0;
|
|
8769
8769
|
}
|
|
8770
8770
|
run(e) {
|
|
8771
8771
|
return P(this, void 0, void 0, function* () {
|
|
@@ -8839,7 +8839,7 @@ class Fd {
|
|
|
8839
8839
|
var n;
|
|
8840
8840
|
this.rtt = 0, this.state = Pt.DISCONNECTED, this.log = Qe, this._requestId = 0, this.resetCallbacks = () => {
|
|
8841
8841
|
this.onAnswer = void 0, this.onLeave = void 0, this.onLocalTrackPublished = void 0, this.onLocalTrackUnpublished = void 0, this.onNegotiateRequested = void 0, this.onOffer = void 0, this.onRemoteMuteChanged = void 0, this.onSubscribedQualityUpdate = void 0, this.onTokenRefresh = void 0, this.onTrickle = void 0, this.onClose = void 0;
|
|
8842
|
-
}, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.Signal), this.loggerContextCb = t.loggerContextCb, this.useJSON = e, this.requestQueue = new fb(), this.queuedRequests = [], this.closingLock = new
|
|
8842
|
+
}, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.Signal), this.loggerContextCb = t.loggerContextCb, this.useJSON = e, this.requestQueue = new fb(), this.queuedRequests = [], this.closingLock = new bn(), this.connectionLock = new bn(), this.state = Pt.DISCONNECTED;
|
|
8843
8843
|
}
|
|
8844
8844
|
get logContext() {
|
|
8845
8845
|
var e, t;
|
|
@@ -8919,7 +8919,7 @@ class Fd {
|
|
|
8919
8919
|
})), this.startPingInterval()), l(C.message.value)) : this.state === Pt.RECONNECTING && C.message.case !== "leave" ? (this.state = Pt.CONNECTED, s == null || s.removeEventListener("abort", h), this.startPingInterval(), ((p = C.message) === null || p === void 0 ? void 0 : p.case) === "reconnect" ? l(C.message.value) : (this.log.debug("declaring signal reconnected without reconnect response received", this.logContext), l(void 0), b = !0)) : this.isEstablishingConnection && C.message.case === "leave" ? d(new Ct("Received leave request while trying to (re)connect", st.LeaveRequest, void 0, C.message.value.reason)) : n.reconnect || d(new Ct("did not receive join response, got ".concat((x = C.message) === null || x === void 0 ? void 0 : x.case, " instead"), st.InternalError)), !b)
|
|
8920
8920
|
return;
|
|
8921
8921
|
}
|
|
8922
|
-
this.signalLatency && (yield
|
|
8922
|
+
this.signalLatency && (yield yn(this.signalLatency)), this.handleSignalResponse(C);
|
|
8923
8923
|
}), this.ws.onclose = (v) => {
|
|
8924
8924
|
this.isEstablishingConnection && d(new Ct("Websocket got closed during a (re)connection attempt", st.InternalError)), this.log.warn("websocket closed", Object.assign(Object.assign({}, this.logContext), {
|
|
8925
8925
|
reason: v.reason,
|
|
@@ -8947,7 +8947,7 @@ class Fd {
|
|
|
8947
8947
|
r();
|
|
8948
8948
|
} : r();
|
|
8949
8949
|
});
|
|
8950
|
-
e.ws.readyState < e.ws.CLOSING && (e.ws.close(), yield Promise.race([s,
|
|
8950
|
+
e.ws.readyState < e.ws.CLOSING && (e.ws.close(), yield Promise.race([s, yn(250)])), e.ws = void 0;
|
|
8951
8951
|
}
|
|
8952
8952
|
} finally {
|
|
8953
8953
|
t && (e.state = Pt.DISCONNECTED), n();
|
|
@@ -9101,7 +9101,7 @@ class Fd {
|
|
|
9101
9101
|
}));
|
|
9102
9102
|
return;
|
|
9103
9103
|
}
|
|
9104
|
-
if (s || (yield n.requestQueue.flush()), n.signalLatency && (yield
|
|
9104
|
+
if (s || (yield n.requestQueue.flush()), n.signalLatency && (yield yn(n.signalLatency)), n.isDisconnected) {
|
|
9105
9105
|
n.log.debug("skipping signal request (type: ".concat(t.case, ") - SignalClient disconnected"));
|
|
9106
9106
|
return;
|
|
9107
9107
|
}
|
|
@@ -9970,7 +9970,7 @@ class ph extends hi.EventEmitter {
|
|
|
9970
9970
|
}
|
|
9971
9971
|
}), Eb), this.close = () => {
|
|
9972
9972
|
this._pc && (this._pc.close(), this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc.onicegatheringstatechange = null, this._pc.ondatachannel = null, this._pc.onnegotiationneeded = null, this._pc.onsignalingstatechange = null, this._pc.onicecandidate = null, this._pc.ondatachannel = null, this._pc.ontrack = null, this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc = null);
|
|
9973
|
-
}, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.PCTransport), this.loggerOptions = t, this.config = e, this._pc = this.createPC(), this.offerLock = new
|
|
9973
|
+
}, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.PCTransport), this.loggerOptions = t, this.config = e, this._pc = this.createPC(), this.offerLock = new bn();
|
|
9974
9974
|
}
|
|
9975
9975
|
createPC() {
|
|
9976
9976
|
const e = new RTCPeerConnection(this.config);
|
|
@@ -10350,7 +10350,7 @@ class Rb {
|
|
|
10350
10350
|
}, this.publisher.onOffer = (r, a) => {
|
|
10351
10351
|
var o;
|
|
10352
10352
|
(o = this.onPublisherOffer) === null || o === void 0 || o.call(this, r, a);
|
|
10353
|
-
}, this.state = Lt.NEW, this.connectionLock = new
|
|
10353
|
+
}, this.state = Lt.NEW, this.connectionLock = new bn(), this.remoteOfferLock = new bn();
|
|
10354
10354
|
}
|
|
10355
10355
|
get logContext() {
|
|
10356
10356
|
var e, t;
|
|
@@ -10482,7 +10482,7 @@ class Rb {
|
|
|
10482
10482
|
s == null || s.signal.removeEventListener("abort", d), l(new Ct("could not establish pc connection", st.InternalError));
|
|
10483
10483
|
}, a);
|
|
10484
10484
|
for (; this.state !== Lt.CONNECTED; )
|
|
10485
|
-
if (yield
|
|
10485
|
+
if (yield yn(50), s != null && s.signal.aborted) {
|
|
10486
10486
|
l(new Ct("room connection has been cancelled", st.Cancelled));
|
|
10487
10487
|
return;
|
|
10488
10488
|
}
|
|
@@ -10650,7 +10650,7 @@ class om extends Z {
|
|
|
10650
10650
|
this.debouncedTrackMuteHandler.cancel("unmute"), yield this.resumeUpstream();
|
|
10651
10651
|
}), this.handleEnded = () => {
|
|
10652
10652
|
this.isInBackground && (this.reacquireTrack = !0), this._mediaStreamTrack.removeEventListener("mute", this.handleTrackMuteEvent), this._mediaStreamTrack.removeEventListener("unmute", this.handleTrackUnmuteEvent), this.emit(ae.Ended, this);
|
|
10653
|
-
}, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new
|
|
10653
|
+
}, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new bn(), this.pauseUpstreamLock = new bn(), this.trackChangeLock = new bn(), this.trackChangeLock.lock().then((a) => P(this, void 0, void 0, function* () {
|
|
10654
10654
|
try {
|
|
10655
10655
|
yield this.setMediaStreamTrack(e, !0);
|
|
10656
10656
|
} finally {
|
|
@@ -10725,13 +10725,13 @@ class om extends Z {
|
|
|
10725
10725
|
var n;
|
|
10726
10726
|
if (e.kind === Z.Kind.Audio)
|
|
10727
10727
|
throw new Error("cannot get dimensions for audio tracks");
|
|
10728
|
-
((n = Mn()) === null || n === void 0 ? void 0 : n.os) === "iOS" && (yield
|
|
10728
|
+
((n = Mn()) === null || n === void 0 ? void 0 : n.os) === "iOS" && (yield yn(10));
|
|
10729
10729
|
const s = Date.now();
|
|
10730
10730
|
for (; Date.now() - s < t; ) {
|
|
10731
10731
|
const r = e.dimensions;
|
|
10732
10732
|
if (r)
|
|
10733
10733
|
return r;
|
|
10734
|
-
yield
|
|
10734
|
+
yield yn(50);
|
|
10735
10735
|
}
|
|
10736
10736
|
throw new Ci("unable to get track dimensions after timeout");
|
|
10737
10737
|
}();
|
|
@@ -11109,7 +11109,7 @@ class uo extends om {
|
|
|
11109
11109
|
}
|
|
11110
11110
|
/* @internal */
|
|
11111
11111
|
startMonitor() {
|
|
11112
|
-
|
|
11112
|
+
vn() && (this.monitorInterval || (this.monitorInterval = setInterval(() => {
|
|
11113
11113
|
this.monitorSender();
|
|
11114
11114
|
}, Hd)));
|
|
11115
11115
|
}
|
|
@@ -11386,7 +11386,7 @@ class ho extends om {
|
|
|
11386
11386
|
}), this._currentBitrate = c;
|
|
11387
11387
|
}
|
|
11388
11388
|
this.prevStats = a;
|
|
11389
|
-
}), this.senderLock = new
|
|
11389
|
+
}), this.senderLock = new bn();
|
|
11390
11390
|
}
|
|
11391
11391
|
get isSimulcast() {
|
|
11392
11392
|
return !!(this.sender && this.sender.getParameters().encodings.length > 1);
|
|
@@ -11394,7 +11394,7 @@ class ho extends om {
|
|
|
11394
11394
|
/* @internal */
|
|
11395
11395
|
startMonitor(e) {
|
|
11396
11396
|
var t;
|
|
11397
|
-
if (this.signalClient = e, !
|
|
11397
|
+
if (this.signalClient = e, !vn())
|
|
11398
11398
|
return;
|
|
11399
11399
|
const n = (t = this.sender) === null || t === void 0 ? void 0 : t.getParameters();
|
|
11400
11400
|
n && (this.encodings = n.encodings), !this.monitorInterval && (this.monitorInterval = setInterval(() => {
|
|
@@ -11868,7 +11868,7 @@ class Kb extends hi.EventEmitter {
|
|
|
11868
11868
|
}));
|
|
11869
11869
|
return;
|
|
11870
11870
|
}
|
|
11871
|
-
const c =
|
|
11871
|
+
const c = gn.fromBinary(new Uint8Array(o));
|
|
11872
11872
|
if (c.sequence > 0 && c.participantSid !== "") {
|
|
11873
11873
|
const l = this.reliableReceivedState.get(c.participantSid);
|
|
11874
11874
|
if (l && c.sequence <= l)
|
|
@@ -11931,7 +11931,7 @@ class Kb extends hi.EventEmitter {
|
|
|
11931
11931
|
}, this.log = Pi((t = e.loggerName) !== null && t !== void 0 ? t : jn.Engine), this.loggerOptions = {
|
|
11932
11932
|
loggerName: e.loggerName,
|
|
11933
11933
|
loggerContextCb: () => this.logContext
|
|
11934
|
-
}, this.client = new Fd(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new
|
|
11934
|
+
}, this.client = new Fd(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new bn(), this.dataProcessLock = new bn(), this.dcBufferStatus = /* @__PURE__ */ new Map([[qe.LOSSY, !0], [qe.RELIABLE, !0]]), this.client.onParticipantUpdate = (n) => this.emit(le.ParticipantUpdate, n), this.client.onConnectionQuality = (n) => this.emit(le.ConnectionQualityUpdate, n), this.client.onRoomUpdate = (n) => this.emit(le.RoomUpdate, n), this.client.onSubscriptionError = (n) => this.emit(le.SubscriptionError, n), this.client.onSubscriptionPermissionUpdate = (n) => this.emit(le.SubscriptionPermissionUpdate, n), this.client.onSpeakersChanged = (n) => this.emit(le.SpeakersChanged, n), this.client.onStreamStateUpdate = (n) => this.emit(le.StreamStateChanged, n), this.client.onRequestResponse = (n) => this.emit(le.SignalRequestResponse, n);
|
|
11935
11935
|
}
|
|
11936
11936
|
/** @internal */
|
|
11937
11937
|
get logContext() {
|
|
@@ -12303,7 +12303,7 @@ class Kb extends hi.EventEmitter {
|
|
|
12303
12303
|
return P(this, void 0, void 0, function* () {
|
|
12304
12304
|
this.pcState = Fn.Reconnecting, this.log.debug("waiting for peer connection to reconnect", this.logContext);
|
|
12305
12305
|
try {
|
|
12306
|
-
if (yield
|
|
12306
|
+
if (yield yn(Xb), !this.pcManager)
|
|
12307
12307
|
throw new qt("PC manager is closed");
|
|
12308
12308
|
yield this.pcManager.ensurePCTransportConnection(void 0, this.peerConnectionTimeout), this.pcState = Fn.Connected;
|
|
12309
12309
|
} catch (e) {
|
|
@@ -12314,7 +12314,7 @@ class Kb extends hi.EventEmitter {
|
|
|
12314
12314
|
/** @internal */
|
|
12315
12315
|
publishRpcResponse(e, t, n, s) {
|
|
12316
12316
|
return P(this, void 0, void 0, function* () {
|
|
12317
|
-
const r = new
|
|
12317
|
+
const r = new gn({
|
|
12318
12318
|
destinationIdentities: [e],
|
|
12319
12319
|
kind: qe.RELIABLE,
|
|
12320
12320
|
value: {
|
|
@@ -12337,7 +12337,7 @@ class Kb extends hi.EventEmitter {
|
|
|
12337
12337
|
/** @internal */
|
|
12338
12338
|
publishRpcAck(e, t) {
|
|
12339
12339
|
return P(this, void 0, void 0, function* () {
|
|
12340
|
-
const n = new
|
|
12340
|
+
const n = new gn({
|
|
12341
12341
|
destinationIdentities: [e],
|
|
12342
12342
|
kind: qe.RELIABLE,
|
|
12343
12343
|
value: {
|
|
@@ -12382,7 +12382,7 @@ class Kb extends hi.EventEmitter {
|
|
|
12382
12382
|
else {
|
|
12383
12383
|
const s = () => n("Engine closed");
|
|
12384
12384
|
for (this.once(le.Closing, s); !this.dcBufferStatus.get(e); )
|
|
12385
|
-
yield
|
|
12385
|
+
yield yn(10);
|
|
12386
12386
|
this.off(le.Closing, s), t();
|
|
12387
12387
|
}
|
|
12388
12388
|
}));
|
|
@@ -12410,7 +12410,7 @@ class Kb extends hi.EventEmitter {
|
|
|
12410
12410
|
for (; (/* @__PURE__ */ new Date()).getTime() < d; ) {
|
|
12411
12411
|
if (a.isICEConnected && ((r = n.dataChannelForKind(t, s)) === null || r === void 0 ? void 0 : r.readyState) === "open")
|
|
12412
12412
|
return;
|
|
12413
|
-
yield
|
|
12413
|
+
yield yn(50);
|
|
12414
12414
|
}
|
|
12415
12415
|
throw new Ct("could not establish ".concat(o, " connection, state: ").concat(a.getICEConnectionState()), st.InternalError);
|
|
12416
12416
|
}();
|
|
@@ -12521,10 +12521,10 @@ class Kb extends hi.EventEmitter {
|
|
|
12521
12521
|
this.clearReconnectTimeout(), this.reconnectAttempts = 0;
|
|
12522
12522
|
}
|
|
12523
12523
|
registerOnLineListener() {
|
|
12524
|
-
|
|
12524
|
+
vn() && window.addEventListener("online", this.handleBrowserOnLine);
|
|
12525
12525
|
}
|
|
12526
12526
|
deregisterOnLineListener() {
|
|
12527
|
-
|
|
12527
|
+
vn() && window.removeEventListener("online", this.handleBrowserOnLine);
|
|
12528
12528
|
}
|
|
12529
12529
|
}
|
|
12530
12530
|
class Is extends Error {
|
|
@@ -13041,7 +13041,7 @@ class ry {
|
|
|
13041
13041
|
operationType: (e == null ? void 0 : e.type) === "update" ? Xc.UPDATE : Xc.CREATE
|
|
13042
13042
|
})
|
|
13043
13043
|
}
|
|
13044
|
-
}), o = e == null ? void 0 : e.destinationIdentities, c = new
|
|
13044
|
+
}), o = e == null ? void 0 : e.destinationIdentities, c = new gn({
|
|
13045
13045
|
destinationIdentities: o,
|
|
13046
13046
|
value: {
|
|
13047
13047
|
case: "streamHeader",
|
|
@@ -13060,7 +13060,7 @@ class ry {
|
|
|
13060
13060
|
content: v,
|
|
13061
13061
|
streamId: s,
|
|
13062
13062
|
chunkIndex: hs(l)
|
|
13063
|
-
}), p = new
|
|
13063
|
+
}), p = new gn({
|
|
13064
13064
|
destinationIdentities: o,
|
|
13065
13065
|
value: {
|
|
13066
13066
|
case: "streamChunk",
|
|
@@ -13075,7 +13075,7 @@ class ry {
|
|
|
13075
13075
|
return P(this, void 0, void 0, function* () {
|
|
13076
13076
|
const g = new Jc({
|
|
13077
13077
|
streamId: s
|
|
13078
|
-
}), v = new
|
|
13078
|
+
}), v = new gn({
|
|
13079
13079
|
destinationIdentities: o,
|
|
13080
13080
|
value: {
|
|
13081
13081
|
case: "streamTrailer",
|
|
@@ -13152,7 +13152,7 @@ class ry {
|
|
|
13152
13152
|
name: l.name
|
|
13153
13153
|
})
|
|
13154
13154
|
}
|
|
13155
|
-
}), u = new
|
|
13155
|
+
}), u = new gn({
|
|
13156
13156
|
destinationIdentities: c,
|
|
13157
13157
|
value: {
|
|
13158
13158
|
case: "streamHeader",
|
|
@@ -13161,7 +13161,7 @@ class ry {
|
|
|
13161
13161
|
});
|
|
13162
13162
|
yield this.engine.sendDataPacket(u, qe.RELIABLE);
|
|
13163
13163
|
let h = 0;
|
|
13164
|
-
const f = new
|
|
13164
|
+
const f = new bn(), g = this.engine, v = this.log, m = new WritableStream({
|
|
13165
13165
|
write(x) {
|
|
13166
13166
|
return P(this, void 0, void 0, function* () {
|
|
13167
13167
|
const C = yield f.lock();
|
|
@@ -13170,7 +13170,7 @@ class ry {
|
|
|
13170
13170
|
for (; b < x.byteLength; ) {
|
|
13171
13171
|
const S = x.slice(b, b + Ch);
|
|
13172
13172
|
yield g.waitForBufferStatusLow(qe.RELIABLE);
|
|
13173
|
-
const M = new
|
|
13173
|
+
const M = new gn({
|
|
13174
13174
|
destinationIdentities: c,
|
|
13175
13175
|
value: {
|
|
13176
13176
|
case: "streamChunk",
|
|
@@ -13192,7 +13192,7 @@ class ry {
|
|
|
13192
13192
|
return P(this, void 0, void 0, function* () {
|
|
13193
13193
|
const x = new Jc({
|
|
13194
13194
|
streamId: o
|
|
13195
|
-
}), C = new
|
|
13195
|
+
}), C = new gn({
|
|
13196
13196
|
destinationIdentities: c,
|
|
13197
13197
|
value: {
|
|
13198
13198
|
case: "streamTrailer",
|
|
@@ -13575,7 +13575,7 @@ class cy {
|
|
|
13575
13575
|
}, this.onLeavePiP = () => {
|
|
13576
13576
|
var n;
|
|
13577
13577
|
this.isPiP = Cr(this.element), (n = this.handleVisibilityChanged) === null || n === void 0 || n.call(this);
|
|
13578
|
-
}, this.element = e, this.isIntersecting = t ?? Cl(e), this.isPiP =
|
|
13578
|
+
}, this.element = e, this.isIntersecting = t ?? Cl(e), this.isPiP = vn() && Cr(e), this.visibilityChangedAt = 0;
|
|
13579
13579
|
}
|
|
13580
13580
|
width() {
|
|
13581
13581
|
return this.element.clientWidth;
|
|
@@ -14114,7 +14114,7 @@ class fy extends fm {
|
|
|
14114
14114
|
yield o.mute();
|
|
14115
14115
|
else if (yi(o) || Oi(o))
|
|
14116
14116
|
try {
|
|
14117
|
-
if (
|
|
14117
|
+
if (vn())
|
|
14118
14118
|
try {
|
|
14119
14119
|
const c = yield navigator == null ? void 0 : navigator.permissions.query({
|
|
14120
14120
|
// the permission query for camera and microphone currently not supported in Safari and Firefox
|
|
@@ -14235,7 +14235,7 @@ class fy extends fm {
|
|
|
14235
14235
|
this.pendingSignalRequests.delete(h), o();
|
|
14236
14236
|
return;
|
|
14237
14237
|
}
|
|
14238
|
-
yield
|
|
14238
|
+
yield yn(50);
|
|
14239
14239
|
}
|
|
14240
14240
|
c(new Zu("Request to update local metadata timed out", "TimeoutError"));
|
|
14241
14241
|
} catch (u) {
|
|
@@ -14844,7 +14844,7 @@ class fy extends fm {
|
|
|
14844
14844
|
var n = this;
|
|
14845
14845
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14846
14846
|
return function* () {
|
|
14847
|
-
const r = s.reliable ? qe.RELIABLE : qe.LOSSY, a = s.destinationIdentities, o = s.topic, c = new
|
|
14847
|
+
const r = s.reliable ? qe.RELIABLE : qe.LOSSY, a = s.destinationIdentities, o = s.topic, c = new gn({
|
|
14848
14848
|
kind: r,
|
|
14849
14849
|
value: {
|
|
14850
14850
|
case: "user",
|
|
@@ -14868,7 +14868,7 @@ class fy extends fm {
|
|
|
14868
14868
|
*/
|
|
14869
14869
|
publishDtmf(e, t) {
|
|
14870
14870
|
return P(this, void 0, void 0, function* () {
|
|
14871
|
-
const n = new
|
|
14871
|
+
const n = new gn({
|
|
14872
14872
|
kind: qe.RELIABLE,
|
|
14873
14873
|
value: {
|
|
14874
14874
|
case: "sipDtmf",
|
|
@@ -14889,7 +14889,7 @@ class fy extends fm {
|
|
|
14889
14889
|
message: e,
|
|
14890
14890
|
timestamp: Date.now(),
|
|
14891
14891
|
attachedFiles: t == null ? void 0 : t.attachments
|
|
14892
|
-
}, s = new
|
|
14892
|
+
}, s = new gn({
|
|
14893
14893
|
value: {
|
|
14894
14894
|
case: "chatMessage",
|
|
14895
14895
|
value: new $c(Object.assign(Object.assign({}, n), {
|
|
@@ -14906,7 +14906,7 @@ class fy extends fm {
|
|
|
14906
14906
|
const n = Object.assign(Object.assign({}, t), {
|
|
14907
14907
|
message: e,
|
|
14908
14908
|
editTimestamp: Date.now()
|
|
14909
|
-
}), s = new
|
|
14909
|
+
}), s = new gn({
|
|
14910
14910
|
value: {
|
|
14911
14911
|
case: "chatMessage",
|
|
14912
14912
|
value: new $c(Object.assign(Object.assign({}, n), {
|
|
@@ -15059,7 +15059,7 @@ class fy extends fm {
|
|
|
15059
15059
|
/** @internal */
|
|
15060
15060
|
publishRpcRequest(e, t, n, s, r) {
|
|
15061
15061
|
return P(this, void 0, void 0, function* () {
|
|
15062
|
-
const a = new
|
|
15062
|
+
const a = new gn({
|
|
15063
15063
|
destinationIdentities: [e],
|
|
15064
15064
|
kind: qe.RELIABLE,
|
|
15065
15065
|
value: {
|
|
@@ -15130,7 +15130,7 @@ class fy extends fm {
|
|
|
15130
15130
|
});
|
|
15131
15131
|
if (s)
|
|
15132
15132
|
return s[1];
|
|
15133
|
-
yield
|
|
15133
|
+
yield yn(20);
|
|
15134
15134
|
}
|
|
15135
15135
|
});
|
|
15136
15136
|
}
|
|
@@ -15569,7 +15569,7 @@ class cr extends hi.EventEmitter {
|
|
|
15569
15569
|
} catch (h) {
|
|
15570
15570
|
throw yield this.engine.close(), this.recreateEngine(), h;
|
|
15571
15571
|
}
|
|
15572
|
-
|
|
15572
|
+
vn() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), vn() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(ut.Connected), this.emit(ne.Connected), this.registerConnectionReconcile();
|
|
15573
15573
|
}), this.disconnect = function() {
|
|
15574
15574
|
for (var a = arguments.length, o = new Array(a), c = 0; c < a; c++)
|
|
15575
15575
|
o[c] = arguments[c];
|
|
@@ -15806,7 +15806,7 @@ class cr extends hi.EventEmitter {
|
|
|
15806
15806
|
this.emit(ne.ParticipantPermissionsChanged, a, this.localParticipant);
|
|
15807
15807
|
}, this.onLocalChatMessageSent = (a) => {
|
|
15808
15808
|
this.emit(ne.ChatMessage, a, this.localParticipant);
|
|
15809
|
-
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, Ab), e), this.log = Pi((n = this.options.loggerName) !== null && n !== void 0 ? n : jn.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, sm), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, rm), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, wb), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new ny(), this.outgoingDataStreamManager = new ry(this.engine, this.log), this.disconnectLock = new
|
|
15809
|
+
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, Ab), e), this.log = Pi((n = this.options.loggerName) !== null && n !== void 0 ? n : jn.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, sm), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, rm), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, wb), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new ny(), this.outgoingDataStreamManager = new ry(this.engine, this.log), this.disconnectLock = new bn(), this.localParticipant = new fy("", "", this.engine, this.options, this.rpcHandlers, this.outgoingDataStreamManager), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", Qi(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", Qi(this.options.audioCaptureDefaults.deviceId)), !((s = this.options.audioOutput) === null || s === void 0) && s.deviceId && this.switchActiveDevice("audiooutput", Qi(this.options.audioOutput.deviceId)).catch((a) => this.log.warn("Could not set audio output: ".concat(a.message), this.logContext)), this.options.e2ee && this.setupE2EE(), vn()) {
|
|
15810
15810
|
const a = new AbortController();
|
|
15811
15811
|
(r = navigator.mediaDevices) === null || r === void 0 || r.addEventListener("devicechange", this.handleDeviceChange, {
|
|
15812
15812
|
signal: a.signal
|
|
@@ -16268,7 +16268,7 @@ class cr extends hi.EventEmitter {
|
|
|
16268
16268
|
}), this.localParticipant.trackPublications.forEach((s) => {
|
|
16269
16269
|
var r, a, o;
|
|
16270
16270
|
s.track && this.localParticipant.unpublishTrack(s.track, e), e ? ((r = s.track) === null || r === void 0 || r.detach(), (a = s.track) === null || a === void 0 || a.stop()) : (o = s.track) === null || o === void 0 || o.stopMonitor();
|
|
16271
|
-
}), this.localParticipant.off(ce.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(ce.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(ce.AttributesChanged, this.onLocalAttributesChanged).off(ce.TrackMuted, this.onLocalTrackMuted).off(ce.TrackUnmuted, this.onLocalTrackUnmuted).off(ce.LocalTrackPublished, this.onLocalTrackPublished).off(ce.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(ce.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(ce.MediaDevicesError, this.onMediaDevicesError).off(ce.AudioStreamAcquired, this.startAudio).off(ce.ChatMessage, this.onLocalChatMessageSent).off(ce.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0),
|
|
16271
|
+
}), this.localParticipant.off(ce.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(ce.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(ce.AttributesChanged, this.onLocalAttributesChanged).off(ce.TrackMuted, this.onLocalTrackMuted).off(ce.TrackUnmuted, this.onLocalTrackUnmuted).off(ce.LocalTrackPublished, this.onLocalTrackPublished).off(ce.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(ce.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(ce.MediaDevicesError, this.onMediaDevicesError).off(ce.AudioStreamAcquired, this.startAudio).off(ce.ChatMessage, this.onLocalChatMessageSent).off(ce.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), vn() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
|
|
16272
16272
|
} finally {
|
|
16273
16273
|
this.setAndEmitConnectionState(ut.Disconnected), this.emit(ne.Disconnected, t);
|
|
16274
16274
|
}
|
|
@@ -16338,7 +16338,7 @@ class cr extends hi.EventEmitter {
|
|
|
16338
16338
|
var e, t;
|
|
16339
16339
|
if (typeof this.options.webAudioMix != "boolean" && this.options.webAudioMix.audioContext ? this.audioContext = this.options.webAudioMix.audioContext : (!this.audioContext || this.audioContext.state === "closed") && (this.audioContext = (e = tm()) !== null && e !== void 0 ? e : void 0), this.options.webAudioMix && this.remoteParticipants.forEach((s) => s.setAudioContext(this.audioContext)), this.localParticipant.setAudioContext(this.audioContext), this.audioContext && this.audioContext.state === "suspended")
|
|
16340
16340
|
try {
|
|
16341
|
-
yield Promise.race([this.audioContext.resume(),
|
|
16341
|
+
yield Promise.race([this.audioContext.resume(), yn(200)]);
|
|
16342
16342
|
} catch (s) {
|
|
16343
16343
|
this.log.warn("Could not resume audio context", Object.assign(Object.assign({}, this.logContext), {
|
|
16344
16344
|
error: s
|
|
@@ -16621,7 +16621,7 @@ class ns extends hi.EventEmitter {
|
|
|
16621
16621
|
for (; Date.now() < s; ) {
|
|
16622
16622
|
if (n)
|
|
16623
16623
|
return;
|
|
16624
|
-
yield
|
|
16624
|
+
yield yn(100);
|
|
16625
16625
|
}
|
|
16626
16626
|
throw new Error("Could not reconnect using ".concat(e, " protocol after 10 seconds"));
|
|
16627
16627
|
});
|
|
@@ -17139,7 +17139,7 @@ const ni = Ks.getInstance();
|
|
|
17139
17139
|
typeof window < "u" && window.addEventListener("pagehide", () => {
|
|
17140
17140
|
ni.forceClose();
|
|
17141
17141
|
});
|
|
17142
|
-
const
|
|
17142
|
+
const an = class an extends EventTarget {
|
|
17143
17143
|
constructor() {
|
|
17144
17144
|
super(...arguments), this.room = null, this.callStatus = "idle", this.isReady = !1, this.error = null, this.microphoneEnabled = !1, this.connectedParticipants = [], this.userIdentity = "", this.roomName = "", this.audioPlaybackPrompt = !1, this.isAppleDevice = /iPhone|iPad|iPod|Macintosh|Mac OS/i.test(navigator.userAgent), this.agentAudioElements = [], this.unmuteTimer = null, this.speakingHandler = null, this.fadeContext = null, this.fadeContextAcquired = !1, this.fadeGains = /* @__PURE__ */ new Map(), this.fadeSetupPromise = null;
|
|
17145
17145
|
}
|
|
@@ -17238,10 +17238,10 @@ const hn = class hn extends EventTarget {
|
|
|
17238
17238
|
const h = setTimeout(() => {
|
|
17239
17239
|
s.off(ne.ParticipantConnected, f), u();
|
|
17240
17240
|
}, 2e3), f = (g) => {
|
|
17241
|
-
|
|
17241
|
+
an.isAgentIdentity(g.identity) && (clearTimeout(h), s.off(ne.ParticipantConnected, f), u());
|
|
17242
17242
|
};
|
|
17243
17243
|
for (const g of s.remoteParticipants.values())
|
|
17244
|
-
if (
|
|
17244
|
+
if (an.isAgentIdentity(g.identity)) {
|
|
17245
17245
|
clearTimeout(h), u();
|
|
17246
17246
|
return;
|
|
17247
17247
|
}
|
|
@@ -17275,7 +17275,7 @@ const hn = class hn extends EventTarget {
|
|
|
17275
17275
|
...this.connectedParticipants,
|
|
17276
17276
|
t.identity
|
|
17277
17277
|
];
|
|
17278
|
-
const n =
|
|
17278
|
+
const n = an.isAgentIdentity(t.identity);
|
|
17279
17279
|
n && (this.updateStatus("agent-connected"), this.audioPlaybackPrompt = !0, this.dispatchEvent(
|
|
17280
17280
|
new CustomEvent("agent-connected", {
|
|
17281
17281
|
detail: { participant: t.identity }
|
|
@@ -17292,7 +17292,7 @@ const hn = class hn extends EventTarget {
|
|
|
17292
17292
|
this.connectedParticipants = this.connectedParticipants.filter(
|
|
17293
17293
|
(s) => s !== t.identity
|
|
17294
17294
|
);
|
|
17295
|
-
const n =
|
|
17295
|
+
const n = an.isAgentIdentity(t.identity);
|
|
17296
17296
|
n && (this.audioPlaybackPrompt = !1, this.updateStatus("connected"), this.dispatchEvent(
|
|
17297
17297
|
new CustomEvent("agent-disconnected", {
|
|
17298
17298
|
detail: { participant: t.identity }
|
|
@@ -17308,7 +17308,7 @@ const hn = class hn extends EventTarget {
|
|
|
17308
17308
|
(t, n, s) => {
|
|
17309
17309
|
if (t.kind === "audio") {
|
|
17310
17310
|
const r = t.attach();
|
|
17311
|
-
document.body.appendChild(r),
|
|
17311
|
+
document.body.appendChild(r), an.isAgentIdentity(s.identity) && (this.agentAudioElements.push(r), this.setupAgentAudioFade(r)), this.dispatchEvent(
|
|
17312
17312
|
new CustomEvent("audio-track-added", {
|
|
17313
17313
|
detail: {
|
|
17314
17314
|
participant: s.identity,
|
|
@@ -17358,16 +17358,29 @@ const hn = class hn extends EventTarget {
|
|
|
17358
17358
|
);
|
|
17359
17359
|
}), e.on(ne.AudioPlaybackStatusChanged, async () => {
|
|
17360
17360
|
e.canPlaybackAudio || this.connectedParticipants.some(
|
|
17361
|
-
(n) =>
|
|
17361
|
+
(n) => an.isAgentIdentity(n)
|
|
17362
17362
|
) && !this.audioPlaybackPrompt && (this.updateStatus("agent-connected"), this.audioPlaybackPrompt = !0), this.dispatchEvent(
|
|
17363
17363
|
new CustomEvent("audio-playback-status-changed", {
|
|
17364
17364
|
detail: { canPlayback: e.canPlaybackAudio }
|
|
17365
17365
|
})
|
|
17366
17366
|
);
|
|
17367
|
+
}), e.on(ne.DataReceived, (t, n) => {
|
|
17368
|
+
if (n)
|
|
17369
|
+
try {
|
|
17370
|
+
const s = JSON.parse(new TextDecoder().decode(t));
|
|
17371
|
+
s.type === "transcript" ? this.dispatchEvent(
|
|
17372
|
+
new CustomEvent("transcription", {
|
|
17373
|
+
detail: { speaker: s.speaker, text: s.text, timestamp: s.timestamp },
|
|
17374
|
+
bubbles: !0,
|
|
17375
|
+
composed: !0
|
|
17376
|
+
})
|
|
17377
|
+
) : an.isAgentIdentity(n.identity) && this.dispatchEvent(new CustomEvent("agent-command", { detail: s }));
|
|
17378
|
+
} catch {
|
|
17379
|
+
}
|
|
17367
17380
|
}), this.speakingHandler = (t) => {
|
|
17368
|
-
t ? (this.unmuteTimer && (clearTimeout(this.unmuteTimer), this.unmuteTimer = null), this.rampAgentGain(0,
|
|
17369
|
-
this.unmuteTimer = null, this.rampAgentGain(1,
|
|
17370
|
-
},
|
|
17381
|
+
t ? (this.unmuteTimer && (clearTimeout(this.unmuteTimer), this.unmuteTimer = null), this.rampAgentGain(0, an.FADEOUT_TC)) : this.unmuteTimer = setTimeout(() => {
|
|
17382
|
+
this.unmuteTimer = null, this.rampAgentGain(1, an.FADEIN_TC);
|
|
17383
|
+
}, an.UNMUTE_HOLDOVER_MS);
|
|
17371
17384
|
}, e.localParticipant.on("isSpeakingChanged", this.speakingHandler);
|
|
17372
17385
|
}
|
|
17373
17386
|
async toggleMicrophone() {
|
|
@@ -17459,6 +17472,17 @@ const hn = class hn extends EventTarget {
|
|
|
17459
17472
|
);
|
|
17460
17473
|
}
|
|
17461
17474
|
}
|
|
17475
|
+
/**
|
|
17476
|
+
* Send a JSON message to the agent via data channel.
|
|
17477
|
+
*/
|
|
17478
|
+
async sendDataToAgent(e) {
|
|
17479
|
+
if (!this.room) {
|
|
17480
|
+
console.warn("[LiveKitCallManager] Cannot send data: no room");
|
|
17481
|
+
return;
|
|
17482
|
+
}
|
|
17483
|
+
const n = new TextEncoder().encode(JSON.stringify(e));
|
|
17484
|
+
await this.room.localParticipant.publishData(n, { reliable: !0 });
|
|
17485
|
+
}
|
|
17462
17486
|
async hangUp() {
|
|
17463
17487
|
if (!this.room) {
|
|
17464
17488
|
this.error = "No active connection to end.";
|
|
@@ -17477,14 +17501,14 @@ const hn = class hn extends EventTarget {
|
|
|
17477
17501
|
});
|
|
17478
17502
|
}
|
|
17479
17503
|
};
|
|
17480
|
-
|
|
17481
|
-
let lr =
|
|
17504
|
+
an.UNMUTE_HOLDOVER_MS = 350, an.FADEOUT_TC = 0.045, an.FADEIN_TC = 0.03;
|
|
17505
|
+
let lr = an;
|
|
17482
17506
|
/**
|
|
17483
17507
|
* @license
|
|
17484
17508
|
* Copyright 2010-2025 Three.js Authors
|
|
17485
17509
|
* SPDX-License-Identifier: MIT
|
|
17486
17510
|
*/
|
|
17487
|
-
const qd = "182", Ey = 0, Eh = 1, My = 2, Ka = 1, wy = 2, Lr = 3, ki = 0,
|
|
17511
|
+
const qd = "182", Ey = 0, Eh = 1, My = 2, Ka = 1, wy = 2, Lr = 3, ki = 0, on = 1, Ei = 2, Ai = 0, ir = 1, Ml = 2, Mh = 3, wh = 4, Ay = 5, ms = 100, Ry = 101, Py = 102, ky = 103, Iy = 104, Dy = 200, Ly = 201, Uy = 202, Ny = 203, wl = 204, Al = 205, Oy = 206, Fy = 207, By = 208, zy = 209, Vy = 210, Gy = 211, Hy = 212, Wy = 213, qy = 214, Rl = 0, Pl = 1, kl = 2, dr = 3, Il = 4, Dl = 5, Ll = 6, Ul = 7, mm = 0, jy = 1, $y = 2, ai = 0, gm = 1, vm = 2, bm = 3, ym = 4, _m = 5, Sm = 6, xm = 7, Tm = 300, Ms = 301, ur = 302, Nl = 303, Ol = 304, Ao = 306, Fl = 1e3, Mi = 1001, Bl = 1002, Qt = 1003, Xy = 1004, ma = 1005, nn = 1006, pc = 1007, bs = 1008, In = 1009, Cm = 1010, Em = 1011, Kr = 1012, jd = 1013, ui = 1014, ii = 1015, Ii = 1016, $d = 1017, Xd = 1018, Jr = 1020, Mm = 35902, wm = 35899, Am = 1021, Rm = 1022, qn = 1023, Di = 1026, ys = 1027, Pm = 1028, Yd = 1029, hr = 1030, Kd = 1031, Jd = 1033, Ja = 33776, Za = 33777, Qa = 33778, eo = 33779, zl = 35840, Vl = 35841, Gl = 35842, Hl = 35843, Wl = 36196, ql = 37492, jl = 37496, $l = 37488, Xl = 37489, Yl = 37490, Kl = 37491, Jl = 37808, Zl = 37809, Ql = 37810, ed = 37811, td = 37812, nd = 37813, id = 37814, sd = 37815, rd = 37816, ad = 37817, od = 37818, cd = 37819, ld = 37820, dd = 37821, ud = 36492, hd = 36494, fd = 36495, pd = 36283, md = 36284, gd = 36285, vd = 36286, Yy = 3200, Ky = 0, Jy = 1, Xi = "", Pn = "srgb", fr = "srgb-linear", po = "linear", vt = "srgb", Ds = 7680, Ah = 519, Zy = 512, Qy = 513, e_ = 514, Zd = 515, t_ = 516, n_ = 517, Qd = 518, i_ = 519, Rh = 35044, Ph = "300 es", si = 2e3, mo = 2001;
|
|
17488
17512
|
function km(i) {
|
|
17489
17513
|
for (let e = i.length - 1; e >= 0; --e)
|
|
17490
17514
|
if (i[e] >= 65535) return !0;
|
|
@@ -17621,7 +17645,7 @@ function Er(i, e) {
|
|
|
17621
17645
|
throw new Error("Invalid component type.");
|
|
17622
17646
|
}
|
|
17623
17647
|
}
|
|
17624
|
-
function
|
|
17648
|
+
function hn(i, e) {
|
|
17625
17649
|
switch (e.constructor) {
|
|
17626
17650
|
case Float32Array:
|
|
17627
17651
|
return i;
|
|
@@ -19992,7 +20016,7 @@ function yc(i) {
|
|
|
19992
20016
|
}
|
|
19993
20017
|
let d_ = 0;
|
|
19994
20018
|
const _c = /* @__PURE__ */ new B();
|
|
19995
|
-
class
|
|
20019
|
+
class cn extends mr {
|
|
19996
20020
|
/**
|
|
19997
20021
|
* Constructs a new texture.
|
|
19998
20022
|
*
|
|
@@ -20007,7 +20031,7 @@ class on extends mr {
|
|
|
20007
20031
|
* @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
|
|
20008
20032
|
* @param {string} [colorSpace=NoColorSpace] - The color space.
|
|
20009
20033
|
*/
|
|
20010
|
-
constructor(e =
|
|
20034
|
+
constructor(e = cn.DEFAULT_IMAGE, t = cn.DEFAULT_MAPPING, n = Mi, s = Mi, r = nn, a = bs, o = qn, c = In, l = cn.DEFAULT_ANISOTROPY, d = Xi) {
|
|
20011
20035
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: d_++ }), this.uuid = sa(), this.name = "", this.source = new eu(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = s, this.magFilter = r, this.minFilter = a, this.anisotropy = l, this.format = o, this.internalFormat = null, this.type = c, this.offset = new ht(0, 0), this.repeat = new ht(1, 1), this.center = new ht(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ve(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = d, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
|
|
20012
20036
|
}
|
|
20013
20037
|
/**
|
|
@@ -20205,9 +20229,9 @@ class on extends mr {
|
|
|
20205
20229
|
e === !0 && this.pmremVersion++;
|
|
20206
20230
|
}
|
|
20207
20231
|
}
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20232
|
+
cn.DEFAULT_IMAGE = null;
|
|
20233
|
+
cn.DEFAULT_MAPPING = Tm;
|
|
20234
|
+
cn.DEFAULT_ANISOTROPY = 1;
|
|
20211
20235
|
class Ft {
|
|
20212
20236
|
/**
|
|
20213
20237
|
* Constructs a new 4D vector.
|
|
@@ -20800,7 +20824,7 @@ class u_ extends mr {
|
|
|
20800
20824
|
depth: 1,
|
|
20801
20825
|
multiview: !1
|
|
20802
20826
|
}, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new Ft(0, 0, e, t), this.scissorTest = !1, this.viewport = new Ft(0, 0, e, t);
|
|
20803
|
-
const s = { width: e, height: t, depth: n.depth }, r = new
|
|
20827
|
+
const s = { width: e, height: t, depth: n.depth }, r = new cn(s);
|
|
20804
20828
|
this.textures = [];
|
|
20805
20829
|
const a = n.count;
|
|
20806
20830
|
for (let o = 0; o < a; o++)
|
|
@@ -20906,7 +20930,7 @@ class oi extends u_ {
|
|
|
20906
20930
|
super(e, t, n), this.isWebGLRenderTarget = !0;
|
|
20907
20931
|
}
|
|
20908
20932
|
}
|
|
20909
|
-
class Im extends
|
|
20933
|
+
class Im extends cn {
|
|
20910
20934
|
/**
|
|
20911
20935
|
* Constructs a new data array texture.
|
|
20912
20936
|
*
|
|
@@ -20937,7 +20961,7 @@ class Im extends on {
|
|
|
20937
20961
|
this.layerUpdates.clear();
|
|
20938
20962
|
}
|
|
20939
20963
|
}
|
|
20940
|
-
class h_ extends
|
|
20964
|
+
class h_ extends cn {
|
|
20941
20965
|
/**
|
|
20942
20966
|
* Constructs a new data array texture.
|
|
20943
20967
|
*
|
|
@@ -22106,7 +22130,7 @@ class Wt {
|
|
|
22106
22130
|
*/
|
|
22107
22131
|
lookAt(e, t, n) {
|
|
22108
22132
|
const s = this.elements;
|
|
22109
|
-
return
|
|
22133
|
+
return xn.subVectors(e, t), xn.lengthSq() === 0 && (xn.z = 1), xn.normalize(), Vi.crossVectors(n, xn), Vi.lengthSq() === 0 && (Math.abs(n.z) === 1 ? xn.x += 1e-4 : xn.z += 1e-4, xn.normalize(), Vi.crossVectors(n, xn)), Vi.normalize(), Sa.crossVectors(xn, Vi), s[0] = Vi.x, s[4] = Sa.x, s[8] = xn.x, s[1] = Vi.y, s[5] = Sa.y, s[9] = xn.y, s[2] = Vi.z, s[6] = Sa.z, s[10] = xn.z, this;
|
|
22110
22134
|
}
|
|
22111
22135
|
/**
|
|
22112
22136
|
* Post-multiplies this matrix by the given 4x4 matrix.
|
|
@@ -22561,7 +22585,7 @@ class Wt {
|
|
|
22561
22585
|
return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
|
|
22562
22586
|
}
|
|
22563
22587
|
}
|
|
22564
|
-
const Fs = /* @__PURE__ */ new B(), Nn = /* @__PURE__ */ new Wt(), m_ = /* @__PURE__ */ new B(0, 0, 0), g_ = /* @__PURE__ */ new B(1, 1, 1), Vi = /* @__PURE__ */ new B(), Sa = /* @__PURE__ */ new B(),
|
|
22588
|
+
const Fs = /* @__PURE__ */ new B(), Nn = /* @__PURE__ */ new Wt(), m_ = /* @__PURE__ */ new B(0, 0, 0), g_ = /* @__PURE__ */ new B(1, 1, 1), Vi = /* @__PURE__ */ new B(), Sa = /* @__PURE__ */ new B(), xn = /* @__PURE__ */ new B(), Nh = /* @__PURE__ */ new Wt(), Oh = /* @__PURE__ */ new ra();
|
|
22565
22589
|
class Li {
|
|
22566
22590
|
/**
|
|
22567
22591
|
* Constructs a new euler instance.
|
|
@@ -24757,7 +24781,7 @@ class ci {
|
|
|
24757
24781
|
* @return {BufferAttribute} A reference to this instance.
|
|
24758
24782
|
*/
|
|
24759
24783
|
setComponent(e, t, n) {
|
|
24760
|
-
return this.normalized && (n =
|
|
24784
|
+
return this.normalized && (n = hn(n, this.array)), this.array[e * this.itemSize + t] = n, this;
|
|
24761
24785
|
}
|
|
24762
24786
|
/**
|
|
24763
24787
|
* Returns the x component of the vector at the given index.
|
|
@@ -24777,7 +24801,7 @@ class ci {
|
|
|
24777
24801
|
* @return {BufferAttribute} A reference to this instance.
|
|
24778
24802
|
*/
|
|
24779
24803
|
setX(e, t) {
|
|
24780
|
-
return this.normalized && (t =
|
|
24804
|
+
return this.normalized && (t = hn(t, this.array)), this.array[e * this.itemSize] = t, this;
|
|
24781
24805
|
}
|
|
24782
24806
|
/**
|
|
24783
24807
|
* Returns the y component of the vector at the given index.
|
|
@@ -24797,7 +24821,7 @@ class ci {
|
|
|
24797
24821
|
* @return {BufferAttribute} A reference to this instance.
|
|
24798
24822
|
*/
|
|
24799
24823
|
setY(e, t) {
|
|
24800
|
-
return this.normalized && (t =
|
|
24824
|
+
return this.normalized && (t = hn(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
|
|
24801
24825
|
}
|
|
24802
24826
|
/**
|
|
24803
24827
|
* Returns the z component of the vector at the given index.
|
|
@@ -24817,7 +24841,7 @@ class ci {
|
|
|
24817
24841
|
* @return {BufferAttribute} A reference to this instance.
|
|
24818
24842
|
*/
|
|
24819
24843
|
setZ(e, t) {
|
|
24820
|
-
return this.normalized && (t =
|
|
24844
|
+
return this.normalized && (t = hn(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
|
|
24821
24845
|
}
|
|
24822
24846
|
/**
|
|
24823
24847
|
* Returns the w component of the vector at the given index.
|
|
@@ -24837,7 +24861,7 @@ class ci {
|
|
|
24837
24861
|
* @return {BufferAttribute} A reference to this instance.
|
|
24838
24862
|
*/
|
|
24839
24863
|
setW(e, t) {
|
|
24840
|
-
return this.normalized && (t =
|
|
24864
|
+
return this.normalized && (t = hn(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
|
|
24841
24865
|
}
|
|
24842
24866
|
/**
|
|
24843
24867
|
* Sets the x and y component of the vector at the given index.
|
|
@@ -24848,7 +24872,7 @@ class ci {
|
|
|
24848
24872
|
* @return {BufferAttribute} A reference to this instance.
|
|
24849
24873
|
*/
|
|
24850
24874
|
setXY(e, t, n) {
|
|
24851
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
24875
|
+
return e *= this.itemSize, this.normalized && (t = hn(t, this.array), n = hn(n, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this;
|
|
24852
24876
|
}
|
|
24853
24877
|
/**
|
|
24854
24878
|
* Sets the x, y and z component of the vector at the given index.
|
|
@@ -24860,7 +24884,7 @@ class ci {
|
|
|
24860
24884
|
* @return {BufferAttribute} A reference to this instance.
|
|
24861
24885
|
*/
|
|
24862
24886
|
setXYZ(e, t, n, s) {
|
|
24863
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
24887
|
+
return e *= this.itemSize, this.normalized && (t = hn(t, this.array), n = hn(n, this.array), s = hn(s, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = s, this;
|
|
24864
24888
|
}
|
|
24865
24889
|
/**
|
|
24866
24890
|
* Sets the x, y, z and w component of the vector at the given index.
|
|
@@ -24873,7 +24897,7 @@ class ci {
|
|
|
24873
24897
|
* @return {BufferAttribute} A reference to this instance.
|
|
24874
24898
|
*/
|
|
24875
24899
|
setXYZW(e, t, n, s, r) {
|
|
24876
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
24900
|
+
return e *= this.itemSize, this.normalized && (t = hn(t, this.array), n = hn(n, this.array), s = hn(s, this.array), r = hn(r, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = s, this.array[e + 3] = r, this;
|
|
24877
24901
|
}
|
|
24878
24902
|
/**
|
|
24879
24903
|
* Sets the given callback function that is executed after the Renderer has transferred
|
|
@@ -24933,7 +24957,7 @@ class Om extends ci {
|
|
|
24933
24957
|
super(new Uint32Array(e), t, n);
|
|
24934
24958
|
}
|
|
24935
24959
|
}
|
|
24936
|
-
class
|
|
24960
|
+
class ln extends ci {
|
|
24937
24961
|
/**
|
|
24938
24962
|
* Constructs a new buffer attribute.
|
|
24939
24963
|
*
|
|
@@ -24946,7 +24970,7 @@ class cn extends ci {
|
|
|
24946
24970
|
}
|
|
24947
24971
|
}
|
|
24948
24972
|
let T_ = 0;
|
|
24949
|
-
const Rn = /* @__PURE__ */ new Wt(), Uc = /* @__PURE__ */ new wn(), Hs = /* @__PURE__ */ new B(),
|
|
24973
|
+
const Rn = /* @__PURE__ */ new Wt(), Uc = /* @__PURE__ */ new wn(), Hs = /* @__PURE__ */ new B(), Tn = /* @__PURE__ */ new aa(), Rr = /* @__PURE__ */ new aa(), Yt = /* @__PURE__ */ new B();
|
|
24950
24974
|
class Xn extends mr {
|
|
24951
24975
|
/**
|
|
24952
24976
|
* Constructs a new geometry.
|
|
@@ -25181,7 +25205,7 @@ class Xn extends mr {
|
|
|
25181
25205
|
const a = e[s];
|
|
25182
25206
|
n.push(a.x, a.y, a.z || 0);
|
|
25183
25207
|
}
|
|
25184
|
-
this.setAttribute("position", new
|
|
25208
|
+
this.setAttribute("position", new ln(n, 3));
|
|
25185
25209
|
} else {
|
|
25186
25210
|
const n = Math.min(e.length, t.count);
|
|
25187
25211
|
for (let s = 0; s < n; s++) {
|
|
@@ -25211,7 +25235,7 @@ class Xn extends mr {
|
|
|
25211
25235
|
if (this.boundingBox.setFromBufferAttribute(e), t)
|
|
25212
25236
|
for (let n = 0, s = t.length; n < s; n++) {
|
|
25213
25237
|
const r = t[n];
|
|
25214
|
-
|
|
25238
|
+
Tn.setFromBufferAttribute(r), this.morphTargetsRelative ? (Yt.addVectors(this.boundingBox.min, Tn.min), this.boundingBox.expandByPoint(Yt), Yt.addVectors(this.boundingBox.max, Tn.max), this.boundingBox.expandByPoint(Yt)) : (this.boundingBox.expandByPoint(Tn.min), this.boundingBox.expandByPoint(Tn.max));
|
|
25215
25239
|
}
|
|
25216
25240
|
} else
|
|
25217
25241
|
this.boundingBox.makeEmpty();
|
|
@@ -25231,12 +25255,12 @@ class Xn extends mr {
|
|
|
25231
25255
|
}
|
|
25232
25256
|
if (e) {
|
|
25233
25257
|
const n = this.boundingSphere.center;
|
|
25234
|
-
if (
|
|
25258
|
+
if (Tn.setFromBufferAttribute(e), t)
|
|
25235
25259
|
for (let r = 0, a = t.length; r < a; r++) {
|
|
25236
25260
|
const o = t[r];
|
|
25237
|
-
Rr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Yt.addVectors(
|
|
25261
|
+
Rr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Yt.addVectors(Tn.min, Rr.min), Tn.expandByPoint(Yt), Yt.addVectors(Tn.max, Rr.max), Tn.expandByPoint(Yt)) : (Tn.expandByPoint(Rr.min), Tn.expandByPoint(Rr.max));
|
|
25238
25262
|
}
|
|
25239
|
-
|
|
25263
|
+
Tn.getCenter(n);
|
|
25240
25264
|
let s = 0;
|
|
25241
25265
|
for (let r = 0, a = e.count; r < a; r++)
|
|
25242
25266
|
Yt.fromBufferAttribute(e, r), s = Math.max(s, n.distanceToSquared(Yt));
|
|
@@ -25579,7 +25603,7 @@ class $n extends wn {
|
|
|
25579
25603
|
}
|
|
25580
25604
|
function C_(i, e, t, n, s, r, a, o) {
|
|
25581
25605
|
let c;
|
|
25582
|
-
if (e.side ===
|
|
25606
|
+
if (e.side === on ? c = n.intersectTriangle(a, r, s, !0, o) : c = n.intersectTriangle(s, r, a, e.side === ki, o), c === null) return null;
|
|
25583
25607
|
Pa.copy(o), Pa.applyMatrix4(i.matrixWorld);
|
|
25584
25608
|
const l = t.ray.origin.distanceTo(Pa);
|
|
25585
25609
|
return l < t.near || l > t.far ? null : {
|
|
@@ -25629,7 +25653,7 @@ class oa extends Xn {
|
|
|
25629
25653
|
s = Math.floor(s), r = Math.floor(r), a = Math.floor(a);
|
|
25630
25654
|
const c = [], l = [], d = [], u = [];
|
|
25631
25655
|
let h = 0, f = 0;
|
|
25632
|
-
g("z", "y", "x", -1, -1, n, t, e, a, r, 0), g("z", "y", "x", 1, -1, n, t, -e, a, r, 1), g("x", "z", "y", 1, 1, e, n, t, s, a, 2), g("x", "z", "y", 1, -1, e, n, -t, s, a, 3), g("x", "y", "z", 1, -1, e, t, n, s, r, 4), g("x", "y", "z", -1, -1, e, t, -n, s, r, 5), this.setIndex(c), this.setAttribute("position", new
|
|
25656
|
+
g("z", "y", "x", -1, -1, n, t, e, a, r, 0), g("z", "y", "x", 1, -1, n, t, -e, a, r, 1), g("x", "z", "y", 1, 1, e, n, t, s, a, 2), g("x", "z", "y", 1, -1, e, n, -t, s, a, 3), g("x", "y", "z", 1, -1, e, t, n, s, r, 4), g("x", "y", "z", -1, -1, e, t, -n, s, r, 5), this.setIndex(c), this.setAttribute("position", new ln(l, 3)), this.setAttribute("normal", new ln(d, 3)), this.setAttribute("uv", new ln(u, 2));
|
|
25633
25657
|
function g(v, m, p, x, C, b, S, M, A, k, _) {
|
|
25634
25658
|
const T = b / A, R = S / k, N = b / 2, F = S / 2, q = M / 2, K = A + 1, H = k + 1;
|
|
25635
25659
|
let W = 0, te = 0;
|
|
@@ -26025,7 +26049,7 @@ class R_ extends wn {
|
|
|
26025
26049
|
n.texture.generateMipmaps = !1, e.setRenderTarget(n, 0, s), e.render(t, r), e.setRenderTarget(n, 1, s), e.render(t, a), e.setRenderTarget(n, 2, s), e.render(t, o), e.setRenderTarget(n, 3, s), e.render(t, c), e.setRenderTarget(n, 4, s), e.render(t, l), n.texture.generateMipmaps = v, e.setRenderTarget(n, 5, s), e.render(t, d), e.setRenderTarget(u, h, f), e.xr.enabled = g, n.texture.needsPMREMUpdate = !0;
|
|
26026
26050
|
}
|
|
26027
26051
|
}
|
|
26028
|
-
class zm extends
|
|
26052
|
+
class zm extends cn {
|
|
26029
26053
|
/**
|
|
26030
26054
|
* Constructs a new cube texture.
|
|
26031
26055
|
*
|
|
@@ -26128,7 +26152,7 @@ class Vm extends oi {
|
|
|
26128
26152
|
uniforms: pr(n.uniforms),
|
|
26129
26153
|
vertexShader: n.vertexShader,
|
|
26130
26154
|
fragmentShader: n.fragmentShader,
|
|
26131
|
-
side:
|
|
26155
|
+
side: on,
|
|
26132
26156
|
blending: Ai
|
|
26133
26157
|
});
|
|
26134
26158
|
r.uniforms.tEquirect.value = t;
|
|
@@ -26288,7 +26312,7 @@ class k_ extends wn {
|
|
|
26288
26312
|
return this.fog !== null && (t.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (t.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (t.object.backgroundIntensity = this.backgroundIntensity), t.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (t.object.environmentIntensity = this.environmentIntensity), t.object.environmentRotation = this.environmentRotation.toArray(), t;
|
|
26289
26313
|
}
|
|
26290
26314
|
}
|
|
26291
|
-
class I_ extends
|
|
26315
|
+
class I_ extends cn {
|
|
26292
26316
|
/**
|
|
26293
26317
|
* Constructs a new data texture.
|
|
26294
26318
|
*
|
|
@@ -26660,7 +26684,7 @@ class Gm {
|
|
|
26660
26684
|
return new this.constructor().copy(this);
|
|
26661
26685
|
}
|
|
26662
26686
|
}
|
|
26663
|
-
class Qr extends
|
|
26687
|
+
class Qr extends cn {
|
|
26664
26688
|
/**
|
|
26665
26689
|
* Constructs a new depth texture.
|
|
26666
26690
|
*
|
|
@@ -26720,7 +26744,7 @@ class N_ extends Qr {
|
|
|
26720
26744
|
this.image = e;
|
|
26721
26745
|
}
|
|
26722
26746
|
}
|
|
26723
|
-
class Hm extends
|
|
26747
|
+
class Hm extends cn {
|
|
26724
26748
|
/**
|
|
26725
26749
|
* Creates a new raw texture.
|
|
26726
26750
|
*
|
|
@@ -26750,7 +26774,7 @@ class nu extends Xn {
|
|
|
26750
26774
|
detail: s
|
|
26751
26775
|
};
|
|
26752
26776
|
const r = [], a = [];
|
|
26753
|
-
o(s), l(n), d(), this.setAttribute("position", new
|
|
26777
|
+
o(s), l(n), d(), this.setAttribute("position", new ln(r, 3)), this.setAttribute("normal", new ln(r.slice(), 3)), this.setAttribute("uv", new ln(a, 2)), s === 0 ? this.computeVertexNormals() : this.normalizeNormals();
|
|
26754
26778
|
function o(x) {
|
|
26755
26779
|
const C = new B(), b = new B(), S = new B();
|
|
26756
26780
|
for (let M = 0; M < t.length; M += 3)
|
|
@@ -26981,7 +27005,7 @@ class Po extends Xn {
|
|
|
26981
27005
|
const C = x + l * p, b = x + l * (p + 1), S = x + 1 + l * (p + 1), M = x + 1 + l * p;
|
|
26982
27006
|
f.push(C, b, M), f.push(b, S, M);
|
|
26983
27007
|
}
|
|
26984
|
-
this.setIndex(f), this.setAttribute("position", new
|
|
27008
|
+
this.setIndex(f), this.setAttribute("position", new ln(g, 3)), this.setAttribute("normal", new ln(v, 3)), this.setAttribute("uv", new ln(m, 2));
|
|
26985
27009
|
}
|
|
26986
27010
|
copy(e) {
|
|
26987
27011
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -27037,7 +27061,7 @@ class su extends Xn {
|
|
|
27037
27061
|
const C = d[p][x + 1], b = d[p][x], S = d[p + 1][x], M = d[p + 1][x + 1];
|
|
27038
27062
|
(p !== 0 || a > 0) && f.push(C, b, M), (p !== n - 1 || c < Math.PI) && f.push(b, S, M);
|
|
27039
27063
|
}
|
|
27040
|
-
this.setIndex(f), this.setAttribute("position", new
|
|
27064
|
+
this.setIndex(f), this.setAttribute("position", new ln(g, 3)), this.setAttribute("normal", new ln(v, 3)), this.setAttribute("uv", new ln(m, 2));
|
|
27041
27065
|
}
|
|
27042
27066
|
copy(e) {
|
|
27043
27067
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -31632,7 +31656,7 @@ function CT(i, e, t, n, s, r, a) {
|
|
|
31632
31656
|
uniforms: pr(Qn.backgroundCube.uniforms),
|
|
31633
31657
|
vertexShader: Qn.backgroundCube.vertexShader,
|
|
31634
31658
|
fragmentShader: Qn.backgroundCube.fragmentShader,
|
|
31635
|
-
side:
|
|
31659
|
+
side: on,
|
|
31636
31660
|
depthTest: !1,
|
|
31637
31661
|
depthWrite: !1,
|
|
31638
31662
|
fog: !1,
|
|
@@ -32197,7 +32221,7 @@ class Zh {
|
|
|
32197
32221
|
new oa(),
|
|
32198
32222
|
new Um({
|
|
32199
32223
|
name: "PMREM.Background",
|
|
32200
|
-
side:
|
|
32224
|
+
side: on,
|
|
32201
32225
|
depthWrite: !1,
|
|
32202
32226
|
depthTest: !1
|
|
32203
32227
|
})
|
|
@@ -32997,7 +33021,7 @@ function HT(i, e, t, n, s) {
|
|
|
32997
33021
|
depthBuffer: !1,
|
|
32998
33022
|
stencilBuffer: !1
|
|
32999
33023
|
}), o = new Xn();
|
|
33000
|
-
o.setAttribute("position", new
|
|
33024
|
+
o.setAttribute("position", new ln([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)), o.setAttribute("uv", new ln([0, 2, 0, 0, 2, 0], 2));
|
|
33001
33025
|
const c = new O_({
|
|
33002
33026
|
uniforms: {
|
|
33003
33027
|
tDiffuse: { value: null }
|
|
@@ -33104,7 +33128,7 @@ function HT(i, e, t, n, s) {
|
|
|
33104
33128
|
r.dispose(), a.dispose(), o.dispose(), c.dispose();
|
|
33105
33129
|
};
|
|
33106
33130
|
}
|
|
33107
|
-
const jm = /* @__PURE__ */ new
|
|
33131
|
+
const jm = /* @__PURE__ */ new cn(), yd = /* @__PURE__ */ new Qr(1, 1), $m = /* @__PURE__ */ new Im(), Xm = /* @__PURE__ */ new h_(), Ym = /* @__PURE__ */ new zm(), nf = [], sf = [], rf = new Float32Array(16), af = new Float32Array(9), of = new Float32Array(4);
|
|
33108
33132
|
function gr(i, e, t) {
|
|
33109
33133
|
const n = i[0];
|
|
33110
33134
|
if (n <= 0 || n > 0) return i;
|
|
@@ -34315,7 +34339,7 @@ function lE(i, e, t, n, s, r, a) {
|
|
|
34315
34339
|
decodeVideoTextureEmissive: zt && _.emissiveMap.isVideoTexture === !0 && ot.getTransfer(_.emissiveMap.colorSpace) === vt,
|
|
34316
34340
|
premultipliedAlpha: _.premultipliedAlpha,
|
|
34317
34341
|
doubleSided: _.side === Ei,
|
|
34318
|
-
flipSided: _.side ===
|
|
34342
|
+
flipSided: _.side === on,
|
|
34319
34343
|
useDepthPacking: _.depthPacking >= 0,
|
|
34320
34344
|
depthPacking: _.depthPacking || 0,
|
|
34321
34345
|
index0AttributeName: _.index0AttributeName,
|
|
@@ -34781,7 +34805,7 @@ void main() {
|
|
|
34781
34805
|
], yf = /* @__PURE__ */ new Wt(), kr = /* @__PURE__ */ new B(), Wc = /* @__PURE__ */ new B();
|
|
34782
34806
|
function TE(i, e, t) {
|
|
34783
34807
|
let n = new Gm();
|
|
34784
|
-
const s = new ht(), r = new ht(), a = new Ft(), o = new F_(), c = new B_(), l = {}, d = t.maxTextureSize, u = { [ki]:
|
|
34808
|
+
const s = new ht(), r = new ht(), a = new Ft(), o = new F_(), c = new B_(), l = {}, d = t.maxTextureSize, u = { [ki]: on, [on]: ki, [Ei]: Ei }, h = new Dn({
|
|
34785
34809
|
defines: {
|
|
34786
34810
|
VSM_SAMPLES: 8
|
|
34787
34811
|
},
|
|
@@ -35162,7 +35186,7 @@ function EE(i, e) {
|
|
|
35162
35186
|
}
|
|
35163
35187
|
function xt(D, _e) {
|
|
35164
35188
|
D.side === Ei ? Te(i.CULL_FACE) : ie(i.CULL_FACE);
|
|
35165
|
-
let oe = D.side ===
|
|
35189
|
+
let oe = D.side === on;
|
|
35166
35190
|
_e && (oe = !oe), He(oe), D.blending === ir && D.transparent === !1 ? pt(Ai) : pt(D.blending, D.blendEquation, D.blendSrc, D.blendDst, D.blendEquationAlpha, D.blendSrcAlpha, D.blendDstAlpha, D.blendColor, D.blendAlpha, D.premultipliedAlpha), a.setFunc(D.depthFunc), a.setTest(D.depthTest), a.setMask(D.depthWrite), r.setMask(D.colorWrite);
|
|
35167
35191
|
const Se = D.stencilWrite;
|
|
35168
35192
|
o.setTest(Se), Se && (o.setMask(D.stencilWriteMask), o.setFunc(D.stencilFunc, D.stencilRef, D.stencilFuncMask), o.setOp(D.stencilFail, D.stencilZFail, D.stencilZPass)), zt(D.polygonOffset, D.polygonOffsetFactor, D.polygonOffsetUnits), D.alphaToCoverage === !0 ? ie(i.SAMPLE_ALPHA_TO_COVERAGE) : Te(i.SAMPLE_ALPHA_TO_COVERAGE);
|
|
@@ -36353,7 +36377,7 @@ function DE(i, e) {
|
|
|
36353
36377
|
p.isMeshBasicMaterial || p.isMeshLambertMaterial ? r(m, p) : p.isMeshToonMaterial ? (r(m, p), u(m, p)) : p.isMeshPhongMaterial ? (r(m, p), d(m, p)) : p.isMeshStandardMaterial ? (r(m, p), h(m, p), p.isMeshPhysicalMaterial && f(m, p, b)) : p.isMeshMatcapMaterial ? (r(m, p), g(m, p)) : p.isMeshDepthMaterial ? r(m, p) : p.isMeshDistanceMaterial ? (r(m, p), v(m, p)) : p.isMeshNormalMaterial ? r(m, p) : p.isLineBasicMaterial ? (a(m, p), p.isLineDashedMaterial && o(m, p)) : p.isPointsMaterial ? c(m, p, x, C) : p.isSpriteMaterial ? l(m, p) : p.isShadowMaterial ? (m.color.value.copy(p.color), m.opacity.value = p.opacity) : p.isShaderMaterial && (p.uniformsNeedUpdate = !1);
|
|
36354
36378
|
}
|
|
36355
36379
|
function r(m, p) {
|
|
36356
|
-
m.opacity.value = p.opacity, p.color && m.diffuse.value.copy(p.color), p.emissive && m.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity), p.map && (m.map.value = p.map, t(p.map, m.mapTransform)), p.alphaMap && (m.alphaMap.value = p.alphaMap, t(p.alphaMap, m.alphaMapTransform)), p.bumpMap && (m.bumpMap.value = p.bumpMap, t(p.bumpMap, m.bumpMapTransform), m.bumpScale.value = p.bumpScale, p.side ===
|
|
36380
|
+
m.opacity.value = p.opacity, p.color && m.diffuse.value.copy(p.color), p.emissive && m.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity), p.map && (m.map.value = p.map, t(p.map, m.mapTransform)), p.alphaMap && (m.alphaMap.value = p.alphaMap, t(p.alphaMap, m.alphaMapTransform)), p.bumpMap && (m.bumpMap.value = p.bumpMap, t(p.bumpMap, m.bumpMapTransform), m.bumpScale.value = p.bumpScale, p.side === on && (m.bumpScale.value *= -1)), p.normalMap && (m.normalMap.value = p.normalMap, t(p.normalMap, m.normalMapTransform), m.normalScale.value.copy(p.normalScale), p.side === on && m.normalScale.value.negate()), p.displacementMap && (m.displacementMap.value = p.displacementMap, t(p.displacementMap, m.displacementMapTransform), m.displacementScale.value = p.displacementScale, m.displacementBias.value = p.displacementBias), p.emissiveMap && (m.emissiveMap.value = p.emissiveMap, t(p.emissiveMap, m.emissiveMapTransform)), p.specularMap && (m.specularMap.value = p.specularMap, t(p.specularMap, m.specularMapTransform)), p.alphaTest > 0 && (m.alphaTest.value = p.alphaTest);
|
|
36357
36381
|
const x = e.get(p), C = x.envMap, b = x.envMapRotation;
|
|
36358
36382
|
C && (m.envMap.value = C, us.copy(b), us.x *= -1, us.y *= -1, us.z *= -1, C.isCubeTexture && C.isRenderTargetTexture === !1 && (us.y *= -1, us.z *= -1), m.envMapRotation.value.setFromMatrix4(IE.makeRotationFromEuler(us)), m.flipEnvMap.value = C.isCubeTexture && C.isRenderTargetTexture === !1 ? -1 : 1, m.reflectivity.value = p.reflectivity, m.ior.value = p.ior, m.refractionRatio.value = p.refractionRatio), p.lightMap && (m.lightMap.value = p.lightMap, m.lightMapIntensity.value = p.lightMapIntensity, t(p.lightMap, m.lightMapTransform)), p.aoMap && (m.aoMap.value = p.aoMap, m.aoMapIntensity.value = p.aoMapIntensity, t(p.aoMap, m.aoMapTransform));
|
|
36359
36383
|
}
|
|
@@ -36379,7 +36403,7 @@ function DE(i, e) {
|
|
|
36379
36403
|
m.metalness.value = p.metalness, p.metalnessMap && (m.metalnessMap.value = p.metalnessMap, t(p.metalnessMap, m.metalnessMapTransform)), m.roughness.value = p.roughness, p.roughnessMap && (m.roughnessMap.value = p.roughnessMap, t(p.roughnessMap, m.roughnessMapTransform)), p.envMap && (m.envMapIntensity.value = p.envMapIntensity);
|
|
36380
36404
|
}
|
|
36381
36405
|
function f(m, p, x) {
|
|
36382
|
-
m.ior.value = p.ior, p.sheen > 0 && (m.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen), m.sheenRoughness.value = p.sheenRoughness, p.sheenColorMap && (m.sheenColorMap.value = p.sheenColorMap, t(p.sheenColorMap, m.sheenColorMapTransform)), p.sheenRoughnessMap && (m.sheenRoughnessMap.value = p.sheenRoughnessMap, t(p.sheenRoughnessMap, m.sheenRoughnessMapTransform))), p.clearcoat > 0 && (m.clearcoat.value = p.clearcoat, m.clearcoatRoughness.value = p.clearcoatRoughness, p.clearcoatMap && (m.clearcoatMap.value = p.clearcoatMap, t(p.clearcoatMap, m.clearcoatMapTransform)), p.clearcoatRoughnessMap && (m.clearcoatRoughnessMap.value = p.clearcoatRoughnessMap, t(p.clearcoatRoughnessMap, m.clearcoatRoughnessMapTransform)), p.clearcoatNormalMap && (m.clearcoatNormalMap.value = p.clearcoatNormalMap, t(p.clearcoatNormalMap, m.clearcoatNormalMapTransform), m.clearcoatNormalScale.value.copy(p.clearcoatNormalScale), p.side ===
|
|
36406
|
+
m.ior.value = p.ior, p.sheen > 0 && (m.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen), m.sheenRoughness.value = p.sheenRoughness, p.sheenColorMap && (m.sheenColorMap.value = p.sheenColorMap, t(p.sheenColorMap, m.sheenColorMapTransform)), p.sheenRoughnessMap && (m.sheenRoughnessMap.value = p.sheenRoughnessMap, t(p.sheenRoughnessMap, m.sheenRoughnessMapTransform))), p.clearcoat > 0 && (m.clearcoat.value = p.clearcoat, m.clearcoatRoughness.value = p.clearcoatRoughness, p.clearcoatMap && (m.clearcoatMap.value = p.clearcoatMap, t(p.clearcoatMap, m.clearcoatMapTransform)), p.clearcoatRoughnessMap && (m.clearcoatRoughnessMap.value = p.clearcoatRoughnessMap, t(p.clearcoatRoughnessMap, m.clearcoatRoughnessMapTransform)), p.clearcoatNormalMap && (m.clearcoatNormalMap.value = p.clearcoatNormalMap, t(p.clearcoatNormalMap, m.clearcoatNormalMapTransform), m.clearcoatNormalScale.value.copy(p.clearcoatNormalScale), p.side === on && m.clearcoatNormalScale.value.negate())), p.dispersion > 0 && (m.dispersion.value = p.dispersion), p.iridescence > 0 && (m.iridescence.value = p.iridescence, m.iridescenceIOR.value = p.iridescenceIOR, m.iridescenceThicknessMinimum.value = p.iridescenceThicknessRange[0], m.iridescenceThicknessMaximum.value = p.iridescenceThicknessRange[1], p.iridescenceMap && (m.iridescenceMap.value = p.iridescenceMap, t(p.iridescenceMap, m.iridescenceMapTransform)), p.iridescenceThicknessMap && (m.iridescenceThicknessMap.value = p.iridescenceThicknessMap, t(p.iridescenceThicknessMap, m.iridescenceThicknessMapTransform))), p.transmission > 0 && (m.transmission.value = p.transmission, m.transmissionSamplerMap.value = x.texture, m.transmissionSamplerSize.value.set(x.width, x.height), p.transmissionMap && (m.transmissionMap.value = p.transmissionMap, t(p.transmissionMap, m.transmissionMapTransform)), m.thickness.value = p.thickness, p.thicknessMap && (m.thicknessMap.value = p.thicknessMap, t(p.thicknessMap, m.thicknessMapTransform)), m.attenuationDistance.value = p.attenuationDistance, m.attenuationColor.value.copy(p.attenuationColor)), p.anisotropy > 0 && (m.anisotropyVector.value.set(p.anisotropy * Math.cos(p.anisotropyRotation), p.anisotropy * Math.sin(p.anisotropyRotation)), p.anisotropyMap && (m.anisotropyMap.value = p.anisotropyMap, t(p.anisotropyMap, m.anisotropyMapTransform))), m.specularIntensity.value = p.specularIntensity, m.specularColor.value.copy(p.specularColor), p.specularColorMap && (m.specularColorMap.value = p.specularColorMap, t(p.specularColorMap, m.specularColorMapTransform)), p.specularIntensityMap && (m.specularIntensityMap.value = p.specularIntensityMap, t(p.specularIntensityMap, m.specularIntensityMapTransform));
|
|
36383
36407
|
}
|
|
36384
36408
|
function g(m, p) {
|
|
36385
36409
|
p.matcap && (m.matcap.value = p.matcap);
|
|
@@ -37258,9 +37282,9 @@ class OE {
|
|
|
37258
37282
|
else if (ft.get("WEBGL_multi_draw"))
|
|
37259
37283
|
Tt.renderMultiDraw(O._multiDrawStarts, O._multiDrawCounts, O._multiDrawCount);
|
|
37260
37284
|
else {
|
|
37261
|
-
const De = O._multiDrawStarts, gt = O._multiDrawCounts, lt = O._multiDrawCount,
|
|
37262
|
-
for (let
|
|
37263
|
-
Rs.setValue(I, "_gl_DrawID",
|
|
37285
|
+
const De = O._multiDrawStarts, gt = O._multiDrawCounts, lt = O._multiDrawCount, _n = Ce ? j.get(Ce).bytesPerElement : 1, Rs = y.get(z).currentProgram.getUniforms();
|
|
37286
|
+
for (let Sn = 0; Sn < lt; Sn++)
|
|
37287
|
+
Rs.setValue(I, "_gl_DrawID", Sn), Tt.render(De[Sn] / _n, gt[Sn]);
|
|
37264
37288
|
}
|
|
37265
37289
|
else if (O.isInstancedMesh)
|
|
37266
37290
|
Tt.renderInstances($e, It, O.count);
|
|
@@ -37271,7 +37295,7 @@ class OE {
|
|
|
37271
37295
|
Tt.render($e, It);
|
|
37272
37296
|
};
|
|
37273
37297
|
function ru(E, U, G) {
|
|
37274
|
-
E.transparent === !0 && E.side === Ei && E.forceSinglePass === !1 ? (E.side =
|
|
37298
|
+
E.transparent === !0 && E.side === Ei && E.forceSinglePass === !1 ? (E.side = on, E.needsUpdate = !0, ha(E, U, G), E.side = ki, E.needsUpdate = !0, ha(E, U, G), E.side = Ei) : ha(E, U, G);
|
|
37275
37299
|
}
|
|
37276
37300
|
this.compile = function(E, U, G = null) {
|
|
37277
37301
|
G === null && (G = E), S = pe.get(G), S.init(U), A.push(S), G.traverseVisible(function(O) {
|
|
@@ -37415,8 +37439,8 @@ class OE {
|
|
|
37415
37439
|
for (let yt = 0, It = U.length; yt < It; yt++) {
|
|
37416
37440
|
const Dt = U[yt], { object: Tt, geometry: De, material: gt, group: lt } = Dt;
|
|
37417
37441
|
if (gt.side === Ei && Tt.layers.test(z.layers)) {
|
|
37418
|
-
const
|
|
37419
|
-
gt.side =
|
|
37442
|
+
const _n = gt.side;
|
|
37443
|
+
gt.side = on, gt.needsUpdate = !0, du(Tt, G, z, De, gt, lt), gt.side = _n, gt.needsUpdate = !0, $e = !0;
|
|
37420
37444
|
}
|
|
37421
37445
|
}
|
|
37422
37446
|
$e === !0 && (L.updateMultisampleRenderTarget(me), L.updateRenderTargetMipmap(me));
|
|
@@ -37432,7 +37456,7 @@ class OE {
|
|
|
37432
37456
|
}
|
|
37433
37457
|
}
|
|
37434
37458
|
function du(E, U, G, z, O, me) {
|
|
37435
|
-
E.onBeforeRender(_, U, G, z, O, me), E.modelViewMatrix.multiplyMatrices(G.matrixWorldInverse, E.matrixWorld), E.normalMatrix.getNormalMatrix(E.modelViewMatrix), O.onBeforeRender(_, U, G, z, E, me), O.transparent === !0 && O.side === Ei && O.forceSinglePass === !1 ? (O.side =
|
|
37459
|
+
E.onBeforeRender(_, U, G, z, O, me), E.modelViewMatrix.multiplyMatrices(G.matrixWorldInverse, E.matrixWorld), E.normalMatrix.getNormalMatrix(E.modelViewMatrix), O.onBeforeRender(_, U, G, z, E, me), O.transparent === !0 && O.side === Ei && O.forceSinglePass === !1 ? (O.side = on, O.needsUpdate = !0, _.renderBufferDirect(G, U, z, O, E, me), O.side = ki, O.needsUpdate = !0, _.renderBufferDirect(G, U, z, O, E, me), O.side = Ei) : _.renderBufferDirect(G, U, z, O, E, me), E.onAfterRender(_, U, G, z, O, me);
|
|
37436
37460
|
}
|
|
37437
37461
|
function ha(E, U, G) {
|
|
37438
37462
|
U.isScene !== !0 && (U = xt);
|
|
@@ -37471,18 +37495,18 @@ class OE {
|
|
|
37471
37495
|
}
|
|
37472
37496
|
let lt = !1;
|
|
37473
37497
|
z.version === De.__version ? (De.needsLights && De.lightsStateVersion !== gt.state.version || De.outputColorSpace !== be || O.isBatchedMesh && De.batching === !1 || !O.isBatchedMesh && De.batching === !0 || O.isBatchedMesh && De.batchingColor === !0 && O.colorTexture === null || O.isBatchedMesh && De.batchingColor === !1 && O.colorTexture !== null || O.isInstancedMesh && De.instancing === !1 || !O.isInstancedMesh && De.instancing === !0 || O.isSkinnedMesh && De.skinning === !1 || !O.isSkinnedMesh && De.skinning === !0 || O.isInstancedMesh && De.instancingColor === !0 && O.instanceColor === null || O.isInstancedMesh && De.instancingColor === !1 && O.instanceColor !== null || O.isInstancedMesh && De.instancingMorph === !0 && O.morphTexture === null || O.isInstancedMesh && De.instancingMorph === !1 && O.morphTexture !== null || De.envMap !== Ce || z.fog === !0 && De.fog !== me || De.numClippingPlanes !== void 0 && (De.numClippingPlanes !== Ee.numPlanes || De.numIntersection !== Ee.numIntersection) || De.vertexAlphas !== ke || De.vertexTangents !== Le || De.morphTargets !== Ie || De.morphNormals !== $e || De.morphColors !== yt || De.toneMapping !== It || De.morphTargetsCount !== Tt) && (lt = !0) : (lt = !0, De.__version = z.version);
|
|
37474
|
-
let
|
|
37475
|
-
lt === !0 && (
|
|
37476
|
-
let Rs = !1,
|
|
37477
|
-
const At =
|
|
37478
|
-
if (Ae.useProgram(
|
|
37498
|
+
let _n = De.currentProgram;
|
|
37499
|
+
lt === !0 && (_n = ha(z, U, O));
|
|
37500
|
+
let Rs = !1, Sn = !1, vr = !1;
|
|
37501
|
+
const At = _n.getUniforms(), dn = De.uniforms;
|
|
37502
|
+
if (Ae.useProgram(_n.program) && (Rs = !0, Sn = !0, vr = !0), z.id !== q && (q = z.id, Sn = !0), Rs || K !== E) {
|
|
37479
37503
|
Ae.buffers.depth.getReversed() && E.reversedDepth !== !0 && (E._reversedDepth = !0, E.updateProjectionMatrix()), At.setValue(I, "projectionMatrix", E.projectionMatrix), At.setValue(I, "viewMatrix", E.matrixWorldInverse);
|
|
37480
|
-
const
|
|
37481
|
-
|
|
37504
|
+
const un = At.map.cameraPosition;
|
|
37505
|
+
un !== void 0 && un.setValue(I, at.setFromMatrixPosition(E.matrixWorld)), Mt.logarithmicDepthBuffer && At.setValue(
|
|
37482
37506
|
I,
|
|
37483
37507
|
"logDepthBufFC",
|
|
37484
37508
|
2 / (Math.log(E.far + 1) / Math.LN2)
|
|
37485
|
-
), (z.isMeshPhongMaterial || z.isMeshToonMaterial || z.isMeshLambertMaterial || z.isMeshBasicMaterial || z.isMeshStandardMaterial || z.isShaderMaterial) && At.setValue(I, "isOrthographic", E.isOrthographicCamera === !0), K !== E && (K = E,
|
|
37509
|
+
), (z.isMeshPhongMaterial || z.isMeshToonMaterial || z.isMeshLambertMaterial || z.isMeshBasicMaterial || z.isMeshStandardMaterial || z.isShaderMaterial) && At.setValue(I, "isOrthographic", E.isOrthographicCamera === !0), K !== E && (K = E, Sn = !0, vr = !0);
|
|
37486
37510
|
}
|
|
37487
37511
|
if (De.needsLights && (gt.state.directionalShadowMap.length > 0 && At.setValue(I, "directionalShadowMap", gt.state.directionalShadowMap, L), gt.state.spotShadowMap.length > 0 && At.setValue(I, "spotShadowMap", gt.state.spotShadowMap, L), gt.state.pointShadowMap.length > 0 && At.setValue(I, "pointShadowMap", gt.state.pointShadowMap, L)), O.isSkinnedMesh) {
|
|
37488
37512
|
At.setOptional(I, O, "bindMatrix"), At.setOptional(I, O, "bindMatrixInverse");
|
|
@@ -37491,14 +37515,14 @@ class OE {
|
|
|
37491
37515
|
}
|
|
37492
37516
|
O.isBatchedMesh && (At.setOptional(I, O, "batchingTexture"), At.setValue(I, "batchingTexture", O._matricesTexture, L), At.setOptional(I, O, "batchingIdTexture"), At.setValue(I, "batchingIdTexture", O._indirectTexture, L), At.setOptional(I, O, "batchingColorTexture"), O._colorsTexture !== null && At.setValue(I, "batchingColorTexture", O._colorsTexture, L));
|
|
37493
37517
|
const An = G.morphAttributes;
|
|
37494
|
-
if ((An.position !== void 0 || An.normal !== void 0 || An.color !== void 0) && We.update(O, G,
|
|
37518
|
+
if ((An.position !== void 0 || An.normal !== void 0 || An.color !== void 0) && We.update(O, G, _n), (Sn || De.receiveShadow !== O.receiveShadow) && (De.receiveShadow = O.receiveShadow, At.setValue(I, "receiveShadow", O.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (dn.envMap.value = Ce, dn.flipEnvMap.value = Ce.isCubeTexture && Ce.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && U.environment !== null && (dn.envMapIntensity.value = U.environmentIntensity), dn.dfgLUT !== void 0 && (dn.dfgLUT.value = NE()), Sn && (At.setValue(I, "toneMappingExposure", _.toneMappingExposure), De.needsLights && eg(dn, vr), me && z.fog === !0 && Ue.refreshFogUniforms(dn, me), Ue.refreshMaterialUniforms(dn, z, Fe, Be, S.state.transmissionRenderTarget[E.id]), to.upload(I, uu(De), dn, L)), z.isShaderMaterial && z.uniformsNeedUpdate === !0 && (to.upload(I, uu(De), dn, L), z.uniformsNeedUpdate = !1), z.isSpriteMaterial && At.setValue(I, "center", O.center), At.setValue(I, "modelViewMatrix", O.modelViewMatrix), At.setValue(I, "normalMatrix", O.normalMatrix), At.setValue(I, "modelMatrix", O.matrixWorld), z.isShaderMaterial || z.isRawShaderMaterial) {
|
|
37495
37519
|
const sn = z.uniformsGroups;
|
|
37496
|
-
for (let
|
|
37497
|
-
const ss = sn[
|
|
37498
|
-
se.update(ss,
|
|
37520
|
+
for (let un = 0, Wo = sn.length; un < Wo; un++) {
|
|
37521
|
+
const ss = sn[un];
|
|
37522
|
+
se.update(ss, _n), se.bind(ss, _n);
|
|
37499
37523
|
}
|
|
37500
37524
|
}
|
|
37501
|
-
return
|
|
37525
|
+
return _n;
|
|
37502
37526
|
}
|
|
37503
37527
|
function eg(E, U) {
|
|
37504
37528
|
E.ambientLightColor.needsUpdate = U, E.lightProbe.needsUpdate = U, E.directionalLights.needsUpdate = U, E.directionalLightShadows.needsUpdate = U, E.pointLights.needsUpdate = U, E.pointLightShadows.needsUpdate = U, E.spotLights.needsUpdate = U, E.spotLightShadows.needsUpdate = U, E.rectAreaLights.needsUpdate = U, E.hemisphereLights.needsUpdate = U;
|
|
@@ -37623,24 +37647,24 @@ class OE {
|
|
|
37623
37647
|
const Tt = oe.convert(U.format), De = oe.convert(U.type);
|
|
37624
37648
|
let gt;
|
|
37625
37649
|
U.isData3DTexture ? (L.setTexture3D(U, 0), gt = I.TEXTURE_3D) : U.isDataArrayTexture || U.isCompressedArrayTexture ? (L.setTexture2DArray(U, 0), gt = I.TEXTURE_2D_ARRAY) : (L.setTexture2D(U, 0), gt = I.TEXTURE_2D), I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL, U.flipY), I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL, U.premultiplyAlpha), I.pixelStorei(I.UNPACK_ALIGNMENT, U.unpackAlignment);
|
|
37626
|
-
const lt = I.getParameter(I.UNPACK_ROW_LENGTH),
|
|
37650
|
+
const lt = I.getParameter(I.UNPACK_ROW_LENGTH), _n = I.getParameter(I.UNPACK_IMAGE_HEIGHT), Rs = I.getParameter(I.UNPACK_SKIP_PIXELS), Sn = I.getParameter(I.UNPACK_SKIP_ROWS), vr = I.getParameter(I.UNPACK_SKIP_IMAGES);
|
|
37627
37651
|
I.pixelStorei(I.UNPACK_ROW_LENGTH, Dt.width), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Dt.height), I.pixelStorei(I.UNPACK_SKIP_PIXELS, ke), I.pixelStorei(I.UNPACK_SKIP_ROWS, Le), I.pixelStorei(I.UNPACK_SKIP_IMAGES, Ie);
|
|
37628
|
-
const At = E.isDataArrayTexture || E.isData3DTexture,
|
|
37652
|
+
const At = E.isDataArrayTexture || E.isData3DTexture, dn = U.isDataArrayTexture || U.isData3DTexture;
|
|
37629
37653
|
if (E.isDepthTexture) {
|
|
37630
|
-
const An = y.get(E), sn = y.get(U),
|
|
37631
|
-
Ae.bindFramebuffer(I.READ_FRAMEBUFFER,
|
|
37654
|
+
const An = y.get(E), sn = y.get(U), un = y.get(An.__renderTarget), Wo = y.get(sn.__renderTarget);
|
|
37655
|
+
Ae.bindFramebuffer(I.READ_FRAMEBUFFER, un.__webglFramebuffer), Ae.bindFramebuffer(I.DRAW_FRAMEBUFFER, Wo.__webglFramebuffer);
|
|
37632
37656
|
for (let ss = 0; ss < Ce; ss++)
|
|
37633
37657
|
At && (I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, y.get(E).__webglTexture, O, Ie + ss), I.framebufferTextureLayer(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, y.get(U).__webglTexture, me, It + ss)), I.blitFramebuffer(ke, Le, xe, be, $e, yt, xe, be, I.DEPTH_BUFFER_BIT, I.NEAREST);
|
|
37634
37658
|
Ae.bindFramebuffer(I.READ_FRAMEBUFFER, null), Ae.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
|
|
37635
37659
|
} else if (O !== 0 || E.isRenderTargetTexture || y.has(E)) {
|
|
37636
37660
|
const An = y.get(E), sn = y.get(U);
|
|
37637
37661
|
Ae.bindFramebuffer(I.READ_FRAMEBUFFER, ig), Ae.bindFramebuffer(I.DRAW_FRAMEBUFFER, sg);
|
|
37638
|
-
for (let
|
|
37639
|
-
At ? I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, An.__webglTexture, O, Ie +
|
|
37662
|
+
for (let un = 0; un < Ce; un++)
|
|
37663
|
+
At ? I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, An.__webglTexture, O, Ie + un) : I.framebufferTexture2D(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, An.__webglTexture, O), dn ? I.framebufferTextureLayer(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, sn.__webglTexture, me, It + un) : I.framebufferTexture2D(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, sn.__webglTexture, me), O !== 0 ? I.blitFramebuffer(ke, Le, xe, be, $e, yt, xe, be, I.COLOR_BUFFER_BIT, I.NEAREST) : dn ? I.copyTexSubImage3D(gt, me, $e, yt, It + un, ke, Le, xe, be) : I.copyTexSubImage2D(gt, me, $e, yt, ke, Le, xe, be);
|
|
37640
37664
|
Ae.bindFramebuffer(I.READ_FRAMEBUFFER, null), Ae.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
|
|
37641
37665
|
} else
|
|
37642
|
-
|
|
37643
|
-
I.pixelStorei(I.UNPACK_ROW_LENGTH, lt), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT,
|
|
37666
|
+
dn ? E.isDataTexture || E.isData3DTexture ? I.texSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, De, Dt.data) : U.isCompressedArrayTexture ? I.compressedTexSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, Dt.data) : I.texSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, De, Dt) : E.isDataTexture ? I.texSubImage2D(I.TEXTURE_2D, me, $e, yt, xe, be, Tt, De, Dt.data) : E.isCompressedTexture ? I.compressedTexSubImage2D(I.TEXTURE_2D, me, $e, yt, Dt.width, Dt.height, Tt, Dt.data) : I.texSubImage2D(I.TEXTURE_2D, me, $e, yt, xe, be, Tt, De, Dt);
|
|
37667
|
+
I.pixelStorei(I.UNPACK_ROW_LENGTH, lt), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, _n), I.pixelStorei(I.UNPACK_SKIP_PIXELS, Rs), I.pixelStorei(I.UNPACK_SKIP_ROWS, Sn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, vr), me === 0 && U.generateMipmaps && I.generateMipmap(gt), Ae.unbindTexture();
|
|
37644
37668
|
}, this.initRenderTarget = function(E) {
|
|
37645
37669
|
y.get(E).__webglFramebuffer === void 0 && L.setupRenderTarget(E);
|
|
37646
37670
|
}, this.initTexture = function(E) {
|
|
@@ -38222,7 +38246,7 @@ class Do {
|
|
|
38222
38246
|
uPulseSpeed: { value: 2 }
|
|
38223
38247
|
},
|
|
38224
38248
|
transparent: !0,
|
|
38225
|
-
side:
|
|
38249
|
+
side: on,
|
|
38226
38250
|
blending: Ml,
|
|
38227
38251
|
depthWrite: !1
|
|
38228
38252
|
}), this.glowMesh = new $n(n, this.glowMaterial), this.scene.add(this.glowMesh);
|
|
@@ -38604,7 +38628,7 @@ class Uo {
|
|
|
38604
38628
|
this.hasAcquired && (ni.release(), this.hasAcquired = !1);
|
|
38605
38629
|
}
|
|
38606
38630
|
}
|
|
38607
|
-
const
|
|
38631
|
+
const fn = {
|
|
38608
38632
|
default: {
|
|
38609
38633
|
primary: "#6366f1",
|
|
38610
38634
|
secondary: "#8b5cf6",
|
|
@@ -38725,8 +38749,19 @@ const xn = {
|
|
|
38725
38749
|
// Deep pure red
|
|
38726
38750
|
highlight: "#ff2030"
|
|
38727
38751
|
// Bright red
|
|
38728
|
-
}
|
|
38729
|
-
|
|
38752
|
+
},
|
|
38753
|
+
"tangerine-neon": {
|
|
38754
|
+
primary: "#F97316",
|
|
38755
|
+
secondary: "#EF4444",
|
|
38756
|
+
accent: "#EC4899",
|
|
38757
|
+
glow: "#F97316",
|
|
38758
|
+
atmosphere: "#FB923C",
|
|
38759
|
+
depth: "#C2410C",
|
|
38760
|
+
// Deep burnt orange
|
|
38761
|
+
highlight: "#FDBA74"
|
|
38762
|
+
// Neon orange glow
|
|
38763
|
+
}
|
|
38764
|
+
}, pn = {
|
|
38730
38765
|
indigo: {
|
|
38731
38766
|
primary: "#3730a3",
|
|
38732
38767
|
secondary: "#4338ca",
|
|
@@ -38836,147 +38871,170 @@ const xn = {
|
|
|
38836
38871
|
// Deep dark red
|
|
38837
38872
|
highlight: "#ff8a80"
|
|
38838
38873
|
// Light red
|
|
38874
|
+
},
|
|
38875
|
+
"tangerine-neon": {
|
|
38876
|
+
primary: "#EA580C",
|
|
38877
|
+
secondary: "#F97316",
|
|
38878
|
+
accent: "#FB923C",
|
|
38879
|
+
glow: "#EA580C",
|
|
38880
|
+
atmosphere: "#F97316",
|
|
38881
|
+
depth: "#9A3412",
|
|
38882
|
+
// Deep orange-brown
|
|
38883
|
+
highlight: "#FDBA74"
|
|
38884
|
+
// Warm neon orange
|
|
38839
38885
|
}
|
|
38840
38886
|
};
|
|
38841
38887
|
function oM(i, e = "dark") {
|
|
38842
|
-
const t = e === "dark" ?
|
|
38888
|
+
const t = e === "dark" ? fn : pn;
|
|
38843
38889
|
return t[i] || t[Object.keys(t)[0]];
|
|
38844
38890
|
}
|
|
38845
38891
|
function cM(i = "dark") {
|
|
38846
|
-
return Object.keys(i === "dark" ?
|
|
38892
|
+
return Object.keys(i === "dark" ? fn : pn);
|
|
38847
38893
|
}
|
|
38848
38894
|
const ea = {
|
|
38849
38895
|
default: {
|
|
38850
38896
|
dark: {
|
|
38851
|
-
colors:
|
|
38897
|
+
colors: fn.default,
|
|
38852
38898
|
glowIntensity: 1.2,
|
|
38853
38899
|
idleGlowMultiplier: 0.6
|
|
38854
38900
|
},
|
|
38855
38901
|
light: {
|
|
38856
|
-
colors:
|
|
38902
|
+
colors: pn.indigo,
|
|
38857
38903
|
glowIntensity: 1.8,
|
|
38858
38904
|
idleGlowMultiplier: 1.2
|
|
38859
38905
|
}
|
|
38860
38906
|
},
|
|
38861
38907
|
emerald: {
|
|
38862
38908
|
dark: {
|
|
38863
|
-
colors:
|
|
38909
|
+
colors: fn.emerald,
|
|
38864
38910
|
glowIntensity: 1.2,
|
|
38865
38911
|
idleGlowMultiplier: 0.6
|
|
38866
38912
|
},
|
|
38867
38913
|
light: {
|
|
38868
|
-
colors:
|
|
38914
|
+
colors: pn.teal,
|
|
38869
38915
|
glowIntensity: 1.8,
|
|
38870
38916
|
idleGlowMultiplier: 1.2
|
|
38871
38917
|
}
|
|
38872
38918
|
},
|
|
38873
38919
|
rose: {
|
|
38874
38920
|
dark: {
|
|
38875
|
-
colors:
|
|
38921
|
+
colors: fn.rose,
|
|
38876
38922
|
glowIntensity: 1.2,
|
|
38877
38923
|
idleGlowMultiplier: 0.6
|
|
38878
38924
|
},
|
|
38879
38925
|
light: {
|
|
38880
|
-
colors:
|
|
38926
|
+
colors: pn.pink,
|
|
38881
38927
|
glowIntensity: 1.8,
|
|
38882
38928
|
idleGlowMultiplier: 1.2
|
|
38883
38929
|
}
|
|
38884
38930
|
},
|
|
38885
38931
|
amber: {
|
|
38886
38932
|
dark: {
|
|
38887
|
-
colors:
|
|
38933
|
+
colors: fn.amber,
|
|
38888
38934
|
glowIntensity: 1.2,
|
|
38889
38935
|
idleGlowMultiplier: 0.6
|
|
38890
38936
|
},
|
|
38891
38937
|
light: {
|
|
38892
|
-
colors:
|
|
38938
|
+
colors: pn.orange,
|
|
38893
38939
|
glowIntensity: 1.8,
|
|
38894
38940
|
idleGlowMultiplier: 1.2
|
|
38895
38941
|
}
|
|
38896
38942
|
},
|
|
38897
38943
|
cyan: {
|
|
38898
38944
|
dark: {
|
|
38899
|
-
colors:
|
|
38945
|
+
colors: fn.cyan,
|
|
38900
38946
|
glowIntensity: 1.2,
|
|
38901
38947
|
idleGlowMultiplier: 0.6
|
|
38902
38948
|
},
|
|
38903
38949
|
light: {
|
|
38904
|
-
colors:
|
|
38950
|
+
colors: pn.blue,
|
|
38905
38951
|
glowIntensity: 1.8,
|
|
38906
38952
|
idleGlowMultiplier: 1.2
|
|
38907
38953
|
}
|
|
38908
38954
|
},
|
|
38909
38955
|
purple: {
|
|
38910
38956
|
dark: {
|
|
38911
|
-
colors:
|
|
38957
|
+
colors: fn.purple,
|
|
38912
38958
|
glowIntensity: 1.2,
|
|
38913
38959
|
idleGlowMultiplier: 0.6
|
|
38914
38960
|
},
|
|
38915
38961
|
light: {
|
|
38916
|
-
colors:
|
|
38962
|
+
colors: pn.violet,
|
|
38917
38963
|
glowIntensity: 1.8,
|
|
38918
38964
|
idleGlowMultiplier: 1.2
|
|
38919
38965
|
}
|
|
38920
38966
|
},
|
|
38921
38967
|
blue: {
|
|
38922
38968
|
dark: {
|
|
38923
|
-
colors:
|
|
38969
|
+
colors: fn.blue,
|
|
38924
38970
|
glowIntensity: 1.2,
|
|
38925
38971
|
idleGlowMultiplier: 0.6
|
|
38926
38972
|
},
|
|
38927
38973
|
light: {
|
|
38928
|
-
colors:
|
|
38974
|
+
colors: pn.blue,
|
|
38929
38975
|
glowIntensity: 1.8,
|
|
38930
38976
|
idleGlowMultiplier: 1.2
|
|
38931
38977
|
}
|
|
38932
38978
|
},
|
|
38933
38979
|
white: {
|
|
38934
38980
|
dark: {
|
|
38935
|
-
colors:
|
|
38981
|
+
colors: fn.white,
|
|
38936
38982
|
glowIntensity: 1.2,
|
|
38937
38983
|
idleGlowMultiplier: 0.6
|
|
38938
38984
|
},
|
|
38939
38985
|
light: {
|
|
38940
|
-
colors:
|
|
38986
|
+
colors: pn.silver,
|
|
38941
38987
|
glowIntensity: 1.8,
|
|
38942
38988
|
idleGlowMultiplier: 1.2
|
|
38943
38989
|
}
|
|
38944
38990
|
},
|
|
38945
38991
|
black: {
|
|
38946
38992
|
dark: {
|
|
38947
|
-
colors:
|
|
38993
|
+
colors: fn.black,
|
|
38948
38994
|
glowIntensity: 1.2,
|
|
38949
38995
|
idleGlowMultiplier: 0.6
|
|
38950
38996
|
},
|
|
38951
38997
|
light: {
|
|
38952
|
-
colors:
|
|
38998
|
+
colors: pn.charcoal,
|
|
38953
38999
|
glowIntensity: 1.8,
|
|
38954
39000
|
idleGlowMultiplier: 1.2
|
|
38955
39001
|
}
|
|
38956
39002
|
},
|
|
38957
39003
|
tangerine: {
|
|
38958
39004
|
dark: {
|
|
38959
|
-
colors:
|
|
39005
|
+
colors: fn.tangerine,
|
|
38960
39006
|
glowIntensity: 1.2,
|
|
38961
39007
|
idleGlowMultiplier: 0.6
|
|
38962
39008
|
},
|
|
38963
39009
|
light: {
|
|
38964
|
-
colors:
|
|
39010
|
+
colors: pn.tangerine,
|
|
38965
39011
|
glowIntensity: 1.8,
|
|
38966
39012
|
idleGlowMultiplier: 1.2
|
|
38967
39013
|
}
|
|
38968
39014
|
},
|
|
38969
39015
|
ember: {
|
|
38970
39016
|
dark: {
|
|
38971
|
-
colors:
|
|
39017
|
+
colors: fn.ember,
|
|
38972
39018
|
glowIntensity: 1.2,
|
|
38973
39019
|
idleGlowMultiplier: 0.6
|
|
38974
39020
|
},
|
|
38975
39021
|
light: {
|
|
38976
|
-
colors:
|
|
39022
|
+
colors: pn.ember,
|
|
38977
39023
|
glowIntensity: 1.8,
|
|
38978
39024
|
idleGlowMultiplier: 1.2
|
|
38979
39025
|
}
|
|
39026
|
+
},
|
|
39027
|
+
"tangerine-neon": {
|
|
39028
|
+
dark: {
|
|
39029
|
+
colors: fn["tangerine-neon"],
|
|
39030
|
+
glowIntensity: 1.4,
|
|
39031
|
+
idleGlowMultiplier: 0.7
|
|
39032
|
+
},
|
|
39033
|
+
light: {
|
|
39034
|
+
colors: pn["tangerine-neon"],
|
|
39035
|
+
glowIntensity: 2,
|
|
39036
|
+
idleGlowMultiplier: 1.3
|
|
39037
|
+
}
|
|
38980
39038
|
}
|
|
38981
39039
|
}, lM = Object.fromEntries(
|
|
38982
39040
|
Object.entries(ea).map(([i, e]) => [i, e.dark])
|
|
@@ -41691,7 +41749,7 @@ export {
|
|
|
41691
41749
|
Uo as SoundManager,
|
|
41692
41750
|
hM as applyTheme,
|
|
41693
41751
|
fM as clearConfigCache,
|
|
41694
|
-
|
|
41752
|
+
fn as darkPresets,
|
|
41695
41753
|
lM as darkThemes,
|
|
41696
41754
|
zo as fetchWidgetConfig,
|
|
41697
41755
|
oM as getColorPreset,
|
|
@@ -41699,7 +41757,7 @@ export {
|
|
|
41699
41757
|
ca as getTheme,
|
|
41700
41758
|
uM as getThemeNames,
|
|
41701
41759
|
Vo as isDomainAllowed,
|
|
41702
|
-
|
|
41760
|
+
pn as lightPresets,
|
|
41703
41761
|
dM as lightThemes,
|
|
41704
41762
|
ea as themes
|
|
41705
41763
|
};
|