@dxos/shell 0.4.10-main.e2d2318 → 0.4.10-main.e3078ed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/{index-Ds8vbDTs.mjs → index-Cms4wG79.mjs} +38 -22
- package/dist/bundle/index-Cms4wG79.mjs.map +1 -0
- package/dist/bundle/{index-CaK84FtA.mjs → index-DACjPI-n.mjs} +709 -691
- package/dist/bundle/index-DACjPI-n.mjs.map +1 -0
- package/dist/bundle/shell.mjs +1 -1
- package/dist/bundle/shell.umd.js +11 -11
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +3 -2
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/types/src/playwright/invitations.spec.js +3 -1
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +3 -0
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/testing/shell-manager.d.ts.map +1 -1
- package/dist/types/src/testing/shell-manager.js +3 -2
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/package.json +22 -22
- package/src/playwright/invitations.spec.ts +3 -1
- package/src/stories/Invitations.e2e-stories.tsx +3 -0
- package/src/testing/shell-manager.ts +3 -2
- package/dist/bundle/index-CaK84FtA.mjs.map +0 -1
- package/dist/bundle/index-Ds8vbDTs.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import * as $7SXl2$reactdom from "react-dom";
|
|
|
4
4
|
import $7SXl2$reactdom__default, { flushSync } from "react-dom";
|
|
5
5
|
import { CaretDown, CaretRight, Minus, Check, Database, Power, Plus, Copy, ImageSquare, Palette, Compass, Desktop, Robot, DeviceMobile, Devices, DotsThree, Intersect, X, Placeholder, Warning, PlugsConnected, Plugs, CopySimple, QrCode, Textbox, UserPlus, UsersThree, Planet } from "@phosphor-icons/react";
|
|
6
6
|
import { SpaceMember as SpaceMember$1, useMembers, useSpaceInvitations, useSpace } from "@dxos/react-client/echo";
|
|
7
|
-
import { useClient as useClient$1, useAgentHostingProviderClient, AlreadyJoinedError, useMulticastObservable, useConfig, ShellLayout as ShellLayout$1, ShellDisplay as ShellDisplay$1, ClientServicesProxy as ClientServicesProxy$1, Client, ClientContext as ClientContext$1, SystemStatus as SystemStatus$1, Config as Config$1 } from "@dxos/react-client";
|
|
7
|
+
import { useClient as useClient$1, useAgentHostingProviderClient, AlreadyJoinedError, useMulticastObservable as useMulticastObservable$1, useConfig, ShellLayout as ShellLayout$1, ShellDisplay as ShellDisplay$1, ClientServicesProxy as ClientServicesProxy$1, Client, ClientContext as ClientContext$1, SystemStatus as SystemStatus$1, Config as Config$1 } from "@dxos/react-client";
|
|
8
8
|
import { DeviceKind as DeviceKind$1, Device as Device$1, DeviceType, useHaloInvitations, useDevices, useIdentity } from "@dxos/react-client/halo";
|
|
9
9
|
import { InvitationEncoder, clientServiceBundle, DEFAULT_VAULT_URL, DEFAULT_INTERNAL_CHANNEL, PROXY_CONNECTION_TIMEOUT, DEFAULT_SHELL_CHANNEL, getProfilePath, DX_RUNTIME, shellServiceBundle, appServiceBundle, DEFAULT_CLIENT_CHANNEL } from "@dxos/client-protocol";
|
|
10
10
|
import "@dxos/client";
|
|
@@ -1683,8 +1683,8 @@ var checkedLoadedFor = {}, Translator = function($) {
|
|
|
1683
1683
|
Ue.push(He[Ie]);
|
|
1684
1684
|
else
|
|
1685
1685
|
this.options.saveMissingTo === "all" ? Ue = this.languageUtils.toResolveHierarchy(K.lng || this.language) : Ue.push(K.lng || this.language);
|
|
1686
|
-
var Re = function(be, ye,
|
|
1687
|
-
var Ye = at &&
|
|
1686
|
+
var Re = function(be, ye, Le) {
|
|
1687
|
+
var Ye = at && Le !== ce ? Le : qe;
|
|
1688
1688
|
J.options.missingKeyHandler ? J.options.missingKeyHandler(be, re, ye, Ye, nt, K) : J.backendConnector && J.backendConnector.saveMissing && J.backendConnector.saveMissing(be, re, ye, Ye, nt, K), J.emit("missingKey", be, re, ye, ce);
|
|
1689
1689
|
};
|
|
1690
1690
|
this.options.saveMissing && (this.options.saveMissingPlurals && lt ? Ue.forEach(function(Te) {
|
|
@@ -6241,7 +6241,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
|
|
|
6241
6241
|
mt,
|
|
6242
6242
|
Re
|
|
6243
6243
|
]);
|
|
6244
|
-
const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [
|
|
6244
|
+
const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [Le, Ye] = useState();
|
|
6245
6245
|
return $9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
6246
6246
|
$e && Ye(window.getComputedStyle($e).zIndex);
|
|
6247
6247
|
}, [
|
|
@@ -6254,7 +6254,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
|
|
|
6254
6254
|
transform: mt ? qe.transform : "translate(0, -200%)",
|
|
6255
6255
|
// keep off the page when measuring
|
|
6256
6256
|
minWidth: "max-content",
|
|
6257
|
-
zIndex:
|
|
6257
|
+
zIndex: Le,
|
|
6258
6258
|
"--radix-popper-transform-origin": [
|
|
6259
6259
|
(J = Ue.transformOrigin) === null || J === void 0 ? void 0 : J.x,
|
|
6260
6260
|
(Z = Ue.transformOrigin) === null || Z === void 0 ? void 0 : Z.y
|
|
@@ -7658,8 +7658,8 @@ function requireReactJsxRuntime_development() {
|
|
|
7658
7658
|
{
|
|
7659
7659
|
var Et = le.ReactDebugCurrentFrame, Rt = Et.getStackAddendum();
|
|
7660
7660
|
Rt !== "" && (ot += "%s", dt = dt.concat([Rt]));
|
|
7661
|
-
var Bt = dt.map(function(
|
|
7662
|
-
return String(
|
|
7661
|
+
var Bt = dt.map(function(Lt) {
|
|
7662
|
+
return String(Lt);
|
|
7663
7663
|
});
|
|
7664
7664
|
Bt.unshift("Warning: " + ot), Function.prototype.apply.call(console[Ne], console, Bt);
|
|
7665
7665
|
}
|
|
@@ -7718,9 +7718,9 @@ function requireReactJsxRuntime_development() {
|
|
|
7718
7718
|
var Et = Ne.displayName || null;
|
|
7719
7719
|
return Et !== null ? Et : Be(Ne.type) || "Memo";
|
|
7720
7720
|
case ne: {
|
|
7721
|
-
var Rt = Ne, Bt = Rt._payload,
|
|
7721
|
+
var Rt = Ne, Bt = Rt._payload, Lt = Rt._init;
|
|
7722
7722
|
try {
|
|
7723
|
-
return Be(
|
|
7723
|
+
return Be(Lt(Bt));
|
|
7724
7724
|
} catch {
|
|
7725
7725
|
return null;
|
|
7726
7726
|
}
|
|
@@ -7825,27 +7825,27 @@ function requireReactJsxRuntime_development() {
|
|
|
7825
7825
|
Bt = Ue.current, Ue.current = null, nt();
|
|
7826
7826
|
try {
|
|
7827
7827
|
if (ot) {
|
|
7828
|
-
var
|
|
7828
|
+
var Lt = function() {
|
|
7829
7829
|
throw Error();
|
|
7830
7830
|
};
|
|
7831
|
-
if (Object.defineProperty(
|
|
7831
|
+
if (Object.defineProperty(Lt.prototype, "props", {
|
|
7832
7832
|
set: function() {
|
|
7833
7833
|
throw Error();
|
|
7834
7834
|
}
|
|
7835
7835
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
7836
7836
|
try {
|
|
7837
|
-
Reflect.construct(
|
|
7837
|
+
Reflect.construct(Lt, []);
|
|
7838
7838
|
} catch (dn) {
|
|
7839
7839
|
Et = dn;
|
|
7840
7840
|
}
|
|
7841
|
-
Reflect.construct(Ne, [],
|
|
7841
|
+
Reflect.construct(Ne, [], Lt);
|
|
7842
7842
|
} else {
|
|
7843
7843
|
try {
|
|
7844
|
-
|
|
7844
|
+
Lt.call();
|
|
7845
7845
|
} catch (dn) {
|
|
7846
7846
|
Et = dn;
|
|
7847
7847
|
}
|
|
7848
|
-
Ne.call(
|
|
7848
|
+
Ne.call(Lt.prototype);
|
|
7849
7849
|
}
|
|
7850
7850
|
} else {
|
|
7851
7851
|
try {
|
|
@@ -7880,7 +7880,7 @@ function requireReactJsxRuntime_development() {
|
|
|
7880
7880
|
var xn = Ne ? Ne.displayName || Ne.name : "", Yn = xn ? Ie(xn) : "";
|
|
7881
7881
|
return typeof Ne == "function" && Te.set(Ne, Yn), Yn;
|
|
7882
7882
|
}
|
|
7883
|
-
function
|
|
7883
|
+
function Le(Ne, ot, dt) {
|
|
7884
7884
|
return ye(Ne, !1);
|
|
7885
7885
|
}
|
|
7886
7886
|
function Ye(Ne) {
|
|
@@ -7903,7 +7903,7 @@ function requireReactJsxRuntime_development() {
|
|
|
7903
7903
|
if (typeof Ne == "object")
|
|
7904
7904
|
switch (Ne.$$typeof) {
|
|
7905
7905
|
case Z:
|
|
7906
|
-
return
|
|
7906
|
+
return Le(Ne.render);
|
|
7907
7907
|
case te:
|
|
7908
7908
|
return ct(Ne.type, ot, dt);
|
|
7909
7909
|
case ne: {
|
|
@@ -7927,19 +7927,19 @@ function requireReactJsxRuntime_development() {
|
|
|
7927
7927
|
function Ut(Ne, ot, dt, Et, Rt) {
|
|
7928
7928
|
{
|
|
7929
7929
|
var Bt = Function.call.bind(ut);
|
|
7930
|
-
for (var
|
|
7931
|
-
if (Bt(Ne,
|
|
7930
|
+
for (var Lt in Ne)
|
|
7931
|
+
if (Bt(Ne, Lt)) {
|
|
7932
7932
|
var Ot = void 0;
|
|
7933
7933
|
try {
|
|
7934
|
-
if (typeof Ne[
|
|
7935
|
-
var Zt = Error((Et || "React class") + ": " + dt + " type `" +
|
|
7934
|
+
if (typeof Ne[Lt] != "function") {
|
|
7935
|
+
var Zt = Error((Et || "React class") + ": " + dt + " type `" + Lt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Ne[Lt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
7936
7936
|
throw Zt.name = "Invariant Violation", Zt;
|
|
7937
7937
|
}
|
|
7938
|
-
Ot = Ne[
|
|
7938
|
+
Ot = Ne[Lt](ot, Lt, Et, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
7939
7939
|
} catch (Qt) {
|
|
7940
7940
|
Ot = Qt;
|
|
7941
7941
|
}
|
|
7942
|
-
Ot && !(Ot instanceof Error) && (it(Rt), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Et || "React class", dt,
|
|
7942
|
+
Ot && !(Ot instanceof Error) && (it(Rt), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Et || "React class", dt, Lt, typeof Ot), it(null)), Ot instanceof Error && !(Ot.message in wt) && (wt[Ot.message] = !0, it(Rt), ce("Failed %s type: %s", dt, Ot.message), it(null));
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
7945
|
}
|
|
@@ -8018,7 +8018,7 @@ function requireReactJsxRuntime_development() {
|
|
|
8018
8018
|
});
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
|
-
var Pt = function(Ne, ot, dt, Et, Rt, Bt,
|
|
8021
|
+
var Pt = function(Ne, ot, dt, Et, Rt, Bt, Lt) {
|
|
8022
8022
|
var Ot = {
|
|
8023
8023
|
// This tag allows us to uniquely identify this as a React Element
|
|
8024
8024
|
$$typeof: I,
|
|
@@ -8026,7 +8026,7 @@ function requireReactJsxRuntime_development() {
|
|
|
8026
8026
|
type: Ne,
|
|
8027
8027
|
key: ot,
|
|
8028
8028
|
ref: dt,
|
|
8029
|
-
props:
|
|
8029
|
+
props: Lt,
|
|
8030
8030
|
// Record the component responsible for creating this element.
|
|
8031
8031
|
_owner: Bt
|
|
8032
8032
|
};
|
|
@@ -8049,20 +8049,20 @@ function requireReactJsxRuntime_development() {
|
|
|
8049
8049
|
};
|
|
8050
8050
|
function At(Ne, ot, dt, Et, Rt) {
|
|
8051
8051
|
{
|
|
8052
|
-
var Bt,
|
|
8052
|
+
var Bt, Lt = {}, Ot = null, Zt = null;
|
|
8053
8053
|
dt !== void 0 && (zt(dt), Ot = "" + dt), De(ot) && (zt(ot.key), Ot = "" + ot.key), Se(ot) && (Zt = ot.ref, _t(ot, Rt));
|
|
8054
8054
|
for (Bt in ot)
|
|
8055
|
-
ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (
|
|
8055
|
+
ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (Lt[Bt] = ot[Bt]);
|
|
8056
8056
|
if (Ne && Ne.defaultProps) {
|
|
8057
8057
|
var Qt = Ne.defaultProps;
|
|
8058
8058
|
for (Bt in Qt)
|
|
8059
|
-
|
|
8059
|
+
Lt[Bt] === void 0 && (Lt[Bt] = Qt[Bt]);
|
|
8060
8060
|
}
|
|
8061
8061
|
if (Ot || Zt) {
|
|
8062
8062
|
var Yt = typeof Ne == "function" ? Ne.displayName || Ne.name || "Unknown" : Ne;
|
|
8063
|
-
Ot && Dt(
|
|
8063
|
+
Ot && Dt(Lt, Yt), Zt && Tt(Lt, Yt);
|
|
8064
8064
|
}
|
|
8065
|
-
return Pt(Ne, Ot, Zt, Rt, Et, de.current,
|
|
8065
|
+
return Pt(Ne, Ot, Zt, Rt, Et, de.current, Lt);
|
|
8066
8066
|
}
|
|
8067
8067
|
}
|
|
8068
8068
|
var Sn = le.ReactCurrentOwner, bn = le.ReactDebugCurrentFrame;
|
|
@@ -8141,8 +8141,8 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8141
8141
|
else if (Ne) {
|
|
8142
8142
|
var Rt = fe(Ne);
|
|
8143
8143
|
if (typeof Rt == "function" && Rt !== Ne.entries)
|
|
8144
|
-
for (var Bt = Rt.call(Ne),
|
|
8145
|
-
Tn(
|
|
8144
|
+
for (var Bt = Rt.call(Ne), Lt; !(Lt = Bt.next()).done; )
|
|
8145
|
+
Tn(Lt.value) && Nn(Lt.value, ot);
|
|
8146
8146
|
}
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
@@ -8185,8 +8185,8 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8185
8185
|
}
|
|
8186
8186
|
function _n(Ne, ot, dt, Et, Rt, Bt) {
|
|
8187
8187
|
{
|
|
8188
|
-
var
|
|
8189
|
-
if (!
|
|
8188
|
+
var Lt = Ce(Ne);
|
|
8189
|
+
if (!Lt) {
|
|
8190
8190
|
var Ot = "";
|
|
8191
8191
|
(Ne === void 0 || typeof Ne == "object" && Ne !== null && Object.keys(Ne).length === 0) && (Ot += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
8192
8192
|
var Zt = Pn(Rt);
|
|
@@ -8197,7 +8197,7 @@ Check the top-level render call using <` + dt + ">.");
|
|
|
8197
8197
|
var Yt = At(Ne, ot, dt, Rt, Bt);
|
|
8198
8198
|
if (Yt == null)
|
|
8199
8199
|
return Yt;
|
|
8200
|
-
if (
|
|
8200
|
+
if (Lt) {
|
|
8201
8201
|
var sn = ot.children;
|
|
8202
8202
|
if (sn !== void 0)
|
|
8203
8203
|
if (Et)
|
|
@@ -10836,10 +10836,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10836
10836
|
return ae(it, Q);
|
|
10837
10837
|
}
|
|
10838
10838
|
$.isNumberObject = ye;
|
|
10839
|
-
function
|
|
10839
|
+
function Le(it) {
|
|
10840
10840
|
return ae(it, ee);
|
|
10841
10841
|
}
|
|
10842
|
-
$.isStringObject =
|
|
10842
|
+
$.isStringObject = Le;
|
|
10843
10843
|
function Ye(it) {
|
|
10844
10844
|
return ae(it, te);
|
|
10845
10845
|
}
|
|
@@ -10853,7 +10853,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10853
10853
|
}
|
|
10854
10854
|
$.isSymbolObject = ut;
|
|
10855
10855
|
function wt(it) {
|
|
10856
|
-
return ye(it) ||
|
|
10856
|
+
return ye(it) || Le(it) || Ye(it) || ct(it) || ut(it);
|
|
10857
10857
|
}
|
|
10858
10858
|
$.isBoxedPrimitive = wt;
|
|
10859
10859
|
function St(it) {
|
|
@@ -11035,8 +11035,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
11035
11035
|
}
|
|
11036
11036
|
var Te = "", be = !1, ye = ["{", "}"];
|
|
11037
11037
|
if (fe(qe) && (be = !0, ye = ["[", "]"]), xe(qe)) {
|
|
11038
|
-
var
|
|
11039
|
-
Te = " [Function" +
|
|
11038
|
+
var Le = qe.name ? ": " + qe.name : "";
|
|
11039
|
+
Te = " [Function" + Le + "]";
|
|
11040
11040
|
}
|
|
11041
11041
|
if (_e(qe) && (Te = " " + RegExp.prototype.toString.call(qe)), Ce(qe) && (Te = " " + Date.prototype.toUTCString.call(qe)), Ee(qe) && (Te = " " + ne(qe)), He.length === 0 && (!be || qe.length == 0))
|
|
11042
11042
|
return ye[0] + Te + ye[1];
|
|
@@ -11998,13 +11998,13 @@ var require_base64_js = __commonJS({
|
|
|
11998
11998
|
}, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
|
|
11999
11999
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
|
|
12000
12000
|
}, J.prototype.readBigUInt64LE = Ct(function(ie) {
|
|
12001
|
-
ie = ie >>> 0,
|
|
12001
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
12002
12002
|
const oe = this[ie], pe = this[ie + 7];
|
|
12003
12003
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12004
12004
|
const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
|
|
12005
12005
|
return BigInt(ke) + (BigInt(Se) << BigInt(32));
|
|
12006
12006
|
}), J.prototype.readBigUInt64BE = Ct(function(ie) {
|
|
12007
|
-
ie = ie >>> 0,
|
|
12007
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
12008
12008
|
const oe = this[ie], pe = this[ie + 7];
|
|
12009
12009
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12010
12010
|
const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
|
|
@@ -12036,13 +12036,13 @@ var require_base64_js = __commonJS({
|
|
|
12036
12036
|
}, J.prototype.readInt32BE = function(ie, oe) {
|
|
12037
12037
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
|
|
12038
12038
|
}, J.prototype.readBigInt64LE = Ct(function(ie) {
|
|
12039
|
-
ie = ie >>> 0,
|
|
12039
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
12040
12040
|
const oe = this[ie], pe = this[ie + 7];
|
|
12041
12041
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12042
12042
|
const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
|
|
12043
12043
|
return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
|
|
12044
12044
|
}), J.prototype.readBigInt64BE = Ct(function(ie) {
|
|
12045
|
-
ie = ie >>> 0,
|
|
12045
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
12046
12046
|
const oe = this[ie], pe = this[ie + 7];
|
|
12047
12047
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
12048
12048
|
const ke = (oe << 24) + // Overflow
|
|
@@ -12268,7 +12268,7 @@ var require_base64_js = __commonJS({
|
|
|
12268
12268
|
return `${de.slice(0, oe)}${ie}`;
|
|
12269
12269
|
}
|
|
12270
12270
|
function be(de, ie, oe) {
|
|
12271
|
-
|
|
12271
|
+
Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
|
|
12272
12272
|
}
|
|
12273
12273
|
function ye(de, ie, oe, pe, ke, Se) {
|
|
12274
12274
|
if (de > oe || de < ie) {
|
|
@@ -12278,12 +12278,12 @@ var require_base64_js = __commonJS({
|
|
|
12278
12278
|
}
|
|
12279
12279
|
be(pe, ke, Se);
|
|
12280
12280
|
}
|
|
12281
|
-
function
|
|
12281
|
+
function Le(de, ie) {
|
|
12282
12282
|
if (typeof de != "number")
|
|
12283
12283
|
throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
|
|
12284
12284
|
}
|
|
12285
12285
|
function Ye(de, ie, oe) {
|
|
12286
|
-
throw Math.floor(de) !== de ? (
|
|
12286
|
+
throw Math.floor(de) !== de ? (Le(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
|
|
12287
12287
|
oe || "offset",
|
|
12288
12288
|
`>= ${oe ? 1 : 0} and <= ${ie}`,
|
|
12289
12289
|
de
|
|
@@ -12435,35 +12435,35 @@ lodash_defaultsdeep.exports;
|
|
|
12435
12435
|
} catch {
|
|
12436
12436
|
}
|
|
12437
12437
|
}(), ye = be && be.isTypedArray;
|
|
12438
|
-
function
|
|
12438
|
+
function Le(we, Me, Ze) {
|
|
12439
12439
|
switch (Ze.length) {
|
|
12440
12440
|
case 0:
|
|
12441
|
-
return we.call(
|
|
12441
|
+
return we.call(Me);
|
|
12442
12442
|
case 1:
|
|
12443
|
-
return we.call(
|
|
12443
|
+
return we.call(Me, Ze[0]);
|
|
12444
12444
|
case 2:
|
|
12445
|
-
return we.call(
|
|
12445
|
+
return we.call(Me, Ze[0], Ze[1]);
|
|
12446
12446
|
case 3:
|
|
12447
|
-
return we.call(
|
|
12447
|
+
return we.call(Me, Ze[0], Ze[1], Ze[2]);
|
|
12448
12448
|
}
|
|
12449
|
-
return we.apply(
|
|
12449
|
+
return we.apply(Me, Ze);
|
|
12450
12450
|
}
|
|
12451
|
-
function Ye(we,
|
|
12451
|
+
function Ye(we, Me) {
|
|
12452
12452
|
for (var Ze = -1, $t = Array(we); ++Ze < we; )
|
|
12453
|
-
$t[Ze] =
|
|
12453
|
+
$t[Ze] = Me(Ze);
|
|
12454
12454
|
return $t;
|
|
12455
12455
|
}
|
|
12456
12456
|
function ct(we) {
|
|
12457
|
-
return function(
|
|
12458
|
-
return we(
|
|
12457
|
+
return function(Me) {
|
|
12458
|
+
return we(Me);
|
|
12459
12459
|
};
|
|
12460
12460
|
}
|
|
12461
|
-
function ut(we,
|
|
12462
|
-
return we == null ? void 0 : we[
|
|
12461
|
+
function ut(we, Me) {
|
|
12462
|
+
return we == null ? void 0 : we[Me];
|
|
12463
12463
|
}
|
|
12464
|
-
function wt(we,
|
|
12464
|
+
function wt(we, Me) {
|
|
12465
12465
|
return function(Ze) {
|
|
12466
|
-
return we(
|
|
12466
|
+
return we(Me(Ze));
|
|
12467
12467
|
};
|
|
12468
12468
|
}
|
|
12469
12469
|
var St = Array.prototype, it = Function.prototype, Ut = Object.prototype, Kt = Ue["__core-js_shared__"], It = it.toString, Ht = Ut.hasOwnProperty, rn = function() {
|
|
@@ -12480,20 +12480,20 @@ lodash_defaultsdeep.exports;
|
|
|
12480
12480
|
}(), At = ie ? ie.isBuffer : void 0, Sn = Math.max, bn = Date.now, vn = kt(Ue, "Map"), mn = kt(Object, "create"), Tn = /* @__PURE__ */ function() {
|
|
12481
12481
|
function we() {
|
|
12482
12482
|
}
|
|
12483
|
-
return function(
|
|
12484
|
-
if (!en(
|
|
12483
|
+
return function(Me) {
|
|
12484
|
+
if (!en(Me))
|
|
12485
12485
|
return {};
|
|
12486
12486
|
if (De)
|
|
12487
|
-
return De(
|
|
12488
|
-
we.prototype =
|
|
12487
|
+
return De(Me);
|
|
12488
|
+
we.prototype = Me;
|
|
12489
12489
|
var Ze = new we();
|
|
12490
12490
|
return we.prototype = void 0, Ze;
|
|
12491
12491
|
};
|
|
12492
12492
|
}();
|
|
12493
12493
|
function un(we) {
|
|
12494
|
-
var
|
|
12495
|
-
for (this.clear(); ++
|
|
12496
|
-
var $t = we[
|
|
12494
|
+
var Me = -1, Ze = we == null ? 0 : we.length;
|
|
12495
|
+
for (this.clear(); ++Me < Ze; ) {
|
|
12496
|
+
var $t = we[Me];
|
|
12497
12497
|
this.set($t[0], $t[1]);
|
|
12498
12498
|
}
|
|
12499
12499
|
}
|
|
@@ -12501,30 +12501,30 @@ lodash_defaultsdeep.exports;
|
|
|
12501
12501
|
this.__data__ = mn ? mn(null) : {}, this.size = 0;
|
|
12502
12502
|
}
|
|
12503
12503
|
function $n(we) {
|
|
12504
|
-
var
|
|
12505
|
-
return this.size -=
|
|
12504
|
+
var Me = this.has(we) && delete this.__data__[we];
|
|
12505
|
+
return this.size -= Me ? 1 : 0, Me;
|
|
12506
12506
|
}
|
|
12507
12507
|
function Vn(we) {
|
|
12508
|
-
var
|
|
12508
|
+
var Me = this.__data__;
|
|
12509
12509
|
if (mn) {
|
|
12510
|
-
var Ze =
|
|
12510
|
+
var Ze = Me[we];
|
|
12511
12511
|
return Ze === q ? void 0 : Ze;
|
|
12512
12512
|
}
|
|
12513
|
-
return Ht.call(
|
|
12513
|
+
return Ht.call(Me, we) ? Me[we] : void 0;
|
|
12514
12514
|
}
|
|
12515
12515
|
function Nn(we) {
|
|
12516
|
-
var
|
|
12517
|
-
return mn ?
|
|
12516
|
+
var Me = this.__data__;
|
|
12517
|
+
return mn ? Me[we] !== void 0 : Ht.call(Me, we);
|
|
12518
12518
|
}
|
|
12519
|
-
function Fn(we,
|
|
12519
|
+
function Fn(we, Me) {
|
|
12520
12520
|
var Ze = this.__data__;
|
|
12521
|
-
return this.size += this.has(we) ? 0 : 1, Ze[we] = mn &&
|
|
12521
|
+
return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Me === void 0 ? q : Me, this;
|
|
12522
12522
|
}
|
|
12523
12523
|
un.prototype.clear = Pn, un.prototype.delete = $n, un.prototype.get = Vn, un.prototype.has = Nn, un.prototype.set = Fn;
|
|
12524
12524
|
function ln(we) {
|
|
12525
|
-
var
|
|
12526
|
-
for (this.clear(); ++
|
|
12527
|
-
var $t = we[
|
|
12525
|
+
var Me = -1, Ze = we == null ? 0 : we.length;
|
|
12526
|
+
for (this.clear(); ++Me < Ze; ) {
|
|
12527
|
+
var $t = we[Me];
|
|
12528
12528
|
this.set($t[0], $t[1]);
|
|
12529
12529
|
}
|
|
12530
12530
|
}
|
|
@@ -12532,28 +12532,28 @@ lodash_defaultsdeep.exports;
|
|
|
12532
12532
|
this.__data__ = [], this.size = 0;
|
|
12533
12533
|
}
|
|
12534
12534
|
function _n(we) {
|
|
12535
|
-
var
|
|
12535
|
+
var Me = this.__data__, Ze = dn(Me, we);
|
|
12536
12536
|
if (Ze < 0)
|
|
12537
12537
|
return !1;
|
|
12538
|
-
var $t =
|
|
12539
|
-
return Ze == $t ?
|
|
12538
|
+
var $t = Me.length - 1;
|
|
12539
|
+
return Ze == $t ? Me.pop() : Dt.call(Me, Ze, 1), --this.size, !0;
|
|
12540
12540
|
}
|
|
12541
12541
|
function Kn(we) {
|
|
12542
|
-
var
|
|
12543
|
-
return Ze < 0 ? void 0 :
|
|
12542
|
+
var Me = this.__data__, Ze = dn(Me, we);
|
|
12543
|
+
return Ze < 0 ? void 0 : Me[Ze][1];
|
|
12544
12544
|
}
|
|
12545
12545
|
function We(we) {
|
|
12546
12546
|
return dn(this.__data__, we) > -1;
|
|
12547
12547
|
}
|
|
12548
|
-
function vt(we,
|
|
12548
|
+
function vt(we, Me) {
|
|
12549
12549
|
var Ze = this.__data__, $t = dn(Ze, we);
|
|
12550
|
-
return $t < 0 ? (++this.size, Ze.push([we,
|
|
12550
|
+
return $t < 0 ? (++this.size, Ze.push([we, Me])) : Ze[$t][1] = Me, this;
|
|
12551
12551
|
}
|
|
12552
12552
|
ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
|
|
12553
12553
|
function xt(we) {
|
|
12554
|
-
var
|
|
12555
|
-
for (this.clear(); ++
|
|
12556
|
-
var $t = we[
|
|
12554
|
+
var Me = -1, Ze = we == null ? 0 : we.length;
|
|
12555
|
+
for (this.clear(); ++Me < Ze; ) {
|
|
12556
|
+
var $t = we[Me];
|
|
12557
12557
|
this.set($t[0], $t[1]);
|
|
12558
12558
|
}
|
|
12559
12559
|
}
|
|
@@ -12565,8 +12565,8 @@ lodash_defaultsdeep.exports;
|
|
|
12565
12565
|
};
|
|
12566
12566
|
}
|
|
12567
12567
|
function ot(we) {
|
|
12568
|
-
var
|
|
12569
|
-
return this.size -=
|
|
12568
|
+
var Me = bt(this, we).delete(we);
|
|
12569
|
+
return this.size -= Me ? 1 : 0, Me;
|
|
12570
12570
|
}
|
|
12571
12571
|
function dt(we) {
|
|
12572
12572
|
return bt(this, we).get(we);
|
|
@@ -12574,21 +12574,21 @@ lodash_defaultsdeep.exports;
|
|
|
12574
12574
|
function Et(we) {
|
|
12575
12575
|
return bt(this, we).has(we);
|
|
12576
12576
|
}
|
|
12577
|
-
function Rt(we,
|
|
12577
|
+
function Rt(we, Me) {
|
|
12578
12578
|
var Ze = bt(this, we), $t = Ze.size;
|
|
12579
|
-
return Ze.set(we,
|
|
12579
|
+
return Ze.set(we, Me), this.size += Ze.size == $t ? 0 : 1, this;
|
|
12580
12580
|
}
|
|
12581
12581
|
xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
|
|
12582
12582
|
function Bt(we) {
|
|
12583
|
-
var
|
|
12584
|
-
this.size =
|
|
12583
|
+
var Me = this.__data__ = new ln(we);
|
|
12584
|
+
this.size = Me.size;
|
|
12585
12585
|
}
|
|
12586
|
-
function
|
|
12586
|
+
function Lt() {
|
|
12587
12587
|
this.__data__ = new ln(), this.size = 0;
|
|
12588
12588
|
}
|
|
12589
12589
|
function Ot(we) {
|
|
12590
|
-
var
|
|
12591
|
-
return this.size =
|
|
12590
|
+
var Me = this.__data__, Ze = Me.delete(we);
|
|
12591
|
+
return this.size = Me.size, Ze;
|
|
12592
12592
|
}
|
|
12593
12593
|
function Zt(we) {
|
|
12594
12594
|
return this.__data__.get(we);
|
|
@@ -12596,51 +12596,51 @@ lodash_defaultsdeep.exports;
|
|
|
12596
12596
|
function Qt(we) {
|
|
12597
12597
|
return this.__data__.has(we);
|
|
12598
12598
|
}
|
|
12599
|
-
function Yt(we,
|
|
12599
|
+
function Yt(we, Me) {
|
|
12600
12600
|
var Ze = this.__data__;
|
|
12601
12601
|
if (Ze instanceof ln) {
|
|
12602
12602
|
var $t = Ze.__data__;
|
|
12603
12603
|
if (!vn || $t.length < U - 1)
|
|
12604
|
-
return $t.push([we,
|
|
12604
|
+
return $t.push([we, Me]), this.size = ++Ze.size, this;
|
|
12605
12605
|
Ze = this.__data__ = new xt($t);
|
|
12606
12606
|
}
|
|
12607
|
-
return Ze.set(we,
|
|
12607
|
+
return Ze.set(we, Me), this.size = Ze.size, this;
|
|
12608
12608
|
}
|
|
12609
|
-
Bt.prototype.clear =
|
|
12610
|
-
function sn(we,
|
|
12609
|
+
Bt.prototype.clear = Lt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
|
|
12610
|
+
function sn(we, Me) {
|
|
12611
12611
|
var Ze = yt(we), $t = !Ze && et(we), jt = !Ze && !$t && qt(we), Ft = !Ze && !$t && !jt && kn(we), Vt = Ze || $t || jt || Ft, Gt = Vt ? Ye(we.length, String) : [], Xt = Gt.length;
|
|
12612
12612
|
for (var En in we)
|
|
12613
|
-
(
|
|
12613
|
+
(Me || Ht.call(we, En)) && !(Vt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
12614
12614
|
(En == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
12615
12615
|
jt && (En == "offset" || En == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
12616
12616
|
Ft && (En == "buffer" || En == "byteLength" || En == "byteOffset") || // Skip index properties.
|
|
12617
12617
|
Jt(En, Xt))) && Gt.push(En);
|
|
12618
12618
|
return Gt;
|
|
12619
12619
|
}
|
|
12620
|
-
function xn(we,
|
|
12621
|
-
(Ze !== void 0 && !Fe(we[
|
|
12620
|
+
function xn(we, Me, Ze) {
|
|
12621
|
+
(Ze !== void 0 && !Fe(we[Me], Ze) || Ze === void 0 && !(Me in we)) && Bn(we, Me, Ze);
|
|
12622
12622
|
}
|
|
12623
|
-
function Yn(we,
|
|
12624
|
-
var $t = we[
|
|
12625
|
-
(!(Ht.call(we,
|
|
12623
|
+
function Yn(we, Me, Ze) {
|
|
12624
|
+
var $t = we[Me];
|
|
12625
|
+
(!(Ht.call(we, Me) && Fe($t, Ze)) || Ze === void 0 && !(Me in we)) && Bn(we, Me, Ze);
|
|
12626
12626
|
}
|
|
12627
|
-
function dn(we,
|
|
12627
|
+
function dn(we, Me) {
|
|
12628
12628
|
for (var Ze = we.length; Ze--; )
|
|
12629
|
-
if (Fe(we[Ze][0],
|
|
12629
|
+
if (Fe(we[Ze][0], Me))
|
|
12630
12630
|
return Ze;
|
|
12631
12631
|
return -1;
|
|
12632
12632
|
}
|
|
12633
|
-
function Bn(we,
|
|
12634
|
-
|
|
12633
|
+
function Bn(we, Me, Ze) {
|
|
12634
|
+
Me == "__proto__" && Pt ? Pt(we, Me, {
|
|
12635
12635
|
configurable: !0,
|
|
12636
12636
|
enumerable: !0,
|
|
12637
12637
|
value: Ze,
|
|
12638
12638
|
writable: !0
|
|
12639
|
-
}) : we[
|
|
12639
|
+
}) : we[Me] = Ze;
|
|
12640
12640
|
}
|
|
12641
12641
|
var jn = pt();
|
|
12642
12642
|
function An(we) {
|
|
12643
|
-
return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ?
|
|
12643
|
+
return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ? Mt(we) : Zn(we);
|
|
12644
12644
|
}
|
|
12645
12645
|
function Un(we) {
|
|
12646
12646
|
return hn(we) && An(we) == J;
|
|
@@ -12648,8 +12648,8 @@ lodash_defaultsdeep.exports;
|
|
|
12648
12648
|
function Xn(we) {
|
|
12649
12649
|
if (!en(we) || cn(we))
|
|
12650
12650
|
return !1;
|
|
12651
|
-
var
|
|
12652
|
-
return
|
|
12651
|
+
var Me = pn(we) ? de : tt;
|
|
12652
|
+
return Me.test(qn(we));
|
|
12653
12653
|
}
|
|
12654
12654
|
function nr(we) {
|
|
12655
12655
|
return hn(we) && an(we.length) && !!qe[An(we)];
|
|
@@ -12657,173 +12657,173 @@ lodash_defaultsdeep.exports;
|
|
|
12657
12657
|
function rr(we) {
|
|
12658
12658
|
if (!en(we))
|
|
12659
12659
|
return Hn(we);
|
|
12660
|
-
var
|
|
12660
|
+
var Me = wn(we), Ze = [];
|
|
12661
12661
|
for (var $t in we)
|
|
12662
|
-
$t == "constructor" && (
|
|
12662
|
+
$t == "constructor" && (Me || !Ht.call(we, $t)) || Ze.push($t);
|
|
12663
12663
|
return Ze;
|
|
12664
12664
|
}
|
|
12665
|
-
function zn(we,
|
|
12666
|
-
we !==
|
|
12665
|
+
function zn(we, Me, Ze, $t, jt) {
|
|
12666
|
+
we !== Me && jn(Me, function(Ft, Vt) {
|
|
12667
12667
|
if (jt || (jt = new Bt()), en(Ft))
|
|
12668
|
-
ir(we,
|
|
12668
|
+
ir(we, Me, Vt, Ze, zn, $t, jt);
|
|
12669
12669
|
else {
|
|
12670
|
-
var Gt = $t ? $t(
|
|
12670
|
+
var Gt = $t ? $t(Mn(we, Vt), Ft, Vt + "", we, Me, jt) : void 0;
|
|
12671
12671
|
Gt === void 0 && (Gt = Ft), xn(we, Vt, Gt);
|
|
12672
12672
|
}
|
|
12673
12673
|
}, Cn);
|
|
12674
12674
|
}
|
|
12675
|
-
function ir(we,
|
|
12676
|
-
var Gt =
|
|
12675
|
+
function ir(we, Me, Ze, $t, jt, Ft, Vt) {
|
|
12676
|
+
var Gt = Mn(we, Ze), Xt = Mn(Me, Ze), En = Vt.get(Xt);
|
|
12677
12677
|
if (En) {
|
|
12678
12678
|
xn(we, Ze, En);
|
|
12679
12679
|
return;
|
|
12680
12680
|
}
|
|
12681
|
-
var Rn = Ft ? Ft(Gt, Xt, Ze + "", we,
|
|
12681
|
+
var Rn = Ft ? Ft(Gt, Xt, Ze + "", we, Me, Vt) : void 0, er = Rn === void 0;
|
|
12682
12682
|
if (er) {
|
|
12683
12683
|
var cr = yt(Xt), hr = !cr && qt(Xt), mr = !cr && !hr && kn(Xt);
|
|
12684
12684
|
Rn = Xt, cr || hr || mr ? yt(Gt) ? Rn = Gt : nn(Gt) ? Rn = Qe(Gt) : hr ? (er = !1, Rn = Ve(Xt, !0)) : mr ? (er = !1, Rn = Je(Xt, !0)) : Rn = [] : yn(Xt) || et(Xt) ? (Rn = Gt, et(Gt) ? Rn = gn(Gt) : (!en(Gt) || pn(Gt)) && (Rn = Wt(Xt))) : er = !1;
|
|
12685
12685
|
}
|
|
12686
12686
|
er && (Vt.set(Xt, Rn), jt(Rn, Xt, $t, Ft, Vt), Vt.delete(Xt)), xn(we, Ze, Rn);
|
|
12687
12687
|
}
|
|
12688
|
-
function tr(we,
|
|
12689
|
-
return sr(Wn(we,
|
|
12688
|
+
function tr(we, Me) {
|
|
12689
|
+
return sr(Wn(we, Me, Pe), we + "");
|
|
12690
12690
|
}
|
|
12691
|
-
var Ae = Pt ? function(we,
|
|
12691
|
+
var Ae = Pt ? function(we, Me) {
|
|
12692
12692
|
return Pt(we, "toString", {
|
|
12693
12693
|
configurable: !0,
|
|
12694
12694
|
enumerable: !1,
|
|
12695
|
-
value: Dn(
|
|
12695
|
+
value: Dn(Me),
|
|
12696
12696
|
writable: !0
|
|
12697
12697
|
});
|
|
12698
12698
|
} : Pe;
|
|
12699
|
-
function Ve(we,
|
|
12700
|
-
if (
|
|
12699
|
+
function Ve(we, Me) {
|
|
12700
|
+
if (Me)
|
|
12701
12701
|
return we.slice();
|
|
12702
12702
|
var Ze = we.length, $t = ke ? ke(Ze) : new we.constructor(Ze);
|
|
12703
12703
|
return we.copy($t), $t;
|
|
12704
12704
|
}
|
|
12705
12705
|
function Oe(we) {
|
|
12706
|
-
var
|
|
12707
|
-
return new pe(
|
|
12706
|
+
var Me = new we.constructor(we.byteLength);
|
|
12707
|
+
return new pe(Me).set(new pe(we)), Me;
|
|
12708
12708
|
}
|
|
12709
|
-
function Je(we,
|
|
12710
|
-
var Ze =
|
|
12709
|
+
function Je(we, Me) {
|
|
12710
|
+
var Ze = Me ? Oe(we.buffer) : we.buffer;
|
|
12711
12711
|
return new we.constructor(Ze, we.byteOffset, we.length);
|
|
12712
12712
|
}
|
|
12713
|
-
function Qe(we,
|
|
12713
|
+
function Qe(we, Me) {
|
|
12714
12714
|
var Ze = -1, $t = we.length;
|
|
12715
|
-
for (
|
|
12716
|
-
|
|
12717
|
-
return
|
|
12715
|
+
for (Me || (Me = Array($t)); ++Ze < $t; )
|
|
12716
|
+
Me[Ze] = we[Ze];
|
|
12717
|
+
return Me;
|
|
12718
12718
|
}
|
|
12719
|
-
function Ke(we,
|
|
12719
|
+
function Ke(we, Me, Ze, $t) {
|
|
12720
12720
|
var jt = !Ze;
|
|
12721
12721
|
Ze || (Ze = {});
|
|
12722
|
-
for (var Ft = -1, Vt =
|
|
12723
|
-
var Gt =
|
|
12722
|
+
for (var Ft = -1, Vt = Me.length; ++Ft < Vt; ) {
|
|
12723
|
+
var Gt = Me[Ft], Xt = $t ? $t(Ze[Gt], we[Gt], Gt, Ze, we) : void 0;
|
|
12724
12724
|
Xt === void 0 && (Xt = we[Gt]), jt ? Bn(Ze, Gt, Xt) : Yn(Ze, Gt, Xt);
|
|
12725
12725
|
}
|
|
12726
12726
|
return Ze;
|
|
12727
12727
|
}
|
|
12728
12728
|
function ft(we) {
|
|
12729
|
-
return tr(function(
|
|
12729
|
+
return tr(function(Me, Ze) {
|
|
12730
12730
|
var $t = -1, jt = Ze.length, Ft = jt > 1 ? Ze[jt - 1] : void 0, Vt = jt > 2 ? Ze[2] : void 0;
|
|
12731
|
-
for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1),
|
|
12731
|
+
for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1), Me = Object(Me); ++$t < jt; ) {
|
|
12732
12732
|
var Gt = Ze[$t];
|
|
12733
|
-
Gt && we(
|
|
12733
|
+
Gt && we(Me, Gt, $t, Ft);
|
|
12734
12734
|
}
|
|
12735
|
-
return
|
|
12735
|
+
return Me;
|
|
12736
12736
|
});
|
|
12737
12737
|
}
|
|
12738
12738
|
function pt(we) {
|
|
12739
|
-
return function(
|
|
12740
|
-
for (var jt = -1, Ft = Object(
|
|
12739
|
+
return function(Me, Ze, $t) {
|
|
12740
|
+
for (var jt = -1, Ft = Object(Me), Vt = $t(Me), Gt = Vt.length; Gt--; ) {
|
|
12741
12741
|
var Xt = Vt[we ? Gt : ++jt];
|
|
12742
12742
|
if (Ze(Ft[Xt], Xt, Ft) === !1)
|
|
12743
12743
|
break;
|
|
12744
12744
|
}
|
|
12745
|
-
return
|
|
12745
|
+
return Me;
|
|
12746
12746
|
};
|
|
12747
12747
|
}
|
|
12748
|
-
function gt(we,
|
|
12749
|
-
return en(we) && en(
|
|
12748
|
+
function gt(we, Me, Ze, $t, jt, Ft) {
|
|
12749
|
+
return en(we) && en(Me) && (Ft.set(Me, we), zn(we, Me, void 0, gt, Ft), Ft.delete(Me)), we;
|
|
12750
12750
|
}
|
|
12751
|
-
function bt(we,
|
|
12751
|
+
function bt(we, Me) {
|
|
12752
12752
|
var Ze = we.__data__;
|
|
12753
|
-
return fn(
|
|
12753
|
+
return fn(Me) ? Ze[typeof Me == "string" ? "string" : "hash"] : Ze.map;
|
|
12754
12754
|
}
|
|
12755
|
-
function kt(we,
|
|
12756
|
-
var Ze = ut(we,
|
|
12755
|
+
function kt(we, Me) {
|
|
12756
|
+
var Ze = ut(we, Me);
|
|
12757
12757
|
return Xn(Ze) ? Ze : void 0;
|
|
12758
12758
|
}
|
|
12759
|
-
function
|
|
12760
|
-
var
|
|
12759
|
+
function Mt(we) {
|
|
12760
|
+
var Me = Ht.call(we, Tt), Ze = we[Tt];
|
|
12761
12761
|
try {
|
|
12762
12762
|
we[Tt] = void 0;
|
|
12763
12763
|
var $t = !0;
|
|
12764
12764
|
} catch {
|
|
12765
12765
|
}
|
|
12766
12766
|
var jt = Ct.call(we);
|
|
12767
|
-
return $t && (
|
|
12767
|
+
return $t && (Me ? we[Tt] = Ze : delete we[Tt]), jt;
|
|
12768
12768
|
}
|
|
12769
12769
|
function Wt(we) {
|
|
12770
12770
|
return typeof we.constructor == "function" && !wn(we) ? Tn(Se(we)) : {};
|
|
12771
12771
|
}
|
|
12772
|
-
function Jt(we,
|
|
12772
|
+
function Jt(we, Me) {
|
|
12773
12773
|
var Ze = typeof we;
|
|
12774
|
-
return
|
|
12774
|
+
return Me = Me ?? Y, !!Me && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Me;
|
|
12775
12775
|
}
|
|
12776
|
-
function tn(we,
|
|
12776
|
+
function tn(we, Me, Ze) {
|
|
12777
12777
|
if (!en(Ze))
|
|
12778
12778
|
return !1;
|
|
12779
|
-
var $t = typeof
|
|
12780
|
-
return ($t == "number" ? Nt(Ze) && Jt(
|
|
12779
|
+
var $t = typeof Me;
|
|
12780
|
+
return ($t == "number" ? Nt(Ze) && Jt(Me, Ze.length) : $t == "string" && Me in Ze) ? Fe(Ze[Me], we) : !1;
|
|
12781
12781
|
}
|
|
12782
12782
|
function fn(we) {
|
|
12783
|
-
var
|
|
12784
|
-
return
|
|
12783
|
+
var Me = typeof we;
|
|
12784
|
+
return Me == "string" || Me == "number" || Me == "symbol" || Me == "boolean" ? we !== "__proto__" : we === null;
|
|
12785
12785
|
}
|
|
12786
12786
|
function cn(we) {
|
|
12787
12787
|
return !!rn && rn in we;
|
|
12788
12788
|
}
|
|
12789
12789
|
function wn(we) {
|
|
12790
|
-
var
|
|
12790
|
+
var Me = we && we.constructor, Ze = typeof Me == "function" && Me.prototype || Ut;
|
|
12791
12791
|
return we === Ze;
|
|
12792
12792
|
}
|
|
12793
12793
|
function Hn(we) {
|
|
12794
|
-
var
|
|
12794
|
+
var Me = [];
|
|
12795
12795
|
if (we != null)
|
|
12796
12796
|
for (var Ze in Object(we))
|
|
12797
|
-
|
|
12798
|
-
return
|
|
12797
|
+
Me.push(Ze);
|
|
12798
|
+
return Me;
|
|
12799
12799
|
}
|
|
12800
12800
|
function Zn(we) {
|
|
12801
12801
|
return Ct.call(we);
|
|
12802
12802
|
}
|
|
12803
|
-
function Wn(we,
|
|
12804
|
-
return
|
|
12805
|
-
for (var $t = arguments, jt = -1, Ft = Sn($t.length -
|
|
12806
|
-
Vt[jt] = $t[
|
|
12803
|
+
function Wn(we, Me, Ze) {
|
|
12804
|
+
return Me = Sn(Me === void 0 ? we.length - 1 : Me, 0), function() {
|
|
12805
|
+
for (var $t = arguments, jt = -1, Ft = Sn($t.length - Me, 0), Vt = Array(Ft); ++jt < Ft; )
|
|
12806
|
+
Vt[jt] = $t[Me + jt];
|
|
12807
12807
|
jt = -1;
|
|
12808
|
-
for (var Gt = Array(
|
|
12808
|
+
for (var Gt = Array(Me + 1); ++jt < Me; )
|
|
12809
12809
|
Gt[jt] = $t[jt];
|
|
12810
|
-
return Gt[
|
|
12810
|
+
return Gt[Me] = Ze(Vt), Le(we, this, Gt);
|
|
12811
12811
|
};
|
|
12812
12812
|
}
|
|
12813
|
-
function
|
|
12814
|
-
if (!(
|
|
12815
|
-
return we[
|
|
12813
|
+
function Mn(we, Me) {
|
|
12814
|
+
if (!(Me === "constructor" && typeof we[Me] == "function") && Me != "__proto__")
|
|
12815
|
+
return we[Me];
|
|
12816
12816
|
}
|
|
12817
12817
|
var sr = ar(Ae);
|
|
12818
12818
|
function ar(we) {
|
|
12819
|
-
var
|
|
12819
|
+
var Me = 0, Ze = 0;
|
|
12820
12820
|
return function() {
|
|
12821
12821
|
var $t = bn(), jt = K - ($t - Ze);
|
|
12822
12822
|
if (Ze = $t, jt > 0) {
|
|
12823
|
-
if (++
|
|
12823
|
+
if (++Me >= G)
|
|
12824
12824
|
return arguments[0];
|
|
12825
12825
|
} else
|
|
12826
|
-
|
|
12826
|
+
Me = 0;
|
|
12827
12827
|
return we.apply(void 0, arguments);
|
|
12828
12828
|
};
|
|
12829
12829
|
}
|
|
@@ -12840,8 +12840,8 @@ lodash_defaultsdeep.exports;
|
|
|
12840
12840
|
}
|
|
12841
12841
|
return "";
|
|
12842
12842
|
}
|
|
12843
|
-
function Fe(we,
|
|
12844
|
-
return we ===
|
|
12843
|
+
function Fe(we, Me) {
|
|
12844
|
+
return we === Me || we !== we && Me !== Me;
|
|
12845
12845
|
}
|
|
12846
12846
|
var et = Un(/* @__PURE__ */ function() {
|
|
12847
12847
|
return arguments;
|
|
@@ -12858,15 +12858,15 @@ lodash_defaultsdeep.exports;
|
|
|
12858
12858
|
function pn(we) {
|
|
12859
12859
|
if (!en(we))
|
|
12860
12860
|
return !1;
|
|
12861
|
-
var
|
|
12862
|
-
return
|
|
12861
|
+
var Me = An(we);
|
|
12862
|
+
return Me == re || Me == ae || Me == Q || Me == ue;
|
|
12863
12863
|
}
|
|
12864
12864
|
function an(we) {
|
|
12865
12865
|
return typeof we == "number" && we > -1 && we % 1 == 0 && we <= Y;
|
|
12866
12866
|
}
|
|
12867
12867
|
function en(we) {
|
|
12868
|
-
var
|
|
12869
|
-
return we != null && (
|
|
12868
|
+
var Me = typeof we;
|
|
12869
|
+
return we != null && (Me == "object" || Me == "function");
|
|
12870
12870
|
}
|
|
12871
12871
|
function hn(we) {
|
|
12872
12872
|
return we != null && typeof we == "object";
|
|
@@ -12874,10 +12874,10 @@ lodash_defaultsdeep.exports;
|
|
|
12874
12874
|
function yn(we) {
|
|
12875
12875
|
if (!hn(we) || An(we) != ce)
|
|
12876
12876
|
return !1;
|
|
12877
|
-
var
|
|
12878
|
-
if (
|
|
12877
|
+
var Me = Se(we);
|
|
12878
|
+
if (Me === null)
|
|
12879
12879
|
return !0;
|
|
12880
|
-
var Ze = Ht.call(
|
|
12880
|
+
var Ze = Ht.call(Me, "constructor") && Me.constructor;
|
|
12881
12881
|
return typeof Ze == "function" && Ze instanceof Ze && It.call(Ze) == zt;
|
|
12882
12882
|
}
|
|
12883
12883
|
var kn = ye ? ct(ye) : nr;
|
|
@@ -12885,13 +12885,13 @@ lodash_defaultsdeep.exports;
|
|
|
12885
12885
|
return Ke(we, Cn(we));
|
|
12886
12886
|
}
|
|
12887
12887
|
var In = tr(function(we) {
|
|
12888
|
-
return we.push(void 0, gt),
|
|
12888
|
+
return we.push(void 0, gt), Le(Ln, void 0, we);
|
|
12889
12889
|
});
|
|
12890
12890
|
function Cn(we) {
|
|
12891
12891
|
return Nt(we) ? sn(we, !0) : rr(we);
|
|
12892
12892
|
}
|
|
12893
|
-
var
|
|
12894
|
-
zn(we,
|
|
12893
|
+
var Ln = ft(function(we, Me, Ze, $t) {
|
|
12894
|
+
zn(we, Me, Ze, $t);
|
|
12895
12895
|
});
|
|
12896
12896
|
function Dn(we) {
|
|
12897
12897
|
return function() {
|
|
@@ -13460,10 +13460,10 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
13460
13460
|
}, randomBytes$1 = ($) => {
|
|
13461
13461
|
const I = globalThis.crypto ?? __require$1("@dxos/node-std/crypto").webcrypto, U = new Uint8Array($);
|
|
13462
13462
|
return I.getRandomValues(U), U;
|
|
13463
|
-
}, __dxlog_file3$
|
|
13463
|
+
}, __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/util/src/callback.ts", Callback = class {
|
|
13464
13464
|
call(...$) {
|
|
13465
13465
|
return invariant(this._callback, "Callback not set", {
|
|
13466
|
-
F: __dxlog_file3$
|
|
13466
|
+
F: __dxlog_file3$4,
|
|
13467
13467
|
L: 20,
|
|
13468
13468
|
S: this,
|
|
13469
13469
|
A: [
|
|
@@ -13478,7 +13478,7 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
13478
13478
|
}
|
|
13479
13479
|
set($) {
|
|
13480
13480
|
invariant(!this._callback, "Callback already set", {
|
|
13481
|
-
F: __dxlog_file3$
|
|
13481
|
+
F: __dxlog_file3$4,
|
|
13482
13482
|
L: 29,
|
|
13483
13483
|
S: this,
|
|
13484
13484
|
A: [
|
|
@@ -16033,7 +16033,7 @@ const arrow$1 = ($) => {
|
|
|
16033
16033
|
Re,
|
|
16034
16034
|
ye
|
|
16035
16035
|
]);
|
|
16036
|
-
const
|
|
16036
|
+
const Le = (G = He.arrow) === null || G === void 0 ? void 0 : G.x, Ye = (K = He.arrow) === null || K === void 0 ? void 0 : K.y, ct = ((Y = He.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [ut, wt] = useState();
|
|
16037
16037
|
$9f79659886946c16$export$e5c5a5f917a5871c$1(() => {
|
|
16038
16038
|
_e && wt(window.getComputedStyle(_e).zIndex);
|
|
16039
16039
|
}, [
|
|
@@ -16093,7 +16093,7 @@ const arrow$1 = ($) => {
|
|
|
16093
16093
|
scope: ee,
|
|
16094
16094
|
placedSide: Te,
|
|
16095
16095
|
onArrowChange: xe,
|
|
16096
|
-
arrowX:
|
|
16096
|
+
arrowX: Le,
|
|
16097
16097
|
arrowY: Ye,
|
|
16098
16098
|
shouldHideArrow: ct
|
|
16099
16099
|
}, Ut ? /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$var$PositionContextProvider, {
|
|
@@ -20200,7 +20200,7 @@ lodash_merge.exports;
|
|
|
20200
20200
|
} catch {
|
|
20201
20201
|
}
|
|
20202
20202
|
}(), ye = be && be.isTypedArray;
|
|
20203
|
-
function
|
|
20203
|
+
function Le(Pe, Xe, we) {
|
|
20204
20204
|
switch (we.length) {
|
|
20205
20205
|
case 0:
|
|
20206
20206
|
return Pe.call(Xe);
|
|
@@ -20214,9 +20214,9 @@ lodash_merge.exports;
|
|
|
20214
20214
|
return Pe.apply(Xe, we);
|
|
20215
20215
|
}
|
|
20216
20216
|
function Ye(Pe, Xe) {
|
|
20217
|
-
for (var we = -1,
|
|
20218
|
-
|
|
20219
|
-
return
|
|
20217
|
+
for (var we = -1, Me = Array(Pe); ++we < Pe; )
|
|
20218
|
+
Me[we] = Xe(we);
|
|
20219
|
+
return Me;
|
|
20220
20220
|
}
|
|
20221
20221
|
function ct(Pe) {
|
|
20222
20222
|
return function(Xe) {
|
|
@@ -20258,8 +20258,8 @@ lodash_merge.exports;
|
|
|
20258
20258
|
function un(Pe) {
|
|
20259
20259
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20260
20260
|
for (this.clear(); ++Xe < we; ) {
|
|
20261
|
-
var
|
|
20262
|
-
this.set(
|
|
20261
|
+
var Me = Pe[Xe];
|
|
20262
|
+
this.set(Me[0], Me[1]);
|
|
20263
20263
|
}
|
|
20264
20264
|
}
|
|
20265
20265
|
function Pn() {
|
|
@@ -20289,8 +20289,8 @@ lodash_merge.exports;
|
|
|
20289
20289
|
function ln(Pe) {
|
|
20290
20290
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20291
20291
|
for (this.clear(); ++Xe < we; ) {
|
|
20292
|
-
var
|
|
20293
|
-
this.set(
|
|
20292
|
+
var Me = Pe[Xe];
|
|
20293
|
+
this.set(Me[0], Me[1]);
|
|
20294
20294
|
}
|
|
20295
20295
|
}
|
|
20296
20296
|
function Gn() {
|
|
@@ -20300,8 +20300,8 @@ lodash_merge.exports;
|
|
|
20300
20300
|
var Xe = this.__data__, we = dn(Xe, Pe);
|
|
20301
20301
|
if (we < 0)
|
|
20302
20302
|
return !1;
|
|
20303
|
-
var
|
|
20304
|
-
return we ==
|
|
20303
|
+
var Me = Xe.length - 1;
|
|
20304
|
+
return we == Me ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
|
|
20305
20305
|
}
|
|
20306
20306
|
function Kn(Pe) {
|
|
20307
20307
|
var Xe = this.__data__, we = dn(Xe, Pe);
|
|
@@ -20311,15 +20311,15 @@ lodash_merge.exports;
|
|
|
20311
20311
|
return dn(this.__data__, Pe) > -1;
|
|
20312
20312
|
}
|
|
20313
20313
|
function vt(Pe, Xe) {
|
|
20314
|
-
var we = this.__data__,
|
|
20315
|
-
return
|
|
20314
|
+
var we = this.__data__, Me = dn(we, Pe);
|
|
20315
|
+
return Me < 0 ? (++this.size, we.push([Pe, Xe])) : we[Me][1] = Xe, this;
|
|
20316
20316
|
}
|
|
20317
20317
|
ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
|
|
20318
20318
|
function xt(Pe) {
|
|
20319
20319
|
var Xe = -1, we = Pe == null ? 0 : Pe.length;
|
|
20320
20320
|
for (this.clear(); ++Xe < we; ) {
|
|
20321
|
-
var
|
|
20322
|
-
this.set(
|
|
20321
|
+
var Me = Pe[Xe];
|
|
20322
|
+
this.set(Me[0], Me[1]);
|
|
20323
20323
|
}
|
|
20324
20324
|
}
|
|
20325
20325
|
function Ne() {
|
|
@@ -20340,15 +20340,15 @@ lodash_merge.exports;
|
|
|
20340
20340
|
return gt(this, Pe).has(Pe);
|
|
20341
20341
|
}
|
|
20342
20342
|
function Rt(Pe, Xe) {
|
|
20343
|
-
var we = gt(this, Pe),
|
|
20344
|
-
return we.set(Pe, Xe), this.size += we.size ==
|
|
20343
|
+
var we = gt(this, Pe), Me = we.size;
|
|
20344
|
+
return we.set(Pe, Xe), this.size += we.size == Me ? 0 : 1, this;
|
|
20345
20345
|
}
|
|
20346
20346
|
xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
|
|
20347
20347
|
function Bt(Pe) {
|
|
20348
20348
|
var Xe = this.__data__ = new ln(Pe);
|
|
20349
20349
|
this.size = Xe.size;
|
|
20350
20350
|
}
|
|
20351
|
-
function
|
|
20351
|
+
function Lt() {
|
|
20352
20352
|
this.__data__ = new ln(), this.size = 0;
|
|
20353
20353
|
}
|
|
20354
20354
|
function Ot(Pe) {
|
|
@@ -20364,16 +20364,16 @@ lodash_merge.exports;
|
|
|
20364
20364
|
function Yt(Pe, Xe) {
|
|
20365
20365
|
var we = this.__data__;
|
|
20366
20366
|
if (we instanceof ln) {
|
|
20367
|
-
var
|
|
20368
|
-
if (!vn ||
|
|
20369
|
-
return
|
|
20370
|
-
we = this.__data__ = new xt(
|
|
20367
|
+
var Me = we.__data__;
|
|
20368
|
+
if (!vn || Me.length < U - 1)
|
|
20369
|
+
return Me.push([Pe, Xe]), this.size = ++we.size, this;
|
|
20370
|
+
we = this.__data__ = new xt(Me);
|
|
20371
20371
|
}
|
|
20372
20372
|
return we.set(Pe, Xe), this.size = we.size, this;
|
|
20373
20373
|
}
|
|
20374
|
-
Bt.prototype.clear =
|
|
20374
|
+
Bt.prototype.clear = Lt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
|
|
20375
20375
|
function sn(Pe, Xe) {
|
|
20376
|
-
var we = et(Pe),
|
|
20376
|
+
var we = et(Pe), Me = !we && Fe(Pe), Ze = !we && !Me && nn(Pe), $t = !we && !Me && !Ze && yn(Pe), jt = we || Me || Ze || $t, Ft = jt ? Ye(Pe.length, String) : [], Vt = Ft.length;
|
|
20377
20377
|
for (var Gt in Pe)
|
|
20378
20378
|
(Xe || Ht.call(Pe, Gt)) && !(jt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
20379
20379
|
(Gt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -20386,8 +20386,8 @@ lodash_merge.exports;
|
|
|
20386
20386
|
(we !== void 0 && !qn(Pe[Xe], we) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
|
|
20387
20387
|
}
|
|
20388
20388
|
function Yn(Pe, Xe, we) {
|
|
20389
|
-
var
|
|
20390
|
-
(!(Ht.call(Pe, Xe) && qn(
|
|
20389
|
+
var Me = Pe[Xe];
|
|
20390
|
+
(!(Ht.call(Pe, Xe) && qn(Me, we)) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
|
|
20391
20391
|
}
|
|
20392
20392
|
function dn(Pe, Xe) {
|
|
20393
20393
|
for (var we = Pe.length; we--; )
|
|
@@ -20423,21 +20423,21 @@ lodash_merge.exports;
|
|
|
20423
20423
|
if (!an(Pe))
|
|
20424
20424
|
return wn(Pe);
|
|
20425
20425
|
var Xe = cn(Pe), we = [];
|
|
20426
|
-
for (var
|
|
20427
|
-
|
|
20426
|
+
for (var Me in Pe)
|
|
20427
|
+
Me == "constructor" && (Xe || !Ht.call(Pe, Me)) || we.push(Me);
|
|
20428
20428
|
return we;
|
|
20429
20429
|
}
|
|
20430
|
-
function zn(Pe, Xe, we,
|
|
20430
|
+
function zn(Pe, Xe, we, Me, Ze) {
|
|
20431
20431
|
Pe !== Xe && jn(Xe, function($t, jt) {
|
|
20432
20432
|
if (Ze || (Ze = new Bt()), an($t))
|
|
20433
|
-
ir(Pe, Xe, jt, we, zn,
|
|
20433
|
+
ir(Pe, Xe, jt, we, zn, Me, Ze);
|
|
20434
20434
|
else {
|
|
20435
|
-
var Ft =
|
|
20435
|
+
var Ft = Me ? Me(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
|
|
20436
20436
|
Ft === void 0 && (Ft = $t), xn(Pe, jt, Ft);
|
|
20437
20437
|
}
|
|
20438
20438
|
}, gn);
|
|
20439
20439
|
}
|
|
20440
|
-
function ir(Pe, Xe, we,
|
|
20440
|
+
function ir(Pe, Xe, we, Me, Ze, $t, jt) {
|
|
20441
20441
|
var Ft = Wn(Pe, we), Vt = Wn(Xe, we), Gt = jt.get(Vt);
|
|
20442
20442
|
if (Gt) {
|
|
20443
20443
|
xn(Pe, we, Gt);
|
|
@@ -20446,12 +20446,12 @@ lodash_merge.exports;
|
|
|
20446
20446
|
var Xt = $t ? $t(Ft, Vt, we + "", Pe, Xe, jt) : void 0, En = Xt === void 0;
|
|
20447
20447
|
if (En) {
|
|
20448
20448
|
var Rn = et(Vt), er = !Rn && nn(Vt), cr = !Rn && !er && yn(Vt);
|
|
20449
|
-
Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt =
|
|
20449
|
+
Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt = Mt(Vt))) : En = !1;
|
|
20450
20450
|
}
|
|
20451
|
-
En && (jt.set(Vt, Xt), Ze(Xt, Vt,
|
|
20451
|
+
En && (jt.set(Vt, Xt), Ze(Xt, Vt, Me, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
|
|
20452
20452
|
}
|
|
20453
20453
|
function tr(Pe, Xe) {
|
|
20454
|
-
return
|
|
20454
|
+
return Mn(Zn(Pe, Xe, Ln), Pe + "");
|
|
20455
20455
|
}
|
|
20456
20456
|
var Ae = Pt ? function(Pe, Xe) {
|
|
20457
20457
|
return Pt(Pe, "toString", {
|
|
@@ -20460,12 +20460,12 @@ lodash_merge.exports;
|
|
|
20460
20460
|
value: Cn(Xe),
|
|
20461
20461
|
writable: !0
|
|
20462
20462
|
});
|
|
20463
|
-
} :
|
|
20463
|
+
} : Ln;
|
|
20464
20464
|
function Ve(Pe, Xe) {
|
|
20465
20465
|
if (Xe)
|
|
20466
20466
|
return Pe.slice();
|
|
20467
|
-
var we = Pe.length,
|
|
20468
|
-
return Pe.copy(
|
|
20467
|
+
var we = Pe.length, Me = ke ? ke(we) : new Pe.constructor(we);
|
|
20468
|
+
return Pe.copy(Me), Me;
|
|
20469
20469
|
}
|
|
20470
20470
|
function Oe(Pe) {
|
|
20471
20471
|
var Xe = new Pe.constructor(Pe.byteLength);
|
|
@@ -20476,33 +20476,33 @@ lodash_merge.exports;
|
|
|
20476
20476
|
return new Pe.constructor(we, Pe.byteOffset, Pe.length);
|
|
20477
20477
|
}
|
|
20478
20478
|
function Qe(Pe, Xe) {
|
|
20479
|
-
var we = -1,
|
|
20480
|
-
for (Xe || (Xe = Array(
|
|
20479
|
+
var we = -1, Me = Pe.length;
|
|
20480
|
+
for (Xe || (Xe = Array(Me)); ++we < Me; )
|
|
20481
20481
|
Xe[we] = Pe[we];
|
|
20482
20482
|
return Xe;
|
|
20483
20483
|
}
|
|
20484
|
-
function Ke(Pe, Xe, we,
|
|
20484
|
+
function Ke(Pe, Xe, we, Me) {
|
|
20485
20485
|
var Ze = !we;
|
|
20486
20486
|
we || (we = {});
|
|
20487
20487
|
for (var $t = -1, jt = Xe.length; ++$t < jt; ) {
|
|
20488
|
-
var Ft = Xe[$t], Vt =
|
|
20488
|
+
var Ft = Xe[$t], Vt = Me ? Me(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
|
|
20489
20489
|
Vt === void 0 && (Vt = Pe[Ft]), Ze ? Bn(we, Ft, Vt) : Yn(we, Ft, Vt);
|
|
20490
20490
|
}
|
|
20491
20491
|
return we;
|
|
20492
20492
|
}
|
|
20493
20493
|
function ft(Pe) {
|
|
20494
20494
|
return tr(function(Xe, we) {
|
|
20495
|
-
var
|
|
20496
|
-
for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++
|
|
20497
|
-
var Ft = we[
|
|
20498
|
-
Ft && Pe(Xe, Ft,
|
|
20495
|
+
var Me = -1, Ze = we.length, $t = Ze > 1 ? we[Ze - 1] : void 0, jt = Ze > 2 ? we[2] : void 0;
|
|
20496
|
+
for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++Me < Ze; ) {
|
|
20497
|
+
var Ft = we[Me];
|
|
20498
|
+
Ft && Pe(Xe, Ft, Me, $t);
|
|
20499
20499
|
}
|
|
20500
20500
|
return Xe;
|
|
20501
20501
|
});
|
|
20502
20502
|
}
|
|
20503
20503
|
function pt(Pe) {
|
|
20504
|
-
return function(Xe, we,
|
|
20505
|
-
for (var Ze = -1, $t = Object(Xe), jt =
|
|
20504
|
+
return function(Xe, we, Me) {
|
|
20505
|
+
for (var Ze = -1, $t = Object(Xe), jt = Me(Xe), Ft = jt.length; Ft--; ) {
|
|
20506
20506
|
var Vt = jt[Pe ? Ft : ++Ze];
|
|
20507
20507
|
if (we($t[Vt], Vt, $t) === !1)
|
|
20508
20508
|
break;
|
|
@@ -20522,13 +20522,13 @@ lodash_merge.exports;
|
|
|
20522
20522
|
var Xe = Ht.call(Pe, Tt), we = Pe[Tt];
|
|
20523
20523
|
try {
|
|
20524
20524
|
Pe[Tt] = void 0;
|
|
20525
|
-
var
|
|
20525
|
+
var Me = !0;
|
|
20526
20526
|
} catch {
|
|
20527
20527
|
}
|
|
20528
20528
|
var Ze = Ct.call(Pe);
|
|
20529
|
-
return
|
|
20529
|
+
return Me && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
|
|
20530
20530
|
}
|
|
20531
|
-
function
|
|
20531
|
+
function Mt(Pe) {
|
|
20532
20532
|
return typeof Pe.constructor == "function" && !cn(Pe) ? Tn(Se(Pe)) : {};
|
|
20533
20533
|
}
|
|
20534
20534
|
function Wt(Pe, Xe) {
|
|
@@ -20538,8 +20538,8 @@ lodash_merge.exports;
|
|
|
20538
20538
|
function Jt(Pe, Xe, we) {
|
|
20539
20539
|
if (!an(we))
|
|
20540
20540
|
return !1;
|
|
20541
|
-
var
|
|
20542
|
-
return (
|
|
20541
|
+
var Me = typeof Xe;
|
|
20542
|
+
return (Me == "number" ? yt(we) && Wt(Xe, we.length) : Me == "string" && Xe in we) ? qn(we[Xe], Pe) : !1;
|
|
20543
20543
|
}
|
|
20544
20544
|
function tn(Pe) {
|
|
20545
20545
|
var Xe = typeof Pe;
|
|
@@ -20564,24 +20564,24 @@ lodash_merge.exports;
|
|
|
20564
20564
|
}
|
|
20565
20565
|
function Zn(Pe, Xe, we) {
|
|
20566
20566
|
return Xe = Sn(Xe === void 0 ? Pe.length - 1 : Xe, 0), function() {
|
|
20567
|
-
for (var
|
|
20568
|
-
jt[Ze] =
|
|
20567
|
+
for (var Me = arguments, Ze = -1, $t = Sn(Me.length - Xe, 0), jt = Array($t); ++Ze < $t; )
|
|
20568
|
+
jt[Ze] = Me[Xe + Ze];
|
|
20569
20569
|
Ze = -1;
|
|
20570
20570
|
for (var Ft = Array(Xe + 1); ++Ze < Xe; )
|
|
20571
|
-
Ft[Ze] =
|
|
20572
|
-
return Ft[Xe] = we(jt),
|
|
20571
|
+
Ft[Ze] = Me[Ze];
|
|
20572
|
+
return Ft[Xe] = we(jt), Le(Pe, this, Ft);
|
|
20573
20573
|
};
|
|
20574
20574
|
}
|
|
20575
20575
|
function Wn(Pe, Xe) {
|
|
20576
20576
|
if (!(Xe === "constructor" && typeof Pe[Xe] == "function") && Xe != "__proto__")
|
|
20577
20577
|
return Pe[Xe];
|
|
20578
20578
|
}
|
|
20579
|
-
var
|
|
20579
|
+
var Mn = sr(Ae);
|
|
20580
20580
|
function sr(Pe) {
|
|
20581
20581
|
var Xe = 0, we = 0;
|
|
20582
20582
|
return function() {
|
|
20583
|
-
var
|
|
20584
|
-
if (we =
|
|
20583
|
+
var Me = bn(), Ze = K - (Me - we);
|
|
20584
|
+
if (we = Me, Ze > 0) {
|
|
20585
20585
|
if (++Xe >= G)
|
|
20586
20586
|
return arguments[0];
|
|
20587
20587
|
} else
|
|
@@ -20657,7 +20657,7 @@ lodash_merge.exports;
|
|
|
20657
20657
|
return Pe;
|
|
20658
20658
|
};
|
|
20659
20659
|
}
|
|
20660
|
-
function
|
|
20660
|
+
function Ln(Pe) {
|
|
20661
20661
|
return Pe;
|
|
20662
20662
|
}
|
|
20663
20663
|
function Dn() {
|
|
@@ -24229,6 +24229,10 @@ var shadeNumbers = (
|
|
|
24229
24229
|
light: "#ffffff",
|
|
24230
24230
|
dark: "#ffffff"
|
|
24231
24231
|
},
|
|
24232
|
+
transparent: {
|
|
24233
|
+
light: "transparent",
|
|
24234
|
+
dark: "transparent"
|
|
24235
|
+
},
|
|
24232
24236
|
unavailable: {
|
|
24233
24237
|
light: physicalColors.neutral[100],
|
|
24234
24238
|
dark: physicalColors.neutral[600]
|
|
@@ -25225,16 +25229,16 @@ var hueTheme = {
|
|
|
25225
25229
|
start: {
|
|
25226
25230
|
width: "sm:data-[side=is]:is-[270px]",
|
|
25227
25231
|
sidebar: "sm:data-[side=is]:-inline-start-[270px]",
|
|
25228
|
-
content: "lg:data-[sidebar-inline-start-state=open]:pis-[270px]",
|
|
25232
|
+
content: "lg:data-[sidebar-inline-start-state=open]:pis-[270px] lg:data-[sidebar-inline-start-state=open]:scroll-ps-[270px]",
|
|
25229
25233
|
notch: "max-is-[270px]"
|
|
25230
25234
|
},
|
|
25231
25235
|
// TODO(burdon): Maximal size for phone.
|
|
25232
25236
|
end: {
|
|
25233
25237
|
width: "sm:data-[side=ie]:is-[360px]",
|
|
25234
25238
|
sidebar: "sm:data-[side=ie]:-inline-end-[360px]",
|
|
25235
|
-
content: "lg:data-[sidebar-inline-end-state=open]:pie-[360px]"
|
|
25239
|
+
content: "lg:data-[sidebar-inline-end-state=open]:pie-[360px] lg:data-[sidebar-inline-end-state=open]:scroll-pe-[360px]"
|
|
25236
25240
|
}
|
|
25237
|
-
}, mainSidebar = ($, ...I) => mx("fixed block-start-0 block-end-0 is-[100vw] z-10 data-[side=ie]:z-20 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-0 data-[resizing=false]:duration-200 ease-in-out", `data-[side=is]:-inline-start-[100vw] ${sidebarSlots.start.width} ${sidebarSlots.start.sidebar}`, `data-[side=ie]:-inline-end-[100vw] ${sidebarSlots.end.width} ${sidebarSlots.end.sidebar}`, "data-[side=is]:data-[state=open]:inline-start-0 data-[side=ie]:data-[state=open]:inline-end-0", "data-[side=is]:border-ie data-[side=ie]:border-is", fixedBorder, fixedSurface, ...I), mainContent = ({ bounce: $ }, ...I) => mx("transition-[padding-inline-start,padding-
|
|
25241
|
+
}, mainSidebar = ($, ...I) => mx("fixed block-start-0 block-end-0 is-[100vw] z-10 data-[side=ie]:z-20 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-0 data-[resizing=false]:duration-200 ease-in-out", `data-[side=is]:-inline-start-[100vw] ${sidebarSlots.start.width} ${sidebarSlots.start.sidebar}`, `data-[side=ie]:-inline-end-[100vw] ${sidebarSlots.end.width} ${sidebarSlots.end.sidebar}`, "data-[side=is]:data-[state=open]:inline-start-0 data-[side=ie]:data-[state=open]:inline-end-0", "data-[side=is]:border-ie data-[side=ie]:border-is", fixedBorder, fixedSurface, ...I), mainContent = ({ bounce: $ }, ...I) => mx("transition-[padding-inline-start,padding-inline-end,scroll-padding-start,scroll-padding-end] duration-200 ease-in-out", `pis-0 scroll-ps-0 ${sidebarSlots.start.content}`, `pie-0 scroll-pe-0 ${sidebarSlots.end.content}`, $ && bounceLayout, ...I), mainOverlay = ($, ...I) => mx("fixed inset-0 z-[9] surface-scrim", "transition-opacity duration-200 ease-in-out", "opacity-0 data-[state=open]:opacity-100 lg:data-[state=open]:opacity-100", "hidden data-[state=open]:block lg:data-[state=open]:hidden", ...I), mainNotch = ($, ...I) => mx("fixed z-[11] block-end-0 inline-start-0 pbe-[env(safe-area-inset-bottom)] rounded-se-lg min-bs-[var(--rail-size)] is-fit separator-separator surface-base", "transition-[border-width] box-content border-bs border-ie data-[nav-sidebar-state=open]:border-bs-0 data-[nav-sidebar-state=open]:border-ie-0", "pli-1 grid grid-cols-[repeat(auto-fit,var(--rail-action))]", sidebarSlots.start.notch, ...I), mainTheme = {
|
|
25238
25242
|
content: mainContent,
|
|
25239
25243
|
sidebar: mainSidebar,
|
|
25240
25244
|
overlay: mainOverlay,
|
|
@@ -69502,7 +69506,7 @@ function formatDistance($, I, U) {
|
|
|
69502
69506
|
function formatDistanceToNow($, I) {
|
|
69503
69507
|
return formatDistance($, Date.now(), I);
|
|
69504
69508
|
}
|
|
69505
|
-
var LogLevel;
|
|
69509
|
+
var RPC_TIMEOUT = 2e4, LogLevel;
|
|
69506
69510
|
(function($) {
|
|
69507
69511
|
$[$.TRACE = 5] = "TRACE", $[$.DEBUG = 10] = "DEBUG", $[$.INFO = 11] = "INFO", $[$.WARN = 12] = "WARN", $[$.ERROR = 13] = "ERROR";
|
|
69508
69512
|
})(LogLevel || (LogLevel = {}));
|
|
@@ -69644,37 +69648,33 @@ var __dxlog_file$7 = "/home/runner/work/dxos/dxos/packages/common/context/src/co
|
|
|
69644
69648
|
}
|
|
69645
69649
|
/**
|
|
69646
69650
|
* Runs all dispose callbacks.
|
|
69647
|
-
*
|
|
69648
|
-
* Async callbacks are run in parallel.
|
|
69651
|
+
* Callbacks are run in the reverse order they were added.
|
|
69649
69652
|
* This function never throws.
|
|
69650
69653
|
* It is safe to ignore the returned promise if the caller does not wish to wait for callbacks to complete.
|
|
69651
69654
|
* Disposing context means that onDispose will throw an error and any errors raised will be logged and not propagated.
|
|
69652
69655
|
*/
|
|
69653
|
-
dispose() {
|
|
69656
|
+
async dispose() {
|
|
69654
69657
|
if (this._disposePromise)
|
|
69655
69658
|
return this._disposePromise;
|
|
69656
69659
|
this._isDisposed = !0;
|
|
69657
69660
|
let I;
|
|
69658
|
-
this._disposePromise = new Promise((
|
|
69659
|
-
I =
|
|
69661
|
+
this._disposePromise = new Promise((q) => {
|
|
69662
|
+
I = q;
|
|
69660
69663
|
});
|
|
69661
|
-
const U =
|
|
69662
|
-
|
|
69663
|
-
|
|
69664
|
-
|
|
69665
|
-
|
|
69666
|
-
|
|
69667
|
-
|
|
69668
|
-
|
|
69669
|
-
|
|
69670
|
-
|
|
69671
|
-
|
|
69672
|
-
|
|
69673
|
-
|
|
69674
|
-
|
|
69675
|
-
return this._disposeCallbacks.length = 0, Promise.all(U).then(() => {
|
|
69676
|
-
I();
|
|
69677
|
-
}), this._disposePromise;
|
|
69664
|
+
const U = Array.from(this._disposeCallbacks).reverse();
|
|
69665
|
+
this._disposeCallbacks.length = 0;
|
|
69666
|
+
for (const q of U)
|
|
69667
|
+
try {
|
|
69668
|
+
await q();
|
|
69669
|
+
} catch (G) {
|
|
69670
|
+
log$2.catch(G, void 0, {
|
|
69671
|
+
F: __dxlog_file$7,
|
|
69672
|
+
L: 136,
|
|
69673
|
+
S: this,
|
|
69674
|
+
C: (K, Y) => K(...Y)
|
|
69675
|
+
});
|
|
69676
|
+
}
|
|
69677
|
+
I();
|
|
69678
69678
|
}
|
|
69679
69679
|
/**
|
|
69680
69680
|
* Raise the error inside the context.
|
|
@@ -70975,13 +70975,13 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
70975
70975
|
}, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
|
|
70976
70976
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
|
|
70977
70977
|
}, J.prototype.readBigUInt64LE = Ct(function(ie) {
|
|
70978
|
-
ie = ie >>> 0,
|
|
70978
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
70979
70979
|
const oe = this[ie], pe = this[ie + 7];
|
|
70980
70980
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
70981
70981
|
const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
|
|
70982
70982
|
return BigInt(ke) + (BigInt(Se) << BigInt(32));
|
|
70983
70983
|
}), J.prototype.readBigUInt64BE = Ct(function(ie) {
|
|
70984
|
-
ie = ie >>> 0,
|
|
70984
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
70985
70985
|
const oe = this[ie], pe = this[ie + 7];
|
|
70986
70986
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
70987
70987
|
const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
|
|
@@ -71013,13 +71013,13 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
71013
71013
|
}, J.prototype.readInt32BE = function(ie, oe) {
|
|
71014
71014
|
return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
|
|
71015
71015
|
}, J.prototype.readBigInt64LE = Ct(function(ie) {
|
|
71016
|
-
ie = ie >>> 0,
|
|
71016
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
71017
71017
|
const oe = this[ie], pe = this[ie + 7];
|
|
71018
71018
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
71019
71019
|
const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
|
|
71020
71020
|
return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
|
|
71021
71021
|
}), J.prototype.readBigInt64BE = Ct(function(ie) {
|
|
71022
|
-
ie = ie >>> 0,
|
|
71022
|
+
ie = ie >>> 0, Le(ie, "offset");
|
|
71023
71023
|
const oe = this[ie], pe = this[ie + 7];
|
|
71024
71024
|
(oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
|
|
71025
71025
|
const ke = (oe << 24) + // Overflow
|
|
@@ -71245,7 +71245,7 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
71245
71245
|
return `${de.slice(0, oe)}${ie}`;
|
|
71246
71246
|
}
|
|
71247
71247
|
function be(de, ie, oe) {
|
|
71248
|
-
|
|
71248
|
+
Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
|
|
71249
71249
|
}
|
|
71250
71250
|
function ye(de, ie, oe, pe, ke, Se) {
|
|
71251
71251
|
if (de > oe || de < ie) {
|
|
@@ -71255,12 +71255,12 @@ ieee754.write = function($, I, U, q, G, K) {
|
|
|
71255
71255
|
}
|
|
71256
71256
|
be(pe, ke, Se);
|
|
71257
71257
|
}
|
|
71258
|
-
function
|
|
71258
|
+
function Le(de, ie) {
|
|
71259
71259
|
if (typeof de != "number")
|
|
71260
71260
|
throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
|
|
71261
71261
|
}
|
|
71262
71262
|
function Ye(de, ie, oe) {
|
|
71263
|
-
throw Math.floor(de) !== de ? (
|
|
71263
|
+
throw Math.floor(de) !== de ? (Le(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
|
|
71264
71264
|
oe || "offset",
|
|
71265
71265
|
`>= ${oe ? 1 : 0} and <= ${ie}`,
|
|
71266
71266
|
de
|
|
@@ -71803,8 +71803,8 @@ function require_stream_writable() {
|
|
|
71803
71803
|
var ye = Ee(He, Re, Te);
|
|
71804
71804
|
Re !== ye && (Ie = !0, Te = "buffer", Re = ye);
|
|
71805
71805
|
}
|
|
71806
|
-
var
|
|
71807
|
-
He.length +=
|
|
71806
|
+
var Le = He.objectMode ? 1 : Re.length;
|
|
71807
|
+
He.length += Le;
|
|
71808
71808
|
var Ye = He.length < He.highWaterMark;
|
|
71809
71809
|
if (Ye || (He.needDrain = !0), He.writing || He.corked) {
|
|
71810
71810
|
var ct = He.lastBufferedRequest;
|
|
@@ -71816,7 +71816,7 @@ function require_stream_writable() {
|
|
|
71816
71816
|
next: null
|
|
71817
71817
|
}, ct ? ct.next = He.lastBufferedRequest : He.bufferedRequest = He.lastBufferedRequest, He.bufferedRequestCount += 1;
|
|
71818
71818
|
} else
|
|
71819
|
-
Be(Ue, He, !1,
|
|
71819
|
+
Be(Ue, He, !1, Le, Re, Te, be);
|
|
71820
71820
|
return Ye;
|
|
71821
71821
|
}
|
|
71822
71822
|
function Be(Ue, He, Ie, Re, Te, be, ye) {
|
|
@@ -71851,9 +71851,9 @@ function require_stream_writable() {
|
|
|
71851
71851
|
if (Ue._writev && Ie && Ie.next) {
|
|
71852
71852
|
var Re = He.bufferedRequestCount, Te = new Array(Re), be = He.corkedRequestsFree;
|
|
71853
71853
|
be.entry = Ie;
|
|
71854
|
-
for (var ye = 0,
|
|
71855
|
-
Te[ye] = Ie, Ie.isBuf || (
|
|
71856
|
-
Te.allBuffers =
|
|
71854
|
+
for (var ye = 0, Le = !0; Ie; )
|
|
71855
|
+
Te[ye] = Ie, Ie.isBuf || (Le = !1), Ie = Ie.next, ye += 1;
|
|
71856
|
+
Te.allBuffers = Le, Be(Ue, He, !0, He.length, Te, "", be.finish), He.pendingcb++, He.lastBufferedRequest = null, be.next ? (He.corkedRequestsFree = be.next, be.next = null) : He.corkedRequestsFree = new $(He), He.bufferedRequestCount = 0;
|
|
71857
71857
|
} else {
|
|
71858
71858
|
for (; Ie; ) {
|
|
71859
71859
|
var Ye = Ie.chunk, ct = Ie.encoding, ut = Ie.callback, wt = He.objectMode ? 1 : Ye.length;
|
|
@@ -72359,8 +72359,8 @@ function require_stream_readable() {
|
|
|
72359
72359
|
hasRequired_stream_readable = 1, _stream_readable = $e;
|
|
72360
72360
|
var $;
|
|
72361
72361
|
$e.ReadableState = _e, eventsExports.EventEmitter;
|
|
72362
|
-
var I = function(ye,
|
|
72363
|
-
return ye.listeners(
|
|
72362
|
+
var I = function(ye, Le) {
|
|
72363
|
+
return ye.listeners(Le).length;
|
|
72364
72364
|
}, U = streamBrowser, q = buffer.Buffer, G = commonjsGlobal.Uint8Array || function() {
|
|
72365
72365
|
};
|
|
72366
72366
|
function K(be) {
|
|
@@ -72375,13 +72375,13 @@ function require_stream_readable() {
|
|
|
72375
72375
|
var Q = requireBuffer_list(), ee = destroy_1, te = state, ne = te.getHighWaterMark, re = errorsBrowser.codes, ae = re.ERR_INVALID_ARG_TYPE, se = re.ERR_STREAM_PUSH_AFTER_EOF, fe = re.ERR_METHOD_NOT_IMPLEMENTED, le = re.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, ce, ue, he;
|
|
72376
72376
|
inherits_browserExports($e, U);
|
|
72377
72377
|
var ve = ee.errorOrDestroy, me = ["error", "close", "destroy", "pause", "resume"];
|
|
72378
|
-
function ge(be, ye,
|
|
72378
|
+
function ge(be, ye, Le) {
|
|
72379
72379
|
if (typeof be.prependListener == "function")
|
|
72380
|
-
return be.prependListener(ye,
|
|
72381
|
-
!be._events || !be._events[ye] ? be.on(ye,
|
|
72380
|
+
return be.prependListener(ye, Le);
|
|
72381
|
+
!be._events || !be._events[ye] ? be.on(ye, Le) : Array.isArray(be._events[ye]) ? be._events[ye].unshift(Le) : be._events[ye] = [Le, be._events[ye]];
|
|
72382
72382
|
}
|
|
72383
|
-
function _e(be, ye,
|
|
72384
|
-
$ = $ || require_stream_duplex(), be = be || {}, typeof
|
|
72383
|
+
function _e(be, ye, Le) {
|
|
72384
|
+
$ = $ || require_stream_duplex(), be = be || {}, typeof Le != "boolean" && (Le = ye instanceof $), this.objectMode = !!be.objectMode, Le && (this.objectMode = this.objectMode || !!be.readableObjectMode), this.highWaterMark = ne(this, be, "readableHighWaterMark", Le), this.buffer = new Q(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = be.emitClose !== !1, this.autoDestroy = !!be.autoDestroy, this.destroyed = !1, this.defaultEncoding = be.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, be.encoding && (ce || (ce = requireString_decoder().StringDecoder), this.decoder = new ce(be.encoding), this.encoding = be.encoding);
|
|
72385
72385
|
}
|
|
72386
72386
|
function $e(be) {
|
|
72387
72387
|
if ($ = $ || require_stream_duplex(), !(this instanceof $e))
|
|
@@ -72403,12 +72403,12 @@ function require_stream_readable() {
|
|
|
72403
72403
|
}), $e.prototype.destroy = ee.destroy, $e.prototype._undestroy = ee.undestroy, $e.prototype._destroy = function(be, ye) {
|
|
72404
72404
|
ye(be);
|
|
72405
72405
|
}, $e.prototype.push = function(be, ye) {
|
|
72406
|
-
var
|
|
72407
|
-
return
|
|
72406
|
+
var Le = this._readableState, Ye;
|
|
72407
|
+
return Le.objectMode ? Ye = !0 : typeof be == "string" && (ye = ye || Le.defaultEncoding, ye !== Le.encoding && (be = q.from(be, ye), ye = ""), Ye = !0), Ce(this, be, ye, !1, Ye);
|
|
72408
72408
|
}, $e.prototype.unshift = function(be) {
|
|
72409
72409
|
return Ce(this, be, null, !0, !1);
|
|
72410
72410
|
};
|
|
72411
|
-
function Ce(be, ye,
|
|
72411
|
+
function Ce(be, ye, Le, Ye, ct) {
|
|
72412
72412
|
Z("readableAddChunk", ye);
|
|
72413
72413
|
var ut = be._readableState;
|
|
72414
72414
|
if (ye === null)
|
|
@@ -72425,19 +72425,19 @@ function require_stream_readable() {
|
|
|
72425
72425
|
else {
|
|
72426
72426
|
if (ut.destroyed)
|
|
72427
72427
|
return !1;
|
|
72428
|
-
ut.reading = !1, ut.decoder && !
|
|
72428
|
+
ut.reading = !1, ut.decoder && !Le ? (ye = ut.decoder.write(ye), ut.objectMode || ye.length !== 0 ? Ee(be, ut, ye, !1) : at(be, ut)) : Ee(be, ut, ye, !1);
|
|
72429
72429
|
}
|
|
72430
72430
|
else
|
|
72431
72431
|
Ye || (ut.reading = !1, at(be, ut));
|
|
72432
72432
|
}
|
|
72433
72433
|
return !ut.ended && (ut.length < ut.highWaterMark || ut.length === 0);
|
|
72434
72434
|
}
|
|
72435
|
-
function Ee(be, ye,
|
|
72436
|
-
ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data",
|
|
72435
|
+
function Ee(be, ye, Le, Ye) {
|
|
72436
|
+
ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data", Le)) : (ye.length += ye.objectMode ? 1 : Le.length, Ye ? ye.buffer.unshift(Le) : ye.buffer.push(Le), ye.needReadable && st(be)), at(be, ye);
|
|
72437
72437
|
}
|
|
72438
72438
|
function xe(be, ye) {
|
|
72439
|
-
var
|
|
72440
|
-
return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (
|
|
72439
|
+
var Le;
|
|
72440
|
+
return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Le = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Le;
|
|
72441
72441
|
}
|
|
72442
72442
|
$e.prototype.isPaused = function() {
|
|
72443
72443
|
return this._readableState.flowing === !1;
|
|
@@ -72445,8 +72445,8 @@ function require_stream_readable() {
|
|
|
72445
72445
|
ce || (ce = requireString_decoder().StringDecoder);
|
|
72446
72446
|
var ye = new ce(be);
|
|
72447
72447
|
this._readableState.decoder = ye, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
72448
|
-
for (var
|
|
72449
|
-
Ye += ye.write(
|
|
72448
|
+
for (var Le = this._readableState.buffer.head, Ye = ""; Le !== null; )
|
|
72449
|
+
Ye += ye.write(Le.data), Le = Le.next;
|
|
72450
72450
|
return this._readableState.buffer.clear(), Ye !== "" && this._readableState.buffer.push(Ye), this._readableState.length = Ye.length, this;
|
|
72451
72451
|
};
|
|
72452
72452
|
var Be = 1073741824;
|
|
@@ -72458,21 +72458,21 @@ function require_stream_readable() {
|
|
|
72458
72458
|
}
|
|
72459
72459
|
$e.prototype.read = function(be) {
|
|
72460
72460
|
Z("read", be), be = parseInt(be, 10);
|
|
72461
|
-
var ye = this._readableState,
|
|
72461
|
+
var ye = this._readableState, Le = be;
|
|
72462
72462
|
if (be !== 0 && (ye.emittedReadable = !1), be === 0 && ye.needReadable && ((ye.highWaterMark !== 0 ? ye.length >= ye.highWaterMark : ye.length > 0) || ye.ended))
|
|
72463
72463
|
return Z("read: emitReadable", ye.length, ye.ended), ye.length === 0 && ye.ended ? Ie(this) : st(this), null;
|
|
72464
72464
|
if (be = Ge(be, ye), be === 0 && ye.ended)
|
|
72465
72465
|
return ye.length === 0 && Ie(this), null;
|
|
72466
72466
|
var Ye = ye.needReadable;
|
|
72467
|
-
Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(
|
|
72467
|
+
Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(Le, ye)));
|
|
72468
72468
|
var ct;
|
|
72469
|
-
return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0),
|
|
72469
|
+
return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0), Le !== be && ye.ended && Ie(this)), ct !== null && this.emit("data", ct), ct;
|
|
72470
72470
|
};
|
|
72471
72471
|
function rt(be, ye) {
|
|
72472
72472
|
if (Z("onEofChunk"), !ye.ended) {
|
|
72473
72473
|
if (ye.decoder) {
|
|
72474
|
-
var
|
|
72475
|
-
|
|
72474
|
+
var Le = ye.decoder.end();
|
|
72475
|
+
Le && Le.length && (ye.buffer.push(Le), ye.length += ye.objectMode ? 1 : Le.length);
|
|
72476
72476
|
}
|
|
72477
72477
|
ye.ended = !0, ye.sync ? st(be) : (ye.needReadable = !1, ye.emittedReadable || (ye.emittedReadable = !0, lt(be)));
|
|
72478
72478
|
}
|
|
@@ -72490,8 +72490,8 @@ function require_stream_readable() {
|
|
|
72490
72490
|
}
|
|
72491
72491
|
function ht(be, ye) {
|
|
72492
72492
|
for (; !ye.reading && !ye.ended && (ye.length < ye.highWaterMark || ye.flowing && ye.length === 0); ) {
|
|
72493
|
-
var
|
|
72494
|
-
if (Z("maybeReadMore read 0"), be.read(0),
|
|
72493
|
+
var Le = ye.length;
|
|
72494
|
+
if (Z("maybeReadMore read 0"), be.read(0), Le === ye.length)
|
|
72495
72495
|
break;
|
|
72496
72496
|
}
|
|
72497
72497
|
ye.readingMore = !1;
|
|
@@ -72499,7 +72499,7 @@ function require_stream_readable() {
|
|
|
72499
72499
|
$e.prototype._read = function(be) {
|
|
72500
72500
|
ve(this, new fe("_read()"));
|
|
72501
72501
|
}, $e.prototype.pipe = function(be, ye) {
|
|
72502
|
-
var
|
|
72502
|
+
var Le = this, Ye = this._readableState;
|
|
72503
72503
|
switch (Ye.pipesCount) {
|
|
72504
72504
|
case 0:
|
|
72505
72505
|
Ye.pipes = be;
|
|
@@ -72513,24 +72513,24 @@ function require_stream_readable() {
|
|
|
72513
72513
|
}
|
|
72514
72514
|
Ye.pipesCount += 1, Z("pipe count=%d opts=%j", Ye.pipesCount, ye);
|
|
72515
72515
|
var ct = (!ye || ye.end !== !1) && be !== process.stdout && be !== process.stderr, ut = ct ? St : zt;
|
|
72516
|
-
Ye.endEmitted ? process.nextTick(ut) :
|
|
72516
|
+
Ye.endEmitted ? process.nextTick(ut) : Le.once("end", ut), be.on("unpipe", wt);
|
|
72517
72517
|
function wt(de, ie) {
|
|
72518
|
-
Z("onunpipe"), de ===
|
|
72518
|
+
Z("onunpipe"), de === Le && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
|
|
72519
72519
|
}
|
|
72520
72520
|
function St() {
|
|
72521
72521
|
Z("onend"), be.end();
|
|
72522
72522
|
}
|
|
72523
|
-
var it = tt(
|
|
72523
|
+
var it = tt(Le);
|
|
72524
72524
|
be.on("drain", it);
|
|
72525
72525
|
var Ut = !1;
|
|
72526
72526
|
function Kt() {
|
|
72527
|
-
Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt),
|
|
72527
|
+
Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt), Le.removeListener("end", St), Le.removeListener("end", zt), Le.removeListener("data", It), Ut = !0, Ye.awaitDrain && (!be._writableState || be._writableState.needDrain) && it();
|
|
72528
72528
|
}
|
|
72529
|
-
|
|
72529
|
+
Le.on("data", It);
|
|
72530
72530
|
function It(de) {
|
|
72531
72531
|
Z("ondata");
|
|
72532
72532
|
var ie = be.write(de);
|
|
72533
|
-
Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++),
|
|
72533
|
+
Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++), Le.pause());
|
|
72534
72534
|
}
|
|
72535
72535
|
function Ht(de) {
|
|
72536
72536
|
Z("onerror", de), zt(), be.removeListener("error", Ht), I(be, "error") === 0 && ve(be, de);
|
|
@@ -72545,24 +72545,24 @@ function require_stream_readable() {
|
|
|
72545
72545
|
}
|
|
72546
72546
|
be.once("finish", Ct);
|
|
72547
72547
|
function zt() {
|
|
72548
|
-
Z("unpipe"),
|
|
72548
|
+
Z("unpipe"), Le.unpipe(be);
|
|
72549
72549
|
}
|
|
72550
|
-
return be.emit("pipe",
|
|
72550
|
+
return be.emit("pipe", Le), Ye.flowing || (Z("pipe resume"), Le.resume()), be;
|
|
72551
72551
|
};
|
|
72552
72552
|
function tt(be) {
|
|
72553
72553
|
return function() {
|
|
72554
|
-
var
|
|
72555
|
-
Z("pipeOnDrain",
|
|
72554
|
+
var Le = be._readableState;
|
|
72555
|
+
Z("pipeOnDrain", Le.awaitDrain), Le.awaitDrain && Le.awaitDrain--, Le.awaitDrain === 0 && I(be, "data") && (Le.flowing = !0, Ue(be));
|
|
72556
72556
|
};
|
|
72557
72557
|
}
|
|
72558
72558
|
$e.prototype.unpipe = function(be) {
|
|
72559
|
-
var ye = this._readableState,
|
|
72559
|
+
var ye = this._readableState, Le = {
|
|
72560
72560
|
hasUnpiped: !1
|
|
72561
72561
|
};
|
|
72562
72562
|
if (ye.pipesCount === 0)
|
|
72563
72563
|
return this;
|
|
72564
72564
|
if (ye.pipesCount === 1)
|
|
72565
|
-
return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this,
|
|
72565
|
+
return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this, Le), this);
|
|
72566
72566
|
if (!be) {
|
|
72567
72567
|
var Ye = ye.pipes, ct = ye.pipesCount;
|
|
72568
72568
|
ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1;
|
|
@@ -72573,13 +72573,13 @@ function require_stream_readable() {
|
|
|
72573
72573
|
return this;
|
|
72574
72574
|
}
|
|
72575
72575
|
var wt = Te(ye.pipes, be);
|
|
72576
|
-
return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this,
|
|
72576
|
+
return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this, Le), this);
|
|
72577
72577
|
}, $e.prototype.on = function(be, ye) {
|
|
72578
|
-
var
|
|
72579
|
-
return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)),
|
|
72578
|
+
var Le = U.prototype.on.call(this, be, ye), Ye = this._readableState;
|
|
72579
|
+
return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)), Le;
|
|
72580
72580
|
}, $e.prototype.addListener = $e.prototype.on, $e.prototype.removeListener = function(be, ye) {
|
|
72581
|
-
var
|
|
72582
|
-
return be === "readable" && process.nextTick(ze, this),
|
|
72581
|
+
var Le = U.prototype.removeListener.call(this, be, ye);
|
|
72582
|
+
return be === "readable" && process.nextTick(ze, this), Le;
|
|
72583
72583
|
}, $e.prototype.removeAllListeners = function(be) {
|
|
72584
72584
|
var ye = U.prototype.removeAllListeners.apply(this, arguments);
|
|
72585
72585
|
return (be === "readable" || be === void 0) && process.nextTick(ze, this), ye;
|
|
@@ -72610,15 +72610,15 @@ function require_stream_readable() {
|
|
|
72610
72610
|
;
|
|
72611
72611
|
}
|
|
72612
72612
|
$e.prototype.wrap = function(be) {
|
|
72613
|
-
var ye = this,
|
|
72613
|
+
var ye = this, Le = this._readableState, Ye = !1;
|
|
72614
72614
|
be.on("end", function() {
|
|
72615
|
-
if (Z("wrapped end"),
|
|
72616
|
-
var wt =
|
|
72615
|
+
if (Z("wrapped end"), Le.decoder && !Le.ended) {
|
|
72616
|
+
var wt = Le.decoder.end();
|
|
72617
72617
|
wt && wt.length && ye.push(wt);
|
|
72618
72618
|
}
|
|
72619
72619
|
ye.push(null);
|
|
72620
72620
|
}), be.on("data", function(wt) {
|
|
72621
|
-
if (Z("wrapped data"),
|
|
72621
|
+
if (Z("wrapped data"), Le.decoder && (wt = Le.decoder.write(wt)), !(Le.objectMode && wt == null) && !(!Le.objectMode && (!wt || !wt.length))) {
|
|
72622
72622
|
var St = ye.push(wt);
|
|
72623
72623
|
St || (Ye = !0, be.pause());
|
|
72624
72624
|
}
|
|
@@ -72675,8 +72675,8 @@ function require_stream_readable() {
|
|
|
72675
72675
|
function He(be, ye) {
|
|
72676
72676
|
if (ye.length === 0)
|
|
72677
72677
|
return null;
|
|
72678
|
-
var
|
|
72679
|
-
return ye.objectMode ?
|
|
72678
|
+
var Le;
|
|
72679
|
+
return ye.objectMode ? Le = ye.buffer.shift() : !be || be >= ye.length ? (ye.decoder ? Le = ye.buffer.join("") : ye.buffer.length === 1 ? Le = ye.buffer.first() : Le = ye.buffer.concat(ye.length), ye.buffer.clear()) : Le = ye.buffer.consume(be, ye.decoder), Le;
|
|
72680
72680
|
}
|
|
72681
72681
|
function Ie(be) {
|
|
72682
72682
|
var ye = be._readableState;
|
|
@@ -72684,17 +72684,17 @@ function require_stream_readable() {
|
|
|
72684
72684
|
}
|
|
72685
72685
|
function Re(be, ye) {
|
|
72686
72686
|
if (Z("endReadableNT", be.endEmitted, be.length), !be.endEmitted && be.length === 0 && (be.endEmitted = !0, ye.readable = !1, ye.emit("end"), be.autoDestroy)) {
|
|
72687
|
-
var
|
|
72688
|
-
(!
|
|
72687
|
+
var Le = ye._writableState;
|
|
72688
|
+
(!Le || Le.autoDestroy && Le.finished) && ye.destroy();
|
|
72689
72689
|
}
|
|
72690
72690
|
}
|
|
72691
72691
|
typeof Symbol == "function" && ($e.from = function(be, ye) {
|
|
72692
72692
|
return he === void 0 && (he = requireFromBrowser()), he($e, be, ye);
|
|
72693
72693
|
});
|
|
72694
72694
|
function Te(be, ye) {
|
|
72695
|
-
for (var
|
|
72696
|
-
if (be[
|
|
72697
|
-
return
|
|
72695
|
+
for (var Le = 0, Ye = be.length; Le < Ye; Le++)
|
|
72696
|
+
if (be[Le] === ye)
|
|
72697
|
+
return Le;
|
|
72698
72698
|
return -1;
|
|
72699
72699
|
}
|
|
72700
72700
|
return _stream_readable;
|
|
@@ -78256,8 +78256,8 @@ function parse($, I, U) {
|
|
|
78256
78256
|
function xe(Re, Te, be) {
|
|
78257
78257
|
var ye = G.line;
|
|
78258
78258
|
if (Re && (typeof Re.comment != "string" && (Re.comment = Q()), Re.filename = parse.filename), Z("{", !0)) {
|
|
78259
|
-
for (var
|
|
78260
|
-
Te(
|
|
78259
|
+
for (var Le; (Le = K()) !== "}"; )
|
|
78260
|
+
Te(Le);
|
|
78261
78261
|
Z(";", !0);
|
|
78262
78262
|
} else
|
|
78263
78263
|
be && be(), Z(";"), Re && (typeof Re.comment != "string" || q) && (Re.comment = Q(ye) || Re.comment);
|
|
@@ -78266,21 +78266,21 @@ function parse($, I, U) {
|
|
|
78266
78266
|
if (!nameRe.test(Te = K()))
|
|
78267
78267
|
throw ce(Te, "type name");
|
|
78268
78268
|
var be = new Type(Te);
|
|
78269
|
-
xe(be, function(
|
|
78270
|
-
if (!Ee(be,
|
|
78271
|
-
switch (
|
|
78269
|
+
xe(be, function(Le) {
|
|
78270
|
+
if (!Ee(be, Le))
|
|
78271
|
+
switch (Le) {
|
|
78272
78272
|
case "map":
|
|
78273
78273
|
rt(be);
|
|
78274
78274
|
break;
|
|
78275
78275
|
case "required":
|
|
78276
78276
|
case "repeated":
|
|
78277
|
-
je(be,
|
|
78277
|
+
je(be, Le);
|
|
78278
78278
|
break;
|
|
78279
78279
|
case "optional":
|
|
78280
78280
|
se ? je(be, "proto3_optional") : je(be, "optional");
|
|
78281
78281
|
break;
|
|
78282
78282
|
case "oneof":
|
|
78283
|
-
st(be,
|
|
78283
|
+
st(be, Le);
|
|
78284
78284
|
break;
|
|
78285
78285
|
case "extensions":
|
|
78286
78286
|
ve(be.extensions || (be.extensions = []));
|
|
@@ -78289,9 +78289,9 @@ function parse($, I, U) {
|
|
|
78289
78289
|
ve(be.reserved || (be.reserved = []), !0);
|
|
78290
78290
|
break;
|
|
78291
78291
|
default:
|
|
78292
|
-
if (!se || !typeRefRe.test(
|
|
78293
|
-
throw ce(
|
|
78294
|
-
Y(
|
|
78292
|
+
if (!se || !typeRefRe.test(Le))
|
|
78293
|
+
throw ce(Le);
|
|
78294
|
+
Y(Le), je(be, "optional");
|
|
78295
78295
|
break;
|
|
78296
78296
|
}
|
|
78297
78297
|
}), Re.add(be);
|
|
@@ -78304,11 +78304,11 @@ function parse($, I, U) {
|
|
|
78304
78304
|
}
|
|
78305
78305
|
if (!typeRefRe.test(ye))
|
|
78306
78306
|
throw ce(ye, "type");
|
|
78307
|
-
var
|
|
78308
|
-
if (!nameRe.test(
|
|
78309
|
-
throw ce(
|
|
78310
|
-
|
|
78311
|
-
var Ye = new Field(
|
|
78307
|
+
var Le = K();
|
|
78308
|
+
if (!nameRe.test(Le))
|
|
78309
|
+
throw ce(Le, "name");
|
|
78310
|
+
Le = le(Le), Z("=");
|
|
78311
|
+
var Ye = new Field(Le, ge(K()), ye, Te, be);
|
|
78312
78312
|
if (xe(Ye, function(wt) {
|
|
78313
78313
|
if (wt === "option")
|
|
78314
78314
|
ht(Ye, wt), Z(";");
|
|
@@ -78317,7 +78317,7 @@ function parse($, I, U) {
|
|
|
78317
78317
|
}, function() {
|
|
78318
78318
|
nt(Ye);
|
|
78319
78319
|
}), Te === "proto3_optional") {
|
|
78320
|
-
var ct = new OneOf("_" +
|
|
78320
|
+
var ct = new OneOf("_" + Le);
|
|
78321
78321
|
Ye.setOption("proto3_optional", !0), ct.add(Ye), Re.add(ct);
|
|
78322
78322
|
} else
|
|
78323
78323
|
Re.add(Ye);
|
|
@@ -78334,9 +78334,9 @@ function parse($, I, U) {
|
|
|
78334
78334
|
throw ce(be, "name");
|
|
78335
78335
|
var ye = util.lcFirst(be);
|
|
78336
78336
|
be === ye && (be = util.ucFirst(be)), Z("=");
|
|
78337
|
-
var
|
|
78337
|
+
var Le = ge(K()), Ye = new Type(be);
|
|
78338
78338
|
Ye.group = !0;
|
|
78339
|
-
var ct = new Field(ye,
|
|
78339
|
+
var ct = new Field(ye, Le, be, Te);
|
|
78340
78340
|
ct.filename = parse.filename, xe(Ye, function(wt) {
|
|
78341
78341
|
switch (wt) {
|
|
78342
78342
|
case "option":
|
|
@@ -78374,38 +78374,38 @@ function parse($, I, U) {
|
|
|
78374
78374
|
if (!nameRe.test(ye))
|
|
78375
78375
|
throw ce(ye, "name");
|
|
78376
78376
|
Z("=");
|
|
78377
|
-
var
|
|
78378
|
-
xe(
|
|
78377
|
+
var Le = new MapField(le(ye), ge(K()), Te, be);
|
|
78378
|
+
xe(Le, function(ct) {
|
|
78379
78379
|
if (ct === "option")
|
|
78380
|
-
ht(
|
|
78380
|
+
ht(Le, ct), Z(";");
|
|
78381
78381
|
else
|
|
78382
78382
|
throw ce(ct);
|
|
78383
78383
|
}, function() {
|
|
78384
|
-
nt(
|
|
78385
|
-
}), Re.add(
|
|
78384
|
+
nt(Le);
|
|
78385
|
+
}), Re.add(Le);
|
|
78386
78386
|
}
|
|
78387
78387
|
function st(Re, Te) {
|
|
78388
78388
|
if (!nameRe.test(Te = K()))
|
|
78389
78389
|
throw ce(Te, "name");
|
|
78390
78390
|
var be = new OneOf(le(Te));
|
|
78391
|
-
xe(be, function(
|
|
78392
|
-
|
|
78391
|
+
xe(be, function(Le) {
|
|
78392
|
+
Le === "option" ? (ht(be, Le), Z(";")) : (Y(Le), je(be, "optional"));
|
|
78393
78393
|
}), Re.add(be);
|
|
78394
78394
|
}
|
|
78395
78395
|
function lt(Re, Te) {
|
|
78396
78396
|
if (!nameRe.test(Te = K()))
|
|
78397
78397
|
throw ce(Te, "name");
|
|
78398
78398
|
var be = new Enum(Te);
|
|
78399
|
-
xe(be, function(
|
|
78400
|
-
switch (
|
|
78399
|
+
xe(be, function(Le) {
|
|
78400
|
+
switch (Le) {
|
|
78401
78401
|
case "option":
|
|
78402
|
-
ht(be,
|
|
78402
|
+
ht(be, Le), Z(";");
|
|
78403
78403
|
break;
|
|
78404
78404
|
case "reserved":
|
|
78405
78405
|
ve(be.reserved || (be.reserved = []), !0);
|
|
78406
78406
|
break;
|
|
78407
78407
|
default:
|
|
78408
|
-
at(be,
|
|
78408
|
+
at(be, Le);
|
|
78409
78409
|
}
|
|
78410
78410
|
}), Re.add(be);
|
|
78411
78411
|
}
|
|
@@ -78416,8 +78416,8 @@ function parse($, I, U) {
|
|
|
78416
78416
|
var be = ge(K(), !0), ye = {
|
|
78417
78417
|
options: void 0
|
|
78418
78418
|
};
|
|
78419
|
-
ye.setOption = function(
|
|
78420
|
-
this.options === void 0 && (this.options = {}), this.options[
|
|
78419
|
+
ye.setOption = function(Le, Ye) {
|
|
78420
|
+
this.options === void 0 && (this.options = {}), this.options[Le] = Ye;
|
|
78421
78421
|
}, xe(ye, function(Ye) {
|
|
78422
78422
|
if (Ye === "option")
|
|
78423
78423
|
ht(ye, Ye), Z(";");
|
|
@@ -78431,17 +78431,17 @@ function parse($, I, U) {
|
|
|
78431
78431
|
var be = Z("(", !0);
|
|
78432
78432
|
if (!typeRefRe.test(Te = K()))
|
|
78433
78433
|
throw ce(Te, "name");
|
|
78434
|
-
var ye = Te,
|
|
78435
|
-
be && (Z(")"), ye = "(" + ye + ")",
|
|
78434
|
+
var ye = Te, Le = ye, Ye;
|
|
78435
|
+
be && (Z(")"), ye = "(" + ye + ")", Le = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
|
|
78436
78436
|
var ct = tt(Re, ye);
|
|
78437
|
-
qe(Re,
|
|
78437
|
+
qe(Re, Le, ct, Ye);
|
|
78438
78438
|
}
|
|
78439
78439
|
function tt(Re, Te) {
|
|
78440
78440
|
if (Z("{", !0)) {
|
|
78441
78441
|
for (var be = {}; !Z("}", !0); ) {
|
|
78442
78442
|
if (!nameRe.test(Ie = K()))
|
|
78443
78443
|
throw ce(Ie, "name");
|
|
78444
|
-
var ye,
|
|
78444
|
+
var ye, Le = Ie;
|
|
78445
78445
|
if (Z(":", !0), J() === "{")
|
|
78446
78446
|
ye = tt(Re, Te + "." + Ie);
|
|
78447
78447
|
else if (J() === "[") {
|
|
@@ -78455,8 +78455,8 @@ function parse($, I, U) {
|
|
|
78455
78455
|
}
|
|
78456
78456
|
} else
|
|
78457
78457
|
ye = he(!0), ze(Re, Te + "." + Ie, ye);
|
|
78458
|
-
var ct = be[
|
|
78459
|
-
ct && (ye = [].concat(ct).concat(ye)), be[
|
|
78458
|
+
var ct = be[Le];
|
|
78459
|
+
ct && (ye = [].concat(ct).concat(ye)), be[Le] = ye, Z(",", !0), Z(";", !0);
|
|
78460
78460
|
}
|
|
78461
78461
|
return be;
|
|
78462
78462
|
}
|
|
@@ -78482,23 +78482,23 @@ function parse($, I, U) {
|
|
|
78482
78482
|
if (!nameRe.test(Te = K()))
|
|
78483
78483
|
throw ce(Te, "service name");
|
|
78484
78484
|
var be = new Service(Te);
|
|
78485
|
-
xe(be, function(
|
|
78486
|
-
if (!Ee(be,
|
|
78487
|
-
if (
|
|
78488
|
-
Ue(be,
|
|
78485
|
+
xe(be, function(Le) {
|
|
78486
|
+
if (!Ee(be, Le))
|
|
78487
|
+
if (Le === "rpc")
|
|
78488
|
+
Ue(be, Le);
|
|
78489
78489
|
else
|
|
78490
|
-
throw ce(
|
|
78490
|
+
throw ce(Le);
|
|
78491
78491
|
}), Re.add(be);
|
|
78492
78492
|
}
|
|
78493
78493
|
function Ue(Re, Te) {
|
|
78494
78494
|
var be = Q(), ye = Te;
|
|
78495
78495
|
if (!nameRe.test(Te = K()))
|
|
78496
78496
|
throw ce(Te, "name");
|
|
78497
|
-
var
|
|
78497
|
+
var Le = Te, Ye, ct, ut, wt;
|
|
78498
78498
|
if (Z("("), Z("stream", !0) && (ct = !0), !typeRefRe.test(Te = K()) || (Ye = Te, Z(")"), Z("returns"), Z("("), Z("stream", !0) && (wt = !0), !typeRefRe.test(Te = K())))
|
|
78499
78499
|
throw ce(Te);
|
|
78500
78500
|
ut = Te, Z(")");
|
|
78501
|
-
var St = new Method(
|
|
78501
|
+
var St = new Method(Le, ye, Ye, ut, ct, wt);
|
|
78502
78502
|
St.comment = be, xe(St, function(Ut) {
|
|
78503
78503
|
if (Ut === "option")
|
|
78504
78504
|
ht(St, Ut), Z(";");
|
|
@@ -78510,19 +78510,19 @@ function parse($, I, U) {
|
|
|
78510
78510
|
if (!typeRefRe.test(Te = K()))
|
|
78511
78511
|
throw ce(Te, "reference");
|
|
78512
78512
|
var be = Te;
|
|
78513
|
-
xe(null, function(
|
|
78514
|
-
switch (
|
|
78513
|
+
xe(null, function(Le) {
|
|
78514
|
+
switch (Le) {
|
|
78515
78515
|
case "required":
|
|
78516
78516
|
case "repeated":
|
|
78517
|
-
je(Re,
|
|
78517
|
+
je(Re, Le, be);
|
|
78518
78518
|
break;
|
|
78519
78519
|
case "optional":
|
|
78520
78520
|
se ? je(Re, "proto3_optional", be) : je(Re, "optional", be);
|
|
78521
78521
|
break;
|
|
78522
78522
|
default:
|
|
78523
|
-
if (!se || !typeRefRe.test(
|
|
78524
|
-
throw ce(
|
|
78525
|
-
Y(
|
|
78523
|
+
if (!se || !typeRefRe.test(Le))
|
|
78524
|
+
throw ce(Le);
|
|
78525
|
+
Y(Le), je(Re, "optional", be);
|
|
78526
78526
|
break;
|
|
78527
78527
|
}
|
|
78528
78528
|
});
|
|
@@ -79277,7 +79277,7 @@ dist$1.addValue = memory_1.addValue;
|
|
|
79277
79277
|
var helpers_1 = helpers;
|
|
79278
79278
|
dist$1.trimUndefined = helpers_1.trimUndefined;
|
|
79279
79279
|
dist$1.trimUndefinedRecursively = helpers_1.trimUndefinedRecursively;
|
|
79280
|
-
var __dxlog_file3$
|
|
79280
|
+
var __dxlog_file3$3 = "/home/runner/work/dxos/dxos/packages/common/codec-protobuf/src/stream.ts", Stream$1 = class dr {
|
|
79281
79281
|
constructor(I) {
|
|
79282
79282
|
this._messageHandler = void 0, this._closeHandler = void 0, this._readyHandler = void 0, this._isClosed = !1, this._closeError = void 0, this._producerCleanup = void 0, this._isReady = !1, this._buffer = [], this._readyPromise = new Promise((U) => {
|
|
79283
79283
|
this._resolveReadyPromise = U;
|
|
@@ -79296,7 +79296,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79296
79296
|
next: (q) => {
|
|
79297
79297
|
if (this._isClosed) {
|
|
79298
79298
|
log$2("Stream is closed, dropping message.", void 0, {
|
|
79299
|
-
F: __dxlog_file3$
|
|
79299
|
+
F: __dxlog_file3$3,
|
|
79300
79300
|
L: 207,
|
|
79301
79301
|
S: this,
|
|
79302
79302
|
C: (G, K) => G(...K)
|
|
@@ -79311,7 +79311,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79311
79311
|
}
|
|
79312
79312
|
else
|
|
79313
79313
|
invariant(this._buffer, void 0, {
|
|
79314
|
-
F: __dxlog_file3$
|
|
79314
|
+
F: __dxlog_file3$3,
|
|
79315
79315
|
L: 221,
|
|
79316
79316
|
S: this,
|
|
79317
79317
|
A: [
|
|
@@ -79413,7 +79413,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79413
79413
|
// TODO(burdon): Can this be cancelled?
|
|
79414
79414
|
subscribe(I, U) {
|
|
79415
79415
|
invariant(!this._messageHandler, "Stream is already subscribed to.", {
|
|
79416
|
-
F: __dxlog_file3$
|
|
79416
|
+
F: __dxlog_file3$3,
|
|
79417
79417
|
L: 262,
|
|
79418
79418
|
S: this,
|
|
79419
79419
|
A: [
|
|
@@ -79421,7 +79421,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79421
79421
|
"'Stream is already subscribed to.'"
|
|
79422
79422
|
]
|
|
79423
79423
|
}), invariant(!this._closeHandler, "Stream is already subscribed to.", {
|
|
79424
|
-
F: __dxlog_file3$
|
|
79424
|
+
F: __dxlog_file3$3,
|
|
79425
79425
|
L: 263,
|
|
79426
79426
|
S: this,
|
|
79427
79427
|
A: [
|
|
@@ -79429,7 +79429,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79429
79429
|
"'Stream is already subscribed to.'"
|
|
79430
79430
|
]
|
|
79431
79431
|
}), invariant(this._buffer, void 0, {
|
|
79432
|
-
F: __dxlog_file3$
|
|
79432
|
+
F: __dxlog_file3$3,
|
|
79433
79433
|
L: 264,
|
|
79434
79434
|
S: this,
|
|
79435
79435
|
A: [
|
|
@@ -79461,7 +79461,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79461
79461
|
*/
|
|
79462
79462
|
onReady(I) {
|
|
79463
79463
|
invariant(!this._readyHandler, "Stream already has a handler for the ready event.", {
|
|
79464
|
-
F: __dxlog_file3$
|
|
79464
|
+
F: __dxlog_file3$3,
|
|
79465
79465
|
L: 299,
|
|
79466
79466
|
S: this,
|
|
79467
79467
|
A: [
|
|
@@ -79938,7 +79938,7 @@ lodash_ismatch.exports;
|
|
|
79938
79938
|
Nt[yt] = et(yt);
|
|
79939
79939
|
return Nt;
|
|
79940
79940
|
}
|
|
79941
|
-
function
|
|
79941
|
+
function Le(Fe) {
|
|
79942
79942
|
return function(et) {
|
|
79943
79943
|
return Fe(et);
|
|
79944
79944
|
};
|
|
@@ -80060,10 +80060,10 @@ lodash_ismatch.exports;
|
|
|
80060
80060
|
function Bt(Fe) {
|
|
80061
80061
|
return Je(this, Fe).has(Fe);
|
|
80062
80062
|
}
|
|
80063
|
-
function
|
|
80063
|
+
function Lt(Fe, et) {
|
|
80064
80064
|
return Je(this, Fe).set(Fe, et), this;
|
|
80065
80065
|
}
|
|
80066
|
-
ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set =
|
|
80066
|
+
ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Lt;
|
|
80067
80067
|
function Ot(Fe) {
|
|
80068
80068
|
var et = -1, yt = Fe ? Fe.length : 0;
|
|
80069
80069
|
for (this.__data__ = new ot(); ++et < yt; )
|
|
@@ -80118,7 +80118,7 @@ lodash_ismatch.exports;
|
|
|
80118
80118
|
return zt.call(Fe);
|
|
80119
80119
|
}
|
|
80120
80120
|
function Xn(Fe, et, yt, Nt, nn) {
|
|
80121
|
-
return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !
|
|
80121
|
+
return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Mn(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
|
|
80122
80122
|
}
|
|
80123
80123
|
function nr(Fe, et, yt, Nt, nn, qt) {
|
|
80124
80124
|
var pn = fn(Fe), an = fn(et), en = Z, hn = Z;
|
|
@@ -80129,8 +80129,8 @@ lodash_ismatch.exports;
|
|
|
80129
80129
|
if (!(nn & K)) {
|
|
80130
80130
|
var In = yn && Ct.call(Fe, "__wrapped__"), Cn = kn && Ct.call(et, "__wrapped__");
|
|
80131
80131
|
if (In || Cn) {
|
|
80132
|
-
var
|
|
80133
|
-
return qt || (qt = new Yt()), yt(
|
|
80132
|
+
var Ln = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
|
|
80133
|
+
return qt || (qt = new Yt()), yt(Ln, Dn, Nt, nn, qt);
|
|
80134
80134
|
}
|
|
80135
80135
|
}
|
|
80136
80136
|
return gn ? (qt || (qt = new Yt()), Oe(Fe, et, yt, Nt, nn, qt)) : !1;
|
|
@@ -80167,7 +80167,7 @@ lodash_ismatch.exports;
|
|
|
80167
80167
|
return et.test(Wt(Fe));
|
|
80168
80168
|
}
|
|
80169
80169
|
function ir(Fe) {
|
|
80170
|
-
return
|
|
80170
|
+
return Mn(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
|
|
80171
80171
|
}
|
|
80172
80172
|
function tr(Fe) {
|
|
80173
80173
|
if (!kt(Fe))
|
|
@@ -80188,9 +80188,9 @@ lodash_ismatch.exports;
|
|
|
80188
80188
|
for (qt.set(Fe, et), qt.set(et, Fe); ++yn < an; ) {
|
|
80189
80189
|
var In = Fe[yn], Cn = et[yn];
|
|
80190
80190
|
if (Nt)
|
|
80191
|
-
var
|
|
80192
|
-
if (
|
|
80193
|
-
if (
|
|
80191
|
+
var Ln = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
|
|
80192
|
+
if (Ln !== void 0) {
|
|
80193
|
+
if (Ln)
|
|
80194
80194
|
continue;
|
|
80195
80195
|
kn = !1;
|
|
80196
80196
|
break;
|
|
@@ -80259,7 +80259,7 @@ lodash_ismatch.exports;
|
|
|
80259
80259
|
return In == et;
|
|
80260
80260
|
var Cn = !0;
|
|
80261
80261
|
qt.set(Fe, et), qt.set(et, Fe);
|
|
80262
|
-
for (var
|
|
80262
|
+
for (var Ln = pn; ++kn < en; ) {
|
|
80263
80263
|
gn = an[kn];
|
|
80264
80264
|
var Dn = Fe[gn], Pe = et[gn];
|
|
80265
80265
|
if (Nt)
|
|
@@ -80268,11 +80268,11 @@ lodash_ismatch.exports;
|
|
|
80268
80268
|
Cn = !1;
|
|
80269
80269
|
break;
|
|
80270
80270
|
}
|
|
80271
|
-
|
|
80271
|
+
Ln || (Ln = gn == "constructor");
|
|
80272
80272
|
}
|
|
80273
|
-
if (Cn && !
|
|
80274
|
-
var we = Fe.constructor,
|
|
80275
|
-
we !=
|
|
80273
|
+
if (Cn && !Ln) {
|
|
80274
|
+
var we = Fe.constructor, Me = et.constructor;
|
|
80275
|
+
we != Me && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Me == "function" && Me instanceof Me) && (Cn = !1);
|
|
80276
80276
|
}
|
|
80277
80277
|
return qt.delete(Fe), qt.delete(et), Cn;
|
|
80278
80278
|
}
|
|
@@ -80283,7 +80283,7 @@ lodash_ismatch.exports;
|
|
|
80283
80283
|
function Qe(Fe) {
|
|
80284
80284
|
for (var et = qn(Fe), yt = et.length; yt--; ) {
|
|
80285
80285
|
var Nt = et[yt], nn = Fe[Nt];
|
|
80286
|
-
et[yt] = [Nt, nn,
|
|
80286
|
+
et[yt] = [Nt, nn, Mt(nn)];
|
|
80287
80287
|
}
|
|
80288
80288
|
return et;
|
|
80289
80289
|
}
|
|
@@ -80323,7 +80323,7 @@ lodash_ismatch.exports;
|
|
|
80323
80323
|
var et = Fe && Fe.constructor, yt = typeof et == "function" && et.prototype || Kt;
|
|
80324
80324
|
return Fe === yt;
|
|
80325
80325
|
}
|
|
80326
|
-
function
|
|
80326
|
+
function Mt(Fe) {
|
|
80327
80327
|
return Fe === Fe && !Wn(Fe);
|
|
80328
80328
|
}
|
|
80329
80329
|
function Wt(Fe) {
|
|
@@ -80350,7 +80350,7 @@ lodash_ismatch.exports;
|
|
|
80350
80350
|
return Fe != null && Zn(Fe.length) && !Hn(Fe);
|
|
80351
80351
|
}
|
|
80352
80352
|
function wn(Fe) {
|
|
80353
|
-
return
|
|
80353
|
+
return Mn(Fe) && cn(Fe);
|
|
80354
80354
|
}
|
|
80355
80355
|
function Hn(Fe) {
|
|
80356
80356
|
var et = Wn(Fe) ? zt.call(Fe) : "";
|
|
@@ -80363,13 +80363,13 @@ lodash_ismatch.exports;
|
|
|
80363
80363
|
var et = typeof Fe;
|
|
80364
80364
|
return !!Fe && (et == "object" || et == "function");
|
|
80365
80365
|
}
|
|
80366
|
-
function
|
|
80366
|
+
function Mn(Fe) {
|
|
80367
80367
|
return !!Fe && typeof Fe == "object";
|
|
80368
80368
|
}
|
|
80369
80369
|
function sr(Fe, et) {
|
|
80370
80370
|
return Fe === et || rr(Fe, et, Qe(et));
|
|
80371
80371
|
}
|
|
80372
|
-
var ar = Te ?
|
|
80372
|
+
var ar = Te ? Le(Te) : ir;
|
|
80373
80373
|
function qn(Fe) {
|
|
80374
80374
|
return cn(Fe) ? jn(Fe) : tr(Fe);
|
|
80375
80375
|
}
|
|
@@ -81067,8 +81067,8 @@ var localforage = { exports: {} };
|
|
|
81067
81067
|
return Oe.db = kt, Ge(Oe, Ve._defaultConfig.version) ? je(Oe) : kt;
|
|
81068
81068
|
}).then(function(kt) {
|
|
81069
81069
|
Oe.db = Qe.db = kt, Ve._dbInfo = Oe;
|
|
81070
|
-
for (var
|
|
81071
|
-
var Wt = bt[
|
|
81070
|
+
for (var Mt = 0; Mt < bt.length; Mt++) {
|
|
81071
|
+
var Wt = bt[Mt];
|
|
81072
81072
|
Wt !== Ve && (Wt._dbInfo.db = Oe.db, Wt._dbInfo.version = Oe.version);
|
|
81073
81073
|
}
|
|
81074
81074
|
});
|
|
@@ -81106,19 +81106,19 @@ var localforage = { exports: {} };
|
|
|
81106
81106
|
try {
|
|
81107
81107
|
var gt = pt.objectStore(Oe._dbInfo.storeName), bt = gt.openCursor(), kt = 1;
|
|
81108
81108
|
bt.onsuccess = function() {
|
|
81109
|
-
var
|
|
81110
|
-
if (
|
|
81111
|
-
var Wt =
|
|
81109
|
+
var Mt = bt.result;
|
|
81110
|
+
if (Mt) {
|
|
81111
|
+
var Wt = Mt.value;
|
|
81112
81112
|
lt(Wt) && (Wt = st(Wt));
|
|
81113
|
-
var Jt = Ae(Wt,
|
|
81114
|
-
Jt !== void 0 ? Qe(Jt) :
|
|
81113
|
+
var Jt = Ae(Wt, Mt.key, kt++);
|
|
81114
|
+
Jt !== void 0 ? Qe(Jt) : Mt.continue();
|
|
81115
81115
|
} else
|
|
81116
81116
|
Qe();
|
|
81117
81117
|
}, bt.onerror = function() {
|
|
81118
81118
|
Ke(bt.error);
|
|
81119
81119
|
};
|
|
81120
|
-
} catch (
|
|
81121
|
-
Ke(
|
|
81120
|
+
} catch (Mt) {
|
|
81121
|
+
Ke(Mt);
|
|
81122
81122
|
}
|
|
81123
81123
|
});
|
|
81124
81124
|
}).catch(Ke);
|
|
@@ -81139,9 +81139,9 @@ var localforage = { exports: {} };
|
|
|
81139
81139
|
if (bt)
|
|
81140
81140
|
return ft(bt);
|
|
81141
81141
|
try {
|
|
81142
|
-
var
|
|
81142
|
+
var Mt = kt.objectStore(Je._dbInfo.storeName);
|
|
81143
81143
|
gt === null && (gt = void 0);
|
|
81144
|
-
var Wt =
|
|
81144
|
+
var Wt = Mt.put(gt, Ae);
|
|
81145
81145
|
kt.oncomplete = function() {
|
|
81146
81146
|
gt === void 0 && (gt = null), Ke(gt);
|
|
81147
81147
|
}, kt.onabort = kt.onerror = function() {
|
|
@@ -81238,17 +81238,17 @@ var localforage = { exports: {} };
|
|
|
81238
81238
|
try {
|
|
81239
81239
|
var gt = pt.objectStore(Oe._dbInfo.storeName), bt = !1, kt = gt.openKeyCursor();
|
|
81240
81240
|
kt.onsuccess = function() {
|
|
81241
|
-
var
|
|
81242
|
-
if (!
|
|
81241
|
+
var Mt = kt.result;
|
|
81242
|
+
if (!Mt) {
|
|
81243
81243
|
Qe(null);
|
|
81244
81244
|
return;
|
|
81245
81245
|
}
|
|
81246
|
-
Ae === 0 || bt ? Qe(
|
|
81246
|
+
Ae === 0 || bt ? Qe(Mt.key) : (bt = !0, Mt.advance(Ae));
|
|
81247
81247
|
}, kt.onerror = function() {
|
|
81248
81248
|
Ke(kt.error);
|
|
81249
81249
|
};
|
|
81250
|
-
} catch (
|
|
81251
|
-
Ke(
|
|
81250
|
+
} catch (Mt) {
|
|
81251
|
+
Ke(Mt);
|
|
81252
81252
|
}
|
|
81253
81253
|
});
|
|
81254
81254
|
}).catch(Ke);
|
|
@@ -81302,8 +81302,8 @@ var localforage = { exports: {} };
|
|
|
81302
81302
|
$e(Ae);
|
|
81303
81303
|
var bt = ce[Ae.name], kt = bt.forages;
|
|
81304
81304
|
pt.close();
|
|
81305
|
-
for (var
|
|
81306
|
-
var Wt = kt[
|
|
81305
|
+
for (var Mt = 0; Mt < kt.length; Mt++) {
|
|
81306
|
+
var Wt = kt[Mt];
|
|
81307
81307
|
Wt._dbInfo.db = null, Wt._dbInfo.version = gt;
|
|
81308
81308
|
}
|
|
81309
81309
|
var Jt = new te(function(tn, fn) {
|
|
@@ -81335,8 +81335,8 @@ var localforage = { exports: {} };
|
|
|
81335
81335
|
var gt = ce[Ae.name], bt = gt.forages;
|
|
81336
81336
|
pt.close();
|
|
81337
81337
|
for (var kt = 0; kt < bt.length; kt++) {
|
|
81338
|
-
var
|
|
81339
|
-
|
|
81338
|
+
var Mt = bt[kt];
|
|
81339
|
+
Mt._dbInfo.db = null;
|
|
81340
81340
|
}
|
|
81341
81341
|
var Wt = new te(function(Jt, tn) {
|
|
81342
81342
|
var fn = Z.deleteDatabase(Ae.name);
|
|
@@ -81364,7 +81364,7 @@ var localforage = { exports: {} };
|
|
|
81364
81364
|
}
|
|
81365
81365
|
return ne(Qe, Ve), Qe;
|
|
81366
81366
|
}
|
|
81367
|
-
var
|
|
81367
|
+
var Le = {
|
|
81368
81368
|
_driver: "asyncStorage",
|
|
81369
81369
|
_initStorage: qe,
|
|
81370
81370
|
_support: Q(),
|
|
@@ -81515,7 +81515,7 @@ var localforage = { exports: {} };
|
|
|
81515
81515
|
var ft = Oe._dbInfo;
|
|
81516
81516
|
ft.db.transaction(function(pt) {
|
|
81517
81517
|
bn(pt, ft, "SELECT * FROM " + ft.storeName, [], function(gt, bt) {
|
|
81518
|
-
for (var kt = bt.rows,
|
|
81518
|
+
for (var kt = bt.rows, Mt = kt.length, Wt = 0; Wt < Mt; Wt++) {
|
|
81519
81519
|
var Jt = kt.item(Wt), tn = Jt.value;
|
|
81520
81520
|
if (tn && (tn = ft.serializer.deserialize(tn)), tn = Ae(tn, Jt.key, Wt + 1), tn !== void 0) {
|
|
81521
81521
|
Qe(tn);
|
|
@@ -81538,8 +81538,8 @@ var localforage = { exports: {} };
|
|
|
81538
81538
|
Qe.ready().then(function() {
|
|
81539
81539
|
Ve === void 0 && (Ve = null);
|
|
81540
81540
|
var gt = Ve, bt = Qe._dbInfo;
|
|
81541
|
-
bt.serializer.serialize(Ve, function(kt,
|
|
81542
|
-
|
|
81541
|
+
bt.serializer.serialize(Ve, function(kt, Mt) {
|
|
81542
|
+
Mt ? pt(Mt) : bt.db.transaction(function(Wt) {
|
|
81543
81543
|
bn(Wt, bt, "INSERT OR REPLACE INTO " + bt.storeName + " (key, value) VALUES (?, ?)", [Ae, kt], function() {
|
|
81544
81544
|
ft(gt);
|
|
81545
81545
|
}, function(Jt, tn) {
|
|
@@ -81684,8 +81684,8 @@ var localforage = { exports: {} };
|
|
|
81684
81684
|
});
|
|
81685
81685
|
});
|
|
81686
81686
|
}
|
|
81687
|
-
for (var kt = [],
|
|
81688
|
-
kt.push(bt(Ke.storeNames[
|
|
81687
|
+
for (var kt = [], Mt = 0, Wt = Ke.storeNames.length; Mt < Wt; Mt++)
|
|
81688
|
+
kt.push(bt(Ke.storeNames[Mt]));
|
|
81689
81689
|
te.all(kt).then(function() {
|
|
81690
81690
|
ft();
|
|
81691
81691
|
}).catch(function(Jt) {
|
|
@@ -81764,9 +81764,9 @@ var localforage = { exports: {} };
|
|
|
81764
81764
|
for (var Qe = Oe._dbInfo, Ke = Qe.keyPrefix, ft = Ke.length, pt = localStorage.length, gt = 1, bt = 0; bt < pt; bt++) {
|
|
81765
81765
|
var kt = localStorage.key(bt);
|
|
81766
81766
|
if (kt.indexOf(Ke) === 0) {
|
|
81767
|
-
var
|
|
81768
|
-
if (
|
|
81769
|
-
return
|
|
81767
|
+
var Mt = localStorage.getItem(kt);
|
|
81768
|
+
if (Mt && (Mt = Qe.serializer.deserialize(Mt)), Mt = Ae(Mt, kt.substring(ft), gt++), Mt !== void 0)
|
|
81769
|
+
return Mt;
|
|
81770
81770
|
}
|
|
81771
81771
|
}
|
|
81772
81772
|
});
|
|
@@ -81794,7 +81794,7 @@ var localforage = { exports: {} };
|
|
|
81794
81794
|
});
|
|
81795
81795
|
return ne(Oe, Ae), Oe;
|
|
81796
81796
|
}
|
|
81797
|
-
function
|
|
81797
|
+
function Lt(Ae) {
|
|
81798
81798
|
var Ve = this, Oe = Ve.keys().then(function(Je) {
|
|
81799
81799
|
return Je.length;
|
|
81800
81800
|
});
|
|
@@ -81823,8 +81823,8 @@ var localforage = { exports: {} };
|
|
|
81823
81823
|
else
|
|
81824
81824
|
try {
|
|
81825
81825
|
localStorage.setItem(gt.keyPrefix + Ae, bt), ft(Ke);
|
|
81826
|
-
} catch (
|
|
81827
|
-
(
|
|
81826
|
+
} catch (Mt) {
|
|
81827
|
+
(Mt.name === "QuotaExceededError" || Mt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Mt), pt(Mt);
|
|
81828
81828
|
}
|
|
81829
81829
|
});
|
|
81830
81830
|
});
|
|
@@ -81855,7 +81855,7 @@ var localforage = { exports: {} };
|
|
|
81855
81855
|
setItem: Zt,
|
|
81856
81856
|
removeItem: Ot,
|
|
81857
81857
|
clear: ot,
|
|
81858
|
-
length:
|
|
81858
|
+
length: Lt,
|
|
81859
81859
|
key: Rt,
|
|
81860
81860
|
keys: Bt,
|
|
81861
81861
|
dropInstance: Qt
|
|
@@ -81871,7 +81871,7 @@ var localforage = { exports: {} };
|
|
|
81871
81871
|
}, Yn = Array.isArray || function(Ae) {
|
|
81872
81872
|
return Object.prototype.toString.call(Ae) === "[object Array]";
|
|
81873
81873
|
}, dn = {}, Bn = {}, jn = {
|
|
81874
|
-
INDEXEDDB:
|
|
81874
|
+
INDEXEDDB: Le,
|
|
81875
81875
|
WEBSQL: _n,
|
|
81876
81876
|
LOCALSTORAGE: Yt
|
|
81877
81877
|
}, An = [jn.INDEXEDDB._driver, jn.WEBSQL._driver, jn.LOCALSTORAGE._driver], Un = ["dropInstance"], Xn = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Un), nr = {
|
|
@@ -81932,8 +81932,8 @@ var localforage = { exports: {} };
|
|
|
81932
81932
|
pt(bt);
|
|
81933
81933
|
return;
|
|
81934
81934
|
}
|
|
81935
|
-
for (var kt = Xn.concat("_initStorage"),
|
|
81936
|
-
var Jt = kt[
|
|
81935
|
+
for (var kt = Xn.concat("_initStorage"), Mt = 0, Wt = kt.length; Mt < Wt; Mt++) {
|
|
81936
|
+
var Jt = kt[Mt], tn = !xn(Un, Jt);
|
|
81937
81937
|
if ((tn || Oe[Jt]) && typeof Oe[Jt] != "function") {
|
|
81938
81938
|
pt(bt);
|
|
81939
81939
|
return;
|
|
@@ -81946,8 +81946,8 @@ var localforage = { exports: {} };
|
|
|
81946
81946
|
return ne(Fe, arguments[arguments.length - 1]), Fe;
|
|
81947
81947
|
};
|
|
81948
81948
|
}, Zn = 0, Wn = Un.length; Zn < Wn; Zn++) {
|
|
81949
|
-
var
|
|
81950
|
-
Oe[
|
|
81949
|
+
var Mn = Un[Zn];
|
|
81950
|
+
Oe[Mn] || (Oe[Mn] = Hn(Mn));
|
|
81951
81951
|
}
|
|
81952
81952
|
};
|
|
81953
81953
|
fn();
|
|
@@ -81980,15 +81980,15 @@ var localforage = { exports: {} };
|
|
|
81980
81980
|
function pt() {
|
|
81981
81981
|
Ke._config.driver = Ke.driver();
|
|
81982
81982
|
}
|
|
81983
|
-
function gt(
|
|
81984
|
-
return Ke._extend(
|
|
81983
|
+
function gt(Mt) {
|
|
81984
|
+
return Ke._extend(Mt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
|
|
81985
81985
|
}
|
|
81986
|
-
function bt(
|
|
81986
|
+
function bt(Mt) {
|
|
81987
81987
|
return function() {
|
|
81988
81988
|
var Wt = 0;
|
|
81989
81989
|
function Jt() {
|
|
81990
|
-
for (; Wt <
|
|
81991
|
-
var tn =
|
|
81990
|
+
for (; Wt < Mt.length; ) {
|
|
81991
|
+
var tn = Mt[Wt];
|
|
81992
81992
|
return Wt++, Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(tn).then(gt).catch(Jt);
|
|
81993
81993
|
}
|
|
81994
81994
|
pt();
|
|
@@ -82002,14 +82002,14 @@ var localforage = { exports: {} };
|
|
|
82002
82002
|
return te.resolve();
|
|
82003
82003
|
}) : te.resolve();
|
|
82004
82004
|
return this._driverSet = kt.then(function() {
|
|
82005
|
-
var
|
|
82006
|
-
return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(
|
|
82005
|
+
var Mt = ft[0];
|
|
82006
|
+
return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Mt).then(function(Wt) {
|
|
82007
82007
|
Ke._driver = Wt._driver, pt(), Ke._wrapLibraryMethodsWithReady(), Ke._initDriver = bt(ft);
|
|
82008
82008
|
});
|
|
82009
82009
|
}).catch(function() {
|
|
82010
82010
|
pt();
|
|
82011
|
-
var
|
|
82012
|
-
return Ke._driverSet = te.reject(
|
|
82011
|
+
var Mt = new Error("No available storage method found.");
|
|
82012
|
+
return Ke._driverSet = te.reject(Mt), Ke._driverSet;
|
|
82013
82013
|
}), re(this._driverSet, Je, Qe), this._driverSet;
|
|
82014
82014
|
}, Ae.prototype.supports = function(Oe) {
|
|
82015
82015
|
return !!Bn[Oe];
|
|
@@ -82116,7 +82116,7 @@ var SignalState;
|
|
|
82116
82116
|
var ws = null;
|
|
82117
82117
|
typeof WebSocket < "u" ? ws = WebSocket : typeof MozWebSocket < "u" ? ws = MozWebSocket : typeof commonjsGlobal < "u" ? ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket : typeof window < "u" ? ws = window.WebSocket || window.MozWebSocket : typeof self < "u" && (ws = self.WebSocket || self.MozWebSocket);
|
|
82118
82118
|
var browser$3 = ws;
|
|
82119
|
-
const
|
|
82119
|
+
const WebSocket3 = /* @__PURE__ */ getDefaultExportFromCjs(browser$3);
|
|
82120
82120
|
var MessageTrace;
|
|
82121
82121
|
(function($) {
|
|
82122
82122
|
(function(I) {
|
|
@@ -82800,7 +82800,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82800
82800
|
L: 55,
|
|
82801
82801
|
S: this,
|
|
82802
82802
|
C: (q, G) => q(...G)
|
|
82803
|
-
}), this._url = $, this._callbacks = I, this._socket = new
|
|
82803
|
+
}), this._url = $, this._callbacks = I, this._socket = new WebSocket3(this._url), this._rpc = createProtoRpcPeer({
|
|
82804
82804
|
requested: {
|
|
82805
82805
|
Signal: schema.getService("dxos.mesh.signal.Signal")
|
|
82806
82806
|
},
|
|
@@ -82887,7 +82887,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82887
82887
|
var $, I, U, q;
|
|
82888
82888
|
await (($ = this._keepaliveCtx) == null ? void 0 : $.dispose()), this._closed = !0;
|
|
82889
82889
|
try {
|
|
82890
|
-
await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) ===
|
|
82890
|
+
await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) === WebSocket3.OPEN || ((q = this._socket) == null ? void 0 : q.readyState) === WebSocket3.CONNECTING) && this._socket.close(), await this._closeComplete.wait({
|
|
82891
82891
|
timeout: 1e3
|
|
82892
82892
|
});
|
|
82893
82893
|
} catch (G) {
|
|
@@ -82997,10 +82997,9 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82997
82997
|
metadata: (G = (q = this._callbacks) == null ? void 0 : q.getMetadata) == null ? void 0 : G.call(q)
|
|
82998
82998
|
});
|
|
82999
82999
|
}
|
|
83000
|
-
}, __dxlog_file3$
|
|
83000
|
+
}, __dxlog_file3$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-client/signal-client.ts", DEFAULT_RECONNECT_TIMEOUT = 100, MAX_RECONNECT_TIMEOUT = 5e3, ERROR_RECONCILE_DELAY = 1e3, RECONCILE_INTERVAL = 5e3, SignalClient = class {
|
|
83001
83001
|
/**
|
|
83002
83002
|
* @param _host Signal server websocket URL.
|
|
83003
|
-
* @param _onMessage
|
|
83004
83003
|
*/
|
|
83005
83004
|
constructor($, I, U, q) {
|
|
83006
83005
|
if (this._host = $, this._onMessage = I, this._onSwarmEvent = U, this._getMetadata = q, this._state = SignalState.CLOSED, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._connectionStarted = /* @__PURE__ */ new Date(), this._lastStateChange = /* @__PURE__ */ new Date(), this._clientReady = new Trigger(), this.statusChanged = new Event$1(), this.commandTrace = new Event$1(), this._swarmStreams = new ComplexMap(({ topic: G, peerId: K }) => G.toHex() + K.toHex()), this._joinedTopics = new ComplexSet(({ topic: G, peerId: K }) => G.toHex() + K.toHex()), this._messageStreams = new ComplexMap((G) => G.toHex()), this._subscribedMessages = new ComplexSet(({ peerId: G }) => G.toHex()), this._reconciled = new Event$1(), this._instanceId = PublicKey.random().toHex(), this._performance = {
|
|
@@ -83012,12 +83011,12 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83012
83011
|
}, !this._host.startsWith("wss://") && !this._host.startsWith("ws://"))
|
|
83013
83012
|
throw new Error(`Signal server requires a websocket URL. Provided: ${this._host}`);
|
|
83014
83013
|
}
|
|
83015
|
-
open() {
|
|
83014
|
+
async open() {
|
|
83016
83015
|
log$2.trace("dxos.mesh.signal-client.open", trace$1.begin({
|
|
83017
83016
|
id: this._instanceId
|
|
83018
83017
|
}), {
|
|
83019
|
-
F: __dxlog_file3$
|
|
83020
|
-
L:
|
|
83018
|
+
F: __dxlog_file3$2,
|
|
83019
|
+
L: 128,
|
|
83021
83020
|
S: this,
|
|
83022
83021
|
C: ($, I) => $(...I)
|
|
83023
83022
|
}), ![
|
|
@@ -83027,8 +83026,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83027
83026
|
onError: ($) => {
|
|
83028
83027
|
var I;
|
|
83029
83028
|
this._state === SignalState.CLOSED || (I = this._ctx) != null && I.disposed || (this._state === SignalState.CONNECTED && log$2.warn("SignalClient error:", $, {
|
|
83030
|
-
F: __dxlog_file3$
|
|
83031
|
-
L:
|
|
83029
|
+
F: __dxlog_file3$2,
|
|
83030
|
+
L: 140,
|
|
83032
83031
|
S: this,
|
|
83033
83032
|
C: (U, q) => U(...q)
|
|
83034
83033
|
}), this._scheduleReconcileAfterError());
|
|
@@ -83042,8 +83041,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83042
83041
|
}), this._setState(SignalState.CONNECTING), this._createClient(), log$2.trace("dxos.mesh.signal-client.open", trace$1.end({
|
|
83043
83042
|
id: this._instanceId
|
|
83044
83043
|
}), {
|
|
83045
|
-
F: __dxlog_file3$
|
|
83046
|
-
L:
|
|
83044
|
+
F: __dxlog_file3$2,
|
|
83045
|
+
L: 169,
|
|
83047
83046
|
S: this,
|
|
83048
83047
|
C: ($, I) => $(...I)
|
|
83049
83048
|
}));
|
|
@@ -83051,15 +83050,15 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83051
83050
|
async close() {
|
|
83052
83051
|
var $, I;
|
|
83053
83052
|
log$2("closing...", void 0, {
|
|
83054
|
-
F: __dxlog_file3$
|
|
83055
|
-
L:
|
|
83053
|
+
F: __dxlog_file3$2,
|
|
83054
|
+
L: 173,
|
|
83056
83055
|
S: this,
|
|
83057
83056
|
C: (U, q) => U(...q)
|
|
83058
83057
|
}), ![
|
|
83059
83058
|
SignalState.CLOSED
|
|
83060
83059
|
].includes(this._state) && (await (($ = this._ctx) == null ? void 0 : $.dispose()), this._clientReady.reset(), await ((I = this._client) == null ? void 0 : I.close()), this._client = void 0, this._setState(SignalState.CLOSED), log$2("closed", void 0, {
|
|
83061
|
-
F: __dxlog_file3$
|
|
83062
|
-
L:
|
|
83060
|
+
F: __dxlog_file3$2,
|
|
83061
|
+
L: 184,
|
|
83063
83062
|
S: this,
|
|
83064
83063
|
C: (U, q) => U(...q)
|
|
83065
83064
|
}));
|
|
@@ -83080,8 +83079,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83080
83079
|
topic: $,
|
|
83081
83080
|
peerId: I
|
|
83082
83081
|
}, {
|
|
83083
|
-
F: __dxlog_file3$
|
|
83084
|
-
L:
|
|
83082
|
+
F: __dxlog_file3$2,
|
|
83083
|
+
L: 199,
|
|
83085
83084
|
S: this,
|
|
83086
83085
|
C: (U, q) => U(...q)
|
|
83087
83086
|
}), this._performance.joinCounter++, this._joinedTopics.add({
|
|
@@ -83095,8 +83094,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83095
83094
|
topic: $,
|
|
83096
83095
|
peerId: I
|
|
83097
83096
|
}, {
|
|
83098
|
-
F: __dxlog_file3$
|
|
83099
|
-
L:
|
|
83097
|
+
F: __dxlog_file3$2,
|
|
83098
|
+
L: 207,
|
|
83100
83099
|
S: this,
|
|
83101
83100
|
C: (q, G) => q(...G)
|
|
83102
83101
|
}), (U = this._swarmStreams.get({
|
|
@@ -83112,8 +83111,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83112
83111
|
}
|
|
83113
83112
|
async sendMessage($) {
|
|
83114
83113
|
this._performance.sentMessages++, await this._clientReady.wait(), invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83115
|
-
F: __dxlog_file3$
|
|
83116
|
-
L:
|
|
83114
|
+
F: __dxlog_file3$2,
|
|
83115
|
+
L: 216,
|
|
83117
83116
|
S: this,
|
|
83118
83117
|
A: [
|
|
83119
83118
|
"this._state === SignalState.CONNECTED",
|
|
@@ -83125,8 +83124,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83125
83124
|
log$2("subscribing to messages", {
|
|
83126
83125
|
peerId: $
|
|
83127
83126
|
}, {
|
|
83128
|
-
F: __dxlog_file3$
|
|
83129
|
-
L:
|
|
83127
|
+
F: __dxlog_file3$2,
|
|
83128
|
+
L: 221,
|
|
83130
83129
|
S: this,
|
|
83131
83130
|
C: (I, U) => I(...U)
|
|
83132
83131
|
}), this._subscribedMessages.add({
|
|
@@ -83138,8 +83137,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83138
83137
|
log$2("unsubscribing from messages", {
|
|
83139
83138
|
peerId: $
|
|
83140
83139
|
}, {
|
|
83141
|
-
F: __dxlog_file3$
|
|
83142
|
-
L:
|
|
83140
|
+
F: __dxlog_file3$2,
|
|
83141
|
+
L: 227,
|
|
83143
83142
|
S: this,
|
|
83144
83143
|
C: (U, q) => U(...q)
|
|
83145
83144
|
}), this._subscribedMessages.delete({
|
|
@@ -83155,8 +83154,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83155
83154
|
this._state = $, this._lastStateChange = /* @__PURE__ */ new Date(), log$2("signal state changed", {
|
|
83156
83155
|
status: this.getStatus()
|
|
83157
83156
|
}, {
|
|
83158
|
-
F: __dxlog_file3$
|
|
83159
|
-
L:
|
|
83157
|
+
F: __dxlog_file3$2,
|
|
83158
|
+
L: 246,
|
|
83160
83159
|
S: this,
|
|
83161
83160
|
C: (I, U) => I(...U)
|
|
83162
83161
|
}), this.statusChanged.emit(this.getStatus());
|
|
@@ -83166,13 +83165,13 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83166
83165
|
host: this._host,
|
|
83167
83166
|
state: this._state
|
|
83168
83167
|
}, {
|
|
83169
|
-
F: __dxlog_file3$
|
|
83170
|
-
L:
|
|
83168
|
+
F: __dxlog_file3$2,
|
|
83169
|
+
L: 251,
|
|
83171
83170
|
S: this,
|
|
83172
83171
|
C: ($, I) => $(...I)
|
|
83173
83172
|
}), invariant(!this._client, "Client already created", {
|
|
83174
|
-
F: __dxlog_file3$
|
|
83175
|
-
L:
|
|
83173
|
+
F: __dxlog_file3$2,
|
|
83174
|
+
L: 252,
|
|
83176
83175
|
S: this,
|
|
83177
83176
|
A: [
|
|
83178
83177
|
"!this._client",
|
|
@@ -83180,8 +83179,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83180
83179
|
]
|
|
83181
83180
|
}), this._connectionStarted = /* @__PURE__ */ new Date(), this._connectionCtx = this._ctx.derive(), this._connectionCtx.onDispose(async () => {
|
|
83182
83181
|
log$2("connection context disposed", void 0, {
|
|
83183
|
-
F: __dxlog_file3$
|
|
83184
|
-
L:
|
|
83182
|
+
F: __dxlog_file3$2,
|
|
83183
|
+
L: 259,
|
|
83185
83184
|
S: this,
|
|
83186
83185
|
C: ($, I) => $(...I)
|
|
83187
83186
|
}), await Promise.all(Array.from(this._swarmStreams.values()).map(($) => $.close())), await Promise.all(Array.from(this._messageStreams.values()).map(($) => $.close())), this._swarmStreams.clear(), this._messageStreams.clear();
|
|
@@ -83192,8 +83191,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83192
83191
|
callbacks: {
|
|
83193
83192
|
onConnected: () => {
|
|
83194
83193
|
log$2("socket connected", void 0, {
|
|
83195
|
-
F: __dxlog_file3$
|
|
83196
|
-
L:
|
|
83194
|
+
F: __dxlog_file3$2,
|
|
83195
|
+
L: 271,
|
|
83197
83196
|
S: this,
|
|
83198
83197
|
C: ($, I) => $(...I)
|
|
83199
83198
|
}), this._lastError = void 0, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._setState(SignalState.CONNECTED), this._clientReady.wake(), this._reconcileTask.schedule();
|
|
@@ -83202,8 +83201,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83202
83201
|
if (log$2("socket disconnected", {
|
|
83203
83202
|
state: this._state
|
|
83204
83203
|
}, {
|
|
83205
|
-
F: __dxlog_file3$
|
|
83206
|
-
L:
|
|
83204
|
+
F: __dxlog_file3$2,
|
|
83205
|
+
L: 280,
|
|
83207
83206
|
S: this,
|
|
83208
83207
|
C: ($, I) => $(...I)
|
|
83209
83208
|
}), this._state === SignalState.ERROR) {
|
|
@@ -83217,8 +83216,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83217
83216
|
error: $,
|
|
83218
83217
|
state: this._state
|
|
83219
83218
|
}, {
|
|
83220
|
-
F: __dxlog_file3$
|
|
83221
|
-
L:
|
|
83219
|
+
F: __dxlog_file3$2,
|
|
83220
|
+
L: 295,
|
|
83222
83221
|
S: this,
|
|
83223
83222
|
C: (I, U) => I(...U)
|
|
83224
83223
|
}), this._lastError = $, this._state !== SignalState.CONNECTED && this._state !== SignalState.CONNECTING && this._incrementReconnectTimeout(), this._setState(SignalState.ERROR), this._reconnectTask.schedule();
|
|
@@ -83238,14 +83237,14 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83238
83237
|
if (log$2(`reconnecting in ${this._reconnectAfter}ms`, {
|
|
83239
83238
|
state: this._state
|
|
83240
83239
|
}, {
|
|
83241
|
-
F: __dxlog_file3$
|
|
83242
|
-
L:
|
|
83240
|
+
F: __dxlog_file3$2,
|
|
83241
|
+
L: 323,
|
|
83243
83242
|
S: this,
|
|
83244
83243
|
C: (U, q) => U(...q)
|
|
83245
83244
|
}), this._performance.reconnectCounter++, this._state === SignalState.RECONNECTING) {
|
|
83246
83245
|
log$2.warn("Signal api already reconnecting.", void 0, {
|
|
83247
|
-
F: __dxlog_file3$
|
|
83248
|
-
L:
|
|
83246
|
+
F: __dxlog_file3$2,
|
|
83247
|
+
L: 327,
|
|
83249
83248
|
S: this,
|
|
83250
83249
|
C: (U, q) => U(...q)
|
|
83251
83250
|
});
|
|
@@ -83259,8 +83258,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83259
83258
|
await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
|
|
83260
83259
|
const $ = this._client;
|
|
83261
83260
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83262
|
-
F: __dxlog_file3$
|
|
83263
|
-
L:
|
|
83261
|
+
F: __dxlog_file3$2,
|
|
83262
|
+
L: 352,
|
|
83264
83263
|
S: this,
|
|
83265
83264
|
A: [
|
|
83266
83265
|
"this._state === SignalState.CONNECTED",
|
|
@@ -83292,8 +83291,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83292
83291
|
log$2("swarm event", {
|
|
83293
83292
|
swarmEvent: K
|
|
83294
83293
|
}, {
|
|
83295
|
-
F: __dxlog_file3$
|
|
83296
|
-
L:
|
|
83294
|
+
F: __dxlog_file3$2,
|
|
83295
|
+
L: 379,
|
|
83297
83296
|
S: this,
|
|
83298
83297
|
C: (Y, J) => Y(...J)
|
|
83299
83298
|
}), await this._onSwarmEvent({
|
|
@@ -83311,8 +83310,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83311
83310
|
await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
|
|
83312
83311
|
const $ = this._client;
|
|
83313
83312
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83314
|
-
F: __dxlog_file3$
|
|
83315
|
-
L:
|
|
83313
|
+
F: __dxlog_file3$2,
|
|
83314
|
+
L: 392,
|
|
83316
83315
|
S: this,
|
|
83317
83316
|
A: [
|
|
83318
83317
|
"this._state === SignalState.CONNECTED",
|
|
@@ -83352,7 +83351,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83352
83351
|
hosts: this._hosts
|
|
83353
83352
|
}, {
|
|
83354
83353
|
F: __dxlog_file5$2,
|
|
83355
|
-
L:
|
|
83354
|
+
L: 51,
|
|
83356
83355
|
S: this,
|
|
83357
83356
|
C: (U, q) => U(...q)
|
|
83358
83357
|
});
|
|
@@ -83368,14 +83367,14 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83368
83367
|
hosts: this._hosts
|
|
83369
83368
|
}, {
|
|
83370
83369
|
F: __dxlog_file5$2,
|
|
83371
|
-
L:
|
|
83370
|
+
L: 78,
|
|
83372
83371
|
S: this,
|
|
83373
83372
|
C: ($, I) => $(...I)
|
|
83374
83373
|
}), log$2.trace("dxos.mesh.websocket-signal-manager.open", trace$1.begin({
|
|
83375
83374
|
id: this._instanceId
|
|
83376
83375
|
}), {
|
|
83377
83376
|
F: __dxlog_file5$2,
|
|
83378
|
-
L:
|
|
83377
|
+
L: 79,
|
|
83379
83378
|
S: this,
|
|
83380
83379
|
C: ($, I) => $(...I)
|
|
83381
83380
|
}), this._initContext(), [
|
|
@@ -83384,7 +83383,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83384
83383
|
id: this._instanceId
|
|
83385
83384
|
}), {
|
|
83386
83385
|
F: __dxlog_file5$2,
|
|
83387
|
-
L:
|
|
83386
|
+
L: 87,
|
|
83388
83387
|
S: this,
|
|
83389
83388
|
C: ($, I) => $(...I)
|
|
83390
83389
|
}));
|
|
@@ -83393,16 +83392,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83393
83392
|
this._opened && (this._opened = !1, await this._ctx.dispose(), await Promise.all(Array.from(this._servers.values()).map(($) => $.close())));
|
|
83394
83393
|
}
|
|
83395
83394
|
async restartServer($) {
|
|
83396
|
-
log$2("
|
|
83395
|
+
log$2("restarting server", {
|
|
83397
83396
|
serverName: $
|
|
83398
83397
|
}, {
|
|
83399
83398
|
F: __dxlog_file5$2,
|
|
83400
|
-
L:
|
|
83399
|
+
L: 103,
|
|
83401
83400
|
S: this,
|
|
83402
83401
|
C: (U, q) => U(...q)
|
|
83403
83402
|
}), invariant(this._opened, "server already closed", {
|
|
83404
83403
|
F: __dxlog_file5$2,
|
|
83405
|
-
L:
|
|
83404
|
+
L: 104,
|
|
83406
83405
|
S: this,
|
|
83407
83406
|
A: [
|
|
83408
83407
|
"this._opened",
|
|
@@ -83412,7 +83411,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83412
83411
|
const I = this._servers.get($);
|
|
83413
83412
|
invariant(I, "server not found", {
|
|
83414
83413
|
F: __dxlog_file5$2,
|
|
83415
|
-
L:
|
|
83414
|
+
L: 107,
|
|
83416
83415
|
S: this,
|
|
83417
83416
|
A: [
|
|
83418
83417
|
"server",
|
|
@@ -83424,17 +83423,17 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83424
83423
|
return Array.from(this._servers.values()).map(($) => $.getStatus());
|
|
83425
83424
|
}
|
|
83426
83425
|
async join({ topic: $, peerId: I }) {
|
|
83427
|
-
log$2("
|
|
83426
|
+
log$2("join", {
|
|
83428
83427
|
topic: $,
|
|
83429
83428
|
peerId: I
|
|
83430
83429
|
}, {
|
|
83431
83430
|
F: __dxlog_file5$2,
|
|
83432
|
-
L:
|
|
83431
|
+
L: 120,
|
|
83433
83432
|
S: this,
|
|
83434
83433
|
C: (U, q) => U(...q)
|
|
83435
83434
|
}), invariant(this._opened, "Closed", {
|
|
83436
83435
|
F: __dxlog_file5$2,
|
|
83437
|
-
L:
|
|
83436
|
+
L: 121,
|
|
83438
83437
|
S: this,
|
|
83439
83438
|
A: [
|
|
83440
83439
|
"this._opened",
|
|
@@ -83451,12 +83450,12 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83451
83450
|
peerId: I
|
|
83452
83451
|
}, {
|
|
83453
83452
|
F: __dxlog_file5$2,
|
|
83454
|
-
L:
|
|
83453
|
+
L: 127,
|
|
83455
83454
|
S: this,
|
|
83456
83455
|
C: (U, q) => U(...q)
|
|
83457
83456
|
}), invariant(this._opened, "Closed", {
|
|
83458
83457
|
F: __dxlog_file5$2,
|
|
83459
|
-
L:
|
|
83458
|
+
L: 128,
|
|
83460
83459
|
S: this,
|
|
83461
83460
|
A: [
|
|
83462
83461
|
"this._opened",
|
|
@@ -83468,14 +83467,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83468
83467
|
}));
|
|
83469
83468
|
}
|
|
83470
83469
|
async sendMessage({ author: $, recipient: I, payload: U }) {
|
|
83471
|
-
log$2(
|
|
83470
|
+
log$2("signal", {
|
|
83471
|
+
recipient: I
|
|
83472
|
+
}, {
|
|
83472
83473
|
F: __dxlog_file5$2,
|
|
83473
|
-
L:
|
|
83474
|
+
L: 142,
|
|
83474
83475
|
S: this,
|
|
83475
83476
|
C: (q, G) => q(...G)
|
|
83476
83477
|
}), invariant(this._opened, "Closed", {
|
|
83477
83478
|
F: __dxlog_file5$2,
|
|
83478
|
-
L:
|
|
83479
|
+
L: 143,
|
|
83479
83480
|
S: this,
|
|
83480
83481
|
A: [
|
|
83481
83482
|
"this._opened",
|
|
@@ -83491,21 +83492,21 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83491
83492
|
err: K
|
|
83492
83493
|
}, {
|
|
83493
83494
|
F: __dxlog_file5$2,
|
|
83494
|
-
L:
|
|
83495
|
+
L: 148,
|
|
83495
83496
|
S: this,
|
|
83496
83497
|
C: (Y, J) => Y(...J)
|
|
83497
83498
|
}) : K instanceof TimeoutError$1 || K.constructor.name === "TimeoutError" ? (log$2.info("WSS sendMessage timeout", {
|
|
83498
83499
|
err: K
|
|
83499
83500
|
}, {
|
|
83500
83501
|
F: __dxlog_file5$2,
|
|
83501
|
-
L:
|
|
83502
|
+
L: 150,
|
|
83502
83503
|
S: this,
|
|
83503
83504
|
C: (Y, J) => Y(...J)
|
|
83504
83505
|
}), this.checkServerFailure(G)) : (log$2.info(`error sending to ${G}`, {
|
|
83505
83506
|
err: K
|
|
83506
83507
|
}, {
|
|
83507
83508
|
F: __dxlog_file5$2,
|
|
83508
|
-
L:
|
|
83509
|
+
L: 153,
|
|
83509
83510
|
S: this,
|
|
83510
83511
|
C: (Y, J) => Y(...J)
|
|
83511
83512
|
}), this.checkServerFailure(G));
|
|
@@ -83515,9 +83516,9 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83515
83516
|
async checkServerFailure($) {
|
|
83516
83517
|
const I = this.failureCount.get($) ?? 0;
|
|
83517
83518
|
if (I > MAX_SERVER_FAILURES) {
|
|
83518
|
-
log$2.warn(`
|
|
83519
|
+
log$2.warn(`too many failures sending to ${$} (${I} > ${MAX_SERVER_FAILURES}), restarting`, void 0, {
|
|
83519
83520
|
F: __dxlog_file5$2,
|
|
83520
|
-
L:
|
|
83521
|
+
L: 164,
|
|
83521
83522
|
S: this,
|
|
83522
83523
|
C: (U, q) => U(...q)
|
|
83523
83524
|
}), await this.restartServer($), this.failureCount.set($, 0);
|
|
@@ -83526,14 +83527,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83526
83527
|
this.failureCount.set($, (this.failureCount.get($) ?? 0) + 1);
|
|
83527
83528
|
}
|
|
83528
83529
|
async subscribeMessages($) {
|
|
83529
|
-
log$2(
|
|
83530
|
+
log$2("subscribed for message stream", {
|
|
83531
|
+
peerId: $
|
|
83532
|
+
}, {
|
|
83530
83533
|
F: __dxlog_file5$2,
|
|
83531
|
-
L:
|
|
83534
|
+
L: 174,
|
|
83532
83535
|
S: this,
|
|
83533
83536
|
C: (I, U) => I(...U)
|
|
83534
83537
|
}), invariant(this._opened, "Closed", {
|
|
83535
83538
|
F: __dxlog_file5$2,
|
|
83536
|
-
L:
|
|
83539
|
+
L: 175,
|
|
83537
83540
|
S: this,
|
|
83538
83541
|
A: [
|
|
83539
83542
|
"this._opened",
|
|
@@ -83542,14 +83545,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83542
83545
|
}), await this._forEachServer(async (I) => I.subscribeMessages($));
|
|
83543
83546
|
}
|
|
83544
83547
|
async unsubscribeMessages($) {
|
|
83545
|
-
log$2(
|
|
83548
|
+
log$2("subscribed for message stream", {
|
|
83549
|
+
peerId: $
|
|
83550
|
+
}, {
|
|
83546
83551
|
F: __dxlog_file5$2,
|
|
83547
|
-
L:
|
|
83552
|
+
L: 181,
|
|
83548
83553
|
S: this,
|
|
83549
83554
|
C: (I, U) => I(...U)
|
|
83550
83555
|
}), invariant(this._opened, "Closed", {
|
|
83551
83556
|
F: __dxlog_file5$2,
|
|
83552
|
-
L:
|
|
83557
|
+
L: 182,
|
|
83553
83558
|
S: this,
|
|
83554
83559
|
A: [
|
|
83555
83560
|
"this._opened",
|
|
@@ -83561,7 +83566,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83561
83566
|
this._ctx = new Context({
|
|
83562
83567
|
onError: ($) => log$2.catch($, void 0, {
|
|
83563
83568
|
F: __dxlog_file5$2,
|
|
83564
|
-
L:
|
|
83569
|
+
L: 189,
|
|
83565
83570
|
S: this,
|
|
83566
83571
|
C: (I, U) => I(...U)
|
|
83567
83572
|
})
|
|
@@ -83586,14 +83591,14 @@ _ts_decorate$3([
|
|
|
83586
83591
|
_ts_decorate$3([
|
|
83587
83592
|
synchronized
|
|
83588
83593
|
], WebsocketSignalManager.prototype, "checkServerFailure", null);
|
|
83589
|
-
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
|
|
83594
|
+
var __dxlog_file6$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
|
|
83590
83595
|
$.queryIdentity().subscribe((q) => {
|
|
83591
83596
|
var G;
|
|
83592
83597
|
if (!((G = q == null ? void 0 : q.identity) != null && G.identityKey)) {
|
|
83593
83598
|
log$2("empty response from identity service", {
|
|
83594
83599
|
idqr: q
|
|
83595
83600
|
}, {
|
|
83596
|
-
F: __dxlog_file6,
|
|
83601
|
+
F: __dxlog_file6$1,
|
|
83597
83602
|
L: 21,
|
|
83598
83603
|
S: void 0,
|
|
83599
83604
|
C: (K, Y) => K(...Y)
|
|
@@ -83606,7 +83611,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83606
83611
|
log$2("empty response from device service", {
|
|
83607
83612
|
device: q
|
|
83608
83613
|
}, {
|
|
83609
|
-
F: __dxlog_file6,
|
|
83614
|
+
F: __dxlog_file6$1,
|
|
83610
83615
|
L: 30,
|
|
83611
83616
|
S: void 0,
|
|
83612
83617
|
C: (K, Y) => K(...Y)
|
|
@@ -83614,7 +83619,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83614
83619
|
return;
|
|
83615
83620
|
}
|
|
83616
83621
|
invariant(q, "empty response from device service", {
|
|
83617
|
-
F: __dxlog_file6,
|
|
83622
|
+
F: __dxlog_file6$1,
|
|
83618
83623
|
L: 33,
|
|
83619
83624
|
S: void 0,
|
|
83620
83625
|
A: [
|
|
@@ -83627,7 +83632,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83627
83632
|
log$2("no current device", {
|
|
83628
83633
|
device: q
|
|
83629
83634
|
}, {
|
|
83630
|
-
F: __dxlog_file6,
|
|
83635
|
+
F: __dxlog_file6$1,
|
|
83631
83636
|
L: 37,
|
|
83632
83637
|
S: void 0,
|
|
83633
83638
|
C: (K, Y) => K(...Y)
|
|
@@ -84828,7 +84833,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84828
84833
|
}, encodeFrame = ($) => {
|
|
84829
84834
|
const I = export_Buffer.allocUnsafe(FRAME_LENGTH_SIZE + $.length);
|
|
84830
84835
|
return I.writeUInt16BE($.length, 0), I.set($, FRAME_LENGTH_SIZE), I;
|
|
84831
|
-
}, __dxlog_file3$
|
|
84836
|
+
}, __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/balancer.ts", MAX_CHUNK_SIZE = 8192, Balancer = class {
|
|
84832
84837
|
constructor($) {
|
|
84833
84838
|
this._sysChannelId = $, this._lastCallerIndex = 0, this._channels = [], this._framer = new Framer(), this._sendBuffers = /* @__PURE__ */ new Map(), this._receiveBuffers = /* @__PURE__ */ new Map(), this._sending = !1, this.incomingData = new Event$1(), this.stream = this._framer.stream, this._channels.push($), this._framer.port.subscribe(this._processIncomingMessage.bind(this));
|
|
84834
84839
|
}
|
|
@@ -84846,7 +84851,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84846
84851
|
}
|
|
84847
84852
|
pushData($, I, U) {
|
|
84848
84853
|
this._enqueueChunk($, I, U), this._sendChunks().catch((q) => log$2.catch(q, void 0, {
|
|
84849
|
-
F: __dxlog_file3$
|
|
84854
|
+
F: __dxlog_file3$1,
|
|
84850
84855
|
L: 75,
|
|
84851
84856
|
S: this,
|
|
84852
84857
|
C: (G, K) => G(...K)
|
|
@@ -84854,7 +84859,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84854
84859
|
}
|
|
84855
84860
|
destroy() {
|
|
84856
84861
|
this._sendBuffers.size !== 0 && log$2.info("destroying balancer with pending calls", void 0, {
|
|
84857
|
-
F: __dxlog_file3$
|
|
84862
|
+
F: __dxlog_file3$1,
|
|
84858
84863
|
L: 80,
|
|
84859
84864
|
S: this,
|
|
84860
84865
|
C: ($, I) => $(...I)
|
|
@@ -84921,12 +84926,12 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84921
84926
|
let $;
|
|
84922
84927
|
for ($ = this._getNextChunk(); $; ) {
|
|
84923
84928
|
this._framer.writable || (log$2("PAUSE for drain", void 0, {
|
|
84924
|
-
F: __dxlog_file3$
|
|
84929
|
+
F: __dxlog_file3$1,
|
|
84925
84930
|
L: 179,
|
|
84926
84931
|
S: this,
|
|
84927
84932
|
C: (q, G) => q(...G)
|
|
84928
84933
|
}), await this._framer.drain.waitForCount(1), log$2("RESUME for drain", void 0, {
|
|
84929
|
-
F: __dxlog_file3$
|
|
84934
|
+
F: __dxlog_file3$1,
|
|
84930
84935
|
L: 181,
|
|
84931
84936
|
S: this,
|
|
84932
84937
|
C: (q, G) => q(...G)
|
|
@@ -84937,7 +84942,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84937
84942
|
log$2("Error sending chunk", {
|
|
84938
84943
|
err: q
|
|
84939
84944
|
}, {
|
|
84940
|
-
F: __dxlog_file3$
|
|
84945
|
+
F: __dxlog_file3$1,
|
|
84941
84946
|
L: 187,
|
|
84942
84947
|
S: this,
|
|
84943
84948
|
C: (G, K) => G(...K)
|
|
@@ -84946,7 +84951,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84946
84951
|
$ = this._getNextChunk();
|
|
84947
84952
|
}
|
|
84948
84953
|
invariant(this._sendBuffers.size === 0, "sendBuffers not empty", {
|
|
84949
|
-
F: __dxlog_file3$
|
|
84954
|
+
F: __dxlog_file3$1,
|
|
84950
84955
|
L: 192,
|
|
84951
84956
|
S: this,
|
|
84952
84957
|
A: [
|
|
@@ -86259,7 +86264,7 @@ function _ts_decorate2$1($, I, U, q) {
|
|
|
86259
86264
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
86260
86265
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
86261
86266
|
}
|
|
86262
|
-
var __dxlog_file3
|
|
86267
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts", ConnectionDisplacedError = class extends SystemError {
|
|
86263
86268
|
constructor() {
|
|
86264
86269
|
super("Connection displaced by remote initiator.");
|
|
86265
86270
|
}
|
|
@@ -86279,7 +86284,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86279
86284
|
ConnectionState.CONNECTING
|
|
86280
86285
|
].includes(this.connection.state))
|
|
86281
86286
|
return log$2.info(`received offer when connection already in ${this.connection.state} state`, void 0, {
|
|
86282
|
-
F: __dxlog_file3
|
|
86287
|
+
F: __dxlog_file3,
|
|
86283
86288
|
L: 114,
|
|
86284
86289
|
S: this,
|
|
86285
86290
|
C: (q, G) => q(...G)
|
|
@@ -86294,7 +86299,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86294
86299
|
remotePeerId: this.localPeerId,
|
|
86295
86300
|
sessionId: (U = this.connection) == null ? void 0 : U.sessionId
|
|
86296
86301
|
}, {
|
|
86297
|
-
F: __dxlog_file3
|
|
86302
|
+
F: __dxlog_file3,
|
|
86298
86303
|
L: 123,
|
|
86299
86304
|
S: this,
|
|
86300
86305
|
C: (q, G) => q(...G)
|
|
@@ -86305,7 +86310,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86305
86310
|
};
|
|
86306
86311
|
if (await this._callbacks.onOffer(I) && !this.connection) {
|
|
86307
86312
|
invariant($.sessionId, void 0, {
|
|
86308
|
-
F: __dxlog_file3
|
|
86313
|
+
F: __dxlog_file3,
|
|
86309
86314
|
L: 143,
|
|
86310
86315
|
S: this,
|
|
86311
86316
|
A: [
|
|
@@ -86323,7 +86328,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86323
86328
|
remoteId: this.id,
|
|
86324
86329
|
err: G
|
|
86325
86330
|
}, {
|
|
86326
|
-
F: __dxlog_file3
|
|
86331
|
+
F: __dxlog_file3,
|
|
86327
86332
|
L: 153,
|
|
86328
86333
|
S: this,
|
|
86329
86334
|
C: (K, Y) => K(...Y)
|
|
@@ -86342,7 +86347,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86342
86347
|
*/
|
|
86343
86348
|
async initiateConnection() {
|
|
86344
86349
|
invariant(!this.initiating, "Initiation in progress.", {
|
|
86345
|
-
F: __dxlog_file3
|
|
86350
|
+
F: __dxlog_file3,
|
|
86346
86351
|
L: 170,
|
|
86347
86352
|
S: this,
|
|
86348
86353
|
A: [
|
|
@@ -86350,7 +86355,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86350
86355
|
"'Initiation in progress.'"
|
|
86351
86356
|
]
|
|
86352
86357
|
}), invariant(!this.connection, "Already connected.", {
|
|
86353
|
-
F: __dxlog_file3
|
|
86358
|
+
F: __dxlog_file3,
|
|
86354
86359
|
L: 171,
|
|
86355
86360
|
S: this,
|
|
86356
86361
|
A: [
|
|
@@ -86365,7 +86370,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86365
86370
|
peerId: this.id,
|
|
86366
86371
|
sessionId: $
|
|
86367
86372
|
}, {
|
|
86368
|
-
F: __dxlog_file3
|
|
86373
|
+
F: __dxlog_file3,
|
|
86369
86374
|
L: 173,
|
|
86370
86375
|
S: this,
|
|
86371
86376
|
C: (q, G) => q(...G)
|
|
@@ -86388,13 +86393,13 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86388
86393
|
ownId: this.localPeerId,
|
|
86389
86394
|
remoteId: this.id
|
|
86390
86395
|
}, {
|
|
86391
|
-
F: __dxlog_file3
|
|
86396
|
+
F: __dxlog_file3,
|
|
86392
86397
|
L: 190,
|
|
86393
86398
|
S: this,
|
|
86394
86399
|
C: (q, G) => q(...G)
|
|
86395
86400
|
}), I.state !== ConnectionState.INITIAL) {
|
|
86396
86401
|
log$2("ignoring response", void 0, {
|
|
86397
|
-
F: __dxlog_file3
|
|
86402
|
+
F: __dxlog_file3,
|
|
86398
86403
|
L: 192,
|
|
86399
86404
|
S: this,
|
|
86400
86405
|
C: (q, G) => q(...G)
|
|
@@ -86408,7 +86413,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86408
86413
|
peerId: this.localPeerId,
|
|
86409
86414
|
remoteId: this.id
|
|
86410
86415
|
}, {
|
|
86411
|
-
F: __dxlog_file3
|
|
86416
|
+
F: __dxlog_file3,
|
|
86412
86417
|
L: 196,
|
|
86413
86418
|
S: this,
|
|
86414
86419
|
C: (G, K) => G(...K)
|
|
@@ -86428,7 +86433,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86428
86433
|
peerId: this.localPeerId,
|
|
86429
86434
|
remoteId: this.id
|
|
86430
86435
|
}, {
|
|
86431
|
-
F: __dxlog_file3
|
|
86436
|
+
F: __dxlog_file3,
|
|
86432
86437
|
L: 209,
|
|
86433
86438
|
S: this,
|
|
86434
86439
|
C: (G, K) => G(...K)
|
|
@@ -86438,7 +86443,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86438
86443
|
}
|
|
86439
86444
|
try {
|
|
86440
86445
|
log$2("opening connection as initiator", void 0, {
|
|
86441
|
-
F: __dxlog_file3
|
|
86446
|
+
F: __dxlog_file3,
|
|
86442
86447
|
L: 222,
|
|
86443
86448
|
S: this,
|
|
86444
86449
|
C: (q, G) => q(...G)
|
|
@@ -86450,14 +86455,14 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86450
86455
|
peerId: this.localPeerId,
|
|
86451
86456
|
remoteId: this.id
|
|
86452
86457
|
}, {
|
|
86453
|
-
F: __dxlog_file3
|
|
86458
|
+
F: __dxlog_file3,
|
|
86454
86459
|
L: 226,
|
|
86455
86460
|
S: this,
|
|
86456
86461
|
C: (G, K) => G(...K)
|
|
86457
86462
|
}), log$2.warn("closing connection due to unhandled error on openConnection", {
|
|
86458
86463
|
err: q
|
|
86459
86464
|
}, {
|
|
86460
|
-
F: __dxlog_file3
|
|
86465
|
+
F: __dxlog_file3,
|
|
86461
86466
|
L: 233,
|
|
86462
86467
|
S: this,
|
|
86463
86468
|
C: (G, K) => G(...K)
|
|
@@ -86479,12 +86484,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86479
86484
|
initiator: $,
|
|
86480
86485
|
sessionId: I
|
|
86481
86486
|
}, {
|
|
86482
|
-
F: __dxlog_file3
|
|
86487
|
+
F: __dxlog_file3,
|
|
86483
86488
|
L: 247,
|
|
86484
86489
|
S: this,
|
|
86485
86490
|
C: (G, K) => G(...K)
|
|
86486
86491
|
}), invariant(!this.connection, "Already connected.", {
|
|
86487
|
-
F: __dxlog_file3
|
|
86492
|
+
F: __dxlog_file3,
|
|
86488
86493
|
L: 254,
|
|
86489
86494
|
S: this,
|
|
86490
86495
|
A: [
|
|
@@ -86516,7 +86521,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86516
86521
|
sessionId: I,
|
|
86517
86522
|
initiator: $
|
|
86518
86523
|
}, {
|
|
86519
|
-
F: __dxlog_file3
|
|
86524
|
+
F: __dxlog_file3,
|
|
86520
86525
|
L: 273,
|
|
86521
86526
|
S: this,
|
|
86522
86527
|
C: (G, K) => G(...K)
|
|
@@ -86529,12 +86534,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86529
86534
|
remoteId: this.id,
|
|
86530
86535
|
initiator: $
|
|
86531
86536
|
}, {
|
|
86532
|
-
F: __dxlog_file3
|
|
86537
|
+
F: __dxlog_file3,
|
|
86533
86538
|
L: 282,
|
|
86534
86539
|
S: this,
|
|
86535
86540
|
C: (K, Y) => K(...Y)
|
|
86536
86541
|
}), this._connectionLimiter.doneConnecting(I), invariant(this.connection === U, "Connection mismatch (race condition).", {
|
|
86537
|
-
F: __dxlog_file3
|
|
86542
|
+
F: __dxlog_file3,
|
|
86538
86543
|
L: 287,
|
|
86539
86544
|
S: this,
|
|
86540
86545
|
A: [
|
|
@@ -86548,7 +86553,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86548
86553
|
sessionId: I,
|
|
86549
86554
|
initiator: $
|
|
86550
86555
|
}, {
|
|
86551
|
-
F: __dxlog_file3
|
|
86556
|
+
F: __dxlog_file3,
|
|
86552
86557
|
L: 289,
|
|
86553
86558
|
S: this,
|
|
86554
86559
|
C: (K, Y) => K(...Y)
|
|
@@ -86566,7 +86571,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86566
86571
|
initiator: $,
|
|
86567
86572
|
err: G
|
|
86568
86573
|
}, {
|
|
86569
|
-
F: __dxlog_file3
|
|
86574
|
+
F: __dxlog_file3,
|
|
86570
86575
|
L: 329,
|
|
86571
86576
|
S: this,
|
|
86572
86577
|
C: (K, Y) => K(...Y)
|
|
@@ -86578,7 +86583,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86578
86583
|
initiator: $,
|
|
86579
86584
|
err: G
|
|
86580
86585
|
}, {
|
|
86581
|
-
F: __dxlog_file3
|
|
86586
|
+
F: __dxlog_file3,
|
|
86582
86587
|
L: 336,
|
|
86583
86588
|
S: this,
|
|
86584
86589
|
C: (K, Y) => K(...Y)
|
|
@@ -86593,7 +86598,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86593
86598
|
peerId: this.id,
|
|
86594
86599
|
sessionId: I.sessionId
|
|
86595
86600
|
}, {
|
|
86596
|
-
F: __dxlog_file3
|
|
86601
|
+
F: __dxlog_file3,
|
|
86597
86602
|
L: 361,
|
|
86598
86603
|
S: this,
|
|
86599
86604
|
C: (U, q) => U(...q)
|
|
@@ -86601,7 +86606,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86601
86606
|
peerId: this.id,
|
|
86602
86607
|
sessionId: I.sessionId
|
|
86603
86608
|
}, {
|
|
86604
|
-
F: __dxlog_file3
|
|
86609
|
+
F: __dxlog_file3,
|
|
86605
86610
|
L: 367,
|
|
86606
86611
|
S: this,
|
|
86607
86612
|
C: (U, q) => U(...q)
|
|
@@ -86612,7 +86617,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86612
86617
|
log$2("dropping signal message for non-existent connection", {
|
|
86613
86618
|
message: $
|
|
86614
86619
|
}, {
|
|
86615
|
-
F: __dxlog_file3
|
|
86620
|
+
F: __dxlog_file3,
|
|
86616
86621
|
L: 372,
|
|
86617
86622
|
S: this,
|
|
86618
86623
|
C: (I, U) => I(...U)
|
|
@@ -86627,7 +86632,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86627
86632
|
peerId: this.id,
|
|
86628
86633
|
topic: this.topic
|
|
86629
86634
|
}, {
|
|
86630
|
-
F: __dxlog_file3
|
|
86635
|
+
F: __dxlog_file3,
|
|
86631
86636
|
L: 382,
|
|
86632
86637
|
S: this,
|
|
86633
86638
|
C: (U, q) => U(...q)
|
|
@@ -87519,7 +87524,7 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
|
|
|
87519
87524
|
for (var zt = {}, de = 0; de < Ct.length; de++)
|
|
87520
87525
|
zt[Ct[de].toUpperCase()] = Ct[de];
|
|
87521
87526
|
return zt;
|
|
87522
|
-
},
|
|
87527
|
+
}, Le = function(Ct, zt) {
|
|
87523
87528
|
return typeof Ct === ee ? Ye(zt).indexOf(Ye(Ct)) !== -1 : !1;
|
|
87524
87529
|
}, Ye = function(Ct) {
|
|
87525
87530
|
return Ct.toLowerCase();
|
|
@@ -87541,9 +87546,9 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
|
|
|
87541
87546
|
for (var de in zt)
|
|
87542
87547
|
if (typeof zt[de] === Q && zt[de].length > 0) {
|
|
87543
87548
|
for (var ie = 0; ie < zt[de].length; ie++)
|
|
87544
|
-
if (
|
|
87549
|
+
if (Le(zt[de][ie], Ct))
|
|
87545
87550
|
return de === Y ? q : de;
|
|
87546
|
-
} else if (
|
|
87551
|
+
} else if (Le(zt[de], Ct))
|
|
87547
87552
|
return de === Y ? q : de;
|
|
87548
87553
|
return Ct;
|
|
87549
87554
|
}, it = {
|
|
@@ -88758,12 +88763,14 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
|
|
|
88758
88763
|
return this._client.rpc;
|
|
88759
88764
|
}
|
|
88760
88765
|
async open() {
|
|
88761
|
-
const { WebsocketRpcClient: $ } = await import("./index-
|
|
88766
|
+
const { WebsocketRpcClient: $ } = await import("./index-Cms4wG79.mjs");
|
|
88762
88767
|
this._client = new $({
|
|
88763
88768
|
url: getUnixSocket(this._profile, "ws+unix"),
|
|
88764
88769
|
requested: clientServiceBundle,
|
|
88765
88770
|
exposed: {},
|
|
88766
88771
|
handlers: {}
|
|
88772
|
+
}), this._client.error.on((I) => {
|
|
88773
|
+
this.closed.emit(I);
|
|
88767
88774
|
}), await this._client.open();
|
|
88768
88775
|
}
|
|
88769
88776
|
async close() {
|
|
@@ -88773,7 +88780,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
|
|
|
88773
88780
|
} catch (I) {
|
|
88774
88781
|
log$2.warn("Failed to close", I, {
|
|
88775
88782
|
F: __dxlog_file,
|
|
88776
|
-
L:
|
|
88783
|
+
L: 72,
|
|
88777
88784
|
S: this,
|
|
88778
88785
|
C: (U, q) => U(...q)
|
|
88779
88786
|
});
|
|
@@ -88878,7 +88885,7 @@ var IFrameManager = class {
|
|
|
88878
88885
|
var I;
|
|
88879
88886
|
(I = this._onMessage) == null || I.call(this, $);
|
|
88880
88887
|
}
|
|
88881
|
-
},
|
|
88888
|
+
}, __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/shell-manager.ts", shellStyles = Object.entries({
|
|
88882
88889
|
display: "none",
|
|
88883
88890
|
position: "fixed",
|
|
88884
88891
|
top: 0,
|
|
@@ -88898,13 +88905,15 @@ var IFrameManager = class {
|
|
|
88898
88905
|
async setLayout($) {
|
|
88899
88906
|
var I;
|
|
88900
88907
|
log$2("set layout", $, {
|
|
88901
|
-
F:
|
|
88902
|
-
L:
|
|
88908
|
+
F: __dxlog_file4,
|
|
88909
|
+
L: 51,
|
|
88903
88910
|
S: this,
|
|
88904
88911
|
C: (U, q) => U(...q)
|
|
88905
88912
|
}), this._display = ShellDisplay.FULLSCREEN, this.contextUpdate.emit({
|
|
88906
88913
|
display: this._display
|
|
88907
|
-
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout(
|
|
88914
|
+
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout($, {
|
|
88915
|
+
timeout: RPC_TIMEOUT
|
|
88916
|
+
}));
|
|
88908
88917
|
}
|
|
88909
88918
|
async open() {
|
|
88910
88919
|
if (this._shellRpc)
|
|
@@ -88926,8 +88935,8 @@ var IFrameManager = class {
|
|
|
88926
88935
|
AppService: {
|
|
88927
88936
|
setContext: async (q) => {
|
|
88928
88937
|
log$2("set context", q, {
|
|
88929
|
-
F:
|
|
88930
|
-
L:
|
|
88938
|
+
F: __dxlog_file4,
|
|
88939
|
+
L: 98,
|
|
88931
88940
|
S: this,
|
|
88932
88941
|
C: (G, K) => G(...K)
|
|
88933
88942
|
}), q.display && (this._display = q.display), this.contextUpdate.emit(q);
|
|
@@ -89019,13 +89028,13 @@ function _ts_decorate4($, I, U, q) {
|
|
|
89019
89028
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89020
89029
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89021
89030
|
}
|
|
89022
|
-
var
|
|
89031
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/service-proxy.ts", ClientServicesProxy = class {
|
|
89023
89032
|
constructor($, I = 3e4) {
|
|
89024
89033
|
this._port = $, this._timeout = I, this.closed = new Event$1();
|
|
89025
89034
|
}
|
|
89026
89035
|
get proxy() {
|
|
89027
89036
|
return invariant(this._proxy, "Client services not open", {
|
|
89028
|
-
F:
|
|
89037
|
+
F: __dxlog_file5,
|
|
89029
89038
|
L: 30,
|
|
89030
89039
|
S: this,
|
|
89031
89040
|
A: [
|
|
@@ -89039,7 +89048,7 @@ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89039
89048
|
}
|
|
89040
89049
|
get services() {
|
|
89041
89050
|
return invariant(this._proxy, "Client services not open", {
|
|
89042
|
-
F:
|
|
89051
|
+
F: __dxlog_file5,
|
|
89043
89052
|
L: 39,
|
|
89044
89053
|
S: this,
|
|
89045
89054
|
A: [
|
|
@@ -89076,7 +89085,7 @@ function _ts_decorate5($, I, U, q) {
|
|
|
89076
89085
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89077
89086
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89078
89087
|
}
|
|
89079
|
-
var
|
|
89088
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/iframe-service-proxy.ts", IFrameClientServicesProxy = class {
|
|
89080
89089
|
constructor({ source: $ = DEFAULT_VAULT_URL, shell: I = DEFAULT_SHELL_CHANNEL, vault: U = DEFAULT_INTERNAL_CHANNEL, timeout: q = PROXY_CONNECTION_TIMEOUT, logFilter: G = "error,warn" } = {}) {
|
|
89081
89090
|
this.closed = new Event$1(), this._instanceId = PublicKey.random().toHex(), this._source = $, this._shell = I, this._vault = U, this._logFilter = parseFilter(G), this._timeout = q;
|
|
89082
89091
|
const K = new Trigger(), Y = new Trigger();
|
|
@@ -89115,42 +89124,44 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89115
89124
|
this._clientServicesProxy || (log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.begin({
|
|
89116
89125
|
id: this._instanceId
|
|
89117
89126
|
}), {
|
|
89118
|
-
F:
|
|
89119
|
-
L:
|
|
89127
|
+
F: __dxlog_file6,
|
|
89128
|
+
L: 142,
|
|
89120
89129
|
S: this,
|
|
89121
89130
|
C: (I, U) => I(...U)
|
|
89122
89131
|
}), await this._iframeManager.open(), this._clientServicesProxy = new ClientServicesProxy(this._appPort), await this._clientServicesProxy.open(), this._loggingStream = this._clientServicesProxy.services.LoggingService.queryLogs({
|
|
89123
89132
|
filters: this._logFilter
|
|
89133
|
+
}, {
|
|
89134
|
+
timeout: RPC_TIMEOUT
|
|
89124
89135
|
}), this._loggingStream.subscribe((I) => {
|
|
89125
89136
|
switch (I.level) {
|
|
89126
89137
|
case LogLevel.DEBUG:
|
|
89127
89138
|
log$2.debug(`[vault] ${I.message}`, I.context, {
|
|
89128
|
-
F:
|
|
89129
|
-
L:
|
|
89139
|
+
F: __dxlog_file6,
|
|
89140
|
+
L: 157,
|
|
89130
89141
|
S: this,
|
|
89131
89142
|
C: (U, q) => U(...q)
|
|
89132
89143
|
});
|
|
89133
89144
|
break;
|
|
89134
89145
|
case LogLevel.INFO:
|
|
89135
89146
|
log$2.info(`[vault] ${I.message}`, I.context, {
|
|
89136
|
-
F:
|
|
89137
|
-
L:
|
|
89147
|
+
F: __dxlog_file6,
|
|
89148
|
+
L: 160,
|
|
89138
89149
|
S: this,
|
|
89139
89150
|
C: (U, q) => U(...q)
|
|
89140
89151
|
});
|
|
89141
89152
|
break;
|
|
89142
89153
|
case LogLevel.WARN:
|
|
89143
89154
|
log$2.warn(`[vault] ${I.message}`, I.context, {
|
|
89144
|
-
F:
|
|
89145
|
-
L:
|
|
89155
|
+
F: __dxlog_file6,
|
|
89156
|
+
L: 163,
|
|
89146
89157
|
S: this,
|
|
89147
89158
|
C: (U, q) => U(...q)
|
|
89148
89159
|
});
|
|
89149
89160
|
break;
|
|
89150
89161
|
case LogLevel.ERROR:
|
|
89151
89162
|
log$2.error(`[vault] ${I.message}`, I.context, {
|
|
89152
|
-
F:
|
|
89153
|
-
L:
|
|
89163
|
+
F: __dxlog_file6,
|
|
89164
|
+
L: 166,
|
|
89154
89165
|
S: this,
|
|
89155
89166
|
C: (U, q) => U(...q)
|
|
89156
89167
|
});
|
|
@@ -89163,8 +89174,8 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89163
89174
|
await (($ = this._shellManager) == null ? void 0 : $.close()), await this._iframeManager.close(), await ((I = this._loggingStream) == null ? void 0 : I.close()), await ((U = this._clientServicesProxy) == null ? void 0 : U.close()), this._clientServicesProxy = void 0, log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.end({
|
|
89164
89175
|
id: this._instanceId
|
|
89165
89176
|
}), {
|
|
89166
|
-
F:
|
|
89167
|
-
L:
|
|
89177
|
+
F: __dxlog_file6,
|
|
89178
|
+
L: 180,
|
|
89168
89179
|
S: this,
|
|
89169
89180
|
C: (q, G) => q(...G)
|
|
89170
89181
|
});
|
|
@@ -89182,7 +89193,7 @@ function _ts_decorate6($, I, U, q) {
|
|
|
89182
89193
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89183
89194
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89184
89195
|
}
|
|
89185
|
-
var
|
|
89196
|
+
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/worker-client-services.ts", WorkerClientServices = class {
|
|
89186
89197
|
constructor({ config: $, createWorker: I, logFilter: U = "error,warn", observabilityGroup: q, signalTelemetryEnabled: G }) {
|
|
89187
89198
|
this.closed = new Event$1(), this.joinedSpace = new Event$1(), this._isOpen = !1, this._config = $, this._createWorker = I, this._logFilter = parseFilter(U), this._observabilityGroup = q, this._signalTelemetryEnabled = G ?? !1;
|
|
89188
89199
|
}
|
|
@@ -89199,8 +89210,8 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89199
89210
|
if (this._isOpen)
|
|
89200
89211
|
return;
|
|
89201
89212
|
log$2("opening...", void 0, {
|
|
89202
|
-
F:
|
|
89203
|
-
L:
|
|
89213
|
+
F: __dxlog_file8,
|
|
89214
|
+
L: 88,
|
|
89204
89215
|
S: this,
|
|
89205
89216
|
C: (K, Y) => K(...Y)
|
|
89206
89217
|
});
|
|
@@ -89225,13 +89236,15 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89225
89236
|
port: G
|
|
89226
89237
|
})), await this._services.open(), navigator.locks.request(LOCK_KEY, () => {
|
|
89227
89238
|
log$2("terminated", void 0, {
|
|
89228
|
-
F:
|
|
89229
|
-
L:
|
|
89239
|
+
F: __dxlog_file8,
|
|
89240
|
+
L: 115,
|
|
89230
89241
|
S: this,
|
|
89231
89242
|
C: (K, Y) => K(...Y)
|
|
89232
89243
|
}), this._isOpen && this.closed.emit(new Error("Shared worker terminated."));
|
|
89233
89244
|
}), this._loggingStream = this._services.services.LoggingService.queryLogs({
|
|
89234
89245
|
filters: this._logFilter
|
|
89246
|
+
}, {
|
|
89247
|
+
timeout: RPC_TIMEOUT
|
|
89235
89248
|
}), this._loggingStream.subscribe((K) => {
|
|
89236
89249
|
switch (K.level) {
|
|
89237
89250
|
case LogLevel.DEBUG:
|
|
@@ -89248,8 +89261,8 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89248
89261
|
break;
|
|
89249
89262
|
}
|
|
89250
89263
|
}), log$2("opened", void 0, {
|
|
89251
|
-
F:
|
|
89252
|
-
L:
|
|
89264
|
+
F: __dxlog_file8,
|
|
89265
|
+
L: 144,
|
|
89253
89266
|
S: this,
|
|
89254
89267
|
C: (K, Y) => K(...Y)
|
|
89255
89268
|
}), this._isOpen = !0;
|
|
@@ -89257,13 +89270,13 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89257
89270
|
async close() {
|
|
89258
89271
|
var $;
|
|
89259
89272
|
this._isOpen && (log$2("closing...", void 0, {
|
|
89260
|
-
F:
|
|
89261
|
-
L:
|
|
89273
|
+
F: __dxlog_file8,
|
|
89274
|
+
L: 154,
|
|
89262
89275
|
S: this,
|
|
89263
89276
|
C: (I, U) => I(...U)
|
|
89264
89277
|
}), await (($ = this._loggingStream) == null ? void 0 : $.close()), await this._runtime.close(), await this._services.close(), log$2("closed", void 0, {
|
|
89265
|
-
F:
|
|
89266
|
-
L:
|
|
89278
|
+
F: __dxlog_file8,
|
|
89279
|
+
L: 159,
|
|
89267
89280
|
S: this,
|
|
89268
89281
|
C: (I, U) => I(...U)
|
|
89269
89282
|
}), this._isOpen = !1);
|
|
@@ -89894,18 +89907,18 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89894
89907
|
if (sn && Ne && typeof sn.stack == "string") {
|
|
89895
89908
|
for (var Rt = sn.stack.split(`
|
|
89896
89909
|
`), Bt = Ne.stack.split(`
|
|
89897
|
-
`),
|
|
89910
|
+
`), Lt = Rt.length - 1, Ot = Bt.length - 1; Lt >= 1 && Ot >= 0 && Rt[Lt] !== Bt[Ot]; )
|
|
89898
89911
|
Ot--;
|
|
89899
|
-
for (;
|
|
89900
|
-
if (Rt[
|
|
89901
|
-
if (
|
|
89912
|
+
for (; Lt >= 1 && Ot >= 0; Lt--, Ot--)
|
|
89913
|
+
if (Rt[Lt] !== Bt[Ot]) {
|
|
89914
|
+
if (Lt !== 1 || Ot !== 1)
|
|
89902
89915
|
do
|
|
89903
|
-
if (
|
|
89916
|
+
if (Lt--, Ot--, Ot < 0 || Rt[Lt] !== Bt[Ot]) {
|
|
89904
89917
|
var Zt = `
|
|
89905
|
-
` + Rt[
|
|
89918
|
+
` + Rt[Lt].replace(" at new ", " at ");
|
|
89906
89919
|
return We.displayName && Zt.includes("<anonymous>") && (Zt = Zt.replace("<anonymous>", We.displayName)), typeof We == "function" && Te.set(We, Zt), Zt;
|
|
89907
89920
|
}
|
|
89908
|
-
while (
|
|
89921
|
+
while (Lt >= 1 && Ot >= 0);
|
|
89909
89922
|
break;
|
|
89910
89923
|
}
|
|
89911
89924
|
}
|
|
@@ -89915,7 +89928,7 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89915
89928
|
var Qt = We ? We.displayName || We.name : "", Yt = Qt ? Ie(Qt) : "";
|
|
89916
89929
|
return typeof We == "function" && Te.set(We, Yt), Yt;
|
|
89917
89930
|
}
|
|
89918
|
-
function
|
|
89931
|
+
function Le(We, vt, xt) {
|
|
89919
89932
|
return ye(We, !1);
|
|
89920
89933
|
}
|
|
89921
89934
|
function Ye(We) {
|
|
@@ -89938,7 +89951,7 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89938
89951
|
if (typeof We == "object")
|
|
89939
89952
|
switch (We.$$typeof) {
|
|
89940
89953
|
case Z:
|
|
89941
|
-
return
|
|
89954
|
+
return Le(We.render);
|
|
89942
89955
|
case te:
|
|
89943
89956
|
return ct(We.type, vt, xt);
|
|
89944
89957
|
case ne: {
|
|
@@ -89971,8 +89984,8 @@ function requireReactJsxDevRuntime_development() {
|
|
|
89971
89984
|
throw Bt.name = "Invariant Violation", Bt;
|
|
89972
89985
|
}
|
|
89973
89986
|
Rt = We[Et](vt, Et, Ne, xt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
89974
|
-
} catch (
|
|
89975
|
-
Rt =
|
|
89987
|
+
} catch (Lt) {
|
|
89988
|
+
Rt = Lt;
|
|
89976
89989
|
}
|
|
89977
89990
|
Rt && !(Rt instanceof Error) && (it(ot), ce("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ne || "React class", xt, Et, typeof Rt), it(null)), Rt instanceof Error && !(Rt.message in wt) && (wt[Rt.message] = !0, it(ot), ce("Failed %s type: %s", xt, Rt.message), it(null));
|
|
89978
89991
|
}
|
|
@@ -90089,9 +90102,9 @@ function requireReactJsxDevRuntime_development() {
|
|
|
90089
90102
|
for (dt in vt)
|
|
90090
90103
|
ut.call(vt, dt) && !ie.hasOwnProperty(dt) && (Et[dt] = vt[dt]);
|
|
90091
90104
|
if (We && We.defaultProps) {
|
|
90092
|
-
var
|
|
90093
|
-
for (dt in
|
|
90094
|
-
Et[dt] === void 0 && (Et[dt] =
|
|
90105
|
+
var Lt = We.defaultProps;
|
|
90106
|
+
for (dt in Lt)
|
|
90107
|
+
Et[dt] === void 0 && (Et[dt] = Lt[dt]);
|
|
90095
90108
|
}
|
|
90096
90109
|
if (Rt || Bt) {
|
|
90097
90110
|
var Ot = typeof We == "function" ? We.displayName || We.name || "Unknown" : We;
|
|
@@ -90226,8 +90239,8 @@ Check the top-level render call using <` + xt + ">.");
|
|
|
90226
90239
|
(We === void 0 || typeof We == "object" && We !== null && Object.keys(We).length === 0) && (Rt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
90227
90240
|
var Bt = Pn(ot);
|
|
90228
90241
|
Bt ? Rt += Bt : Rt += un();
|
|
90229
|
-
var
|
|
90230
|
-
We === null ?
|
|
90242
|
+
var Lt;
|
|
90243
|
+
We === null ? Lt = "null" : It(We) ? Lt = "array" : We !== void 0 && We.$$typeof === I ? (Lt = "<" + (Be(We.type) || "Unknown") + " />", Rt = " Did you accidentally export a JSX literal instead of a component?") : Lt = typeof We, ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Lt, Rt);
|
|
90231
90244
|
}
|
|
90232
90245
|
var Ot = At(We, vt, xt, ot, dt);
|
|
90233
90246
|
if (Ot == null)
|
|
@@ -90373,12 +90386,17 @@ Object.defineProperties(u.prototype, { $$typeof: { configurable: !0, value: h },
|
|
|
90373
90386
|
var ClientContext = /* @__PURE__ */ createContext(void 0), useClient = () => {
|
|
90374
90387
|
const { client: $ } = useContext(ClientContext) ?? raise$2(new Error("Missing ClientContext."));
|
|
90375
90388
|
return $;
|
|
90389
|
+
}, useMulticastObservable = ($) => {
|
|
90390
|
+
const I = useMemo(() => (U) => {
|
|
90391
|
+
const q = $.subscribe(U);
|
|
90392
|
+
return () => q.unsubscribe();
|
|
90393
|
+
}, [
|
|
90394
|
+
$
|
|
90395
|
+
]);
|
|
90396
|
+
return useSyncExternalStore(I, () => $.get());
|
|
90376
90397
|
}, useNetworkStatus = () => {
|
|
90377
90398
|
const $ = useClient();
|
|
90378
|
-
return
|
|
90379
|
-
const q = $.mesh.networkStatus.subscribe(U);
|
|
90380
|
-
return () => q.unsubscribe();
|
|
90381
|
-
}, () => $.mesh.networkStatus.get());
|
|
90399
|
+
return useMulticastObservable($.mesh.networkStatus);
|
|
90382
90400
|
}, withSelector = { exports: {} }, withSelector_production_min = {};
|
|
90383
90401
|
/**
|
|
90384
90402
|
* @license React
|
|
@@ -93702,8 +93720,8 @@ var qrcode = { exports: {} };
|
|
|
93702
93720
|
xe = $e * 4 + 17, Ee = function(Te) {
|
|
93703
93721
|
for (var be = new Array(Te), ye = 0; ye < Te; ye += 1) {
|
|
93704
93722
|
be[ye] = new Array(Te);
|
|
93705
|
-
for (var
|
|
93706
|
-
be[ye][
|
|
93723
|
+
for (var Le = 0; Le < Te; Le += 1)
|
|
93724
|
+
be[ye][Le] = null;
|
|
93707
93725
|
}
|
|
93708
93726
|
return be;
|
|
93709
93727
|
}(xe), st(0, 0), st(xe - 7, 0), st(0, xe - 7), ht(), at(), ze(Ie, Re), $e >= 7 && tt(Ie), Be == null && (Be = mt($e, Ce, je)), qe(Be, Re);
|
|
@@ -93729,9 +93747,9 @@ var qrcode = { exports: {} };
|
|
|
93729
93747
|
for (var Te = 0; Te < Ie.length; Te += 1) {
|
|
93730
93748
|
var be = Ie[Re], ye = Ie[Te];
|
|
93731
93749
|
if (Ee[be][ye] == null)
|
|
93732
|
-
for (var
|
|
93750
|
+
for (var Le = -2; Le <= 2; Le += 1)
|
|
93733
93751
|
for (var Ye = -2; Ye <= 2; Ye += 1)
|
|
93734
|
-
|
|
93752
|
+
Le == -2 || Le == 2 || Ye == -2 || Ye == 2 || Le == 0 && Ye == 0 ? Ee[be + Le][ye + Ye] = !0 : Ee[be + Le][ye + Ye] = !1;
|
|
93735
93753
|
}
|
|
93736
93754
|
}, tt = function(Ie) {
|
|
93737
93755
|
for (var Re = J.getBCHTypeNumber($e), Te = 0; Te < 18; Te += 1) {
|
|
@@ -93744,23 +93762,23 @@ var qrcode = { exports: {} };
|
|
|
93744
93762
|
}
|
|
93745
93763
|
}, ze = function(Ie, Re) {
|
|
93746
93764
|
for (var Te = Ce << 3 | Re, be = J.getBCHTypeInfo(Te), ye = 0; ye < 15; ye += 1) {
|
|
93747
|
-
var
|
|
93748
|
-
ye < 6 ? Ee[ye][8] =
|
|
93765
|
+
var Le = !Ie && (be >> ye & 1) == 1;
|
|
93766
|
+
ye < 6 ? Ee[ye][8] = Le : ye < 8 ? Ee[ye + 1][8] = Le : Ee[xe - 15 + ye][8] = Le;
|
|
93749
93767
|
}
|
|
93750
93768
|
for (var ye = 0; ye < 15; ye += 1) {
|
|
93751
|
-
var
|
|
93752
|
-
ye < 8 ? Ee[8][xe - ye - 1] =
|
|
93769
|
+
var Le = !Ie && (be >> ye & 1) == 1;
|
|
93770
|
+
ye < 8 ? Ee[8][xe - ye - 1] = Le : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Le : Ee[8][15 - ye - 1] = Le;
|
|
93753
93771
|
}
|
|
93754
93772
|
Ee[xe - 8][8] = !Ie;
|
|
93755
93773
|
}, qe = function(Ie, Re) {
|
|
93756
|
-
for (var Te = -1, be = xe - 1, ye = 7,
|
|
93774
|
+
for (var Te = -1, be = xe - 1, ye = 7, Le = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
|
|
93757
93775
|
for (ct == 6 && (ct -= 1); ; ) {
|
|
93758
93776
|
for (var ut = 0; ut < 2; ut += 1)
|
|
93759
93777
|
if (Ee[be][ct - ut] == null) {
|
|
93760
93778
|
var wt = !1;
|
|
93761
|
-
|
|
93779
|
+
Le < Ie.length && (wt = (Ie[Le] >>> ye & 1) == 1);
|
|
93762
93780
|
var St = Ye(be, ct - ut);
|
|
93763
|
-
St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (
|
|
93781
|
+
St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Le += 1, ye = 7);
|
|
93764
93782
|
}
|
|
93765
93783
|
if (be += Te, be < 0 || xe <= be) {
|
|
93766
93784
|
be -= Te, Te = -Te;
|
|
@@ -93768,13 +93786,13 @@ var qrcode = { exports: {} };
|
|
|
93768
93786
|
}
|
|
93769
93787
|
}
|
|
93770
93788
|
}, nt = function(Ie, Re) {
|
|
93771
|
-
for (var Te = 0, be = 0, ye = 0,
|
|
93789
|
+
for (var Te = 0, be = 0, ye = 0, Le = new Array(Re.length), Ye = new Array(Re.length), ct = 0; ct < Re.length; ct += 1) {
|
|
93772
93790
|
var ut = Re[ct].dataCount, wt = Re[ct].totalCount - ut;
|
|
93773
|
-
be = Math.max(be, ut), ye = Math.max(ye, wt),
|
|
93774
|
-
for (var St = 0; St <
|
|
93775
|
-
|
|
93791
|
+
be = Math.max(be, ut), ye = Math.max(ye, wt), Le[ct] = new Array(ut);
|
|
93792
|
+
for (var St = 0; St < Le[ct].length; St += 1)
|
|
93793
|
+
Le[ct][St] = 255 & Ie.getBuffer()[St + Te];
|
|
93776
93794
|
Te += ut;
|
|
93777
|
-
var it = J.getErrorCorrectPolynomial(wt), Ut = Q(
|
|
93795
|
+
var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Le[ct], it.getLength() - 1), Kt = Ut.mod(it);
|
|
93778
93796
|
Ye[ct] = new Array(it.getLength() - 1);
|
|
93779
93797
|
for (var St = 0; St < Ye[ct].length; St += 1) {
|
|
93780
93798
|
var It = St + Kt.getLength() - Ye[ct].length;
|
|
@@ -93785,18 +93803,18 @@ var qrcode = { exports: {} };
|
|
|
93785
93803
|
Ht += Re[St].totalCount;
|
|
93786
93804
|
for (var rn = new Array(Ht), Ct = 0, St = 0; St < be; St += 1)
|
|
93787
93805
|
for (var ct = 0; ct < Re.length; ct += 1)
|
|
93788
|
-
St <
|
|
93806
|
+
St < Le[ct].length && (rn[Ct] = Le[ct][St], Ct += 1);
|
|
93789
93807
|
for (var St = 0; St < ye; St += 1)
|
|
93790
93808
|
for (var ct = 0; ct < Re.length; ct += 1)
|
|
93791
93809
|
St < Ye[ct].length && (rn[Ct] = Ye[ct][St], Ct += 1);
|
|
93792
93810
|
return rn;
|
|
93793
93811
|
}, mt = function(Ie, Re, Te) {
|
|
93794
|
-
for (var be = ee.getRSBlocks(Ie, Re), ye = te(),
|
|
93795
|
-
var Ye = Te[
|
|
93812
|
+
for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Le = 0; Le < Te.length; Le += 1) {
|
|
93813
|
+
var Ye = Te[Le];
|
|
93796
93814
|
ye.put(Ye.getMode(), 4), ye.put(Ye.getLength(), J.getLengthInBits(Ye.getMode(), Ie)), Ye.write(ye);
|
|
93797
93815
|
}
|
|
93798
|
-
for (var ct = 0,
|
|
93799
|
-
ct += be[
|
|
93816
|
+
for (var ct = 0, Le = 0; Le < be.length; Le += 1)
|
|
93817
|
+
ct += be[Le].dataCount;
|
|
93800
93818
|
if (ye.getLengthInBits() > ct * 8)
|
|
93801
93819
|
throw "code length overflow. (" + ye.getLengthInBits() + ">" + ct * 8 + ")";
|
|
93802
93820
|
for (ye.getLengthInBits() + 4 <= ct * 8 && ye.put(0, 4); ye.getLengthInBits() % 8 != 0; )
|
|
@@ -93838,9 +93856,9 @@ var qrcode = { exports: {} };
|
|
|
93838
93856
|
var ye = je[be];
|
|
93839
93857
|
Te.put(ye.getMode(), 4), Te.put(ye.getLength(), J.getLengthInBits(ye.getMode(), Ie)), ye.write(Te);
|
|
93840
93858
|
}
|
|
93841
|
-
for (var
|
|
93842
|
-
|
|
93843
|
-
if (Te.getLengthInBits() <=
|
|
93859
|
+
for (var Le = 0, be = 0; be < Re.length; be++)
|
|
93860
|
+
Le += Re[be].dataCount;
|
|
93861
|
+
if (Te.getLengthInBits() <= Le * 8)
|
|
93844
93862
|
break;
|
|
93845
93863
|
}
|
|
93846
93864
|
$e = Ie;
|
|
@@ -93860,17 +93878,17 @@ var qrcode = { exports: {} };
|
|
|
93860
93878
|
}, Ge.createSvgTag = function(Ie, Re, Te, be) {
|
|
93861
93879
|
var ye = {};
|
|
93862
93880
|
typeof arguments[0] == "object" && (ye = arguments[0], Ie = ye.cellSize, Re = ye.margin, Te = ye.alt, be = ye.title), Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re, Te = typeof Te == "string" ? { text: Te } : Te || {}, Te.text = Te.text || null, Te.id = Te.text ? Te.id || "qrcode-description" : null, be = typeof be == "string" ? { text: be } : be || {}, be.text = be.text || null, be.id = be.text ? be.id || "qrcode-title" : null;
|
|
93863
|
-
var
|
|
93864
|
-
for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' +
|
|
93881
|
+
var Le = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
|
|
93882
|
+
for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' + Le + 'px" height="' + Le + 'px"', St += ' viewBox="0 0 ' + Le + " " + Le + '" ', St += ' preserveAspectRatio="xMinYMin meet"', St += be.text || Te.text ? ' role="img" aria-labelledby="' + Ue([be.id, Te.id].join(" ").trim()) + '"' : "", St += ">", St += be.text ? '<title id="' + Ue(be.id) + '">' + Ue(be.text) + "</title>" : "", St += Te.text ? '<description id="' + Ue(Te.id) + '">' + Ue(Te.text) + "</description>" : "", St += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', St += '<path d="', ut = 0; ut < Ge.getModuleCount(); ut += 1)
|
|
93865
93883
|
for (wt = ut * Ie + Re, Ye = 0; Ye < Ge.getModuleCount(); Ye += 1)
|
|
93866
93884
|
Ge.isDark(ut, Ye) && (ct = Ye * Ie + Re, St += "M" + ct + "," + wt + it);
|
|
93867
93885
|
return St += '" stroke="transparent" fill="black"/>', St += "</svg>", St;
|
|
93868
93886
|
}, Ge.createDataURL = function(Ie, Re) {
|
|
93869
93887
|
Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re;
|
|
93870
93888
|
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re;
|
|
93871
|
-
return he(Te, Te, function(
|
|
93872
|
-
if (be <=
|
|
93873
|
-
var ct = Math.floor((
|
|
93889
|
+
return he(Te, Te, function(Le, Ye) {
|
|
93890
|
+
if (be <= Le && Le < ye && be <= Ye && Ye < ye) {
|
|
93891
|
+
var ct = Math.floor((Le - be) / Ie), ut = Math.floor((Ye - be) / Ie);
|
|
93874
93892
|
return Ge.isDark(ut, ct) ? 0 : 1;
|
|
93875
93893
|
} else
|
|
93876
93894
|
return 1;
|
|
@@ -93905,7 +93923,7 @@ var qrcode = { exports: {} };
|
|
|
93905
93923
|
}, He = function(Ie) {
|
|
93906
93924
|
var Re = 1;
|
|
93907
93925
|
Ie = typeof Ie > "u" ? Re * 2 : Ie;
|
|
93908
|
-
var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie,
|
|
93926
|
+
var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Le, Ye, ct, ut, wt, St = {
|
|
93909
93927
|
"██": "█",
|
|
93910
93928
|
"█ ": "▀",
|
|
93911
93929
|
" █": "▄",
|
|
@@ -93916,9 +93934,9 @@ var qrcode = { exports: {} };
|
|
|
93916
93934
|
" █": " ",
|
|
93917
93935
|
" ": " "
|
|
93918
93936
|
}, Ut = "";
|
|
93919
|
-
for (
|
|
93920
|
-
for (ct = Math.floor((
|
|
93921
|
-
wt = "█", be <= Ye && Ye < ye && be <=
|
|
93937
|
+
for (Le = 0; Le < Te; Le += 2) {
|
|
93938
|
+
for (ct = Math.floor((Le - be) / Re), ut = Math.floor((Le + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
|
|
93939
|
+
wt = "█", be <= Ye && Ye < ye && be <= Le && Le < ye && Ge.isDark(ct, Math.floor((Ye - be) / Re)) && (wt = " "), be <= Ye && Ye < ye && be <= Le + 1 && Le + 1 < ye && Ge.isDark(ut, Math.floor((Ye - be) / Re)) ? wt += " " : wt += "█", Ut += Ie < 1 && Le + 1 >= ye ? it[wt] : St[wt];
|
|
93922
93940
|
Ut += `
|
|
93923
93941
|
`;
|
|
93924
93942
|
}
|
|
@@ -93928,10 +93946,10 @@ var qrcode = { exports: {} };
|
|
|
93928
93946
|
if (Ie = Ie || 1, Ie < 2)
|
|
93929
93947
|
return He(Re);
|
|
93930
93948
|
Ie -= 1, Re = typeof Re > "u" ? Ie * 2 : Re;
|
|
93931
|
-
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re,
|
|
93932
|
-
for (
|
|
93933
|
-
for (ct = Math.floor((
|
|
93934
|
-
ut = 1, be <= Ye && Ye < ye && be <=
|
|
93949
|
+
var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re, Le, Ye, ct, ut, wt = Array(Ie + 1).join("██"), St = Array(Ie + 1).join(" "), it = "", Ut = "";
|
|
93950
|
+
for (Le = 0; Le < Te; Le += 1) {
|
|
93951
|
+
for (ct = Math.floor((Le - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
|
|
93952
|
+
ut = 1, be <= Ye && Ye < ye && be <= Le && Le < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
|
|
93935
93953
|
for (ct = 0; ct < Ie; ct += 1)
|
|
93936
93954
|
it += Ut + `
|
|
93937
93955
|
`;
|
|
@@ -96019,7 +96037,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
|
|
|
96019
96037
|
Space: re.context.space.unredeemedCode
|
|
96020
96038
|
}),
|
|
96021
96039
|
[re]
|
|
96022
|
-
), ue = useMulticastObservable(Q.spaces), he = useMemo(
|
|
96040
|
+
), ue = useMulticastObservable$1(Q.spaces), he = useMemo(
|
|
96023
96041
|
() => ({
|
|
96024
96042
|
Space: ue ? new Set(ue.map(({ key: Ce }) => Ce.toHex())) : void 0
|
|
96025
96043
|
}),
|
|
@@ -96597,11 +96615,11 @@ createContext({});
|
|
|
96597
96615
|
export {
|
|
96598
96616
|
Event$1 as E,
|
|
96599
96617
|
Trigger as T,
|
|
96600
|
-
|
|
96618
|
+
WebSocket3 as W,
|
|
96601
96619
|
logInfo as a,
|
|
96602
96620
|
createProtoRpcPeer as c,
|
|
96603
96621
|
export_Buffer as e,
|
|
96604
96622
|
log$2 as l,
|
|
96605
96623
|
runShell as r
|
|
96606
96624
|
};
|
|
96607
|
-
//# sourceMappingURL=index-
|
|
96625
|
+
//# sourceMappingURL=index-DACjPI-n.mjs.map
|