hanc-webrtc-widgets 2.7.1 → 2.7.2
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.
|
@@ -591,7 +591,7 @@ function j(g) {
|
|
|
591
591
|
* Copyright 2017 Google LLC
|
|
592
592
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
593
593
|
*/
|
|
594
|
-
function
|
|
594
|
+
function ge(g) {
|
|
595
595
|
return j({ ...g, state: !0, attribute: !1 });
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
@@ -3535,7 +3535,7 @@ const Id = /* @__PURE__ */ Y.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3535
3535
|
no: 1,
|
|
3536
3536
|
name: "kind",
|
|
3537
3537
|
kind: "enum",
|
|
3538
|
-
T: Y.getEnumType(
|
|
3538
|
+
T: Y.getEnumType(VA)
|
|
3539
3539
|
}, {
|
|
3540
3540
|
no: 4,
|
|
3541
3541
|
name: "participant_identity",
|
|
@@ -3632,7 +3632,7 @@ const Id = /* @__PURE__ */ Y.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3632
3632
|
kind: "scalar",
|
|
3633
3633
|
T: 9
|
|
3634
3634
|
/* ScalarType.STRING */
|
|
3635
|
-
}]),
|
|
3635
|
+
}]), VA = /* @__PURE__ */ Y.makeEnum("livekit.DataPacket.Kind", [{
|
|
3636
3636
|
no: 0,
|
|
3637
3637
|
name: "RELIABLE"
|
|
3638
3638
|
}, {
|
|
@@ -11892,7 +11892,7 @@ class bl extends lg.EventEmitter {
|
|
|
11892
11892
|
event: t
|
|
11893
11893
|
}));
|
|
11894
11894
|
}, this.handleBufferedAmountLow = (t) => {
|
|
11895
|
-
const I = t.currentTarget.maxRetransmits === 0 ?
|
|
11895
|
+
const I = t.currentTarget.maxRetransmits === 0 ? VA.LOSSY : VA.RELIABLE;
|
|
11896
11896
|
this.updateAndEmitDCBufferStatus(I);
|
|
11897
11897
|
}, this.handleDisconnect = (t, i) => {
|
|
11898
11898
|
if (this._isClosed)
|
|
@@ -11924,13 +11924,13 @@ class bl extends lg.EventEmitter {
|
|
|
11924
11924
|
}, this.isBufferStatusLow = (t) => {
|
|
11925
11925
|
const i = this.dataChannelForKind(t);
|
|
11926
11926
|
if (i)
|
|
11927
|
-
return t ===
|
|
11927
|
+
return t === VA.RELIABLE && this.reliableMessageBuffer.alignBufferedAmount(i.bufferedAmount), i.bufferedAmount <= i.bufferedAmountLowThreshold;
|
|
11928
11928
|
}, this.handleBrowserOnLine = () => {
|
|
11929
11929
|
this.client.currentState === ke.RECONNECTING && (this.clearReconnectTimeout(), this.attemptReconnect(Oi.RR_SIGNAL_DISCONNECTED));
|
|
11930
11930
|
}, this.log = vg((e = A.loggerName) !== null && e !== void 0 ? e : Zt.Engine), this.loggerOptions = {
|
|
11931
11931
|
loggerName: A.loggerName,
|
|
11932
11932
|
loggerContextCb: () => this.logContext
|
|
11933
|
-
}, this.client = new Is(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new ft(), this.dataProcessLock = new ft(), this.dcBufferStatus = /* @__PURE__ */ new Map([[
|
|
11933
|
+
}, this.client = new Is(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new ft(), this.dataProcessLock = new ft(), this.dcBufferStatus = /* @__PURE__ */ new Map([[VA.LOSSY, !0], [VA.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(QA.ParticipantUpdate, t), this.client.onConnectionQuality = (t) => this.emit(QA.ConnectionQualityUpdate, t), this.client.onRoomUpdate = (t) => this.emit(QA.RoomUpdate, t), this.client.onSubscriptionError = (t) => this.emit(QA.SubscriptionError, t), this.client.onSubscriptionPermissionUpdate = (t) => this.emit(QA.SubscriptionPermissionUpdate, t), this.client.onSpeakersChanged = (t) => this.emit(QA.SpeakersChanged, t), this.client.onStreamStateUpdate = (t) => this.emit(QA.StreamStateChanged, t), this.client.onRequestResponse = (t) => this.emit(QA.SignalRequestResponse, t);
|
|
11934
11934
|
}
|
|
11935
11935
|
/** @internal */
|
|
11936
11936
|
get logContext() {
|
|
@@ -12315,7 +12315,7 @@ class bl extends lg.EventEmitter {
|
|
|
12315
12315
|
return S(this, void 0, void 0, function* () {
|
|
12316
12316
|
const I = new xt({
|
|
12317
12317
|
destinationIdentities: [A],
|
|
12318
|
-
kind:
|
|
12318
|
+
kind: VA.RELIABLE,
|
|
12319
12319
|
value: {
|
|
12320
12320
|
case: "rpcResponse",
|
|
12321
12321
|
value: new wr({
|
|
@@ -12330,7 +12330,7 @@ class bl extends lg.EventEmitter {
|
|
|
12330
12330
|
})
|
|
12331
12331
|
}
|
|
12332
12332
|
});
|
|
12333
|
-
yield this.sendDataPacket(I,
|
|
12333
|
+
yield this.sendDataPacket(I, VA.RELIABLE);
|
|
12334
12334
|
});
|
|
12335
12335
|
}
|
|
12336
12336
|
/** @internal */
|
|
@@ -12338,7 +12338,7 @@ class bl extends lg.EventEmitter {
|
|
|
12338
12338
|
return S(this, void 0, void 0, function* () {
|
|
12339
12339
|
const t = new xt({
|
|
12340
12340
|
destinationIdentities: [A],
|
|
12341
|
-
kind:
|
|
12341
|
+
kind: VA.RELIABLE,
|
|
12342
12342
|
value: {
|
|
12343
12343
|
case: "rpcAck",
|
|
12344
12344
|
value: new pr({
|
|
@@ -12346,16 +12346,16 @@ class bl extends lg.EventEmitter {
|
|
|
12346
12346
|
})
|
|
12347
12347
|
}
|
|
12348
12348
|
});
|
|
12349
|
-
yield this.sendDataPacket(t,
|
|
12349
|
+
yield this.sendDataPacket(t, VA.RELIABLE);
|
|
12350
12350
|
});
|
|
12351
12351
|
}
|
|
12352
12352
|
/* @internal */
|
|
12353
12353
|
sendDataPacket(A, e) {
|
|
12354
12354
|
return S(this, void 0, void 0, function* () {
|
|
12355
|
-
yield this.ensurePublisherConnected(e), e ===
|
|
12355
|
+
yield this.ensurePublisherConnected(e), e === VA.RELIABLE && (A.sequence = this.reliableDataSequence, this.reliableDataSequence += 1);
|
|
12356
12356
|
const t = A.toBinary(), i = this.dataChannelForKind(e);
|
|
12357
12357
|
if (i) {
|
|
12358
|
-
if (e ===
|
|
12358
|
+
if (e === VA.RELIABLE && this.reliableMessageBuffer.push({
|
|
12359
12359
|
data: t,
|
|
12360
12360
|
sequence: A.sequence
|
|
12361
12361
|
}), this.attemptingReconnect)
|
|
@@ -12367,11 +12367,11 @@ class bl extends lg.EventEmitter {
|
|
|
12367
12367
|
}
|
|
12368
12368
|
resendReliableMessagesForResume(A) {
|
|
12369
12369
|
return S(this, void 0, void 0, function* () {
|
|
12370
|
-
yield this.ensurePublisherConnected(
|
|
12371
|
-
const e = this.dataChannelForKind(
|
|
12370
|
+
yield this.ensurePublisherConnected(VA.RELIABLE);
|
|
12371
|
+
const e = this.dataChannelForKind(VA.RELIABLE);
|
|
12372
12372
|
e && (this.reliableMessageBuffer.popToSequence(A), this.reliableMessageBuffer.getAll().forEach((t) => {
|
|
12373
12373
|
e.send(t.data);
|
|
12374
|
-
})), this.updateAndEmitDCBufferStatus(
|
|
12374
|
+
})), this.updateAndEmitDCBufferStatus(VA.RELIABLE);
|
|
12375
12375
|
});
|
|
12376
12376
|
}
|
|
12377
12377
|
waitForBufferStatusLow(A) {
|
|
@@ -12455,14 +12455,14 @@ class bl extends lg.EventEmitter {
|
|
|
12455
12455
|
}
|
|
12456
12456
|
dataChannelForKind(A, e) {
|
|
12457
12457
|
if (e) {
|
|
12458
|
-
if (A ===
|
|
12458
|
+
if (A === VA.LOSSY)
|
|
12459
12459
|
return this.lossyDCSub;
|
|
12460
|
-
if (A ===
|
|
12460
|
+
if (A === VA.RELIABLE)
|
|
12461
12461
|
return this.reliableDCSub;
|
|
12462
12462
|
} else {
|
|
12463
|
-
if (A ===
|
|
12463
|
+
if (A === VA.LOSSY)
|
|
12464
12464
|
return this.lossyDC;
|
|
12465
|
-
if (A ===
|
|
12465
|
+
if (A === VA.RELIABLE)
|
|
12466
12466
|
return this.reliableDC;
|
|
12467
12467
|
}
|
|
12468
12468
|
}
|
|
@@ -12511,7 +12511,7 @@ class bl extends lg.EventEmitter {
|
|
|
12511
12511
|
target: i
|
|
12512
12512
|
}));
|
|
12513
12513
|
};
|
|
12514
|
-
return e(this.dataChannelForKind(
|
|
12514
|
+
return e(this.dataChannelForKind(VA.LOSSY), Ot.PUBLISHER), e(this.dataChannelForKind(VA.RELIABLE), Ot.PUBLISHER), e(this.dataChannelForKind(VA.LOSSY, !0), Ot.SUBSCRIBER), e(this.dataChannelForKind(VA.RELIABLE, !0), Ot.SUBSCRIBER), A;
|
|
12515
12515
|
}
|
|
12516
12516
|
clearReconnectTimeout() {
|
|
12517
12517
|
this.reconnectTimeout && et.clearTimeout(this.reconnectTimeout);
|
|
@@ -13047,14 +13047,14 @@ class Ll {
|
|
|
13047
13047
|
value: C
|
|
13048
13048
|
}
|
|
13049
13049
|
});
|
|
13050
|
-
yield this.engine.sendDataPacket(a,
|
|
13050
|
+
yield this.engine.sendDataPacket(a, VA.RELIABLE);
|
|
13051
13051
|
let Q = 0;
|
|
13052
13052
|
const n = this.engine, s = new WritableStream({
|
|
13053
13053
|
// Implement the sink
|
|
13054
13054
|
write(d) {
|
|
13055
13055
|
return S(this, void 0, void 0, function* () {
|
|
13056
13056
|
for (const c of Ux(d, VB)) {
|
|
13057
|
-
yield n.waitForBufferStatusLow(
|
|
13057
|
+
yield n.waitForBufferStatusLow(VA.RELIABLE);
|
|
13058
13058
|
const h = new cQ({
|
|
13059
13059
|
content: c,
|
|
13060
13060
|
streamId: i,
|
|
@@ -13066,7 +13066,7 @@ class Ll {
|
|
|
13066
13066
|
value: h
|
|
13067
13067
|
}
|
|
13068
13068
|
});
|
|
13069
|
-
yield n.sendDataPacket(r,
|
|
13069
|
+
yield n.sendDataPacket(r, VA.RELIABLE), Q += 1;
|
|
13070
13070
|
}
|
|
13071
13071
|
});
|
|
13072
13072
|
},
|
|
@@ -13081,7 +13081,7 @@ class Ll {
|
|
|
13081
13081
|
value: d
|
|
13082
13082
|
}
|
|
13083
13083
|
});
|
|
13084
|
-
yield n.sendDataPacket(c,
|
|
13084
|
+
yield n.sendDataPacket(c, VA.RELIABLE);
|
|
13085
13085
|
});
|
|
13086
13086
|
},
|
|
13087
13087
|
abort(d) {
|
|
@@ -13158,7 +13158,7 @@ class Ll {
|
|
|
13158
13158
|
value: n
|
|
13159
13159
|
}
|
|
13160
13160
|
});
|
|
13161
|
-
yield this.engine.sendDataPacket(s,
|
|
13161
|
+
yield this.engine.sendDataPacket(s, VA.RELIABLE);
|
|
13162
13162
|
let B = 0;
|
|
13163
13163
|
const E = new ft(), d = this.engine, c = this.log, h = new WritableStream({
|
|
13164
13164
|
write(f) {
|
|
@@ -13168,7 +13168,7 @@ class Ll {
|
|
|
13168
13168
|
try {
|
|
13169
13169
|
for (; l < f.byteLength; ) {
|
|
13170
13170
|
const D = f.slice(l, l + VB);
|
|
13171
|
-
yield d.waitForBufferStatusLow(
|
|
13171
|
+
yield d.waitForBufferStatusLow(VA.RELIABLE);
|
|
13172
13172
|
const w = new xt({
|
|
13173
13173
|
destinationIdentities: a,
|
|
13174
13174
|
value: {
|
|
@@ -13180,7 +13180,7 @@ class Ll {
|
|
|
13180
13180
|
})
|
|
13181
13181
|
}
|
|
13182
13182
|
});
|
|
13183
|
-
yield d.sendDataPacket(w,
|
|
13183
|
+
yield d.sendDataPacket(w, VA.RELIABLE), B += 1, l += D.byteLength;
|
|
13184
13184
|
}
|
|
13185
13185
|
} finally {
|
|
13186
13186
|
_();
|
|
@@ -13198,7 +13198,7 @@ class Ll {
|
|
|
13198
13198
|
value: f
|
|
13199
13199
|
}
|
|
13200
13200
|
});
|
|
13201
|
-
yield d.sendDataPacket(_,
|
|
13201
|
+
yield d.sendDataPacket(_, VA.RELIABLE);
|
|
13202
13202
|
});
|
|
13203
13203
|
},
|
|
13204
13204
|
abort(f) {
|
|
@@ -14843,7 +14843,7 @@ class Pl extends Y0 {
|
|
|
14843
14843
|
var t = this;
|
|
14844
14844
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14845
14845
|
return function* () {
|
|
14846
|
-
const I = i.reliable ?
|
|
14846
|
+
const I = i.reliable ? VA.RELIABLE : VA.LOSSY, C = i.destinationIdentities, o = i.topic, a = new xt({
|
|
14847
14847
|
kind: I,
|
|
14848
14848
|
value: {
|
|
14849
14849
|
case: "user",
|
|
@@ -14868,7 +14868,7 @@ class Pl extends Y0 {
|
|
|
14868
14868
|
publishDtmf(A, e) {
|
|
14869
14869
|
return S(this, void 0, void 0, function* () {
|
|
14870
14870
|
const t = new xt({
|
|
14871
|
-
kind:
|
|
14871
|
+
kind: VA.RELIABLE,
|
|
14872
14872
|
value: {
|
|
14873
14873
|
case: "sipDtmf",
|
|
14874
14874
|
value: new Dr({
|
|
@@ -14877,7 +14877,7 @@ class Pl extends Y0 {
|
|
|
14877
14877
|
})
|
|
14878
14878
|
}
|
|
14879
14879
|
});
|
|
14880
|
-
yield this.engine.sendDataPacket(t,
|
|
14880
|
+
yield this.engine.sendDataPacket(t, VA.RELIABLE);
|
|
14881
14881
|
});
|
|
14882
14882
|
}
|
|
14883
14883
|
/** @deprecated Consider migrating to {@link sendText} */
|
|
@@ -14896,7 +14896,7 @@ class Pl extends Y0 {
|
|
|
14896
14896
|
}))
|
|
14897
14897
|
}
|
|
14898
14898
|
});
|
|
14899
|
-
return yield this.engine.sendDataPacket(i,
|
|
14899
|
+
return yield this.engine.sendDataPacket(i, VA.RELIABLE), this.emit(aA.ChatMessage, t), t;
|
|
14900
14900
|
});
|
|
14901
14901
|
}
|
|
14902
14902
|
/** @deprecated Consider migrating to {@link sendText} */
|
|
@@ -14914,7 +14914,7 @@ class Pl extends Y0 {
|
|
|
14914
14914
|
}))
|
|
14915
14915
|
}
|
|
14916
14916
|
});
|
|
14917
|
-
return yield this.engine.sendDataPacket(i,
|
|
14917
|
+
return yield this.engine.sendDataPacket(i, VA.RELIABLE), this.emit(aA.ChatMessage, t), t;
|
|
14918
14918
|
});
|
|
14919
14919
|
}
|
|
14920
14920
|
/**
|
|
@@ -15060,7 +15060,7 @@ class Pl extends Y0 {
|
|
|
15060
15060
|
return S(this, void 0, void 0, function* () {
|
|
15061
15061
|
const C = new xt({
|
|
15062
15062
|
destinationIdentities: [A],
|
|
15063
|
-
kind:
|
|
15063
|
+
kind: VA.RELIABLE,
|
|
15064
15064
|
value: {
|
|
15065
15065
|
case: "rpcRequest",
|
|
15066
15066
|
value: new _r({
|
|
@@ -15072,7 +15072,7 @@ class Pl extends Y0 {
|
|
|
15072
15072
|
})
|
|
15073
15073
|
}
|
|
15074
15074
|
});
|
|
15075
|
-
yield this.engine.sendDataPacket(C,
|
|
15075
|
+
yield this.engine.sendDataPacket(C, VA.RELIABLE);
|
|
15076
15076
|
});
|
|
15077
15077
|
}
|
|
15078
15078
|
/** @internal */
|
|
@@ -18100,10 +18100,10 @@ const Qf = of(), $B = Qf ? af() : null, at = class at extends EventTarget {
|
|
|
18100
18100
|
})
|
|
18101
18101
|
});
|
|
18102
18102
|
if (!I.ok) {
|
|
18103
|
-
const s = await I.text()
|
|
18104
|
-
throw new Error(
|
|
18103
|
+
const s = await I.text(), B = new Error(
|
|
18105
18104
|
`Failed to get room token: ${I.status} ${s}`
|
|
18106
18105
|
);
|
|
18106
|
+
throw B.status = I.status, B;
|
|
18107
18107
|
}
|
|
18108
18108
|
const { token: C, url: o, room_name: a, user_identity: Q } = await I.json();
|
|
18109
18109
|
this.roomName = a, this.userIdentity = Q;
|
|
@@ -18142,9 +18142,11 @@ const Qf = of(), $B = Qf ? af() : null, at = class at extends EventTarget {
|
|
|
18142
18142
|
})
|
|
18143
18143
|
);
|
|
18144
18144
|
} catch (i) {
|
|
18145
|
-
this.error = `Connection failed: ${i instanceof Error ? i.message : String(i)}`, this.updateStatus("error"), this.isReady = !1, this.room = null
|
|
18145
|
+
this.error = `Connection failed: ${i instanceof Error ? i.message : String(i)}`, this.updateStatus("error"), this.isReady = !1, this.room = null;
|
|
18146
|
+
const I = typeof (i == null ? void 0 : i.status) == "number" ? i.status : null;
|
|
18147
|
+
this.dispatchEvent(
|
|
18146
18148
|
new CustomEvent("error", {
|
|
18147
|
-
detail: { error: this.error }
|
|
18149
|
+
detail: { error: this.error, status: I }
|
|
18148
18150
|
})
|
|
18149
18151
|
);
|
|
18150
18152
|
}
|
|
@@ -18517,7 +18519,7 @@ function lC() {
|
|
|
18517
18519
|
const g = Math.random() * 4294967295 | 0, A = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0;
|
|
18518
18520
|
return (gt[g & 255] + gt[g >> 8 & 255] + gt[g >> 16 & 255] + gt[g >> 24 & 255] + "-" + gt[A & 255] + gt[A >> 8 & 255] + "-" + gt[A >> 16 & 15 | 64] + gt[A >> 24 & 255] + "-" + gt[e & 63 | 128] + gt[e >> 8 & 255] + "-" + gt[e >> 16 & 255] + gt[e >> 24 & 255] + gt[t & 255] + gt[t >> 8 & 255] + gt[t >> 16 & 255] + gt[t >> 24 & 255]).toLowerCase();
|
|
18519
18521
|
}
|
|
18520
|
-
function
|
|
18522
|
+
function Ce(g, A, e) {
|
|
18521
18523
|
return Math.max(A, Math.min(e, g));
|
|
18522
18524
|
}
|
|
18523
18525
|
function Pf(g, A) {
|
|
@@ -18832,7 +18834,7 @@ class ce {
|
|
|
18832
18834
|
* @return {Vector2} A reference to this vector.
|
|
18833
18835
|
*/
|
|
18834
18836
|
clamp(A, e) {
|
|
18835
|
-
return this.x =
|
|
18837
|
+
return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this;
|
|
18836
18838
|
}
|
|
18837
18839
|
/**
|
|
18838
18840
|
* If this vector's x or y values are greater than the max value, they are
|
|
@@ -18845,7 +18847,7 @@ class ce {
|
|
|
18845
18847
|
* @return {Vector2} A reference to this vector.
|
|
18846
18848
|
*/
|
|
18847
18849
|
clampScalar(A, e) {
|
|
18848
|
-
return this.x =
|
|
18850
|
+
return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this;
|
|
18849
18851
|
}
|
|
18850
18852
|
/**
|
|
18851
18853
|
* If this vector's length is greater than the max value, it is replaced by
|
|
@@ -18859,7 +18861,7 @@ class ce {
|
|
|
18859
18861
|
*/
|
|
18860
18862
|
clampLength(A, e) {
|
|
18861
18863
|
const t = this.length();
|
|
18862
|
-
return this.divideScalar(t || 1).multiplyScalar(
|
|
18864
|
+
return this.divideScalar(t || 1).multiplyScalar(Ce(t, A, e));
|
|
18863
18865
|
}
|
|
18864
18866
|
/**
|
|
18865
18867
|
* The components of this vector are rounded down to the nearest integer value.
|
|
@@ -18973,7 +18975,7 @@ class ce {
|
|
|
18973
18975
|
const e = Math.sqrt(this.lengthSq() * A.lengthSq());
|
|
18974
18976
|
if (e === 0) return Math.PI / 2;
|
|
18975
18977
|
const t = this.dot(A) / e;
|
|
18976
|
-
return Math.acos(
|
|
18978
|
+
return Math.acos(Ce(t, -1, 1));
|
|
18977
18979
|
}
|
|
18978
18980
|
/**
|
|
18979
18981
|
* Computes the distance from the given vector to this instance.
|
|
@@ -19336,7 +19338,7 @@ class fC {
|
|
|
19336
19338
|
* @return {number} The angle in radians.
|
|
19337
19339
|
*/
|
|
19338
19340
|
angleTo(A) {
|
|
19339
|
-
return 2 * Math.acos(Math.abs(
|
|
19341
|
+
return 2 * Math.acos(Math.abs(Ce(this.dot(A), -1, 1)));
|
|
19340
19342
|
}
|
|
19341
19343
|
/**
|
|
19342
19344
|
* Rotates this quaternion by a given angular step to the given quaternion.
|
|
@@ -19902,7 +19904,7 @@ class v {
|
|
|
19902
19904
|
* @return {Vector3} A reference to this vector.
|
|
19903
19905
|
*/
|
|
19904
19906
|
clamp(A, e) {
|
|
19905
|
-
return this.x =
|
|
19907
|
+
return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this.z = Ce(this.z, A.z, e.z), this;
|
|
19906
19908
|
}
|
|
19907
19909
|
/**
|
|
19908
19910
|
* If this vector's x, y or z values are greater than the max value, they are
|
|
@@ -19915,7 +19917,7 @@ class v {
|
|
|
19915
19917
|
* @return {Vector3} A reference to this vector.
|
|
19916
19918
|
*/
|
|
19917
19919
|
clampScalar(A, e) {
|
|
19918
|
-
return this.x =
|
|
19920
|
+
return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this.z = Ce(this.z, A, e), this;
|
|
19919
19921
|
}
|
|
19920
19922
|
/**
|
|
19921
19923
|
* If this vector's length is greater than the max value, it is replaced by
|
|
@@ -19929,7 +19931,7 @@ class v {
|
|
|
19929
19931
|
*/
|
|
19930
19932
|
clampLength(A, e) {
|
|
19931
19933
|
const t = this.length();
|
|
19932
|
-
return this.divideScalar(t || 1).multiplyScalar(
|
|
19934
|
+
return this.divideScalar(t || 1).multiplyScalar(Ce(t, A, e));
|
|
19933
19935
|
}
|
|
19934
19936
|
/**
|
|
19935
19937
|
* The components of this vector are rounded down to the nearest integer value.
|
|
@@ -20113,7 +20115,7 @@ class v {
|
|
|
20113
20115
|
const e = Math.sqrt(this.lengthSq() * A.lengthSq());
|
|
20114
20116
|
if (e === 0) return Math.PI / 2;
|
|
20115
20117
|
const t = this.dot(A) / e;
|
|
20116
|
-
return Math.acos(
|
|
20118
|
+
return Math.acos(Ce(t, -1, 1));
|
|
20117
20119
|
}
|
|
20118
20120
|
/**
|
|
20119
20121
|
* Computes the distance from the given vector to this instance.
|
|
@@ -20311,7 +20313,7 @@ class v {
|
|
|
20311
20313
|
}
|
|
20312
20314
|
}
|
|
20313
20315
|
const Ua = /* @__PURE__ */ new v(), aE = /* @__PURE__ */ new fC();
|
|
20314
|
-
class
|
|
20316
|
+
class TA {
|
|
20315
20317
|
/**
|
|
20316
20318
|
* Constructs a new 3x3 matrix. The arguments are supposed to be
|
|
20317
20319
|
* in row-major order. If no arguments are provided, the constructor
|
|
@@ -20328,7 +20330,7 @@ class YA {
|
|
|
20328
20330
|
* @param {number} [n33] - 3-3 matrix element.
|
|
20329
20331
|
*/
|
|
20330
20332
|
constructor(A, e, t, i, I, C, o, a, Q) {
|
|
20331
|
-
|
|
20333
|
+
TA.prototype.isMatrix3 = !0, this.elements = [
|
|
20332
20334
|
1,
|
|
20333
20335
|
0,
|
|
20334
20336
|
0,
|
|
@@ -20681,7 +20683,7 @@ class YA {
|
|
|
20681
20683
|
return new this.constructor().fromArray(this.elements);
|
|
20682
20684
|
}
|
|
20683
20685
|
}
|
|
20684
|
-
const La = /* @__PURE__ */ new
|
|
20686
|
+
const La = /* @__PURE__ */ new TA(), QE = /* @__PURE__ */ new TA().set(
|
|
20685
20687
|
0.4123908,
|
|
20686
20688
|
0.3575843,
|
|
20687
20689
|
0.1804808,
|
|
@@ -20691,7 +20693,7 @@ const La = /* @__PURE__ */ new YA(), QE = /* @__PURE__ */ new YA().set(
|
|
|
20691
20693
|
0.0193308,
|
|
20692
20694
|
0.1191948,
|
|
20693
20695
|
0.9505322
|
|
20694
|
-
), nE = /* @__PURE__ */ new
|
|
20696
|
+
), nE = /* @__PURE__ */ new TA().set(
|
|
20695
20697
|
3.2409699,
|
|
20696
20698
|
-1.5373832,
|
|
20697
20699
|
-0.4986108,
|
|
@@ -20933,7 +20935,7 @@ class nt extends kI {
|
|
|
20933
20935
|
* @param {string} [colorSpace=NoColorSpace] - The color space.
|
|
20934
20936
|
*/
|
|
20935
20937
|
constructor(A = nt.DEFAULT_IMAGE, e = nt.DEFAULT_MAPPING, t = Ug, i = Ug, I = It, C = Ri, o = Xt, a = Lt, Q = nt.DEFAULT_ANISOTROPY, n = Ii) {
|
|
20936
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: Wf++ }), this.uuid = lC(), this.name = "", this.source = new _s(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = C, this.anisotropy = Q, this.format = o, this.internalFormat = null, this.type = a, this.offset = new ce(0, 0), this.repeat = new ce(1, 1), this.center = new ce(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new
|
|
20938
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: Wf++ }), this.uuid = lC(), this.name = "", this.source = new _s(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = C, this.anisotropy = Q, this.format = o, this.internalFormat = null, this.type = a, this.offset = new ce(0, 0), this.repeat = new ce(1, 1), this.center = new ce(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new TA(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = n, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(A && A.depth && A.depth > 1), this.pmremVersion = 0;
|
|
20937
20939
|
}
|
|
20938
20940
|
/**
|
|
20939
20941
|
* The width of the texture in pixels.
|
|
@@ -21475,7 +21477,7 @@ class Ye {
|
|
|
21475
21477
|
* @return {Vector4} A reference to this vector.
|
|
21476
21478
|
*/
|
|
21477
21479
|
clamp(A, e) {
|
|
21478
|
-
return this.x =
|
|
21480
|
+
return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this.z = Ce(this.z, A.z, e.z), this.w = Ce(this.w, A.w, e.w), this;
|
|
21479
21481
|
}
|
|
21480
21482
|
/**
|
|
21481
21483
|
* If this vector's x, y, z or w values are greater than the max value, they are
|
|
@@ -21488,7 +21490,7 @@ class Ye {
|
|
|
21488
21490
|
* @return {Vector4} A reference to this vector.
|
|
21489
21491
|
*/
|
|
21490
21492
|
clampScalar(A, e) {
|
|
21491
|
-
return this.x =
|
|
21493
|
+
return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this.z = Ce(this.z, A, e), this.w = Ce(this.w, A, e), this;
|
|
21492
21494
|
}
|
|
21493
21495
|
/**
|
|
21494
21496
|
* If this vector's length is greater than the max value, it is replaced by
|
|
@@ -21502,7 +21504,7 @@ class Ye {
|
|
|
21502
21504
|
*/
|
|
21503
21505
|
clampLength(A, e) {
|
|
21504
21506
|
const t = this.length();
|
|
21505
|
-
return this.divideScalar(t || 1).multiplyScalar(
|
|
21507
|
+
return this.divideScalar(t || 1).multiplyScalar(Ce(t, A, e));
|
|
21506
21508
|
}
|
|
21507
21509
|
/**
|
|
21508
21510
|
* The components of this vector are rounded down to the nearest integer value.
|
|
@@ -23588,22 +23590,22 @@ class qg {
|
|
|
23588
23590
|
const i = A.elements, I = i[0], C = i[4], o = i[8], a = i[1], Q = i[5], n = i[9], s = i[2], B = i[6], E = i[10];
|
|
23589
23591
|
switch (e) {
|
|
23590
23592
|
case "XYZ":
|
|
23591
|
-
this._y = Math.asin(
|
|
23593
|
+
this._y = Math.asin(Ce(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-n, E), this._z = Math.atan2(-C, I)) : (this._x = Math.atan2(B, Q), this._z = 0);
|
|
23592
23594
|
break;
|
|
23593
23595
|
case "YXZ":
|
|
23594
|
-
this._x = Math.asin(-
|
|
23596
|
+
this._x = Math.asin(-Ce(n, -1, 1)), Math.abs(n) < 0.9999999 ? (this._y = Math.atan2(o, E), this._z = Math.atan2(a, Q)) : (this._y = Math.atan2(-s, I), this._z = 0);
|
|
23595
23597
|
break;
|
|
23596
23598
|
case "ZXY":
|
|
23597
|
-
this._x = Math.asin(
|
|
23599
|
+
this._x = Math.asin(Ce(B, -1, 1)), Math.abs(B) < 0.9999999 ? (this._y = Math.atan2(-s, E), this._z = Math.atan2(-C, Q)) : (this._y = 0, this._z = Math.atan2(a, I));
|
|
23598
23600
|
break;
|
|
23599
23601
|
case "ZYX":
|
|
23600
|
-
this._y = Math.asin(-
|
|
23602
|
+
this._y = Math.asin(-Ce(s, -1, 1)), Math.abs(s) < 0.9999999 ? (this._x = Math.atan2(B, E), this._z = Math.atan2(a, I)) : (this._x = 0, this._z = Math.atan2(-C, Q));
|
|
23601
23603
|
break;
|
|
23602
23604
|
case "YZX":
|
|
23603
|
-
this._z = Math.asin(
|
|
23605
|
+
this._z = Math.asin(Ce(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-n, Q), this._y = Math.atan2(-s, I)) : (this._x = 0, this._y = Math.atan2(o, E));
|
|
23604
23606
|
break;
|
|
23605
23607
|
case "XZY":
|
|
23606
|
-
this._z = Math.asin(-
|
|
23608
|
+
this._z = Math.asin(-Ce(C, -1, 1)), Math.abs(C) < 0.9999999 ? (this._x = Math.atan2(B, Q), this._y = Math.atan2(o, I)) : (this._x = Math.atan2(-n, E), this._y = 0);
|
|
23607
23609
|
break;
|
|
23608
23610
|
default:
|
|
23609
23611
|
LA("Euler: .setFromRotationMatrix() encountered an unknown order: " + e);
|
|
@@ -23836,7 +23838,7 @@ class kt extends kI {
|
|
|
23836
23838
|
* @type {Matrix3}
|
|
23837
23839
|
*/
|
|
23838
23840
|
normalMatrix: {
|
|
23839
|
-
value: new
|
|
23841
|
+
value: new TA()
|
|
23840
23842
|
}
|
|
23841
23843
|
}), this.matrix = new Ve(), this.matrixWorld = new Ve(), this.matrixAutoUpdate = kt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = kt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new sc(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
|
|
23842
23844
|
}
|
|
@@ -24929,7 +24931,7 @@ class ae {
|
|
|
24929
24931
|
* @return {Color} A reference to this color.
|
|
24930
24932
|
*/
|
|
24931
24933
|
setHSL(A, e, t, i = ne.workingColorSpace) {
|
|
24932
|
-
if (A = Pf(A, 1), e =
|
|
24934
|
+
if (A = Pf(A, 1), e = Ce(e, 0, 1), t = Ce(t, 0, 1), e === 0)
|
|
24933
24935
|
this.r = this.g = this.b = t;
|
|
24934
24936
|
else {
|
|
24935
24937
|
const I = t <= 0.5 ? t * (1 + e) : t + e - t * e, C = 2 * t - I;
|
|
@@ -25079,7 +25081,7 @@ class ae {
|
|
|
25079
25081
|
* @return {number} The hexadecimal value.
|
|
25080
25082
|
*/
|
|
25081
25083
|
getHex(A = Ft) {
|
|
25082
|
-
return ne.workingToColorSpace(it.copy(this), A), Math.round(
|
|
25084
|
+
return ne.workingToColorSpace(it.copy(this), A), Math.round(Ce(it.r * 255, 0, 255)) * 65536 + Math.round(Ce(it.g * 255, 0, 255)) * 256 + Math.round(Ce(it.b * 255, 0, 255));
|
|
25083
25085
|
}
|
|
25084
25086
|
/**
|
|
25085
25087
|
* Returns the hexadecimal value of this color as a string (for example, 'FFFFFF').
|
|
@@ -25994,7 +25996,7 @@ class $t extends kI {
|
|
|
25994
25996
|
e !== void 0 && (e.applyMatrix4(A), e.needsUpdate = !0);
|
|
25995
25997
|
const t = this.attributes.normal;
|
|
25996
25998
|
if (t !== void 0) {
|
|
25997
|
-
const I = new
|
|
25999
|
+
const I = new TA().getNormalMatrix(A);
|
|
25998
26000
|
t.applyNormalMatrix(I), t.needsUpdate = !0;
|
|
25999
26001
|
}
|
|
26000
26002
|
const i = this.attributes.tangent;
|
|
@@ -27234,7 +27236,7 @@ class du extends nt {
|
|
|
27234
27236
|
super(null, C, o, a, Q, n, i, I, s, B), this.isDataTexture = !0, this.image = { data: A, width: e, height: t }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
27235
27237
|
}
|
|
27236
27238
|
}
|
|
27237
|
-
const gQ = /* @__PURE__ */ new v(), xu = /* @__PURE__ */ new v(), lu = /* @__PURE__ */ new
|
|
27239
|
+
const gQ = /* @__PURE__ */ new v(), xu = /* @__PURE__ */ new v(), lu = /* @__PURE__ */ new TA();
|
|
27238
27240
|
class yi {
|
|
27239
27241
|
/**
|
|
27240
27242
|
* Constructs a new plane.
|
|
@@ -32098,18 +32100,18 @@ void main() {
|
|
|
32098
32100
|
diffuse: { value: /* @__PURE__ */ new ae(16777215) },
|
|
32099
32101
|
opacity: { value: 1 },
|
|
32100
32102
|
map: { value: null },
|
|
32101
|
-
mapTransform: { value: /* @__PURE__ */ new
|
|
32103
|
+
mapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32102
32104
|
alphaMap: { value: null },
|
|
32103
|
-
alphaMapTransform: { value: /* @__PURE__ */ new
|
|
32105
|
+
alphaMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32104
32106
|
alphaTest: { value: 0 }
|
|
32105
32107
|
},
|
|
32106
32108
|
specularmap: {
|
|
32107
32109
|
specularMap: { value: null },
|
|
32108
|
-
specularMapTransform: { value: /* @__PURE__ */ new
|
|
32110
|
+
specularMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32109
32111
|
},
|
|
32110
32112
|
envmap: {
|
|
32111
32113
|
envMap: { value: null },
|
|
32112
|
-
envMapRotation: { value: /* @__PURE__ */ new
|
|
32114
|
+
envMapRotation: { value: /* @__PURE__ */ new TA() },
|
|
32113
32115
|
flipEnvMap: { value: -1 },
|
|
32114
32116
|
reflectivity: { value: 1 },
|
|
32115
32117
|
// basic, lambert, phong
|
|
@@ -32123,40 +32125,40 @@ void main() {
|
|
|
32123
32125
|
aomap: {
|
|
32124
32126
|
aoMap: { value: null },
|
|
32125
32127
|
aoMapIntensity: { value: 1 },
|
|
32126
|
-
aoMapTransform: { value: /* @__PURE__ */ new
|
|
32128
|
+
aoMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32127
32129
|
},
|
|
32128
32130
|
lightmap: {
|
|
32129
32131
|
lightMap: { value: null },
|
|
32130
32132
|
lightMapIntensity: { value: 1 },
|
|
32131
|
-
lightMapTransform: { value: /* @__PURE__ */ new
|
|
32133
|
+
lightMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32132
32134
|
},
|
|
32133
32135
|
bumpmap: {
|
|
32134
32136
|
bumpMap: { value: null },
|
|
32135
|
-
bumpMapTransform: { value: /* @__PURE__ */ new
|
|
32137
|
+
bumpMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32136
32138
|
bumpScale: { value: 1 }
|
|
32137
32139
|
},
|
|
32138
32140
|
normalmap: {
|
|
32139
32141
|
normalMap: { value: null },
|
|
32140
|
-
normalMapTransform: { value: /* @__PURE__ */ new
|
|
32142
|
+
normalMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32141
32143
|
normalScale: { value: /* @__PURE__ */ new ce(1, 1) }
|
|
32142
32144
|
},
|
|
32143
32145
|
displacementmap: {
|
|
32144
32146
|
displacementMap: { value: null },
|
|
32145
|
-
displacementMapTransform: { value: /* @__PURE__ */ new
|
|
32147
|
+
displacementMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32146
32148
|
displacementScale: { value: 1 },
|
|
32147
32149
|
displacementBias: { value: 0 }
|
|
32148
32150
|
},
|
|
32149
32151
|
emissivemap: {
|
|
32150
32152
|
emissiveMap: { value: null },
|
|
32151
|
-
emissiveMapTransform: { value: /* @__PURE__ */ new
|
|
32153
|
+
emissiveMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32152
32154
|
},
|
|
32153
32155
|
metalnessmap: {
|
|
32154
32156
|
metalnessMap: { value: null },
|
|
32155
|
-
metalnessMapTransform: { value: /* @__PURE__ */ new
|
|
32157
|
+
metalnessMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32156
32158
|
},
|
|
32157
32159
|
roughnessmap: {
|
|
32158
32160
|
roughnessMap: { value: null },
|
|
32159
|
-
roughnessMapTransform: { value: /* @__PURE__ */ new
|
|
32161
|
+
roughnessMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32160
32162
|
},
|
|
32161
32163
|
gradientmap: {
|
|
32162
32164
|
gradientMap: { value: null }
|
|
@@ -32241,9 +32243,9 @@ void main() {
|
|
|
32241
32243
|
scale: { value: 1 },
|
|
32242
32244
|
map: { value: null },
|
|
32243
32245
|
alphaMap: { value: null },
|
|
32244
|
-
alphaMapTransform: { value: /* @__PURE__ */ new
|
|
32246
|
+
alphaMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32245
32247
|
alphaTest: { value: 0 },
|
|
32246
|
-
uvTransform: { value: /* @__PURE__ */ new
|
|
32248
|
+
uvTransform: { value: /* @__PURE__ */ new TA() }
|
|
32247
32249
|
},
|
|
32248
32250
|
sprite: {
|
|
32249
32251
|
diffuse: { value: /* @__PURE__ */ new ae(16777215) },
|
|
@@ -32251,9 +32253,9 @@ void main() {
|
|
|
32251
32253
|
center: { value: /* @__PURE__ */ new ce(0.5, 0.5) },
|
|
32252
32254
|
rotation: { value: 0 },
|
|
32253
32255
|
map: { value: null },
|
|
32254
|
-
mapTransform: { value: /* @__PURE__ */ new
|
|
32256
|
+
mapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32255
32257
|
alphaMap: { value: null },
|
|
32256
|
-
alphaMapTransform: { value: /* @__PURE__ */ new
|
|
32258
|
+
alphaMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32257
32259
|
alphaTest: { value: 0 }
|
|
32258
32260
|
}
|
|
32259
32261
|
}, ig = {
|
|
@@ -32420,7 +32422,7 @@ void main() {
|
|
|
32420
32422
|
},
|
|
32421
32423
|
background: {
|
|
32422
32424
|
uniforms: {
|
|
32423
|
-
uvTransform: { value: /* @__PURE__ */ new
|
|
32425
|
+
uvTransform: { value: /* @__PURE__ */ new TA() },
|
|
32424
32426
|
t2D: { value: null },
|
|
32425
32427
|
backgroundIntensity: { value: 1 }
|
|
32426
32428
|
},
|
|
@@ -32433,7 +32435,7 @@ void main() {
|
|
|
32433
32435
|
flipEnvMap: { value: -1 },
|
|
32434
32436
|
backgroundBlurriness: { value: 0 },
|
|
32435
32437
|
backgroundIntensity: { value: 1 },
|
|
32436
|
-
backgroundRotation: { value: /* @__PURE__ */ new
|
|
32438
|
+
backgroundRotation: { value: /* @__PURE__ */ new TA() }
|
|
32437
32439
|
},
|
|
32438
32440
|
vertexShader: qA.backgroundCube_vert,
|
|
32439
32441
|
fragmentShader: qA.backgroundCube_frag
|
|
@@ -32486,48 +32488,48 @@ ig.physical = {
|
|
|
32486
32488
|
{
|
|
32487
32489
|
clearcoat: { value: 0 },
|
|
32488
32490
|
clearcoatMap: { value: null },
|
|
32489
|
-
clearcoatMapTransform: { value: /* @__PURE__ */ new
|
|
32491
|
+
clearcoatMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32490
32492
|
clearcoatNormalMap: { value: null },
|
|
32491
|
-
clearcoatNormalMapTransform: { value: /* @__PURE__ */ new
|
|
32493
|
+
clearcoatNormalMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32492
32494
|
clearcoatNormalScale: { value: /* @__PURE__ */ new ce(1, 1) },
|
|
32493
32495
|
clearcoatRoughness: { value: 0 },
|
|
32494
32496
|
clearcoatRoughnessMap: { value: null },
|
|
32495
|
-
clearcoatRoughnessMapTransform: { value: /* @__PURE__ */ new
|
|
32497
|
+
clearcoatRoughnessMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32496
32498
|
dispersion: { value: 0 },
|
|
32497
32499
|
iridescence: { value: 0 },
|
|
32498
32500
|
iridescenceMap: { value: null },
|
|
32499
|
-
iridescenceMapTransform: { value: /* @__PURE__ */ new
|
|
32501
|
+
iridescenceMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32500
32502
|
iridescenceIOR: { value: 1.3 },
|
|
32501
32503
|
iridescenceThicknessMinimum: { value: 100 },
|
|
32502
32504
|
iridescenceThicknessMaximum: { value: 400 },
|
|
32503
32505
|
iridescenceThicknessMap: { value: null },
|
|
32504
|
-
iridescenceThicknessMapTransform: { value: /* @__PURE__ */ new
|
|
32506
|
+
iridescenceThicknessMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32505
32507
|
sheen: { value: 0 },
|
|
32506
32508
|
sheenColor: { value: /* @__PURE__ */ new ae(0) },
|
|
32507
32509
|
sheenColorMap: { value: null },
|
|
32508
|
-
sheenColorMapTransform: { value: /* @__PURE__ */ new
|
|
32510
|
+
sheenColorMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32509
32511
|
sheenRoughness: { value: 1 },
|
|
32510
32512
|
sheenRoughnessMap: { value: null },
|
|
32511
|
-
sheenRoughnessMapTransform: { value: /* @__PURE__ */ new
|
|
32513
|
+
sheenRoughnessMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32512
32514
|
transmission: { value: 0 },
|
|
32513
32515
|
transmissionMap: { value: null },
|
|
32514
|
-
transmissionMapTransform: { value: /* @__PURE__ */ new
|
|
32516
|
+
transmissionMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32515
32517
|
transmissionSamplerSize: { value: /* @__PURE__ */ new ce() },
|
|
32516
32518
|
transmissionSamplerMap: { value: null },
|
|
32517
32519
|
thickness: { value: 0 },
|
|
32518
32520
|
thicknessMap: { value: null },
|
|
32519
|
-
thicknessMapTransform: { value: /* @__PURE__ */ new
|
|
32521
|
+
thicknessMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32520
32522
|
attenuationDistance: { value: 0 },
|
|
32521
32523
|
attenuationColor: { value: /* @__PURE__ */ new ae(0) },
|
|
32522
32524
|
specularColor: { value: /* @__PURE__ */ new ae(1, 1, 1) },
|
|
32523
32525
|
specularColorMap: { value: null },
|
|
32524
|
-
specularColorMapTransform: { value: /* @__PURE__ */ new
|
|
32526
|
+
specularColorMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32525
32527
|
specularIntensity: { value: 1 },
|
|
32526
32528
|
specularIntensityMap: { value: null },
|
|
32527
|
-
specularIntensityMapTransform: { value: /* @__PURE__ */ new
|
|
32529
|
+
specularIntensityMapTransform: { value: /* @__PURE__ */ new TA() },
|
|
32528
32530
|
anisotropyVector: { value: /* @__PURE__ */ new ce() },
|
|
32529
32531
|
anisotropyMap: { value: null },
|
|
32530
|
-
anisotropyMapTransform: { value: /* @__PURE__ */ new
|
|
32532
|
+
anisotropyMapTransform: { value: /* @__PURE__ */ new TA() }
|
|
32531
32533
|
}
|
|
32532
32534
|
]),
|
|
32533
32535
|
vertexShader: qA.meshphysical_vert,
|
|
@@ -32713,7 +32715,7 @@ function n2(g, A) {
|
|
|
32713
32715
|
if (vA === void 0) continue;
|
|
32714
32716
|
const KA = vA.buffer, Se = vA.type, ue = vA.bytesPerElement, X = Se === g.INT || Se === g.UNSIGNED_INT || dA.gpuType === cs;
|
|
32715
32717
|
if (dA.isInterleavedBufferAttribute) {
|
|
32716
|
-
const gA = dA.data, _A = gA.stride,
|
|
32718
|
+
const gA = dA.data, _A = gA.stride, YA = dA.offset;
|
|
32717
32719
|
if (gA.isInstancedInterleavedBuffer) {
|
|
32718
32720
|
for (let mA = 0; mA < Z.locationSize; mA++)
|
|
32719
32721
|
r(Z.location + mA, gA.meshPerAttribute);
|
|
@@ -32729,7 +32731,7 @@ function n2(g, A) {
|
|
|
32729
32731
|
Se,
|
|
32730
32732
|
nA,
|
|
32731
32733
|
_A * ue,
|
|
32732
|
-
(
|
|
32734
|
+
(YA + lA / Z.locationSize * mA) * ue,
|
|
32733
32735
|
X
|
|
32734
32736
|
);
|
|
32735
32737
|
} else {
|
|
@@ -32916,7 +32918,7 @@ function B2(g, A, e, t) {
|
|
|
32916
32918
|
function E2(g) {
|
|
32917
32919
|
const A = this;
|
|
32918
32920
|
let e = null, t = 0, i = !1, I = !1;
|
|
32919
|
-
const C = new yi(), o = new
|
|
32921
|
+
const C = new yi(), o = new TA(), a = { value: null, needsUpdate: !1 };
|
|
32920
32922
|
this.uniform = a, this.numPlanes = 0, this.numIntersection = 0, this.init = function(s, B) {
|
|
32921
32923
|
const E = s.length !== 0 || B || // enable state of previous frame - the clipping code has to
|
|
32922
32924
|
// run another frame in order to reset the state:
|
|
@@ -34542,7 +34544,7 @@ function up(g, A) {
|
|
|
34542
34544
|
return t.join(`
|
|
34543
34545
|
`);
|
|
34544
34546
|
}
|
|
34545
|
-
const KE = /* @__PURE__ */ new
|
|
34547
|
+
const KE = /* @__PURE__ */ new TA();
|
|
34546
34548
|
function Dp(g) {
|
|
34547
34549
|
ne._getMatrix(KE, ne.workingColorSpace, g);
|
|
34548
34550
|
const A = `mat3( ${KE.elements.map((e) => e.toFixed(4))} )`;
|
|
@@ -35115,7 +35117,7 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35115
35117
|
KA = xe.vertexShader, Se = xe.fragmentShader;
|
|
35116
35118
|
} else
|
|
35117
35119
|
KA = x.vertexShader, Se = x.fragmentShader, a.update(x), ue = a.getVertexShaderID(x), X = a.getFragmentShaderID(x);
|
|
35118
|
-
const gA = g.getRenderTarget(), _A = g.state.buffers.depth.getReversed(),
|
|
35120
|
+
const gA = g.getRenderTarget(), _A = g.state.buffers.depth.getReversed(), YA = L.isInstancedMesh === !0, mA = L.isBatchedMesh === !0, se = !!x.map, Ze = !!x.matcap, Qe = !!P, de = !!x.aoMap, pe = !!x.lightMap, PA = !!x.bumpMap, Te = !!x.normalMap, R = !!x.displacementMap, qe = !!x.emissiveMap, he = !!x.metalnessMap, ye = !!x.roughnessMap, bA = x.anisotropy > 0, b = x.clearcoat > 0, u = x.dispersion > 0, M = x.iridescence > 0, W = x.sheen > 0, eA = x.transmission > 0, O = bA && !!x.anisotropyMap, SA = b && !!x.clearcoatMap, BA = b && !!x.clearcoatNormalMap, yA = b && !!x.clearcoatRoughnessMap, FA = M && !!x.iridescenceMap, IA = M && !!x.iridescenceThicknessMap, rA = W && !!x.sheenColorMap, wA = W && !!x.sheenRoughnessMap, NA = !!x.specularMap, EA = !!x.specularColorMap, OA = !!x.specularIntensityMap, G = eA && !!x.transmissionMap, fA = eA && !!x.thicknessMap, oA = !!x.gradientMap, uA = !!x.alphaMap, iA = x.alphaTest > 0, z = !!x.alphaHash, sA = !!x.extensions;
|
|
35119
35121
|
let UA = Bg;
|
|
35120
35122
|
x.toneMapped && (gA === null || gA.isXRRenderTarget === !0) && (UA = g.toneMapping);
|
|
35121
35123
|
const be = {
|
|
@@ -35132,9 +35134,9 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35132
35134
|
precision: E,
|
|
35133
35135
|
batching: mA,
|
|
35134
35136
|
batchingColor: mA && L._colorsTexture !== null,
|
|
35135
|
-
instancing:
|
|
35136
|
-
instancingColor:
|
|
35137
|
-
instancingMorph:
|
|
35137
|
+
instancing: YA,
|
|
35138
|
+
instancingColor: YA && L.instanceColor !== null,
|
|
35139
|
+
instancingMorph: YA && L.morphTexture !== null,
|
|
35138
35140
|
outputColorSpace: gA === null ? g.outputColorSpace : gA.isXRRenderTarget === !0 ? gA.texture.colorSpace : yI,
|
|
35139
35141
|
alphaToCoverage: !!x.alphaToCoverage,
|
|
35140
35142
|
map: se,
|
|
@@ -35144,7 +35146,7 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35144
35146
|
envMapCubeUVHeight: Z,
|
|
35145
35147
|
aoMap: de,
|
|
35146
35148
|
lightMap: pe,
|
|
35147
|
-
bumpMap:
|
|
35149
|
+
bumpMap: PA,
|
|
35148
35150
|
normalMap: Te,
|
|
35149
35151
|
displacementMap: R,
|
|
35150
35152
|
emissiveMap: qe,
|
|
@@ -35167,7 +35169,7 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35167
35169
|
sheenRoughnessMap: wA,
|
|
35168
35170
|
specularMap: NA,
|
|
35169
35171
|
specularColorMap: EA,
|
|
35170
|
-
specularIntensityMap:
|
|
35172
|
+
specularIntensityMap: OA,
|
|
35171
35173
|
transmission: eA,
|
|
35172
35174
|
transmissionMap: G,
|
|
35173
35175
|
thicknessMap: fA,
|
|
@@ -35181,7 +35183,7 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35181
35183
|
mapUv: se && c(x.map.channel),
|
|
35182
35184
|
aoMapUv: de && c(x.aoMap.channel),
|
|
35183
35185
|
lightMapUv: pe && c(x.lightMap.channel),
|
|
35184
|
-
bumpMapUv:
|
|
35186
|
+
bumpMapUv: PA && c(x.bumpMap.channel),
|
|
35185
35187
|
normalMapUv: Te && c(x.normalMap.channel),
|
|
35186
35188
|
displacementMapUv: R && c(x.displacementMap.channel),
|
|
35187
35189
|
emissiveMapUv: qe && c(x.emissiveMap.channel),
|
|
@@ -35197,7 +35199,7 @@ function jp(g, A, e, t, i, I, C) {
|
|
|
35197
35199
|
sheenRoughnessMapUv: wA && c(x.sheenRoughnessMap.channel),
|
|
35198
35200
|
specularMapUv: NA && c(x.specularMap.channel),
|
|
35199
35201
|
specularColorMapUv: EA && c(x.specularColorMap.channel),
|
|
35200
|
-
specularIntensityMapUv:
|
|
35202
|
+
specularIntensityMapUv: OA && c(x.specularIntensityMap.channel),
|
|
35201
35203
|
transmissionMapUv: G && c(x.transmissionMap.channel),
|
|
35202
35204
|
thicknessMapUv: fA && c(x.thicknessMap.channel),
|
|
35203
35205
|
alphaMapUv: uA && c(x.alphaMap.channel),
|
|
@@ -35986,14 +35988,14 @@ function nw(g, A) {
|
|
|
35986
35988
|
return z;
|
|
35987
35989
|
}
|
|
35988
35990
|
const X = {};
|
|
35989
|
-
X[g.TEXTURE_2D] = ue(g.TEXTURE_2D, g.TEXTURE_2D, 1), X[g.TEXTURE_CUBE_MAP] = ue(g.TEXTURE_CUBE_MAP, g.TEXTURE_CUBE_MAP_POSITIVE_X, 6), X[g.TEXTURE_2D_ARRAY] = ue(g.TEXTURE_2D_ARRAY, g.TEXTURE_2D_ARRAY, 1, 1), X[g.TEXTURE_3D] = ue(g.TEXTURE_3D, g.TEXTURE_3D, 1, 1), I.setClear(0, 0, 0, 1), C.setClear(1), o.setClear(0), gA(g.DEPTH_TEST), C.setFunc(pI),
|
|
35991
|
+
X[g.TEXTURE_2D] = ue(g.TEXTURE_2D, g.TEXTURE_2D, 1), X[g.TEXTURE_CUBE_MAP] = ue(g.TEXTURE_CUBE_MAP, g.TEXTURE_CUBE_MAP_POSITIVE_X, 6), X[g.TEXTURE_2D_ARRAY] = ue(g.TEXTURE_2D_ARRAY, g.TEXTURE_2D_ARRAY, 1, 1), X[g.TEXTURE_3D] = ue(g.TEXTURE_3D, g.TEXTURE_3D, 1, 1), I.setClear(0, 0, 0, 1), C.setClear(1), o.setClear(0), gA(g.DEPTH_TEST), C.setFunc(pI), PA(!1), Te(AE), gA(g.CULL_FACE), de(Lg);
|
|
35990
35992
|
function gA(G) {
|
|
35991
35993
|
n[G] !== !0 && (g.enable(G), n[G] = !0);
|
|
35992
35994
|
}
|
|
35993
35995
|
function _A(G) {
|
|
35994
35996
|
n[G] !== !1 && (g.disable(G), n[G] = !1);
|
|
35995
35997
|
}
|
|
35996
|
-
function
|
|
35998
|
+
function YA(G, fA) {
|
|
35997
35999
|
return s[G] !== fA ? (g.bindFramebuffer(G, fA), s[G] = fA, G === g.DRAW_FRAMEBUFFER && (s[g.FRAMEBUFFER] = fA), G === g.FRAMEBUFFER && (s[g.DRAW_FRAMEBUFFER] = fA), !0) : !1;
|
|
35998
36000
|
}
|
|
35999
36001
|
function mA(G, fA) {
|
|
@@ -36088,11 +36090,11 @@ function nw(g, A) {
|
|
|
36088
36090
|
function pe(G, fA) {
|
|
36089
36091
|
G.side === Fg ? _A(g.CULL_FACE) : gA(g.CULL_FACE);
|
|
36090
36092
|
let oA = G.side === Qt;
|
|
36091
|
-
fA && (oA = !oA),
|
|
36093
|
+
fA && (oA = !oA), PA(oA), G.blending === xI && G.transparent === !1 ? de(Lg) : de(G.blending, G.blendEquation, G.blendSrc, G.blendDst, G.blendEquationAlpha, G.blendSrcAlpha, G.blendDstAlpha, G.blendColor, G.blendAlpha, G.premultipliedAlpha), C.setFunc(G.depthFunc), C.setTest(G.depthTest), C.setMask(G.depthWrite), I.setMask(G.colorWrite);
|
|
36092
36094
|
const uA = G.stencilWrite;
|
|
36093
36095
|
o.setTest(uA), uA && (o.setMask(G.stencilWriteMask), o.setFunc(G.stencilFunc, G.stencilRef, G.stencilFuncMask), o.setOp(G.stencilFail, G.stencilZFail, G.stencilZPass)), qe(G.polygonOffset, G.polygonOffsetFactor, G.polygonOffsetUnits), G.alphaToCoverage === !0 ? gA(g.SAMPLE_ALPHA_TO_COVERAGE) : _A(g.SAMPLE_ALPHA_TO_COVERAGE);
|
|
36094
36096
|
}
|
|
36095
|
-
function
|
|
36097
|
+
function PA(G) {
|
|
36096
36098
|
p !== G && (G ? g.frontFace(g.CW) : g.frontFace(g.CCW), p = G);
|
|
36097
36099
|
}
|
|
36098
36100
|
function Te(G) {
|
|
@@ -36205,7 +36207,7 @@ function nw(g, A) {
|
|
|
36205
36207
|
const uA = Q.get(fA).get(G);
|
|
36206
36208
|
a.get(fA) !== uA && (g.uniformBlockBinding(fA, uA, G.__bindingPointIndex), a.set(fA, uA));
|
|
36207
36209
|
}
|
|
36208
|
-
function
|
|
36210
|
+
function OA() {
|
|
36209
36211
|
g.disable(g.BLEND), g.disable(g.CULL_FACE), g.disable(g.DEPTH_TEST), g.disable(g.POLYGON_OFFSET_FILL), g.disable(g.SCISSOR_TEST), g.disable(g.STENCIL_TEST), g.disable(g.SAMPLE_ALPHA_TO_COVERAGE), g.blendEquation(g.FUNC_ADD), g.blendFunc(g.ONE, g.ZERO), g.blendFuncSeparate(g.ONE, g.ZERO, g.ONE, g.ZERO), g.blendColor(0, 0, 0, 0), g.colorMask(!0, !0, !0, !0), g.clearColor(0, 0, 0, 0), g.depthMask(!0), g.depthFunc(g.LESS), C.setReversed(!1), g.clearDepth(1), g.stencilMask(4294967295), g.stencilFunc(g.ALWAYS, 0, 4294967295), g.stencilOp(g.KEEP, g.KEEP, g.KEEP), g.clearStencil(0), g.cullFace(g.BACK), g.frontFace(g.CCW), g.polygonOffset(0, 0), g.activeTexture(g.TEXTURE0), g.bindFramebuffer(g.FRAMEBUFFER, null), g.bindFramebuffer(g.DRAW_FRAMEBUFFER, null), g.bindFramebuffer(g.READ_FRAMEBUFFER, null), g.useProgram(null), g.lineWidth(1), g.scissor(0, 0, g.canvas.width, g.canvas.height), g.viewport(0, 0, g.canvas.width, g.canvas.height), n = {}, dA = null, nA = {}, s = {}, B = /* @__PURE__ */ new WeakMap(), E = [], d = null, c = !1, h = null, r = null, f = null, _ = null, l = null, D = null, w = null, y = new ae(0, 0, 0), k = 0, x = !1, p = null, N = null, F = null, L = null, H = null, KA.set(0, 0, g.canvas.width, g.canvas.height), Se.set(0, 0, g.canvas.width, g.canvas.height), I.reset(), C.reset(), o.reset();
|
|
36210
36212
|
}
|
|
36211
36213
|
return {
|
|
@@ -36216,12 +36218,12 @@ function nw(g, A) {
|
|
|
36216
36218
|
},
|
|
36217
36219
|
enable: gA,
|
|
36218
36220
|
disable: _A,
|
|
36219
|
-
bindFramebuffer:
|
|
36221
|
+
bindFramebuffer: YA,
|
|
36220
36222
|
drawBuffers: mA,
|
|
36221
36223
|
useProgram: se,
|
|
36222
36224
|
setBlending: de,
|
|
36223
36225
|
setMaterial: pe,
|
|
36224
|
-
setFlipSided:
|
|
36226
|
+
setFlipSided: PA,
|
|
36225
36227
|
setCullFace: Te,
|
|
36226
36228
|
setLineWidth: R,
|
|
36227
36229
|
setPolygonOffset: qe,
|
|
@@ -36243,7 +36245,7 @@ function nw(g, A) {
|
|
|
36243
36245
|
compressedTexSubImage3D: SA,
|
|
36244
36246
|
scissor: rA,
|
|
36245
36247
|
viewport: wA,
|
|
36246
|
-
reset:
|
|
36248
|
+
reset: OA
|
|
36247
36249
|
};
|
|
36248
36250
|
}
|
|
36249
36251
|
function sw(g, A, e, t, i, I, C) {
|
|
@@ -36459,8 +36461,8 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36459
36461
|
O.sort((IA, rA) => IA.start - rA.start);
|
|
36460
36462
|
let SA = 0;
|
|
36461
36463
|
for (let IA = 1; IA < O.length; IA++) {
|
|
36462
|
-
const rA = O[SA], wA = O[IA], NA = rA.start + rA.count, EA = Se(wA.start, u.width, 4),
|
|
36463
|
-
wA.start <= NA + 1 && EA ===
|
|
36464
|
+
const rA = O[SA], wA = O[IA], NA = rA.start + rA.count, EA = Se(wA.start, u.width, 4), OA = Se(rA.start, u.width, 4);
|
|
36465
|
+
wA.start <= NA + 1 && EA === OA && Se(wA.start + wA.count - 1, u.width, 4) === EA ? rA.count = Math.max(
|
|
36464
36466
|
rA.count,
|
|
36465
36467
|
wA.start + wA.count - rA.start
|
|
36466
36468
|
) : (++SA, O[SA] = wA);
|
|
@@ -36469,8 +36471,8 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36469
36471
|
const BA = g.getParameter(g.UNPACK_ROW_LENGTH), yA = g.getParameter(g.UNPACK_SKIP_PIXELS), FA = g.getParameter(g.UNPACK_SKIP_ROWS);
|
|
36470
36472
|
g.pixelStorei(g.UNPACK_ROW_LENGTH, u.width);
|
|
36471
36473
|
for (let IA = 0, rA = O.length; IA < rA; IA++) {
|
|
36472
|
-
const wA = O[IA], NA = Math.floor(wA.start / 4), EA = Math.ceil(wA.count / 4),
|
|
36473
|
-
g.pixelStorei(g.UNPACK_SKIP_PIXELS,
|
|
36474
|
+
const wA = O[IA], NA = Math.floor(wA.start / 4), EA = Math.ceil(wA.count / 4), OA = NA % u.width, G = Math.floor(NA / u.width), fA = EA, oA = 1;
|
|
36475
|
+
g.pixelStorei(g.UNPACK_SKIP_PIXELS, OA), g.pixelStorei(g.UNPACK_SKIP_ROWS, G), e.texSubImage2D(g.TEXTURE_2D, 0, OA, G, fA, oA, M, W, u.data);
|
|
36474
36476
|
}
|
|
36475
36477
|
b.clearUpdateRanges(), g.pixelStorei(g.UNPACK_ROW_LENGTH, BA), g.pixelStorei(g.UNPACK_SKIP_PIXELS, yA), g.pixelStorei(g.UNPACK_SKIP_ROWS, FA);
|
|
36476
36478
|
}
|
|
@@ -36491,22 +36493,22 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36491
36493
|
let NA = _(u.internalFormat, rA, wA, u.colorSpace, u.isVideoTexture);
|
|
36492
36494
|
vA(W, u);
|
|
36493
36495
|
let EA;
|
|
36494
|
-
const
|
|
36496
|
+
const OA = u.mipmaps, G = u.isVideoTexture !== !0, fA = SA.__version === void 0 || eA === !0, oA = O.dataReady, uA = D(u, IA);
|
|
36495
36497
|
if (u.isDepthTexture)
|
|
36496
36498
|
NA = l(u.format === Gi, u.type), fA && (G ? e.texStorage2D(g.TEXTURE_2D, 1, NA, IA.width, IA.height) : e.texImage2D(g.TEXTURE_2D, 0, NA, IA.width, IA.height, 0, rA, wA, null));
|
|
36497
36499
|
else if (u.isDataTexture)
|
|
36498
|
-
if (
|
|
36499
|
-
G && fA && e.texStorage2D(g.TEXTURE_2D, uA, NA,
|
|
36500
|
-
for (let iA = 0, z =
|
|
36501
|
-
EA =
|
|
36500
|
+
if (OA.length > 0) {
|
|
36501
|
+
G && fA && e.texStorage2D(g.TEXTURE_2D, uA, NA, OA[0].width, OA[0].height);
|
|
36502
|
+
for (let iA = 0, z = OA.length; iA < z; iA++)
|
|
36503
|
+
EA = OA[iA], G ? oA && e.texSubImage2D(g.TEXTURE_2D, iA, 0, 0, EA.width, EA.height, rA, wA, EA.data) : e.texImage2D(g.TEXTURE_2D, iA, NA, EA.width, EA.height, 0, rA, wA, EA.data);
|
|
36502
36504
|
u.generateMipmaps = !1;
|
|
36503
36505
|
} else
|
|
36504
36506
|
G ? (fA && e.texStorage2D(g.TEXTURE_2D, uA, NA, IA.width, IA.height), oA && ue(u, IA, rA, wA)) : e.texImage2D(g.TEXTURE_2D, 0, NA, IA.width, IA.height, 0, rA, wA, IA.data);
|
|
36505
36507
|
else if (u.isCompressedTexture)
|
|
36506
36508
|
if (u.isCompressedArrayTexture) {
|
|
36507
|
-
G && fA && e.texStorage3D(g.TEXTURE_2D_ARRAY, uA, NA,
|
|
36508
|
-
for (let iA = 0, z =
|
|
36509
|
-
if (EA =
|
|
36509
|
+
G && fA && e.texStorage3D(g.TEXTURE_2D_ARRAY, uA, NA, OA[0].width, OA[0].height, IA.depth);
|
|
36510
|
+
for (let iA = 0, z = OA.length; iA < z; iA++)
|
|
36511
|
+
if (EA = OA[iA], u.format !== Xt)
|
|
36510
36512
|
if (rA !== null)
|
|
36511
36513
|
if (G) {
|
|
36512
36514
|
if (oA)
|
|
@@ -36529,9 +36531,9 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36529
36531
|
else
|
|
36530
36532
|
G ? oA && e.texSubImage3D(g.TEXTURE_2D_ARRAY, iA, 0, 0, 0, EA.width, EA.height, IA.depth, rA, wA, EA.data) : e.texImage3D(g.TEXTURE_2D_ARRAY, iA, NA, EA.width, EA.height, IA.depth, 0, rA, wA, EA.data);
|
|
36531
36533
|
} else {
|
|
36532
|
-
G && fA && e.texStorage2D(g.TEXTURE_2D, uA, NA,
|
|
36533
|
-
for (let iA = 0, z =
|
|
36534
|
-
EA =
|
|
36534
|
+
G && fA && e.texStorage2D(g.TEXTURE_2D, uA, NA, OA[0].width, OA[0].height);
|
|
36535
|
+
for (let iA = 0, z = OA.length; iA < z; iA++)
|
|
36536
|
+
EA = OA[iA], u.format !== Xt ? rA !== null ? G ? oA && e.compressedTexSubImage2D(g.TEXTURE_2D, iA, 0, 0, EA.width, EA.height, rA, EA.data) : e.compressedTexImage2D(g.TEXTURE_2D, iA, NA, EA.width, EA.height, 0, EA.data) : LA("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : G ? oA && e.texSubImage2D(g.TEXTURE_2D, iA, 0, 0, EA.width, EA.height, rA, wA, EA.data) : e.texImage2D(g.TEXTURE_2D, iA, NA, EA.width, EA.height, 0, rA, wA, EA.data);
|
|
36535
36537
|
}
|
|
36536
36538
|
else if (u.isDataArrayTexture)
|
|
36537
36539
|
if (G) {
|
|
@@ -36561,13 +36563,13 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36561
36563
|
for (let sA = 0; sA < uA; sA++)
|
|
36562
36564
|
e.texImage2D(g.TEXTURE_2D, sA, NA, iA, z, 0, rA, wA, null), iA >>= 1, z >>= 1;
|
|
36563
36565
|
}
|
|
36564
|
-
} else if (
|
|
36566
|
+
} else if (OA.length > 0) {
|
|
36565
36567
|
if (G && fA) {
|
|
36566
|
-
const iA = bA(
|
|
36568
|
+
const iA = bA(OA[0]);
|
|
36567
36569
|
e.texStorage2D(g.TEXTURE_2D, uA, NA, iA.width, iA.height);
|
|
36568
36570
|
}
|
|
36569
|
-
for (let iA = 0, z =
|
|
36570
|
-
EA =
|
|
36571
|
+
for (let iA = 0, z = OA.length; iA < z; iA++)
|
|
36572
|
+
EA = OA[iA], G ? oA && e.texSubImage2D(g.TEXTURE_2D, iA, 0, 0, rA, wA, EA) : e.texImage2D(g.TEXTURE_2D, iA, NA, rA, wA, EA);
|
|
36571
36573
|
u.generateMipmaps = !1;
|
|
36572
36574
|
} else if (G) {
|
|
36573
36575
|
if (fA) {
|
|
@@ -36593,37 +36595,37 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36593
36595
|
const FA = u.isCompressedTexture || u.image[0].isCompressedTexture, IA = u.image[0] && u.image[0].isDataTexture, rA = [];
|
|
36594
36596
|
for (let z = 0; z < 6; z++)
|
|
36595
36597
|
!FA && !IA ? rA[z] = c(u.image[z], !0, i.maxCubemapSize) : rA[z] = IA ? u.image[z].image : u.image[z], rA[z] = ye(u, rA[z]);
|
|
36596
|
-
const wA = rA[0], NA = I.convert(u.format, u.colorSpace), EA = I.convert(u.type),
|
|
36598
|
+
const wA = rA[0], NA = I.convert(u.format, u.colorSpace), EA = I.convert(u.type), OA = _(u.internalFormat, NA, EA, u.colorSpace), G = u.isVideoTexture !== !0, fA = O.__version === void 0 || W === !0, oA = eA.dataReady;
|
|
36597
36599
|
let uA = D(u, wA);
|
|
36598
36600
|
vA(g.TEXTURE_CUBE_MAP, u);
|
|
36599
36601
|
let iA;
|
|
36600
36602
|
if (FA) {
|
|
36601
|
-
G && fA && e.texStorage2D(g.TEXTURE_CUBE_MAP, uA,
|
|
36603
|
+
G && fA && e.texStorage2D(g.TEXTURE_CUBE_MAP, uA, OA, wA.width, wA.height);
|
|
36602
36604
|
for (let z = 0; z < 6; z++) {
|
|
36603
36605
|
iA = rA[z].mipmaps;
|
|
36604
36606
|
for (let sA = 0; sA < iA.length; sA++) {
|
|
36605
36607
|
const UA = iA[sA];
|
|
36606
|
-
u.format !== Xt ? NA !== null ? G ? oA && e.compressedTexSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA, 0, 0, UA.width, UA.height, NA, UA.data) : e.compressedTexImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA,
|
|
36608
|
+
u.format !== Xt ? NA !== null ? G ? oA && e.compressedTexSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA, 0, 0, UA.width, UA.height, NA, UA.data) : e.compressedTexImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA, OA, UA.width, UA.height, 0, UA.data) : LA("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA, 0, 0, UA.width, UA.height, NA, EA, UA.data) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA, OA, UA.width, UA.height, 0, NA, EA, UA.data);
|
|
36607
36609
|
}
|
|
36608
36610
|
}
|
|
36609
36611
|
} else {
|
|
36610
36612
|
if (iA = u.mipmaps, G && fA) {
|
|
36611
36613
|
iA.length > 0 && uA++;
|
|
36612
36614
|
const z = bA(rA[0]);
|
|
36613
|
-
e.texStorage2D(g.TEXTURE_CUBE_MAP, uA,
|
|
36615
|
+
e.texStorage2D(g.TEXTURE_CUBE_MAP, uA, OA, z.width, z.height);
|
|
36614
36616
|
}
|
|
36615
36617
|
for (let z = 0; z < 6; z++)
|
|
36616
36618
|
if (IA) {
|
|
36617
|
-
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, 0, 0, rA[z].width, rA[z].height, NA, EA, rA[z].data) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0,
|
|
36619
|
+
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, 0, 0, rA[z].width, rA[z].height, NA, EA, rA[z].data) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, OA, rA[z].width, rA[z].height, 0, NA, EA, rA[z].data);
|
|
36618
36620
|
for (let sA = 0; sA < iA.length; sA++) {
|
|
36619
36621
|
const be = iA[sA].image[z].image;
|
|
36620
|
-
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, 0, 0, be.width, be.height, NA, EA, be.data) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1,
|
|
36622
|
+
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, 0, 0, be.width, be.height, NA, EA, be.data) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, OA, be.width, be.height, 0, NA, EA, be.data);
|
|
36621
36623
|
}
|
|
36622
36624
|
} else {
|
|
36623
|
-
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, 0, 0, NA, EA, rA[z]) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0,
|
|
36625
|
+
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, 0, 0, NA, EA, rA[z]) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, 0, OA, NA, EA, rA[z]);
|
|
36624
36626
|
for (let sA = 0; sA < iA.length; sA++) {
|
|
36625
36627
|
const UA = iA[sA];
|
|
36626
|
-
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, 0, 0, NA, EA, UA.image[z]) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1,
|
|
36628
|
+
G ? oA && e.texSubImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, 0, 0, NA, EA, UA.image[z]) : e.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X + z, sA + 1, OA, NA, EA, UA.image[z]);
|
|
36627
36629
|
}
|
|
36628
36630
|
}
|
|
36629
36631
|
}
|
|
@@ -36639,7 +36641,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36639
36641
|
}
|
|
36640
36642
|
e.bindFramebuffer(g.FRAMEBUFFER, b), qe(u) ? o.framebufferTexture2DMultisampleEXT(g.FRAMEBUFFER, W, eA, IA.__webglTexture, 0, R(u)) : (eA === g.TEXTURE_2D || eA >= g.TEXTURE_CUBE_MAP_POSITIVE_X && eA <= g.TEXTURE_CUBE_MAP_NEGATIVE_Z) && g.framebufferTexture2D(g.FRAMEBUFFER, W, eA, IA.__webglTexture, O), e.bindFramebuffer(g.FRAMEBUFFER, null);
|
|
36641
36643
|
}
|
|
36642
|
-
function
|
|
36644
|
+
function YA(b, u, M) {
|
|
36643
36645
|
if (g.bindRenderbuffer(g.RENDERBUFFER, b), u.depthBuffer) {
|
|
36644
36646
|
const W = u.depthTexture, eA = W && W.isDepthTexture ? W.type : null, O = l(u.stencilBuffer, eA), SA = u.stencilBuffer ? g.DEPTH_STENCIL_ATTACHMENT : g.DEPTH_ATTACHMENT;
|
|
36645
36647
|
qe(u) ? o.renderbufferStorageMultisampleEXT(g.RENDERBUFFER, R(u), O, u.width, u.height) : M ? g.renderbufferStorageMultisample(g.RENDERBUFFER, R(u), O, u.width, u.height) : g.renderbufferStorage(g.RENDERBUFFER, O, u.width, u.height), g.framebufferRenderbuffer(g.FRAMEBUFFER, SA, g.RENDERBUFFER, b);
|
|
@@ -36700,7 +36702,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36700
36702
|
u.__webglDepthbuffer = [];
|
|
36701
36703
|
for (let W = 0; W < 6; W++)
|
|
36702
36704
|
if (e.bindFramebuffer(g.FRAMEBUFFER, u.__webglFramebuffer[W]), u.__webglDepthbuffer[W] === void 0)
|
|
36703
|
-
u.__webglDepthbuffer[W] = g.createRenderbuffer(),
|
|
36705
|
+
u.__webglDepthbuffer[W] = g.createRenderbuffer(), YA(u.__webglDepthbuffer[W], b, !1);
|
|
36704
36706
|
else {
|
|
36705
36707
|
const eA = b.stencilBuffer ? g.DEPTH_STENCIL_ATTACHMENT : g.DEPTH_ATTACHMENT, O = u.__webglDepthbuffer[W];
|
|
36706
36708
|
g.bindRenderbuffer(g.RENDERBUFFER, O), g.framebufferRenderbuffer(g.FRAMEBUFFER, eA, g.RENDERBUFFER, O);
|
|
@@ -36708,7 +36710,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36708
36710
|
} else {
|
|
36709
36711
|
const W = b.texture.mipmaps;
|
|
36710
36712
|
if (W && W.length > 0 ? e.bindFramebuffer(g.FRAMEBUFFER, u.__webglFramebuffer[0]) : e.bindFramebuffer(g.FRAMEBUFFER, u.__webglFramebuffer), u.__webglDepthbuffer === void 0)
|
|
36711
|
-
u.__webglDepthbuffer = g.createRenderbuffer(),
|
|
36713
|
+
u.__webglDepthbuffer = g.createRenderbuffer(), YA(u.__webglDepthbuffer, b, !1);
|
|
36712
36714
|
else {
|
|
36713
36715
|
const eA = b.stencilBuffer ? g.DEPTH_STENCIL_ATTACHMENT : g.DEPTH_ATTACHMENT, O = u.__webglDepthbuffer;
|
|
36714
36716
|
g.bindRenderbuffer(g.RENDERBUFFER, O), g.framebufferRenderbuffer(g.FRAMEBUFFER, eA, g.RENDERBUFFER, O);
|
|
@@ -36753,7 +36755,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36753
36755
|
const FA = I.convert(yA.format, yA.colorSpace), IA = I.convert(yA.type), rA = _(yA.internalFormat, FA, IA, yA.colorSpace, b.isXRRenderTarget === !0), wA = R(b);
|
|
36754
36756
|
g.renderbufferStorageMultisample(g.RENDERBUFFER, wA, rA, b.width, b.height), g.framebufferRenderbuffer(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0 + BA, g.RENDERBUFFER, M.__webglColorRenderbuffer[BA]);
|
|
36755
36757
|
}
|
|
36756
|
-
g.bindRenderbuffer(g.RENDERBUFFER, null), b.depthBuffer && (M.__webglDepthRenderbuffer = g.createRenderbuffer(),
|
|
36758
|
+
g.bindRenderbuffer(g.RENDERBUFFER, null), b.depthBuffer && (M.__webglDepthRenderbuffer = g.createRenderbuffer(), YA(M.__webglDepthRenderbuffer, b, !0)), e.bindFramebuffer(g.FRAMEBUFFER, null);
|
|
36757
36759
|
}
|
|
36758
36760
|
}
|
|
36759
36761
|
if (O) {
|
|
@@ -36793,7 +36795,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36793
36795
|
}
|
|
36794
36796
|
}
|
|
36795
36797
|
}
|
|
36796
|
-
const pe = [],
|
|
36798
|
+
const pe = [], PA = [];
|
|
36797
36799
|
function Te(b) {
|
|
36798
36800
|
if (b.samples > 0) {
|
|
36799
36801
|
if (qe(b) === !1) {
|
|
@@ -36812,7 +36814,7 @@ function sw(g, A, e, t, i, I, C) {
|
|
|
36812
36814
|
const IA = t.get(u[FA]).__webglTexture;
|
|
36813
36815
|
g.framebufferTexture2D(g.DRAW_FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, IA, 0);
|
|
36814
36816
|
}
|
|
36815
|
-
g.blitFramebuffer(0, 0, M, W, 0, 0, M, W, eA, g.NEAREST), a === !0 && (pe.length = 0,
|
|
36817
|
+
g.blitFramebuffer(0, 0, M, W, 0, 0, M, W, eA, g.NEAREST), a === !0 && (pe.length = 0, PA.length = 0, pe.push(g.COLOR_ATTACHMENT0 + FA), b.depthBuffer && b.resolveDepthBuffer === !1 && (pe.push(O), PA.push(O), g.invalidateFramebuffer(g.DRAW_FRAMEBUFFER, PA)), g.invalidateFramebuffer(g.READ_FRAMEBUFFER, pe));
|
|
36816
36818
|
}
|
|
36817
36819
|
if (e.bindFramebuffer(g.READ_FRAMEBUFFER, null), e.bindFramebuffer(g.DRAW_FRAMEBUFFER, null), BA)
|
|
36818
36820
|
for (let FA = 0; FA < u.length; FA++) {
|
|
@@ -37094,8 +37096,8 @@ class hw extends kI {
|
|
|
37094
37096
|
}, this.setSession = async function(X) {
|
|
37095
37097
|
if (i = X, i !== null) {
|
|
37096
37098
|
if (_ = A.getRenderTarget(), i.addEventListener("select", V), i.addEventListener("selectstart", V), i.addEventListener("selectend", V), i.addEventListener("squeeze", V), i.addEventListener("squeezestart", V), i.addEventListener("squeezeend", V), i.addEventListener("end", q), i.addEventListener("inputsourceschange", P), f.xrCompatible !== !0 && await e.makeXRCompatible(), k = A.getPixelRatio(), A.getSize(y), c && "createProjectionLayer" in XRWebGLBinding.prototype) {
|
|
37097
|
-
let _A = null,
|
|
37098
|
-
f.depth && (mA = f.stencil ? e.DEPTH24_STENCIL8 : e.DEPTH_COMPONENT24, _A = f.stencil ? Gi : Tg,
|
|
37099
|
+
let _A = null, YA = null, mA = null;
|
|
37100
|
+
f.depth && (mA = f.stencil ? e.DEPTH24_STENCIL8 : e.DEPTH_COMPONENT24, _A = f.stencil ? Gi : Tg, YA = f.stencil ? rC : dg);
|
|
37099
37101
|
const se = {
|
|
37100
37102
|
colorFormat: e.RGBA8,
|
|
37101
37103
|
depthFormat: mA,
|
|
@@ -37107,7 +37109,7 @@ class hw extends kI {
|
|
|
37107
37109
|
{
|
|
37108
37110
|
format: Xt,
|
|
37109
37111
|
type: Lt,
|
|
37110
|
-
depthTexture: new hC(B.textureWidth, B.textureHeight,
|
|
37112
|
+
depthTexture: new hC(B.textureWidth, B.textureHeight, YA, void 0, void 0, void 0, void 0, void 0, void 0, _A),
|
|
37111
37113
|
stencilBuffer: f.stencil,
|
|
37112
37114
|
colorSpace: A.outputColorSpace,
|
|
37113
37115
|
samples: f.antialias ? 4 : 0,
|
|
@@ -37146,35 +37148,35 @@ class hw extends kI {
|
|
|
37146
37148
|
};
|
|
37147
37149
|
function P(X) {
|
|
37148
37150
|
for (let gA = 0; gA < X.removed.length; gA++) {
|
|
37149
|
-
const _A = X.removed[gA],
|
|
37150
|
-
|
|
37151
|
+
const _A = X.removed[gA], YA = w.indexOf(_A);
|
|
37152
|
+
YA >= 0 && (w[YA] = null, D[YA].disconnect(_A));
|
|
37151
37153
|
}
|
|
37152
37154
|
for (let gA = 0; gA < X.added.length; gA++) {
|
|
37153
37155
|
const _A = X.added[gA];
|
|
37154
|
-
let
|
|
37155
|
-
if (
|
|
37156
|
+
let YA = w.indexOf(_A);
|
|
37157
|
+
if (YA === -1) {
|
|
37156
37158
|
for (let se = 0; se < D.length; se++)
|
|
37157
37159
|
if (se >= w.length) {
|
|
37158
|
-
w.push(_A),
|
|
37160
|
+
w.push(_A), YA = se;
|
|
37159
37161
|
break;
|
|
37160
37162
|
} else if (w[se] === null) {
|
|
37161
|
-
w[se] = _A,
|
|
37163
|
+
w[se] = _A, YA = se;
|
|
37162
37164
|
break;
|
|
37163
37165
|
}
|
|
37164
|
-
if (
|
|
37166
|
+
if (YA === -1) break;
|
|
37165
37167
|
}
|
|
37166
|
-
const mA = D[
|
|
37168
|
+
const mA = D[YA];
|
|
37167
37169
|
mA && mA.connect(_A);
|
|
37168
37170
|
}
|
|
37169
37171
|
}
|
|
37170
37172
|
const Z = new v(), dA = new v();
|
|
37171
37173
|
function nA(X, gA, _A) {
|
|
37172
37174
|
Z.setFromMatrixPosition(gA.matrixWorld), dA.setFromMatrixPosition(_A.matrixWorld);
|
|
37173
|
-
const
|
|
37175
|
+
const YA = Z.distanceTo(dA), mA = gA.projectionMatrix.elements, se = _A.projectionMatrix.elements, Ze = mA[14] / (mA[10] - 1), Qe = mA[14] / (mA[10] + 1), de = (mA[9] + 1) / mA[5], pe = (mA[9] - 1) / mA[5], PA = (mA[8] - 1) / mA[0], Te = (se[8] + 1) / se[0], R = Ze * PA, qe = Ze * Te, he = YA / (-PA + Te), ye = he * -PA;
|
|
37174
37176
|
if (gA.matrixWorld.decompose(X.position, X.quaternion, X.scale), X.translateX(ye), X.translateZ(he), X.matrixWorld.compose(X.position, X.quaternion, X.scale), X.matrixWorldInverse.copy(X.matrixWorld).invert(), mA[10] === -1)
|
|
37175
37177
|
X.projectionMatrix.copy(gA.projectionMatrix), X.projectionMatrixInverse.copy(gA.projectionMatrixInverse);
|
|
37176
37178
|
else {
|
|
37177
|
-
const bA = Ze + he, b = Qe + he, u = R - ye, M = qe + (
|
|
37179
|
+
const bA = Ze + he, b = Qe + he, u = R - ye, M = qe + (YA - ye), W = de * Qe / b * bA, eA = pe * Qe / b * bA;
|
|
37178
37180
|
X.projectionMatrix.makePerspective(u, M, W, eA, bA, b), X.projectionMatrixInverse.copy(X.projectionMatrix).invert();
|
|
37179
37181
|
}
|
|
37180
37182
|
}
|
|
@@ -37188,11 +37190,11 @@ class hw extends kI {
|
|
|
37188
37190
|
depthNear: F.near,
|
|
37189
37191
|
depthFar: F.far
|
|
37190
37192
|
}), L = F.near, H = F.far), F.layers.mask = X.layers.mask | 6, x.layers.mask = F.layers.mask & 3, p.layers.mask = F.layers.mask & 5;
|
|
37191
|
-
const
|
|
37192
|
-
lA(F,
|
|
37193
|
+
const YA = X.parent, mA = F.cameras;
|
|
37194
|
+
lA(F, YA);
|
|
37193
37195
|
for (let se = 0; se < mA.length; se++)
|
|
37194
|
-
lA(mA[se],
|
|
37195
|
-
mA.length === 2 ? nA(F, x, p) : F.projectionMatrix.copy(x.projectionMatrix), vA(X, F,
|
|
37196
|
+
lA(mA[se], YA);
|
|
37197
|
+
mA.length === 2 ? nA(F, x, p) : F.projectionMatrix.copy(x.projectionMatrix), vA(X, F, YA);
|
|
37196
37198
|
};
|
|
37197
37199
|
function vA(X, gA, _A) {
|
|
37198
37200
|
_A === null ? X.matrix.copy(gA.matrixWorld) : (X.matrix.copy(_A.matrixWorld), X.matrix.invert(), X.matrix.multiply(gA.matrixWorld)), X.matrix.decompose(X.position, X.quaternion, X.scale), X.updateMatrixWorld(!0), X.projectionMatrix.copy(gA.projectionMatrix), X.projectionMatrixInverse.copy(gA.projectionMatrixInverse), X.isPerspectiveCamera && (X.fov = Jn * 2 * Math.atan(1 / X.projectionMatrix.elements[5]), X.zoom = 1);
|
|
@@ -37216,8 +37218,8 @@ class hw extends kI {
|
|
|
37216
37218
|
if (n = gA.getViewerPose(Q || C), d = gA, n !== null) {
|
|
37217
37219
|
const _A = n.views;
|
|
37218
37220
|
E !== null && (A.setRenderTargetFramebuffer(l, E.framebuffer), A.setRenderTarget(l));
|
|
37219
|
-
let
|
|
37220
|
-
_A.length !== F.cameras.length && (F.cameras.length = 0,
|
|
37221
|
+
let YA = !1;
|
|
37222
|
+
_A.length !== F.cameras.length && (F.cameras.length = 0, YA = !0);
|
|
37221
37223
|
for (let Qe = 0; Qe < _A.length; Qe++) {
|
|
37222
37224
|
const de = _A[Qe];
|
|
37223
37225
|
let pe = null;
|
|
@@ -37231,8 +37233,8 @@ class hw extends kI {
|
|
|
37231
37233
|
Te.depthStencilTexture
|
|
37232
37234
|
), A.setRenderTarget(l));
|
|
37233
37235
|
}
|
|
37234
|
-
let
|
|
37235
|
-
|
|
37236
|
+
let PA = N[Qe];
|
|
37237
|
+
PA === void 0 && (PA = new Ut(), PA.layers.enable(Qe), PA.viewport = new Ye(), N[Qe] = PA), PA.matrix.fromArray(de.transform.matrix), PA.matrix.decompose(PA.position, PA.quaternion, PA.scale), PA.projectionMatrix.fromArray(de.projectionMatrix), PA.projectionMatrixInverse.copy(PA.projectionMatrix).invert(), PA.viewport.set(pe.x, pe.y, pe.width, pe.height), Qe === 0 && (F.matrix.copy(PA.matrix), F.matrix.decompose(F.position, F.quaternion, F.scale)), YA === !0 && F.cameras.push(PA);
|
|
37236
37238
|
}
|
|
37237
37239
|
const mA = i.enabledFeatures;
|
|
37238
37240
|
if (mA && mA.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && c) {
|
|
@@ -37247,15 +37249,15 @@ class hw extends kI {
|
|
|
37247
37249
|
if (de) {
|
|
37248
37250
|
let pe = r[de];
|
|
37249
37251
|
pe || (pe = new uc(), r[de] = pe);
|
|
37250
|
-
const
|
|
37251
|
-
pe.sourceTexture =
|
|
37252
|
+
const PA = s.getCameraImage(de);
|
|
37253
|
+
pe.sourceTexture = PA;
|
|
37252
37254
|
}
|
|
37253
37255
|
}
|
|
37254
37256
|
}
|
|
37255
37257
|
}
|
|
37256
37258
|
for (let _A = 0; _A < D.length; _A++) {
|
|
37257
|
-
const
|
|
37258
|
-
|
|
37259
|
+
const YA = w[_A], mA = D[_A];
|
|
37260
|
+
YA !== null && mA !== void 0 && mA.update(YA, gA, Q || C);
|
|
37259
37261
|
}
|
|
37260
37262
|
KA && KA(X, gA), gA.detectedPlanes && t.dispatchEvent({ type: "planesdetected", data: gA }), d = null;
|
|
37261
37263
|
}
|
|
@@ -38006,10 +38008,10 @@ class Dw {
|
|
|
38006
38008
|
let nA = 0, lA = e.width, vA = e.height, KA = 1, Se = null, ue = null;
|
|
38007
38009
|
const X = new Ye(0, 0, lA, vA), gA = new Ye(0, 0, lA, vA);
|
|
38008
38010
|
let _A = !1;
|
|
38009
|
-
const
|
|
38011
|
+
const YA = new fc();
|
|
38010
38012
|
let mA = !1, se = !1;
|
|
38011
38013
|
const Ze = new Ve(), Qe = new v(), de = new Ye(), pe = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
|
|
38012
|
-
let
|
|
38014
|
+
let PA = !1;
|
|
38013
38015
|
function Te() {
|
|
38014
38016
|
return L === null ? KA : 1;
|
|
38015
38017
|
}
|
|
@@ -38036,9 +38038,9 @@ class Dw {
|
|
|
38036
38038
|
} catch (m) {
|
|
38037
38039
|
throw Ee("WebGLRenderer: " + m.message), m;
|
|
38038
38040
|
}
|
|
38039
|
-
let he, ye, bA, b, u, M, W, eA, O, SA, BA, yA, FA, IA, rA, wA, NA, EA,
|
|
38041
|
+
let he, ye, bA, b, u, M, W, eA, O, SA, BA, yA, FA, IA, rA, wA, NA, EA, OA, G, fA, oA, uA, iA;
|
|
38040
38042
|
function z() {
|
|
38041
|
-
he = new u2(R), he.init(), oA = new Bw(R, he), ye = new B2(R, he, A, oA), bA = new nw(R, he), ye.reversedDepthBuffer && B && bA.buffers.depth.setReversed(!0), b = new p2(R), u = new Wp(), M = new sw(R, he, bA, u, ye, oA, b), W = new r2(x), eA = new f2(x), O = new bu(R), uA = new n2(R, O), SA = new D2(R, O, b, uA), BA = new m2(R, SA, O, b),
|
|
38043
|
+
he = new u2(R), he.init(), oA = new Bw(R, he), ye = new B2(R, he, A, oA), bA = new nw(R, he), ye.reversedDepthBuffer && B && bA.buffers.depth.setReversed(!0), b = new p2(R), u = new Wp(), M = new sw(R, he, bA, u, ye, oA, b), W = new r2(x), eA = new f2(x), O = new bu(R), uA = new n2(R, O), SA = new D2(R, O, b, uA), BA = new m2(R, SA, O, b), OA = new w2(R, ye, M), wA = new E2(u), yA = new jp(x, W, eA, he, ye, uA, wA), FA = new xw(x, u), IA = new Zp(), rA = new gw(he), EA = new Q2(x, W, eA, bA, BA, d, a), NA = new aw(x, BA, ye), iA = new lw(R, b, ye, bA), G = new s2(R, he, b), fA = new _2(R, he, b), b.programs = yA.programs, x.capabilities = ye, x.extensions = he, x.properties = u, x.renderLists = IA, x.shadowMap = NA, x.state = bA, x.info = b;
|
|
38042
38044
|
}
|
|
38043
38045
|
z(), c !== Lt && (k = new b2(c, e.width, e.height, i, I));
|
|
38044
38046
|
const sA = new hw(x, R);
|
|
@@ -38253,11 +38255,11 @@ class Dw {
|
|
|
38253
38255
|
}
|
|
38254
38256
|
if (p === !0) return;
|
|
38255
38257
|
const T = sA.enabled === !0 && sA.isPresenting === !0, J = k !== null && (L === null || T) && k.begin(x, L);
|
|
38256
|
-
if (m.matrixWorldAutoUpdate === !0 && m.updateMatrixWorld(), U.parent === null && U.matrixWorldAutoUpdate === !0 && U.updateMatrixWorld(), sA.enabled === !0 && sA.isPresenting === !0 && (k === null || k.isCompositing() === !1) && (sA.cameraAutoUpdate === !0 && sA.updateCamera(U), U = sA.getCamera()), m.isScene === !0 && m.onBeforeRender(x, m, U, L), D = rA.get(m, y.length), D.init(U), y.push(D), Ze.multiplyMatrices(U.projectionMatrix, U.matrixWorldInverse),
|
|
38258
|
+
if (m.matrixWorldAutoUpdate === !0 && m.updateMatrixWorld(), U.parent === null && U.matrixWorldAutoUpdate === !0 && U.updateMatrixWorld(), sA.enabled === !0 && sA.isPresenting === !0 && (k === null || k.isCompositing() === !1) && (sA.cameraAutoUpdate === !0 && sA.updateCamera(U), U = sA.getCamera()), m.isScene === !0 && m.onBeforeRender(x, m, U, L), D = rA.get(m, y.length), D.init(U), y.push(D), Ze.multiplyMatrices(U.projectionMatrix, U.matrixWorldInverse), YA.setFromProjectionMatrix(Ze, Qg, U.reversedDepth), se = this.localClippingEnabled, mA = wA.init(this.clippingPlanes, se), l = IA.get(m, w.length), l.init(), w.push(l), sA.enabled === !0 && sA.isPresenting === !0) {
|
|
38257
38259
|
const DA = x.xr.getDepthSensingMesh();
|
|
38258
38260
|
DA !== null && oa(DA, U, -1 / 0, x.sortObjects);
|
|
38259
38261
|
}
|
|
38260
|
-
oa(m, U, 0, x.sortObjects), l.finish(), x.sortObjects === !0 && l.sort(Se, ue),
|
|
38262
|
+
oa(m, U, 0, x.sortObjects), l.finish(), x.sortObjects === !0 && l.sort(Se, ue), PA = sA.enabled === !1 || sA.isPresenting === !1 || sA.hasDepthSensing() === !1, PA && EA.addToRenderList(l, m), this.info.render.frame++, mA === !0 && wA.beginShadows();
|
|
38261
38263
|
const K = D.state.shadowsArray;
|
|
38262
38264
|
if (NA.render(K, m, U), mA === !0 && wA.endShadows(), this.info.autoReset === !0 && this.info.reset(), (J && k.hasRenderPass()) === !1) {
|
|
38263
38265
|
const DA = l.opaque, xA = l.transmissive;
|
|
@@ -38268,13 +38270,13 @@ class Dw {
|
|
|
38268
38270
|
const RA = pA[kA];
|
|
38269
38271
|
Rs(DA, xA, m, RA);
|
|
38270
38272
|
}
|
|
38271
|
-
|
|
38273
|
+
PA && EA.render(m);
|
|
38272
38274
|
for (let kA = 0, MA = pA.length; kA < MA; kA++) {
|
|
38273
38275
|
const RA = pA[kA];
|
|
38274
38276
|
ks(l, m, RA, RA.viewport);
|
|
38275
38277
|
}
|
|
38276
38278
|
} else
|
|
38277
|
-
xA.length > 0 && Rs(DA, xA, m, U),
|
|
38279
|
+
xA.length > 0 && Rs(DA, xA, m, U), PA && EA.render(m), ks(l, m, U);
|
|
38278
38280
|
}
|
|
38279
38281
|
L !== null && F === 0 && (M.updateMultisampleRenderTarget(L), M.updateRenderTargetMipmap(L)), J && k.end(x), m.isScene === !0 && m.onAfterRender(x, m, U), uA.resetDefaultState(), H = -1, V = null, y.pop(), y.length > 0 ? (D = y[y.length - 1], mA === !0 && wA.setGlobalState(x.clippingPlanes, D.state.camera)) : D = null, w.pop(), w.length > 0 ? l = w[w.length - 1] : l = null;
|
|
38280
38282
|
};
|
|
@@ -38288,12 +38290,12 @@ class Dw {
|
|
|
38288
38290
|
else if (m.isLight)
|
|
38289
38291
|
D.pushLight(m), m.castShadow && D.pushShadow(m);
|
|
38290
38292
|
else if (m.isSprite) {
|
|
38291
|
-
if (!m.frustumCulled ||
|
|
38293
|
+
if (!m.frustumCulled || YA.intersectsSprite(m)) {
|
|
38292
38294
|
J && de.setFromMatrixPosition(m.matrixWorld).applyMatrix4(Ze);
|
|
38293
38295
|
const DA = BA.update(m), xA = m.material;
|
|
38294
38296
|
xA.visible && l.push(m, DA, xA, T, de.z, null);
|
|
38295
38297
|
}
|
|
38296
|
-
} else if ((m.isMesh || m.isLine || m.isPoints) && (!m.frustumCulled ||
|
|
38298
|
+
} else if ((m.isMesh || m.isLine || m.isPoints) && (!m.frustumCulled || YA.intersectsObject(m))) {
|
|
38297
38299
|
const DA = BA.update(m), xA = m.material;
|
|
38298
38300
|
if (J && (m.boundingSphere !== void 0 ? (m.boundingSphere === null && m.computeBoundingSphere(), de.copy(m.boundingSphere.center)) : (DA.boundingSphere === null && DA.computeBoundingSphere(), de.copy(DA.boundingSphere.center)), de.applyMatrix4(m.matrixWorld).applyMatrix4(Ze)), Array.isArray(xA)) {
|
|
38299
38301
|
const pA = DA.groups;
|
|
@@ -38331,7 +38333,7 @@ class Dw {
|
|
|
38331
38333
|
const cA = D.state.transmissionRenderTarget[J.id], DA = J.viewport || q;
|
|
38332
38334
|
cA.setSize(DA.z * x.transmissionResolutionScale, DA.w * x.transmissionResolutionScale);
|
|
38333
38335
|
const xA = x.getRenderTarget(), pA = x.getActiveCubeFace(), kA = x.getActiveMipmapLevel();
|
|
38334
|
-
x.setRenderTarget(cA), x.getClearColor(dA), nA = x.getClearAlpha(), nA < 1 && x.setClearColor(16777215, 0.5), x.clear(),
|
|
38336
|
+
x.setRenderTarget(cA), x.getClearColor(dA), nA = x.getClearAlpha(), nA < 1 && x.setClearColor(16777215, 0.5), x.clear(), PA && EA.render(T);
|
|
38335
38337
|
const MA = x.toneMapping;
|
|
38336
38338
|
x.toneMapping = Bg;
|
|
38337
38339
|
const RA = J.viewport;
|
|
@@ -38416,7 +38418,7 @@ class Dw {
|
|
|
38416
38418
|
}
|
|
38417
38419
|
K.isBatchedMesh && (Ne.setOptional(R, K, "batchingTexture"), Ne.setValue(R, "batchingTexture", K._matricesTexture, M), Ne.setOptional(R, K, "batchingIdTexture"), Ne.setValue(R, "batchingIdTexture", K._indirectTexture, M), Ne.setOptional(R, K, "batchingColorTexture"), K._colorsTexture !== null && Ne.setValue(R, "batchingColorTexture", K._colorsTexture, M));
|
|
38418
38420
|
const Rt = T.morphAttributes;
|
|
38419
|
-
if ((Rt.position !== void 0 || Rt.normal !== void 0 || Rt.color !== void 0) &&
|
|
38421
|
+
if ((Rt.position !== void 0 || Rt.normal !== void 0 || Rt.color !== void 0) && OA.update(K, T, Dt), (_t || GA.receiveShadow !== K.receiveShadow) && (GA.receiveShadow = K.receiveShadow, Ne.setValue(R, "receiveShadow", K.receiveShadow)), J.isMeshGouraudMaterial && J.envMap !== null && (Bt.envMap.value = pA, Bt.flipEnvMap.value = pA.isCubeTexture && pA.isRenderTargetTexture === !1 ? -1 : 1), J.isMeshStandardMaterial && J.envMap === null && U.environment !== null && (Bt.envMapIntensity.value = U.environmentIntensity), Bt.dfgLUT !== void 0 && (Bt.dfgLUT.value = uw()), _t && (Ne.setValue(R, "toneMappingExposure", x.toneMappingExposure), GA.needsLights && Rc(Bt, GI), cA && J.fog === !0 && FA.refreshFogUniforms(Bt, cA), FA.refreshMaterialUniforms(Bt, J, KA, vA, D.state.transmissionRenderTarget[m.id]), ho.upload(R, Ms(GA), Bt, M)), J.isShaderMaterial && J.uniformsNeedUpdate === !0 && (ho.upload(R, Ms(GA), Bt, M), J.uniformsNeedUpdate = !1), J.isSpriteMaterial && Ne.setValue(R, "center", K.center), Ne.setValue(R, "modelViewMatrix", K.modelViewMatrix), Ne.setValue(R, "normalMatrix", K.normalMatrix), Ne.setValue(R, "modelMatrix", K.matrixWorld), J.isShaderMaterial || J.isRawShaderMaterial) {
|
|
38420
38422
|
const Ct = J.uniformsGroups;
|
|
38421
38423
|
for (let Et = 0, aa = Ct.length; Et < aa; Et++) {
|
|
38422
38424
|
const di = Ct[Et];
|
|
@@ -40625,28 +40627,28 @@ ci([
|
|
|
40625
40627
|
j({ type: Boolean })
|
|
40626
40628
|
], xg.prototype, "visible", 2);
|
|
40627
40629
|
ci([
|
|
40628
|
-
|
|
40630
|
+
ge()
|
|
40629
40631
|
], xg.prototype, "_values", 2);
|
|
40630
40632
|
ci([
|
|
40631
|
-
|
|
40633
|
+
ge()
|
|
40632
40634
|
], xg.prototype, "_errors", 2);
|
|
40633
40635
|
ci([
|
|
40634
|
-
|
|
40636
|
+
ge()
|
|
40635
40637
|
], xg.prototype, "_submitted", 2);
|
|
40636
40638
|
ci([
|
|
40637
|
-
|
|
40639
|
+
ge()
|
|
40638
40640
|
], xg.prototype, "_animateIn", 2);
|
|
40639
40641
|
xg = ci([
|
|
40640
40642
|
SI("form-overlay")
|
|
40641
40643
|
], xg);
|
|
40642
|
-
var Uw = Object.defineProperty, Lw = Object.getOwnPropertyDescriptor,
|
|
40644
|
+
var Uw = Object.defineProperty, Lw = Object.getOwnPropertyDescriptor, HA = (g, A, e, t) => {
|
|
40643
40645
|
for (var i = t > 1 ? void 0 : t ? Lw(A, e) : A, I = g.length - 1, C; I >= 0; I--)
|
|
40644
40646
|
(C = g[I]) && (i = (t ? C(A, e, i) : C(i)) || i);
|
|
40645
40647
|
return t && i && Uw(A, e, i), i;
|
|
40646
40648
|
};
|
|
40647
|
-
let
|
|
40649
|
+
let JA = class extends ng {
|
|
40648
40650
|
constructor() {
|
|
40649
|
-
super(...arguments), this.callManager = new Ji(), this.orbRenderer = null, this.audioAnalyzer = null, this.soundManager = null, this.orbContainerRef = Ko(), this.animationId = null, this.user_identity = ga(), this.callStatus = "idle", this.microphoneEnabled = !1, this.microphoneInitialized = !1, this.showPrivacyModal = !1, this.widgetConfig = null, this.configLoading = !1, this.formVisible = !1, this.formRequestId = "", this.formFields = [], this.domainBlocked = !1, this.privacyUrl = "https://hanc.ai/privacy", this.termsUrl = "https://hanc.ai/terms", this.termsEnabled = !1, this.termsContent = "", this.skipFetch = !1, this.apiBaseUrl = pC, this.buttonStartText = "Try to call", this.buttonConnectingText = "Connecting...", this.size = 370, this.containerPadding = 45, this.theme = "default", this.orbColors = {}, this.glowIntensity = 0.8, this.idleGlowMultiplier = 0.4, this.morphStrength = 1, this.noiseScale = 1.5, this.noiseSpeed = 0.3, this.fresnelPower = 2.5, this.rotationSpeed = 0.1, this.audioReactivity = 3, this.audioSmoothing = 0.9, this.idleMorphMultiplier = 0.25, this.colorContrast = 1.5, this.soundEnabled = !0, this.soundVolume = 0.25, this.soundPreset = "1", this.handleAudioTrack = async (g) => {
|
|
40651
|
+
super(...arguments), this.callManager = new Ji(), this.orbRenderer = null, this.audioAnalyzer = null, this.soundManager = null, this.orbContainerRef = Ko(), this.animationId = null, this.user_identity = ga(), this.callStatus = "idle", this.microphoneEnabled = !1, this.microphoneInitialized = !1, this.showPrivacyModal = !1, this.widgetConfig = null, this.configLoading = !1, this.formVisible = !1, this.formRequestId = "", this.formFields = [], this.domainBlocked = !1, this.errorKind = null, this.privacyUrl = "https://hanc.ai/privacy", this.termsUrl = "https://hanc.ai/terms", this.termsEnabled = !1, this.termsContent = "", this.skipFetch = !1, this.apiBaseUrl = pC, this.buttonStartText = "Try to call", this.buttonConnectingText = "Connecting...", this.size = 370, this.containerPadding = 45, this.theme = "default", this.orbColors = {}, this.glowIntensity = 0.8, this.idleGlowMultiplier = 0.4, this.morphStrength = 1, this.noiseScale = 1.5, this.noiseSpeed = 0.3, this.fresnelPower = 2.5, this.rotationSpeed = 0.1, this.audioReactivity = 3, this.audioSmoothing = 0.9, this.idleMorphMultiplier = 0.25, this.colorContrast = 1.5, this.soundEnabled = !0, this.soundVolume = 0.25, this.soundPreset = "1", this.handleAudioTrack = async (g) => {
|
|
40650
40652
|
const e = g.detail;
|
|
40651
40653
|
if (!(!e || !this.audioAnalyzer))
|
|
40652
40654
|
try {
|
|
@@ -40668,6 +40670,9 @@ let TA = class extends ng {
|
|
|
40668
40670
|
this.microphoneEnabled = !0, this.microphoneInitialized = !0;
|
|
40669
40671
|
}, this.handleMicrophoneDisabled = () => {
|
|
40670
40672
|
this.microphoneEnabled = !1, this.microphoneInitialized = !0;
|
|
40673
|
+
}, this.handleError = (g) => {
|
|
40674
|
+
const A = g.detail;
|
|
40675
|
+
this.errorKind = (A == null ? void 0 : A.status) === 429 ? "rate-limit" : "generic";
|
|
40671
40676
|
}, this.handleStatusChange = (g) => {
|
|
40672
40677
|
var e, t, i, I, C;
|
|
40673
40678
|
switch (g.detail) {
|
|
@@ -40692,7 +40697,7 @@ let TA = class extends ng {
|
|
|
40692
40697
|
break;
|
|
40693
40698
|
case "error":
|
|
40694
40699
|
this.callStatus = "error", (I = this.orbRenderer) == null || I.setActive(!1), (C = this.audioAnalyzer) == null || C.disconnect(), setTimeout(() => {
|
|
40695
|
-
this.callStatus === "error" && (this.callStatus = "idle", this.startIdleAnimation());
|
|
40700
|
+
this.callStatus === "error" && (this.callStatus = "idle", this.errorKind = null, this.startIdleAnimation());
|
|
40696
40701
|
}, 3e3);
|
|
40697
40702
|
break;
|
|
40698
40703
|
}
|
|
@@ -40832,10 +40837,10 @@ let TA = class extends ng {
|
|
|
40832
40837
|
this.animationId = requestAnimationFrame(g);
|
|
40833
40838
|
}
|
|
40834
40839
|
attachCallManagerListeners(g) {
|
|
40835
|
-
g.addEventListener("status-changed", this.handleStatusChange), g.addEventListener("audio-track", this.handleAudioTrack), g.addEventListener("local-audio-track", this.handleLocalAudioTrack), g.addEventListener("microphone-enabled", this.handleMicrophoneEnabled), g.addEventListener("microphone-disabled", this.handleMicrophoneDisabled), g.addEventListener("agent-command", this.handleAgentCommand);
|
|
40840
|
+
g.addEventListener("status-changed", this.handleStatusChange), g.addEventListener("audio-track", this.handleAudioTrack), g.addEventListener("local-audio-track", this.handleLocalAudioTrack), g.addEventListener("microphone-enabled", this.handleMicrophoneEnabled), g.addEventListener("microphone-disabled", this.handleMicrophoneDisabled), g.addEventListener("agent-command", this.handleAgentCommand), g.addEventListener("error", this.handleError);
|
|
40836
40841
|
}
|
|
40837
40842
|
detachCallManagerListeners(g) {
|
|
40838
|
-
g.removeEventListener("status-changed", this.handleStatusChange), g.removeEventListener("audio-track", this.handleAudioTrack), g.removeEventListener("local-audio-track", this.handleLocalAudioTrack), g.removeEventListener("microphone-enabled", this.handleMicrophoneEnabled), g.removeEventListener("microphone-disabled", this.handleMicrophoneDisabled), g.removeEventListener("agent-command", this.handleAgentCommand);
|
|
40843
|
+
g.removeEventListener("status-changed", this.handleStatusChange), g.removeEventListener("audio-track", this.handleAudioTrack), g.removeEventListener("local-audio-track", this.handleLocalAudioTrack), g.removeEventListener("microphone-enabled", this.handleMicrophoneEnabled), g.removeEventListener("microphone-disabled", this.handleMicrophoneDisabled), g.removeEventListener("agent-command", this.handleAgentCommand), g.removeEventListener("error", this.handleError);
|
|
40839
40844
|
}
|
|
40840
40845
|
// Fresh manager per call: prevents stale async events from mutating new call state.
|
|
40841
40846
|
resetCallManager() {
|
|
@@ -40913,7 +40918,7 @@ let TA = class extends ng {
|
|
|
40913
40918
|
case "connecting":
|
|
40914
40919
|
return this.buttonConnectingText;
|
|
40915
40920
|
case "error":
|
|
40916
|
-
return "Error";
|
|
40921
|
+
return this.errorKind === "rate-limit" ? "Too many attempts, try again soon" : "Error";
|
|
40917
40922
|
default:
|
|
40918
40923
|
return this.buttonStartText;
|
|
40919
40924
|
}
|
|
@@ -41172,130 +41177,133 @@ let TA = class extends ng {
|
|
|
41172
41177
|
`;
|
|
41173
41178
|
}
|
|
41174
41179
|
};
|
|
41175
|
-
|
|
41180
|
+
JA.styles = NI`
|
|
41176
41181
|
:host {
|
|
41177
41182
|
display: inline-block;
|
|
41178
41183
|
contain: layout style;
|
|
41179
41184
|
}
|
|
41180
41185
|
`;
|
|
41181
|
-
|
|
41186
|
+
HA([
|
|
41182
41187
|
j({ type: String, attribute: "agent-id" })
|
|
41183
|
-
],
|
|
41184
|
-
|
|
41188
|
+
], JA.prototype, "agentId", 2);
|
|
41189
|
+
HA([
|
|
41185
41190
|
j({ type: String, attribute: "voice-service-url" })
|
|
41186
|
-
],
|
|
41187
|
-
|
|
41188
|
-
|
|
41189
|
-
],
|
|
41190
|
-
|
|
41191
|
-
|
|
41192
|
-
],
|
|
41193
|
-
|
|
41194
|
-
|
|
41195
|
-
],
|
|
41196
|
-
|
|
41197
|
-
|
|
41198
|
-
],
|
|
41199
|
-
|
|
41200
|
-
|
|
41201
|
-
],
|
|
41202
|
-
|
|
41203
|
-
|
|
41204
|
-
],
|
|
41205
|
-
|
|
41206
|
-
|
|
41207
|
-
],
|
|
41208
|
-
|
|
41209
|
-
|
|
41210
|
-
],
|
|
41211
|
-
|
|
41212
|
-
|
|
41213
|
-
],
|
|
41214
|
-
|
|
41215
|
-
|
|
41216
|
-
],
|
|
41217
|
-
|
|
41191
|
+
], JA.prototype, "voiceServiceUrl", 2);
|
|
41192
|
+
HA([
|
|
41193
|
+
ge()
|
|
41194
|
+
], JA.prototype, "callStatus", 2);
|
|
41195
|
+
HA([
|
|
41196
|
+
ge()
|
|
41197
|
+
], JA.prototype, "microphoneEnabled", 2);
|
|
41198
|
+
HA([
|
|
41199
|
+
ge()
|
|
41200
|
+
], JA.prototype, "microphoneInitialized", 2);
|
|
41201
|
+
HA([
|
|
41202
|
+
ge()
|
|
41203
|
+
], JA.prototype, "showPrivacyModal", 2);
|
|
41204
|
+
HA([
|
|
41205
|
+
ge()
|
|
41206
|
+
], JA.prototype, "widgetConfig", 2);
|
|
41207
|
+
HA([
|
|
41208
|
+
ge()
|
|
41209
|
+
], JA.prototype, "configLoading", 2);
|
|
41210
|
+
HA([
|
|
41211
|
+
ge()
|
|
41212
|
+
], JA.prototype, "formVisible", 2);
|
|
41213
|
+
HA([
|
|
41214
|
+
ge()
|
|
41215
|
+
], JA.prototype, "formRequestId", 2);
|
|
41216
|
+
HA([
|
|
41217
|
+
ge()
|
|
41218
|
+
], JA.prototype, "formFields", 2);
|
|
41219
|
+
HA([
|
|
41220
|
+
ge()
|
|
41221
|
+
], JA.prototype, "domainBlocked", 2);
|
|
41222
|
+
HA([
|
|
41223
|
+
ge()
|
|
41224
|
+
], JA.prototype, "errorKind", 2);
|
|
41225
|
+
HA([
|
|
41218
41226
|
j({ type: String, attribute: "privacy-url" })
|
|
41219
|
-
],
|
|
41220
|
-
|
|
41227
|
+
], JA.prototype, "privacyUrl", 2);
|
|
41228
|
+
HA([
|
|
41221
41229
|
j({ type: String, attribute: "terms-url" })
|
|
41222
|
-
],
|
|
41223
|
-
|
|
41230
|
+
], JA.prototype, "termsUrl", 2);
|
|
41231
|
+
HA([
|
|
41224
41232
|
j({ type: Boolean, attribute: "terms-enabled" })
|
|
41225
|
-
],
|
|
41226
|
-
|
|
41233
|
+
], JA.prototype, "termsEnabled", 2);
|
|
41234
|
+
HA([
|
|
41227
41235
|
j({ type: String, attribute: "terms-content" })
|
|
41228
|
-
],
|
|
41229
|
-
|
|
41236
|
+
], JA.prototype, "termsContent", 2);
|
|
41237
|
+
HA([
|
|
41230
41238
|
j({ type: Boolean, attribute: "skip-fetch" })
|
|
41231
|
-
],
|
|
41232
|
-
|
|
41239
|
+
], JA.prototype, "skipFetch", 2);
|
|
41240
|
+
HA([
|
|
41233
41241
|
j({ type: String, attribute: "api-base-url" })
|
|
41234
|
-
],
|
|
41235
|
-
|
|
41242
|
+
], JA.prototype, "apiBaseUrl", 2);
|
|
41243
|
+
HA([
|
|
41236
41244
|
j({ type: String, attribute: "button-start-text" })
|
|
41237
|
-
],
|
|
41238
|
-
|
|
41245
|
+
], JA.prototype, "buttonStartText", 2);
|
|
41246
|
+
HA([
|
|
41239
41247
|
j({ type: String, attribute: "button-connecting-text" })
|
|
41240
|
-
],
|
|
41241
|
-
|
|
41248
|
+
], JA.prototype, "buttonConnectingText", 2);
|
|
41249
|
+
HA([
|
|
41242
41250
|
j({ type: Number, attribute: "size" })
|
|
41243
|
-
],
|
|
41244
|
-
|
|
41251
|
+
], JA.prototype, "size", 2);
|
|
41252
|
+
HA([
|
|
41245
41253
|
j({ type: Number, attribute: "container-padding" })
|
|
41246
|
-
],
|
|
41247
|
-
|
|
41254
|
+
], JA.prototype, "containerPadding", 2);
|
|
41255
|
+
HA([
|
|
41248
41256
|
j({ type: String, attribute: "theme", reflect: !0 })
|
|
41249
|
-
],
|
|
41250
|
-
|
|
41257
|
+
], JA.prototype, "theme", 2);
|
|
41258
|
+
HA([
|
|
41251
41259
|
j({ type: Object, attribute: "orb-colors" })
|
|
41252
|
-
],
|
|
41253
|
-
|
|
41260
|
+
], JA.prototype, "orbColors", 2);
|
|
41261
|
+
HA([
|
|
41254
41262
|
j({ type: Number, attribute: "glow-intensity" })
|
|
41255
|
-
],
|
|
41256
|
-
|
|
41263
|
+
], JA.prototype, "glowIntensity", 2);
|
|
41264
|
+
HA([
|
|
41257
41265
|
j({ type: Number, attribute: "idle-glow-multiplier" })
|
|
41258
|
-
],
|
|
41259
|
-
|
|
41266
|
+
], JA.prototype, "idleGlowMultiplier", 2);
|
|
41267
|
+
HA([
|
|
41260
41268
|
j({ type: Number, attribute: "morph-strength" })
|
|
41261
|
-
],
|
|
41262
|
-
|
|
41269
|
+
], JA.prototype, "morphStrength", 2);
|
|
41270
|
+
HA([
|
|
41263
41271
|
j({ type: Number, attribute: "noise-scale" })
|
|
41264
|
-
],
|
|
41265
|
-
|
|
41272
|
+
], JA.prototype, "noiseScale", 2);
|
|
41273
|
+
HA([
|
|
41266
41274
|
j({ type: Number, attribute: "noise-speed" })
|
|
41267
|
-
],
|
|
41268
|
-
|
|
41275
|
+
], JA.prototype, "noiseSpeed", 2);
|
|
41276
|
+
HA([
|
|
41269
41277
|
j({ type: Number, attribute: "fresnel-power" })
|
|
41270
|
-
],
|
|
41271
|
-
|
|
41278
|
+
], JA.prototype, "fresnelPower", 2);
|
|
41279
|
+
HA([
|
|
41272
41280
|
j({ type: Number, attribute: "rotation-speed" })
|
|
41273
|
-
],
|
|
41274
|
-
|
|
41281
|
+
], JA.prototype, "rotationSpeed", 2);
|
|
41282
|
+
HA([
|
|
41275
41283
|
j({ type: Number, attribute: "audio-reactivity" })
|
|
41276
|
-
],
|
|
41277
|
-
|
|
41284
|
+
], JA.prototype, "audioReactivity", 2);
|
|
41285
|
+
HA([
|
|
41278
41286
|
j({ type: Number, attribute: "audio-smoothing" })
|
|
41279
|
-
],
|
|
41280
|
-
|
|
41287
|
+
], JA.prototype, "audioSmoothing", 2);
|
|
41288
|
+
HA([
|
|
41281
41289
|
j({ type: Number, attribute: "idle-morph-multiplier" })
|
|
41282
|
-
],
|
|
41283
|
-
|
|
41290
|
+
], JA.prototype, "idleMorphMultiplier", 2);
|
|
41291
|
+
HA([
|
|
41284
41292
|
j({ type: Number, attribute: "color-contrast" })
|
|
41285
|
-
],
|
|
41286
|
-
|
|
41293
|
+
], JA.prototype, "colorContrast", 2);
|
|
41294
|
+
HA([
|
|
41287
41295
|
j({ type: Boolean, attribute: "sound-enabled" })
|
|
41288
|
-
],
|
|
41289
|
-
|
|
41296
|
+
], JA.prototype, "soundEnabled", 2);
|
|
41297
|
+
HA([
|
|
41290
41298
|
j({ type: Number, attribute: "sound-volume" })
|
|
41291
|
-
],
|
|
41292
|
-
|
|
41299
|
+
], JA.prototype, "soundVolume", 2);
|
|
41300
|
+
HA([
|
|
41293
41301
|
j({ type: String, attribute: "sound-preset" })
|
|
41294
|
-
],
|
|
41295
|
-
|
|
41302
|
+
], JA.prototype, "soundPreset", 2);
|
|
41303
|
+
JA = HA([
|
|
41296
41304
|
SI("hanc-ai-inline-call")
|
|
41297
|
-
],
|
|
41298
|
-
var Kw = Object.defineProperty, vw = Object.getOwnPropertyDescriptor,
|
|
41305
|
+
], JA);
|
|
41306
|
+
var Kw = Object.defineProperty, vw = Object.getOwnPropertyDescriptor, ie = (g, A, e, t) => {
|
|
41299
41307
|
for (var i = t > 1 ? void 0 : t ? vw(A, e) : A, I = g.length - 1, C; I >= 0; I--)
|
|
41300
41308
|
(C = g[I]) && (i = (t ? C(A, e, i) : C(i)) || i);
|
|
41301
41309
|
return t && i && Kw(A, e, i), i;
|
|
@@ -41803,115 +41811,115 @@ XA.styles = NI`
|
|
|
41803
41811
|
display: block;
|
|
41804
41812
|
}
|
|
41805
41813
|
`;
|
|
41806
|
-
|
|
41814
|
+
ie([
|
|
41807
41815
|
j({ type: String, attribute: "agent-id" })
|
|
41808
41816
|
], XA.prototype, "agentId", 2);
|
|
41809
|
-
|
|
41817
|
+
ie([
|
|
41810
41818
|
j({ type: String, attribute: "voice-service-url" })
|
|
41811
41819
|
], XA.prototype, "voiceServiceUrl", 2);
|
|
41812
|
-
|
|
41813
|
-
|
|
41820
|
+
ie([
|
|
41821
|
+
ge()
|
|
41814
41822
|
], XA.prototype, "callStatus", 2);
|
|
41815
|
-
|
|
41816
|
-
|
|
41823
|
+
ie([
|
|
41824
|
+
ge()
|
|
41817
41825
|
], XA.prototype, "microphoneEnabled", 2);
|
|
41818
|
-
|
|
41819
|
-
|
|
41826
|
+
ie([
|
|
41827
|
+
ge()
|
|
41820
41828
|
], XA.prototype, "microphoneInitialized", 2);
|
|
41821
|
-
|
|
41822
|
-
|
|
41829
|
+
ie([
|
|
41830
|
+
ge()
|
|
41823
41831
|
], XA.prototype, "showPrivacyModal", 2);
|
|
41824
|
-
|
|
41825
|
-
|
|
41832
|
+
ie([
|
|
41833
|
+
ge()
|
|
41826
41834
|
], XA.prototype, "widgetConfig", 2);
|
|
41827
|
-
|
|
41828
|
-
|
|
41835
|
+
ie([
|
|
41836
|
+
ge()
|
|
41829
41837
|
], XA.prototype, "configLoading", 2);
|
|
41830
|
-
|
|
41831
|
-
|
|
41838
|
+
ie([
|
|
41839
|
+
ge()
|
|
41832
41840
|
], XA.prototype, "domainBlocked", 2);
|
|
41833
|
-
|
|
41841
|
+
ie([
|
|
41834
41842
|
j({ type: String, attribute: "privacy-url" })
|
|
41835
41843
|
], XA.prototype, "privacyUrl", 2);
|
|
41836
|
-
|
|
41844
|
+
ie([
|
|
41837
41845
|
j({ type: String, attribute: "terms-url" })
|
|
41838
41846
|
], XA.prototype, "termsUrl", 2);
|
|
41839
|
-
|
|
41847
|
+
ie([
|
|
41840
41848
|
j({ type: Boolean, attribute: "terms-enabled" })
|
|
41841
41849
|
], XA.prototype, "termsEnabled", 2);
|
|
41842
|
-
|
|
41850
|
+
ie([
|
|
41843
41851
|
j({ type: String, attribute: "terms-content" })
|
|
41844
41852
|
], XA.prototype, "termsContent", 2);
|
|
41845
|
-
|
|
41853
|
+
ie([
|
|
41846
41854
|
j({ type: Boolean, attribute: "skip-fetch" })
|
|
41847
41855
|
], XA.prototype, "skipFetch", 2);
|
|
41848
|
-
|
|
41856
|
+
ie([
|
|
41849
41857
|
j({ type: String, attribute: "api-base-url" })
|
|
41850
41858
|
], XA.prototype, "apiBaseUrl", 2);
|
|
41851
|
-
|
|
41859
|
+
ie([
|
|
41852
41860
|
j({ type: String, attribute: "button-start-text" })
|
|
41853
41861
|
], XA.prototype, "buttonStartText", 2);
|
|
41854
|
-
|
|
41862
|
+
ie([
|
|
41855
41863
|
j({ type: String, attribute: "button-connecting-text" })
|
|
41856
41864
|
], XA.prototype, "buttonConnectingText", 2);
|
|
41857
|
-
|
|
41865
|
+
ie([
|
|
41858
41866
|
j({ type: String, attribute: "position" })
|
|
41859
41867
|
], XA.prototype, "position", 2);
|
|
41860
|
-
|
|
41868
|
+
ie([
|
|
41861
41869
|
j({ type: Number, attribute: "size" })
|
|
41862
41870
|
], XA.prototype, "size", 2);
|
|
41863
|
-
|
|
41871
|
+
ie([
|
|
41864
41872
|
j({ type: String, attribute: "theme" })
|
|
41865
41873
|
], XA.prototype, "theme", 2);
|
|
41866
|
-
|
|
41874
|
+
ie([
|
|
41867
41875
|
j({ type: Object, attribute: "orb-colors" })
|
|
41868
41876
|
], XA.prototype, "orbColors", 2);
|
|
41869
|
-
|
|
41877
|
+
ie([
|
|
41870
41878
|
j({ type: Number, attribute: "glow-intensity" })
|
|
41871
41879
|
], XA.prototype, "glowIntensity", 2);
|
|
41872
|
-
|
|
41880
|
+
ie([
|
|
41873
41881
|
j({ type: Number, attribute: "idle-glow-multiplier" })
|
|
41874
41882
|
], XA.prototype, "idleGlowMultiplier", 2);
|
|
41875
|
-
|
|
41883
|
+
ie([
|
|
41876
41884
|
j({ type: Number, attribute: "morph-strength" })
|
|
41877
41885
|
], XA.prototype, "morphStrength", 2);
|
|
41878
|
-
|
|
41886
|
+
ie([
|
|
41879
41887
|
j({ type: Number, attribute: "noise-scale" })
|
|
41880
41888
|
], XA.prototype, "noiseScale", 2);
|
|
41881
|
-
|
|
41889
|
+
ie([
|
|
41882
41890
|
j({ type: Number, attribute: "noise-speed" })
|
|
41883
41891
|
], XA.prototype, "noiseSpeed", 2);
|
|
41884
|
-
|
|
41892
|
+
ie([
|
|
41885
41893
|
j({ type: Number, attribute: "fresnel-power" })
|
|
41886
41894
|
], XA.prototype, "fresnelPower", 2);
|
|
41887
|
-
|
|
41895
|
+
ie([
|
|
41888
41896
|
j({ type: Number, attribute: "rotation-speed" })
|
|
41889
41897
|
], XA.prototype, "rotationSpeed", 2);
|
|
41890
|
-
|
|
41898
|
+
ie([
|
|
41891
41899
|
j({ type: Number, attribute: "audio-reactivity" })
|
|
41892
41900
|
], XA.prototype, "audioReactivity", 2);
|
|
41893
|
-
|
|
41901
|
+
ie([
|
|
41894
41902
|
j({ type: Number, attribute: "audio-smoothing" })
|
|
41895
41903
|
], XA.prototype, "audioSmoothing", 2);
|
|
41896
|
-
|
|
41904
|
+
ie([
|
|
41897
41905
|
j({ type: Number, attribute: "idle-morph-multiplier" })
|
|
41898
41906
|
], XA.prototype, "idleMorphMultiplier", 2);
|
|
41899
|
-
|
|
41907
|
+
ie([
|
|
41900
41908
|
j({ type: Number, attribute: "color-contrast" })
|
|
41901
41909
|
], XA.prototype, "colorContrast", 2);
|
|
41902
|
-
|
|
41910
|
+
ie([
|
|
41903
41911
|
j({ type: Boolean, attribute: "sound-enabled" })
|
|
41904
41912
|
], XA.prototype, "soundEnabled", 2);
|
|
41905
|
-
|
|
41913
|
+
ie([
|
|
41906
41914
|
j({ type: Number, attribute: "sound-volume" })
|
|
41907
41915
|
], XA.prototype, "soundVolume", 2);
|
|
41908
|
-
|
|
41916
|
+
ie([
|
|
41909
41917
|
j({ type: String, attribute: "sound-preset" })
|
|
41910
41918
|
], XA.prototype, "soundPreset", 2);
|
|
41911
|
-
XA =
|
|
41919
|
+
XA = ie([
|
|
41912
41920
|
SI("hanc-ai-floating-call")
|
|
41913
41921
|
], XA);
|
|
41914
|
-
var Jw = Object.defineProperty, Yw = Object.getOwnPropertyDescriptor,
|
|
41922
|
+
var Jw = Object.defineProperty, Yw = Object.getOwnPropertyDescriptor, Ie = (g, A, e, t) => {
|
|
41915
41923
|
for (var i = t > 1 ? void 0 : t ? Yw(A, e) : A, I = g.length - 1, C; I >= 0; I--)
|
|
41916
41924
|
(C = g[I]) && (i = (t ? C(A, e, i) : C(i)) || i);
|
|
41917
41925
|
return t && i && Jw(A, e, i), i;
|
|
@@ -42353,112 +42361,112 @@ ZA.styles = NI`
|
|
|
42353
42361
|
contain: layout style;
|
|
42354
42362
|
}
|
|
42355
42363
|
`;
|
|
42356
|
-
|
|
42364
|
+
Ie([
|
|
42357
42365
|
j({ type: String, attribute: "agent-id" })
|
|
42358
42366
|
], ZA.prototype, "agentId", 2);
|
|
42359
|
-
|
|
42367
|
+
Ie([
|
|
42360
42368
|
j({ type: String, attribute: "voice-service-url" })
|
|
42361
42369
|
], ZA.prototype, "voiceServiceUrl", 2);
|
|
42362
|
-
|
|
42363
|
-
|
|
42370
|
+
Ie([
|
|
42371
|
+
ge()
|
|
42364
42372
|
], ZA.prototype, "callStatus", 2);
|
|
42365
|
-
|
|
42366
|
-
|
|
42373
|
+
Ie([
|
|
42374
|
+
ge()
|
|
42367
42375
|
], ZA.prototype, "microphoneEnabled", 2);
|
|
42368
|
-
|
|
42369
|
-
|
|
42376
|
+
Ie([
|
|
42377
|
+
ge()
|
|
42370
42378
|
], ZA.prototype, "microphoneInitialized", 2);
|
|
42371
|
-
|
|
42372
|
-
|
|
42379
|
+
Ie([
|
|
42380
|
+
ge()
|
|
42373
42381
|
], ZA.prototype, "showPrivacyModal", 2);
|
|
42374
|
-
|
|
42375
|
-
|
|
42382
|
+
Ie([
|
|
42383
|
+
ge()
|
|
42376
42384
|
], ZA.prototype, "widgetConfig", 2);
|
|
42377
|
-
|
|
42378
|
-
|
|
42385
|
+
Ie([
|
|
42386
|
+
ge()
|
|
42379
42387
|
], ZA.prototype, "configLoading", 2);
|
|
42380
|
-
|
|
42381
|
-
|
|
42388
|
+
Ie([
|
|
42389
|
+
ge()
|
|
42382
42390
|
], ZA.prototype, "domainBlocked", 2);
|
|
42383
|
-
|
|
42391
|
+
Ie([
|
|
42384
42392
|
j({ type: String, attribute: "privacy-url" })
|
|
42385
42393
|
], ZA.prototype, "privacyUrl", 2);
|
|
42386
|
-
|
|
42394
|
+
Ie([
|
|
42387
42395
|
j({ type: String, attribute: "terms-url" })
|
|
42388
42396
|
], ZA.prototype, "termsUrl", 2);
|
|
42389
|
-
|
|
42397
|
+
Ie([
|
|
42390
42398
|
j({ type: Boolean, attribute: "terms-enabled" })
|
|
42391
42399
|
], ZA.prototype, "termsEnabled", 2);
|
|
42392
|
-
|
|
42400
|
+
Ie([
|
|
42393
42401
|
j({ type: String, attribute: "terms-content" })
|
|
42394
42402
|
], ZA.prototype, "termsContent", 2);
|
|
42395
|
-
|
|
42403
|
+
Ie([
|
|
42396
42404
|
j({ type: Boolean, attribute: "skip-fetch" })
|
|
42397
42405
|
], ZA.prototype, "skipFetch", 2);
|
|
42398
|
-
|
|
42406
|
+
Ie([
|
|
42399
42407
|
j({ type: String, attribute: "api-base-url" })
|
|
42400
42408
|
], ZA.prototype, "apiBaseUrl", 2);
|
|
42401
|
-
|
|
42409
|
+
Ie([
|
|
42402
42410
|
j({ type: String, attribute: "button-start-text" })
|
|
42403
42411
|
], ZA.prototype, "buttonStartText", 2);
|
|
42404
|
-
|
|
42412
|
+
Ie([
|
|
42405
42413
|
j({ type: String, attribute: "button-connecting-text" })
|
|
42406
42414
|
], ZA.prototype, "buttonConnectingText", 2);
|
|
42407
|
-
|
|
42415
|
+
Ie([
|
|
42408
42416
|
j({ type: String, attribute: "button-end-text" })
|
|
42409
42417
|
], ZA.prototype, "buttonEndText", 2);
|
|
42410
|
-
|
|
42418
|
+
Ie([
|
|
42411
42419
|
j({ type: Number, attribute: "orb-size" })
|
|
42412
42420
|
], ZA.prototype, "orbSize", 2);
|
|
42413
|
-
|
|
42421
|
+
Ie([
|
|
42414
42422
|
j({ type: String, attribute: "theme" })
|
|
42415
42423
|
], ZA.prototype, "theme", 2);
|
|
42416
|
-
|
|
42424
|
+
Ie([
|
|
42417
42425
|
j({ type: Object, attribute: "orb-colors" })
|
|
42418
42426
|
], ZA.prototype, "orbColors", 2);
|
|
42419
|
-
|
|
42427
|
+
Ie([
|
|
42420
42428
|
j({ type: Number, attribute: "glow-intensity" })
|
|
42421
42429
|
], ZA.prototype, "glowIntensity", 2);
|
|
42422
|
-
|
|
42430
|
+
Ie([
|
|
42423
42431
|
j({ type: Number, attribute: "idle-glow-multiplier" })
|
|
42424
42432
|
], ZA.prototype, "idleGlowMultiplier", 2);
|
|
42425
|
-
|
|
42433
|
+
Ie([
|
|
42426
42434
|
j({ type: Number, attribute: "morph-strength" })
|
|
42427
42435
|
], ZA.prototype, "morphStrength", 2);
|
|
42428
|
-
|
|
42436
|
+
Ie([
|
|
42429
42437
|
j({ type: Number, attribute: "noise-scale" })
|
|
42430
42438
|
], ZA.prototype, "noiseScale", 2);
|
|
42431
|
-
|
|
42439
|
+
Ie([
|
|
42432
42440
|
j({ type: Number, attribute: "noise-speed" })
|
|
42433
42441
|
], ZA.prototype, "noiseSpeed", 2);
|
|
42434
|
-
|
|
42442
|
+
Ie([
|
|
42435
42443
|
j({ type: Number, attribute: "fresnel-power" })
|
|
42436
42444
|
], ZA.prototype, "fresnelPower", 2);
|
|
42437
|
-
|
|
42445
|
+
Ie([
|
|
42438
42446
|
j({ type: Number, attribute: "rotation-speed" })
|
|
42439
42447
|
], ZA.prototype, "rotationSpeed", 2);
|
|
42440
|
-
|
|
42448
|
+
Ie([
|
|
42441
42449
|
j({ type: Number, attribute: "audio-reactivity" })
|
|
42442
42450
|
], ZA.prototype, "audioReactivity", 2);
|
|
42443
|
-
|
|
42451
|
+
Ie([
|
|
42444
42452
|
j({ type: Number, attribute: "audio-smoothing" })
|
|
42445
42453
|
], ZA.prototype, "audioSmoothing", 2);
|
|
42446
|
-
|
|
42454
|
+
Ie([
|
|
42447
42455
|
j({ type: Number, attribute: "idle-morph-multiplier" })
|
|
42448
42456
|
], ZA.prototype, "idleMorphMultiplier", 2);
|
|
42449
|
-
|
|
42457
|
+
Ie([
|
|
42450
42458
|
j({ type: Number, attribute: "color-contrast" })
|
|
42451
42459
|
], ZA.prototype, "colorContrast", 2);
|
|
42452
|
-
|
|
42460
|
+
Ie([
|
|
42453
42461
|
j({ type: Boolean, attribute: "sound-enabled" })
|
|
42454
42462
|
], ZA.prototype, "soundEnabled", 2);
|
|
42455
|
-
|
|
42463
|
+
Ie([
|
|
42456
42464
|
j({ type: Number, attribute: "sound-volume" })
|
|
42457
42465
|
], ZA.prototype, "soundVolume", 2);
|
|
42458
|
-
|
|
42466
|
+
Ie([
|
|
42459
42467
|
j({ type: String, attribute: "sound-preset" })
|
|
42460
42468
|
], ZA.prototype, "soundPreset", 2);
|
|
42461
|
-
ZA =
|
|
42469
|
+
ZA = Ie([
|
|
42462
42470
|
SI("hanc-ai-pill-call")
|
|
42463
42471
|
], ZA);
|
|
42464
42472
|
var Tw = Object.defineProperty, qw = Object.getOwnPropertyDescriptor, Ae = (g, A, e, t) => {
|
|
@@ -42466,7 +42474,7 @@ var Tw = Object.defineProperty, qw = Object.getOwnPropertyDescriptor, Ae = (g, A
|
|
|
42466
42474
|
(C = g[I]) && (i = (t ? C(A, e, i) : C(i)) || i);
|
|
42467
42475
|
return t && i && Tw(A, e, i), i;
|
|
42468
42476
|
};
|
|
42469
|
-
let
|
|
42477
|
+
let jA = class extends ng {
|
|
42470
42478
|
constructor() {
|
|
42471
42479
|
super(...arguments), this.callManager = new Ji(), this.orbRenderer = null, this.audioAnalyzer = null, this.soundManager = null, this.orbContainerRef = Ko(), this.animationId = null, this.user_identity = ga(), this.callStatus = "idle", this.microphoneEnabled = !1, this.microphoneInitialized = !1, this.showPrivacyModal = !1, this.widgetConfig = null, this.configLoading = !1, this.domainBlocked = !1, this.privacyUrl = "https://hanc.ai/privacy", this.termsUrl = "https://hanc.ai/terms", this.termsEnabled = !1, this.termsContent = "", this.skipFetch = !1, this.apiBaseUrl = pC, this.buttonStartText = "Talk to AI Agent", this.buttonConnectingText = "Connecting...", this.buttonEndText = "End call", this.position = "bottom-right", this.orbSize = 48, this.theme = "default", this.orbColors = {}, this.glowIntensity = 0.8, this.idleGlowMultiplier = 0.4, this.morphStrength = 1, this.noiseScale = 1.5, this.noiseSpeed = 0.3, this.fresnelPower = 2.5, this.rotationSpeed = 0.1, this.audioReactivity = 3, this.audioSmoothing = 0.9, this.idleMorphMultiplier = 0.25, this.colorContrast = 1.5, this.soundEnabled = !0, this.soundVolume = 0.25, this.soundPreset = "1", this.handleAudioTrack = async (g) => {
|
|
42472
42480
|
const e = g.detail;
|
|
@@ -42892,127 +42900,127 @@ let VA = class extends ng {
|
|
|
42892
42900
|
`;
|
|
42893
42901
|
}
|
|
42894
42902
|
};
|
|
42895
|
-
|
|
42903
|
+
jA.styles = NI`
|
|
42896
42904
|
:host {
|
|
42897
42905
|
display: block;
|
|
42898
42906
|
}
|
|
42899
42907
|
`;
|
|
42900
42908
|
Ae([
|
|
42901
42909
|
j({ type: String, attribute: "agent-id" })
|
|
42902
|
-
],
|
|
42910
|
+
], jA.prototype, "agentId", 2);
|
|
42903
42911
|
Ae([
|
|
42904
42912
|
j({ type: String, attribute: "voice-service-url" })
|
|
42905
|
-
],
|
|
42913
|
+
], jA.prototype, "voiceServiceUrl", 2);
|
|
42906
42914
|
Ae([
|
|
42907
|
-
|
|
42908
|
-
],
|
|
42915
|
+
ge()
|
|
42916
|
+
], jA.prototype, "callStatus", 2);
|
|
42909
42917
|
Ae([
|
|
42910
|
-
|
|
42911
|
-
],
|
|
42918
|
+
ge()
|
|
42919
|
+
], jA.prototype, "microphoneEnabled", 2);
|
|
42912
42920
|
Ae([
|
|
42913
|
-
|
|
42914
|
-
],
|
|
42921
|
+
ge()
|
|
42922
|
+
], jA.prototype, "microphoneInitialized", 2);
|
|
42915
42923
|
Ae([
|
|
42916
|
-
|
|
42917
|
-
],
|
|
42924
|
+
ge()
|
|
42925
|
+
], jA.prototype, "showPrivacyModal", 2);
|
|
42918
42926
|
Ae([
|
|
42919
|
-
|
|
42920
|
-
],
|
|
42927
|
+
ge()
|
|
42928
|
+
], jA.prototype, "widgetConfig", 2);
|
|
42921
42929
|
Ae([
|
|
42922
|
-
|
|
42923
|
-
],
|
|
42930
|
+
ge()
|
|
42931
|
+
], jA.prototype, "configLoading", 2);
|
|
42924
42932
|
Ae([
|
|
42925
|
-
|
|
42926
|
-
],
|
|
42933
|
+
ge()
|
|
42934
|
+
], jA.prototype, "domainBlocked", 2);
|
|
42927
42935
|
Ae([
|
|
42928
42936
|
j({ type: String, attribute: "privacy-url" })
|
|
42929
|
-
],
|
|
42937
|
+
], jA.prototype, "privacyUrl", 2);
|
|
42930
42938
|
Ae([
|
|
42931
42939
|
j({ type: String, attribute: "terms-url" })
|
|
42932
|
-
],
|
|
42940
|
+
], jA.prototype, "termsUrl", 2);
|
|
42933
42941
|
Ae([
|
|
42934
42942
|
j({ type: Boolean, attribute: "terms-enabled" })
|
|
42935
|
-
],
|
|
42943
|
+
], jA.prototype, "termsEnabled", 2);
|
|
42936
42944
|
Ae([
|
|
42937
42945
|
j({ type: String, attribute: "terms-content" })
|
|
42938
|
-
],
|
|
42946
|
+
], jA.prototype, "termsContent", 2);
|
|
42939
42947
|
Ae([
|
|
42940
42948
|
j({ type: Boolean, attribute: "skip-fetch" })
|
|
42941
|
-
],
|
|
42949
|
+
], jA.prototype, "skipFetch", 2);
|
|
42942
42950
|
Ae([
|
|
42943
42951
|
j({ type: String, attribute: "api-base-url" })
|
|
42944
|
-
],
|
|
42952
|
+
], jA.prototype, "apiBaseUrl", 2);
|
|
42945
42953
|
Ae([
|
|
42946
42954
|
j({ type: String, attribute: "button-start-text" })
|
|
42947
|
-
],
|
|
42955
|
+
], jA.prototype, "buttonStartText", 2);
|
|
42948
42956
|
Ae([
|
|
42949
42957
|
j({ type: String, attribute: "button-connecting-text" })
|
|
42950
|
-
],
|
|
42958
|
+
], jA.prototype, "buttonConnectingText", 2);
|
|
42951
42959
|
Ae([
|
|
42952
42960
|
j({ type: String, attribute: "button-end-text" })
|
|
42953
|
-
],
|
|
42961
|
+
], jA.prototype, "buttonEndText", 2);
|
|
42954
42962
|
Ae([
|
|
42955
42963
|
j({ type: String, attribute: "position" })
|
|
42956
|
-
],
|
|
42964
|
+
], jA.prototype, "position", 2);
|
|
42957
42965
|
Ae([
|
|
42958
42966
|
j({ type: Number, attribute: "orb-size" })
|
|
42959
|
-
],
|
|
42967
|
+
], jA.prototype, "orbSize", 2);
|
|
42960
42968
|
Ae([
|
|
42961
42969
|
j({ type: String, attribute: "theme" })
|
|
42962
|
-
],
|
|
42970
|
+
], jA.prototype, "theme", 2);
|
|
42963
42971
|
Ae([
|
|
42964
42972
|
j({ type: Object, attribute: "orb-colors" })
|
|
42965
|
-
],
|
|
42973
|
+
], jA.prototype, "orbColors", 2);
|
|
42966
42974
|
Ae([
|
|
42967
42975
|
j({ type: Number, attribute: "glow-intensity" })
|
|
42968
|
-
],
|
|
42976
|
+
], jA.prototype, "glowIntensity", 2);
|
|
42969
42977
|
Ae([
|
|
42970
42978
|
j({ type: Number, attribute: "idle-glow-multiplier" })
|
|
42971
|
-
],
|
|
42979
|
+
], jA.prototype, "idleGlowMultiplier", 2);
|
|
42972
42980
|
Ae([
|
|
42973
42981
|
j({ type: Number, attribute: "morph-strength" })
|
|
42974
|
-
],
|
|
42982
|
+
], jA.prototype, "morphStrength", 2);
|
|
42975
42983
|
Ae([
|
|
42976
42984
|
j({ type: Number, attribute: "noise-scale" })
|
|
42977
|
-
],
|
|
42985
|
+
], jA.prototype, "noiseScale", 2);
|
|
42978
42986
|
Ae([
|
|
42979
42987
|
j({ type: Number, attribute: "noise-speed" })
|
|
42980
|
-
],
|
|
42988
|
+
], jA.prototype, "noiseSpeed", 2);
|
|
42981
42989
|
Ae([
|
|
42982
42990
|
j({ type: Number, attribute: "fresnel-power" })
|
|
42983
|
-
],
|
|
42991
|
+
], jA.prototype, "fresnelPower", 2);
|
|
42984
42992
|
Ae([
|
|
42985
42993
|
j({ type: Number, attribute: "rotation-speed" })
|
|
42986
|
-
],
|
|
42994
|
+
], jA.prototype, "rotationSpeed", 2);
|
|
42987
42995
|
Ae([
|
|
42988
42996
|
j({ type: Number, attribute: "audio-reactivity" })
|
|
42989
|
-
],
|
|
42997
|
+
], jA.prototype, "audioReactivity", 2);
|
|
42990
42998
|
Ae([
|
|
42991
42999
|
j({ type: Number, attribute: "audio-smoothing" })
|
|
42992
|
-
],
|
|
43000
|
+
], jA.prototype, "audioSmoothing", 2);
|
|
42993
43001
|
Ae([
|
|
42994
43002
|
j({ type: Number, attribute: "idle-morph-multiplier" })
|
|
42995
|
-
],
|
|
43003
|
+
], jA.prototype, "idleMorphMultiplier", 2);
|
|
42996
43004
|
Ae([
|
|
42997
43005
|
j({ type: Number, attribute: "color-contrast" })
|
|
42998
|
-
],
|
|
43006
|
+
], jA.prototype, "colorContrast", 2);
|
|
42999
43007
|
Ae([
|
|
43000
43008
|
j({ type: Boolean, attribute: "sound-enabled" })
|
|
43001
|
-
],
|
|
43009
|
+
], jA.prototype, "soundEnabled", 2);
|
|
43002
43010
|
Ae([
|
|
43003
43011
|
j({ type: Number, attribute: "sound-volume" })
|
|
43004
|
-
],
|
|
43012
|
+
], jA.prototype, "soundVolume", 2);
|
|
43005
43013
|
Ae([
|
|
43006
43014
|
j({ type: String, attribute: "sound-preset" })
|
|
43007
|
-
],
|
|
43008
|
-
|
|
43015
|
+
], jA.prototype, "soundPreset", 2);
|
|
43016
|
+
jA = Ae([
|
|
43009
43017
|
SI("hanc-ai-pill-floating-call")
|
|
43010
|
-
],
|
|
43018
|
+
], jA);
|
|
43011
43019
|
export {
|
|
43012
43020
|
XA as FloatingCall,
|
|
43013
|
-
|
|
43021
|
+
JA as InlineCall,
|
|
43014
43022
|
ZA as PillCall,
|
|
43015
|
-
|
|
43023
|
+
jA as PillFloatingCall,
|
|
43016
43024
|
Aa as SoundManager,
|
|
43017
43025
|
Cm as applyTheme,
|
|
43018
43026
|
om as clearConfigCache,
|