@openmouse/protocol 0.42.3 → 0.44.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/dist/drivers/endgame/egg-ot-hid.d.ts +4 -0
- package/dist/drivers/endgame/egg-ot-hid.d.ts.map +1 -1
- package/dist/drivers/endgame/egg-ot-hid.js +48 -4
- package/dist/drivers/endgame/egg-ot-hid.js.map +1 -1
- package/dist/drivers/registry.d.ts +13 -1
- package/dist/drivers/registry.d.ts.map +1 -1
- package/dist/drivers/registry.js +24 -0
- package/dist/drivers/registry.js.map +1 -1
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.d.ts +65 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.js +205 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.js.map +1 -0
- package/dist/drivers/steelseries/prime-mini-hid.d.ts +59 -0
- package/dist/drivers/steelseries/prime-mini-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/prime-mini-hid.js +183 -0
- package/dist/drivers/steelseries/prime-mini-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-100-hid.d.ts +57 -0
- package/dist/drivers/steelseries/rival-100-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-100-hid.js +181 -0
- package/dist/drivers/steelseries/rival-100-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-110-hid.d.ts +78 -0
- package/dist/drivers/steelseries/rival-110-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-110-hid.js +206 -0
- package/dist/drivers/steelseries/rival-110-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.d.ts +59 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.js +183 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.d.ts +64 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.js +199 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-300-hid.d.ts +78 -0
- package/dist/drivers/steelseries/rival-300-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-300-hid.js +206 -0
- package/dist/drivers/steelseries/rival-300-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-5-hid.d.ts +55 -0
- package/dist/drivers/steelseries/rival-5-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-5-hid.js +177 -0
- package/dist/drivers/steelseries/rival-5-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-600-hid.d.ts +65 -0
- package/dist/drivers/steelseries/rival-600-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-600-hid.js +184 -0
- package/dist/drivers/steelseries/rival-600-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-310-hid.d.ts +54 -0
- package/dist/drivers/steelseries/sensei-310-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-310-hid.js +177 -0
- package/dist/drivers/steelseries/sensei-310-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-raw-hid.d.ts +75 -0
- package/dist/drivers/steelseries/sensei-raw-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-raw-hid.js +199 -0
- package/dist/drivers/steelseries/sensei-raw-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.d.ts +42 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.js +132 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.js.map +1 -0
- package/dist/steelseries/aerox-3-wireless-gen2.d.ts +204 -0
- package/dist/steelseries/aerox-3-wireless-gen2.d.ts.map +1 -0
- package/dist/steelseries/aerox-3-wireless-gen2.js +301 -0
- package/dist/steelseries/aerox-3-wireless-gen2.js.map +1 -0
- package/dist/steelseries/aerox3.d.ts +3 -3
- package/dist/steelseries/aerox3.js +3 -3
- package/dist/steelseries/devices.d.ts +31 -14
- package/dist/steelseries/devices.d.ts.map +1 -1
- package/dist/steelseries/devices.js +417 -13
- package/dist/steelseries/devices.js.map +1 -1
- package/dist/steelseries/index.d.ts +12 -0
- package/dist/steelseries/index.d.ts.map +1 -1
- package/dist/steelseries/index.js +12 -0
- package/dist/steelseries/index.js.map +1 -1
- package/dist/steelseries/prime-mini-wireless.d.ts +9 -14
- package/dist/steelseries/prime-mini-wireless.d.ts.map +1 -1
- package/dist/steelseries/prime-mini-wireless.js +9 -14
- package/dist/steelseries/prime-mini-wireless.js.map +1 -1
- package/dist/steelseries/prime-mini.d.ts +173 -0
- package/dist/steelseries/prime-mini.d.ts.map +1 -0
- package/dist/steelseries/prime-mini.js +273 -0
- package/dist/steelseries/prime-mini.js.map +1 -0
- package/dist/steelseries/prime-plus.d.ts +5 -4
- package/dist/steelseries/prime-plus.d.ts.map +1 -1
- package/dist/steelseries/prime-plus.js +5 -4
- package/dist/steelseries/prime-plus.js.map +1 -1
- package/dist/steelseries/rival-100.d.ts +134 -0
- package/dist/steelseries/rival-100.d.ts.map +1 -0
- package/dist/steelseries/rival-100.js +195 -0
- package/dist/steelseries/rival-100.js.map +1 -0
- package/dist/steelseries/rival-110.d.ts +134 -0
- package/dist/steelseries/rival-110.d.ts.map +1 -0
- package/dist/steelseries/rival-110.js +205 -0
- package/dist/steelseries/rival-110.js.map +1 -0
- package/dist/steelseries/rival-3-v2.d.ts +168 -0
- package/dist/steelseries/rival-3-v2.d.ts.map +1 -0
- package/dist/steelseries/rival-3-v2.js +242 -0
- package/dist/steelseries/rival-3-v2.js.map +1 -0
- package/dist/steelseries/rival-3-wireless-v2.d.ts +219 -0
- package/dist/steelseries/rival-3-wireless-v2.d.ts.map +1 -0
- package/dist/steelseries/rival-3-wireless-v2.js +270 -0
- package/dist/steelseries/rival-3-wireless-v2.js.map +1 -0
- package/dist/steelseries/rival-300.d.ts +163 -0
- package/dist/steelseries/rival-300.d.ts.map +1 -0
- package/dist/steelseries/rival-300.js +266 -0
- package/dist/steelseries/rival-300.js.map +1 -0
- package/dist/steelseries/rival-5.d.ts +165 -0
- package/dist/steelseries/rival-5.d.ts.map +1 -0
- package/dist/steelseries/rival-5.js +212 -0
- package/dist/steelseries/rival-5.js.map +1 -0
- package/dist/steelseries/rival-600.d.ts +194 -0
- package/dist/steelseries/rival-600.d.ts.map +1 -0
- package/dist/steelseries/rival-600.js +262 -0
- package/dist/steelseries/rival-600.js.map +1 -0
- package/dist/steelseries/sensei-310.d.ts +162 -0
- package/dist/steelseries/sensei-310.d.ts.map +1 -0
- package/dist/steelseries/sensei-310.js +250 -0
- package/dist/steelseries/sensei-310.js.map +1 -0
- package/dist/steelseries/sensei-raw.d.ts +169 -0
- package/dist/steelseries/sensei-raw.d.ts.map +1 -0
- package/dist/steelseries/sensei-raw.js +233 -0
- package/dist/steelseries/sensei-raw.js.map +1 -0
- package/dist/steelseries/sensei-rival-pro.d.ts +214 -0
- package/dist/steelseries/sensei-rival-pro.d.ts.map +1 -0
- package/dist/steelseries/sensei-rival-pro.js +298 -0
- package/dist/steelseries/sensei-rival-pro.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prime-plus.js","sourceRoot":"","sources":["../../src/steelseries/prime-plus.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"prime-plus.js","sourceRoot":"","sources":["../../src/steelseries/prime-plus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAE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C,CAAC,CAAC;YACpF,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,UAAU,CAAC,CAAC,GAAG,kBAAkB,CAAC,cAAc,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SteelSeries Rival 100 configuration protocol — pure encode/decode helpers.
|
|
3
|
+
*
|
|
4
|
+
* Reconstructed from the vendor's own software, not from a third-party
|
|
5
|
+
* reimplementation: SteelSeries GG 121.0.0 ships `rival-100.lisp` (plus the
|
|
6
|
+
* `rival-100-dell-china`, `rival-100-pc-bang`, `dota2-rival-100-retail`,
|
|
7
|
+
* `dota2-rival-100-lenovo` and `rival-105` files, all of which `include
|
|
8
|
+
* "rival-100"`) under `apps/engine/install/deviceSpecifications/`, and this
|
|
9
|
+
* module transcribes it. Those files are OpenPGP-armored ("DESCRIPTOR"
|
|
10
|
+
* armor, SKESK/AES-128); the bytes below are the documented HID report
|
|
11
|
+
* payloads, not guesses. rivalcfg's `rival100.py` (which lists the same
|
|
12
|
+
* Rival 100/105 product ids) independently corroborates the command bytes.
|
|
13
|
+
*
|
|
14
|
+
* This is the first-generation "rival 100 family" command set shared by the
|
|
15
|
+
* Rival 100, Rival 105, and every Rival 100 special edition. It is not the
|
|
16
|
+
* Rival 110/106/300S command set: those share the same command bytes but use
|
|
17
|
+
* a different sensor table (PixArt PMW3326, 200–7200 DPI), which needs its
|
|
18
|
+
* own module. Do not extend this one to cover them.
|
|
19
|
+
*
|
|
20
|
+
* Every command is an HID **output report** with report id 0x00 (33-byte
|
|
21
|
+
* reports — `HIDIO 33`). Unlike the modern families, **buttons are not
|
|
22
|
+
* remappable** at all: the vendor file stubs `button_mappings`/
|
|
23
|
+
* `wheel_mappings` out as empty, and the only button control is a "button 6
|
|
24
|
+
* mode" toggle (`0B`), which switches the CPI button under the wheel between
|
|
25
|
+
* hardware DPI switching and an OS-bound button.
|
|
26
|
+
*
|
|
27
|
+
* DPI uses two per-level commands (`03 01`/`03 02`) with a **choice** byte,
|
|
28
|
+
* not a linear encoding: the vendor file states the byte but no table (the
|
|
29
|
+
* Rival 100 sensor exposes only eight hardware steps). rivalcfg's
|
|
30
|
+
* `rival100.py` supplies that table — 250→0x08, 500→0x07, 1000→0x06,
|
|
31
|
+
* 1250→0x05, 1500→0x04, 1750→0x03, 2000→0x02, 4000→0x01 (note the
|
|
32
|
+
* *inverted* byte order) — and is the sole source for the mapping, flagged
|
|
33
|
+
* here. Off-table DPI values are rejected. The active preset level is the
|
|
34
|
+
* one readable value (`16 00`).
|
|
35
|
+
*
|
|
36
|
+
* Polling (`04 00`) is write-only (1000→0x01, 500→0x02, 250→0x03,
|
|
37
|
+
* 125→0x04). Lighting is a single zone: color (`05 00` + RGB) and effect
|
|
38
|
+
* (`07 00` + mode). A firmware version (`10 00`, two bytes) is defined for
|
|
39
|
+
* the Rival 105 and the derived files; the Rival 100 base file has the same
|
|
40
|
+
* struct commented out ("removed for security reasons"), but rivalcfg reads
|
|
41
|
+
* it on the Rival 100, so it is exposed here and used by the driver as its
|
|
42
|
+
* connectivity probe (flagged).
|
|
43
|
+
*
|
|
44
|
+
* Settings apply immediately; the save command (`09 00`) persists them to
|
|
45
|
+
* onboard flash. None of this has been verified on physical hardware by
|
|
46
|
+
* this project.
|
|
47
|
+
*/
|
|
48
|
+
export declare const RIVAL100_REPORT_ID = 0;
|
|
49
|
+
/** Command prefixes; the payload is the prefix plus its arguments. */
|
|
50
|
+
export declare const RIVAL100_COMMAND: {
|
|
51
|
+
readonly sensitivity1: readonly [3, 1];
|
|
52
|
+
readonly sensitivity2: readonly [3, 2];
|
|
53
|
+
readonly pollingRate: readonly [4, 0];
|
|
54
|
+
readonly ledColor: readonly [5, 0];
|
|
55
|
+
readonly ledPulsation: readonly [7, 0];
|
|
56
|
+
readonly button6Mode: readonly [11];
|
|
57
|
+
readonly save: readonly [9, 0];
|
|
58
|
+
readonly firmware: readonly [16, 0];
|
|
59
|
+
readonly activeCpiIndex: readonly [22, 0];
|
|
60
|
+
};
|
|
61
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
62
|
+
export declare const RIVAL100_SAVE_COMMAND: readonly [9, 0];
|
|
63
|
+
export declare const RIVAL100_FIRMWARE_RESPONSE_LENGTH = 2;
|
|
64
|
+
export declare const RIVAL100_POLLING_RATES: readonly [125, 250, 500, 1000];
|
|
65
|
+
/**
|
|
66
|
+
* The eight hardware DPI steps the Rival 100 sensor exposes, from
|
|
67
|
+
* rivalcfg's `rival100.py` `choices` (the vendor file gives no table). Note
|
|
68
|
+
* the inverted byte order: the largest DPI is the smallest byte.
|
|
69
|
+
*/
|
|
70
|
+
export declare const RIVAL100_DPI_TO_BYTE: ReadonlyMap<number, number>;
|
|
71
|
+
/** rivalcfg `rival100.py` defaults for the two presets. */
|
|
72
|
+
export declare const RIVAL100_DEFAULT_DPI_PRESET_1 = 1000;
|
|
73
|
+
export declare const RIVAL100_DEFAULT_DPI_PRESET_2 = 2000;
|
|
74
|
+
export declare const RIVAL100_DEFAULT_POLLING_RATE = 1000;
|
|
75
|
+
export declare class Rival100ProtocolError extends Error {
|
|
76
|
+
}
|
|
77
|
+
/** The eight supported DPI values, ascending. */
|
|
78
|
+
export declare function steelseriesRival100DpiOptions(): number[];
|
|
79
|
+
/** `03 01 <byte>` — sensitivity preset 1. */
|
|
80
|
+
export declare function steelseriesRival100EncodeSensitivity1(dpi: number): Uint8Array;
|
|
81
|
+
/** `03 02 <byte>` — sensitivity preset 2. */
|
|
82
|
+
export declare function steelseriesRival100EncodeSensitivity2(dpi: number): Uint8Array;
|
|
83
|
+
/** `04 00 <v>` with 1000→0x01, 500→0x02, 250→0x03, 125→0x04. */
|
|
84
|
+
export declare function steelseriesRival100EncodePollingRate(pollingRateHz: number): Uint8Array;
|
|
85
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
86
|
+
export declare function steelseriesRival100SaveCommand(): Uint8Array;
|
|
87
|
+
/** `10 00` — the device answers with minor then major firmware bytes. */
|
|
88
|
+
export declare function steelseriesRival100FirmwareQuery(): Uint8Array;
|
|
89
|
+
/** `16 00` — read the active preset index. */
|
|
90
|
+
export declare function steelseriesRival100ActiveCpiQuery(): Uint8Array;
|
|
91
|
+
export interface SteelSeriesRival100Firmware {
|
|
92
|
+
/** The two raw response bytes, in the order the device sent them (minor, major). */
|
|
93
|
+
bytes: [number, number];
|
|
94
|
+
/** The version the two bytes describe, major first, e.g. "1.3". */
|
|
95
|
+
display: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Decode the two-byte firmware response. The specification's incoming
|
|
99
|
+
* struct orders the fields `fw_minor` then `fw_major`, so the display string
|
|
100
|
+
* puts them back in major.minor order.
|
|
101
|
+
*/
|
|
102
|
+
export declare function steelseriesRival100DecodeFirmware(payload: Uint8Array): SteelSeriesRival100Firmware;
|
|
103
|
+
/**
|
|
104
|
+
* `05 00 <r> <g> <b>` — the single LED zone color. The vendor struct also
|
|
105
|
+
* carries a `brightness` byte, but both the vendor's own color-sequencing
|
|
106
|
+
* template and rivalcfg's `rgbcolor` leave it zero, so this codec matches
|
|
107
|
+
* them rather than inventing a brightness semantic.
|
|
108
|
+
*/
|
|
109
|
+
export declare function steelseriesRival100EncodeLedColor(r: number, g: number, b: number): Uint8Array;
|
|
110
|
+
/** `07 00 <mode>` — lighting effect. See `steelseriesRival100EncodeLightEffect`. */
|
|
111
|
+
export declare const RIVAL100_LIGHT_EFFECT_TO_BYTE: {
|
|
112
|
+
readonly steady: 1;
|
|
113
|
+
readonly breath: 3;
|
|
114
|
+
};
|
|
115
|
+
export type Rival100LightEffect = keyof typeof RIVAL100_LIGHT_EFFECT_TO_BYTE;
|
|
116
|
+
/** `07 00 <mode>` — steady or breath. */
|
|
117
|
+
export declare function steelseriesRival100EncodeLightEffect(effect: Rival100LightEffect): Uint8Array;
|
|
118
|
+
/**
|
|
119
|
+
* `0B <mode>` — the button-6 (CPI) button mode. `dpi` keeps hardware DPI
|
|
120
|
+
* switching; `os` reports it as a normal OS-bound button. The Rival 100
|
|
121
|
+
* "PC Bang" edition sends an extra `00 0E 01` packet before this one (see
|
|
122
|
+
* `rival-100-pc-bang.lisp`); that quirk is handled by the driver for that
|
|
123
|
+
* product id.
|
|
124
|
+
*/
|
|
125
|
+
export declare const RIVAL100_BUTTON6_MODE_TO_BYTE: {
|
|
126
|
+
readonly dpi: 0;
|
|
127
|
+
readonly os: 1;
|
|
128
|
+
};
|
|
129
|
+
export type Rival100Button6Mode = keyof typeof RIVAL100_BUTTON6_MODE_TO_BYTE;
|
|
130
|
+
/** `0B <mode>` — dpi or os. */
|
|
131
|
+
export declare function steelseriesRival100EncodeButton6Mode(mode: Rival100Button6Mode): Uint8Array;
|
|
132
|
+
/** `00 0E 01` — the pre-packet the Rival 100 PC Bang edition sends before `0B`. */
|
|
133
|
+
export declare const RIVAL100_PC_BANG_BUTTON6_PREFIX: readonly [0, 14, 1];
|
|
134
|
+
//# sourceMappingURL=rival-100.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rival-100.d.ts","sourceRoot":"","sources":["../../src/steelseries/rival-100.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,eAAO,MAAM,kBAAkB,IAAO,CAAC;AAEvC,sEAAsE;AACtE,eAAO,MAAM,gBAAgB;;;;;;;;;;CAUnB,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,iBAAwB,CAAC;AAE3D,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,eAAO,MAAM,sBAAsB,gCAAiC,CAAC;AASrE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAS3D,CAAC;AAEH,2DAA2D;AAC3D,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAClD,eAAO,MAAM,6BAA6B,O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AAC;AAE7E,+BAA+B;AAC/B,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAQ1F;AAED,mFAAmF;AACnF,eAAO,MAAM,+BAA+B,qBAA8B,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SteelSeries Rival 100 configuration protocol — pure encode/decode helpers.
|
|
3
|
+
*
|
|
4
|
+
* Reconstructed from the vendor's own software, not from a third-party
|
|
5
|
+
* reimplementation: SteelSeries GG 121.0.0 ships `rival-100.lisp` (plus the
|
|
6
|
+
* `rival-100-dell-china`, `rival-100-pc-bang`, `dota2-rival-100-retail`,
|
|
7
|
+
* `dota2-rival-100-lenovo` and `rival-105` files, all of which `include
|
|
8
|
+
* "rival-100"`) under `apps/engine/install/deviceSpecifications/`, and this
|
|
9
|
+
* module transcribes it. Those files are OpenPGP-armored ("DESCRIPTOR"
|
|
10
|
+
* armor, SKESK/AES-128); the bytes below are the documented HID report
|
|
11
|
+
* payloads, not guesses. rivalcfg's `rival100.py` (which lists the same
|
|
12
|
+
* Rival 100/105 product ids) independently corroborates the command bytes.
|
|
13
|
+
*
|
|
14
|
+
* This is the first-generation "rival 100 family" command set shared by the
|
|
15
|
+
* Rival 100, Rival 105, and every Rival 100 special edition. It is not the
|
|
16
|
+
* Rival 110/106/300S command set: those share the same command bytes but use
|
|
17
|
+
* a different sensor table (PixArt PMW3326, 200–7200 DPI), which needs its
|
|
18
|
+
* own module. Do not extend this one to cover them.
|
|
19
|
+
*
|
|
20
|
+
* Every command is an HID **output report** with report id 0x00 (33-byte
|
|
21
|
+
* reports — `HIDIO 33`). Unlike the modern families, **buttons are not
|
|
22
|
+
* remappable** at all: the vendor file stubs `button_mappings`/
|
|
23
|
+
* `wheel_mappings` out as empty, and the only button control is a "button 6
|
|
24
|
+
* mode" toggle (`0B`), which switches the CPI button under the wheel between
|
|
25
|
+
* hardware DPI switching and an OS-bound button.
|
|
26
|
+
*
|
|
27
|
+
* DPI uses two per-level commands (`03 01`/`03 02`) with a **choice** byte,
|
|
28
|
+
* not a linear encoding: the vendor file states the byte but no table (the
|
|
29
|
+
* Rival 100 sensor exposes only eight hardware steps). rivalcfg's
|
|
30
|
+
* `rival100.py` supplies that table — 250→0x08, 500→0x07, 1000→0x06,
|
|
31
|
+
* 1250→0x05, 1500→0x04, 1750→0x03, 2000→0x02, 4000→0x01 (note the
|
|
32
|
+
* *inverted* byte order) — and is the sole source for the mapping, flagged
|
|
33
|
+
* here. Off-table DPI values are rejected. The active preset level is the
|
|
34
|
+
* one readable value (`16 00`).
|
|
35
|
+
*
|
|
36
|
+
* Polling (`04 00`) is write-only (1000→0x01, 500→0x02, 250→0x03,
|
|
37
|
+
* 125→0x04). Lighting is a single zone: color (`05 00` + RGB) and effect
|
|
38
|
+
* (`07 00` + mode). A firmware version (`10 00`, two bytes) is defined for
|
|
39
|
+
* the Rival 105 and the derived files; the Rival 100 base file has the same
|
|
40
|
+
* struct commented out ("removed for security reasons"), but rivalcfg reads
|
|
41
|
+
* it on the Rival 100, so it is exposed here and used by the driver as its
|
|
42
|
+
* connectivity probe (flagged).
|
|
43
|
+
*
|
|
44
|
+
* Settings apply immediately; the save command (`09 00`) persists them to
|
|
45
|
+
* onboard flash. None of this has been verified on physical hardware by
|
|
46
|
+
* this project.
|
|
47
|
+
*/
|
|
48
|
+
export const RIVAL100_REPORT_ID = 0x00;
|
|
49
|
+
/** Command prefixes; the payload is the prefix plus its arguments. */
|
|
50
|
+
export const RIVAL100_COMMAND = {
|
|
51
|
+
sensitivity1: [0x03, 0x01],
|
|
52
|
+
sensitivity2: [0x03, 0x02],
|
|
53
|
+
pollingRate: [0x04, 0x00],
|
|
54
|
+
ledColor: [0x05, 0x00],
|
|
55
|
+
ledPulsation: [0x07, 0x00],
|
|
56
|
+
button6Mode: [0x0b],
|
|
57
|
+
save: [0x09, 0x00],
|
|
58
|
+
firmware: [0x10, 0x00],
|
|
59
|
+
activeCpiIndex: [0x16, 0x00],
|
|
60
|
+
};
|
|
61
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
62
|
+
export const RIVAL100_SAVE_COMMAND = [0x09, 0x00];
|
|
63
|
+
export const RIVAL100_FIRMWARE_RESPONSE_LENGTH = 2;
|
|
64
|
+
export const RIVAL100_POLLING_RATES = [125, 250, 500, 1000];
|
|
65
|
+
const POLLING_RATE_TO_BYTE = new Map([
|
|
66
|
+
[1000, 0x01],
|
|
67
|
+
[500, 0x02],
|
|
68
|
+
[250, 0x03],
|
|
69
|
+
[125, 0x04],
|
|
70
|
+
]);
|
|
71
|
+
/**
|
|
72
|
+
* The eight hardware DPI steps the Rival 100 sensor exposes, from
|
|
73
|
+
* rivalcfg's `rival100.py` `choices` (the vendor file gives no table). Note
|
|
74
|
+
* the inverted byte order: the largest DPI is the smallest byte.
|
|
75
|
+
*/
|
|
76
|
+
export const RIVAL100_DPI_TO_BYTE = new Map([
|
|
77
|
+
[250, 0x08],
|
|
78
|
+
[500, 0x07],
|
|
79
|
+
[1000, 0x06],
|
|
80
|
+
[1250, 0x05],
|
|
81
|
+
[1500, 0x04],
|
|
82
|
+
[1750, 0x03],
|
|
83
|
+
[2000, 0x02],
|
|
84
|
+
[4000, 0x01],
|
|
85
|
+
]);
|
|
86
|
+
/** rivalcfg `rival100.py` defaults for the two presets. */
|
|
87
|
+
export const RIVAL100_DEFAULT_DPI_PRESET_1 = 1000;
|
|
88
|
+
export const RIVAL100_DEFAULT_DPI_PRESET_2 = 2000;
|
|
89
|
+
export const RIVAL100_DEFAULT_POLLING_RATE = 1000;
|
|
90
|
+
export class Rival100ProtocolError extends Error {
|
|
91
|
+
}
|
|
92
|
+
/** The eight supported DPI values, ascending. */
|
|
93
|
+
export function steelseriesRival100DpiOptions() {
|
|
94
|
+
return [...RIVAL100_DPI_TO_BYTE.keys()].sort((a, b) => a - b);
|
|
95
|
+
}
|
|
96
|
+
function encodeDpiByte(dpi) {
|
|
97
|
+
const byte = RIVAL100_DPI_TO_BYTE.get(dpi);
|
|
98
|
+
if (byte === undefined) {
|
|
99
|
+
throw new Rival100ProtocolError(`SteelSeries Rival 100 DPI must be one of: ${steelseriesRival100DpiOptions().join(", ")}.`);
|
|
100
|
+
}
|
|
101
|
+
return byte;
|
|
102
|
+
}
|
|
103
|
+
/** `03 01 <byte>` — sensitivity preset 1. */
|
|
104
|
+
export function steelseriesRival100EncodeSensitivity1(dpi) {
|
|
105
|
+
return new Uint8Array([...RIVAL100_COMMAND.sensitivity1, encodeDpiByte(dpi)]);
|
|
106
|
+
}
|
|
107
|
+
/** `03 02 <byte>` — sensitivity preset 2. */
|
|
108
|
+
export function steelseriesRival100EncodeSensitivity2(dpi) {
|
|
109
|
+
return new Uint8Array([...RIVAL100_COMMAND.sensitivity2, encodeDpiByte(dpi)]);
|
|
110
|
+
}
|
|
111
|
+
/** `04 00 <v>` with 1000→0x01, 500→0x02, 250→0x03, 125→0x04. */
|
|
112
|
+
export function steelseriesRival100EncodePollingRate(pollingRateHz) {
|
|
113
|
+
const byte = POLLING_RATE_TO_BYTE.get(pollingRateHz);
|
|
114
|
+
if (byte === undefined) {
|
|
115
|
+
throw new Rival100ProtocolError("SteelSeries Rival 100 supports 125, 250, 500, or 1000 Hz polling.");
|
|
116
|
+
}
|
|
117
|
+
return new Uint8Array([...RIVAL100_COMMAND.pollingRate, byte]);
|
|
118
|
+
}
|
|
119
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
120
|
+
export function steelseriesRival100SaveCommand() {
|
|
121
|
+
return new Uint8Array(RIVAL100_SAVE_COMMAND);
|
|
122
|
+
}
|
|
123
|
+
/** `10 00` — the device answers with minor then major firmware bytes. */
|
|
124
|
+
export function steelseriesRival100FirmwareQuery() {
|
|
125
|
+
return new Uint8Array(RIVAL100_COMMAND.firmware);
|
|
126
|
+
}
|
|
127
|
+
/** `16 00` — read the active preset index. */
|
|
128
|
+
export function steelseriesRival100ActiveCpiQuery() {
|
|
129
|
+
return new Uint8Array(RIVAL100_COMMAND.activeCpiIndex);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Decode the two-byte firmware response. The specification's incoming
|
|
133
|
+
* struct orders the fields `fw_minor` then `fw_major`, so the display string
|
|
134
|
+
* puts them back in major.minor order.
|
|
135
|
+
*/
|
|
136
|
+
export function steelseriesRival100DecodeFirmware(payload) {
|
|
137
|
+
if (payload.length < RIVAL100_FIRMWARE_RESPONSE_LENGTH) {
|
|
138
|
+
throw new Rival100ProtocolError("SteelSeries Rival 100 firmware response is shorter than two bytes.");
|
|
139
|
+
}
|
|
140
|
+
const bytes = [payload[0], payload[1]];
|
|
141
|
+
return { bytes, display: `${bytes[1]}.${bytes[0]}` };
|
|
142
|
+
}
|
|
143
|
+
// -- LED -------------------------------------------------------------------
|
|
144
|
+
function encodeRgb(r, g, b) {
|
|
145
|
+
for (const channel of [r, g, b]) {
|
|
146
|
+
if (!Number.isInteger(channel) || channel < 0 || channel > 255) {
|
|
147
|
+
throw new Rival100ProtocolError("RGB channels must be integers 0–255.");
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return [r, g, b];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* `05 00 <r> <g> <b>` — the single LED zone color. The vendor struct also
|
|
154
|
+
* carries a `brightness` byte, but both the vendor's own color-sequencing
|
|
155
|
+
* template and rivalcfg's `rgbcolor` leave it zero, so this codec matches
|
|
156
|
+
* them rather than inventing a brightness semantic.
|
|
157
|
+
*/
|
|
158
|
+
export function steelseriesRival100EncodeLedColor(r, g, b) {
|
|
159
|
+
return new Uint8Array([...RIVAL100_COMMAND.ledColor, ...encodeRgb(r, g, b)]);
|
|
160
|
+
}
|
|
161
|
+
/** `07 00 <mode>` — lighting effect. See `steelseriesRival100EncodeLightEffect`. */
|
|
162
|
+
export const RIVAL100_LIGHT_EFFECT_TO_BYTE = {
|
|
163
|
+
steady: 0x01,
|
|
164
|
+
breath: 0x03,
|
|
165
|
+
};
|
|
166
|
+
/** `07 00 <mode>` — steady or breath. */
|
|
167
|
+
export function steelseriesRival100EncodeLightEffect(effect) {
|
|
168
|
+
const byte = RIVAL100_LIGHT_EFFECT_TO_BYTE[effect];
|
|
169
|
+
if (byte === undefined) {
|
|
170
|
+
throw new Rival100ProtocolError(`SteelSeries Rival 100 light effect must be one of: ${Object.keys(RIVAL100_LIGHT_EFFECT_TO_BYTE).join(", ")}.`);
|
|
171
|
+
}
|
|
172
|
+
return new Uint8Array([...RIVAL100_COMMAND.ledPulsation, byte]);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* `0B <mode>` — the button-6 (CPI) button mode. `dpi` keeps hardware DPI
|
|
176
|
+
* switching; `os` reports it as a normal OS-bound button. The Rival 100
|
|
177
|
+
* "PC Bang" edition sends an extra `00 0E 01` packet before this one (see
|
|
178
|
+
* `rival-100-pc-bang.lisp`); that quirk is handled by the driver for that
|
|
179
|
+
* product id.
|
|
180
|
+
*/
|
|
181
|
+
export const RIVAL100_BUTTON6_MODE_TO_BYTE = {
|
|
182
|
+
dpi: 0x00,
|
|
183
|
+
os: 0x01,
|
|
184
|
+
};
|
|
185
|
+
/** `0B <mode>` — dpi or os. */
|
|
186
|
+
export function steelseriesRival100EncodeButton6Mode(mode) {
|
|
187
|
+
const byte = RIVAL100_BUTTON6_MODE_TO_BYTE[mode];
|
|
188
|
+
if (byte === undefined) {
|
|
189
|
+
throw new Rival100ProtocolError(`SteelSeries Rival 100 button-6 mode must be one of: ${Object.keys(RIVAL100_BUTTON6_MODE_TO_BYTE).join(", ")}.`);
|
|
190
|
+
}
|
|
191
|
+
return new Uint8Array([...RIVAL100_COMMAND.button6Mode, byte]);
|
|
192
|
+
}
|
|
193
|
+
/** `00 0E 01` — the pre-packet the Rival 100 PC Bang edition sends before `0B`. */
|
|
194
|
+
export const RIVAL100_PC_BANG_BUTTON6_PREFIX = [0x00, 0x0e, 0x01];
|
|
195
|
+
//# sourceMappingURL=rival-100.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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+BAA+B;AAC/B,MAAM,UAAU,oCAAoC,CAAC,IAAyB;IAC5E,MAAM,IAAI,GAAG,6BAA6B,CAAC,IAAI,CAAC,CAAC;IACjD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,qBAAqB,CAC7B,uDAAuD,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAChH,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,UAAU,CAAC,CAAC,GAAG,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SteelSeries Rival 110 configuration protocol — pure encode/decode helpers.
|
|
3
|
+
*
|
|
4
|
+
* Reconstructed from the vendor's own software, not from a third-party
|
|
5
|
+
* reimplementation: SteelSeries GG 121.0.0 ships `rival-110.lisp`,
|
|
6
|
+
* `rival-106.lisp` and `rival-300s.lisp`, each of which `include "rival-100"`
|
|
7
|
+
* (so the command bytes are Rival 100's) and override only the firmware
|
|
8
|
+
* struct. This module transcribes that command set. Those vendor files are
|
|
9
|
+
* OpenPGP-armored ("DESCRIPTOR" armor, SKESK/AES-128). rivalcfg groups these
|
|
10
|
+
* three product ids under `rival110.py` (with `rival300s.py` reusing it) and
|
|
11
|
+
* independently corroborates every command byte.
|
|
12
|
+
*
|
|
13
|
+
* ## Why this is a separate family from `./rival-100.ts`
|
|
14
|
+
*
|
|
15
|
+
* The Rival 110/106/300S share the Rival 100's command bytes but use the
|
|
16
|
+
* **PixArt PMW3326** sensor, not the Rival 100's eight-step sensor. The
|
|
17
|
+
* vendor files state the DPI byte but no table, so rivalcfg's
|
|
18
|
+
* `dpi/pmw3326.py` supplies it (200–7200 in 100 DPI steps, the "linear-like"
|
|
19
|
+
* sensor curve — notably `0x49`→3200, matching the vendor TrueMove Core
|
|
20
|
+
* table in `./rival-3-v2.ts`). Off-table values are rejected. The Rival 100
|
|
21
|
+
* module's eight-value choice table does not apply here and vice versa,
|
|
22
|
+
* which is exactly why these are two modules.
|
|
23
|
+
*
|
|
24
|
+
* ## Protocol
|
|
25
|
+
*
|
|
26
|
+
* Every command is an HID **output report** with report id 0x00. The vendor
|
|
27
|
+
* file says 33-byte reports (`HIDIO 33`); rivalcfg sets a 32-byte
|
|
28
|
+
* `packet_length` for these models. That padding difference is a transport
|
|
29
|
+
* detail (the driver sends the command bytes), noted here rather than
|
|
30
|
+
* encoded.
|
|
31
|
+
*
|
|
32
|
+
* DPI uses two per-level commands (`03 01`/`03 02`). Polling (`04 00`) is
|
|
33
|
+
* write-only (1000→0x01, 500→0x02, 250→0x03, 125→0x04). Lighting is a single
|
|
34
|
+
* zone: color (`05 00` + RGB) and effect (`07 00` + steady/breath), with the
|
|
35
|
+
* color-sequencing template leaving the brightness byte zero. Button 6 (the
|
|
36
|
+
* CPI button under the wheel) has a mode toggle (`0B`): hardware DPI switch
|
|
37
|
+
* or an OS-bound button. There is **no button remapping** on this family.
|
|
38
|
+
*
|
|
39
|
+
* The two readable values are the firmware version (`10 00`, two bytes,
|
|
40
|
+
* `fw_minor` then `fw_major`) and the active preset index (`16 00`).
|
|
41
|
+
*
|
|
42
|
+
* Settings apply immediately; the save command (`09 00`) persists them to
|
|
43
|
+
* onboard flash. None of this has been verified on physical hardware by this
|
|
44
|
+
* project.
|
|
45
|
+
*/
|
|
46
|
+
export declare const RIVAL110_REPORT_ID = 0;
|
|
47
|
+
/** Command prefixes; the payload is the prefix plus its arguments. */
|
|
48
|
+
export declare const RIVAL110_COMMAND: {
|
|
49
|
+
readonly sensitivity1: readonly [3, 1];
|
|
50
|
+
readonly sensitivity2: readonly [3, 2];
|
|
51
|
+
readonly pollingRate: readonly [4, 0];
|
|
52
|
+
readonly ledColor: readonly [5, 0];
|
|
53
|
+
readonly ledPulsation: readonly [7, 0];
|
|
54
|
+
readonly button6Mode: readonly [11];
|
|
55
|
+
readonly save: readonly [9, 0];
|
|
56
|
+
readonly firmware: readonly [16, 0];
|
|
57
|
+
readonly activeCpiIndex: readonly [22, 0];
|
|
58
|
+
};
|
|
59
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
60
|
+
export declare const RIVAL110_SAVE_COMMAND: readonly [9, 0];
|
|
61
|
+
export declare const RIVAL110_FIRMWARE_RESPONSE_LENGTH = 2;
|
|
62
|
+
export declare const RIVAL110_POLLING_RATES: readonly [125, 250, 500, 1000];
|
|
63
|
+
/**
|
|
64
|
+
* The PixArt PMW3326 DPI curve, from rivalcfg's `dpi/pmw3326.py` (the vendor
|
|
65
|
+
* files give no table). 200–7200 in 100 DPI steps.
|
|
66
|
+
*/
|
|
67
|
+
export declare const RIVAL110_DPI_TO_BYTE: ReadonlyMap<number, number>;
|
|
68
|
+
/** rivalcfg `rival110.py` defaults for the two presets. */
|
|
69
|
+
export declare const RIVAL110_DEFAULT_DPI_PRESET_1 = 800;
|
|
70
|
+
export declare const RIVAL110_DEFAULT_DPI_PRESET_2 = 1600;
|
|
71
|
+
export declare const RIVAL110_DEFAULT_POLLING_RATE = 1000;
|
|
72
|
+
export declare class Rival110ProtocolError extends Error {
|
|
73
|
+
}
|
|
74
|
+
/** The PMW3326 DPI curve supports 200–7200 in 100 DPI steps. */
|
|
75
|
+
export declare const RIVAL110_DPI_MIN = 200;
|
|
76
|
+
export declare const RIVAL110_DPI_MAX = 7200;
|
|
77
|
+
/** The 72 supported DPI values, ascending. */
|
|
78
|
+
export declare function steelseriesRival110DpiOptions(): number[];
|
|
79
|
+
/** `03 01 <byte>` — sensitivity preset 1. */
|
|
80
|
+
export declare function steelseriesRival110EncodeSensitivity1(dpi: number): Uint8Array;
|
|
81
|
+
/** `03 02 <byte>` — sensitivity preset 2. */
|
|
82
|
+
export declare function steelseriesRival110EncodeSensitivity2(dpi: number): Uint8Array;
|
|
83
|
+
/** `04 00 <v>` with 1000→0x01, 500→0x02, 250→0x03, 125→0x04. */
|
|
84
|
+
export declare function steelseriesRival110EncodePollingRate(pollingRateHz: number): Uint8Array;
|
|
85
|
+
/** `09 00` — commit the current settings to onboard flash. */
|
|
86
|
+
export declare function steelseriesRival110SaveCommand(): Uint8Array;
|
|
87
|
+
/** `10 00` — the device answers with minor then major firmware bytes. */
|
|
88
|
+
export declare function steelseriesRival110FirmwareQuery(): Uint8Array;
|
|
89
|
+
/** `16 00` — read the active preset index. */
|
|
90
|
+
export declare function steelseriesRival110ActiveCpiQuery(): Uint8Array;
|
|
91
|
+
/**
|
|
92
|
+
* Decode the active-preset reply. The specification's `resolution_level`
|
|
93
|
+
* incoming struct is `report_id` then `level`, and the reply's report id is
|
|
94
|
+
* not surfaced by WebHID, so the level is the first byte. The device reports
|
|
95
|
+
* it 1-based (values 0x01/0x02); anything else is rejected rather than
|
|
96
|
+
* guessed at.
|
|
97
|
+
*/
|
|
98
|
+
export declare function steelseriesRival110DecodeActivePreset(payload: Uint8Array): 1 | 2;
|
|
99
|
+
export interface SteelSeriesRival110Firmware {
|
|
100
|
+
/** The two raw response bytes, in the order the device sent them (minor, major). */
|
|
101
|
+
bytes: [number, number];
|
|
102
|
+
/** The version the two bytes describe, major first, e.g. "1.3". */
|
|
103
|
+
display: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Decode the two-byte firmware response. The specification's incoming
|
|
107
|
+
* struct orders the fields `fw_minor` then `fw_major`, so the display string
|
|
108
|
+
* puts them back in major.minor order.
|
|
109
|
+
*/
|
|
110
|
+
export declare function steelseriesRival110DecodeFirmware(payload: Uint8Array): SteelSeriesRival110Firmware;
|
|
111
|
+
/**
|
|
112
|
+
* `05 00 <r> <g> <b>` — the single LED zone color. The vendor struct also
|
|
113
|
+
* carries a `brightness` byte, but both the vendor's own color-sequencing
|
|
114
|
+
* template and rivalcfg's `rgbcolor` leave it zero, so this codec matches
|
|
115
|
+
* them rather than inventing a brightness semantic.
|
|
116
|
+
*/
|
|
117
|
+
export declare function steelseriesRival110EncodeLedColor(r: number, g: number, b: number): Uint8Array;
|
|
118
|
+
/** `07 00 <mode>` — lighting effect. */
|
|
119
|
+
export declare const RIVAL110_LIGHT_EFFECT_TO_BYTE: {
|
|
120
|
+
readonly steady: 1;
|
|
121
|
+
readonly breath: 3;
|
|
122
|
+
};
|
|
123
|
+
export type Rival110LightEffect = keyof typeof RIVAL110_LIGHT_EFFECT_TO_BYTE;
|
|
124
|
+
/** `07 00 <mode>` — steady or breath. */
|
|
125
|
+
export declare function steelseriesRival110EncodeLightEffect(effect: Rival110LightEffect): Uint8Array;
|
|
126
|
+
/** `0B <mode>` — the button-6 (CPI) button mode. */
|
|
127
|
+
export declare const RIVAL110_BUTTON6_MODE_TO_BYTE: {
|
|
128
|
+
readonly dpi: 0;
|
|
129
|
+
readonly os: 1;
|
|
130
|
+
};
|
|
131
|
+
export type Rival110Button6Mode = keyof typeof RIVAL110_BUTTON6_MODE_TO_BYTE;
|
|
132
|
+
/** `0B <mode>` — dpi or os. */
|
|
133
|
+
export declare function steelseriesRival110EncodeButton6Mode(mode: Rival110Button6Mode): Uint8Array;
|
|
134
|
+
//# sourceMappingURL=rival-110.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rival-110.d.ts","sourceRoot":"","sources":["../../src/steelseries/rival-110.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,eAAO,MAAM,kBAAkB,IAAO,CAAC;AAEvC,sEAAsE;AACtE,eAAO,MAAM,gBAAgB;;;;;;;;;;CAUnB,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,iBAAwB,CAAC;AAE3D,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,eAAO,MAAM,sBAAsB,gCAAiC,CAAC;AASrE;;;G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