@matter/react-native 0.17.0-alpha.0-20260507-059f7763b → 0.17.0-alpha.0-20260508-29ff5ae9e
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/package.json +4 -4
- package/dist/cjs/ble/BleScanner.d.ts +0 -16
- package/dist/cjs/ble/BleScanner.d.ts.map +0 -1
- package/dist/cjs/ble/BleScanner.js +0 -38
- package/dist/cjs/ble/BleScanner.js.map +0 -6
- package/dist/cjs/ble/ReactNativeBle.d.ts +0 -16
- package/dist/cjs/ble/ReactNativeBle.d.ts.map +0 -1
- package/dist/cjs/ble/ReactNativeBle.js +0 -58
- package/dist/cjs/ble/ReactNativeBle.js.map +0 -6
- package/dist/cjs/ble/ReactNativeBleChannel.d.ts +0 -36
- package/dist/cjs/ble/ReactNativeBleChannel.d.ts.map +0 -1
- package/dist/cjs/ble/ReactNativeBleChannel.js +0 -329
- package/dist/cjs/ble/ReactNativeBleChannel.js.map +0 -6
- package/dist/cjs/ble/ReactNativeBleClient.d.ts +0 -30
- package/dist/cjs/ble/ReactNativeBleClient.d.ts.map +0 -1
- package/dist/cjs/ble/ReactNativeBleClient.js +0 -156
- package/dist/cjs/ble/ReactNativeBleClient.js.map +0 -6
- package/dist/cjs/ble/index.d.ts +0 -10
- package/dist/cjs/ble/index.d.ts.map +0 -1
- package/dist/cjs/ble/index.js +0 -27
- package/dist/cjs/ble/index.js.map +0 -6
- package/dist/cjs/crypto/ReactNativeCrypto.d.ts +0 -14
- package/dist/cjs/crypto/ReactNativeCrypto.d.ts.map +0 -1
- package/dist/cjs/crypto/ReactNativeCrypto.js +0 -57
- package/dist/cjs/crypto/ReactNativeCrypto.js.map +0 -6
- package/dist/cjs/crypto/index.d.ts +0 -7
- package/dist/cjs/crypto/index.d.ts.map +0 -1
- package/dist/cjs/crypto/index.js +0 -24
- package/dist/cjs/crypto/index.js.map +0 -6
- package/dist/cjs/environment/ReactNativeEnvironment.d.ts +0 -16
- package/dist/cjs/environment/ReactNativeEnvironment.d.ts.map +0 -1
- package/dist/cjs/environment/ReactNativeEnvironment.js +0 -64
- package/dist/cjs/environment/ReactNativeEnvironment.js.map +0 -6
- package/dist/cjs/environment/index.d.ts +0 -8
- package/dist/cjs/environment/index.d.ts.map +0 -1
- package/dist/cjs/environment/index.js +0 -25
- package/dist/cjs/environment/index.js.map +0 -6
- package/dist/cjs/environment/register.d.ts +0 -7
- package/dist/cjs/environment/register.d.ts.map +0 -1
- package/dist/cjs/environment/register.js +0 -14
- package/dist/cjs/environment/register.js.map +0 -6
- package/dist/cjs/index.d.ts +0 -11
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -28
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/net/NetworkReactNative.d.ts +0 -22
- package/dist/cjs/net/NetworkReactNative.d.ts.map +0 -1
- package/dist/cjs/net/NetworkReactNative.js +0 -179
- package/dist/cjs/net/NetworkReactNative.js.map +0 -6
- package/dist/cjs/net/TcpConnectionReactNative.d.ts +0 -26
- package/dist/cjs/net/TcpConnectionReactNative.d.ts.map +0 -1
- package/dist/cjs/net/TcpConnectionReactNative.js +0 -148
- package/dist/cjs/net/TcpConnectionReactNative.js.map +0 -6
- package/dist/cjs/net/TcpListenerReactNative.d.ts +0 -19
- package/dist/cjs/net/TcpListenerReactNative.d.ts.map +0 -1
- package/dist/cjs/net/TcpListenerReactNative.js +0 -102
- package/dist/cjs/net/TcpListenerReactNative.js.map +0 -6
- package/dist/cjs/net/UdpSocketReactNative.d.ts +0 -40
- package/dist/cjs/net/UdpSocketReactNative.d.ts.map +0 -1
- package/dist/cjs/net/UdpSocketReactNative.js +0 -194
- package/dist/cjs/net/UdpSocketReactNative.js.map +0 -6
- package/dist/cjs/net/index.d.ts +0 -10
- package/dist/cjs/net/index.d.ts.map +0 -1
- package/dist/cjs/net/index.js +0 -39
- package/dist/cjs/net/index.js.map +0 -6
- package/dist/cjs/net/react-native-tcp-socket.d.js +0 -2
- package/dist/cjs/net/react-native-tcp-socket.d.js.map +0 -6
- package/dist/cjs/net/react-native-tcp-socket.d.ts +0 -71
- package/dist/cjs/package.json +0 -6
- package/dist/cjs/storage/ReactNativeWebStorageDriver.d.ts +0 -23
- package/dist/cjs/storage/ReactNativeWebStorageDriver.d.ts.map +0 -1
- package/dist/cjs/storage/ReactNativeWebStorageDriver.js +0 -42
- package/dist/cjs/storage/ReactNativeWebStorageDriver.js.map +0 -6
- package/dist/cjs/storage/ReactNativeWebStorageDriverV2.d.ts +0 -22
- package/dist/cjs/storage/ReactNativeWebStorageDriverV2.d.ts.map +0 -1
- package/dist/cjs/storage/ReactNativeWebStorageDriverV2.js +0 -108
- package/dist/cjs/storage/ReactNativeWebStorageDriverV2.js.map +0 -6
- package/dist/cjs/storage/index.d.ts +0 -18
- package/dist/cjs/storage/index.d.ts.map +0 -1
- package/dist/cjs/storage/index.js +0 -37
- package/dist/cjs/storage/index.js.map +0 -6
- package/dist/esm/ble/BleScanner.js +0 -18
- package/dist/esm/ble/BleScanner.js.map +0 -6
- package/dist/esm/ble/ReactNativeBle.js +0 -38
- package/dist/esm/ble/ReactNativeBle.js.map +0 -6
- package/dist/esm/ble/ReactNativeBleChannel.js +0 -321
- package/dist/esm/ble/ReactNativeBleChannel.js.map +0 -6
- package/dist/esm/ble/ReactNativeBleClient.js +0 -136
- package/dist/esm/ble/ReactNativeBleClient.js.map +0 -6
- package/dist/esm/ble/index.js +0 -10
- package/dist/esm/ble/index.js.map +0 -6
- package/dist/esm/crypto/ReactNativeCrypto.js +0 -27
- package/dist/esm/crypto/ReactNativeCrypto.js.map +0 -6
- package/dist/esm/crypto/index.js +0 -7
- package/dist/esm/crypto/index.js.map +0 -6
- package/dist/esm/environment/ReactNativeEnvironment.js +0 -44
- package/dist/esm/environment/ReactNativeEnvironment.js.map +0 -6
- package/dist/esm/environment/index.js +0 -8
- package/dist/esm/environment/index.js.map +0 -6
- package/dist/esm/environment/register.js +0 -13
- package/dist/esm/environment/register.js.map +0 -6
- package/dist/esm/index.js +0 -11
- package/dist/esm/index.js.map +0 -6
- package/dist/esm/net/NetworkReactNative.js +0 -158
- package/dist/esm/net/NetworkReactNative.js.map +0 -6
- package/dist/esm/net/TcpConnectionReactNative.js +0 -135
- package/dist/esm/net/TcpConnectionReactNative.js.map +0 -6
- package/dist/esm/net/TcpListenerReactNative.js +0 -88
- package/dist/esm/net/TcpListenerReactNative.js.map +0 -6
- package/dist/esm/net/UdpSocketReactNative.js +0 -174
- package/dist/esm/net/UdpSocketReactNative.js.map +0 -6
- package/dist/esm/net/index.js +0 -18
- package/dist/esm/net/index.js.map +0 -6
- package/dist/esm/net/react-native-tcp-socket.d.js +0 -1
- package/dist/esm/net/react-native-tcp-socket.d.js.map +0 -6
- package/dist/esm/net/react-native-tcp-socket.d.ts +0 -71
- package/dist/esm/package.json +0 -6
- package/dist/esm/storage/ReactNativeWebStorageDriver.js +0 -22
- package/dist/esm/storage/ReactNativeWebStorageDriver.js.map +0 -6
- package/dist/esm/storage/ReactNativeWebStorageDriverV2.js +0 -78
- package/dist/esm/storage/ReactNativeWebStorageDriverV2.js.map +0 -6
- package/dist/esm/storage/index.js +0 -16
- package/dist/esm/storage/index.js.map +0 -6
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var ReactNativeBleClient_exports = {};
|
|
20
|
-
__export(ReactNativeBleClient_exports, {
|
|
21
|
-
BluetoothUnauthorizedError: () => BluetoothUnauthorizedError,
|
|
22
|
-
BluetoothUnsupportedError: () => BluetoothUnsupportedError,
|
|
23
|
-
ReactNativeBleClient: () => ReactNativeBleClient
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(ReactNativeBleClient_exports);
|
|
26
|
-
var import_general = require("@matter/general");
|
|
27
|
-
var import_protocol = require("@matter/protocol");
|
|
28
|
-
var import_react_native_ble_plx = require("react-native-ble-plx");
|
|
29
|
-
/**
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
32
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
33
|
-
*/
|
|
34
|
-
const logger = import_general.Logger.get("ReactNativeBleClient");
|
|
35
|
-
class BluetoothUnauthorizedError extends import_general.MatterError {
|
|
36
|
-
}
|
|
37
|
-
class BluetoothUnsupportedError extends import_general.MatterError {
|
|
38
|
-
}
|
|
39
|
-
class ReactNativeBleClient {
|
|
40
|
-
bleManager = new import_react_native_ble_plx.BleManager();
|
|
41
|
-
discoveredPeripherals = /* @__PURE__ */ new Map();
|
|
42
|
-
shouldScan = false;
|
|
43
|
-
isScanning = false;
|
|
44
|
-
bleState = import_react_native_ble_plx.State.Unknown;
|
|
45
|
-
deviceDiscoveredCallback;
|
|
46
|
-
constructor() {
|
|
47
|
-
const subscription = this.bleManager.onStateChange((state) => {
|
|
48
|
-
this.bleState = state;
|
|
49
|
-
logger.debug(`BLE state changed to ${state}`);
|
|
50
|
-
switch (state) {
|
|
51
|
-
case import_react_native_ble_plx.State.PoweredOff:
|
|
52
|
-
this.bleManager.enable().catch((error) => {
|
|
53
|
-
subscription.remove();
|
|
54
|
-
if (error instanceof import_react_native_ble_plx.BleError && error.errorCode === import_react_native_ble_plx.BleErrorCode.BluetoothUnauthorized) {
|
|
55
|
-
throw new BluetoothUnauthorizedError("Bluetooth is unauthorized");
|
|
56
|
-
}
|
|
57
|
-
throw error;
|
|
58
|
-
});
|
|
59
|
-
break;
|
|
60
|
-
case import_react_native_ble_plx.State.PoweredOn:
|
|
61
|
-
subscription.remove();
|
|
62
|
-
if (this.shouldScan) {
|
|
63
|
-
void this.startScanning();
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
case import_react_native_ble_plx.State.Unauthorized:
|
|
67
|
-
subscription.remove();
|
|
68
|
-
throw new BluetoothUnauthorizedError("Bluetooth is unauthorized");
|
|
69
|
-
case import_react_native_ble_plx.State.Unsupported:
|
|
70
|
-
subscription.remove();
|
|
71
|
-
throw new BluetoothUnsupportedError("Bluetooth is unsupported");
|
|
72
|
-
default:
|
|
73
|
-
logger.error("Unexpected BLE state", state);
|
|
74
|
-
subscription.remove();
|
|
75
|
-
void this.stopScanning();
|
|
76
|
-
}
|
|
77
|
-
}, true);
|
|
78
|
-
}
|
|
79
|
-
setDiscoveryCallback(callback) {
|
|
80
|
-
this.deviceDiscoveredCallback = callback;
|
|
81
|
-
for (const { peripheral, matterServiceData } of this.discoveredPeripherals.values()) {
|
|
82
|
-
this.deviceDiscoveredCallback(this.#asBlePeripheral(peripheral), matterServiceData);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
async startScanning() {
|
|
86
|
-
if (this.isScanning) return;
|
|
87
|
-
this.shouldScan = true;
|
|
88
|
-
if (this.bleState === import_react_native_ble_plx.State.PoweredOn) {
|
|
89
|
-
logger.debug("Start BLE scanning for Matter Services ...");
|
|
90
|
-
this.isScanning = true;
|
|
91
|
-
await this.bleManager.startDeviceScan(
|
|
92
|
-
null,
|
|
93
|
-
{
|
|
94
|
-
allowDuplicates: false,
|
|
95
|
-
scanMode: 2,
|
|
96
|
-
// Low Latency
|
|
97
|
-
callbackType: 1
|
|
98
|
-
// All matches
|
|
99
|
-
},
|
|
100
|
-
(error, peripheral) => {
|
|
101
|
-
if (error !== null || peripheral === null) {
|
|
102
|
-
this.isScanning = false;
|
|
103
|
-
logger.error("Error while scanning for BLE devices", error);
|
|
104
|
-
if (this.shouldScan) {
|
|
105
|
-
this.startScanning().catch(
|
|
106
|
-
(error2) => logger.error("Error while restarting scanning after error", error2)
|
|
107
|
-
);
|
|
108
|
-
} else {
|
|
109
|
-
this.stopScanning().catch(
|
|
110
|
-
(error2) => logger.error("Error while stopping scanning after error", error2)
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
this.handleDiscoveredDevice(peripheral);
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
} else {
|
|
119
|
-
logger.debug("ble state is not poweredOn ... delay scanning till poweredOn");
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
async stopScanning() {
|
|
123
|
-
this.shouldScan = false;
|
|
124
|
-
logger.debug("Stop BLE scanning for Matter Services ...");
|
|
125
|
-
await this.bleManager.stopDeviceScan();
|
|
126
|
-
this.isScanning = false;
|
|
127
|
-
}
|
|
128
|
-
handleDiscoveredDevice(peripheral) {
|
|
129
|
-
logger.debug(
|
|
130
|
-
`Found peripheral ${peripheral.id} (${peripheral.localName}) with serviceData ${import_general.Diagnostic.json(peripheral.serviceData)}`
|
|
131
|
-
);
|
|
132
|
-
if (!peripheral.isConnectable) {
|
|
133
|
-
logger.debug(`Peripheral ${peripheral.id} is not connectable ... ignoring`);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
const matterServiceDataBase64 = peripheral.serviceData?.[import_protocol.MatterBle.SERVICE_UUID] ?? peripheral.serviceData?.[import_protocol.MatterBle.SERVICE_UUID_SHORT];
|
|
137
|
-
if (matterServiceDataBase64 === void 0) {
|
|
138
|
-
logger.info(`Peripheral ${peripheral.id} does not advertise Matter Service ... ignoring`);
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
const matterServiceData = import_general.Bytes.fromBase64(matterServiceDataBase64);
|
|
142
|
-
if (matterServiceData.byteLength !== 8) {
|
|
143
|
-
logger.info(`Peripheral ${peripheral.id} does not advertise Matter Service ... ignoring`);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
this.discoveredPeripherals.set(peripheral.id, {
|
|
147
|
-
peripheral,
|
|
148
|
-
matterServiceData
|
|
149
|
-
});
|
|
150
|
-
this.deviceDiscoveredCallback?.(this.#asBlePeripheral(peripheral), matterServiceData);
|
|
151
|
-
}
|
|
152
|
-
#asBlePeripheral(device) {
|
|
153
|
-
return { device, address: device.id };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
//# sourceMappingURL=ReactNativeBleClient.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ble/ReactNativeBleClient.ts"],
|
|
4
|
-
"mappings": "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",
|
|
5
|
-
"names": ["BluetoothState", "error"]
|
|
6
|
-
}
|
package/dist/cjs/ble/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export * from "./BleScanner.js";
|
|
7
|
-
export * from "./ReactNativeBle.js";
|
|
8
|
-
export * from "./ReactNativeBleChannel.js";
|
|
9
|
-
export * from "./ReactNativeBleClient.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ble/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC"}
|
package/dist/cjs/ble/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var ble_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(ble_exports);
|
|
18
|
-
__reExport(ble_exports, require("./BleScanner.js"), module.exports);
|
|
19
|
-
__reExport(ble_exports, require("./ReactNativeBle.js"), module.exports);
|
|
20
|
-
__reExport(ble_exports, require("./ReactNativeBleChannel.js"), module.exports);
|
|
21
|
-
__reExport(ble_exports, require("./ReactNativeBleClient.js"), module.exports);
|
|
22
|
-
/**
|
|
23
|
-
* @license
|
|
24
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
25
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
26
|
-
*/
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { StandardCrypto } from "@matter/general";
|
|
7
|
-
/**
|
|
8
|
-
* Crypto implementation for React Native using WebCrypto via QuickCrypto.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ReactNativeCrypto extends StandardCrypto {
|
|
11
|
-
implementationName: string;
|
|
12
|
-
static provider(): ReactNativeCrypto;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=ReactNativeCrypto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeCrypto.d.ts","sourceRoot":"","sources":["../../../src/crypto/ReactNativeCrypto.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAgC,cAAc,EAAa,MAAM,iBAAiB,CAAC;AAa1F;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;IACxC,kBAAkB,SAAuB;IAElD,OAAgB,QAAQ,sBAEvB;CACJ"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var ReactNativeCrypto_exports = {};
|
|
30
|
-
__export(ReactNativeCrypto_exports, {
|
|
31
|
-
ReactNativeCrypto: () => ReactNativeCrypto
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(ReactNativeCrypto_exports);
|
|
34
|
-
var import_react_native_buffer = require("@craftzdog/react-native-buffer");
|
|
35
|
-
var import_general = require("@matter/general");
|
|
36
|
-
var import_react_native_quick_crypto = __toESM(require("react-native-quick-crypto"), 1);
|
|
37
|
-
/**
|
|
38
|
-
* @license
|
|
39
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
40
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
41
|
-
*/
|
|
42
|
-
const crypto = import_react_native_quick_crypto.default;
|
|
43
|
-
if (!("Buffer" in globalThis)) {
|
|
44
|
-
globalThis.Buffer = import_react_native_buffer.Buffer;
|
|
45
|
-
}
|
|
46
|
-
class ReactNativeCrypto extends import_general.StandardCrypto {
|
|
47
|
-
implementationName = "ReactNativeCrypto";
|
|
48
|
-
static provider() {
|
|
49
|
-
return new ReactNativeCrypto(crypto);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
{
|
|
53
|
-
const rnCrypto = new ReactNativeCrypto(crypto);
|
|
54
|
-
import_general.Environment.default.set(import_general.Entropy, rnCrypto);
|
|
55
|
-
import_general.Environment.default.set(import_general.Crypto, rnCrypto);
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=ReactNativeCrypto.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/crypto/ReactNativeCrypto.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,iCAAuB;AACvB,qBAAwE;AACxE,uCAAwB;AARxB;AAAA;AAAA;AAAA;AAAA;AAYA,MAAM,SAAS,iCAAAA;AAIf,IAAI,EAAE,YAAY,aAAa;AAC3B,EAAC,WAAoD,SAAS;AAClE;AAKO,MAAM,0BAA0B,8BAAe;AAAA,EACzC,qBAAqB;AAAA,EAE9B,OAAgB,WAAW;AACvB,WAAO,IAAI,kBAAkB,MAA8B;AAAA,EAC/D;AACJ;AAEA;AACI,QAAM,WAAW,IAAI,kBAAkB,MAA8B;AACrE,6BAAY,QAAQ,IAAI,wBAAS,QAAQ;AACzC,6BAAY,QAAQ,IAAI,uBAAQ,QAAQ;AAC5C;",
|
|
5
|
-
"names": ["QuickCrypto"]
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crypto/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wBAAwB,CAAC"}
|
package/dist/cjs/crypto/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var crypto_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(crypto_exports);
|
|
18
|
-
__reExport(crypto_exports, require("./ReactNativeCrypto.js"), module.exports);
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
22
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
23
|
-
*/
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Environment, VariableService } from "@matter/general";
|
|
7
|
-
/**
|
|
8
|
-
* This is the default environment implementation for React-native:
|
|
9
|
-
*
|
|
10
|
-
* - Uses AsyncStorage for storage
|
|
11
|
-
*/
|
|
12
|
-
export declare function ReactNativeEnvironment(): Environment;
|
|
13
|
-
export declare function getDefaults(vars: VariableService): {
|
|
14
|
-
environment: "default";
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ReactNativeEnvironment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeEnvironment.d.ts","sourceRoot":"","sources":["../../../src/environment/ReactNativeEnvironment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAA2B,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKxF;;;;GAIG;AACH,wBAAgB,sBAAsB,gBASrC;AAuBD,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe;IAIzC,WAAW;EAElB"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var ReactNativeEnvironment_exports = {};
|
|
20
|
-
__export(ReactNativeEnvironment_exports, {
|
|
21
|
-
ReactNativeEnvironment: () => ReactNativeEnvironment,
|
|
22
|
-
getDefaults: () => getDefaults
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(ReactNativeEnvironment_exports);
|
|
25
|
-
var import_ReactNativeBle = require("#ble/ReactNativeBle.js");
|
|
26
|
-
var import_general = require("@matter/general");
|
|
27
|
-
var import_protocol = require("@matter/protocol");
|
|
28
|
-
var import_NetworkReactNative = require("../net/NetworkReactNative.js");
|
|
29
|
-
var import_ReactNativeWebStorageDriver = require("../storage/ReactNativeWebStorageDriver.js");
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
33
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
34
|
-
*/
|
|
35
|
-
function ReactNativeEnvironment() {
|
|
36
|
-
const env = new import_general.Environment("default");
|
|
37
|
-
loadVariables(env);
|
|
38
|
-
configureStorage(env);
|
|
39
|
-
configureNetwork(env);
|
|
40
|
-
configureBle(env);
|
|
41
|
-
return env;
|
|
42
|
-
}
|
|
43
|
-
function loadVariables(env) {
|
|
44
|
-
const vars = env.vars;
|
|
45
|
-
vars.addConfigStyle(getDefaults(vars));
|
|
46
|
-
}
|
|
47
|
-
function configureStorage(env) {
|
|
48
|
-
const service = env.get(import_general.StorageService);
|
|
49
|
-
service.registerDriver(import_ReactNativeWebStorageDriver.ReactNativeWebStorageDriver);
|
|
50
|
-
service.defaultDriver = "async-storage";
|
|
51
|
-
}
|
|
52
|
-
function configureNetwork(env) {
|
|
53
|
-
env.set(import_general.Network, new import_NetworkReactNative.NetworkReactNative());
|
|
54
|
-
}
|
|
55
|
-
function configureBle(env) {
|
|
56
|
-
env.set(import_protocol.Ble, new import_ReactNativeBle.ReactNativeBle());
|
|
57
|
-
}
|
|
58
|
-
function getDefaults(vars) {
|
|
59
|
-
const envName = vars.get("environment", "default");
|
|
60
|
-
return {
|
|
61
|
-
environment: envName
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=ReactNativeEnvironment.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/environment/ReactNativeEnvironment.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,4BAA+B;AAC/B,qBAAsE;AACtE,sBAAoB;AACpB,gCAAmC;AACnC,yCAA4C;AAV5C;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,yBAAyB;AACrC,QAAM,MAAM,IAAI,2BAAY,SAAS;AAErC,gBAAc,GAAG;AACjB,mBAAiB,GAAG;AACpB,mBAAiB,GAAG;AACpB,eAAa,GAAG;AAEhB,SAAO;AACX;AAEA,SAAS,cAAc,KAAkB;AACrC,QAAM,OAAO,IAAI;AAGjB,OAAK,eAAe,YAAY,IAAI,CAAC;AACzC;AAEA,SAAS,iBAAiB,KAAkB;AACxC,QAAM,UAAU,IAAI,IAAI,6BAAc;AACtC,UAAQ,eAAe,8DAA2B;AAClD,UAAQ,gBAAgB;AAC5B;AAEA,SAAS,iBAAiB,KAAkB;AACxC,MAAI,IAAI,wBAAS,IAAI,6CAAmB,CAAC;AAC7C;AAEA,SAAS,aAAa,KAAkB;AACpC,MAAI,IAAI,qBAAK,IAAI,qCAAe,CAAC;AACrC;AAEO,SAAS,YAAY,MAAuB;AAC/C,QAAM,UAAU,KAAK,IAAI,eAAe,SAAS;AAEjD,SAAO;AAAA,IACH,aAAa;AAAA,EACjB;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/environment/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,eAAe,CAAC;AAEvB,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var environment_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(environment_exports);
|
|
18
|
-
var import_register = require("./register.js");
|
|
19
|
-
__reExport(environment_exports, require("./ReactNativeEnvironment.js"), module.exports);
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
23
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
24
|
-
*/
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/environment/register.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var import_general = require("@matter/general");
|
|
3
|
-
var import_ReactNativeEnvironment = require("./ReactNativeEnvironment.js");
|
|
4
|
-
var import_encoding = require("react-native-polyfill-globals/src/encoding");
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
8
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
*/
|
|
10
|
-
(0, import_encoding.polyfill)();
|
|
11
|
-
import_general.Boot.init(() => {
|
|
12
|
-
import_general.Environment.default = (0, import_ReactNativeEnvironment.ReactNativeEnvironment)();
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=register.js.map
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export * from "./ble/index.js";
|
|
7
|
-
export * from "./crypto/index.js";
|
|
8
|
-
export * from "./environment/index.js";
|
|
9
|
-
export * from "./net/index.js";
|
|
10
|
-
export * from "./storage/index.js";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./ble/index.js"), module.exports);
|
|
19
|
-
__reExport(src_exports, require("./crypto/index.js"), module.exports);
|
|
20
|
-
__reExport(src_exports, require("./environment/index.js"), module.exports);
|
|
21
|
-
__reExport(src_exports, require("./net/index.js"), module.exports);
|
|
22
|
-
__reExport(src_exports, require("./storage/index.js"), module.exports);
|
|
23
|
-
/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2022-2026 Matter.js Authors
|
|
26
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
27
|
-
*/
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Network, NetworkInterface, NetworkInterfaceDetails, TcpConnection, TcpListener, TcpListenerOptions, UdpSocket, UdpSocketOptions } from "@matter/general";
|
|
2
|
-
export declare class NetworkReactNative extends Network {
|
|
3
|
-
static getMulticastInterfaceIpv4(netInterface: string): Promise<string | undefined>;
|
|
4
|
-
static getMembershipMulticastInterfaces(netInterface: string | undefined, ipv4: boolean): Promise<(string | undefined)[]>;
|
|
5
|
-
static getNetInterfaceForIp(ip: string): Promise<string | undefined>;
|
|
6
|
-
private static readonly netInterfaces;
|
|
7
|
-
close(): Promise<void>;
|
|
8
|
-
private static getNetInterfaceForRemoteAddress;
|
|
9
|
-
/**
|
|
10
|
-
* Get all network interfaces.
|
|
11
|
-
* The optional configuration parameter allows to map interface names to types if this mapping is known.
|
|
12
|
-
* Each network interface which has no mapped type is returned as Ethernet for now.
|
|
13
|
-
*
|
|
14
|
-
* @param configuration - An array of objects with the name and type properties.
|
|
15
|
-
*/
|
|
16
|
-
getNetInterfaces(configuration?: NetworkInterface[]): Promise<NetworkInterface[]>;
|
|
17
|
-
getIpMac(netInterface: string): Promise<NetworkInterfaceDetails | undefined>;
|
|
18
|
-
createUdpSocket(options: UdpSocketOptions): Promise<UdpSocket>;
|
|
19
|
-
createTcpListener(options: TcpListenerOptions): Promise<TcpListener>;
|
|
20
|
-
connectTcp(host: string, port: number): Promise<TcpConnection>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=NetworkReactNative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkReactNative.d.ts","sourceRoot":"","sources":["../../../src/net/NetworkReactNative.ts"],"names":[],"mappings":"AAqBA,OAAO,EAMH,OAAO,EAEP,gBAAgB,EAChB,uBAAuB,EAEvB,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EACnB,MAAM,iBAAiB,CAAC;AAoCzB,qBAAa,kBAAmB,SAAQ,OAAO;IAC3C,OAAa,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CASxF;IAED,OAAa,gCAAgC,CACzC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,IAAI,EAAE,OAAO,GACd,OAAO,CAAC,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC,CAsBjC;IAED,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,MAAM,+BAIrC;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAInC;IAEa,KAAK,kBAEnB;mBAEoB,+BAA+B;IAwBpD;;;;;;OAMG;IACG,gBAAgB,CAAC,aAAa,GAAE,gBAAgB,EAAO,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAiB1F;IAEK,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAMjF;IAEQ,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAEtE;IAEc,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAElF;IAEc,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAE5E;CACJ"}
|