@adcops/autocore-react 3.0.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 +59 -0
- package/additional-docs/ButtonApiSpecs.md +48 -0
- package/additional-docs/GlobalEventEmitter.md +244 -0
- package/additional-docs/general_recommendations.md +22 -0
- package/dist/components/DPad.css +522 -0
- package/dist/components/DPad.d.ts +34 -0
- package/dist/components/DPad.js +1 -0
- package/dist/components/Indicator.d.ts +81 -0
- package/dist/components/Indicator.js +1 -0
- package/dist/components/IndicatorButton.d.ts +137 -0
- package/dist/components/IndicatorButton.js +1 -0
- package/dist/components/IndicatorColor.d.ts +26 -0
- package/dist/components/IndicatorColor.js +1 -0
- package/dist/components/Osk.d.ts +14 -0
- package/dist/components/Osk.js +1 -0
- package/dist/components/OskDialog.d.ts +33 -0
- package/dist/components/OskDialog.js +1 -0
- package/dist/components/ValueDisplay.d.ts +99 -0
- package/dist/components/ValueDisplay.js +1 -0
- package/dist/components/osk.css +123 -0
- package/dist/core/EventEmitterContext.d.ts +223 -0
- package/dist/core/EventEmitterContext.js +1 -0
- package/dist/core/MaskPatterns.d.ts +71 -0
- package/dist/core/MaskPatterns.js +1 -0
- package/dist/core/NumerableTypes.d.ts +58 -0
- package/dist/core/NumerableTypes.js +1 -0
- package/dist/core/PositionContext.d.ts +38 -0
- package/dist/core/PositionContext.js +1 -0
- package/dist/core/UniqueId.d.ts +16 -0
- package/dist/core/UniqueId.js +1 -0
- package/dist/core/ValueSimulator.d.ts +71 -0
- package/dist/core/ValueSimulator.js +1 -0
- package/dist/core/hoc.d.ts +31 -0
- package/dist/core/hoc.js +1 -0
- package/dist/hub/HubBase.d.ts +169 -0
- package/dist/hub/HubBase.js +1 -0
- package/dist/hub/HubSimulate.d.ts +20 -0
- package/dist/hub/HubSimulate.js +1 -0
- package/dist/hub/HubSocketIo.d.ts +101 -0
- package/dist/hub/HubSocketIo.js +1 -0
- package/dist/hub/HubTauri.d.ts +86 -0
- package/dist/hub/HubTauri.js +1 -0
- package/dist/hub/index.d.ts +13 -0
- package/dist/hub/index.js +1 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +106 -0
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/classes/components_Indicator.Indicator.html +105 -0
- package/docs/classes/components_IndicatorButton.IndicatorButton.html +119 -0
- package/docs/classes/components_OskDialog.OskDialog.html +117 -0
- package/docs/classes/components_ValueDisplay.ValueDisplay.html +104 -0
- package/docs/classes/core_ValueSimulator.ValueSimulator.html +41 -0
- package/docs/classes/hub_HubBase.HubBase.html +67 -0
- package/docs/classes/hub_HubSimulate.HubSimulate.html +72 -0
- package/docs/classes/hub_HubSocketIo.HubSocketIo.html +80 -0
- package/docs/classes/hub_HubTauri.HubTauri.html +80 -0
- package/docs/enums/components_DPad.VcJoyPadAction.html +10 -0
- package/docs/enums/components_DPad.VcJoyPadButtonId.html +7 -0
- package/docs/enums/components_IndicatorButton.ActionMode.html +6 -0
- package/docs/enums/components_IndicatorColor.IndicatorColor.html +13 -0
- package/docs/functions/components_DPad.VcDPad.html +5 -0
- package/docs/functions/components_Osk.Osk.html +5 -0
- package/docs/functions/core_EventEmitterContext.EventEmitterProvider.html +8 -0
- package/docs/functions/core_UniqueId.UniqueId.html +4 -0
- package/docs/functions/core_hoc.hocAddSubscription.html +6 -0
- package/docs/functions/hub.createHub.html +3 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +69 -0
- package/docs/interfaces/components_IndicatorButton.IndicatorButtonProps.html +635 -0
- package/docs/interfaces/components_IndicatorButton.IndicatorButtonState.html +10 -0
- package/docs/interfaces/core_DimensionsContext.IDimensionsContext.html +4 -0
- package/docs/interfaces/core_EventEmitterContext.Action.html +5 -0
- package/docs/interfaces/core_EventEmitterContext.EventEmitterContextType.html +18 -0
- package/docs/interfaces/core_EventEmitterContext.State.html +8 -0
- package/docs/interfaces/core_EventEmitterContext.Subscription.html +6 -0
- package/docs/modules/components_DPad.html +5 -0
- package/docs/modules/components_Indicator.html +4 -0
- package/docs/modules/components_IndicatorButton.html +7 -0
- package/docs/modules/components_IndicatorColor.html +2 -0
- package/docs/modules/components_Osk.html +3 -0
- package/docs/modules/components_OskDialog.html +3 -0
- package/docs/modules/components_ValueDisplay.html +3 -0
- package/docs/modules/core_DimensionsContext.html +4 -0
- package/docs/modules/core_EventEmitterContext.html +11 -0
- package/docs/modules/core_InputPatterns.html +2 -0
- package/docs/modules/core_NumerableTypes.html +2 -0
- package/docs/modules/core_UniqueId.html +2 -0
- package/docs/modules/core_ValueSimulator.html +3 -0
- package/docs/modules/core_hoc.html +3 -0
- package/docs/modules/hub.html +6 -0
- package/docs/modules/hub_HubBase.html +3 -0
- package/docs/modules/hub_HubSimulate.html +3 -0
- package/docs/modules/hub_HubSocketIo.html +3 -0
- package/docs/modules/hub_HubTauri.html +2 -0
- package/docs/types/core_EventEmitterContext.EmitterDispatchFunction.html +1 -0
- package/docs/types/core_EventEmitterContext.EmitterSubscribeFunction.html +1 -0
- package/docs/types/core_EventEmitterContext.EmitterUnsubscribeFunction.html +1 -0
- package/docs/types/core_NumerableTypes.NumerableFormatOptions.html +1 -0
- package/docs/types/core_hoc.HocAddSubscriptionProps.html +4 -0
- package/docs/variables/core_DimensionsContext.DimensionsContext.html +1 -0
- package/docs/variables/core_EventEmitterContext.EventEmitterContext.html +5 -0
- package/docs/variables/core_InputPatterns.InputPatterns.html +2 -0
- package/package.json +79 -0
- package/readme.md +140 -0
- package/src/components/DPad.css +522 -0
- package/src/components/DPad.tsx +94 -0
- package/src/components/Indicator.tsx +243 -0
- package/src/components/IndicatorButton.tsx +306 -0
- package/src/components/IndicatorColor.ts +36 -0
- package/src/components/Osk.tsx +193 -0
- package/src/components/OskDialog.tsx +165 -0
- package/src/components/ValueDisplay.tsx +181 -0
- package/src/components/osk.css +123 -0
- package/src/core/EventEmitterContext.tsx +394 -0
- package/src/core/MaskPatterns.ts +82 -0
- package/src/core/NumerableTypes.ts +81 -0
- package/src/core/PositionContext.ts +60 -0
- package/src/core/UniqueId.ts +41 -0
- package/src/core/ValueSimulator.ts +167 -0
- package/src/core/hoc.tsx +65 -0
- package/src/hub/HubBase.ts +293 -0
- package/src/hub/HubSimulate.ts +47 -0
- package/src/hub/HubSocketIo.ts +166 -0
- package/src/hub/HubTauri.ts +145 -0
- package/src/hub/index.ts +41 -0
- package/terser.config.cjs +25 -0
- package/todo.md +18 -0
- package/tools/copy-distribution-files.cjs +73 -0
- package/tools/minify.cjs +56 -0
- package/tsconfig.json +34 -0
- package/typedoc.json +13 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { EventEmitterContextType } from '../core/EventEmitterContext';
|
|
2
|
+
/**
|
|
3
|
+
* Base class for the interface for the IPC to the backend,
|
|
4
|
+
* which may be websockets, MQTT, the Tauri API,
|
|
5
|
+
* or something else.
|
|
6
|
+
*
|
|
7
|
+
* The EventEmitterContext should generate the hub automatically.
|
|
8
|
+
*
|
|
9
|
+
* # Usage
|
|
10
|
+
* The hub can be used to publish and subscribe to
|
|
11
|
+
* topics in the front-end, regardless of being connected to any backend.
|
|
12
|
+
*
|
|
13
|
+
* ```
|
|
14
|
+
* const {dispatch, subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
15
|
+
* const [controlPower, setControlPower] = useState(false);
|
|
16
|
+
* useEffect(() => {
|
|
17
|
+
* const unsubscribeControlPower = subscribe('value-simulator-bBit1', (value) => {
|
|
18
|
+
* setControlPower(value);
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* return () => {
|
|
23
|
+
* unsubscribe(unsubscribeControlPower);
|
|
24
|
+
* }
|
|
25
|
+
* }, [] );
|
|
26
|
+
*
|
|
27
|
+
* const onPbPressed = () => {
|
|
28
|
+
* let count = 1;
|
|
29
|
+
* dispatch({
|
|
30
|
+
* topic: "my-awesome-topic",
|
|
31
|
+
* payload: count
|
|
32
|
+
* });
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* ```
|
|
36
|
+
* The hub should also be used for invoking events in the backend.
|
|
37
|
+
* This example will call the function "update_count" in the backend, passing
|
|
38
|
+
* the expected argument "count". Details of the interaction between the Hub and
|
|
39
|
+
* the backend will be handled by the appropriate HubBase sub-class, and should
|
|
40
|
+
* be transparent to the front end.
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
* const {invoke} = useContext(EventEmitterContext);
|
|
44
|
+
* const incrementCount = () => {
|
|
45
|
+
* count += 1;
|
|
46
|
+
* invoke('update_count', {"count": count});
|
|
47
|
+
* };
|
|
48
|
+
*
|
|
49
|
+
* Subscribing to a topic is simple. The type of value received is specific
|
|
50
|
+
* to the topic.
|
|
51
|
+
*
|
|
52
|
+
* Example: Listen to an event 'xarm-position':
|
|
53
|
+
* ```
|
|
54
|
+
* const {subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
55
|
+
* useEffect(() => {
|
|
56
|
+
* const unsubscripeMp = subscribe('xarm-position', (value) => {
|
|
57
|
+
* // The publisher sent a JSON object of 3D position values.
|
|
58
|
+
* setX(value.x);
|
|
59
|
+
* setY(value.y);
|
|
60
|
+
* setZ(value.z);
|
|
61
|
+
* setA(value.roll);
|
|
62
|
+
* setB(value.yaw);
|
|
63
|
+
* setC(value.pitch);
|
|
64
|
+
* });
|
|
65
|
+
*
|
|
66
|
+
* return () => {
|
|
67
|
+
* unsubscribe(unsubscripeMp);
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* }, [] );
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare abstract class HubBase {
|
|
76
|
+
protected localTopicToBackendTopicMap: Map<string, string>;
|
|
77
|
+
protected backendTopicToLocalMap: Map<string, string>;
|
|
78
|
+
protected localFNameToBackendFNameMap: Map<string, string>;
|
|
79
|
+
protected backendFNameToLocalFNameMap: Map<string, string>;
|
|
80
|
+
protected context: EventEmitterContextType | null;
|
|
81
|
+
/**
|
|
82
|
+
* Constructor
|
|
83
|
+
*/
|
|
84
|
+
constructor();
|
|
85
|
+
/**
|
|
86
|
+
* Set the EventEmitterContext for this instance of the Hub. The EventEmitterContext
|
|
87
|
+
* should handle this as part of the initialization sequence. Because React can
|
|
88
|
+
* sometimes make (and destroy) multiple copies of the EventEmitterContext, it's important
|
|
89
|
+
* that the context be stored in the instance this way so that the HubBase can properly target
|
|
90
|
+
* right context.
|
|
91
|
+
*
|
|
92
|
+
* If this context is not sent, no events will be emitted from the backend to the front end,
|
|
93
|
+
* and global events in the interface may not work.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
setContext(context: EventEmitterContextType | null): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoke/send a message to the back end.
|
|
99
|
+
* This does NOT get published to the front end.
|
|
100
|
+
*/
|
|
101
|
+
abstract invoke(fname: string, payload?: object): Promise<object>;
|
|
102
|
+
/**
|
|
103
|
+
* Convenience function to invoke a command with an optional topic and optional value.
|
|
104
|
+
* This will invoke the specified command in the backend. It does not broadcast the
|
|
105
|
+
* value within the local frontend.
|
|
106
|
+
* @param fname string Function name
|
|
107
|
+
* @param topic string Topic
|
|
108
|
+
* @param value any data payload
|
|
109
|
+
*/
|
|
110
|
+
invokeTopic(fname: string, topic: string | null, value?: any): Promise<object>;
|
|
111
|
+
/**
|
|
112
|
+
* Pubish a topic throughout the web app using the
|
|
113
|
+
* Global EventEmitterContext. This will broadcast within the local frontend.
|
|
114
|
+
* This does NOT get relayed to the backend.
|
|
115
|
+
*/
|
|
116
|
+
publish(topic: string, data: any | undefined): void;
|
|
117
|
+
/**
|
|
118
|
+
* Map a local topic to a topic in the backend.
|
|
119
|
+
* @param localTopic string
|
|
120
|
+
* @param backendTopic string
|
|
121
|
+
*/
|
|
122
|
+
mapTopic(localTopic: string, backendTopic: string): void;
|
|
123
|
+
/**
|
|
124
|
+
* Unmap a local topic.
|
|
125
|
+
* @param localTopic string
|
|
126
|
+
*/
|
|
127
|
+
unmapTopic(localTopic: string): void;
|
|
128
|
+
/**
|
|
129
|
+
* Map a local function name, as would be sent to the invoke method, to a
|
|
130
|
+
* function name in the backend.
|
|
131
|
+
* @param localFName string
|
|
132
|
+
* @param backendFName string
|
|
133
|
+
*/
|
|
134
|
+
mapFName(localFName: string, backendFName: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Unmap a local function name.
|
|
137
|
+
* @param localFName string
|
|
138
|
+
*/
|
|
139
|
+
unmapFName(localFName: string): void;
|
|
140
|
+
/**
|
|
141
|
+
* Convert a local topic to a backend topic. If a mapping isn't
|
|
142
|
+
* registered, the local topic is returned.
|
|
143
|
+
* @param localTopic local topic name
|
|
144
|
+
* @returns string
|
|
145
|
+
*/
|
|
146
|
+
toBackendTopic(localTopic: string): string;
|
|
147
|
+
/**
|
|
148
|
+
* Convert a local function name to a backend function name. If a mapping isn't
|
|
149
|
+
* registered, the local FName is returned.
|
|
150
|
+
* @param localTopic local function name
|
|
151
|
+
* @returns string
|
|
152
|
+
*/
|
|
153
|
+
toBackendFName(localFName: string): string;
|
|
154
|
+
/**
|
|
155
|
+
* Convert a backend topic to a local topic. If a mapping isn't
|
|
156
|
+
* registered, the backend topic is returned.
|
|
157
|
+
* @param backendTopic backend topic name
|
|
158
|
+
* @returns string
|
|
159
|
+
*/
|
|
160
|
+
toLocalTopic(backendTopic: string): string;
|
|
161
|
+
/**
|
|
162
|
+
* Convert a backend function name to a local function name. If a mapping isn't
|
|
163
|
+
* registered, the backend function name is returned.
|
|
164
|
+
* @param backendTopic backend function name
|
|
165
|
+
* @returns string
|
|
166
|
+
*/
|
|
167
|
+
toLocalFName(backendTopic: string): string;
|
|
168
|
+
}
|
|
169
|
+
export default HubBase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class HubBase{constructor(){Object.defineProperty(this,"localTopicToBackendTopicMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"backendTopicToLocalMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"localFNameToBackendFNameMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"backendFNameToLocalFNameMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:null})}setContext(a){this.context=a}invokeTopic(a,e,o){const c={topic:e,data:o};return this.invoke(a,c)}publish(a,e){const o=this.toLocalTopic(a);this.context?.dispatch({topic:o,payload:e})}mapTopic(a,e){this.localTopicToBackendTopicMap.set(a,e),this.backendTopicToLocalMap.set(e,a)}unmapTopic(a){if(this.localTopicToBackendTopicMap.has(a)){const e=this.localTopicToBackendTopicMap.get(a);this.localTopicToBackendTopicMap.delete(a),null!=e&&this.backendTopicToLocalMap.has(e)&&this.backendTopicToLocalMap.delete(e)}}mapFName(a,e){this.localFNameToBackendFNameMap.set(a,e),this.backendFNameToLocalFNameMap.set(e,a)}unmapFName(a){if(this.localFNameToBackendFNameMap.has(a)){const e=this.localFNameToBackendFNameMap.get(a);this.localFNameToBackendFNameMap.delete(a),null!=e&&this.backendFNameToLocalFNameMap.has(e)&&this.backendFNameToLocalFNameMap.delete(e)}}toBackendTopic(a){if(this.localTopicToBackendTopicMap.has(a)){const e=this.localTopicToBackendTopicMap.get(a);return null!=e?e:a}return a}toBackendFName(a){if(this.localFNameToBackendFNameMap.has(a)){const e=this.localFNameToBackendFNameMap.get(a);return null!=e?e:a}return a}toLocalTopic(a){if(this.backendTopicToLocalMap.has(a)){const e=this.backendTopicToLocalMap.get(a);return null!=e?e:a}return a}toLocalFName(a){if(this.backendFNameToLocalFNameMap.has(a)){const e=this.backendFNameToLocalFNameMap.get(a);return null!=e?e:a}return a}}export default HubBase;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HubBase } from './HubBase';
|
|
2
|
+
/**
|
|
3
|
+
* Hub for simulating functionality when no backend is present.
|
|
4
|
+
*/
|
|
5
|
+
export declare class HubSimulate extends HubBase {
|
|
6
|
+
/**
|
|
7
|
+
* Constructor
|
|
8
|
+
*/
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Invoke a method in the Socket.IO backend and wait for acknowledgment.
|
|
12
|
+
*
|
|
13
|
+
* @param fname method name
|
|
14
|
+
* @param payload Optional data payload
|
|
15
|
+
* @param timeout Timeout in milliseconds after which the promise is rejected if no response is received.
|
|
16
|
+
* @returns A Promise that resolves to the response from the backend or rejects if a timeout occurs.
|
|
17
|
+
*/
|
|
18
|
+
invoke(fname: string, payload?: object, timeout?: number): Promise<object>;
|
|
19
|
+
}
|
|
20
|
+
export default HubSimulate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HubBase}from"./HubBase";export class HubSimulate extends HubBase{constructor(){super()}invoke(e,t,u=20){return new Promise(((e,r)=>{setTimeout((()=>{e({data:t})}),u)}))}}export default HubSimulate;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { HubBase } from './HubBase';
|
|
2
|
+
/**
|
|
3
|
+
* Hub for integrating with a webserver/backend using Socket.IO as the pipeline.
|
|
4
|
+
*
|
|
5
|
+
* The socket-io connection is expected to broadcast messages on the event
|
|
6
|
+
* name: 'autocore://broadcast_event'
|
|
7
|
+
*
|
|
8
|
+
* This hub will capture those messages and dispatch them globally to any
|
|
9
|
+
* listeners in the web app.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* Example: Listen to an event 'xarm-position':
|
|
13
|
+
* ```
|
|
14
|
+
* const {subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
15
|
+
* useEffect(() => {
|
|
16
|
+
* const unsubscripeMp = subscribe('xarm-position', (value) => {
|
|
17
|
+
* // The rust backend sent a JSON object of 3D position values.
|
|
18
|
+
* setX(value.x);
|
|
19
|
+
* setY(value.y);
|
|
20
|
+
* setZ(value.z);
|
|
21
|
+
* setA(value.roll);
|
|
22
|
+
* setB(value.yaw);
|
|
23
|
+
* setC(value.pitch);
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* return () => {
|
|
27
|
+
* unsubscribe(unsubscripeMp);
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* }, [] );
|
|
31
|
+
*
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* The hub should also be used for invoking events in the Tauri backend.
|
|
35
|
+
* This example will call the function "update_count" in the rust backend, passing
|
|
36
|
+
* the expected argument "count".
|
|
37
|
+
* ```
|
|
38
|
+
* const {invoke} = useContext(EventEmitterContext);
|
|
39
|
+
* const incrementCount = () => {
|
|
40
|
+
* count += 1;
|
|
41
|
+
* invoke('update_count', {"count": count});
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Of course, like any class derived from HubBase, the hub can be used to publish and subscribe to
|
|
46
|
+
* topics in the front-end, without need of interacting with the Tauri backed.
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
* const {dispatch, subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
50
|
+
* const [controlPower, setControlPower] = useState(false);
|
|
51
|
+
* useEffect(() => {
|
|
52
|
+
* const unsubscribeControlPower = subscribe('value-simulator-bBit1', (value) => {
|
|
53
|
+
* setControlPower(value);
|
|
54
|
+
* });
|
|
55
|
+
*
|
|
56
|
+
*
|
|
57
|
+
* return () => {
|
|
58
|
+
* unsubscribe(unsubscribeControlPower);
|
|
59
|
+
* }
|
|
60
|
+
* }, [] );
|
|
61
|
+
*
|
|
62
|
+
* const onPbPressed = () => {
|
|
63
|
+
* let count = 1;
|
|
64
|
+
* dispatch({
|
|
65
|
+
* topic: "my-awesome-topic",
|
|
66
|
+
* payload: count
|
|
67
|
+
* });
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
export declare class HubSocketIo extends HubBase {
|
|
74
|
+
private socket;
|
|
75
|
+
/**
|
|
76
|
+
* Constructor
|
|
77
|
+
*/
|
|
78
|
+
constructor();
|
|
79
|
+
/**
|
|
80
|
+
* Invoke a method in the Socket.IO backend and wait for acknowledgment.
|
|
81
|
+
*
|
|
82
|
+
* @param fname method name
|
|
83
|
+
* @param payload Optional data payload
|
|
84
|
+
* @param timeout Timeout in milliseconds after which the promise is rejected if no response is received.
|
|
85
|
+
* @returns A Promise that resolves to the response from the backend or rejects if a timeout occurs.
|
|
86
|
+
*/
|
|
87
|
+
invoke(fname: string, payload?: object, timeout?: number): Promise<object>;
|
|
88
|
+
/**
|
|
89
|
+
* Disconnects the Socket.IO client.
|
|
90
|
+
*/
|
|
91
|
+
disconnect(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Emit an event to the Socket.IO server.
|
|
94
|
+
* The intention is that the invoke method is used instead.
|
|
95
|
+
*
|
|
96
|
+
* @param eventName Name of the event to emit
|
|
97
|
+
* @param payload Optional data payload
|
|
98
|
+
*/
|
|
99
|
+
protected emit(eventName: string, payload?: object): void;
|
|
100
|
+
}
|
|
101
|
+
export default HubSocketIo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HubBase}from"./HubBase";import io from"socket.io-client";export class HubSocketIo extends HubBase{constructor(){super(),Object.defineProperty(this,"socket",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const e=window.location.origin;this.socket=io(e),this.socket.on("autocore://broadcast_event",(e=>{let o=JSON.parse(e.payload);void 0!==o.topic&&null!==o.topic&&(void 0!==o.payload&&null!==o.payload?this.publish(o.topic,o.payload):this.publish(o.topic,void 0))}))}invoke(e,o,t=5e3){return new Promise(((i,s)=>{let c=!1;this.socket.emit(e,o,(e=>{c=!0,i(e)})),setTimeout((()=>{c||s(new Error(`Timeout: No response received within ${t} ms`))}),t)}))}disconnect(){this.socket.disconnect()}emit(e,o){this.socket.emit(e,o)}}export default HubSocketIo;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { HubBase } from './HubBase';
|
|
2
|
+
/**
|
|
3
|
+
* Hub for integrating with the Tauri backend.
|
|
4
|
+
*
|
|
5
|
+
* The tauri backend is expected to broadcast messages on the event
|
|
6
|
+
* name: 'autocore://broadcast_event'
|
|
7
|
+
*
|
|
8
|
+
* This hub will capture those messages and dispatch them globally to any
|
|
9
|
+
* listeners in the web app.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* Example: Listen to an event 'xarm-position':
|
|
13
|
+
* ```
|
|
14
|
+
* const {subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
15
|
+
* useEffect(() => {
|
|
16
|
+
* const unsubscripeMp = subscribe('xarm-position', (value) => {
|
|
17
|
+
* // The rust backend sent a JSON object of 3D position values.
|
|
18
|
+
* setX(value.x);
|
|
19
|
+
* setY(value.y);
|
|
20
|
+
* setZ(value.z);
|
|
21
|
+
* setA(value.roll);
|
|
22
|
+
* setB(value.yaw);
|
|
23
|
+
* setC(value.pitch);
|
|
24
|
+
* });
|
|
25
|
+
*
|
|
26
|
+
* return () => {
|
|
27
|
+
* unsubscribe(unsubscripeMp);
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* }, [] );
|
|
31
|
+
*
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* The hub should also be used for invoking events in the Tauri backend.
|
|
35
|
+
* This example will call the function "update_count" in the rust backend, passing
|
|
36
|
+
* the expected argument "count".
|
|
37
|
+
* ```
|
|
38
|
+
* const {invoke} = useContext(EventEmitterContext);
|
|
39
|
+
* const incrementCount = () => {
|
|
40
|
+
* count += 1;
|
|
41
|
+
* invoke('update_count', {"count": count});
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Of course, like any class derived from HubBase, the hub can be used to publish and subscribe to
|
|
46
|
+
* topics in the front-end, without need of interacting with the Tauri backed.
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
* const {dispatch, subscribe, unsubscribe} = useContext(EventEmitterContext);
|
|
50
|
+
* const [controlPower, setControlPower] = useState(false);
|
|
51
|
+
* useEffect(() => {
|
|
52
|
+
* const unsubscribeControlPower = subscribe('value-simulator-bBit1', (value) => {
|
|
53
|
+
* setControlPower(value);
|
|
54
|
+
* });
|
|
55
|
+
*
|
|
56
|
+
*
|
|
57
|
+
* return () => {
|
|
58
|
+
* unsubscribe(unsubscribeControlPower);
|
|
59
|
+
* }
|
|
60
|
+
* }, [] );
|
|
61
|
+
*
|
|
62
|
+
* const onPbPressed = () => {
|
|
63
|
+
* let count = 1;
|
|
64
|
+
* dispatch({
|
|
65
|
+
* topic: "my-awesome-topic",
|
|
66
|
+
* payload: count
|
|
67
|
+
* });
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
export declare class HubTauri extends HubBase {
|
|
74
|
+
/**
|
|
75
|
+
* Constructor
|
|
76
|
+
*/
|
|
77
|
+
constructor();
|
|
78
|
+
/**
|
|
79
|
+
* Invoke a method in the rust backend.
|
|
80
|
+
*
|
|
81
|
+
* @param fname method name
|
|
82
|
+
* @param payload Optional data payload
|
|
83
|
+
* @returns The return value of the backend method.
|
|
84
|
+
*/
|
|
85
|
+
invoke(fname: string, payload?: object | undefined): Promise<object>;
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HubBase}from"./HubBase";import{event,invoke}from"@tauri-apps/api";export class HubTauri extends HubBase{constructor(){super(),event.listen("autocore://broadcast_event",(o=>{let e=JSON.parse(o.payload);void 0!==e.topic&&null!==e.topic&&(void 0!==e.payload&&null!==e.payload?this.publish(e.topic,e.payload):this.publish(e.topic,void 0))}))}invoke(o,e){return null!=e?invoke(o,e):invoke(o)}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HubBase as Hub } from './HubBase';
|
|
2
|
+
import { HubTauri } from './HubTauri';
|
|
3
|
+
import { HubSocketIo } from "./HubSocketIo";
|
|
4
|
+
import { HubSimulate } from "./HubSimulate";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a connection to the backend.
|
|
7
|
+
* @returns Hub
|
|
8
|
+
*/
|
|
9
|
+
export declare function createHub(): Hub;
|
|
10
|
+
export { HubBase as Hub } from './HubBase';
|
|
11
|
+
export { HubTauri };
|
|
12
|
+
export { HubSocketIo };
|
|
13
|
+
export { HubSimulate };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HubTauri}from"./HubTauri";import{HubSocketIo}from"./HubSocketIo";import{HubSimulate}from"./HubSimulate";export function createHub(){return window.__TAURI__?new HubTauri:"80"!==window.location.port&&"443"!==window.location.port?new HubSimulate:new HubSocketIo}export{HubBase as Hub}from"./HubBase";export{HubTauri};export{HubSocketIo};export{HubSimulate};
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #001080;
|
|
3
|
+
--dark-hl-0: #9CDCFE;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #D4D4D4;
|
|
6
|
+
--light-hl-2: #008000;
|
|
7
|
+
--dark-hl-2: #6A9955;
|
|
8
|
+
--light-hl-3: #0000FF;
|
|
9
|
+
--dark-hl-3: #569CD6;
|
|
10
|
+
--light-hl-4: #000000;
|
|
11
|
+
--dark-hl-4: #C8C8C8;
|
|
12
|
+
--light-hl-5: #098658;
|
|
13
|
+
--dark-hl-5: #B5CEA8;
|
|
14
|
+
--light-hl-6: #267F99;
|
|
15
|
+
--dark-hl-6: #4EC9B0;
|
|
16
|
+
--light-hl-7: #0070C1;
|
|
17
|
+
--dark-hl-7: #4FC1FF;
|
|
18
|
+
--light-hl-8: #795E26;
|
|
19
|
+
--dark-hl-8: #DCDCAA;
|
|
20
|
+
--light-hl-9: #AF00DB;
|
|
21
|
+
--dark-hl-9: #C586C0;
|
|
22
|
+
--light-hl-10: #A31515;
|
|
23
|
+
--dark-hl-10: #CE9178;
|
|
24
|
+
--light-hl-11: #CD3131;
|
|
25
|
+
--dark-hl-11: #F44747;
|
|
26
|
+
--light-code-background: #FFFFFF;
|
|
27
|
+
--dark-code-background: #1E1E1E;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (prefers-color-scheme: light) { :root {
|
|
31
|
+
--hl-0: var(--light-hl-0);
|
|
32
|
+
--hl-1: var(--light-hl-1);
|
|
33
|
+
--hl-2: var(--light-hl-2);
|
|
34
|
+
--hl-3: var(--light-hl-3);
|
|
35
|
+
--hl-4: var(--light-hl-4);
|
|
36
|
+
--hl-5: var(--light-hl-5);
|
|
37
|
+
--hl-6: var(--light-hl-6);
|
|
38
|
+
--hl-7: var(--light-hl-7);
|
|
39
|
+
--hl-8: var(--light-hl-8);
|
|
40
|
+
--hl-9: var(--light-hl-9);
|
|
41
|
+
--hl-10: var(--light-hl-10);
|
|
42
|
+
--hl-11: var(--light-hl-11);
|
|
43
|
+
--code-background: var(--light-code-background);
|
|
44
|
+
} }
|
|
45
|
+
|
|
46
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
47
|
+
--hl-0: var(--dark-hl-0);
|
|
48
|
+
--hl-1: var(--dark-hl-1);
|
|
49
|
+
--hl-2: var(--dark-hl-2);
|
|
50
|
+
--hl-3: var(--dark-hl-3);
|
|
51
|
+
--hl-4: var(--dark-hl-4);
|
|
52
|
+
--hl-5: var(--dark-hl-5);
|
|
53
|
+
--hl-6: var(--dark-hl-6);
|
|
54
|
+
--hl-7: var(--dark-hl-7);
|
|
55
|
+
--hl-8: var(--dark-hl-8);
|
|
56
|
+
--hl-9: var(--dark-hl-9);
|
|
57
|
+
--hl-10: var(--dark-hl-10);
|
|
58
|
+
--hl-11: var(--dark-hl-11);
|
|
59
|
+
--code-background: var(--dark-code-background);
|
|
60
|
+
} }
|
|
61
|
+
|
|
62
|
+
:root[data-theme='light'] {
|
|
63
|
+
--hl-0: var(--light-hl-0);
|
|
64
|
+
--hl-1: var(--light-hl-1);
|
|
65
|
+
--hl-2: var(--light-hl-2);
|
|
66
|
+
--hl-3: var(--light-hl-3);
|
|
67
|
+
--hl-4: var(--light-hl-4);
|
|
68
|
+
--hl-5: var(--light-hl-5);
|
|
69
|
+
--hl-6: var(--light-hl-6);
|
|
70
|
+
--hl-7: var(--light-hl-7);
|
|
71
|
+
--hl-8: var(--light-hl-8);
|
|
72
|
+
--hl-9: var(--light-hl-9);
|
|
73
|
+
--hl-10: var(--light-hl-10);
|
|
74
|
+
--hl-11: var(--light-hl-11);
|
|
75
|
+
--code-background: var(--light-code-background);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:root[data-theme='dark'] {
|
|
79
|
+
--hl-0: var(--dark-hl-0);
|
|
80
|
+
--hl-1: var(--dark-hl-1);
|
|
81
|
+
--hl-2: var(--dark-hl-2);
|
|
82
|
+
--hl-3: var(--dark-hl-3);
|
|
83
|
+
--hl-4: var(--dark-hl-4);
|
|
84
|
+
--hl-5: var(--dark-hl-5);
|
|
85
|
+
--hl-6: var(--dark-hl-6);
|
|
86
|
+
--hl-7: var(--dark-hl-7);
|
|
87
|
+
--hl-8: var(--dark-hl-8);
|
|
88
|
+
--hl-9: var(--dark-hl-9);
|
|
89
|
+
--hl-10: var(--dark-hl-10);
|
|
90
|
+
--hl-11: var(--dark-hl-11);
|
|
91
|
+
--code-background: var(--dark-code-background);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.hl-0 { color: var(--hl-0); }
|
|
95
|
+
.hl-1 { color: var(--hl-1); }
|
|
96
|
+
.hl-2 { color: var(--hl-2); }
|
|
97
|
+
.hl-3 { color: var(--hl-3); }
|
|
98
|
+
.hl-4 { color: var(--hl-4); }
|
|
99
|
+
.hl-5 { color: var(--hl-5); }
|
|
100
|
+
.hl-6 { color: var(--hl-6); }
|
|
101
|
+
.hl-7 { color: var(--hl-7); }
|
|
102
|
+
.hl-8 { color: var(--hl-8); }
|
|
103
|
+
.hl-9 { color: var(--hl-9); }
|
|
104
|
+
.hl-10 { color: var(--hl-10); }
|
|
105
|
+
.hl-11 { color: var(--hl-11); }
|
|
106
|
+
pre, code { background: var(--code-background); }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function(svg) {
|
|
2
|
+
svg.innerHTML = `<g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-checkbox"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
|
|
3
|
+
svg.style.display = 'none';
|
|
4
|
+
if (location.protocol === 'file:') {
|
|
5
|
+
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements);
|
|
6
|
+
else updateUseElements()
|
|
7
|
+
function updateUseElements() {
|
|
8
|
+
document.querySelectorAll('use').forEach(el => {
|
|
9
|
+
if (el.getAttribute('href').includes('#icon-')) {
|
|
10
|
+
el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#'));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg')))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-checkbox"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg>
|