cubing 0.23.0 → 0.24.0-pre1

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 (1040) hide show
  1. package/dist/esm/{2x2x2.kpuzzle.json-JOGUSQ4N.js → 2x2x2.kpuzzle.json-U5KOZCMU.js} +11 -11
  2. package/dist/esm/2x2x2.kpuzzle.json-U5KOZCMU.js.map +7 -0
  3. package/dist/esm/{2x2x2.sgs.json-FRBWMMA7.js → 2x2x2.sgs.json-VLYEQLNB.js} +5 -5
  4. package/dist/esm/2x2x2.sgs.json-VLYEQLNB.js.map +7 -0
  5. package/dist/esm/{3d-Q4WSD4BC.js → 3d-KAC5GXA4.js} +4 -4
  6. package/dist/esm/{3d-Q4WSD4BC.js.map → 3d-KAC5GXA4.js.map} +0 -0
  7. package/dist/esm/bluetooth/index.js +39 -33
  8. package/dist/esm/bluetooth/index.js.map +2 -2
  9. package/dist/esm/{chunk-FK2SCC3Z.js → chunk-23FEDDYH.js} +33 -27
  10. package/dist/esm/chunk-23FEDDYH.js.map +7 -0
  11. package/dist/esm/{chunk-DK6PXBB2.js → chunk-25PPOENI.js} +66 -56
  12. package/dist/esm/chunk-25PPOENI.js.map +7 -0
  13. package/dist/esm/{chunk-XVZOMB6J.js → chunk-27KJGD3S.js} +15 -20
  14. package/dist/esm/chunk-27KJGD3S.js.map +7 -0
  15. package/dist/esm/{chunk-DPMEZY7V.js → chunk-DBWASN5Q.js} +19 -10
  16. package/dist/esm/chunk-DBWASN5Q.js.map +7 -0
  17. package/dist/esm/{chunk-PUPUQWJC.js → chunk-J2U2GRS4.js} +27 -32
  18. package/dist/esm/chunk-J2U2GRS4.js.map +7 -0
  19. package/dist/esm/{chunk-Z6X7HTPP.js → chunk-MQYHOXEK.js} +4 -4
  20. package/dist/esm/{chunk-Z6X7HTPP.js.map → chunk-MQYHOXEK.js.map} +2 -2
  21. package/dist/esm/chunk-PMAQZQHL.js +810 -0
  22. package/dist/esm/chunk-PMAQZQHL.js.map +7 -0
  23. package/dist/esm/{chunk-N3RNWU5T.js → chunk-PQKDEV4Z.js} +36 -51
  24. package/dist/esm/chunk-PQKDEV4Z.js.map +7 -0
  25. package/dist/esm/{chunk-JZWB7AIU.js → chunk-PYOHTUEC.js} +17 -10
  26. package/dist/esm/chunk-PYOHTUEC.js.map +7 -0
  27. package/dist/esm/chunk-W6AA6TVR.js +274 -0
  28. package/dist/esm/chunk-W6AA6TVR.js.map +7 -0
  29. package/dist/esm/{chunk-MLOCDLUF.js → chunk-YLKDBBMW.js} +13 -13
  30. package/dist/esm/{chunk-MLOCDLUF.js.map → chunk-YLKDBBMW.js.map} +2 -2
  31. package/dist/esm/{clock.kpuzzle.json-EKWRMHJM.js → clock.kpuzzle.json-J3YBOI3G.js} +7 -45
  32. package/dist/esm/clock.kpuzzle.json-J3YBOI3G.js.map +7 -0
  33. package/dist/esm/{entry-L6CE2HLF.js → entry-ZLEDRTCM.js} +172 -167
  34. package/dist/esm/entry-ZLEDRTCM.js.map +7 -0
  35. package/dist/esm/{fto.sgs.json-62YNULOK.js → fto.sgs.json-PUAEKD7W.js} +6 -14
  36. package/dist/esm/fto.sgs.json-PUAEKD7W.js.map +7 -0
  37. package/dist/esm/kpuzzle/index.js +5 -35
  38. package/dist/esm/megaminx.sgs.json-DPQBIFB6.js +16 -0
  39. package/dist/esm/{megaminx.sgs.json-PRL46G5J.js.map → megaminx.sgs.json-DPQBIFB6.js.map} +0 -0
  40. package/dist/esm/{module-entry-J2N3UZP7.js → module-entry-UAGINHYL.js} +2 -2
  41. package/dist/esm/{module-entry-J2N3UZP7.js.map → module-entry-UAGINHYL.js.map} +0 -0
  42. package/dist/esm/protocol/index.js +2 -1
  43. package/dist/esm/puzzle-geometry/index.js +3 -1
  44. package/dist/esm/puzzles/index.js +4 -4
  45. package/dist/esm/{pyraminx.sgs.json-7QMPT5XP.js → pyraminx.sgs.json-5UKE76QP.js} +5 -5
  46. package/dist/esm/{pyraminx.sgs.json-7QMPT5XP.js.map → pyraminx.sgs.json-5UKE76QP.js.map} +0 -0
  47. package/dist/esm/scramble/index.js +4 -4
  48. package/dist/esm/{scramble_444-JP3CWLJM.js → scramble_444-ZNWCGUX5.js} +4 -4
  49. package/dist/esm/{scramble_444-JP3CWLJM.js.map → scramble_444-ZNWCGUX5.js.map} +0 -0
  50. package/dist/esm/search/index.js +4 -4
  51. package/dist/esm/skewb.sgs.json-O2CG5ALM.js +16 -0
  52. package/dist/esm/{skewb.sgs.json-FWHYACJG.js.map → skewb.sgs.json-O2CG5ALM.js.map} +0 -0
  53. package/dist/esm/{sq1-hyperorbit.kpuzzle.json-N3FGCPML.js → sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js} +6 -6
  54. package/dist/esm/sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js.map +7 -0
  55. package/dist/esm/twisty/index.js +334 -227
  56. package/dist/esm/twisty/index.js.map +3 -3
  57. package/dist/esm/worker-inside-generated-string-K4KJGMPV.js +3447 -0
  58. package/dist/esm/worker-inside-generated-string-K4KJGMPV.js.map +7 -0
  59. package/dist/types/alg/Alg.d.ts +0 -1
  60. package/dist/types/alg/Alg.spec.d.ts +0 -1
  61. package/dist/types/alg/AlgBuilder.d.ts +0 -1
  62. package/dist/types/alg/Serializable.d.ts +0 -1
  63. package/dist/types/alg/common.d.ts +0 -1
  64. package/dist/types/alg/debug.d.ts +0 -1
  65. package/dist/types/alg/example.d.ts +0 -1
  66. package/dist/types/alg/index.d.ts +0 -1
  67. package/dist/types/alg/is.d.ts +0 -1
  68. package/dist/types/alg/iteration.d.ts +0 -1
  69. package/dist/types/alg/keyboard.d.ts +0 -1
  70. package/dist/types/alg/limits.d.ts +0 -1
  71. package/dist/types/alg/operation.d.ts +0 -1
  72. package/dist/types/alg/operation.spec.d.ts +0 -1
  73. package/dist/types/alg/parse.d.ts +0 -1
  74. package/dist/types/alg/parse.spec.d.ts +0 -1
  75. package/dist/types/alg/test/alg-comparison.d.ts +0 -1
  76. package/dist/types/alg/test/alg.spec.d.ts +0 -1
  77. package/dist/types/alg/traversal.d.ts +0 -1
  78. package/dist/types/alg/units/QuantumWithAmount.d.ts +0 -1
  79. package/dist/types/alg/units/Unit.d.ts +0 -1
  80. package/dist/types/alg/units/containers/Commutator.d.ts +0 -1
  81. package/dist/types/alg/units/containers/Conjugate.d.ts +0 -1
  82. package/dist/types/alg/units/containers/Grouping.d.ts +0 -1
  83. package/dist/types/alg/units/index.d.ts +0 -1
  84. package/dist/types/alg/units/leaves/LineComment.d.ts +0 -1
  85. package/dist/types/alg/units/leaves/LineComment.spec.d.ts +0 -1
  86. package/dist/types/alg/units/leaves/Move.d.ts +0 -1
  87. package/dist/types/alg/units/leaves/Move.spec.d.ts +0 -1
  88. package/dist/types/alg/units/leaves/Newline.d.ts +0 -1
  89. package/dist/types/alg/units/leaves/Pause.d.ts +0 -1
  90. package/dist/types/alg/url.d.ts +0 -1
  91. package/dist/types/alg/url.spec.d.ts +0 -1
  92. package/dist/types/alg/validation.d.ts +0 -1
  93. package/dist/types/alg/warnOnce.d.ts +0 -1
  94. package/dist/types/bluetooth/connect/index.d.ts +0 -1
  95. package/dist/types/bluetooth/debug.d.ts +0 -1
  96. package/dist/types/bluetooth/index.d.ts +0 -1
  97. package/dist/types/bluetooth/keyboard.d.ts +5 -5
  98. package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts +3 -3
  99. package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts +3 -5
  100. package/dist/types/bluetooth/smart-puzzle/connect.d.ts +0 -1
  101. package/dist/types/bluetooth/smart-puzzle/endianness.d.ts +0 -1
  102. package/dist/types/bluetooth/smart-puzzle/gan.d.ts +5 -4
  103. package/dist/types/bluetooth/smart-puzzle/giiker.d.ts +3 -3
  104. package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +0 -1
  105. package/dist/types/bluetooth/smart-puzzle/gocube.d.ts +0 -1
  106. package/dist/types/bluetooth/smart-robot/GanRobot.d.ts +0 -1
  107. package/dist/types/bluetooth/smart-robot/index.d.ts +0 -1
  108. package/dist/types/bluetooth/smart-timer/GanTimer.d.ts +0 -1
  109. package/dist/types/bluetooth/smart-timer/index.d.ts +0 -1
  110. package/dist/types/bluetooth/transformer.d.ts +0 -1
  111. package/dist/types/cubing.bundle-global.d.ts +0 -1
  112. package/dist/types/cubing.bundle-global.exports.d.ts +0 -1
  113. package/dist/types/esm-test-worker.d.ts +0 -1
  114. package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +2 -3
  115. package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +0 -1
  116. package/dist/types/kpuzzle/3x3x3/puzzle-orientation.d.ts +4 -0
  117. package/dist/types/kpuzzle/KPuzzle.d.ts +21 -0
  118. package/dist/types/kpuzzle/KPuzzleDefinition.d.ts +20 -0
  119. package/dist/types/kpuzzle/KState.d.ts +16 -0
  120. package/dist/types/kpuzzle/KTransformation.d.ts +20 -0
  121. package/dist/types/kpuzzle/calculate.d.ts +16 -0
  122. package/dist/types/kpuzzle/combine.d.ts +3 -0
  123. package/dist/types/kpuzzle/construct.d.ts +5 -0
  124. package/dist/types/kpuzzle/index.d.ts +6 -10
  125. package/dist/types/notation/CountAnimatedLeaves.d.ts +0 -1
  126. package/dist/types/notation/CountMoves.d.ts +0 -1
  127. package/dist/types/notation/index.d.ts +0 -1
  128. package/dist/types/protocol/binary/binary3x3x3.d.ts +5 -6
  129. package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +0 -1
  130. package/dist/types/protocol/binary/hex.d.ts +0 -1
  131. package/dist/types/protocol/binary/hex.spec.d.ts +0 -1
  132. package/dist/types/protocol/binary/orbit-indexing.d.ts +0 -1
  133. package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +0 -1
  134. package/dist/types/protocol/binary/puzzle-orientation.d.ts +4 -5
  135. package/dist/types/protocol/index.d.ts +0 -1
  136. package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts +0 -1
  137. package/dist/types/puzzle-geometry/Options.d.ts +0 -1
  138. package/dist/types/puzzle-geometry/PGPuzzles.d.ts +0 -1
  139. package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +0 -1
  140. package/dist/types/puzzle-geometry/Perm.d.ts +0 -1
  141. package/dist/types/puzzle-geometry/PermOriSet.d.ts +4 -5
  142. package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts +0 -1
  143. package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +9 -3
  144. package/dist/types/puzzle-geometry/Quat.d.ts +0 -1
  145. package/dist/types/puzzle-geometry/Quat.spec.d.ts +0 -1
  146. package/dist/types/puzzle-geometry/SchreierSims.d.ts +0 -1
  147. package/dist/types/puzzle-geometry/index.d.ts +1 -1
  148. package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts +0 -1
  149. package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts +0 -1
  150. package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts +0 -1
  151. package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts +3 -2
  152. package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts +0 -1
  153. package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts +0 -1
  154. package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts +0 -1
  155. package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts +0 -1
  156. package/dist/types/puzzle-geometry/notation-mapping/index.d.ts +0 -1
  157. package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +0 -1
  158. package/dist/types/puzzles/PuzzleLoader.d.ts +3 -3
  159. package/dist/types/puzzles/async/async-pg3d.d.ts +3 -3
  160. package/dist/types/puzzles/async/lazy-cached-kpuzzle.d.ts +2 -0
  161. package/dist/types/puzzles/customPGPuzzleLoader.d.ts +2 -3
  162. package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts +1 -2
  163. package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts +0 -1
  164. package/dist/types/puzzles/implementations/2x2x2/index.d.ts +0 -1
  165. package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts +0 -1
  166. package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts +0 -1
  167. package/dist/types/puzzles/implementations/3x3x3/index.d.ts +0 -1
  168. package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts +1 -2
  169. package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts +0 -1
  170. package/dist/types/puzzles/implementations/clock/index.d.ts +0 -1
  171. package/dist/types/puzzles/implementations/fto/index.d.ts +0 -1
  172. package/dist/types/puzzles/implementations/megaminx/index.d.ts +0 -1
  173. package/dist/types/puzzles/implementations/pyraminx/index.d.ts +0 -1
  174. package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts +0 -1
  175. package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts +0 -1
  176. package/dist/types/puzzles/implementations/square1/index.d.ts +0 -1
  177. package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts +1 -2
  178. package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts +0 -1
  179. package/dist/types/puzzles/index.d.ts +1 -2
  180. package/dist/types/puzzles/stickerings/appearance.d.ts +6 -7
  181. package/dist/types/puzzles/stickerings/cube-stickerings.d.ts +0 -1
  182. package/dist/types/puzzles/stickerings/fto-stickerings.d.ts +0 -1
  183. package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +0 -1
  184. package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts +0 -1
  185. package/dist/types/scramble/index.d.ts +0 -1
  186. package/dist/types/search/esm-test-worker.d.ts +0 -1
  187. package/dist/types/search/index.d.ts +0 -1
  188. package/dist/types/search/inside/api.d.ts +6 -7
  189. package/dist/types/search/inside/api.spec.d.ts +0 -1
  190. package/dist/types/search/inside/entry.d.ts +0 -1
  191. package/dist/types/search/inside/inside-worker.d.ts +0 -1
  192. package/dist/types/search/inside/module-entry-path-getter.d.ts +0 -1
  193. package/dist/types/search/inside/module-entry.d.ts +0 -1
  194. package/dist/types/search/inside/solve/addOrientationSuffix.d.ts +0 -1
  195. package/dist/types/search/inside/solve/parseSGS.d.ts +3 -4
  196. package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts +3 -4
  197. package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts +0 -1
  198. package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts +2 -3
  199. package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts +4 -4
  200. package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts +3 -4
  201. package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts +0 -1
  202. package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts +0 -1
  203. package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts +0 -1
  204. package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts +0 -1
  205. package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts +0 -1
  206. package/dist/types/search/inside/solve/puzzles/clock.d.ts +0 -1
  207. package/dist/types/search/inside/solve/puzzles/fto.d.ts +2 -3
  208. package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts +0 -3
  209. package/dist/types/search/inside/solve/puzzles/megaminx.d.ts +2 -3
  210. package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts +2 -3
  211. package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts +3 -4
  212. package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts +0 -1
  213. package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +0 -1
  214. package/dist/types/search/inside/solve/puzzles/skewb.d.ts +3 -4
  215. package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts +2 -3
  216. package/dist/types/search/inside/solve/puzzles/sq1.d.ts +0 -1
  217. package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts +0 -1
  218. package/dist/types/search/inside/solve/tremble.d.ts +6 -6
  219. package/dist/types/search/instantiator.d.ts +0 -1
  220. package/dist/types/search/outside.d.ts +6 -7
  221. package/dist/types/search/worker-inside-generated-string.d.ts +1 -2
  222. package/dist/types/stream/index.d.ts +0 -1
  223. package/dist/types/stream/process/ReorientedStream.d.ts +1 -3
  224. package/dist/types/stream/proxy-event.d.ts +0 -1
  225. package/dist/types/stream/twizzle/TwizzleStream.d.ts +0 -1
  226. package/dist/types/stream/twizzle/stream-types.d.ts +0 -1
  227. package/dist/types/stream/websocket-proxy.d.ts +0 -1
  228. package/dist/types/twisty/controllers/AnimationTypes.d.ts +2 -3
  229. package/dist/types/twisty/controllers/RenderScheduler.d.ts +0 -1
  230. package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +0 -1
  231. package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +0 -1
  232. package/dist/types/twisty/controllers/easing.d.ts +0 -1
  233. package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts +0 -1
  234. package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts +6 -6
  235. package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts +7 -7
  236. package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +8 -8
  237. package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +9 -9
  238. package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts +0 -1
  239. package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts +36 -37
  240. package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts +7 -7
  241. package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts +0 -1
  242. package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts +0 -1
  243. package/dist/types/twisty/heavy-code-imports/3d.d.ts +0 -1
  244. package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +0 -1
  245. package/dist/types/twisty/index.d.ts +1 -2
  246. package/dist/types/twisty/model/PromiseFreshener.d.ts +0 -1
  247. package/dist/types/twisty/model/TwistyPlayerModel.d.ts +6 -7
  248. package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +0 -1
  249. package/dist/types/twisty/model/helpers.d.ts +0 -1
  250. package/dist/types/twisty/model/props/TwistyProp.d.ts +0 -1
  251. package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +0 -1
  252. package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +0 -1
  253. package/dist/types/twisty/model/props/general/URLProp.d.ts +0 -1
  254. package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts +0 -1
  255. package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +0 -1
  256. package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +0 -1
  257. package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +0 -1
  258. package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +0 -1
  259. package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +5 -8
  260. package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +5 -7
  261. package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts +0 -1
  262. package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +0 -1
  263. package/dist/types/twisty/model/props/puzzle/state/{CurrentLeavesProp.d.ts → CurrentMoveInfoProp.d.ts} +2 -3
  264. package/dist/types/twisty/model/props/puzzle/state/CurrentStateProp.d.ts +14 -0
  265. package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +7 -8
  266. package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +0 -1
  267. package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +5 -6
  268. package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +2 -3
  269. package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +0 -1
  270. package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts +0 -1
  271. package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +4 -5
  272. package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +0 -1
  273. package/dist/types/twisty/model/props/puzzle/structure/KPuzzleProp.d.ts +10 -0
  274. package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +0 -1
  275. package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +0 -1
  276. package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +0 -1
  277. package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +0 -1
  278. package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +0 -1
  279. package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +0 -1
  280. package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +0 -1
  281. package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +0 -1
  282. package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +0 -1
  283. package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +0 -1
  284. package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +0 -1
  285. package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +0 -1
  286. package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +0 -1
  287. package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +0 -1
  288. package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +0 -1
  289. package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +0 -1
  290. package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +2 -3
  291. package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +0 -1
  292. package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +0 -1
  293. package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +0 -1
  294. package/dist/types/twisty/views/2D/KPuzzleSVGWrapper.d.ts +17 -0
  295. package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts +0 -1
  296. package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +4 -4
  297. package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +0 -1
  298. package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +0 -1
  299. package/dist/types/twisty/views/3D/DragTracker.d.ts +0 -1
  300. package/dist/types/twisty/views/3D/RendererPool.d.ts +0 -1
  301. package/dist/types/twisty/views/3D/TAU.d.ts +0 -1
  302. package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +0 -1
  303. package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts +0 -1
  304. package/dist/types/twisty/views/3D/Twisty3DScene.d.ts +0 -1
  305. package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +0 -1
  306. package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts +0 -1
  307. package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +0 -1
  308. package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +0 -1
  309. package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts +0 -1
  310. package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts +4 -5
  311. package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +5 -6
  312. package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts +0 -1
  313. package/dist/types/twisty/views/ClassListManager.d.ts +0 -1
  314. package/dist/types/twisty/views/ManagedCustomElement.d.ts +0 -1
  315. package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +0 -1
  316. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +0 -1
  317. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +0 -1
  318. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +0 -1
  319. package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +0 -1
  320. package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +0 -1
  321. package/dist/types/twisty/views/TwistyAlgViewer.d.ts +0 -1
  322. package/dist/types/twisty/views/TwistyPlayer.css.d.ts +0 -1
  323. package/dist/types/twisty/views/TwistyPlayer.d.ts +0 -1
  324. package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +0 -1
  325. package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts +0 -1
  326. package/dist/types/twisty/views/canvas.d.ts +0 -1
  327. package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts +0 -1
  328. package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +0 -1
  329. package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts +0 -1
  330. package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +0 -1
  331. package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +0 -1
  332. package/dist/types/twisty/views/document.d.ts +0 -1
  333. package/dist/types/twisty/views/node-custom-element-shims.d.ts +0 -1
  334. package/dist/types/twisty/views/screenshot.d.ts +0 -1
  335. package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts +0 -1
  336. package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts +0 -1
  337. package/dist/types/vendor/comlink-everywhere/inside/index.d.ts +0 -1
  338. package/dist/types/vendor/comlink-everywhere/inside/node.d.ts +0 -1
  339. package/dist/types/vendor/comlink-everywhere/outside/index.d.ts +0 -1
  340. package/dist/types/vendor/comlink-everywhere/outside/node.d.ts +0 -1
  341. package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts +0 -1
  342. package/dist/types/vendor/cstimer/src/js/scramble/scramble_444.d.ts +0 -1
  343. package/dist/types/vendor/min2phase/gwt.d.ts +0 -1
  344. package/dist/types/vendor/p-lazy/p-lazy.d.ts +0 -1
  345. package/dist/types/vendor/random-uint-below/get-random-values.d.ts +0 -1
  346. package/dist/types/vendor/random-uint-below/index.d.ts +0 -1
  347. package/dist/types/vendor/random-uint-below/random-choice.d.ts +0 -1
  348. package/dist/types/vendor/random-uint-below/random53BitValue.d.ts +0 -1
  349. package/dist/types/vendor/sq12phase/scramble_sq1.d.ts +0 -1
  350. package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +0 -1
  351. package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts +0 -1
  352. package/package.json +3 -4
  353. package/dist/bin/order.js +0 -16675
  354. package/dist/bin/order.js.map +0 -7
  355. package/dist/bin/puzzle-geometry-bin.js +0 -5444
  356. package/dist/bin/puzzle-geometry-bin.js.map +0 -7
  357. package/dist/bundle-global/cubing.bundle-global.js +0 -10432
  358. package/dist/esm/2x2x2.kpuzzle.json-JOGUSQ4N.js.map +0 -7
  359. package/dist/esm/2x2x2.sgs.json-FRBWMMA7.js.map +0 -7
  360. package/dist/esm/chunk-DK6PXBB2.js.map +0 -7
  361. package/dist/esm/chunk-DPMEZY7V.js.map +0 -7
  362. package/dist/esm/chunk-FK2SCC3Z.js.map +0 -7
  363. package/dist/esm/chunk-JZWB7AIU.js.map +0 -7
  364. package/dist/esm/chunk-N3RNWU5T.js.map +0 -7
  365. package/dist/esm/chunk-PUPUQWJC.js.map +0 -7
  366. package/dist/esm/chunk-X6JHXPDX.js +0 -2359
  367. package/dist/esm/chunk-X6JHXPDX.js.map +0 -7
  368. package/dist/esm/chunk-XVZOMB6J.js.map +0 -7
  369. package/dist/esm/clock.kpuzzle.json-EKWRMHJM.js.map +0 -7
  370. package/dist/esm/entry-L6CE2HLF.js.map +0 -7
  371. package/dist/esm/fto.sgs.json-62YNULOK.js.map +0 -7
  372. package/dist/esm/megaminx.sgs.json-PRL46G5J.js +0 -16
  373. package/dist/esm/skewb.sgs.json-FWHYACJG.js +0 -16
  374. package/dist/esm/sq1-hyperorbit.kpuzzle.json-N3FGCPML.js.map +0 -7
  375. package/dist/esm/worker-inside-generated-string-OWJA5IIQ.js +0 -3450
  376. package/dist/esm/worker-inside-generated-string-OWJA5IIQ.js.map +0 -7
  377. package/dist/types/alg/Alg.d.ts.map +0 -1
  378. package/dist/types/alg/Alg.spec.d.ts.map +0 -1
  379. package/dist/types/alg/AlgBuilder.d.ts.map +0 -1
  380. package/dist/types/alg/Serializable.d.ts.map +0 -1
  381. package/dist/types/alg/common.d.ts.map +0 -1
  382. package/dist/types/alg/debug.d.ts.map +0 -1
  383. package/dist/types/alg/example.d.ts.map +0 -1
  384. package/dist/types/alg/index.d.ts.map +0 -1
  385. package/dist/types/alg/is.d.ts.map +0 -1
  386. package/dist/types/alg/iteration.d.ts.map +0 -1
  387. package/dist/types/alg/keyboard.d.ts.map +0 -1
  388. package/dist/types/alg/limits.d.ts.map +0 -1
  389. package/dist/types/alg/operation.d.ts.map +0 -1
  390. package/dist/types/alg/operation.spec.d.ts.map +0 -1
  391. package/dist/types/alg/parse.d.ts.map +0 -1
  392. package/dist/types/alg/parse.spec.d.ts.map +0 -1
  393. package/dist/types/alg/test/alg-comparison.d.ts.map +0 -1
  394. package/dist/types/alg/test/alg.spec.d.ts.map +0 -1
  395. package/dist/types/alg/traversal.d.ts.map +0 -1
  396. package/dist/types/alg/units/QuantumWithAmount.d.ts.map +0 -1
  397. package/dist/types/alg/units/Unit.d.ts.map +0 -1
  398. package/dist/types/alg/units/containers/Commutator.d.ts.map +0 -1
  399. package/dist/types/alg/units/containers/Conjugate.d.ts.map +0 -1
  400. package/dist/types/alg/units/containers/Grouping.d.ts.map +0 -1
  401. package/dist/types/alg/units/index.d.ts.map +0 -1
  402. package/dist/types/alg/units/leaves/LineComment.d.ts.map +0 -1
  403. package/dist/types/alg/units/leaves/LineComment.spec.d.ts.map +0 -1
  404. package/dist/types/alg/units/leaves/Move.d.ts.map +0 -1
  405. package/dist/types/alg/units/leaves/Move.spec.d.ts.map +0 -1
  406. package/dist/types/alg/units/leaves/Newline.d.ts.map +0 -1
  407. package/dist/types/alg/units/leaves/Pause.d.ts.map +0 -1
  408. package/dist/types/alg/url.d.ts.map +0 -1
  409. package/dist/types/alg/url.spec.d.ts.map +0 -1
  410. package/dist/types/alg/validation.d.ts.map +0 -1
  411. package/dist/types/alg/warnOnce.d.ts.map +0 -1
  412. package/dist/types/bluetooth/connect/index.d.ts.map +0 -1
  413. package/dist/types/bluetooth/debug.d.ts.map +0 -1
  414. package/dist/types/bluetooth/index.d.ts.map +0 -1
  415. package/dist/types/bluetooth/keyboard.d.ts.map +0 -1
  416. package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts.map +0 -1
  417. package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts.map +0 -1
  418. package/dist/types/bluetooth/smart-puzzle/connect.d.ts.map +0 -1
  419. package/dist/types/bluetooth/smart-puzzle/endianness.d.ts.map +0 -1
  420. package/dist/types/bluetooth/smart-puzzle/gan.d.ts.map +0 -1
  421. package/dist/types/bluetooth/smart-puzzle/giiker.d.ts.map +0 -1
  422. package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts.map +0 -1
  423. package/dist/types/bluetooth/smart-puzzle/gocube.d.ts.map +0 -1
  424. package/dist/types/bluetooth/smart-robot/GanRobot.d.ts.map +0 -1
  425. package/dist/types/bluetooth/smart-robot/index.d.ts.map +0 -1
  426. package/dist/types/bluetooth/smart-timer/GanTimer.d.ts.map +0 -1
  427. package/dist/types/bluetooth/smart-timer/index.d.ts.map +0 -1
  428. package/dist/types/bluetooth/transformer.d.ts.map +0 -1
  429. package/dist/types/cubing.bundle-global.d.ts.map +0 -1
  430. package/dist/types/cubing.bundle-global.exports.d.ts.map +0 -1
  431. package/dist/types/esm-test-worker.d.ts.map +0 -1
  432. package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts.map +0 -1
  433. package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts.map +0 -1
  434. package/dist/types/kpuzzle/canon.spec.d.ts +0 -2
  435. package/dist/types/kpuzzle/canon.spec.d.ts.map +0 -1
  436. package/dist/types/kpuzzle/canonicalize.d.ts +0 -55
  437. package/dist/types/kpuzzle/canonicalize.d.ts.map +0 -1
  438. package/dist/types/kpuzzle/definition_types.d.ts +0 -19
  439. package/dist/types/kpuzzle/definition_types.d.ts.map +0 -1
  440. package/dist/types/kpuzzle/index.d.ts.map +0 -1
  441. package/dist/types/kpuzzle/kpuzzle.d.ts +0 -17
  442. package/dist/types/kpuzzle/kpuzzle.d.ts.map +0 -1
  443. package/dist/types/kpuzzle/kpuzzle.spec.d.ts +0 -2
  444. package/dist/types/kpuzzle/kpuzzle.spec.d.ts.map +0 -1
  445. package/dist/types/kpuzzle/move_notation.d.ts +0 -6
  446. package/dist/types/kpuzzle/move_notation.d.ts.map +0 -1
  447. package/dist/types/kpuzzle/parser/index.d.ts +0 -2
  448. package/dist/types/kpuzzle/parser/index.d.ts.map +0 -1
  449. package/dist/types/kpuzzle/parser/parser-peggy.d.ts +0 -15
  450. package/dist/types/kpuzzle/parser/parser-peggy.d.ts.map +0 -1
  451. package/dist/types/kpuzzle/parser/parser-shim.d.ts +0 -4
  452. package/dist/types/kpuzzle/parser/parser-shim.d.ts.map +0 -1
  453. package/dist/types/kpuzzle/parser/parser.d.ts +0 -1
  454. package/dist/types/kpuzzle/parser/parser.d.ts.map +0 -1
  455. package/dist/types/kpuzzle/prunetable.spec.d.ts +0 -2
  456. package/dist/types/kpuzzle/prunetable.spec.d.ts.map +0 -1
  457. package/dist/types/kpuzzle/pruningtable.d.ts +0 -16
  458. package/dist/types/kpuzzle/pruningtable.d.ts.map +0 -1
  459. package/dist/types/kpuzzle/puzzle-orientation.d.ts +0 -5
  460. package/dist/types/kpuzzle/puzzle-orientation.d.ts.map +0 -1
  461. package/dist/types/kpuzzle/svg.d.ts +0 -18
  462. package/dist/types/kpuzzle/svg.d.ts.map +0 -1
  463. package/dist/types/kpuzzle/transformations.d.ts +0 -13
  464. package/dist/types/kpuzzle/transformations.d.ts.map +0 -1
  465. package/dist/types/kpuzzle/transformations.spec.d.ts +0 -2
  466. package/dist/types/kpuzzle/transformations.spec.d.ts.map +0 -1
  467. package/dist/types/notation/CountAnimatedLeaves.d.ts.map +0 -1
  468. package/dist/types/notation/CountMoves.d.ts.map +0 -1
  469. package/dist/types/notation/index.d.ts.map +0 -1
  470. package/dist/types/protocol/binary/binary3x3x3.d.ts.map +0 -1
  471. package/dist/types/protocol/binary/binary3x3x3.spec.d.ts.map +0 -1
  472. package/dist/types/protocol/binary/hex.d.ts.map +0 -1
  473. package/dist/types/protocol/binary/hex.spec.d.ts.map +0 -1
  474. package/dist/types/protocol/binary/orbit-indexing.d.ts.map +0 -1
  475. package/dist/types/protocol/binary/orbit-indexing.spec.d.ts.map +0 -1
  476. package/dist/types/protocol/binary/puzzle-orientation.d.ts.map +0 -1
  477. package/dist/types/protocol/index.d.ts.map +0 -1
  478. package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts.map +0 -1
  479. package/dist/types/puzzle-geometry/Options.d.ts.map +0 -1
  480. package/dist/types/puzzle-geometry/PGPuzzles.d.ts.map +0 -1
  481. package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +0 -1
  482. package/dist/types/puzzle-geometry/Perm.d.ts.map +0 -1
  483. package/dist/types/puzzle-geometry/PermOriSet.d.ts.map +0 -1
  484. package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts.map +0 -1
  485. package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +0 -1
  486. package/dist/types/puzzle-geometry/Quat.d.ts.map +0 -1
  487. package/dist/types/puzzle-geometry/Quat.spec.d.ts.map +0 -1
  488. package/dist/types/puzzle-geometry/SchreierSims.d.ts.map +0 -1
  489. package/dist/types/puzzle-geometry/index.d.ts.map +0 -1
  490. package/dist/types/puzzle-geometry/interfaces.d.ts +0 -6
  491. package/dist/types/puzzle-geometry/interfaces.d.ts.map +0 -1
  492. package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts.map +0 -1
  493. package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts.map +0 -1
  494. package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts.map +0 -1
  495. package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts.map +0 -1
  496. package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts.map +0 -1
  497. package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts.map +0 -1
  498. package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts.map +0 -1
  499. package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts.map +0 -1
  500. package/dist/types/puzzle-geometry/notation-mapping/index.d.ts.map +0 -1
  501. package/dist/types/puzzle-geometry/orientcenters.spec.d.ts.map +0 -1
  502. package/dist/types/puzzles/PuzzleLoader.d.ts.map +0 -1
  503. package/dist/types/puzzles/async/async-pg3d.d.ts.map +0 -1
  504. package/dist/types/puzzles/customPGPuzzleLoader.d.ts.map +0 -1
  505. package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts.map +0 -1
  506. package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts.map +0 -1
  507. package/dist/types/puzzles/implementations/2x2x2/index.d.ts.map +0 -1
  508. package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts.map +0 -1
  509. package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts.map +0 -1
  510. package/dist/types/puzzles/implementations/3x3x3/index.d.ts.map +0 -1
  511. package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts.map +0 -1
  512. package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts.map +0 -1
  513. package/dist/types/puzzles/implementations/clock/index.d.ts.map +0 -1
  514. package/dist/types/puzzles/implementations/fto/index.d.ts.map +0 -1
  515. package/dist/types/puzzles/implementations/megaminx/index.d.ts.map +0 -1
  516. package/dist/types/puzzles/implementations/pyraminx/index.d.ts.map +0 -1
  517. package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts.map +0 -1
  518. package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts.map +0 -1
  519. package/dist/types/puzzles/implementations/square1/index.d.ts.map +0 -1
  520. package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts.map +0 -1
  521. package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts.map +0 -1
  522. package/dist/types/puzzles/index.d.ts.map +0 -1
  523. package/dist/types/puzzles/stickerings/appearance.d.ts.map +0 -1
  524. package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +0 -1
  525. package/dist/types/puzzles/stickerings/fto-stickerings.d.ts.map +0 -1
  526. package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts.map +0 -1
  527. package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts.map +0 -1
  528. package/dist/types/scramble/index.d.ts.map +0 -1
  529. package/dist/types/search/esm-test-worker.d.ts.map +0 -1
  530. package/dist/types/search/index.d.ts.map +0 -1
  531. package/dist/types/search/inside/api.d.ts.map +0 -1
  532. package/dist/types/search/inside/api.spec.d.ts.map +0 -1
  533. package/dist/types/search/inside/entry.d.ts.map +0 -1
  534. package/dist/types/search/inside/inside-worker.d.ts.map +0 -1
  535. package/dist/types/search/inside/module-entry-path-getter.d.ts.map +0 -1
  536. package/dist/types/search/inside/module-entry.d.ts.map +0 -1
  537. package/dist/types/search/inside/solve/addOrientationSuffix.d.ts.map +0 -1
  538. package/dist/types/search/inside/solve/parseSGS.d.ts.map +0 -1
  539. package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts.map +0 -1
  540. package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts.map +0 -1
  541. package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts.map +0 -1
  542. package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts.map +0 -1
  543. package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts.map +0 -1
  544. package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts.map +0 -1
  545. package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts.map +0 -1
  546. package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts.map +0 -1
  547. package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts.map +0 -1
  548. package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts.map +0 -1
  549. package/dist/types/search/inside/solve/puzzles/clock.d.ts.map +0 -1
  550. package/dist/types/search/inside/solve/puzzles/fto.d.ts.map +0 -1
  551. package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts.map +0 -1
  552. package/dist/types/search/inside/solve/puzzles/megaminx.d.ts.map +0 -1
  553. package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts.map +0 -1
  554. package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts.map +0 -1
  555. package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts.map +0 -1
  556. package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts.map +0 -1
  557. package/dist/types/search/inside/solve/puzzles/skewb.d.ts.map +0 -1
  558. package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts.map +0 -1
  559. package/dist/types/search/inside/solve/puzzles/sq1.d.ts.map +0 -1
  560. package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts.map +0 -1
  561. package/dist/types/search/inside/solve/tremble.d.ts.map +0 -1
  562. package/dist/types/search/instantiator.d.ts.map +0 -1
  563. package/dist/types/search/outside.d.ts.map +0 -1
  564. package/dist/types/search/worker-inside-generated-string.d.ts.map +0 -1
  565. package/dist/types/stream/index.d.ts.map +0 -1
  566. package/dist/types/stream/process/ReorientedStream.d.ts.map +0 -1
  567. package/dist/types/stream/proxy-event.d.ts.map +0 -1
  568. package/dist/types/stream/twizzle/TwizzleStream.d.ts.map +0 -1
  569. package/dist/types/stream/twizzle/stream-types.d.ts.map +0 -1
  570. package/dist/types/stream/websocket-proxy.d.ts.map +0 -1
  571. package/dist/types/twisty/controllers/AnimationTypes.d.ts.map +0 -1
  572. package/dist/types/twisty/controllers/RenderScheduler.d.ts.map +0 -1
  573. package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +0 -1
  574. package/dist/types/twisty/controllers/TwistyPlayerController.d.ts.map +0 -1
  575. package/dist/types/twisty/controllers/easing.d.ts.map +0 -1
  576. package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts.map +0 -1
  577. package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts.map +0 -1
  578. package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts.map +0 -1
  579. package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
  580. package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +0 -1
  581. package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
  582. package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts.map +0 -1
  583. package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
  584. package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts.map +0 -1
  585. package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts.map +0 -1
  586. package/dist/types/twisty/heavy-code-imports/3d.d.ts.map +0 -1
  587. package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +0 -1
  588. package/dist/types/twisty/index.d.ts.map +0 -1
  589. package/dist/types/twisty/model/PromiseFreshener.d.ts.map +0 -1
  590. package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +0 -1
  591. package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts.map +0 -1
  592. package/dist/types/twisty/model/helpers.d.ts.map +0 -1
  593. package/dist/types/twisty/model/props/TwistyProp.d.ts.map +0 -1
  594. package/dist/types/twisty/model/props/TwistyProp.spec.d.ts.map +0 -1
  595. package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +0 -1
  596. package/dist/types/twisty/model/props/general/URLProp.d.ts.map +0 -1
  597. package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts.map +0 -1
  598. package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +0 -1
  599. package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts.map +0 -1
  600. package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +0 -1
  601. package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts.map +0 -1
  602. package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts.map +0 -1
  603. package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +0 -1
  604. package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts.map +0 -1
  605. package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +0 -1
  606. package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +0 -1
  607. package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +0 -15
  608. package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +0 -1
  609. package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +0 -1
  610. package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts.map +0 -1
  611. package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +0 -1
  612. package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +0 -1
  613. package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts.map +0 -1
  614. package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts.map +0 -1
  615. package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts.map +0 -1
  616. package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +0 -1
  617. package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts +0 -11
  618. package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts.map +0 -1
  619. package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts.map +0 -1
  620. package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +0 -1
  621. package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +0 -1
  622. package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +0 -1
  623. package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts.map +0 -1
  624. package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +0 -1
  625. package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +0 -1
  626. package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts.map +0 -1
  627. package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +0 -1
  628. package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +0 -1
  629. package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +0 -1
  630. package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts.map +0 -1
  631. package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +0 -1
  632. package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts.map +0 -1
  633. package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +0 -1
  634. package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +0 -1
  635. package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +0 -1
  636. package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +0 -1
  637. package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +0 -1
  638. package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +0 -1
  639. package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts.map +0 -1
  640. package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +0 -1
  641. package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +0 -1
  642. package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +0 -1
  643. package/dist/types/twisty/views/3D/DragTracker.d.ts.map +0 -1
  644. package/dist/types/twisty/views/3D/RendererPool.d.ts.map +0 -1
  645. package/dist/types/twisty/views/3D/TAU.d.ts.map +0 -1
  646. package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +0 -1
  647. package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts.map +0 -1
  648. package/dist/types/twisty/views/3D/Twisty3DScene.d.ts.map +0 -1
  649. package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +0 -1
  650. package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts.map +0 -1
  651. package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +0 -1
  652. package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts.map +0 -1
  653. package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts.map +0 -1
  654. package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +0 -1
  655. package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts +0 -48
  656. package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts.map +0 -1
  657. package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +0 -1
  658. package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +0 -1
  659. package/dist/types/twisty/views/ClassListManager.d.ts.map +0 -1
  660. package/dist/types/twisty/views/ManagedCustomElement.d.ts.map +0 -1
  661. package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +0 -1
  662. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +0 -1
  663. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +0 -1
  664. package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts.map +0 -1
  665. package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts.map +0 -1
  666. package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +0 -1
  667. package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +0 -1
  668. package/dist/types/twisty/views/TwistyPlayer.css.d.ts.map +0 -1
  669. package/dist/types/twisty/views/TwistyPlayer.d.ts.map +0 -1
  670. package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +0 -1
  671. package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts.map +0 -1
  672. package/dist/types/twisty/views/canvas.d.ts.map +0 -1
  673. package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts.map +0 -1
  674. package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +0 -1
  675. package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts.map +0 -1
  676. package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +0 -1
  677. package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts.map +0 -1
  678. package/dist/types/twisty/views/document.d.ts.map +0 -1
  679. package/dist/types/twisty/views/node-custom-element-shims.d.ts.map +0 -1
  680. package/dist/types/twisty/views/screenshot.d.ts.map +0 -1
  681. package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts.map +0 -1
  682. package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts.map +0 -1
  683. package/dist/types/vendor/comlink-everywhere/inside/index.d.ts.map +0 -1
  684. package/dist/types/vendor/comlink-everywhere/inside/node.d.ts.map +0 -1
  685. package/dist/types/vendor/comlink-everywhere/outside/index.d.ts.map +0 -1
  686. package/dist/types/vendor/comlink-everywhere/outside/node.d.ts.map +0 -1
  687. package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts.map +0 -1
  688. package/dist/types/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +0 -1
  689. package/dist/types/vendor/min2phase/gwt.d.ts.map +0 -1
  690. package/dist/types/vendor/p-lazy/p-lazy.d.ts.map +0 -1
  691. package/dist/types/vendor/random-uint-below/get-random-values.d.ts.map +0 -1
  692. package/dist/types/vendor/random-uint-below/index.d.ts.map +0 -1
  693. package/dist/types/vendor/random-uint-below/random-choice.d.ts.map +0 -1
  694. package/dist/types/vendor/random-uint-below/random53BitValue.d.ts.map +0 -1
  695. package/dist/types/vendor/sq12phase/scramble_sq1.d.ts.map +0 -1
  696. package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts.map +0 -1
  697. package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts.map +0 -1
  698. package/docs/.DS_Store +0 -0
  699. package/docs/CNAME +0 -1
  700. package/docs/cubing/.DS_Store +0 -0
  701. package/docs/cubing/alg/index.html +0 -174
  702. package/docs/cubing/api/index.html +0 -158
  703. package/docs/cubing/index.html +0 -191
  704. package/docs/cubing/scramble/index.html +0 -138
  705. package/docs/cubing/twisty/index.html +0 -329
  706. package/docs/favicon.ico +0 -0
  707. package/docs/index.html +0 -20
  708. package/docs/main.css +0 -193
  709. package/src/cubing/.DS_Store +0 -0
  710. package/src/cubing/alg/Alg.spec.ts +0 -10
  711. package/src/cubing/alg/Alg.ts +0 -290
  712. package/src/cubing/alg/AlgBuilder.ts +0 -33
  713. package/src/cubing/alg/Serializable.ts +0 -29
  714. package/src/cubing/alg/common.ts +0 -59
  715. package/src/cubing/alg/debug.ts +0 -27
  716. package/src/cubing/alg/example.ts +0 -152
  717. package/src/cubing/alg/index.ts +0 -21
  718. package/src/cubing/alg/is.ts +0 -38
  719. package/src/cubing/alg/iteration.ts +0 -45
  720. package/src/cubing/alg/keyboard.ts +0 -48
  721. package/src/cubing/alg/limits.ts +0 -4
  722. package/src/cubing/alg/operation.spec.ts +0 -48
  723. package/src/cubing/alg/operation.ts +0 -36
  724. package/src/cubing/alg/parse.spec.ts +0 -75
  725. package/src/cubing/alg/parse.ts +0 -408
  726. package/src/cubing/alg/test/alg-comparison.ts +0 -23
  727. package/src/cubing/alg/test/alg.spec.ts +0 -348
  728. package/src/cubing/alg/traversal.ts +0 -284
  729. package/src/cubing/alg/units/QuantumWithAmount.ts +0 -55
  730. package/src/cubing/alg/units/Unit.ts +0 -11
  731. package/src/cubing/alg/units/containers/Commutator.ts +0 -85
  732. package/src/cubing/alg/units/containers/Conjugate.ts +0 -53
  733. package/src/cubing/alg/units/containers/Grouping.ts +0 -116
  734. package/src/cubing/alg/units/index.ts +0 -8
  735. package/src/cubing/alg/units/leaves/LineComment.spec.ts +0 -35
  736. package/src/cubing/alg/units/leaves/LineComment.ts +0 -48
  737. package/src/cubing/alg/units/leaves/Move.spec.ts +0 -15
  738. package/src/cubing/alg/units/leaves/Move.ts +0 -265
  739. package/src/cubing/alg/units/leaves/Newline.ts +0 -24
  740. package/src/cubing/alg/units/leaves/Pause.ts +0 -24
  741. package/src/cubing/alg/url.spec.ts +0 -10
  742. package/src/cubing/alg/url.ts +0 -133
  743. package/src/cubing/alg/validation.ts +0 -62
  744. package/src/cubing/alg/warnOnce.ts +0 -7
  745. package/src/cubing/bluetooth/connect/index.ts +0 -93
  746. package/src/cubing/bluetooth/debug.ts +0 -18
  747. package/src/cubing/bluetooth/docs/gan-robot.md +0 -60
  748. package/src/cubing/bluetooth/docs/gan356i.md +0 -309
  749. package/src/cubing/bluetooth/index.ts +0 -19
  750. package/src/cubing/bluetooth/keyboard.ts +0 -55
  751. package/src/cubing/bluetooth/smart-puzzle/Heykube.ts +0 -165
  752. package/src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.ts +0 -95
  753. package/src/cubing/bluetooth/smart-puzzle/connect.ts +0 -19
  754. package/src/cubing/bluetooth/smart-puzzle/endianness.ts +0 -15
  755. package/src/cubing/bluetooth/smart-puzzle/gan.ts +0 -484
  756. package/src/cubing/bluetooth/smart-puzzle/giiker.spec.ts +0 -28
  757. package/src/cubing/bluetooth/smart-puzzle/giiker.ts +0 -277
  758. package/src/cubing/bluetooth/smart-puzzle/gocube.ts +0 -167
  759. package/src/cubing/bluetooth/smart-robot/GanRobot.ts +0 -311
  760. package/src/cubing/bluetooth/smart-robot/index.ts +0 -13
  761. package/src/cubing/bluetooth/smart-timer/GanTimer.ts +0 -141
  762. package/src/cubing/bluetooth/smart-timer/index.ts +0 -13
  763. package/src/cubing/bluetooth/transformer.ts +0 -74
  764. package/src/cubing/cubing.bundle-global.exports.ts +0 -25
  765. package/src/cubing/cubing.bundle-global.ts +0 -7
  766. package/src/cubing/esm-test-worker.js +0 -5
  767. package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.ts +0 -40
  768. package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.ts +0 -339
  769. package/src/cubing/kpuzzle/canon.spec.ts +0 -48
  770. package/src/cubing/kpuzzle/canonicalize.ts +0 -325
  771. package/src/cubing/kpuzzle/definition_types.ts +0 -23
  772. package/src/cubing/kpuzzle/index.ts +0 -33
  773. package/src/cubing/kpuzzle/kpuzzle.spec.ts +0 -12
  774. package/src/cubing/kpuzzle/kpuzzle.ts +0 -124
  775. package/src/cubing/kpuzzle/move_notation.ts +0 -9
  776. package/src/cubing/kpuzzle/parser/index.ts +0 -1
  777. package/src/cubing/kpuzzle/parser/parser-peggy.js +0 -1221
  778. package/src/cubing/kpuzzle/parser/parser-peggy.peggy +0 -72
  779. package/src/cubing/kpuzzle/parser/parser-shim.ts +0 -11
  780. package/src/cubing/kpuzzle/parser/parser.js +0 -0
  781. package/src/cubing/kpuzzle/prunetable.spec.ts +0 -19
  782. package/src/cubing/kpuzzle/pruningtable.ts +0 -99
  783. package/src/cubing/kpuzzle/puzzle-orientation.ts +0 -34
  784. package/src/cubing/kpuzzle/svg.ts +0 -290
  785. package/src/cubing/kpuzzle/transformations.spec.ts +0 -75
  786. package/src/cubing/kpuzzle/transformations.ts +0 -258
  787. package/src/cubing/notation/CountAnimatedLeaves.ts +0 -56
  788. package/src/cubing/notation/CountMoves.ts +0 -89
  789. package/src/cubing/notation/index.ts +0 -4
  790. package/src/cubing/protocol/binary/binary3x3x3.spec.ts +0 -143
  791. package/src/cubing/protocol/binary/binary3x3x3.ts +0 -226
  792. package/src/cubing/protocol/binary/hex.spec.ts +0 -17
  793. package/src/cubing/protocol/binary/hex.ts +0 -12
  794. package/src/cubing/protocol/binary/orbit-indexing.spec.ts +0 -49
  795. package/src/cubing/protocol/binary/orbit-indexing.ts +0 -68
  796. package/src/cubing/protocol/binary/puzzle-orientation.ts +0 -69
  797. package/src/cubing/protocol/index.ts +0 -12
  798. package/src/cubing/puzzle-geometry/FaceNameSwizzler.ts +0 -148
  799. package/src/cubing/puzzle-geometry/Options.ts +0 -179
  800. package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +0 -127
  801. package/src/cubing/puzzle-geometry/PGPuzzles.ts +0 -80
  802. package/src/cubing/puzzle-geometry/Perm.ts +0 -154
  803. package/src/cubing/puzzle-geometry/PermOriSet.ts +0 -765
  804. package/src/cubing/puzzle-geometry/PlatonicGenerator.ts +0 -146
  805. package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +0 -3013
  806. package/src/cubing/puzzle-geometry/Quat.spec.ts +0 -10
  807. package/src/cubing/puzzle-geometry/Quat.ts +0 -325
  808. package/src/cubing/puzzle-geometry/SchreierSims.ts +0 -144
  809. package/src/cubing/puzzle-geometry/index.ts +0 -17
  810. package/src/cubing/puzzle-geometry/interfaces.ts +0 -6
  811. package/src/cubing/puzzle-geometry/notation-mapping/FTONotationMapper.ts +0 -38
  812. package/src/cubing/puzzle-geometry/notation-mapping/FaceRenamingMapper.ts +0 -59
  813. package/src/cubing/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.ts +0 -50
  814. package/src/cubing/puzzle-geometry/notation-mapping/NotationMapper.ts +0 -6
  815. package/src/cubing/puzzle-geometry/notation-mapping/NullMapper.ts +0 -12
  816. package/src/cubing/puzzle-geometry/notation-mapping/NxNxNCubeMapper.ts +0 -77
  817. package/src/cubing/puzzle-geometry/notation-mapping/PyraminxNotationMapper.ts +0 -121
  818. package/src/cubing/puzzle-geometry/notation-mapping/SkewbNotationMapper.ts +0 -103
  819. package/src/cubing/puzzle-geometry/notation-mapping/index.ts +0 -13
  820. package/src/cubing/puzzle-geometry/orientcenters.spec.ts +0 -55
  821. package/src/cubing/puzzles/PuzzleLoader.ts +0 -20
  822. package/src/cubing/puzzles/async/async-pg3d.ts +0 -73
  823. package/src/cubing/puzzles/customPGPuzzleLoader.ts +0 -60
  824. package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.ts +0 -92
  825. package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.ts +0 -45
  826. package/src/cubing/puzzles/implementations/2x2x2/index.ts +0 -25
  827. package/src/cubing/puzzles/implementations/2x2x2/svg/2x2x2.kpuzzle.svg +0 -45
  828. package/src/cubing/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.ts +0 -108
  829. package/src/cubing/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.ts +0 -128
  830. package/src/cubing/puzzles/implementations/3x3x3/index.ts +0 -33
  831. package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3-ll.kpuzzle.svg +0 -108
  832. package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3.kpuzzle.svg +0 -128
  833. package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.original.svg +0 -128
  834. package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.outlined.svg +0 -486
  835. package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.spaced.svg +0 -128
  836. package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.json.ts +0 -241
  837. package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.svg.ts +0 -369
  838. package/src/cubing/puzzles/implementations/clock/index.ts +0 -14
  839. package/src/cubing/puzzles/implementations/clock/src/clock.kpuzzle.svg +0 -369
  840. package/src/cubing/puzzles/implementations/fto/index.ts +0 -28
  841. package/src/cubing/puzzles/implementations/megaminx/index.ts +0 -20
  842. package/src/cubing/puzzles/implementations/pyraminx/index.ts +0 -18
  843. package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.ts +0 -84
  844. package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.ts +0 -88
  845. package/src/cubing/puzzles/implementations/pyraminx/src/pyraminx.kpuzzle.svg +0 -87
  846. package/src/cubing/puzzles/implementations/square1/index.ts +0 -14
  847. package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.ts +0 -62
  848. package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.ts +0 -295
  849. package/src/cubing/puzzles/implementations/square1/src/sq1-hyperorbit.kpuzzle.svg +0 -295
  850. package/src/cubing/puzzles/implementations/square1/src/sq1-simple.svg +0 -60
  851. package/src/cubing/puzzles/index.ts +0 -92
  852. package/src/cubing/puzzles/stickerings/appearance.ts +0 -292
  853. package/src/cubing/puzzles/stickerings/cube-stickerings.ts +0 -304
  854. package/src/cubing/puzzles/stickerings/fto-stickerings.ts +0 -105
  855. package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +0 -61
  856. package/src/cubing/puzzles/stickerings/megaminx-stickerings.ts +0 -26
  857. package/src/cubing/scramble/index.ts +0 -1
  858. package/src/cubing/search/.DS_Store +0 -0
  859. package/src/cubing/search/.gitignore +0 -1
  860. package/src/cubing/search/esm-test-worker.js +0 -14
  861. package/src/cubing/search/index.ts +0 -12
  862. package/src/cubing/search/inside/.DS_Store +0 -0
  863. package/src/cubing/search/inside/api.spec.ts +0 -37
  864. package/src/cubing/search/inside/api.ts +0 -174
  865. package/src/cubing/search/inside/entry.js +0 -4
  866. package/src/cubing/search/inside/inside-worker.ts +0 -13
  867. package/src/cubing/search/inside/module-entry-path-getter.ts +0 -5
  868. package/src/cubing/search/inside/module-entry.ts +0 -20
  869. package/src/cubing/search/inside/solve/addOrientationSuffix.ts +0 -17
  870. package/src/cubing/search/inside/solve/parseSGS.ts +0 -119
  871. package/src/cubing/search/inside/solve/puzzles/2x2x2.sgs.json.ts +0 -114
  872. package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +0 -92
  873. package/src/cubing/search/inside/solve/puzzles/3x3x3/convert.ts +0 -137
  874. package/src/cubing/search/inside/solve/puzzles/3x3x3/filter.ts +0 -60
  875. package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +0 -67
  876. package/src/cubing/search/inside/solve/puzzles/3x3x3/legacy-sgs.ts +0 -291
  877. package/src/cubing/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.ts +0 -272
  878. package/src/cubing/search/inside/solve/puzzles/4x4x4.ts +0 -30
  879. package/src/cubing/search/inside/solve/puzzles/5x5x5.ts +0 -12
  880. package/src/cubing/search/inside/solve/puzzles/big-cubes.ts +0 -78
  881. package/src/cubing/search/inside/solve/puzzles/clock.ts +0 -48
  882. package/src/cubing/search/inside/solve/puzzles/fto.sgs.json.ts +0 -643
  883. package/src/cubing/search/inside/solve/puzzles/fto.ts +0 -58
  884. package/src/cubing/search/inside/solve/puzzles/megaminx.sgs.json.ts +0 -1549
  885. package/src/cubing/search/inside/solve/puzzles/megaminx.ts +0 -51
  886. package/src/cubing/search/inside/solve/puzzles/pyraminx.sgs.json.ts +0 -98
  887. package/src/cubing/search/inside/solve/puzzles/pyraminx.ts +0 -48
  888. package/src/cubing/search/inside/solve/puzzles/sgs-defs.spec.ts +0 -27
  889. package/src/cubing/search/inside/solve/puzzles/skewb.sgs.json.ts +0 -113
  890. package/src/cubing/search/inside/solve/puzzles/skewb.ts +0 -65
  891. package/src/cubing/search/inside/solve/puzzles/sq1.ts +0 -16
  892. package/src/cubing/search/inside/solve/puzzles/wca-minx.ts +0 -32
  893. package/src/cubing/search/inside/solve/tremble.ts +0 -213
  894. package/src/cubing/search/instantiator.ts +0 -95
  895. package/src/cubing/search/outside.ts +0 -110
  896. package/src/cubing/search/worker-inside-generated-string.js +0 -1
  897. package/src/cubing/stream/index.ts +0 -12
  898. package/src/cubing/stream/process/ReorientedStream.ts +0 -93
  899. package/src/cubing/stream/proxy-event.ts +0 -16
  900. package/src/cubing/stream/twizzle/TwizzleStream.ts +0 -53
  901. package/src/cubing/stream/twizzle/stream-types.ts +0 -45
  902. package/src/cubing/stream/websocket-proxy.ts +0 -73
  903. package/src/cubing/twisty/controllers/AnimationTypes.ts +0 -50
  904. package/src/cubing/twisty/controllers/RenderScheduler.ts +0 -28
  905. package/src/cubing/twisty/controllers/TwistyAnimationController.ts +0 -325
  906. package/src/cubing/twisty/controllers/TwistyPlayerController.ts +0 -38
  907. package/src/cubing/twisty/controllers/easing.ts +0 -3
  908. package/src/cubing/twisty/controllers/indexer/AlgDuration.ts +0 -94
  909. package/src/cubing/twisty/controllers/indexer/AlgIndexer.ts +0 -87
  910. package/src/cubing/twisty/controllers/indexer/SimpleAlgIndexer.ts +0 -76
  911. package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +0 -181
  912. package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +0 -243
  913. package/src/cubing/twisty/controllers/indexer/simultaneous-moves/simul-moves.ts +0 -193
  914. package/src/cubing/twisty/controllers/indexer/tree/AlgWalker.ts +0 -439
  915. package/src/cubing/twisty/controllers/indexer/tree/TreeAlgIndexer.ts +0 -97
  916. package/src/cubing/twisty/controllers/indexer/tree/chunkAlgs.ts +0 -81
  917. package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -59
  918. package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.ts +0 -162
  919. package/src/cubing/twisty/heavy-code-imports/3d.ts +0 -18
  920. package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +0 -31
  921. package/src/cubing/twisty/index.ts +0 -24
  922. package/src/cubing/twisty/model/PromiseFreshener.ts +0 -49
  923. package/src/cubing/twisty/model/TwistyPlayerModel.ts +0 -256
  924. package/src/cubing/twisty/model/UserVisibleErrorTracker.ts +0 -22
  925. package/src/cubing/twisty/model/helpers.ts +0 -47
  926. package/src/cubing/twisty/model/props/TwistyProp.spec.ts +0 -38
  927. package/src/cubing/twisty/model/props/TwistyProp.ts +0 -366
  928. package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +0 -370
  929. package/src/cubing/twisty/model/props/general/URLProp.ts +0 -14
  930. package/src/cubing/twisty/model/props/puzzle/display/FoundationDisplayProp.ts +0 -9
  931. package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +0 -15
  932. package/src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts +0 -43
  933. package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +0 -56
  934. package/src/cubing/twisty/model/props/puzzle/state/AlgProp.ts +0 -91
  935. package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +0 -28
  936. package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +0 -44
  937. package/src/cubing/twisty/model/props/puzzle/state/CatchUpMoveProp.ts +0 -17
  938. package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +0 -109
  939. package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +0 -48
  940. package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +0 -46
  941. package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +0 -53
  942. package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.ts +0 -15
  943. package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +0 -24
  944. package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +0 -22
  945. package/src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts +0 -14
  946. package/src/cubing/twisty/model/props/puzzle/state/NaiveMoveCountProp.ts +0 -20
  947. package/src/cubing/twisty/model/props/puzzle/state/PuzzleAlgProp.ts +0 -28
  948. package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +0 -14
  949. package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDefProp.ts +0 -14
  950. package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.ts +0 -14
  951. package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +0 -12
  952. package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +0 -36
  953. package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +0 -38
  954. package/src/cubing/twisty/model/props/timeline/CoarseTimelineInfoProp.ts +0 -45
  955. package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +0 -78
  956. package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +0 -48
  957. package/src/cubing/twisty/model/props/timeline/TempoScaleProp.ts +0 -13
  958. package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +0 -38
  959. package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +0 -16
  960. package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +0 -15
  961. package/src/cubing/twisty/model/props/viewer/ButtonAppearanceProp.ts +0 -86
  962. package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +0 -14
  963. package/src/cubing/twisty/model/props/viewer/LatitudeLimit.ts +0 -11
  964. package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +0 -127
  965. package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +0 -69
  966. package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +0 -15
  967. package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +0 -14
  968. package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +0 -17
  969. package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +0 -45
  970. package/src/cubing/twisty/views/2D/Twisty2DPuzzle.css.ts +0 -26
  971. package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +0 -146
  972. package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +0 -52
  973. package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +0 -77
  974. package/src/cubing/twisty/views/3D/DragTracker.ts +0 -184
  975. package/src/cubing/twisty/views/3D/RendererPool.ts +0 -54
  976. package/src/cubing/twisty/views/3D/TAU.ts +0 -2
  977. package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +0 -214
  978. package/src/cubing/twisty/views/3D/Twisty3DRenderTarget.ts +0 -5
  979. package/src/cubing/twisty/views/3D/Twisty3DScene.ts +0 -42
  980. package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +0 -189
  981. package/src/cubing/twisty/views/3D/Twisty3DVantage.css.ts +0 -32
  982. package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +0 -312
  983. package/src/cubing/twisty/views/3D/TwistyOrbitControls.spec.ts +0 -213
  984. package/src/cubing/twisty/views/3D/TwistyOrbitControls.ts +0 -176
  985. package/src/cubing/twisty/views/3D/puzzles/Cube3D.ts +0 -966
  986. package/src/cubing/twisty/views/3D/puzzles/KPuzzleWrapper.ts +0 -142
  987. package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +0 -1078
  988. package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +0 -6
  989. package/src/cubing/twisty/views/ClassListManager.ts +0 -34
  990. package/src/cubing/twisty/views/ManagedCustomElement.ts +0 -76
  991. package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +0 -116
  992. package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.ts +0 -72
  993. package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.ts +0 -57
  994. package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +0 -368
  995. package/src/cubing/twisty/views/TwistyAlgEditor/model.ts +0 -179
  996. package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +0 -25
  997. package/src/cubing/twisty/views/TwistyAlgViewer.ts +0 -502
  998. package/src/cubing/twisty/views/TwistyPlayer.css.ts +0 -73
  999. package/src/cubing/twisty/views/TwistyPlayer.ts +0 -362
  1000. package/src/cubing/twisty/views/TwistyPlayerSettable.ts +0 -115
  1001. package/src/cubing/twisty/views/TwistyViewerWrapper.css.ts +0 -41
  1002. package/src/cubing/twisty/views/canvas.ts +0 -9
  1003. package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.css.ts +0 -127
  1004. package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +0 -156
  1005. package/src/cubing/twisty/views/control-panel/TwistyScrubber.css.ts +0 -48
  1006. package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +0 -145
  1007. package/src/cubing/twisty/views/control-panel/webkit-fullscreen.ts +0 -44
  1008. package/src/cubing/twisty/views/document.ts +0 -4
  1009. package/src/cubing/twisty/views/node-custom-element-shims.ts +0 -30
  1010. package/src/cubing/twisty/views/screenshot.ts +0 -90
  1011. package/src/cubing/twisty/views/stream/TwistyStreamSource.css.ts +0 -17
  1012. package/src/cubing/twisty/views/stream/TwistyStreamSource.ts +0 -155
  1013. package/src/cubing/vendor/.DS_Store +0 -0
  1014. package/src/cubing/vendor/comlink-everywhere/.DS_Store +0 -0
  1015. package/src/cubing/vendor/comlink-everywhere/comlink-everywhere.webloc +0 -8
  1016. package/src/cubing/vendor/comlink-everywhere/inside/index.d.ts +0 -1
  1017. package/src/cubing/vendor/comlink-everywhere/inside/index.js +0 -16
  1018. package/src/cubing/vendor/comlink-everywhere/inside/node.js +0 -6
  1019. package/src/cubing/vendor/comlink-everywhere/outside/index.d.ts +0 -6
  1020. package/src/cubing/vendor/comlink-everywhere/outside/index.js +0 -31
  1021. package/src/cubing/vendor/comlink-everywhere/outside/node.js +0 -42
  1022. package/src/cubing/vendor/cstimer/.DS_Store +0 -0
  1023. package/src/cubing/vendor/cstimer/LICENSE +0 -674
  1024. package/src/cubing/vendor/cstimer/src/.DS_Store +0 -0
  1025. package/src/cubing/vendor/cstimer/src/js/lib/mathlib.ts +0 -54
  1026. package/src/cubing/vendor/cstimer/src/js/scramble/scramble_444.ts +0 -2791
  1027. package/src/cubing/vendor/min2phase/gwt.d.ts +0 -2
  1028. package/src/cubing/vendor/min2phase/gwt.js +0 -2699
  1029. package/src/cubing/vendor/p-lazy/license +0 -9
  1030. package/src/cubing/vendor/p-lazy/p-lazy.ts +0 -52
  1031. package/src/cubing/vendor/p-lazy/readme.md +0 -54
  1032. package/src/cubing/vendor/random-uint-below/get-random-values.ts +0 -23
  1033. package/src/cubing/vendor/random-uint-below/index.ts +0 -12
  1034. package/src/cubing/vendor/random-uint-below/random-choice.ts +0 -9
  1035. package/src/cubing/vendor/random-uint-below/random53BitValue.ts +0 -64
  1036. package/src/cubing/vendor/sq12phase/scramble_sq1.js +0 -853
  1037. package/src/cubing/vendor/three/.DS_Store +0 -0
  1038. package/src/cubing/vendor/three/examples/.DS_Store +0 -0
  1039. package/src/cubing/vendor/three/examples/jsm/libs/stats.modified.module.ts +0 -179
  1040. package/src/cubing/vendor/unsafe-raw-aes/unsafe-raw-aes.ts +0 -64
@@ -1,2791 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-nocheck
3
-
4
- /*eslint no-implicit-globals: "error"*/
5
- /* eslint-disable @typescript-eslint/no-unsafe-return */
6
- import { Alg } from "../../../../../alg";
7
- import { random333Scramble as getRandomScramble333 } from "../../../../../search/inside/solve/puzzles/3x3x3";
8
- import { circle, Cnk, set8Perm } from "../lib/mathlib";
9
- import { randomUIntBelowFactory } from "../../../../random-uint-below";
10
- import { mustBeInsideWorker } from "../../../../../search/inside/inside-worker";
11
-
12
- function createArray(length1: number, length2?: number) {
13
- const result = new Array<number[]>(length1);
14
- if (length2 !== undefined) {
15
- for (let i = 0; i < length1; i++) {
16
- result[i] = new Array(length2);
17
- }
18
- }
19
- return result;
20
- }
21
-
22
- let _: any;
23
- const seedTable: Record<number, any> = {},
24
- CM$ = {};
25
- const Q$Object = 0,
26
- Q$Serializable = 30,
27
- Q$Center1 = 21,
28
- Q$CornerCube = 22,
29
- Q$Edge3 = 23,
30
- Q$FullCube_0 = 24,
31
- Q$FullCube_$1 = 25,
32
- Q$Comparable = 34,
33
- Q$Search_0 = 26,
34
- Q$Object_$1 = 40;
35
-
36
- function newSeed(id: number) {
37
- return new seedTable[id]();
38
- }
39
-
40
- function defineSeed(
41
- id: number,
42
- superSeed: number,
43
- castableTypeMap: any, // TODO
44
- ...moreArgs: any[]
45
- ) {
46
- let seed = seedTable[id];
47
- if (seed && !seed.___clazz$) {
48
- _ = seed.prototype;
49
- } else {
50
- !seed && (seed = seedTable[id] = function () {});
51
- _ = seed.prototype = superSeed < 0 ? {} : newSeed(superSeed);
52
- _.castableTypeMap$ = castableTypeMap;
53
- }
54
- for (const arg of moreArgs) {
55
- arg.prototype = _;
56
- }
57
- if (seed.___clazz$) {
58
- _.___clazz$ = seed.___clazz$;
59
- seed.___clazz$ = null;
60
- }
61
- }
62
-
63
- function makeCastMap(a: number[]) {
64
- const result: Record<number, number> = {};
65
- for (let i_0 = 0, c = a.length; i_0 < c; ++i_0) {
66
- result[a[i_0]] = 1;
67
- }
68
- return result;
69
- }
70
-
71
- defineSeed(1, -1, CM$);
72
-
73
- _.value = null;
74
-
75
- function Array_0() {}
76
-
77
- function createFrom(a: any, length_0: number) {
78
- const result = createFromSeed(0, length_0);
79
- initValues(a.___clazz$, a.castableTypeMap$, a.queryId$, result);
80
- return result;
81
- }
82
-
83
- function createFromSeed(seedType: number, length_0: number) {
84
- const array = new Array(length_0);
85
- if (seedType === 3) {
86
- for (let i_0 = 0; i_0 < length_0; ++i_0) {
87
- const value = {
88
- m: 0,
89
- l: 0,
90
- h: 0,
91
- };
92
- value.l = value.m = value.h = 0;
93
- array[i_0] = value;
94
- }
95
- } else if (seedType > 0) {
96
- const value = [null, 0, false][seedType];
97
- for (let i_0 = 0; i_0 < length_0; ++i_0) {
98
- array[i_0] = value;
99
- }
100
- }
101
- return array;
102
- }
103
-
104
- function initDim(arrayClass, castableTypeMap, queryId, length_0, seedType) {
105
- const result = createFromSeed(seedType, length_0);
106
- initValues(arrayClass, castableTypeMap, queryId, result);
107
- return result;
108
- }
109
-
110
- function initValues(arrayClass, castableTypeMap, queryId, array) {
111
- $clinit_Array$ExpandoWrapper();
112
- wrapArray(array, expandoNames_0, expandoValues_0);
113
- array.___clazz$ = arrayClass;
114
- array.castableTypeMap$ = castableTypeMap;
115
- array.queryId$ = queryId;
116
- return array;
117
- }
118
-
119
- function setCheck(array, index, value) {
120
- return (array[index] = value);
121
- }
122
-
123
- defineSeed(73, 1, {}, Array_0);
124
- _.queryId$ = 0;
125
-
126
- let ran$clinit_Array$ExpandoWrapper = false;
127
- function $clinit_Array$ExpandoWrapper() {
128
- if (ran$clinit_Array$ExpandoWrapper) {
129
- return;
130
- }
131
- ran$clinit_Array$ExpandoWrapper = true;
132
- expandoNames_0 = [];
133
- expandoValues_0 = [];
134
- initExpandos(new Array_0(), expandoNames_0, expandoValues_0);
135
- }
136
-
137
- function initExpandos(protoType, expandoNames, expandoValues) {
138
- let i_0 = 0,
139
- value;
140
- for (const name_0 in protoType) {
141
- if ((value = protoType[name_0])) {
142
- expandoNames[i_0] = name_0;
143
- expandoValues[i_0] = value;
144
- ++i_0;
145
- }
146
- }
147
- }
148
-
149
- function wrapArray(array, expandoNames, expandoValues) {
150
- $clinit_Array$ExpandoWrapper();
151
- for (let i_0 = 0, c = expandoNames.length; i_0 < c; ++i_0) {
152
- array[expandoNames[i_0]] = expandoValues[i_0];
153
- }
154
- }
155
-
156
- let expandoNames_0, expandoValues_0;
157
-
158
- function canCast(src, dstId) {
159
- return src.castableTypeMap$ && !!src.castableTypeMap$[dstId];
160
- }
161
-
162
- function instanceOf(src, dstId) {
163
- return src !== null && canCast(src, dstId);
164
- }
165
-
166
- let ran$clinit_Center1 = false;
167
- function $clinit_Center1() {
168
- if (ran$clinit_Center1) {
169
- return false;
170
- }
171
- ran$clinit_Center1 = true;
172
- ctsmv = createArray(15582, 36);
173
- sym2raw = createArray(15582);
174
- csprun = createArray(15582);
175
- symmult = createArray(48, 48);
176
- symmove = createArray(48, 36);
177
- syminv = createArray(48);
178
- finish_0 = createArray(48);
179
- }
180
-
181
- function $$init_1(this$static) {
182
- this$static.ct = createArray(24);
183
- }
184
-
185
- function $equals(this$static, obj) {
186
- let c, i_0;
187
- if (instanceOf(obj, Q$Center1)) {
188
- c = obj;
189
- for (i_0 = 0; i_0 < 24; ++i_0) {
190
- if (this$static.ct[i_0] !== c.ct[i_0]) {
191
- return false;
192
- }
193
- }
194
- return true;
195
- }
196
- return false;
197
- }
198
-
199
- function $get_1(this$static) {
200
- let i_0, idx, r;
201
- idx = 0;
202
- r = 8;
203
- for (i_0 = 23; i_0 >= 0; --i_0) {
204
- this$static.ct[i_0] === 1 && (idx += Cnk[i_0][r--]);
205
- }
206
- return idx;
207
- }
208
-
209
- function $getsym(this$static) {
210
- let cord, j;
211
- if (raw2sym !== null) {
212
- return raw2sym[$get_1(this$static)];
213
- }
214
- for (j = 0; j < 48; ++j) {
215
- cord = raw2sym_0($get_1(this$static));
216
- if (cord !== -1) return cord * 64 + j;
217
- $rot(this$static, 0);
218
- j % 2 === 1 && $rot(this$static, 1);
219
- j % 8 === 7 && $rot(this$static, 2);
220
- j % 16 === 15 && $rot(this$static, 3);
221
- }
222
- }
223
-
224
- function $move(this$static, m_0) {
225
- const key = m_0 % 3;
226
- m_0 = ~~(m_0 / 3);
227
- switch (m_0) {
228
- case 0:
229
- swap(this$static.ct, 0, 1, 2, 3, key);
230
- break;
231
- case 1:
232
- swap(this$static.ct, 16, 17, 18, 19, key);
233
- break;
234
- case 2:
235
- swap(this$static.ct, 8, 9, 10, 11, key);
236
- break;
237
- case 3:
238
- swap(this$static.ct, 4, 5, 6, 7, key);
239
- break;
240
- case 4:
241
- swap(this$static.ct, 20, 21, 22, 23, key);
242
- break;
243
- case 5:
244
- swap(this$static.ct, 12, 13, 14, 15, key);
245
- break;
246
- case 6:
247
- swap(this$static.ct, 0, 1, 2, 3, key);
248
- swap(this$static.ct, 8, 20, 12, 16, key);
249
- swap(this$static.ct, 9, 21, 13, 17, key);
250
- break;
251
- case 7:
252
- swap(this$static.ct, 16, 17, 18, 19, key);
253
- swap(this$static.ct, 1, 15, 5, 9, key);
254
- swap(this$static.ct, 2, 12, 6, 10, key);
255
- break;
256
- case 8:
257
- swap(this$static.ct, 8, 9, 10, 11, key);
258
- swap(this$static.ct, 2, 19, 4, 21, key);
259
- swap(this$static.ct, 3, 16, 5, 22, key);
260
- break;
261
- case 9:
262
- swap(this$static.ct, 4, 5, 6, 7, key);
263
- swap(this$static.ct, 10, 18, 14, 22, key);
264
- swap(this$static.ct, 11, 19, 15, 23, key);
265
- break;
266
- case 10:
267
- swap(this$static.ct, 20, 21, 22, 23, key);
268
- swap(this$static.ct, 0, 8, 4, 14, key);
269
- swap(this$static.ct, 3, 11, 7, 13, key);
270
- break;
271
- case 11:
272
- swap(this$static.ct, 12, 13, 14, 15, key);
273
- swap(this$static.ct, 1, 20, 7, 18, key);
274
- swap(this$static.ct, 0, 23, 6, 17, key);
275
- }
276
- }
277
-
278
- function $rot(this$static, r) {
279
- switch (r) {
280
- case 0:
281
- $move(this$static, 19);
282
- $move(this$static, 28);
283
- break;
284
- case 1:
285
- $move(this$static, 21);
286
- $move(this$static, 32);
287
- break;
288
- case 2:
289
- swap(this$static.ct, 0, 3, 1, 2, 1);
290
- swap(this$static.ct, 8, 11, 9, 10, 1);
291
- swap(this$static.ct, 4, 7, 5, 6, 1);
292
- swap(this$static.ct, 12, 15, 13, 14, 1);
293
- swap(this$static.ct, 16, 19, 21, 22, 1);
294
- swap(this$static.ct, 17, 18, 20, 23, 1);
295
- break;
296
- case 3:
297
- $move(this$static, 18);
298
- $move(this$static, 29);
299
- $move(this$static, 24);
300
- $move(this$static, 35);
301
- }
302
- }
303
-
304
- function $rotate(this$static, r) {
305
- let j;
306
- for (j = 0; j < r; ++j) {
307
- $rot(this$static, 0);
308
- j % 2 === 1 && $rot(this$static, 1);
309
- j % 8 === 7 && $rot(this$static, 2);
310
- j % 16 === 15 && $rot(this$static, 3);
311
- }
312
- }
313
-
314
- function $set_0(this$static, idx) {
315
- let i_0, r;
316
- r = 8;
317
- for (i_0 = 23; i_0 >= 0; --i_0) {
318
- this$static.ct[i_0] = 0;
319
- if (idx >= Cnk[i_0][r]) {
320
- idx -= Cnk[i_0][r--];
321
- this$static.ct[i_0] = 1;
322
- }
323
- }
324
- }
325
-
326
- function $set_1(this$static, c) {
327
- let i_0;
328
- for (i_0 = 0; i_0 < 24; ++i_0) {
329
- this$static.ct[i_0] = c.ct[i_0];
330
- }
331
- }
332
-
333
- function Center1_0() {
334
- let i_0;
335
- $$init_1(this);
336
- for (i_0 = 0; i_0 < 8; ++i_0) {
337
- this.ct[i_0] = 1;
338
- }
339
- for (i_0 = 8; i_0 < 24; ++i_0) {
340
- this.ct[i_0] = 0;
341
- }
342
- }
343
-
344
- function Center1_1(c, urf) {
345
- let i_0;
346
- $$init_1(this);
347
- for (i_0 = 0; i_0 < 24; ++i_0) {
348
- this.ct[i_0] = ~~(c.ct[i_0] / 2) === urf ? 1 : 0;
349
- }
350
- }
351
-
352
- function Center1_2(ct) {
353
- let i_0;
354
- $$init_1(this);
355
- for (i_0 = 0; i_0 < 24; ++i_0) {
356
- this.ct[i_0] = ct[i_0];
357
- }
358
- }
359
-
360
- function createMoveTable() {
361
- let i_0, m_0;
362
- const c = new Center1_0();
363
- const d = new Center1_0();
364
- for (i_0 = 0; i_0 < 15582; ++i_0) {
365
- $set_0(d, sym2raw[i_0]);
366
- for (m_0 = 0; m_0 < 36; ++m_0) {
367
- $set_1(c, d);
368
- $move(c, m_0);
369
- ctsmv[i_0][m_0] = $getsym(c);
370
- }
371
- }
372
- }
373
-
374
- function createPrun() {
375
- let check, depth, done, i_0, idx, inv, m_0, select;
376
- fill_0(csprun);
377
- csprun[0] = 0;
378
- depth = 0;
379
- done = 1;
380
- while (done !== 15582) {
381
- inv = depth > 4;
382
- select = inv ? -1 : depth;
383
- check = inv ? depth : -1;
384
- ++depth;
385
- for (i_0 = 0; i_0 < 15582; ++i_0) {
386
- if (csprun[i_0] !== select) {
387
- continue;
388
- }
389
- for (m_0 = 0; m_0 < 27; ++m_0) {
390
- idx = ~~ctsmv[i_0][m_0] >>> 6;
391
- if (csprun[idx] !== check) {
392
- continue;
393
- }
394
- ++done;
395
- if (inv) {
396
- csprun[i_0] = depth;
397
- break;
398
- } else {
399
- csprun[idx] = depth;
400
- }
401
- }
402
- }
403
- }
404
- }
405
-
406
- function getSolvedSym(cube) {
407
- let check, i_0, j;
408
- const c = new Center1_2(cube.ct);
409
- for (j = 0; j < 48; ++j) {
410
- check = true;
411
- for (i_0 = 0; i_0 < 24; ++i_0) {
412
- if (c.ct[i_0] !== ~~(i_0 / 4)) {
413
- check = false;
414
- break;
415
- }
416
- }
417
- if (check) {
418
- return j;
419
- }
420
- $rot(c, 0);
421
- j % 2 === 1 && $rot(c, 1);
422
- j % 8 === 7 && $rot(c, 2);
423
- j % 16 === 15 && $rot(c, 3);
424
- }
425
- return -1;
426
- }
427
-
428
- function initSym_0() {
429
- let i_0, j, k_0;
430
- const c = new Center1_0();
431
- for (i_0 = 0; i_0 < 24; ++i_0) {
432
- c.ct[i_0] = i_0;
433
- }
434
- const d = new Center1_2(c.ct);
435
- const e = new Center1_2(c.ct);
436
- const f = new Center1_2(c.ct);
437
- for (i_0 = 0; i_0 < 48; ++i_0) {
438
- for (j = 0; j < 48; ++j) {
439
- for (k_0 = 0; k_0 < 48; ++k_0) {
440
- if ($equals(c, d)) {
441
- symmult[i_0][j] = k_0;
442
- k_0 === 0 && (syminv[i_0] = j);
443
- }
444
- $rot(d, 0);
445
- k_0 % 2 === 1 && $rot(d, 1);
446
- k_0 % 8 === 7 && $rot(d, 2);
447
- k_0 % 16 === 15 && $rot(d, 3);
448
- }
449
- $rot(c, 0);
450
- j % 2 === 1 && $rot(c, 1);
451
- j % 8 === 7 && $rot(c, 2);
452
- j % 16 === 15 && $rot(c, 3);
453
- }
454
- $rot(c, 0);
455
- i_0 % 2 === 1 && $rot(c, 1);
456
- i_0 % 8 === 7 && $rot(c, 2);
457
- i_0 % 16 === 15 && $rot(c, 3);
458
- }
459
- for (i_0 = 0; i_0 < 48; ++i_0) {
460
- $set_1(c, e);
461
- $rotate(c, syminv[i_0]);
462
- for (j = 0; j < 36; ++j) {
463
- $set_1(d, c);
464
- $move(d, j);
465
- $rotate(d, i_0);
466
- for (k_0 = 0; k_0 < 36; ++k_0) {
467
- $set_1(f, e);
468
- $move(f, k_0);
469
- if ($equals(f, d)) {
470
- symmove[i_0][j] = k_0;
471
- break;
472
- }
473
- }
474
- }
475
- }
476
- $set_0(c, 0);
477
- for (i_0 = 0; i_0 < 48; ++i_0) {
478
- finish_0[syminv[i_0]] = $get_1(c);
479
- $rot(c, 0);
480
- i_0 % 2 === 1 && $rot(c, 1);
481
- i_0 % 8 === 7 && $rot(c, 2);
482
- i_0 % 16 === 15 && $rot(c, 3);
483
- }
484
- }
485
-
486
- function initSym2Raw() {
487
- let count, i_0, idx, j;
488
- const c = new Center1_0();
489
- const occ = createArray(22984);
490
- for (i_0 = 0; i_0 < 22984; i_0++) {
491
- occ[i_0] = 0;
492
- }
493
- count = 0;
494
- for (i_0 = 0; i_0 < 735471; ++i_0) {
495
- if ((occ[~~i_0 >>> 5] & (1 << (i_0 & 31))) === 0) {
496
- $set_0(c, i_0);
497
- for (j = 0; j < 48; ++j) {
498
- idx = $get_1(c);
499
- occ[~~idx >>> 5] |= 1 << (idx & 31);
500
- raw2sym !== null && (raw2sym[idx] = (count << 6) | syminv[j]);
501
- $rot(c, 0);
502
- j % 2 === 1 && $rot(c, 1);
503
- j % 8 === 7 && $rot(c, 2);
504
- j % 16 === 15 && $rot(c, 3);
505
- }
506
- sym2raw[count++] = i_0;
507
- }
508
- }
509
- }
510
-
511
- function raw2sym_0(n) {
512
- const m_0 = binarySearch_0(sym2raw, n);
513
- return m_0 >= 0 ? m_0 : -1;
514
- }
515
-
516
- defineSeed(153, 1, makeCastMap([Q$Center1]), Center1_0, Center1_1, Center1_2);
517
-
518
- let csprun,
519
- ctsmv,
520
- finish_0,
521
- raw2sym = null,
522
- sym2raw,
523
- syminv,
524
- symmove,
525
- symmult;
526
-
527
- let ran$clinit_Center2 = false;
528
- function $clinit_Center2() {
529
- if (ran$clinit_Center2) {
530
- return;
531
- }
532
- ran$clinit_Center2 = true;
533
- rlmv = createArray(70, 28);
534
- ctmv = createArray(6435, 28);
535
- rlrot = createArray(70, 16);
536
- ctrot = createArray(6435, 16);
537
- ctprun = createArray(450450);
538
- pmv = [
539
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,
540
- 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0,
541
- ];
542
- }
543
-
544
- function $getct(this$static) {
545
- let i_0, idx, r;
546
- idx = 0;
547
- r = 8;
548
- for (i_0 = 14; i_0 >= 0; --i_0) {
549
- this$static.ct[i_0] !== this$static.ct[15] && (idx += Cnk[i_0][r--]);
550
- }
551
- return idx;
552
- }
553
-
554
- function $getrl(this$static) {
555
- let i_0, idx, r;
556
- idx = 0;
557
- r = 4;
558
- for (i_0 = 6; i_0 >= 0; --i_0) {
559
- this$static.rl[i_0] !== this$static.rl[7] && (idx += Cnk[i_0][r--]);
560
- }
561
- return idx * 2 + this$static.parity;
562
- }
563
-
564
- function $move_0(this$static, m_0) {
565
- this$static.parity ^= pmv[m_0];
566
- const key = m_0 % 3;
567
- m_0 = ~~(m_0 / 3);
568
- switch (m_0) {
569
- case 0:
570
- swap(this$static.ct, 0, 1, 2, 3, key);
571
- break;
572
- case 1:
573
- swap(this$static.rl, 0, 1, 2, 3, key);
574
- break;
575
- case 2:
576
- swap(this$static.ct, 8, 9, 10, 11, key);
577
- break;
578
- case 3:
579
- swap(this$static.ct, 4, 5, 6, 7, key);
580
- break;
581
- case 4:
582
- swap(this$static.rl, 4, 5, 6, 7, key);
583
- break;
584
- case 5:
585
- swap(this$static.ct, 12, 13, 14, 15, key);
586
- break;
587
- case 6:
588
- swap(this$static.ct, 0, 1, 2, 3, key);
589
- swap(this$static.rl, 0, 5, 4, 1, key);
590
- swap(this$static.ct, 8, 9, 12, 13, key);
591
- break;
592
- case 7:
593
- swap(this$static.rl, 0, 1, 2, 3, key);
594
- swap(this$static.ct, 1, 15, 5, 9, key);
595
- swap(this$static.ct, 2, 12, 6, 10, key);
596
- break;
597
- case 8:
598
- swap(this$static.ct, 8, 9, 10, 11, key);
599
- swap(this$static.rl, 0, 3, 6, 5, key);
600
- swap(this$static.ct, 3, 2, 5, 4, key);
601
- break;
602
- case 9:
603
- swap(this$static.ct, 4, 5, 6, 7, key);
604
- swap(this$static.rl, 3, 2, 7, 6, key);
605
- swap(this$static.ct, 11, 10, 15, 14, key);
606
- break;
607
- case 10:
608
- swap(this$static.rl, 4, 5, 6, 7, key);
609
- swap(this$static.ct, 0, 8, 4, 14, key);
610
- swap(this$static.ct, 3, 11, 7, 13, key);
611
- break;
612
- case 11:
613
- swap(this$static.ct, 12, 13, 14, 15, key);
614
- swap(this$static.rl, 1, 4, 7, 2, key);
615
- swap(this$static.ct, 1, 0, 7, 6, key);
616
- }
617
- }
618
-
619
- function $rot_0(this$static, r) {
620
- switch (r) {
621
- case 0:
622
- $move_0(this$static, 19);
623
- $move_0(this$static, 28);
624
- break;
625
- case 1:
626
- $move_0(this$static, 21);
627
- $move_0(this$static, 32);
628
- break;
629
- case 2:
630
- swap(this$static.ct, 0, 3, 1, 2, 1);
631
- swap(this$static.ct, 8, 11, 9, 10, 1);
632
- swap(this$static.ct, 4, 7, 5, 6, 1);
633
- swap(this$static.ct, 12, 15, 13, 14, 1);
634
- swap(this$static.rl, 0, 3, 5, 6, 1);
635
- swap(this$static.rl, 1, 2, 4, 7, 1);
636
- }
637
- }
638
-
639
- function $set_2(this$static, c, edgeParity) {
640
- let i_0;
641
- for (i_0 = 0; i_0 < 16; ++i_0) {
642
- this$static.ct[i_0] = ~~(c.ct[i_0] / 2);
643
- }
644
- for (i_0 = 0; i_0 < 8; ++i_0) {
645
- this$static.rl[i_0] = c.ct[i_0 + 16];
646
- }
647
- this$static.parity = edgeParity;
648
- }
649
-
650
- function $setct(this$static, idx) {
651
- let i_0, r;
652
- r = 8;
653
- this$static.ct[15] = 0;
654
- for (i_0 = 14; i_0 >= 0; --i_0) {
655
- if (idx >= Cnk[i_0][r]) {
656
- idx -= Cnk[i_0][r--];
657
- this$static.ct[i_0] = 1;
658
- } else {
659
- this$static.ct[i_0] = 0;
660
- }
661
- }
662
- }
663
-
664
- function $setrl(this$static, idx) {
665
- let i_0, r;
666
- this$static.parity = idx & 1;
667
- idx >>>= 1;
668
- r = 4;
669
- this$static.rl[7] = 0;
670
- for (i_0 = 6; i_0 >= 0; --i_0) {
671
- if (idx >= Cnk[i_0][r]) {
672
- idx -= Cnk[i_0][r--];
673
- this$static.rl[i_0] = 1;
674
- } else {
675
- this$static.rl[i_0] = 0;
676
- }
677
- }
678
- }
679
-
680
- function Center2_0() {
681
- this.rl = createArray(8);
682
- this.ct = createArray(16);
683
- }
684
-
685
- function init_3() {
686
- let ct, ctx, depth, done, i_0, idx, j, m_0, rl, rlx;
687
- const c = new Center2_0();
688
- for (i_0 = 0; i_0 < 70; ++i_0) {
689
- for (m_0 = 0; m_0 < 28; ++m_0) {
690
- $setrl(c, i_0);
691
- $move_0(c, move2std[m_0]);
692
- rlmv[i_0][m_0] = $getrl(c);
693
- }
694
- }
695
- for (i_0 = 0; i_0 < 70; ++i_0) {
696
- $setrl(c, i_0);
697
- for (j = 0; j < 16; ++j) {
698
- rlrot[i_0][j] = $getrl(c);
699
- $rot_0(c, 0);
700
- j % 2 === 1 && $rot_0(c, 1);
701
- j % 8 === 7 && $rot_0(c, 2);
702
- }
703
- }
704
- for (i_0 = 0; i_0 < 6435; ++i_0) {
705
- $setct(c, i_0);
706
- for (j = 0; j < 16; ++j) {
707
- ctrot[i_0][j] = $getct(c) & 65535;
708
- $rot_0(c, 0);
709
- j % 2 === 1 && $rot_0(c, 1);
710
- j % 8 === 7 && $rot_0(c, 2);
711
- }
712
- }
713
- for (i_0 = 0; i_0 < 6435; ++i_0) {
714
- for (m_0 = 0; m_0 < 28; ++m_0) {
715
- $setct(c, i_0);
716
- $move_0(c, move2std[m_0]);
717
- ctmv[i_0][m_0] = $getct(c) & 65535;
718
- }
719
- }
720
- fill_0(ctprun);
721
- ctprun[0] =
722
- ctprun[18] =
723
- ctprun[28] =
724
- ctprun[46] =
725
- ctprun[54] =
726
- ctprun[56] =
727
- 0;
728
- depth = 0;
729
- done = 6;
730
-
731
- while (done !== 450450) {
732
- const inv = depth > 6;
733
- const select = inv ? -1 : depth;
734
- const check = inv ? depth : -1;
735
- ++depth;
736
- for (i_0 = 0; i_0 < 450450; ++i_0) {
737
- if (ctprun[i_0] !== select) {
738
- continue;
739
- }
740
- ct = ~~(i_0 / 70);
741
- rl = i_0 % 70;
742
- for (m_0 = 0; m_0 < 23; ++m_0) {
743
- ctx = ctmv[ct][m_0];
744
- rlx = rlmv[rl][m_0];
745
- idx = ctx * 70 + rlx;
746
- if (ctprun[idx] !== check) {
747
- continue;
748
- }
749
- ++done;
750
- if (inv) {
751
- ctprun[i_0] = depth;
752
- break;
753
- } else {
754
- ctprun[idx] = depth;
755
- }
756
- }
757
- }
758
- }
759
- }
760
-
761
- defineSeed(154, 1, {}, Center2_0);
762
- _.parity = 0;
763
- let ctmv, ctprun, ctrot, pmv, rlmv, rlrot;
764
-
765
- let ran$clinit_Center3 = false;
766
- function $clinit_Center3() {
767
- if (ran$clinit_Center3) {
768
- return;
769
- }
770
- ran$clinit_Center3 = true;
771
- ctmove = createArray(29400, 20);
772
- pmove = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1];
773
- prun_0 = createArray(29400);
774
- rl2std = [0, 9, 14, 23, 27, 28, 41, 42, 46, 55, 60, 69];
775
- std2rl = createArray(70);
776
- }
777
-
778
- function $getct_0(this$static) {
779
- let i_0, idx, idxrl, r;
780
- idx = 0;
781
- r = 4;
782
- for (i_0 = 6; i_0 >= 0; --i_0) {
783
- this$static.ud[i_0] !== this$static.ud[7] && (idx += Cnk[i_0][r--]);
784
- }
785
- idx *= 35;
786
- r = 4;
787
- for (i_0 = 6; i_0 >= 0; --i_0) {
788
- this$static.fb[i_0] !== this$static.fb[7] && (idx += Cnk[i_0][r--]);
789
- }
790
- idx *= 12;
791
- const check = this$static.fb[7] ^ this$static.ud[7];
792
- idxrl = 0;
793
- r = 4;
794
- for (i_0 = 7; i_0 >= 0; --i_0) {
795
- this$static.rl[i_0] !== check && (idxrl += Cnk[i_0][r--]);
796
- }
797
- return this$static.parity + 2 * (idx + std2rl[idxrl]);
798
- }
799
-
800
- function $move_1(this$static, i_0) {
801
- this$static.parity ^= pmove[i_0];
802
- switch (i_0) {
803
- case 0:
804
- case 1:
805
- case 2:
806
- swap(this$static.ud, 0, 1, 2, 3, i_0 % 3);
807
- break;
808
- case 3:
809
- swap(this$static.rl, 0, 1, 2, 3, 1);
810
- break;
811
- case 4:
812
- case 5:
813
- case 6:
814
- swap(this$static.fb, 0, 1, 2, 3, (i_0 - 1) % 3);
815
- break;
816
- case 7:
817
- case 8:
818
- case 9:
819
- swap(this$static.ud, 4, 5, 6, 7, (i_0 - 1) % 3);
820
- break;
821
- case 10:
822
- swap(this$static.rl, 4, 5, 6, 7, 1);
823
- break;
824
- case 11:
825
- case 12:
826
- case 13:
827
- swap(this$static.fb, 4, 5, 6, 7, (i_0 + 1) % 3);
828
- break;
829
- case 14:
830
- swap(this$static.ud, 0, 1, 2, 3, 1);
831
- swap(this$static.rl, 0, 5, 4, 1, 1);
832
- swap(this$static.fb, 0, 5, 4, 1, 1);
833
- break;
834
- case 15:
835
- swap(this$static.rl, 0, 1, 2, 3, 1);
836
- swap(this$static.fb, 1, 4, 7, 2, 1);
837
- swap(this$static.ud, 1, 6, 5, 2, 1);
838
- break;
839
- case 16:
840
- swap(this$static.fb, 0, 1, 2, 3, 1);
841
- swap(this$static.ud, 3, 2, 5, 4, 1);
842
- swap(this$static.rl, 0, 3, 6, 5, 1);
843
- break;
844
- case 17:
845
- swap(this$static.ud, 4, 5, 6, 7, 1);
846
- swap(this$static.rl, 3, 2, 7, 6, 1);
847
- swap(this$static.fb, 3, 2, 7, 6, 1);
848
- break;
849
- case 18:
850
- swap(this$static.rl, 4, 5, 6, 7, 1);
851
- swap(this$static.fb, 0, 3, 6, 5, 1);
852
- swap(this$static.ud, 0, 3, 4, 7, 1);
853
- break;
854
- case 19:
855
- swap(this$static.fb, 4, 5, 6, 7, 1);
856
- swap(this$static.ud, 0, 7, 6, 1, 1);
857
- swap(this$static.rl, 1, 4, 7, 2, 1);
858
- }
859
- }
860
-
861
- function $set_3(this$static, c, eXc_parity) {
862
- let i_0;
863
- const parity =
864
- (c.ct[0] > c.ct[8] ? 1 : 0) ^
865
- (c.ct[8] > c.ct[16] ? 1 : 0) ^
866
- (c.ct[0] > c.ct[16] ? 1 : 0)
867
- ? 1
868
- : 0;
869
- for (i_0 = 0; i_0 < 8; ++i_0) {
870
- this$static.ud[i_0] = (c.ct[i_0] & 1) ^ 1;
871
- this$static.fb[i_0] = (c.ct[i_0 + 8] & 1) ^ 1;
872
- this$static.rl[i_0] = (c.ct[i_0 + 16] & 1) ^ 1 ^ parity;
873
- }
874
- this$static.parity = parity ^ eXc_parity;
875
- }
876
-
877
- function $setct_0(this$static, idx) {
878
- let i_0, idxfb, idxrl, r;
879
- this$static.parity = idx & 1;
880
- idx >>>= 1;
881
- idxrl = rl2std[idx % 12];
882
- idx = ~~(idx / 12);
883
- r = 4;
884
- for (i_0 = 7; i_0 >= 0; --i_0) {
885
- this$static.rl[i_0] = 0;
886
- if (idxrl >= Cnk[i_0][r]) {
887
- idxrl -= Cnk[i_0][r--];
888
- this$static.rl[i_0] = 1;
889
- }
890
- }
891
- idxfb = idx % 35;
892
- idx = ~~(idx / 35);
893
- r = 4;
894
- this$static.fb[7] = 0;
895
- for (i_0 = 6; i_0 >= 0; --i_0) {
896
- if (idxfb >= Cnk[i_0][r]) {
897
- idxfb -= Cnk[i_0][r--];
898
- this$static.fb[i_0] = 1;
899
- } else {
900
- this$static.fb[i_0] = 0;
901
- }
902
- }
903
- r = 4;
904
- this$static.ud[7] = 0;
905
- for (i_0 = 6; i_0 >= 0; --i_0) {
906
- if (idx >= Cnk[i_0][r]) {
907
- idx -= Cnk[i_0][r--];
908
- this$static.ud[i_0] = 1;
909
- } else {
910
- this$static.ud[i_0] = 0;
911
- }
912
- }
913
- }
914
-
915
- function Center3_0() {
916
- this.ud = createArray(8);
917
- this.rl = createArray(8);
918
- this.fb = createArray(8);
919
- }
920
-
921
- function init_4() {
922
- let depth, done, i_0, m_0;
923
- for (i_0 = 0; i_0 < 12; ++i_0) {
924
- std2rl[rl2std[i_0]] = i_0;
925
- }
926
- const c = new Center3_0();
927
- for (i_0 = 0; i_0 < 29400; ++i_0) {
928
- for (m_0 = 0; m_0 < 20; ++m_0) {
929
- $setct_0(c, i_0);
930
- $move_1(c, m_0);
931
- ctmove[i_0][m_0] = $getct_0(c) & 65535;
932
- }
933
- }
934
- fill_0(prun_0);
935
- prun_0[0] = 0;
936
- depth = 0;
937
- done = 1;
938
- while (done !== 29400) {
939
- for (i_0 = 0; i_0 < 29400; ++i_0) {
940
- if (prun_0[i_0] !== depth) {
941
- continue;
942
- }
943
- for (m_0 = 0; m_0 < 17; ++m_0) {
944
- if (prun_0[ctmove[i_0][m_0]] === -1) {
945
- prun_0[ctmove[i_0][m_0]] = depth + 1;
946
- ++done;
947
- }
948
- }
949
- }
950
- ++depth;
951
- }
952
- }
953
-
954
- defineSeed(155, 1, {}, Center3_0);
955
- _.parity = 0;
956
- let ctmove, pmove, prun_0, rl2std, std2rl;
957
-
958
- function $copy_1(this$static, c) {
959
- let i_0;
960
- for (i_0 = 0; i_0 < 24; ++i_0) {
961
- this$static.ct[i_0] = c.ct[i_0];
962
- }
963
- }
964
-
965
- function $move_2(this$static, m_0) {
966
- const key = m_0 % 3;
967
- m_0 = ~~(m_0 / 3);
968
- switch (m_0) {
969
- case 0:
970
- swap(this$static.ct, 0, 1, 2, 3, key);
971
- break;
972
- case 1:
973
- swap(this$static.ct, 16, 17, 18, 19, key);
974
- break;
975
- case 2:
976
- swap(this$static.ct, 8, 9, 10, 11, key);
977
- break;
978
- case 3:
979
- swap(this$static.ct, 4, 5, 6, 7, key);
980
- break;
981
- case 4:
982
- swap(this$static.ct, 20, 21, 22, 23, key);
983
- break;
984
- case 5:
985
- swap(this$static.ct, 12, 13, 14, 15, key);
986
- break;
987
- case 6:
988
- swap(this$static.ct, 0, 1, 2, 3, key);
989
- swap(this$static.ct, 8, 20, 12, 16, key);
990
- swap(this$static.ct, 9, 21, 13, 17, key);
991
- break;
992
- case 7:
993
- swap(this$static.ct, 16, 17, 18, 19, key);
994
- swap(this$static.ct, 1, 15, 5, 9, key);
995
- swap(this$static.ct, 2, 12, 6, 10, key);
996
- break;
997
- case 8:
998
- swap(this$static.ct, 8, 9, 10, 11, key);
999
- swap(this$static.ct, 2, 19, 4, 21, key);
1000
- swap(this$static.ct, 3, 16, 5, 22, key);
1001
- break;
1002
- case 9:
1003
- swap(this$static.ct, 4, 5, 6, 7, key);
1004
- swap(this$static.ct, 10, 18, 14, 22, key);
1005
- swap(this$static.ct, 11, 19, 15, 23, key);
1006
- break;
1007
- case 10:
1008
- swap(this$static.ct, 20, 21, 22, 23, key);
1009
- swap(this$static.ct, 0, 8, 4, 14, key);
1010
- swap(this$static.ct, 3, 11, 7, 13, key);
1011
- break;
1012
- case 11:
1013
- swap(this$static.ct, 12, 13, 14, 15, key);
1014
- swap(this$static.ct, 1, 20, 7, 18, key);
1015
- swap(this$static.ct, 0, 23, 6, 17, key);
1016
- }
1017
- }
1018
-
1019
- function CenterCube_0() {
1020
- let i_0;
1021
- this.ct = createArray(24);
1022
- for (i_0 = 0; i_0 < 24; ++i_0) {
1023
- this.ct[i_0] = ~~(i_0 / 4);
1024
- }
1025
- }
1026
-
1027
- function CenterCube_1(randomUIntBelow) {
1028
- let i_0, m_0, t;
1029
- CenterCube_0.call(this);
1030
- for (i_0 = 0; i_0 < 23; ++i_0) {
1031
- t = i_0 + randomUIntBelow(24 - i_0);
1032
- if (this.ct[t] !== this.ct[i_0]) {
1033
- m_0 = this.ct[i_0];
1034
- this.ct[i_0] = this.ct[t];
1035
- this.ct[t] = m_0;
1036
- }
1037
- }
1038
- }
1039
-
1040
- defineSeed(156, 1, {}, CenterCube_0, CenterCube_1);
1041
-
1042
- let ran$clinit_CornerCube = false;
1043
- function $clinit_CornerCube() {
1044
- if (ran$clinit_CornerCube) {
1045
- return;
1046
- }
1047
- ran$clinit_CornerCube = true;
1048
- moveCube_0 = createArray(18);
1049
- initMove_0();
1050
- }
1051
-
1052
- function $$init_2(this$static) {
1053
- this$static.cp = [0, 1, 2, 3, 4, 5, 6, 7];
1054
- this$static.co = [0, 0, 0, 0, 0, 0, 0, 0];
1055
- }
1056
-
1057
- function $copy_2(this$static, c) {
1058
- let i_0;
1059
- for (i_0 = 0; i_0 < 8; ++i_0) {
1060
- this$static.cp[i_0] = c.cp[i_0];
1061
- this$static.co[i_0] = c.co[i_0];
1062
- }
1063
- }
1064
-
1065
- function $move_3(this$static, idx) {
1066
- !this$static.temps && (this$static.temps = new CornerCube_0());
1067
- CornMult_0(this$static, moveCube_0[idx], this$static.temps);
1068
- $copy_2(this$static, this$static.temps);
1069
- }
1070
-
1071
- function $setTwist_0(this$static, idx) {
1072
- let i_0, twst;
1073
- twst = 0;
1074
- for (i_0 = 6; i_0 >= 0; --i_0) {
1075
- twst += this$static.co[i_0] = idx % 3;
1076
- idx = ~~(idx / 3);
1077
- }
1078
- this$static.co[7] = (15 - twst) % 3;
1079
- }
1080
-
1081
- function CornMult_0(a, b, prod) {
1082
- let corn, ori, oriA, oriB;
1083
- for (corn = 0; corn < 8; ++corn) {
1084
- prod.cp[corn] = a.cp[b.cp[corn]];
1085
- oriA = a.co[b.cp[corn]];
1086
- oriB = b.co[corn];
1087
- ori = oriA;
1088
- ori = ori + (oriA < 3 ? oriB : 6 - oriB);
1089
- ori = ori % 3;
1090
- (oriA >= 3 ? 1 : 0) ^ (oriB >= 3 ? 1 : 0) && (ori = ori + 3);
1091
- prod.co[corn] = ori;
1092
- }
1093
- }
1094
-
1095
- function CornerCube_0() {
1096
- $$init_2(this);
1097
- }
1098
-
1099
- function CornerCube_1(cperm, twist) {
1100
- $$init_2(this);
1101
- set8Perm(this.cp, cperm);
1102
- $setTwist_0(this, twist);
1103
- }
1104
-
1105
- function CornerCube_2(randomUIntBelow) {
1106
- CornerCube_1.call(this, randomUIntBelow(40320), randomUIntBelow(2187));
1107
- }
1108
-
1109
- function initMove_0() {
1110
- let a, p_0;
1111
- moveCube_0[0] = new CornerCube_1(15120, 0);
1112
- moveCube_0[3] = new CornerCube_1(21021, 1494);
1113
- moveCube_0[6] = new CornerCube_1(8064, 1236);
1114
- moveCube_0[9] = new CornerCube_1(9, 0);
1115
- moveCube_0[12] = new CornerCube_1(1230, 412);
1116
- moveCube_0[15] = new CornerCube_1(224, 137);
1117
- for (a = 0; a < 18; a += 3) {
1118
- for (p_0 = 0; p_0 < 2; ++p_0) {
1119
- moveCube_0[a + p_0 + 1] = new CornerCube_0();
1120
- CornMult_0(moveCube_0[a + p_0], moveCube_0[a], moveCube_0[a + p_0 + 1]);
1121
- }
1122
- }
1123
- }
1124
-
1125
- defineSeed(
1126
- 157,
1127
- 1,
1128
- makeCastMap([Q$CornerCube]),
1129
- CornerCube_0,
1130
- CornerCube_1,
1131
- CornerCube_2,
1132
- );
1133
- _.temps = null;
1134
- let moveCube_0;
1135
-
1136
- let ran$clinit_Edge3 = false;
1137
- function $clinit_Edge3() {
1138
- if (ran$clinit_Edge3) {
1139
- return;
1140
- }
1141
- ran$clinit_Edge3 = true;
1142
- eprun = createArray(1937880);
1143
- sym2raw_0 = createArray(1538);
1144
- symstate = createArray(1538);
1145
- raw2sym_1 = createArray(11880);
1146
- syminv_0 = [0, 1, 6, 3, 4, 5, 2, 7];
1147
- mvrot = createArray(160, 12);
1148
- mvroto = createArray(160, 12);
1149
- factX = [
1150
- 1, 1, 1, 3, 12, 60, 360, 2520, 20160, 181440, 1814400, 19958400, 239500800,
1151
- ];
1152
- FullEdgeMap = [0, 2, 4, 6, 1, 3, 7, 5, 8, 9, 10, 11];
1153
- }
1154
-
1155
- function $circlex(this$static, a, b, c, d) {
1156
- const temp = this$static.edgeo[d];
1157
- this$static.edgeo[d] = this$static.edge[c];
1158
- this$static.edge[c] = this$static.edgeo[b];
1159
- this$static.edgeo[b] = this$static.edge[a];
1160
- this$static.edge[a] = temp;
1161
- }
1162
-
1163
- function $get_2(this$static, end) {
1164
- let i_0, idx, v, valh, vall;
1165
- this$static.isStd || $std(this$static);
1166
- idx = 0;
1167
- vall = 1985229328;
1168
- valh = 47768;
1169
- for (i_0 = 0; i_0 < end; ++i_0) {
1170
- v = this$static.edge[i_0] << 2;
1171
- idx *= 12 - i_0;
1172
- if (v >= 32) {
1173
- idx += (valh >> (v - 32)) & 15;
1174
- valh -= 4368 << (v - 32);
1175
- } else {
1176
- idx += (vall >> v) & 15;
1177
- valh -= 4369;
1178
- vall -= 286331152 << v;
1179
- }
1180
- }
1181
- return idx;
1182
- }
1183
-
1184
- function $getsym_0(this$static) {
1185
- let symcord1x;
1186
- const cord1x = $get_2(this$static, 4);
1187
- symcord1x = raw2sym_1[cord1x];
1188
- const symx = symcord1x & 7;
1189
- symcord1x >>= 3;
1190
- $rotate_0(this$static, symx);
1191
- const cord2x = $get_2(this$static, 10) % 20160;
1192
- return symcord1x * 20160 + cord2x;
1193
- }
1194
-
1195
- function $move_4(this$static, i_0) {
1196
- this$static.isStd = false;
1197
- switch (i_0) {
1198
- case 0:
1199
- circle(this$static.edge, 0, 4, 1, 5);
1200
- circle(this$static.edgeo, 0, 4, 1, 5);
1201
- break;
1202
- case 1:
1203
- $swap_0(this$static.edge, 0, 4, 1, 5);
1204
- $swap_0(this$static.edgeo, 0, 4, 1, 5);
1205
- break;
1206
- case 2:
1207
- circle(this$static.edge, 0, 5, 1, 4);
1208
- circle(this$static.edgeo, 0, 5, 1, 4);
1209
- break;
1210
- case 3:
1211
- $swap_0(this$static.edge, 5, 10, 6, 11);
1212
- $swap_0(this$static.edgeo, 5, 10, 6, 11);
1213
- break;
1214
- case 4:
1215
- circle(this$static.edge, 0, 11, 3, 8);
1216
- circle(this$static.edgeo, 0, 11, 3, 8);
1217
- break;
1218
- case 5:
1219
- $swap_0(this$static.edge, 0, 11, 3, 8);
1220
- $swap_0(this$static.edgeo, 0, 11, 3, 8);
1221
- break;
1222
- case 6:
1223
- circle(this$static.edge, 0, 8, 3, 11);
1224
- circle(this$static.edgeo, 0, 8, 3, 11);
1225
- break;
1226
- case 7:
1227
- circle(this$static.edge, 2, 7, 3, 6);
1228
- circle(this$static.edgeo, 2, 7, 3, 6);
1229
- break;
1230
- case 8:
1231
- $swap_0(this$static.edge, 2, 7, 3, 6);
1232
- $swap_0(this$static.edgeo, 2, 7, 3, 6);
1233
- break;
1234
- case 9:
1235
- circle(this$static.edge, 2, 6, 3, 7);
1236
- circle(this$static.edgeo, 2, 6, 3, 7);
1237
- break;
1238
- case 10:
1239
- $swap_0(this$static.edge, 4, 8, 7, 9);
1240
- $swap_0(this$static.edgeo, 4, 8, 7, 9);
1241
- break;
1242
- case 11:
1243
- circle(this$static.edge, 1, 9, 2, 10);
1244
- circle(this$static.edgeo, 1, 9, 2, 10);
1245
- break;
1246
- case 12:
1247
- $swap_0(this$static.edge, 1, 9, 2, 10);
1248
- $swap_0(this$static.edgeo, 1, 9, 2, 10);
1249
- break;
1250
- case 13:
1251
- circle(this$static.edge, 1, 10, 2, 9);
1252
- circle(this$static.edgeo, 1, 10, 2, 9);
1253
- break;
1254
- case 14:
1255
- $swap_0(this$static.edge, 0, 4, 1, 5);
1256
- $swap_0(this$static.edgeo, 0, 4, 1, 5);
1257
- circle(this$static.edge, 9, 11);
1258
- circle(this$static.edgeo, 8, 10);
1259
- break;
1260
- case 15:
1261
- $swap_0(this$static.edge, 5, 10, 6, 11);
1262
- $swap_0(this$static.edgeo, 5, 10, 6, 11);
1263
- circle(this$static.edge, 1, 3);
1264
- circle(this$static.edgeo, 0, 2);
1265
- break;
1266
- case 16:
1267
- $swap_0(this$static.edge, 0, 11, 3, 8);
1268
- $swap_0(this$static.edgeo, 0, 11, 3, 8);
1269
- circle(this$static.edge, 5, 7);
1270
- circle(this$static.edgeo, 4, 6);
1271
- break;
1272
- case 17:
1273
- $swap_0(this$static.edge, 2, 7, 3, 6);
1274
- $swap_0(this$static.edgeo, 2, 7, 3, 6);
1275
- circle(this$static.edge, 8, 10);
1276
- circle(this$static.edgeo, 9, 11);
1277
- break;
1278
- case 18:
1279
- $swap_0(this$static.edge, 4, 8, 7, 9);
1280
- $swap_0(this$static.edgeo, 4, 8, 7, 9);
1281
- circle(this$static.edge, 0, 2);
1282
- circle(this$static.edgeo, 1, 3);
1283
- break;
1284
- case 19:
1285
- $swap_0(this$static.edge, 1, 9, 2, 10);
1286
- $swap_0(this$static.edgeo, 1, 9, 2, 10);
1287
- circle(this$static.edge, 4, 6);
1288
- circle(this$static.edgeo, 5, 7);
1289
- }
1290
- }
1291
-
1292
- function $rot_1(this$static, r) {
1293
- this$static.isStd = false;
1294
- switch (r) {
1295
- case 0:
1296
- $move_4(this$static, 14);
1297
- $move_4(this$static, 17);
1298
- break;
1299
- case 1:
1300
- $circlex(this$static, 11, 5, 10, 6);
1301
- $circlex(this$static, 5, 10, 6, 11);
1302
- $circlex(this$static, 1, 2, 3, 0);
1303
- $circlex(this$static, 4, 9, 7, 8);
1304
- $circlex(this$static, 8, 4, 9, 7);
1305
- $circlex(this$static, 0, 1, 2, 3);
1306
- break;
1307
- case 2:
1308
- $swapx(this$static, 4, 5);
1309
- $swapx(this$static, 5, 4);
1310
- $swapx(this$static, 11, 8);
1311
- $swapx(this$static, 8, 11);
1312
- $swapx(this$static, 7, 6);
1313
- $swapx(this$static, 6, 7);
1314
- $swapx(this$static, 9, 10);
1315
- $swapx(this$static, 10, 9);
1316
- $swapx(this$static, 1, 1);
1317
- $swapx(this$static, 0, 0);
1318
- $swapx(this$static, 3, 3);
1319
- $swapx(this$static, 2, 2);
1320
- }
1321
- }
1322
-
1323
- function $rotate_0(this$static, r) {
1324
- while (r >= 2) {
1325
- r -= 2;
1326
- $rot_1(this$static, 1);
1327
- $rot_1(this$static, 2);
1328
- }
1329
- r !== 0 && $rot_1(this$static, 0);
1330
- }
1331
-
1332
- function $set_4(this$static, idx) {
1333
- let i_0, p_0, parity, v, vall, valh;
1334
- vall = 0x76543210;
1335
- valh = 0xba98;
1336
- parity = 0;
1337
- for (i_0 = 0; i_0 < 11; ++i_0) {
1338
- p_0 = factX[11 - i_0];
1339
- v = ~~(idx / p_0);
1340
- idx = idx % p_0;
1341
- parity ^= v;
1342
- v <<= 2;
1343
- if (v >= 32) {
1344
- v = v - 32;
1345
- this$static.edge[i_0] = (valh >> v) & 15;
1346
- const m = (1 << v) - 1;
1347
- valh = (valh & m) + ((valh >> 4) & ~m);
1348
- } else {
1349
- this$static.edge[i_0] = (vall >> v) & 15;
1350
- const m = (1 << v) - 1;
1351
- vall = (vall & m) + ((vall >>> 4) & ~m) + (valh << 28);
1352
- valh = valh >> 4;
1353
- }
1354
- }
1355
- if ((parity & 1) === 0) {
1356
- this$static.edge[11] = vall;
1357
- } else {
1358
- this$static.edge[11] = this$static.edge[10];
1359
- this$static.edge[10] = vall;
1360
- }
1361
- for (i_0 = 0; i_0 < 12; ++i_0) {
1362
- this$static.edgeo[i_0] = i_0;
1363
- }
1364
- this$static.isStd = true;
1365
- }
1366
-
1367
- function $set_5(this$static, e) {
1368
- let i_0;
1369
- for (i_0 = 0; i_0 < 12; ++i_0) {
1370
- this$static.edge[i_0] = e.edge[i_0];
1371
- this$static.edgeo[i_0] = e.edgeo[i_0];
1372
- }
1373
- this$static.isStd = e.isStd;
1374
- }
1375
-
1376
- function $set_6(this$static, c) {
1377
- let i_0, parity, s, t;
1378
- this$static.temp === null && (this$static.temp = createArray(12));
1379
- for (i_0 = 0; i_0 < 12; ++i_0) {
1380
- this$static.temp[i_0] = i_0;
1381
- this$static.edge[i_0] = c.ep[FullEdgeMap[i_0] + 12] % 12;
1382
- }
1383
- parity = 1;
1384
- for (i_0 = 0; i_0 < 12; ++i_0) {
1385
- while (this$static.edge[i_0] !== i_0) {
1386
- t = this$static.edge[i_0];
1387
- this$static.edge[i_0] = this$static.edge[t];
1388
- this$static.edge[t] = t;
1389
- s = this$static.temp[i_0];
1390
- this$static.temp[i_0] = this$static.temp[t];
1391
- this$static.temp[t] = s;
1392
- parity ^= 1;
1393
- }
1394
- }
1395
- for (i_0 = 0; i_0 < 12; ++i_0) {
1396
- this$static.edge[i_0] = this$static.temp[c.ep[FullEdgeMap[i_0]] % 12];
1397
- }
1398
- return parity;
1399
- }
1400
-
1401
- function $std(this$static) {
1402
- let i_0;
1403
- this$static.temp === null && (this$static.temp = createArray(12));
1404
- for (i_0 = 0; i_0 < 12; ++i_0) {
1405
- this$static.temp[this$static.edgeo[i_0]] = i_0;
1406
- }
1407
- for (i_0 = 0; i_0 < 12; ++i_0) {
1408
- this$static.edge[i_0] = this$static.temp[this$static.edge[i_0]];
1409
- this$static.edgeo[i_0] = i_0;
1410
- }
1411
- this$static.isStd = true;
1412
- }
1413
-
1414
- function $swap_0(arr, a, b, c, d) {
1415
- let temp;
1416
- temp = arr[a];
1417
- arr[a] = arr[c];
1418
- arr[c] = temp;
1419
- temp = arr[b];
1420
- arr[b] = arr[d];
1421
- arr[d] = temp;
1422
- }
1423
-
1424
- function $swapx(this$static, x, y) {
1425
- const temp = this$static.edge[x];
1426
- this$static.edge[x] = this$static.edgeo[y];
1427
- this$static.edgeo[y] = temp;
1428
- }
1429
-
1430
- function Edge3_0() {
1431
- this.edge = createArray(12);
1432
- this.edgeo = createArray(12);
1433
- }
1434
-
1435
- function createPrun_0() {
1436
- let chk,
1437
- cord1,
1438
- cord1x,
1439
- cord2,
1440
- cord2x,
1441
- dep1m3,
1442
- depm3,
1443
- depth,
1444
- end,
1445
- find_0,
1446
- i_0,
1447
- i_,
1448
- idx,
1449
- idxx,
1450
- inv,
1451
- j,
1452
- m_0,
1453
- symState,
1454
- symcord1,
1455
- symcord1x,
1456
- symx,
1457
- val;
1458
- const e = new Edge3_0();
1459
- const f = new Edge3_0();
1460
- const g = new Edge3_0();
1461
- fill_0(eprun);
1462
- depth = 0;
1463
- done_0 = 1;
1464
- setPruning_0(eprun, 0, 0);
1465
- // var start = +new Date;
1466
- while (done_0 !== 31006080) {
1467
- inv = depth > 9;
1468
- depm3 = depth % 3;
1469
- dep1m3 = (depth + 1) % 3;
1470
- find_0 = inv ? 3 : depm3;
1471
- chk = inv ? depm3 : 3;
1472
- if (depth >= 9) {
1473
- break;
1474
- }
1475
- for (i_ = 0; i_ < 31006080; i_ += 16) {
1476
- val = eprun[~~i_ >> 4];
1477
- if (!inv && val === -1) {
1478
- continue;
1479
- }
1480
- for (i_0 = i_, end = i_ + 16; i_0 < end; ++i_0, val >>= 2) {
1481
- if ((val & 3) !== find_0) {
1482
- continue;
1483
- }
1484
- symcord1 = ~~(i_0 / 20160);
1485
- cord1 = sym2raw_0[symcord1];
1486
- cord2 = i_0 % 20160;
1487
- $set_4(e, cord1 * 20160 + cord2);
1488
- for (m_0 = 0; m_0 < 17; ++m_0) {
1489
- cord1x = getmvrot(e.edge, m_0 << 3, 4);
1490
- symcord1x = raw2sym_1[cord1x];
1491
- symx = symcord1x & 7;
1492
- symcord1x >>= 3;
1493
- cord2x = getmvrot(e.edge, (m_0 << 3) | symx, 10) % 20160;
1494
- idx = symcord1x * 20160 + cord2x;
1495
- if (getPruning_0(eprun, idx) !== chk) {
1496
- continue;
1497
- }
1498
- setPruning_0(eprun, inv ? i_0 : idx, dep1m3);
1499
- ++done_0;
1500
- if (inv) {
1501
- break;
1502
- }
1503
- symState = symstate[symcord1x];
1504
- if (symState === 1) {
1505
- continue;
1506
- }
1507
- $set_5(f, e);
1508
- $move_4(f, m_0);
1509
- $rotate_0(f, symx);
1510
- for (j = 1; (symState = (~~symState >> 1) & 65535) !== 0; ++j) {
1511
- if ((symState & 1) !== 1) {
1512
- continue;
1513
- }
1514
- $set_5(g, f);
1515
- $rotate_0(g, j);
1516
- idxx = symcord1x * 20160 + ($get_2(g, 10) % 20160);
1517
- if (getPruning_0(eprun, idxx) === chk) {
1518
- setPruning_0(eprun, idxx, dep1m3);
1519
- ++done_0;
1520
- }
1521
- }
1522
- }
1523
- }
1524
- }
1525
- ++depth;
1526
- // console.log(depth + '\t' + done_0 + '\t' + (+new Date - start));
1527
- }
1528
- }
1529
-
1530
- function getPruning_0(table, index) {
1531
- return (table[index >> 4] >> ((index & 15) << 1)) & 3;
1532
- }
1533
-
1534
- function getmvrot(ep, mrIdx, end) {
1535
- let i_0, idx, v, valh, vall;
1536
- const movo = mvroto[mrIdx];
1537
- const mov = mvrot[mrIdx];
1538
- idx = 0;
1539
- vall = 1985229328;
1540
- valh = 47768;
1541
- for (i_0 = 0; i_0 < end; ++i_0) {
1542
- v = movo[ep[mov[i_0]]] << 2;
1543
- idx *= 12 - i_0;
1544
- if (v >= 32) {
1545
- idx += (valh >> (v - 32)) & 15;
1546
- valh -= 4368 << (v - 32);
1547
- } else {
1548
- idx += (vall >> v) & 15;
1549
- valh -= 4369;
1550
- vall -= 286331152 << v;
1551
- }
1552
- }
1553
- return idx;
1554
- }
1555
-
1556
- function getprun(edge) {
1557
- let cord1,
1558
- cord1x,
1559
- cord2,
1560
- cord2x,
1561
- depm3,
1562
- depth,
1563
- idx,
1564
- m_0,
1565
- symcord1,
1566
- symcord1x,
1567
- symx;
1568
- const e = new Edge3_0();
1569
- depth = 0;
1570
- depm3 = getPruning_0(eprun, edge);
1571
- if (depm3 === 3) {
1572
- return 10;
1573
- }
1574
- while (edge !== 0) {
1575
- depm3 === 0 ? (depm3 = 2) : --depm3;
1576
- symcord1 = ~~(edge / 20160);
1577
- cord1 = sym2raw_0[symcord1];
1578
- cord2 = edge % 20160;
1579
- $set_4(e, cord1 * 20160 + cord2);
1580
- for (m_0 = 0; m_0 < 17; ++m_0) {
1581
- cord1x = getmvrot(e.edge, m_0 << 3, 4);
1582
- symcord1x = raw2sym_1[cord1x];
1583
- symx = symcord1x & 7;
1584
- symcord1x >>= 3;
1585
- cord2x = getmvrot(e.edge, (m_0 << 3) | symx, 10) % 20160;
1586
- idx = symcord1x * 20160 + cord2x;
1587
- if (getPruning_0(eprun, idx) === depm3) {
1588
- ++depth;
1589
- edge = idx;
1590
- break;
1591
- }
1592
- }
1593
- }
1594
- return depth;
1595
- }
1596
-
1597
- function getprun_0(edge, prun) {
1598
- const depm3 = getPruning_0(eprun, edge);
1599
- if (depm3 === 3) {
1600
- return 10;
1601
- }
1602
- return (((0x49249249 << depm3) >> prun) & 3) + prun - 1;
1603
- // (depm3 - prun + 16) % 3 + prun - 1;
1604
- }
1605
-
1606
- function initMvrot() {
1607
- let i_0, m_0, r;
1608
- const e = new Edge3_0();
1609
- for (m_0 = 0; m_0 < 20; ++m_0) {
1610
- for (r = 0; r < 8; ++r) {
1611
- $set_4(e, 0);
1612
- $move_4(e, m_0);
1613
- $rotate_0(e, r);
1614
- for (i_0 = 0; i_0 < 12; ++i_0) {
1615
- mvrot[(m_0 << 3) | r][i_0] = e.edge[i_0];
1616
- }
1617
- $std(e);
1618
- for (i_0 = 0; i_0 < 12; ++i_0) {
1619
- mvroto[(m_0 << 3) | r][i_0] = e.temp[i_0];
1620
- }
1621
- }
1622
- }
1623
- }
1624
-
1625
- function initRaw2Sym() {
1626
- let count, i_0, idx, j;
1627
- const e = new Edge3_0();
1628
- const occ = createArray(1485);
1629
- for (i_0 = 0; i_0 < 1485; i_0++) {
1630
- occ[i_0] = 0;
1631
- }
1632
- count = 0;
1633
- for (i_0 = 0; i_0 < 11880; ++i_0) {
1634
- if ((occ[~~i_0 >>> 3] & (1 << (i_0 & 7))) === 0) {
1635
- $set_4(e, i_0 * factX[8]);
1636
- for (j = 0; j < 8; ++j) {
1637
- idx = $get_2(e, 4);
1638
- idx === i_0 && (symstate[count] = (symstate[count] | (1 << j)) & 65535);
1639
- occ[~~idx >> 3] = occ[~~idx >> 3] | (1 << (idx & 7));
1640
- raw2sym_1[idx] = (count << 3) | syminv_0[j];
1641
- $rot_1(e, 0);
1642
- if (j % 2 === 1) {
1643
- $rot_1(e, 1);
1644
- $rot_1(e, 2);
1645
- }
1646
- }
1647
- sym2raw_0[count++] = i_0;
1648
- }
1649
- }
1650
- }
1651
-
1652
- function setPruning_0(table, index, value) {
1653
- table[index >> 4] ^= (3 ^ value) << ((index & 15) << 1);
1654
- }
1655
-
1656
- defineSeed(158, 1, makeCastMap([Q$Edge3]), Edge3_0);
1657
- _.isStd = true;
1658
- _.temp = null;
1659
- let FullEdgeMap,
1660
- done_0 = 0,
1661
- eprun,
1662
- factX,
1663
- mvrot,
1664
- mvroto,
1665
- raw2sym_1,
1666
- sym2raw_0,
1667
- syminv_0,
1668
- symstate;
1669
-
1670
- let ran$clinit_EdgeCube = false;
1671
- function $clinit_EdgeCube() {
1672
- if (ran$clinit_EdgeCube) {
1673
- return;
1674
- }
1675
- ran$clinit_EdgeCube = true;
1676
- }
1677
-
1678
- function $checkEdge(this$static) {
1679
- let ck, i_0, parity;
1680
- ck = 0;
1681
- parity = false;
1682
- for (i_0 = 0; i_0 < 12; ++i_0) {
1683
- ck |= 1 << this$static.ep[i_0];
1684
- parity = parity !== this$static.ep[i_0] >= 12;
1685
- }
1686
- ck &= ~~ck >> 12;
1687
- return ck === 0 && !parity;
1688
- }
1689
-
1690
- function $copy_3(this$static, c) {
1691
- let i_0;
1692
- for (i_0 = 0; i_0 < 24; ++i_0) {
1693
- this$static.ep[i_0] = c.ep[i_0];
1694
- }
1695
- }
1696
-
1697
- function $move_5(this$static, m_0) {
1698
- const key = m_0 % 3;
1699
- m_0 = ~~(m_0 / 3);
1700
- switch (m_0) {
1701
- case 0:
1702
- swap(this$static.ep, 0, 1, 2, 3, key);
1703
- swap(this$static.ep, 12, 13, 14, 15, key);
1704
- break;
1705
- case 1:
1706
- swap(this$static.ep, 11, 15, 10, 19, key);
1707
- swap(this$static.ep, 23, 3, 22, 7, key);
1708
- break;
1709
- case 2:
1710
- swap(this$static.ep, 0, 11, 6, 8, key);
1711
- swap(this$static.ep, 12, 23, 18, 20, key);
1712
- break;
1713
- case 3:
1714
- swap(this$static.ep, 4, 5, 6, 7, key);
1715
- swap(this$static.ep, 16, 17, 18, 19, key);
1716
- break;
1717
- case 4:
1718
- swap(this$static.ep, 1, 20, 5, 21, key);
1719
- swap(this$static.ep, 13, 8, 17, 9, key);
1720
- break;
1721
- case 5:
1722
- swap(this$static.ep, 2, 9, 4, 10, key);
1723
- swap(this$static.ep, 14, 21, 16, 22, key);
1724
- break;
1725
- case 6:
1726
- swap(this$static.ep, 0, 1, 2, 3, key);
1727
- swap(this$static.ep, 12, 13, 14, 15, key);
1728
- swap(this$static.ep, 9, 22, 11, 20, key);
1729
- break;
1730
- case 7:
1731
- swap(this$static.ep, 11, 15, 10, 19, key);
1732
- swap(this$static.ep, 23, 3, 22, 7, key);
1733
- swap(this$static.ep, 2, 16, 6, 12, key);
1734
- break;
1735
- case 8:
1736
- swap(this$static.ep, 0, 11, 6, 8, key);
1737
- swap(this$static.ep, 12, 23, 18, 20, key);
1738
- swap(this$static.ep, 3, 19, 5, 13, key);
1739
- break;
1740
- case 9:
1741
- swap(this$static.ep, 4, 5, 6, 7, key);
1742
- swap(this$static.ep, 16, 17, 18, 19, key);
1743
- swap(this$static.ep, 8, 23, 10, 21, key);
1744
- break;
1745
- case 10:
1746
- swap(this$static.ep, 1, 20, 5, 21, key);
1747
- swap(this$static.ep, 13, 8, 17, 9, key);
1748
- swap(this$static.ep, 14, 0, 18, 4, key);
1749
- break;
1750
- case 11:
1751
- swap(this$static.ep, 2, 9, 4, 10, key);
1752
- swap(this$static.ep, 14, 21, 16, 22, key);
1753
- swap(this$static.ep, 7, 15, 1, 17, key);
1754
- }
1755
- }
1756
-
1757
- function EdgeCube_0() {
1758
- let i_0;
1759
- this.ep = createArray(24);
1760
- for (i_0 = 0; i_0 < 24; ++i_0) {
1761
- this.ep[i_0] = i_0;
1762
- }
1763
- }
1764
-
1765
- function EdgeCube_1(randomUIntBelow) {
1766
- let i_0, m_0, t;
1767
- EdgeCube_0.call(this);
1768
- for (i_0 = 0; i_0 < 23; ++i_0) {
1769
- t = i_0 + randomUIntBelow(24 - i_0);
1770
- if (t !== i_0) {
1771
- m_0 = this.ep[i_0];
1772
- this.ep[i_0] = this.ep[t];
1773
- this.ep[t] = m_0;
1774
- }
1775
- }
1776
- }
1777
-
1778
- defineSeed(159, 1, {}, EdgeCube_0, EdgeCube_1);
1779
-
1780
- let ran$clinit_FullCube_0 = false;
1781
- function $clinit_FullCube_0() {
1782
- if (ran$clinit_FullCube_0) {
1783
- return;
1784
- }
1785
- ran$clinit_FullCube_0 = true;
1786
- move2rot = [35, 1, 34, 2, 4, 6, 22, 5, 19];
1787
- }
1788
-
1789
- function $$init_3(this$static) {
1790
- this$static.moveBuffer = createArray(60);
1791
- }
1792
-
1793
- function $compareTo_1(this$static, c) {
1794
- return this$static.value - c.value;
1795
- }
1796
-
1797
- function $copy_4(this$static, c) {
1798
- let i_0;
1799
- $copy_3(this$static.edge, c.edge);
1800
- $copy_1(this$static.center, c.center);
1801
- $copy_2(this$static.corner, c.corner);
1802
- this$static.value = c.value;
1803
- this$static.add1 = c.add1;
1804
- this$static.length1 = c.length1;
1805
- this$static.length2 = c.length2;
1806
- this$static.length3 = c.length3;
1807
- this$static.sym = c.sym;
1808
- for (i_0 = 0; i_0 < 60; ++i_0) {
1809
- this$static.moveBuffer[i_0] = c.moveBuffer[i_0];
1810
- }
1811
- this$static.moveLength = c.moveLength;
1812
- this$static.edgeAvail = c.edgeAvail;
1813
- this$static.centerAvail = c.centerAvail;
1814
- this$static.cornerAvail = c.cornerAvail;
1815
- }
1816
-
1817
- function $getCenter(this$static) {
1818
- while (this$static.centerAvail < this$static.moveLength) {
1819
- $move_2(
1820
- this$static.center,
1821
- this$static.moveBuffer[this$static.centerAvail++],
1822
- );
1823
- }
1824
- return this$static.center;
1825
- }
1826
-
1827
- function $getCorner(this$static) {
1828
- while (this$static.cornerAvail < this$static.moveLength) {
1829
- $move_3(
1830
- this$static.corner,
1831
- this$static.moveBuffer[this$static.cornerAvail++] % 18,
1832
- );
1833
- }
1834
- return this$static.corner;
1835
- }
1836
-
1837
- function $getEdge(this$static) {
1838
- while (this$static.edgeAvail < this$static.moveLength) {
1839
- $move_5(this$static.edge, this$static.moveBuffer[this$static.edgeAvail++]);
1840
- }
1841
- return this$static.edge;
1842
- }
1843
-
1844
- function $getMoveString(this$static) {
1845
- let i_0, idx, move, rot, sb, sym;
1846
- const fixedMoves = new Array(
1847
- this$static.moveLength - (this$static.add1 ? 2 : 0),
1848
- );
1849
- idx = 0;
1850
- for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
1851
- fixedMoves[idx++] = this$static.moveBuffer[i_0];
1852
- }
1853
- sym = this$static.sym;
1854
- for (
1855
- i_0 = this$static.length1 + (this$static.add1 ? 2 : 0);
1856
- i_0 < this$static.moveLength;
1857
- ++i_0
1858
- ) {
1859
- if (symmove[sym][this$static.moveBuffer[i_0]] >= 27) {
1860
- fixedMoves[idx++] = symmove[sym][this$static.moveBuffer[i_0]] - 9;
1861
- rot = move2rot[symmove[sym][this$static.moveBuffer[i_0]] - 27];
1862
- sym = symmult[sym][rot];
1863
- } else {
1864
- fixedMoves[idx++] = symmove[sym][this$static.moveBuffer[i_0]];
1865
- }
1866
- }
1867
- const finishSym = symmult[syminv[sym]][getSolvedSym($getCenter(this$static))];
1868
- sb = "";
1869
- sym = finishSym;
1870
- for (i_0 = idx - 1; i_0 >= 0; --i_0) {
1871
- move = fixedMoves[i_0];
1872
- move = ~~(move / 3) * 3 + (2 - (move % 3));
1873
- if (symmove[sym][move] >= 27) {
1874
- sb = sb + move2str_1[symmove[sym][move] - 9] + " ";
1875
- rot = move2rot[symmove[sym][move] - 27];
1876
- sym = symmult[sym][rot];
1877
- } else {
1878
- sb = sb + move2str_1[symmove[sym][move]] + " ";
1879
- }
1880
- }
1881
- return sb;
1882
- }
1883
-
1884
- function $move_6(this$static, m_0) {
1885
- this$static.moveBuffer[this$static.moveLength++] = m_0;
1886
- return;
1887
- }
1888
-
1889
- function FullCube_3() {
1890
- $$init_3(this);
1891
- this.edge = new EdgeCube_0();
1892
- this.center = new CenterCube_0();
1893
- this.corner = new CornerCube_0();
1894
- }
1895
-
1896
- function FullCube_4(c) {
1897
- FullCube_3.call(this);
1898
- $copy_4(this, c);
1899
- }
1900
-
1901
- function FullCube_5(randomUIntBelow) {
1902
- $$init_3(this);
1903
- this.edge = new EdgeCube_1(randomUIntBelow);
1904
- this.center = new CenterCube_1(randomUIntBelow);
1905
- this.corner = new CornerCube_2(randomUIntBelow);
1906
- }
1907
-
1908
- defineSeed(
1909
- 160,
1910
- 1,
1911
- makeCastMap([Q$FullCube_0, Q$Comparable]),
1912
- FullCube_3,
1913
- FullCube_4,
1914
- FullCube_5,
1915
- );
1916
- _.compareTo$ = function compareTo_1(c) {
1917
- return $compareTo_1(this, c);
1918
- };
1919
- _.add1 = false;
1920
- _.center = null;
1921
- _.centerAvail = 0;
1922
- _.corner = null;
1923
- _.cornerAvail = 0;
1924
- _.edge = null;
1925
- _.edgeAvail = 0;
1926
- _.length1 = 0;
1927
- _.length2 = 0;
1928
- _.length3 = 0;
1929
- _.moveLength = 0;
1930
- _.sym = 0;
1931
- _.value = 0;
1932
- let move2rot;
1933
-
1934
- function $compare(c1, c2) {
1935
- return c2.value - c1.value;
1936
- }
1937
-
1938
- function $compare_0(c1, c2) {
1939
- return $compare(c1, c2);
1940
- }
1941
-
1942
- function FullCube$ValueComparator_0() {}
1943
-
1944
- defineSeed(161, 1, {}, FullCube$ValueComparator_0);
1945
- _.compare = function compare(c1, c2) {
1946
- return $compare_0(c1, c2);
1947
- };
1948
-
1949
- let ran$clinit_Moves = false;
1950
- function $clinit_Moves() {
1951
- if (ran$clinit_Moves) {
1952
- return;
1953
- }
1954
- ran$clinit_Moves = true;
1955
- let i_0, j;
1956
- move2str_1 = [
1957
- "U ",
1958
- "U2 ",
1959
- "U' ",
1960
- "R ",
1961
- "R2 ",
1962
- "R' ",
1963
- "F ",
1964
- "F2 ",
1965
- "F' ",
1966
- "D ",
1967
- "D2 ",
1968
- "D' ",
1969
- "L ",
1970
- "L2 ",
1971
- "L' ",
1972
- "B ",
1973
- "B2 ",
1974
- "B' ",
1975
- "Uw ",
1976
- "Uw2",
1977
- "Uw'",
1978
- "Rw ",
1979
- "Rw2",
1980
- "Rw'",
1981
- "Fw ",
1982
- "Fw2",
1983
- "Fw'",
1984
- "Dw ",
1985
- "Dw2",
1986
- "Dw'",
1987
- "Lw ",
1988
- "Lw2",
1989
- "Lw'",
1990
- "Bw ",
1991
- "Bw2",
1992
- "Bw'",
1993
- ];
1994
- move2std = [
1995
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 22,
1996
- 23, 25, 28, 30, 31, 32, 34, 36,
1997
- ];
1998
- move3std = [
1999
- 0, 1, 2, 4, 6, 7, 8, 9, 10, 11, 13, 15, 16, 17, 19, 22, 25, 28, 31, 34, 36,
2000
- ];
2001
- std2move = createArray(37);
2002
- std3move = createArray(37);
2003
- ckmv = createArray(37, 36);
2004
- ckmv2_0 = createArray(29, 28);
2005
- ckmv3 = createArray(21, 20);
2006
- skipAxis = createArray(36);
2007
- skipAxis2 = createArray(28);
2008
- skipAxis3 = createArray(20);
2009
- for (i_0 = 0; i_0 < 29; ++i_0) {
2010
- std2move[move2std[i_0]] = i_0;
2011
- }
2012
- for (i_0 = 0; i_0 < 21; ++i_0) {
2013
- std3move[move3std[i_0]] = i_0;
2014
- }
2015
- for (i_0 = 0; i_0 < 36; ++i_0) {
2016
- for (j = 0; j < 36; ++j) {
2017
- ckmv[i_0][j] =
2018
- ~~(i_0 / 3) === ~~(j / 3) ||
2019
- (~~(i_0 / 3) % 3 === ~~(j / 3) % 3 && i_0 > j);
2020
- }
2021
- ckmv[36][i_0] = false;
2022
- }
2023
- for (i_0 = 0; i_0 < 29; ++i_0) {
2024
- for (j = 0; j < 28; ++j) {
2025
- ckmv2_0[i_0][j] = ckmv[move2std[i_0]][move2std[j]];
2026
- }
2027
- }
2028
- for (i_0 = 0; i_0 < 21; ++i_0) {
2029
- for (j = 0; j < 20; ++j) {
2030
- ckmv3[i_0][j] = ckmv[move3std[i_0]][move3std[j]];
2031
- }
2032
- }
2033
- for (i_0 = 0; i_0 < 36; ++i_0) {
2034
- skipAxis[i_0] = 36;
2035
- for (j = i_0; j < 36; ++j) {
2036
- if (!ckmv[i_0][j]) {
2037
- skipAxis[i_0] = j - 1;
2038
- break;
2039
- }
2040
- }
2041
- }
2042
- for (i_0 = 0; i_0 < 28; ++i_0) {
2043
- skipAxis2[i_0] = 28;
2044
- for (j = i_0; j < 28; ++j) {
2045
- if (!ckmv2_0[i_0][j]) {
2046
- skipAxis2[i_0] = j - 1;
2047
- break;
2048
- }
2049
- }
2050
- }
2051
- for (i_0 = 0; i_0 < 20; ++i_0) {
2052
- skipAxis3[i_0] = 20;
2053
- for (j = i_0; j < 20; ++j) {
2054
- if (!ckmv3[i_0][j]) {
2055
- skipAxis3[i_0] = j - 1;
2056
- break;
2057
- }
2058
- }
2059
- }
2060
- }
2061
-
2062
- let ckmv,
2063
- ckmv2_0,
2064
- ckmv3,
2065
- move2std,
2066
- move2str_1,
2067
- move3std,
2068
- skipAxis,
2069
- skipAxis2,
2070
- skipAxis3,
2071
- std2move,
2072
- std3move;
2073
-
2074
- function $doSearch(this$static) {
2075
- let MAX_LENGTH2,
2076
- MAX_LENGTH3,
2077
- ct,
2078
- edge,
2079
- eparity,
2080
- i_0,
2081
- index,
2082
- length12,
2083
- length123,
2084
- prun,
2085
- s2ct,
2086
- s2rl;
2087
- this$static.solution = "";
2088
- const ud = $getsym(new Center1_1($getCenter(this$static.c), 0));
2089
- const fb = $getsym(new Center1_1($getCenter(this$static.c), 1));
2090
- const rl = $getsym(new Center1_1($getCenter(this$static.c), 2));
2091
- const udprun = csprun[~~ud >> 6];
2092
- const fbprun = csprun[~~fb >> 6];
2093
- const rlprun = csprun[~~rl >> 6];
2094
- this$static.p1SolsCnt = 0;
2095
- this$static.arr2idx = 0;
2096
- $clear(this$static.p1sols.heap);
2097
- for (
2098
- this$static.length1 =
2099
- (udprun < fbprun ? udprun : fbprun) < rlprun
2100
- ? udprun < fbprun
2101
- ? udprun
2102
- : fbprun
2103
- : rlprun;
2104
- this$static.length1 < 100;
2105
- ++this$static.length1
2106
- ) {
2107
- if (
2108
- (rlprun <= this$static.length1 &&
2109
- $search1(
2110
- this$static,
2111
- ~~rl >>> 6,
2112
- rl & 63,
2113
- this$static.length1,
2114
- -1,
2115
- 0,
2116
- )) ||
2117
- (udprun <= this$static.length1 &&
2118
- $search1(
2119
- this$static,
2120
- ~~ud >>> 6,
2121
- ud & 63,
2122
- this$static.length1,
2123
- -1,
2124
- 0,
2125
- )) ||
2126
- (fbprun <= this$static.length1 &&
2127
- $search1(this$static, ~~fb >>> 6, fb & 63, this$static.length1, -1, 0))
2128
- ) {
2129
- break;
2130
- }
2131
- }
2132
- const p1SolsArr = $toArray_1(
2133
- this$static.p1sols,
2134
- initDim(
2135
- _3Lcs_threephase_FullCube_2_classLit,
2136
- makeCastMap([Q$FullCube_$1, Q$Serializable, Q$Object_$1]),
2137
- Q$FullCube_0,
2138
- 0,
2139
- 0,
2140
- ),
2141
- );
2142
-
2143
- p1SolsArr.sort(function (a, b) {
2144
- return a.value - b.value;
2145
- });
2146
- MAX_LENGTH2 = 9;
2147
- do {
2148
- OUT: for (length12 = p1SolsArr[0].value; length12 < 100; ++length12) {
2149
- for (i_0 = 0; i_0 < p1SolsArr.length; ++i_0) {
2150
- if (p1SolsArr[i_0].value > length12) {
2151
- break;
2152
- }
2153
- if (length12 - p1SolsArr[i_0].length1 > MAX_LENGTH2) {
2154
- continue;
2155
- }
2156
- $copy_4(this$static.c1, p1SolsArr[i_0]);
2157
- $set_2(
2158
- this$static.ct2,
2159
- $getCenter(this$static.c1),
2160
- parity_0($getEdge(this$static.c1).ep),
2161
- );
2162
- s2ct = $getct(this$static.ct2);
2163
- s2rl = $getrl(this$static.ct2);
2164
- this$static.length1 = p1SolsArr[i_0].length1;
2165
- this$static.length2 = length12 - p1SolsArr[i_0].length1;
2166
- if ($search2(this$static, s2ct, s2rl, this$static.length2, 28, 0)) {
2167
- break OUT;
2168
- }
2169
- }
2170
- }
2171
- ++MAX_LENGTH2;
2172
- } while (length12 === 100);
2173
- this$static.arr2.sort(function (a, b) {
2174
- return a.value - b.value;
2175
- });
2176
- index = 0;
2177
- MAX_LENGTH3 = 13;
2178
- do {
2179
- OUT2: for (
2180
- length123 = this$static.arr2[0].value;
2181
- length123 < 100;
2182
- ++length123
2183
- ) {
2184
- for (i_0 = 0; i_0 < Math.min(this$static.arr2idx, 100); ++i_0) {
2185
- if (this$static.arr2[i_0].value > length123) {
2186
- break;
2187
- }
2188
- if (
2189
- length123 -
2190
- this$static.arr2[i_0].length1 -
2191
- this$static.arr2[i_0].length2 >
2192
- MAX_LENGTH3
2193
- ) {
2194
- continue;
2195
- }
2196
- eparity = $set_6(this$static.e12, $getEdge(this$static.arr2[i_0]));
2197
- $set_3(
2198
- this$static.ct3,
2199
- $getCenter(this$static.arr2[i_0]),
2200
- eparity ^ parity_0($getCorner(this$static.arr2[i_0]).cp),
2201
- );
2202
- ct = $getct_0(this$static.ct3);
2203
- edge = $get_2(this$static.e12, 10);
2204
- prun = getprun($getsym_0(this$static.e12));
2205
- if (
2206
- prun <=
2207
- length123 -
2208
- this$static.arr2[i_0].length1 -
2209
- this$static.arr2[i_0].length2 &&
2210
- $search3(
2211
- this$static,
2212
- edge,
2213
- ct,
2214
- prun,
2215
- length123 -
2216
- this$static.arr2[i_0].length1 -
2217
- this$static.arr2[i_0].length2,
2218
- 20,
2219
- 0,
2220
- )
2221
- ) {
2222
- index = i_0;
2223
- break OUT2;
2224
- }
2225
- }
2226
- }
2227
- ++MAX_LENGTH3;
2228
- } while (length123 === 100);
2229
- const solcube = new FullCube_4(this$static.arr2[index]);
2230
- this$static.length1 = solcube.length1;
2231
- this$static.length2 = solcube.length2;
2232
- const length_0 = length123 - this$static.length1 - this$static.length2;
2233
- for (i_0 = 0; i_0 < length_0; ++i_0) {
2234
- $move_6(solcube, move3std[this$static.move3[i_0]]);
2235
- }
2236
- this$static.solution = $getMoveString(solcube);
2237
- }
2238
-
2239
- function $init2_0(this$static, sym) {
2240
- let i_0, next;
2241
- $copy_4(this$static.c1, this$static.c);
2242
- for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
2243
- $move_6(this$static.c1, this$static.move1[i_0]);
2244
- }
2245
- switch (finish_0[sym]) {
2246
- case 0:
2247
- $move_6(this$static.c1, 24);
2248
- $move_6(this$static.c1, 35);
2249
- this$static.move1[this$static.length1] = 24;
2250
- this$static.move1[this$static.length1 + 1] = 35;
2251
- this$static.add1 = true;
2252
- sym = 19;
2253
- break;
2254
- case 12869:
2255
- $move_6(this$static.c1, 18);
2256
- $move_6(this$static.c1, 29);
2257
- this$static.move1[this$static.length1] = 18;
2258
- this$static.move1[this$static.length1 + 1] = 29;
2259
- this$static.add1 = true;
2260
- sym = 34;
2261
- break;
2262
- case 735470:
2263
- this$static.add1 = false;
2264
- sym = 0;
2265
- }
2266
- $set_2(
2267
- this$static.ct2,
2268
- $getCenter(this$static.c1),
2269
- parity_0($getEdge(this$static.c1).ep),
2270
- );
2271
- const s2ct = $getct(this$static.ct2);
2272
- const s2rl = $getrl(this$static.ct2);
2273
- const ctp = ctprun[s2ct * 70 + s2rl];
2274
- this$static.c1.value = ctp + this$static.length1;
2275
- this$static.c1.length1 = this$static.length1;
2276
- this$static.c1.add1 = this$static.add1;
2277
- this$static.c1.sym = sym;
2278
- ++this$static.p1SolsCnt;
2279
- if (this$static.p1sols.heap.size < 500) {
2280
- next = new FullCube_4(this$static.c1);
2281
- } else {
2282
- next = $poll(this$static.p1sols);
2283
- next.value > this$static.c1.value && $copy_4(next, this$static.c1);
2284
- }
2285
- $add(this$static.p1sols, next);
2286
- return this$static.p1SolsCnt === 10000;
2287
- }
2288
-
2289
- function $init3(this$static) {
2290
- let i_0;
2291
- $copy_4(this$static.c2, this$static.c1);
2292
- for (i_0 = 0; i_0 < this$static.length2; ++i_0) {
2293
- $move_6(this$static.c2, this$static.move2[i_0]);
2294
- }
2295
- if (!$checkEdge($getEdge(this$static.c2))) {
2296
- return false;
2297
- }
2298
- const eparity = $set_6(this$static.e12, $getEdge(this$static.c2));
2299
- $set_3(
2300
- this$static.ct3,
2301
- $getCenter(this$static.c2),
2302
- eparity ^ parity_0($getCorner(this$static.c2).cp),
2303
- );
2304
- const ct = $getct_0(this$static.ct3);
2305
- $get_2(this$static.e12, 10);
2306
- const prun = getprun($getsym_0(this$static.e12));
2307
- !this$static.arr2[this$static.arr2idx]
2308
- ? (this$static.arr2[this$static.arr2idx] = new FullCube_4(this$static.c2))
2309
- : $copy_4(this$static.arr2[this$static.arr2idx], this$static.c2);
2310
- this$static.arr2[this$static.arr2idx].value =
2311
- this$static.length1 + this$static.length2 + Math.max(prun, prun_0[ct]);
2312
- this$static.arr2[this$static.arr2idx].length2 = this$static.length2;
2313
- ++this$static.arr2idx;
2314
- return this$static.arr2idx === this$static.arr2.length;
2315
- }
2316
-
2317
- function $randomState(this$static, randomUIntBelow) {
2318
- init_5();
2319
- this$static.c = new FullCube_5(randomUIntBelow);
2320
- $doSearch(this$static);
2321
- return this$static.solution;
2322
- }
2323
-
2324
- function $search1(this$static, ct, sym, maxl, lm, depth) {
2325
- let axis, ctx, m_0, power, prun, symx;
2326
- if (ct === 0) {
2327
- return maxl === 0 && $init2_0(this$static, sym);
2328
- }
2329
- for (axis = 0; axis < 27; axis += 3) {
2330
- if (axis === lm || axis === lm - 9 || axis === lm - 18) {
2331
- continue;
2332
- }
2333
- for (power = 0; power < 3; ++power) {
2334
- m_0 = axis + power;
2335
- ctx = ctsmv[ct][symmove[sym][m_0]];
2336
- prun = csprun[~~ctx >>> 6];
2337
- if (prun >= maxl) {
2338
- if (prun > maxl) {
2339
- break;
2340
- }
2341
- continue;
2342
- }
2343
- symx = symmult[sym][ctx & 63];
2344
- ctx >>>= 6;
2345
- this$static.move1[depth] = m_0;
2346
- if ($search1(this$static, ctx, symx, maxl - 1, axis, depth + 1)) {
2347
- return true;
2348
- }
2349
- }
2350
- }
2351
- return false;
2352
- }
2353
-
2354
- function $search2(this$static, ct, rl, maxl, lm, depth) {
2355
- let ctx, m_0, prun, rlx;
2356
- if (ct === 0 && ctprun[rl] === 0) {
2357
- return maxl === 0 && $init3(this$static);
2358
- }
2359
- for (m_0 = 0; m_0 < 23; ++m_0) {
2360
- if (ckmv2_0[lm][m_0]) {
2361
- m_0 = skipAxis2[m_0];
2362
- continue;
2363
- }
2364
- ctx = ctmv[ct][m_0];
2365
- rlx = rlmv[rl][m_0];
2366
- prun = ctprun[ctx * 70 + rlx];
2367
- if (prun >= maxl) {
2368
- prun > maxl && (m_0 = skipAxis2[m_0]);
2369
- continue;
2370
- }
2371
- this$static.move2[depth] = move2std[m_0];
2372
- if ($search2(this$static, ctx, rlx, maxl - 1, m_0, depth + 1)) {
2373
- return true;
2374
- }
2375
- }
2376
- return false;
2377
- }
2378
-
2379
- function $search3(this$static, edge, ct, prun, maxl, lm, depth) {
2380
- let cord1x, cord2x, ctx, edgex, m_0, prun1, prunx, symcord1x, symx;
2381
- if (maxl === 0) {
2382
- return edge === 0 && ct === 0;
2383
- }
2384
- $set_4(this$static.tempe[depth], edge);
2385
- for (m_0 = 0; m_0 < 17; ++m_0) {
2386
- if (ckmv3[lm][m_0]) {
2387
- m_0 = skipAxis3[m_0];
2388
- continue;
2389
- }
2390
- ctx = ctmove[ct][m_0];
2391
- prun1 = prun_0[ctx];
2392
- if (prun1 >= maxl) {
2393
- prun1 > maxl && m_0 < 14 && (m_0 = skipAxis3[m_0]);
2394
- continue;
2395
- }
2396
- edgex = getmvrot(this$static.tempe[depth].edge, m_0 << 3, 10);
2397
- cord1x = ~~(edgex / 20160);
2398
- symcord1x = raw2sym_1[cord1x];
2399
- symx = symcord1x & 7;
2400
- symcord1x >>= 3;
2401
- cord2x =
2402
- getmvrot(this$static.tempe[depth].edge, (m_0 << 3) | symx, 10) % 20160;
2403
- prunx = getprun_0(symcord1x * 20160 + cord2x, prun);
2404
- if (prunx >= maxl) {
2405
- prunx > maxl && m_0 < 14 && (m_0 = skipAxis3[m_0]);
2406
- continue;
2407
- }
2408
- if ($search3(this$static, edgex, ctx, prunx, maxl - 1, m_0, depth + 1)) {
2409
- this$static.move3[depth] = m_0;
2410
- return true;
2411
- }
2412
- }
2413
- return false;
2414
- }
2415
-
2416
- function Search_4() {
2417
- let i_0;
2418
- this.p1sols = new PriorityQueue_0(new FullCube$ValueComparator_0());
2419
- this.move1 = createArray(15);
2420
- this.move2 = createArray(20);
2421
- this.move3 = createArray(20);
2422
- this.c1 = new FullCube_3();
2423
- this.c2 = new FullCube_3();
2424
- this.ct2 = new Center2_0();
2425
- this.ct3 = new Center3_0();
2426
- this.e12 = new Edge3_0();
2427
- this.tempe = createArray(20);
2428
- this.arr2 = createArray(100);
2429
- for (i_0 = 0; i_0 < 20; ++i_0) {
2430
- this.tempe[i_0] = new Edge3_0();
2431
- }
2432
- }
2433
-
2434
- function init_5() {
2435
- if (inited_2) {
2436
- return;
2437
- }
2438
- initSym_0();
2439
- raw2sym = createArray(735471);
2440
- initSym2Raw();
2441
- createMoveTable();
2442
- raw2sym = null;
2443
- createPrun();
2444
- init_3();
2445
- init_4();
2446
- initMvrot();
2447
- initRaw2Sym();
2448
- createPrun_0();
2449
- inited_2 = true;
2450
- }
2451
-
2452
- defineSeed(163, 1, makeCastMap([Q$Search_0]), Search_4);
2453
- _.add1 = false;
2454
- _.arr2idx = 0;
2455
- _.c = null;
2456
- _.length1 = 0;
2457
- _.length2 = 0;
2458
- _.p1SolsCnt = 0;
2459
- _.solution = "";
2460
- let inited_2 = false;
2461
-
2462
- let ran$clinit_Util_0 = false;
2463
- function $clinit_Util_0() {
2464
- if (ran$clinit_Util_0) {
2465
- return;
2466
- }
2467
- ran$clinit_Util_0 = true;
2468
- }
2469
-
2470
- function parity_0(arr) {
2471
- let i_0, j, len, parity;
2472
- parity = 0;
2473
- for (i_0 = 0, len = arr.length; i_0 < len; ++i_0) {
2474
- for (j = i_0; j < len; ++j) {
2475
- arr[i_0] > arr[j] && (parity ^= 1);
2476
- }
2477
- }
2478
- return parity;
2479
- }
2480
-
2481
- function swap(arr, a, b, c, d, key) {
2482
- let temp;
2483
- switch (key) {
2484
- case 0:
2485
- temp = arr[d];
2486
- arr[d] = arr[c];
2487
- arr[c] = arr[b];
2488
- arr[b] = arr[a];
2489
- arr[a] = temp;
2490
- return;
2491
- case 1:
2492
- temp = arr[a];
2493
- arr[a] = arr[c];
2494
- arr[c] = temp;
2495
- temp = arr[b];
2496
- arr[b] = arr[d];
2497
- arr[d] = temp;
2498
- return;
2499
- case 2:
2500
- temp = arr[a];
2501
- arr[a] = arr[b];
2502
- arr[b] = arr[c];
2503
- arr[c] = arr[d];
2504
- arr[d] = temp;
2505
- return;
2506
- }
2507
- }
2508
-
2509
- function Class_0() {}
2510
-
2511
- function createForArray(packageName, className, seedId, componentType) {
2512
- const clazz = new Class_0();
2513
- clazz.typeName = packageName + className;
2514
- isInstantiable(seedId !== 0 ? -seedId : 0) &&
2515
- setClassLiteral(seedId !== 0 ? -seedId : 0, clazz);
2516
- clazz.modifiers = 4;
2517
- clazz.superclass = Ljava_lang_Object_2_classLit;
2518
- clazz.componentType = componentType;
2519
- return clazz;
2520
- }
2521
-
2522
- function createForClass(packageName, className, seedId, superclass) {
2523
- const clazz = new Class_0();
2524
- clazz.typeName = packageName + className;
2525
- isInstantiable(seedId) && setClassLiteral(seedId, clazz);
2526
- clazz.superclass = superclass;
2527
- return clazz;
2528
- }
2529
-
2530
- function getSeedFunction(clazz) {
2531
- const func = seedTable[clazz.seedId];
2532
- clazz = null;
2533
- return func;
2534
- }
2535
-
2536
- function isInstantiable(seedId) {
2537
- return typeof seedId === "number" && seedId > 0;
2538
- }
2539
-
2540
- function setClassLiteral(seedId, clazz) {
2541
- let proto;
2542
- clazz.seedId = seedId;
2543
- if (seedId === 2) {
2544
- proto = String.prototype;
2545
- } else {
2546
- if (seedId > 0) {
2547
- let seed = getSeedFunction(clazz);
2548
- if (seed) {
2549
- proto = seed.prototype;
2550
- } else {
2551
- seed = seedTable[seedId] = function () {};
2552
- seed.___clazz$ = clazz;
2553
- return;
2554
- }
2555
- } else {
2556
- return;
2557
- }
2558
- }
2559
- proto.___clazz$ = clazz;
2560
- }
2561
-
2562
- _.val$outerIter = null;
2563
-
2564
- function $add(this$static, o) {
2565
- if ($offer(this$static, o)) {
2566
- return true;
2567
- }
2568
- }
2569
-
2570
- function $$init_6(this$static) {
2571
- this$static.array = initDim(
2572
- _3Ljava_lang_Object_2_classLit,
2573
- makeCastMap([Q$Serializable, Q$Object_$1]),
2574
- Q$Object,
2575
- 0,
2576
- 0,
2577
- );
2578
- }
2579
-
2580
- function $add_0(this$static, o) {
2581
- setCheck(this$static.array, this$static.size++, o);
2582
- return true;
2583
- }
2584
-
2585
- function $clear(this$static) {
2586
- this$static.array = initDim(
2587
- _3Ljava_lang_Object_2_classLit,
2588
- makeCastMap([Q$Serializable, Q$Object_$1]),
2589
- Q$Object,
2590
- 0,
2591
- 0,
2592
- );
2593
- this$static.size = 0;
2594
- }
2595
-
2596
- function $get_4(this$static, index) {
2597
- return this$static.array[index];
2598
- }
2599
-
2600
- function $remove_0(this$static, index) {
2601
- const previous = this$static.array[index];
2602
- splice_0(this$static.array, index, 1);
2603
- --this$static.size;
2604
- return previous;
2605
- }
2606
-
2607
- function $set_7(this$static, index, o) {
2608
- const previous = this$static.array[index];
2609
- setCheck(this$static.array, index, o);
2610
- return previous;
2611
- }
2612
-
2613
- function $toArray_0(this$static, out) {
2614
- let i_0;
2615
- out.length < this$static.size && (out = createFrom(out, this$static.size));
2616
- for (i_0 = 0; i_0 < this$static.size; ++i_0) {
2617
- setCheck(out, i_0, this$static.array[i_0]);
2618
- }
2619
- out.length > this$static.size && setCheck(out, this$static.size, null);
2620
- return out;
2621
- }
2622
-
2623
- function ArrayList_1() {
2624
- $$init_6(this);
2625
- this.array.length = 500;
2626
- }
2627
-
2628
- function splice_0(array, index, deleteCount) {
2629
- array.splice(index, deleteCount);
2630
- }
2631
- _.size = 0;
2632
-
2633
- function binarySearch_0(sortedArray, key) {
2634
- let high, low, mid, midVal;
2635
- low = 0;
2636
- high = sortedArray.length - 1;
2637
- while (low <= high) {
2638
- mid = low + (~~(high - low) >> 1);
2639
- midVal = sortedArray[mid];
2640
- if (midVal < key) {
2641
- low = mid + 1;
2642
- } else if (midVal > key) {
2643
- high = mid - 1;
2644
- } else {
2645
- return mid;
2646
- }
2647
- }
2648
- return -low - 1;
2649
- }
2650
-
2651
- function fill_0(a) {
2652
- fill_1(a, a.length);
2653
- }
2654
-
2655
- function fill_1(a, toIndex) {
2656
- let i_0;
2657
- for (i_0 = 0; i_0 < toIndex; ++i_0) {
2658
- a[i_0] = -1;
2659
- }
2660
- }
2661
-
2662
- function $mergeHeaps(this$static, node) {
2663
- let smallestChild, leftChild, rightChild, smallestChild_0;
2664
- const heapSize = this$static.heap.size;
2665
- const value = $get_4(this$static.heap, node);
2666
- while (node * 2 + 1 < heapSize) {
2667
- smallestChild =
2668
- ((leftChild = 2 * node + 1),
2669
- (rightChild = leftChild + 1),
2670
- (smallestChild_0 = leftChild),
2671
- rightChild < heapSize &&
2672
- $compare_0(
2673
- $get_4(this$static.heap, rightChild),
2674
- $get_4(this$static.heap, leftChild),
2675
- ) < 0 &&
2676
- (smallestChild_0 = rightChild),
2677
- smallestChild_0);
2678
- if ($compare_0(value, $get_4(this$static.heap, smallestChild)) < 0) {
2679
- break;
2680
- }
2681
- $set_7(this$static.heap, node, $get_4(this$static.heap, smallestChild));
2682
- node = smallestChild;
2683
- }
2684
- $set_7(this$static.heap, node, value);
2685
- }
2686
-
2687
- function $offer(this$static, e) {
2688
- let childNode, node;
2689
- node = this$static.heap.size;
2690
- $add_0(this$static.heap, e);
2691
- while (node > 0) {
2692
- childNode = node;
2693
- node = ~~((node - 1) / 2);
2694
- if ($compare_0($get_4(this$static.heap, node), e) <= 0) {
2695
- $set_7(this$static.heap, childNode, e);
2696
- return true;
2697
- }
2698
- $set_7(this$static.heap, childNode, $get_4(this$static.heap, node));
2699
- }
2700
- $set_7(this$static.heap, node, e);
2701
- return true;
2702
- }
2703
-
2704
- function $poll(this$static) {
2705
- if (this$static.heap.size === 0) {
2706
- return null;
2707
- }
2708
- const value = $get_4(this$static.heap, 0);
2709
- $removeAtIndex(this$static);
2710
- return value;
2711
- }
2712
-
2713
- function $removeAtIndex(this$static) {
2714
- const lastValue = $remove_0(this$static.heap, this$static.heap.size - 1);
2715
- if (0 < this$static.heap.size) {
2716
- $set_7(this$static.heap, 0, lastValue);
2717
- $mergeHeaps(this$static, 0);
2718
- }
2719
- }
2720
-
2721
- function $toArray_1(this$static, a) {
2722
- return $toArray_0(this$static.heap, a);
2723
- }
2724
-
2725
- function PriorityQueue_0(cmp) {
2726
- this.heap = new ArrayList_1();
2727
- this.cmp = cmp;
2728
- }
2729
-
2730
- defineSeed(239, 1, {}, PriorityQueue_0);
2731
- _.cmp = null;
2732
- _.heap = null;
2733
-
2734
- const Ljava_lang_Object_2_classLit = createForClass(
2735
- "java.lang.",
2736
- "Object",
2737
- 1,
2738
- null,
2739
- ),
2740
- _3Ljava_lang_Object_2_classLit = createForArray(
2741
- "[Ljava.lang.",
2742
- "Object;",
2743
- 356,
2744
- Ljava_lang_Object_2_classLit,
2745
- ),
2746
- Lcs_threephase_FullCube_2_classLit = createForClass(
2747
- "cs.threephase.",
2748
- "FullCube",
2749
- 160,
2750
- Ljava_lang_Object_2_classLit,
2751
- ),
2752
- _3Lcs_threephase_FullCube_2_classLit = createForArray(
2753
- "[Lcs.threephase.",
2754
- "FullCube;",
2755
- 381,
2756
- Lcs_threephase_FullCube_2_classLit,
2757
- );
2758
-
2759
- let searcher;
2760
-
2761
- let raninit = false;
2762
- function init() {
2763
- if (raninit) {
2764
- return;
2765
- }
2766
- raninit = true;
2767
- $clinit_Moves();
2768
- $clinit_Util_0();
2769
- $clinit_Center1();
2770
- $clinit_Center2();
2771
- $clinit_Center3();
2772
- $clinit_Edge3();
2773
- $clinit_CornerCube();
2774
- $clinit_EdgeCube();
2775
- $clinit_FullCube_0();
2776
- searcher = new Search_4();
2777
- }
2778
-
2779
- export function initialize(): void {
2780
- init();
2781
- init_5();
2782
- }
2783
-
2784
- export async function random444Scramble(): Promise<Alg> {
2785
- mustBeInsideWorker();
2786
- init();
2787
- const suffix = Alg.fromString(
2788
- $randomState(searcher, await randomUIntBelowFactory()),
2789
- );
2790
- return (await getRandomScramble333()).concat(suffix);
2791
- }