cubing 0.63.3 → 0.63.4

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.
Files changed (150) hide show
  1. package/README.md +15 -1
  2. package/alg/index.d.ts +1 -1
  3. package/bluetooth/index.d.ts +1 -1
  4. package/dist/bin/chunks/{chunk-OI3YIXMQ.js → chunk-E6RYEKYL.js} +2 -2
  5. package/dist/bin/order.js +8 -4
  6. package/dist/bin/order.js.map +2 -2
  7. package/dist/bin/puzzle-geometry-bin.js +8 -4
  8. package/dist/bin/puzzle-geometry-bin.js.map +2 -2
  9. package/dist/bin/scramble.js +8 -4
  10. package/dist/bin/scramble.js.map +2 -2
  11. package/dist/bin/svg.js +56 -0
  12. package/dist/bin/svg.js.map +7 -0
  13. package/dist/lib/cubing/alg/index.d.ts +2 -84
  14. package/dist/lib/cubing/alg/index.js +1 -1
  15. package/dist/lib/cubing/bluetooth/index.d.ts +147 -134
  16. package/dist/lib/cubing/bluetooth/index.js +29 -5
  17. package/dist/lib/cubing/bluetooth/index.js.map +2 -2
  18. package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js → big-puzzle-orientation-ADWIOX6S.js} +2 -2
  19. package/dist/lib/cubing/chunks/{chunk-44CFF24P.js → chunk-53SI7XS4.js} +14 -4
  20. package/dist/lib/cubing/chunks/chunk-53SI7XS4.js.map +7 -0
  21. package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js → chunk-5ONX3JVC.js} +7 -2
  22. package/dist/lib/cubing/chunks/{chunk-RINY3U6G.js.map → chunk-5ONX3JVC.js.map} +1 -1
  23. package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js → chunk-7LXHWXCO.js} +2 -2
  24. package/dist/lib/cubing/chunks/{chunk-E3YLQC45.js → chunk-GHFBZYSV.js} +2 -2
  25. package/dist/lib/cubing/chunks/chunk-GHFBZYSV.js.map +7 -0
  26. package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js → chunk-JCCXEYXU.js} +4 -3
  27. package/dist/lib/cubing/chunks/{chunk-ZU7PSGX4.js.map → chunk-JCCXEYXU.js.map} +1 -1
  28. package/dist/lib/cubing/chunks/{chunk-DQGYYYHZ.js → chunk-LD4XJTCU.js} +28 -13
  29. package/dist/lib/cubing/chunks/chunk-LD4XJTCU.js.map +7 -0
  30. package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js → chunk-N5FJ5YIA.js} +4 -3
  31. package/dist/lib/cubing/chunks/{chunk-O6HEZXGY.js.map → chunk-N5FJ5YIA.js.map} +1 -1
  32. package/dist/lib/cubing/chunks/{chunk-NGW52SHR.js → chunk-S74APGTK.js} +3 -3
  33. package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js → chunk-VYAO5FCM.js} +7 -7
  34. package/dist/lib/cubing/chunks/{chunk-FLK6AZKB.js.map → chunk-VYAO5FCM.js.map} +2 -2
  35. package/dist/lib/cubing/chunks/{chunk-FUHYAW74.js → chunk-WBMKMQAL.js} +49 -63
  36. package/dist/lib/cubing/chunks/chunk-WBMKMQAL.js.map +7 -0
  37. package/dist/lib/cubing/chunks/{chunk-FTE3QI5X.js → chunk-XVZLWT3A.js} +42 -47
  38. package/dist/lib/cubing/chunks/chunk-XVZLWT3A.js.map +7 -0
  39. package/dist/lib/cubing/chunks/{inside-L2JI2BEY.js → inside-VUJSPBRA.js} +53 -25
  40. package/dist/lib/cubing/chunks/inside-VUJSPBRA.js.map +7 -0
  41. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js +132 -0
  42. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-AIGABOAR.js.map +7 -0
  43. package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js → search-dynamic-sgs-side-events-LHAMZP5J.js} +6 -6
  44. package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-CM33KT7L.js → search-dynamic-sgs-unofficial-GXKMVR4W.js} +6 -5
  45. package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-NANDMURR.js → search-dynamic-solve-4x4x4-N2X3RMYU.js} +7 -6
  46. package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js → search-dynamic-solve-fto-I5ID5LXD.js} +2 -2
  47. package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js +771 -0
  48. package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-Y2D3C74Y.js.map +7 -0
  49. package/dist/lib/cubing/chunks/search-worker-entry.js +7 -6
  50. package/dist/lib/cubing/chunks/search-worker-entry.js.map +2 -2
  51. package/dist/lib/cubing/chunks/{twips-YHXBF55O.js → twips-ZNMKGC5U.js} +4 -4
  52. package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js +10 -0
  53. package/dist/lib/cubing/chunks/twips_wasm_bg-TJNYGA2C-AP2O4LGG.js.map +7 -0
  54. package/dist/lib/cubing/chunks/{twisty-dynamic-3d-VGZIQ64W.js → twisty-dynamic-3d-LSRGWTXG.js} +22 -7
  55. package/dist/lib/cubing/chunks/{twisty-dynamic-3d-VGZIQ64W.js.map → twisty-dynamic-3d-LSRGWTXG.js.map} +2 -2
  56. package/dist/lib/cubing/index-BXHm_6gm.d.ts +2626 -0
  57. package/dist/lib/cubing/index-Cvk652Bd.d.ts +76 -0
  58. package/dist/lib/cubing/kpuzzle/index.d.ts +2 -3
  59. package/dist/lib/cubing/kpuzzle/index.js +2 -2
  60. package/dist/lib/cubing/notation/index.d.ts +18 -17
  61. package/dist/lib/cubing/notation/index.js +4 -4
  62. package/dist/lib/cubing/outside-CwNOEuJJ.d.ts +38 -0
  63. package/dist/lib/cubing/protocol/index.d.ts +14 -14
  64. package/dist/lib/cubing/protocol/index.js +4 -4
  65. package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -8
  66. package/dist/lib/cubing/puzzle-geometry/index.js +33 -1
  67. package/dist/lib/cubing/puzzle-geometry/index.js.map +1 -1
  68. package/dist/lib/cubing/puzzles/index.d.ts +2 -45
  69. package/dist/lib/cubing/puzzles/index.js +4 -4
  70. package/dist/lib/cubing/scramble/index.d.ts +2 -4
  71. package/dist/lib/cubing/scramble/index.js +6 -6
  72. package/dist/lib/cubing/search/index.d.ts +4 -9
  73. package/dist/lib/cubing/search/index.js +6 -6
  74. package/dist/lib/cubing/stream/index.d.ts +2 -45
  75. package/dist/lib/cubing/stream/index.js +1 -1
  76. package/dist/lib/cubing/twisty/index.d.ts +2 -60
  77. package/dist/lib/cubing/twisty/index.js +65 -17
  78. package/dist/lib/cubing/twisty/index.js.map +2 -2
  79. package/kpuzzle/index.d.ts +1 -1
  80. package/notation/index.d.ts +1 -1
  81. package/package.json +19 -20
  82. package/protocol/index.d.ts +1 -1
  83. package/puzzle-geometry/index.d.ts +1 -1
  84. package/puzzles/index.d.ts +1 -1
  85. package/scramble/index.d.ts +1 -1
  86. package/search/index.d.ts +1 -1
  87. package/stream/index.d.ts +1 -1
  88. package/twisty/index.d.ts +1 -1
  89. package/dist/lib/cubing/PuzzleLoader-Bp8zngUn.d.ts +0 -2362
  90. package/dist/lib/cubing/chunks/chunk-44CFF24P.js.map +0 -7
  91. package/dist/lib/cubing/chunks/chunk-DQGYYYHZ.js.map +0 -7
  92. package/dist/lib/cubing/chunks/chunk-E3YLQC45.js.map +0 -7
  93. package/dist/lib/cubing/chunks/chunk-FTE3QI5X.js.map +0 -7
  94. package/dist/lib/cubing/chunks/chunk-FUHYAW74.js.map +0 -7
  95. package/dist/lib/cubing/chunks/chunk-FZBKZ5ZB.js +0 -265
  96. package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js +0 -1180
  97. package/dist/lib/cubing/chunks/chunk-LWCBAAHO.js.map +0 -7
  98. package/dist/lib/cubing/chunks/chunk-M7YKTETT.js +0 -239
  99. package/dist/lib/cubing/chunks/chunk-M7YKTETT.js.map +0 -7
  100. package/dist/lib/cubing/chunks/chunk-NGW52SHR.js.map +0 -7
  101. package/dist/lib/cubing/chunks/chunk-OUM32GEA.js +0 -239
  102. package/dist/lib/cubing/chunks/chunk-OUM32GEA.js.map +0 -7
  103. package/dist/lib/cubing/chunks/chunk-SGJ5WPE4.js +0 -1074
  104. package/dist/lib/cubing/chunks/chunk-SGJ5WPE4.js.map +0 -7
  105. package/dist/lib/cubing/chunks/chunk-TAVR35KU.js +0 -265
  106. package/dist/lib/cubing/chunks/chunk-TAVR35KU.js.map +0 -7
  107. package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js +0 -1074
  108. package/dist/lib/cubing/chunks/chunk-V27EM5TJ.js.map +0 -7
  109. package/dist/lib/cubing/chunks/chunk-VRTKWZPL.js +0 -10084
  110. package/dist/lib/cubing/chunks/chunk-VRTKWZPL.js.map +0 -7
  111. package/dist/lib/cubing/chunks/chunk-VSMFYTG6.js +0 -10086
  112. package/dist/lib/cubing/chunks/chunk-VSMFYTG6.js.map +0 -7
  113. package/dist/lib/cubing/chunks/inside-IHWQVDVU.js +0 -564
  114. package/dist/lib/cubing/chunks/inside-IHWQVDVU.js.map +0 -7
  115. package/dist/lib/cubing/chunks/inside-L2JI2BEY.js.map +0 -7
  116. package/dist/lib/cubing/chunks/inside-Q56GLXG4.js +0 -556
  117. package/dist/lib/cubing/chunks/inside-Q56GLXG4.js.map +0 -7
  118. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js +0 -124
  119. package/dist/lib/cubing/chunks/puzzles-dynamic-4x4x4-REUXFQJ4.js.map +0 -7
  120. package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-MXHP7O4R.js +0 -1890
  121. package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-MXHP7O4R.js.map +0 -7
  122. package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-XFECDWOF.js +0 -1890
  123. package/dist/lib/cubing/chunks/search-dynamic-sgs-side-events-XFECDWOF.js.map +0 -7
  124. package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-2CECFBP3.js +0 -1268
  125. package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-CM33KT7L.js.map +0 -7
  126. package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-Q4LLHL2O.js +0 -1267
  127. package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-Q4LLHL2O.js.map +0 -7
  128. package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-COSEVJBV.js +0 -2922
  129. package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-COSEVJBV.js.map +0 -7
  130. package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-E576AITS.js +0 -2923
  131. package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-NANDMURR.js.map +0 -7
  132. package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js +0 -10
  133. package/dist/lib/cubing/chunks/twips_wasm_bg-RWVQBVBA-5YCKA6O5.js.map +0 -7
  134. package/dist/lib/cubing/chunks/twisty-dynamic-3d-5NZRNZ7C.js +0 -1881
  135. package/dist/lib/cubing/chunks/twisty-dynamic-3d-5NZRNZ7C.js.map +0 -7
  136. package/dist/lib/cubing/chunks/twisty-dynamic-3d-IKE4BUQG.js +0 -1883
  137. package/dist/lib/cubing/chunks/twisty-dynamic-3d-IKE4BUQG.js.map +0 -7
  138. package/dist/lib/cubing/chunks/twisty-dynamic-3d-XLUOPCLN.js +0 -1881
  139. package/dist/lib/cubing/chunks/twisty-dynamic-3d-XLUOPCLN.js.map +0 -7
  140. package/dist/lib/cubing/events-CewDA1aS.d.ts +0 -35
  141. package/dist/lib/cubing/index-DabjED-w.d.ts +0 -33
  142. /package/dist/bin/chunks/{chunk-OI3YIXMQ.js.map → chunk-E6RYEKYL.js.map} +0 -0
  143. /package/dist/lib/cubing/chunks/{big-puzzle-orientation-ZVZQJEF5.js.map → big-puzzle-orientation-ADWIOX6S.js.map} +0 -0
  144. /package/dist/lib/cubing/chunks/{chunk-ROB5TROI.js.map → chunk-7LXHWXCO.js.map} +0 -0
  145. /package/dist/lib/cubing/chunks/{chunk-FZBKZ5ZB.js.map → chunk-S74APGTK.js.map} +0 -0
  146. /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-GB4WAJ7I.js.map → search-dynamic-sgs-side-events-LHAMZP5J.js.map} +0 -0
  147. /package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-2CECFBP3.js.map → search-dynamic-sgs-unofficial-GXKMVR4W.js.map} +0 -0
  148. /package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-E576AITS.js.map → search-dynamic-solve-4x4x4-N2X3RMYU.js.map} +0 -0
  149. /package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-UZMNOI6U.js.map → search-dynamic-solve-fto-I5ID5LXD.js.map} +0 -0
  150. /package/dist/lib/cubing/chunks/{twips-YHXBF55O.js.map → twips-ZNMKGC5U.js.map} +0 -0
@@ -1,176 +1,189 @@
1
- import { A as AlgLeafEvent, O as OrientationEvent } from '../events-CewDA1aS.js';
2
- import { K as KPattern, t as PuzzleID, s as PuzzleLoader, a0 as KeyMapping, r as Alg, M as Move, z as MillisecondTimestamp } from '../PuzzleLoader-Bp8zngUn.js';
3
- import 'type-fest';
4
- import 'three/src/Three.js';
1
+ /// <reference types="web-bluetooth" />
5
2
 
6
- declare function enableDebugLogging(enable: boolean): void;
3
+ import { At as Move, D as PuzzleID, I as MillisecondTimestamp, R as KPattern, c as PuzzleLoader, gt as Alg, s as KeyMapping } from "../index-BXHm_6gm.js";
4
+ import { a as OrientationEvent, i as AlgLeafEvent } from "../index-Cvk652Bd.js";
7
5
 
6
+ //#region src/cubing/bluetooth/debug.d.ts
7
+ declare function enableDebugLogging(enable: boolean): void;
8
+ //#endregion
9
+ //#region src/cubing/bluetooth/transformer.d.ts
8
10
  interface StreamTransformer {
9
- transformAlgLeaf(algLeafEvent: AlgLeafEvent): void;
10
- transformOrientation(orientationEvent: OrientationEvent): void;
11
+ transformAlgLeaf(algLeafEvent: AlgLeafEvent): void;
12
+ transformOrientation(orientationEvent: OrientationEvent): void;
11
13
  }
12
-
14
+ //#endregion
15
+ //#region src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts
13
16
  /** @category Smart Puzzles */
14
17
  declare abstract class BluetoothPuzzle extends EventTarget {
15
- transformers: StreamTransformer[];
16
- protected listeners: Array<(e: AlgLeafEvent) => void>;
17
- protected orientationListeners: Array<(e: OrientationEvent) => void>;
18
- abstract name(): string | undefined;
19
- abstract disconnect(): void;
20
- getPattern(): Promise<KPattern>;
21
- addAlgLeafListener(listener: (e: AlgLeafEvent) => void): void;
22
- addOrientationListener(listener: (e: OrientationEvent) => void): void;
23
- experimentalAddBasicRotationTransformer(): void;
24
- protected dispatchAlgLeaf(algLeaf: AlgLeafEvent): void;
25
- protected dispatchOrientation(orientationEvent: OrientationEvent): void;
18
+ transformers: StreamTransformer[];
19
+ protected listeners: Array<(e: AlgLeafEvent) => void>;
20
+ protected orientationListeners: Array<(e: OrientationEvent) => void>;
21
+ abstract name(): string | undefined;
22
+ abstract disconnect(): void;
23
+ getPattern(): Promise<KPattern>;
24
+ addAlgLeafListener(listener: (e: AlgLeafEvent) => void): void;
25
+ addOrientationListener(listener: (e: OrientationEvent) => void): void;
26
+ experimentalAddBasicRotationTransformer(): void;
27
+ protected dispatchAlgLeaf(algLeaf: AlgLeafEvent): void;
28
+ protected dispatchOrientation(orientationEvent: OrientationEvent): void;
26
29
  }
27
-
30
+ //#endregion
31
+ //#region src/cubing/bluetooth/keyboard.d.ts
28
32
  /** @category Keyboard Puzzles */
29
33
  declare class KeyboardPuzzle extends BluetoothPuzzle {
30
- private target;
31
- private keyMappingAndPatternPromise;
32
- listener: EventListener;
33
- constructor(target: Element, puzzle?: PuzzleID | PuzzleLoader);
34
- name(): string | undefined;
35
- setPuzzleInternal(puzzle: PuzzleID | PuzzleLoader): Promise<[KeyMapping | undefined, KPattern]>;
36
- disconnect(): void;
37
- getPattern(): Promise<KPattern>;
38
- private onKeyDown;
34
+ private target;
35
+ private keyMappingAndPatternPromise;
36
+ listener: EventListener;
37
+ constructor(target: Element, puzzle?: PuzzleID | PuzzleLoader);
38
+ name(): string | undefined;
39
+ setPuzzleInternal(puzzle: PuzzleID | PuzzleLoader): Promise<[KeyMapping | undefined, KPattern]>;
40
+ disconnect(): void;
41
+ getPattern(): Promise<KPattern>;
42
+ private onKeyDown;
39
43
  }
40
44
  /** @category Keyboard Puzzles */
41
45
  declare function debugKeyboardConnect(target?: any, puzzle?: PuzzleID | PuzzleLoader): Promise<KeyboardPuzzle>;
42
-
46
+ //#endregion
47
+ //#region src/cubing/bluetooth/connect/index.d.ts
43
48
  /******** connect() ********/
44
49
  interface BluetoothConnectOptions {
45
- acceptAllDevices?: boolean;
50
+ acceptAllDevices?: boolean;
46
51
  }
47
-
52
+ //#endregion
53
+ //#region src/cubing/bluetooth/smart-puzzle/connect.d.ts
48
54
  /** @category Smart Puzzles */
49
55
  declare function connectSmartPuzzle(options?: BluetoothConnectOptions): Promise<BluetoothPuzzle>;
50
-
56
+ //#endregion
57
+ //#region src/cubing/bluetooth/smart-puzzle/gan.d.ts
51
58
  /** @category Smart Puzzles */
52
59
  declare class GanCube extends BluetoothPuzzle {
53
- private kpuzzle;
54
- private service;
55
- private server;
56
- private physicalStateCharacteristic;
57
- private lastMoveCounter;
58
- private aesKey;
59
- static connect(server: BluetoothRemoteGATTServer): Promise<GanCube>;
60
- INTERVAL_MS: number;
61
- private intervalHandle;
62
- private pattern;
63
- private cachedFaceletStatus1Characteristic;
64
- private cachedFaceletStatus2Characteristic;
65
- private cachedActualAngleAndBatteryCharacteristic;
66
- private constructor();
67
- name(): string | undefined;
68
- disconnect(): void;
69
- startTrackingMoves(): void;
70
- stopTrackingMoves(): void;
71
- intervalHandler(): Promise<void>;
72
- getBattery(): Promise<number>;
73
- getPattern(): Promise<KPattern>;
74
- faceletStatus1Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
75
- faceletStatus2Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
76
- actualAngleAndBatteryCharacteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
77
- reset(): Promise<void>;
78
- readFaceletStatus1Characteristic(): Promise<ArrayBufferLike>;
79
- readFaceletStatus2Characteristic(): Promise<string>;
80
- readActualAngleAndBatteryCharacteristic(): Promise<ArrayBufferLike>;
60
+ private kpuzzle;
61
+ private service;
62
+ private server;
63
+ private physicalStateCharacteristic;
64
+ private lastMoveCounter;
65
+ private aesKey;
66
+ static connect(server: BluetoothRemoteGATTServer): Promise<GanCube>;
67
+ INTERVAL_MS: number;
68
+ private intervalHandle;
69
+ private pattern;
70
+ private cachedFaceletStatus1Characteristic;
71
+ private cachedFaceletStatus2Characteristic;
72
+ private cachedActualAngleAndBatteryCharacteristic;
73
+ private constructor();
74
+ name(): string | undefined;
75
+ disconnect(): void;
76
+ startTrackingMoves(): void;
77
+ stopTrackingMoves(): void;
78
+ intervalHandler(): Promise<void>;
79
+ getBattery(): Promise<number>;
80
+ getPattern(): Promise<KPattern>;
81
+ faceletStatus1Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
82
+ faceletStatus2Characteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
83
+ actualAngleAndBatteryCharacteristic(): Promise<BluetoothRemoteGATTCharacteristic>;
84
+ reset(): Promise<void>;
85
+ readFaceletStatus1Characteristic(): Promise<ArrayBufferLike>;
86
+ readFaceletStatus2Characteristic(): Promise<string>;
87
+ readActualAngleAndBatteryCharacteristic(): Promise<ArrayBufferLike>;
81
88
  }
82
-
89
+ //#endregion
90
+ //#region src/cubing/bluetooth/smart-puzzle/giiker.d.ts
83
91
  /** @category Smart Puzzles */
84
92
  declare class GiiKERCube extends BluetoothPuzzle {
85
- private server;
86
- private cubeCharacteristic;
87
- private originalValue?;
88
- static connect(server: BluetoothRemoteGATTServer): Promise<GiiKERCube>;
89
- private constructor();
90
- name(): string | undefined;
91
- disconnect(): void;
92
- getPattern(): Promise<KPattern>;
93
- private getBit;
94
- private toReid333;
95
- private onCubeCharacteristicChanged;
96
- private isRepeatedInitialValue;
93
+ private server;
94
+ private cubeCharacteristic;
95
+ private originalValue?;
96
+ static connect(server: BluetoothRemoteGATTServer): Promise<GiiKERCube>;
97
+ private constructor();
98
+ name(): string | undefined;
99
+ disconnect(): void;
100
+ getPattern(): Promise<KPattern>;
101
+ private getBit;
102
+ private toReid333;
103
+ private onCubeCharacteristicChanged;
104
+ private isRepeatedInitialValue;
97
105
  }
98
-
106
+ //#endregion
107
+ //#region src/cubing/bluetooth/smart-puzzle/gocube.d.ts
99
108
  /** @category Smart Puzzles */
100
109
  declare class GoCube extends BluetoothPuzzle {
101
- private server;
102
- goCubeStateCharacteristic: BluetoothRemoteGATTCharacteristic;
103
- static connect(server: BluetoothRemoteGATTServer): Promise<GoCube>;
104
- private recorded;
105
- private homeQuatInverse;
106
- private lastRawQuat;
107
- private currentQuat;
108
- private lastTarget;
109
- private alg;
110
- private constructor();
111
- disconnect(): void;
112
- reset(): void;
113
- resetAlg(alg?: Alg): void;
114
- resetOrientation(): void;
115
- name(): string | undefined;
116
- private onCubeCharacteristicChanged;
110
+ private server;
111
+ goCubeStateCharacteristic: BluetoothRemoteGATTCharacteristic;
112
+ static connect(server: BluetoothRemoteGATTServer): Promise<GoCube>;
113
+ private recorded;
114
+ private homeQuatInverse;
115
+ private lastRawQuat;
116
+ private currentQuat;
117
+ private lastTarget;
118
+ private alg;
119
+ private constructor();
120
+ disconnect(): void;
121
+ reset(): void;
122
+ resetAlg(alg?: Alg): void;
123
+ resetOrientation(): void;
124
+ name(): string | undefined;
125
+ private onCubeCharacteristicChanged;
117
126
  }
118
-
127
+ //#endregion
128
+ //#region src/cubing/bluetooth/smart-robot/GanRobot.d.ts
119
129
  interface GanRobotOptions {
120
- xAngle: boolean;
121
- singleMoveFixHack: boolean;
122
- bufferQueue: number;
123
- postSleep: number;
130
+ xAngle: boolean;
131
+ singleMoveFixHack: boolean;
132
+ bufferQueue: number;
133
+ postSleep: number;
124
134
  }
125
135
  /** @category Robots */
126
136
  declare class GanRobot extends EventTarget {
127
- private server;
128
- private statusCharacteristic;
129
- private moveCharacteristic;
130
- experimentalDebugOnSend: ((alg: Alg) => void) | null;
131
- experimentalDebugLog: typeof console.log;
132
- experimentalOptions: GanRobotOptions;
133
- constructor(_service: BluetoothRemoteGATTService, server: BluetoothRemoteGATTServer, device: BluetoothDevice, statusCharacteristic: BluetoothRemoteGATTCharacteristic, moveCharacteristic: BluetoothRemoteGATTCharacteristic);
134
- static connect(server: BluetoothRemoteGATTServer, device: BluetoothDevice): Promise<GanRobot>;
135
- name(): string | undefined;
136
- disconnect(): void;
137
- onDisconnect(): void;
138
- private algNodeToNibble;
139
- private writeNibbles;
140
- private getStatus;
141
- locked: boolean;
142
- processQueue(): void;
143
- private moveQueue;
144
- private queueMoves;
145
- applyMoves(moves: Iterable<Move>): Promise<void>;
137
+ private server;
138
+ private statusCharacteristic;
139
+ private moveCharacteristic;
140
+ experimentalDebugOnSend: ((alg: Alg) => void) | null;
141
+ experimentalDebugLog: typeof console.log;
142
+ experimentalOptions: GanRobotOptions;
143
+ constructor(_service: BluetoothRemoteGATTService, server: BluetoothRemoteGATTServer, device: BluetoothDevice, statusCharacteristic: BluetoothRemoteGATTCharacteristic, moveCharacteristic: BluetoothRemoteGATTCharacteristic);
144
+ static connect(server: BluetoothRemoteGATTServer, device: BluetoothDevice): Promise<GanRobot>;
145
+ name(): string | undefined;
146
+ disconnect(): void;
147
+ onDisconnect(): void;
148
+ private algNodeToNibble;
149
+ private writeNibbles;
150
+ private getStatus;
151
+ locked: boolean;
152
+ processQueue(): void;
153
+ private moveQueue;
154
+ private queueMoves;
155
+ applyMoves(moves: Iterable<Move>): Promise<void>;
146
156
  }
147
-
157
+ //#endregion
158
+ //#region src/cubing/bluetooth/smart-robot/index.d.ts
148
159
  /** @category Robots */
149
160
  type BluetoothRobot = GanRobot;
150
161
  /** @category Robots */
151
162
  declare function connectSmartRobot(options?: BluetoothConnectOptions): Promise<BluetoothRobot>;
152
-
163
+ //#endregion
164
+ //#region src/cubing/bluetooth/smart-timer/GanTimer.d.ts
153
165
  /** @category Timers */
154
166
  declare class GanTimer extends EventTarget {
155
- private server;
156
- private timeCharacteristic;
157
- private polling;
158
- private previousDetail;
159
- constructor(_service: BluetoothRemoteGATTService, server: BluetoothRemoteGATTServer, device: BluetoothDevice, timeCharacteristic: BluetoothRemoteGATTCharacteristic);
160
- static connect(server: BluetoothRemoteGATTServer, device: BluetoothDevice): Promise<GanTimer>;
161
- disconnect(): void;
162
- poll(): Promise<void>;
163
- onDisconnect(): void;
164
- getTimeCharacteristic(): Promise<Uint8Array<ArrayBufferLike>>;
165
- getTime(): Promise<MillisecondTimestamp>;
166
- decodeTimeMs(bytes: Uint8Array): MillisecondTimestamp;
167
- startPolling(): void;
168
- stopPolling(): void;
167
+ private server;
168
+ private timeCharacteristic;
169
+ private polling;
170
+ private previousDetail;
171
+ constructor(_service: BluetoothRemoteGATTService, server: BluetoothRemoteGATTServer, device: BluetoothDevice, timeCharacteristic: BluetoothRemoteGATTCharacteristic);
172
+ static connect(server: BluetoothRemoteGATTServer, device: BluetoothDevice): Promise<GanTimer>;
173
+ disconnect(): void;
174
+ poll(): Promise<void>;
175
+ onDisconnect(): void;
176
+ getTimeCharacteristic(): Promise<Uint8Array<ArrayBufferLike>>;
177
+ getTime(): Promise<MillisecondTimestamp>;
178
+ decodeTimeMs(bytes: Uint8Array): MillisecondTimestamp;
179
+ startPolling(): void;
180
+ stopPolling(): void;
169
181
  }
170
-
182
+ //#endregion
183
+ //#region src/cubing/bluetooth/smart-timer/index.d.ts
171
184
  /** @category Timers */
172
185
  type BluetoothTimer = GanTimer;
173
186
  /** @category Timers */
174
187
  declare function connectSmartTimer(options?: BluetoothConnectOptions): Promise<BluetoothTimer>;
175
-
176
- export { BluetoothPuzzle, type BluetoothRobot, type BluetoothTimer, GanCube, GiiKERCube, GoCube, KeyboardPuzzle, AlgLeafEvent as MoveEvent, OrientationEvent, connectSmartPuzzle, connectSmartRobot, connectSmartTimer, debugKeyboardConnect, enableDebugLogging };
188
+ //#endregion
189
+ export { type BluetoothPuzzle, type BluetoothRobot, type BluetoothTimer, GanCube, GiiKERCube, GoCube, KeyboardPuzzle, type AlgLeafEvent as MoveEvent, type OrientationEvent, connectSmartPuzzle, connectSmartRobot, connectSmartTimer, debugKeyboardConnect, enableDebugLogging };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  binaryComponentsToReid3x3x3,
3
3
  twizzleBinaryToBinaryComponents
4
- } from "../chunks/chunk-NGW52SHR.js";
4
+ } from "../chunks/chunk-S74APGTK.js";
5
5
  import {
6
6
  puzzles
7
- } from "../chunks/chunk-FLK6AZKB.js";
7
+ } from "../chunks/chunk-VYAO5FCM.js";
8
8
  import {
9
9
  cube3x3x3,
10
10
  experimental3x3x3KPuzzle
11
- } from "../chunks/chunk-FUHYAW74.js";
11
+ } from "../chunks/chunk-WBMKMQAL.js";
12
12
  import {
13
13
  KPattern
14
- } from "../chunks/chunk-RINY3U6G.js";
14
+ } from "../chunks/chunk-5ONX3JVC.js";
15
15
  import {
16
16
  Alg,
17
17
  Move,
18
18
  experimentalAppendMove,
19
19
  keyToMove
20
- } from "../chunks/chunk-O6HEZXGY.js";
20
+ } from "../chunks/chunk-N5FJ5YIA.js";
21
21
 
22
22
  // src/cubing/bluetooth/debug.ts
23
23
  var DEBUG_LOGGING_ENABLED = false;
@@ -142,6 +142,7 @@ var KeyboardPuzzle = class extends BluetoothPuzzle {
142
142
  target.addEventListener("keydown", this.listener);
143
143
  this.keyMappingAndPatternPromise = this.setPuzzleInternal(puzzle);
144
144
  }
145
+ target;
145
146
  keyMappingAndPatternPromise;
146
147
  listener;
147
148
  name() {
@@ -424,6 +425,8 @@ var PhysicalState = class _PhysicalState {
424
425
  throw new Error("Unexpected array length");
425
426
  }
426
427
  }
428
+ dataView;
429
+ timeStamp;
427
430
  static async read(characteristic, aesKey) {
428
431
  const value = await decryptPattern(
429
432
  new Uint8Array((await characteristic.readValue()).buffer),
@@ -571,6 +574,12 @@ var GanCube = class _GanCube extends BluetoothPuzzle {
571
574
  this.pattern = kpuzzle.defaultPattern();
572
575
  this.startTrackingMoves();
573
576
  }
577
+ kpuzzle;
578
+ service;
579
+ server;
580
+ physicalStateCharacteristic;
581
+ lastMoveCounter;
582
+ aesKey;
574
583
  // We have to perform async operations before we call the constructor.
575
584
  static async connect(server) {
576
585
  const ganCubeService = await server.getPrimaryService(UUIDs.ganCubeService);
@@ -833,6 +842,9 @@ var GiiKERCube = class _GiiKERCube extends BluetoothPuzzle {
833
842
  this.cubeCharacteristic = cubeCharacteristic;
834
843
  this.originalValue = originalValue;
835
844
  }
845
+ server;
846
+ cubeCharacteristic;
847
+ originalValue;
836
848
  static async connect(server) {
837
849
  const cubeService = await server.getPrimaryService(UUIDs2.cubeService);
838
850
  debugLog("Service:", cubeService);
@@ -999,6 +1011,8 @@ var GoCube = class _GoCube extends BluetoothPuzzle {
999
1011
  this.server = server;
1000
1012
  this.goCubeStateCharacteristic = goCubeStateCharacteristic;
1001
1013
  }
1014
+ server;
1015
+ goCubeStateCharacteristic;
1002
1016
  // We have to perform async operations before we call the constructor.
1003
1017
  static async connect(server) {
1004
1018
  const service = await server.getPrimaryService(UUIDs3.goCubeService);
@@ -1119,6 +1133,8 @@ var HeykubeCube = class _HeykubeCube extends BluetoothPuzzle {
1119
1133
  this.stateCharacteristic.startNotifications();
1120
1134
  this.startTrackingMoves();
1121
1135
  }
1136
+ server;
1137
+ stateCharacteristic;
1122
1138
  // We have to perform async operations before we call the constructor.
1123
1139
  static async connect(server, device) {
1124
1140
  const service = await server.getPrimaryService(UUIDs4.heykubeService);
@@ -1612,6 +1628,9 @@ var QiyiCube = class _QiyiCube extends BluetoothPuzzle {
1612
1628
  void this.sendAppHello();
1613
1629
  })();
1614
1630
  }
1631
+ kpuzzle;
1632
+ aesKey;
1633
+ server;
1615
1634
  latestTimestamp;
1616
1635
  allTimeStamps;
1617
1636
  // Without this set, moves are constantly duplicated
@@ -1946,6 +1965,9 @@ var GanRobot = class _GanRobot extends EventTarget {
1946
1965
  this.onDisconnect.bind(this)
1947
1966
  );
1948
1967
  }
1968
+ server;
1969
+ statusCharacteristic;
1970
+ moveCharacteristic;
1949
1971
  experimentalDebugOnSend = null;
1950
1972
  experimentalDebugLog = () => {
1951
1973
  };
@@ -2145,6 +2167,8 @@ var GanTimer = class _GanTimer extends EventTarget {
2145
2167
  this.onDisconnect.bind(this)
2146
2168
  );
2147
2169
  }
2170
+ server;
2171
+ timeCharacteristic;
2148
2172
  polling = false;
2149
2173
  previousDetail = null;
2150
2174
  // We have to perform async operations before we call the constructor.