@fishjam-cloud/react-client 0.10.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +201 -0
- package/dist/FishjamProvider.d.ts +42 -0
- package/dist/FishjamProvider.d.ts.map +1 -0
- package/dist/{fishjamProvider.js → FishjamProvider.js} +16 -15
- package/dist/devices/DeviceManager.d.ts +2 -2
- package/dist/devices/DeviceManager.d.ts.map +1 -1
- package/dist/devices/DeviceManager.js +5 -5
- package/dist/devices/mediaInitializer.d.ts +1 -1
- package/dist/devices/mediaInitializer.d.ts.map +1 -1
- package/dist/devices/mediaInitializer.js +1 -1
- package/dist/hooks/devices/useCamera.d.ts +39 -3
- package/dist/hooks/devices/useCamera.d.ts.map +1 -1
- package/dist/hooks/devices/useCamera.js +41 -3
- package/dist/hooks/devices/useInitializeDevices.d.ts +9 -2
- package/dist/hooks/devices/useInitializeDevices.d.ts.map +1 -1
- package/dist/hooks/devices/useInitializeDevices.js +12 -7
- package/dist/hooks/devices/useMicrophone.d.ts +40 -3
- package/dist/hooks/devices/useMicrophone.d.ts.map +1 -1
- package/dist/hooks/devices/useMicrophone.js +42 -3
- package/dist/hooks/internal/device/useDeviceApi.d.ts +2 -4
- package/dist/hooks/internal/device/useDeviceApi.d.ts.map +1 -1
- package/dist/hooks/internal/device/useDeviceApi.js +16 -22
- package/dist/hooks/internal/device/useDeviceManager.d.ts +1 -1
- package/dist/hooks/internal/device/useDeviceManager.d.ts.map +1 -1
- package/dist/hooks/internal/device/useDeviceManager.js +2 -2
- package/dist/hooks/internal/useFishjamClientState.d.ts +5 -4
- package/dist/hooks/internal/useFishjamClientState.d.ts.map +1 -1
- package/dist/hooks/internal/useFishjamClientState.js +2 -2
- package/dist/hooks/internal/useFishjamClient_DO_NOT_USE.d.ts.map +1 -1
- package/dist/hooks/internal/useFishjamClient_DO_NOT_USE.js +1 -1
- package/dist/hooks/internal/useFishjamContext.d.ts +4 -3
- package/dist/hooks/internal/useFishjamContext.d.ts.map +1 -1
- package/dist/hooks/internal/usePeerStatus.d.ts.map +1 -1
- package/dist/hooks/internal/usePeerStatus.js +2 -0
- package/dist/hooks/internal/useReconnection.d.ts.map +1 -1
- package/dist/hooks/internal/useScreenshareManager.d.ts +46 -0
- package/dist/hooks/internal/useScreenshareManager.d.ts.map +1 -0
- package/dist/hooks/internal/useScreenshareManager.js +114 -0
- package/dist/hooks/internal/useTrackManager.d.ts +3 -3
- package/dist/hooks/internal/useTrackManager.d.ts.map +1 -1
- package/dist/hooks/internal/useTrackManager.js +13 -36
- package/dist/hooks/useConnection.d.ts +20 -7
- package/dist/hooks/useConnection.d.ts.map +1 -1
- package/dist/hooks/useConnection.js +20 -2
- package/dist/hooks/usePeers.d.ts +26 -17
- package/dist/hooks/usePeers.d.ts.map +1 -1
- package/dist/hooks/usePeers.js +22 -6
- package/dist/hooks/useScreenShare.d.ts +40 -11
- package/dist/hooks/useScreenShare.d.ts.map +1 -1
- package/dist/hooks/useScreenShare.js +37 -122
- package/dist/hooks/useUpdatePeerMetadata.d.ts +9 -0
- package/dist/hooks/useUpdatePeerMetadata.d.ts.map +1 -1
- package/dist/hooks/useUpdatePeerMetadata.js +12 -1
- package/dist/hooks/useVAD.d.ts +21 -2
- package/dist/hooks/useVAD.d.ts.map +1 -1
- package/dist/hooks/useVAD.js +22 -5
- package/dist/index.d.ts +6 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/types/internal.d.ts +6 -33
- package/dist/types/internal.d.ts.map +1 -1
- package/dist/types/public.d.ts +33 -31
- package/dist/types/public.d.ts.map +1 -1
- package/dist/utils/bandwidth.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +1 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/localStorage.d.ts +1 -1
- package/dist/utils/localStorage.d.ts.map +1 -1
- package/dist/utils/track.d.ts.map +1 -1
- package/dist/utils/track.js +0 -1
- package/package.json +11 -11
- package/readme.md +8 -8
- package/dist/fishjamProvider.d.ts +0 -17
- package/dist/fishjamProvider.d.ts.map +0 -1
package/dist/types/public.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { SimulcastConfig, TrackMetadata,
|
|
2
|
-
import type {
|
|
1
|
+
import type { SimulcastConfig, TrackMetadata, Variant } from "@fishjam-cloud/ts-client";
|
|
2
|
+
import type { DeviceManagerStatus } from "./internal";
|
|
3
|
+
export type TrackId = Brand<string, "TrackId">;
|
|
4
|
+
export type PeerId = Brand<string, "PeerId">;
|
|
3
5
|
export type Track = {
|
|
4
6
|
stream: MediaStream | null;
|
|
5
7
|
encoding: Variant | null;
|
|
6
8
|
trackId: TrackId;
|
|
7
9
|
metadata?: TrackMetadata;
|
|
8
10
|
simulcastConfig: SimulcastConfig | null;
|
|
9
|
-
vadStatus: VadStatus;
|
|
10
11
|
track: MediaStreamTrack | null;
|
|
11
12
|
};
|
|
12
13
|
export type TrackMiddleware = ((track: MediaStreamTrack) => {
|
|
@@ -21,49 +22,36 @@ export type TracksMiddleware = (videoTrack: MediaStreamTrack, audioTrack: MediaS
|
|
|
21
22
|
/**
|
|
22
23
|
* Represents the possible statuses of a peer connection.
|
|
23
24
|
*
|
|
24
|
-
* idle - Peer is not connected, either never connected or successfully disconnected.
|
|
25
|
-
* connecting - Peer is in the process of connecting.
|
|
26
|
-
* connected - Peer has successfully connected.
|
|
27
|
-
* error - There was an error in the connection process.
|
|
25
|
+
* - `idle` - Peer is not connected, either never connected or successfully disconnected.
|
|
26
|
+
* - `connecting` - Peer is in the process of connecting.
|
|
27
|
+
* - `connected` - Peer has successfully connected.
|
|
28
|
+
* - `error` - There was an error in the connection process.
|
|
28
29
|
*/
|
|
29
30
|
export type PeerStatus = "connecting" | "connected" | "error" | "idle";
|
|
31
|
+
export type DeviceItem = {
|
|
32
|
+
deviceId: string;
|
|
33
|
+
label: string;
|
|
34
|
+
};
|
|
30
35
|
export type Device = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
devices: MediaDeviceInfo[];
|
|
37
|
-
activeDevice: MediaDeviceInfo | null;
|
|
36
|
+
deviceStatus: DeviceManagerStatus;
|
|
37
|
+
mediaStream: MediaStream | null;
|
|
38
|
+
mediaStreamTrack: MediaStreamTrack | null;
|
|
39
|
+
devices: DeviceItem[];
|
|
40
|
+
activeDevice: DeviceItem | null;
|
|
38
41
|
currentMiddleware: TrackMiddleware;
|
|
39
42
|
deviceError: DeviceError | null;
|
|
40
43
|
isMuted: boolean;
|
|
41
|
-
|
|
42
|
-
} & Omit<TrackManager, "currentTrack">;
|
|
44
|
+
};
|
|
43
45
|
export type PersistLastDeviceHandlers = {
|
|
44
46
|
getLastDevice: () => MediaDeviceInfo | null;
|
|
45
47
|
saveLastDevice: (info: MediaDeviceInfo) => void;
|
|
46
48
|
};
|
|
47
|
-
export type ScreenshareApi = {
|
|
48
|
-
startStreaming: (props?: {
|
|
49
|
-
audioConstraints?: boolean | MediaTrackConstraints;
|
|
50
|
-
videoConstraints?: boolean | MediaTrackConstraints;
|
|
51
|
-
}) => Promise<void>;
|
|
52
|
-
stopStreaming: () => Promise<void>;
|
|
53
|
-
stream: MediaStream | null;
|
|
54
|
-
videoTrack: MediaStreamTrack | null;
|
|
55
|
-
audioTrack: MediaStreamTrack | null;
|
|
56
|
-
videoBroadcast: Track | null;
|
|
57
|
-
audioBroadcast: Track | null;
|
|
58
|
-
setTracksMiddleware: (middleware: TracksMiddleware | null) => Promise<void>;
|
|
59
|
-
currentTracksMiddleware: TracksMiddleware | null;
|
|
60
|
-
};
|
|
61
49
|
export type SimulcastBandwidthLimits = {
|
|
62
50
|
[Variant.VARIANT_LOW]: number;
|
|
63
51
|
[Variant.VARIANT_MEDIUM]: number;
|
|
64
52
|
[Variant.VARIANT_HIGH]: number;
|
|
65
53
|
};
|
|
66
|
-
export type
|
|
54
|
+
export type StreamConfig = {
|
|
67
55
|
simulcast?: Variant[] | false;
|
|
68
56
|
};
|
|
69
57
|
export type BandwidthLimits = {
|
|
@@ -71,4 +59,18 @@ export type BandwidthLimits = {
|
|
|
71
59
|
simulcast: SimulcastBandwidthLimits;
|
|
72
60
|
};
|
|
73
61
|
export type DeviceType = "audio" | "video";
|
|
62
|
+
export type DeviceError = {
|
|
63
|
+
name: "OverconstrainedError";
|
|
64
|
+
} | {
|
|
65
|
+
name: "NotAllowedError";
|
|
66
|
+
} | {
|
|
67
|
+
name: "NotFoundError";
|
|
68
|
+
} | {
|
|
69
|
+
name: "UNHANDLED_ERROR";
|
|
70
|
+
};
|
|
71
|
+
declare const brand: unique symbol;
|
|
72
|
+
export type Brand<T, TBrand extends string> = T & {
|
|
73
|
+
[brand]: TBrand;
|
|
74
|
+
};
|
|
75
|
+
export {};
|
|
74
76
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/types/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/types/public.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bandwidth.d.ts","sourceRoot":"","sources":["../../src/utils/bandwidth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"bandwidth.d.ts","sourceRoot":"","sources":["../../src/utils/bandwidth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,sBAAsB,8EAA+E,CAAC;AAEnH,eAAO,MAAM,gCAAgC,YAAa,OAAO,CAAC,eAAe,CAAC,KAAG,eAGnF,CAAC"}
|
package/dist/utils/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeviceError } from "../types/
|
|
1
|
+
import type { DeviceError } from "../types/public";
|
|
2
2
|
export declare const PERMISSION_DENIED: DeviceError;
|
|
3
3
|
export declare const OVERCONSTRAINED_ERROR: DeviceError;
|
|
4
4
|
export declare const NOT_FOUND_ERROR: DeviceError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,EAAE,WAAyC,CAAC;AAC1E,eAAO,MAAM,qBAAqB,EAAE,WAA8C,CAAC;AACnF,eAAO,MAAM,eAAe,EAAE,WAAuC,CAAC;AACtE,eAAO,MAAM,eAAe,EAAE,WAAyC,CAAC;AAIxE,eAAO,MAAM,mBAAmB,UAAW,OAAO,KAAG,WAAW,GAAG,IAelE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeviceType, PersistLastDeviceHandlers } from "../types/public";
|
|
2
2
|
export declare function createStorageConfig(deviceType: DeviceType, storage?: boolean | PersistLastDeviceHandlers): PersistLastDeviceHandlers | null;
|
|
3
3
|
//# sourceMappingURL=localStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../../src/utils/localStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../../src/utils/localStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,OAAO,GAAG,yBAAyB,GAC5C,yBAAyB,GAAG,IAAI,CAIlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"track.d.ts","sourceRoot":"","sources":["../../src/utils/track.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAA+B,MAAM,0BAA0B,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"track.d.ts","sourceRoot":"","sources":["../../src/utils/track.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAA+B,MAAM,0BAA0B,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAW,MAAM,iBAAiB,CAAC;AAmCvE,eAAO,MAAM,qBAAqB,aAAc,aAAa,wBAAwB,MAAM,GAAG,IAAI,iBAIjG,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,gBAAgB,EACvB,iBAAiB,EAAE,MAAM,MAAM,GAAG,SAAS,EAC3C,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,QAQ9B;AAOD,eAAO,MAAM,8BAA8B,cAC9B,OAAO,EAAE,GAAG,KAAK,GAAG,SAAS,mBACvB,eAAe,oFAcjC,CAAC"}
|
package/dist/utils/track.js
CHANGED
|
@@ -25,7 +25,6 @@ const getTrackFromContext = (context) => ({
|
|
|
25
25
|
stream: context.stream,
|
|
26
26
|
simulcastConfig: context.simulcastConfig || null,
|
|
27
27
|
encoding: context.encoding || null,
|
|
28
|
-
vadStatus: context.vadStatus,
|
|
29
28
|
track: context.track,
|
|
30
29
|
});
|
|
31
30
|
export const getRemoteOrLocalTrack = (tsClient, remoteOrLocalTrackId) => {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishjam-cloud/react-client",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React client library for Fishjam
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "React client library for Fishjam",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"author": "Fishjam
|
|
6
|
+
"author": "Fishjam Team",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"prepack": "yarn workspace @fishjam-cloud/ts-client build && yarn build"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@playwright/test": "^1.
|
|
41
|
+
"@playwright/test": "^1.50.0",
|
|
42
42
|
"@types/events": "^3.0.3",
|
|
43
43
|
"@types/lodash.isequal": "^4.5.8",
|
|
44
|
-
"@types/node": "^22.
|
|
45
|
-
"@types/react": "^
|
|
46
|
-
"react": "^
|
|
44
|
+
"@types/node": "^22.12.0",
|
|
45
|
+
"@types/react": "^19.0.8",
|
|
46
|
+
"react": "^19.0.0",
|
|
47
47
|
"typed-emitter": "^2.1.0",
|
|
48
|
-
"typedoc": "^0.27.
|
|
49
|
-
"typedoc-plugin-mdn-links": "^4.0.
|
|
50
|
-
"typescript": "^5.7.
|
|
48
|
+
"typedoc": "^0.27.6",
|
|
49
|
+
"typedoc-plugin-mdn-links": "^4.0.10",
|
|
50
|
+
"typescript": "^5.7.3"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@fishjam-cloud/ts-client": "0.
|
|
53
|
+
"@fishjam-cloud/ts-client": "0.12.0",
|
|
54
54
|
"events": "3.3.0",
|
|
55
55
|
"lodash.isequal": "4.5.0"
|
|
56
56
|
},
|
package/readme.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<img src="../../.github/images/fishjam-card.png" width="100%"
|
|
1
|
+
<img src="../../.github/images/fishjam-card.png" width="100%" />
|
|
2
2
|
|
|
3
|
-
# Fishjam
|
|
3
|
+
# Fishjam React client
|
|
4
4
|
|
|
5
5
|
`@fishjam-cloud/react-client` is an easiest way to add video streaming to your React web app.
|
|
6
6
|
|
|
7
7
|
# Installation
|
|
8
8
|
|
|
9
|
-
Check out the [installation](https://fishjam
|
|
9
|
+
Check out the [installation](https://docs.fishjam.io/react/installation) section of our docs for the detailed installation instructions.
|
|
10
10
|
|
|
11
11
|
# Documentation
|
|
12
12
|
|
|
13
|
-
Check out our [documentation](https://fishjam
|
|
13
|
+
Check out our [documentation](https://docs.fishjam.io/) on how Fishjam work and how to integrate our service with your app.
|
|
14
14
|
|
|
15
|
-
There is also [API documentation](https://fishjam
|
|
15
|
+
There is also [API documentation](https://docs.fishjam.io/api/web/) available.
|
|
16
16
|
|
|
17
17
|
# Examples
|
|
18
18
|
|
|
19
|
-
There are [few example apps](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client#examples-for-fishjam-client) that shows how to use Fishjam
|
|
19
|
+
There are [few example apps](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client#examples-for-fishjam-client) that shows how to use Fishjam SDKs and service.
|
|
20
20
|
|
|
21
21
|
- [Fishjam Chat](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client/fishjam-chat) - example video chat app
|
|
22
22
|
- [minimal-react](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client/minimal-react) - minimal example that shows how to connect and broadcast screen
|
|
23
23
|
|
|
24
24
|
## License
|
|
25
25
|
|
|
26
|
-
Licensed under the [Apache
|
|
26
|
+
Licensed under the [Apache xdLicense, Version 2.0](./LICENSE.txt)
|
|
27
27
|
|
|
28
|
-
## Fishjam
|
|
28
|
+
## Fishjam is created by Software Mansion
|
|
29
29
|
|
|
30
30
|
Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile
|
|
31
31
|
apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type PropsWithChildren } from "react";
|
|
2
|
-
import { type ReconnectConfig } from "@fishjam-cloud/ts-client";
|
|
3
|
-
import type { BandwidthLimits, PersistLastDeviceHandlers, StartStreamingProps } from "./types/public";
|
|
4
|
-
interface FishjamProviderProps extends PropsWithChildren {
|
|
5
|
-
reconnect?: ReconnectConfig | boolean;
|
|
6
|
-
constraints?: Pick<MediaStreamConstraints, "audio" | "video">;
|
|
7
|
-
persistLastDevice?: boolean | PersistLastDeviceHandlers;
|
|
8
|
-
bandwidthLimits?: Partial<BandwidthLimits>;
|
|
9
|
-
autoStreamCamera?: StartStreamingProps | false;
|
|
10
|
-
autoStreamMicrophone?: StartStreamingProps | false;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @category Components
|
|
14
|
-
*/
|
|
15
|
-
export declare function FishjamProvider({ children, reconnect, constraints, persistLastDevice, bandwidthLimits, autoStreamCamera, autoStreamMicrophone, }: FishjamProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=fishjamProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fishjamProvider.d.ts","sourceRoot":"","sources":["../src/fishjamProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAItG,UAAU,oBAAqB,SAAQ,iBAAiB;IACtD,SAAS,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACtC,WAAW,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;IAC9D,iBAAiB,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC;IAC/C,oBAAoB,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,EAAE,oBAAoB,2CA8DtB"}
|