cubing 0.29.1 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/dist/esm/.DS_Store +0 -0
- package/dist/esm/alg/index.js +1 -2
- package/dist/esm/bluetooth/index.js +36 -32
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/{chunk-XRZBPKES.js → chunk-35OK6TQ4.js} +328 -66
- package/dist/esm/chunk-35OK6TQ4.js.map +7 -0
- package/dist/esm/{chunk-WYKXX2XY.js → chunk-4QZRHN6S.js} +10 -8
- package/dist/esm/{chunk-WYKXX2XY.js.map → chunk-4QZRHN6S.js.map} +2 -2
- package/dist/esm/{chunk-2JDBIQSV.js → chunk-5OQ34D3X.js} +7 -7
- package/dist/esm/{chunk-2JDBIQSV.js.map → chunk-5OQ34D3X.js.map} +2 -2
- package/dist/esm/{chunk-U2ONHTIX.js → chunk-6FB2XWAK.js} +33 -31
- package/dist/esm/chunk-6FB2XWAK.js.map +7 -0
- package/dist/esm/{chunk-ZNAYJGVL.js → chunk-C6KMV2PL.js} +2 -2
- package/dist/esm/{chunk-ZNAYJGVL.js.map → chunk-C6KMV2PL.js.map} +0 -0
- package/dist/esm/{chunk-XU5ILFX5.js → chunk-GQBRF4EM.js} +6 -4
- package/dist/esm/{chunk-XU5ILFX5.js.map → chunk-GQBRF4EM.js.map} +2 -2
- package/dist/esm/{chunk-WXCNEGW3.js → chunk-HR5D6SD4.js} +2 -2
- package/dist/esm/{chunk-WXCNEGW3.js.map → chunk-HR5D6SD4.js.map} +2 -2
- package/dist/esm/{chunk-XT3R2ENM.js → chunk-KOAJIBEX.js} +47 -38
- package/dist/esm/chunk-KOAJIBEX.js.map +7 -0
- package/dist/esm/{chunk-OX6O2ZO5.js → chunk-QHWK5RXN.js} +1 -1
- package/dist/esm/chunk-QHWK5RXN.js.map +7 -0
- package/dist/esm/{chunk-GW4FGG42.js → chunk-RI2DAEY6.js} +2 -2
- package/dist/esm/{chunk-GW4FGG42.js.map → chunk-RI2DAEY6.js.map} +0 -0
- package/dist/esm/{chunk-AHEXXC6V.js → chunk-VIUWS2PX.js} +4 -4
- package/dist/esm/chunk-VIUWS2PX.js.map +7 -0
- package/dist/esm/{chunk-2IZUSAXQ.js → chunk-WEYPAZEE.js} +1 -1
- package/dist/esm/{chunk-2IZUSAXQ.js.map → chunk-WEYPAZEE.js.map} +1 -1
- package/dist/esm/{chunk-NI7U4XAZ.js → chunk-ZQT3QSWD.js} +226 -113
- package/dist/esm/chunk-ZQT3QSWD.js.map +7 -0
- package/dist/esm/kpuzzle/index.js +2 -3
- package/dist/esm/notation/index.js +2 -3
- package/dist/esm/protocol/index.js +4 -5
- package/dist/esm/puzzle-geometry/index.js +110 -85
- package/dist/esm/puzzle-geometry/index.js.map +2 -2
- package/dist/esm/puzzles/index.js +10 -7
- package/dist/esm/{puzzles-dynamic-3x3x3-KIG5A6QR.js → puzzles-dynamic-3x3x3-ZKMODX2P.js} +1 -3
- package/dist/esm/{puzzles-dynamic-3x3x3-KIG5A6QR.js.map → puzzles-dynamic-3x3x3-ZKMODX2P.js.map} +1 -1
- package/dist/esm/{puzzles-dynamic-4x4x4-PEDAPUZK.js → puzzles-dynamic-4x4x4-DT42HVIY.js} +1 -3
- package/dist/esm/{puzzles-dynamic-4x4x4-PEDAPUZK.js.map → puzzles-dynamic-4x4x4-DT42HVIY.js.map} +1 -1
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js → puzzles-dynamic-side-events-HMUBMHA5.js} +2 -4
- package/dist/esm/{puzzles-dynamic-side-events-5C7LMBWX.js.map → puzzles-dynamic-side-events-HMUBMHA5.js.map} +2 -2
- package/dist/esm/{puzzles-dynamic-unofficial-WWJ4NJMX.js → puzzles-dynamic-unofficial-QXSDLTK5.js} +1 -3
- package/dist/esm/{puzzles-dynamic-unofficial-WWJ4NJMX.js.map → puzzles-dynamic-unofficial-QXSDLTK5.js.map} +1 -1
- package/dist/esm/scramble/index.js +3 -4
- package/dist/esm/search/index.js +8 -9
- package/dist/esm/{search-dynamic-sgs-side-events-4H3X5HLH.js → search-dynamic-sgs-side-events-XNTCWRI4.js} +6 -7
- package/dist/esm/search-dynamic-sgs-side-events-XNTCWRI4.js.map +7 -0
- package/dist/esm/{search-dynamic-sgs-unofficial-7IRW4LVD.js → search-dynamic-sgs-unofficial-5KMZ747E.js} +122 -68
- package/dist/esm/search-dynamic-sgs-unofficial-5KMZ747E.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-3x3x3-7XZTYQMO.js → search-dynamic-solve-3x3x3-TSXPWENP.js} +649 -407
- package/dist/esm/search-dynamic-solve-3x3x3-TSXPWENP.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-4x4x4-7JTJCCSY.js → search-dynamic-solve-4x4x4-FKQ2JWK2.js} +399 -151
- package/dist/esm/search-dynamic-solve-4x4x4-FKQ2JWK2.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-fto-4LI23P6K.js → search-dynamic-solve-fto-GPLW7S5F.js} +74 -35
- package/dist/esm/search-dynamic-solve-fto-GPLW7S5F.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-kilominx-3HEVQ4MC.js → search-dynamic-solve-kilominx-HB2QFUGF.js} +136 -72
- package/dist/esm/search-dynamic-solve-kilominx-HB2QFUGF.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-master_tetraminx-UB32C7MM.js → search-dynamic-solve-master_tetraminx-LR3LJI7O.js} +84 -42
- package/dist/esm/search-dynamic-solve-master_tetraminx-LR3LJI7O.js.map +7 -0
- package/dist/esm/{search-dynamic-solve-sq1-HA72TYF2.js → search-dynamic-solve-sq1-W33UXTDZ.js} +129 -55
- package/dist/esm/search-dynamic-solve-sq1-W33UXTDZ.js.map +7 -0
- package/dist/esm/search-worker-inside-generated-string-5HKZNHKK.js +3884 -0
- package/dist/esm/search-worker-inside-generated-string-5HKZNHKK.js.map +7 -0
- package/dist/esm/{search-worker-js-entry-T6YIT7YD.js → search-worker-js-entry-PDXEE46R.js} +44 -36
- package/dist/esm/search-worker-js-entry-PDXEE46R.js.map +7 -0
- package/dist/esm/{search-worker-ts-entry-OUEC4L5I.js → search-worker-ts-entry-UV2RY2EY.js} +3 -4
- package/dist/esm/{search-worker-ts-entry-OUEC4L5I.js.map → search-worker-ts-entry-UV2RY2EY.js.map} +1 -1
- package/dist/esm/stream/index.js +1 -2
- package/dist/esm/stream/index.js.map +2 -2
- package/dist/esm/twisty/index.js +368 -300
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/{twisty-dynamic-3d-AZUSXQ5S.js → twisty-dynamic-3d-GPF6TW32.js} +57 -60
- package/dist/esm/twisty-dynamic-3d-GPF6TW32.js.map +7 -0
- package/dist/types/{Alg-137fb0d5.d.ts → Alg-1c8c3757.d.ts} +25 -26
- package/dist/types/{KState-a73111d7.d.ts → KState-7c9e40f4.d.ts} +1 -1
- package/dist/types/{TwizzleLink-bef52ecd.d.ts → TwizzleLink-3f8a01d2.d.ts} +19 -18
- package/dist/types/alg/index.d.ts +30 -8
- package/dist/types/bluetooth/index.d.ts +4 -4
- package/dist/types/{bluetooth-puzzle-8a678993.d.ts → bluetooth-puzzle-a64e9756.d.ts} +2 -2
- package/dist/types/kpuzzle/index.d.ts +2 -2
- package/dist/types/notation/index.d.ts +1 -1
- package/dist/types/{outside-e55f28a0.d.ts → outside-b62aa614.d.ts} +2 -2
- package/dist/types/{parseAlg-a28f7568.d.ts → parseAlg-d5fbee87.d.ts} +1 -1
- package/dist/types/protocol/index.d.ts +2 -2
- package/dist/types/puzzle-geometry/index.d.ts +3 -3
- package/dist/types/puzzles/index.d.ts +8 -6
- package/dist/types/scramble/index.d.ts +3 -3
- package/dist/types/search/index.d.ts +3 -3
- package/dist/types/stream/index.d.ts +3 -3
- package/dist/types/twisty/index.d.ts +5 -5
- package/package.json +51 -147
- package/dist/esm/chunk-AHEXXC6V.js.map +0 -7
- package/dist/esm/chunk-NI7U4XAZ.js.map +0 -7
- package/dist/esm/chunk-OX6O2ZO5.js.map +0 -7
- package/dist/esm/chunk-SBZRVSPK.js +0 -30
- package/dist/esm/chunk-SBZRVSPK.js.map +0 -7
- package/dist/esm/chunk-U2ONHTIX.js.map +0 -7
- package/dist/esm/chunk-XRZBPKES.js.map +0 -7
- package/dist/esm/chunk-XT3R2ENM.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-side-events-4H3X5HLH.js.map +0 -7
- package/dist/esm/search-dynamic-sgs-unofficial-7IRW4LVD.js.map +0 -7
- package/dist/esm/search-dynamic-solve-3x3x3-7XZTYQMO.js.map +0 -7
- package/dist/esm/search-dynamic-solve-4x4x4-7JTJCCSY.js.map +0 -7
- package/dist/esm/search-dynamic-solve-fto-4LI23P6K.js.map +0 -7
- package/dist/esm/search-dynamic-solve-kilominx-3HEVQ4MC.js.map +0 -7
- package/dist/esm/search-dynamic-solve-master_tetraminx-UB32C7MM.js.map +0 -7
- package/dist/esm/search-dynamic-solve-sq1-HA72TYF2.js.map +0 -7
- package/dist/esm/search-worker-inside-generated-string-ZEY77HTF.js +0 -3886
- package/dist/esm/search-worker-inside-generated-string-ZEY77HTF.js.map +0 -7
- package/dist/esm/search-worker-js-entry-T6YIT7YD.js.map +0 -7
- package/dist/esm/twisty-dynamic-3d-AZUSXQ5S.js.map +0 -7
package/dist/esm/{search-dynamic-solve-4x4x4-7JTJCCSY.js → search-dynamic-solve-4x4x4-FKQ2JWK2.js}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mustBeInsideWorker,
|
|
3
3
|
random333Scramble
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-4QZRHN6S.js";
|
|
5
|
+
import "./chunk-QHWK5RXN.js";
|
|
6
|
+
import "./chunk-35OK6TQ4.js";
|
|
7
|
+
import "./chunk-6FB2XWAK.js";
|
|
8
|
+
import "./chunk-GQBRF4EM.js";
|
|
9
9
|
import {
|
|
10
10
|
randomUIntBelowFactory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HR5D6SD4.js";
|
|
12
12
|
import {
|
|
13
13
|
Alg
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-SBZRVSPK.js";
|
|
14
|
+
} from "./chunk-ZQT3QSWD.js";
|
|
16
15
|
|
|
17
16
|
// src/cubing/vendor/cstimer/src/js/lib/mathlib.ts
|
|
18
17
|
var Cnk = [];
|
|
@@ -31,7 +30,8 @@ for (let i = 0; i < 32; ++i) {
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
function circle(arr, ...moreArgs) {
|
|
34
|
-
const length = moreArgs.length
|
|
33
|
+
const length = moreArgs.length;
|
|
34
|
+
const temp = arr[moreArgs[length - 1]];
|
|
35
35
|
for (let i = length; i > 0; i--) {
|
|
36
36
|
arr[moreArgs[i]] = arr[moreArgs[i - 1]];
|
|
37
37
|
}
|
|
@@ -174,7 +174,8 @@ function $clinit_Array$ExpandoWrapper() {
|
|
|
174
174
|
initExpandos(new Array_0(), expandoNames_0, expandoValues_0);
|
|
175
175
|
}
|
|
176
176
|
function initExpandos(protoType, expandoNames, expandoValues) {
|
|
177
|
-
let i_0 = 0
|
|
177
|
+
let i_0 = 0;
|
|
178
|
+
let value;
|
|
178
179
|
for (const name_0 in protoType) {
|
|
179
180
|
if (value = protoType[name_0]) {
|
|
180
181
|
expandoNames[i_0] = name_0;
|
|
@@ -215,7 +216,8 @@ function $$init_1(this$static) {
|
|
|
215
216
|
this$static.ct = createArray(24);
|
|
216
217
|
}
|
|
217
218
|
function $equals(this$static, obj) {
|
|
218
|
-
let c
|
|
219
|
+
let c;
|
|
220
|
+
let i_0;
|
|
219
221
|
if (instanceOf(obj, Q$Center1)) {
|
|
220
222
|
c = obj;
|
|
221
223
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
@@ -228,7 +230,9 @@ function $equals(this$static, obj) {
|
|
|
228
230
|
return false;
|
|
229
231
|
}
|
|
230
232
|
function $get_1(this$static) {
|
|
231
|
-
let i_0
|
|
233
|
+
let i_0;
|
|
234
|
+
let idx;
|
|
235
|
+
let r;
|
|
232
236
|
idx = 0;
|
|
233
237
|
r = 8;
|
|
234
238
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
@@ -237,7 +241,8 @@ function $get_1(this$static) {
|
|
|
237
241
|
return idx;
|
|
238
242
|
}
|
|
239
243
|
function $getsym(this$static) {
|
|
240
|
-
let cord
|
|
244
|
+
let cord;
|
|
245
|
+
let j;
|
|
241
246
|
if (raw2sym !== null) {
|
|
242
247
|
return raw2sym[$get_1(this$static)];
|
|
243
248
|
}
|
|
@@ -256,66 +261,80 @@ function $move(this$static, m_0) {
|
|
|
256
261
|
const key = m_0 % 3;
|
|
257
262
|
m_0 = ~~(m_0 / 3);
|
|
258
263
|
switch (m_0) {
|
|
259
|
-
case 0:
|
|
264
|
+
case 0: {
|
|
260
265
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
261
266
|
break;
|
|
262
|
-
|
|
267
|
+
}
|
|
268
|
+
case 1: {
|
|
263
269
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
264
270
|
break;
|
|
265
|
-
|
|
271
|
+
}
|
|
272
|
+
case 2: {
|
|
266
273
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
267
274
|
break;
|
|
268
|
-
|
|
275
|
+
}
|
|
276
|
+
case 3: {
|
|
269
277
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
270
278
|
break;
|
|
271
|
-
|
|
279
|
+
}
|
|
280
|
+
case 4: {
|
|
272
281
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
273
282
|
break;
|
|
274
|
-
|
|
283
|
+
}
|
|
284
|
+
case 5: {
|
|
275
285
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
276
286
|
break;
|
|
277
|
-
|
|
287
|
+
}
|
|
288
|
+
case 6: {
|
|
278
289
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
279
290
|
swap(this$static.ct, 8, 20, 12, 16, key);
|
|
280
291
|
swap(this$static.ct, 9, 21, 13, 17, key);
|
|
281
292
|
break;
|
|
282
|
-
|
|
293
|
+
}
|
|
294
|
+
case 7: {
|
|
283
295
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
284
296
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
285
297
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
286
298
|
break;
|
|
287
|
-
|
|
299
|
+
}
|
|
300
|
+
case 8: {
|
|
288
301
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
289
302
|
swap(this$static.ct, 2, 19, 4, 21, key);
|
|
290
303
|
swap(this$static.ct, 3, 16, 5, 22, key);
|
|
291
304
|
break;
|
|
292
|
-
|
|
305
|
+
}
|
|
306
|
+
case 9: {
|
|
293
307
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
294
308
|
swap(this$static.ct, 10, 18, 14, 22, key);
|
|
295
309
|
swap(this$static.ct, 11, 19, 15, 23, key);
|
|
296
310
|
break;
|
|
297
|
-
|
|
311
|
+
}
|
|
312
|
+
case 10: {
|
|
298
313
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
299
314
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
300
315
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
301
316
|
break;
|
|
302
|
-
|
|
317
|
+
}
|
|
318
|
+
case 11: {
|
|
303
319
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
304
320
|
swap(this$static.ct, 1, 20, 7, 18, key);
|
|
305
321
|
swap(this$static.ct, 0, 23, 6, 17, key);
|
|
322
|
+
}
|
|
306
323
|
}
|
|
307
324
|
}
|
|
308
325
|
function $rot(this$static, r) {
|
|
309
326
|
switch (r) {
|
|
310
|
-
case 0:
|
|
327
|
+
case 0: {
|
|
311
328
|
$move(this$static, 19);
|
|
312
329
|
$move(this$static, 28);
|
|
313
330
|
break;
|
|
314
|
-
|
|
331
|
+
}
|
|
332
|
+
case 1: {
|
|
315
333
|
$move(this$static, 21);
|
|
316
334
|
$move(this$static, 32);
|
|
317
335
|
break;
|
|
318
|
-
|
|
336
|
+
}
|
|
337
|
+
case 2: {
|
|
319
338
|
swap(this$static.ct, 0, 3, 1, 2, 1);
|
|
320
339
|
swap(this$static.ct, 8, 11, 9, 10, 1);
|
|
321
340
|
swap(this$static.ct, 4, 7, 5, 6, 1);
|
|
@@ -323,11 +342,13 @@ function $rot(this$static, r) {
|
|
|
323
342
|
swap(this$static.ct, 16, 19, 21, 22, 1);
|
|
324
343
|
swap(this$static.ct, 17, 18, 20, 23, 1);
|
|
325
344
|
break;
|
|
326
|
-
|
|
345
|
+
}
|
|
346
|
+
case 3: {
|
|
327
347
|
$move(this$static, 18);
|
|
328
348
|
$move(this$static, 29);
|
|
329
349
|
$move(this$static, 24);
|
|
330
350
|
$move(this$static, 35);
|
|
351
|
+
}
|
|
331
352
|
}
|
|
332
353
|
}
|
|
333
354
|
function $rotate(this$static, r) {
|
|
@@ -340,7 +361,8 @@ function $rotate(this$static, r) {
|
|
|
340
361
|
}
|
|
341
362
|
}
|
|
342
363
|
function $set_0(this$static, idx) {
|
|
343
|
-
let i_0
|
|
364
|
+
let i_0;
|
|
365
|
+
let r;
|
|
344
366
|
r = 8;
|
|
345
367
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
346
368
|
this$static.ct[i_0] = 0;
|
|
@@ -381,7 +403,8 @@ function Center1_2(ct) {
|
|
|
381
403
|
}
|
|
382
404
|
}
|
|
383
405
|
function createMoveTable() {
|
|
384
|
-
let i_0
|
|
406
|
+
let i_0;
|
|
407
|
+
let m_0;
|
|
385
408
|
const c = new Center1_0();
|
|
386
409
|
const d = new Center1_0();
|
|
387
410
|
for (i_0 = 0; i_0 < 15582; ++i_0) {
|
|
@@ -394,7 +417,14 @@ function createMoveTable() {
|
|
|
394
417
|
}
|
|
395
418
|
}
|
|
396
419
|
function createPrun() {
|
|
397
|
-
let check
|
|
420
|
+
let check;
|
|
421
|
+
let depth;
|
|
422
|
+
let done;
|
|
423
|
+
let i_0;
|
|
424
|
+
let idx;
|
|
425
|
+
let inv;
|
|
426
|
+
let m_0;
|
|
427
|
+
let select;
|
|
398
428
|
fill_0(csprun);
|
|
399
429
|
csprun[0] = 0;
|
|
400
430
|
depth = 0;
|
|
@@ -425,7 +455,9 @@ function createPrun() {
|
|
|
425
455
|
}
|
|
426
456
|
}
|
|
427
457
|
function getSolvedSym(cube) {
|
|
428
|
-
let check
|
|
458
|
+
let check;
|
|
459
|
+
let i_0;
|
|
460
|
+
let j;
|
|
429
461
|
const c = new Center1_2(cube.ct);
|
|
430
462
|
for (j = 0; j < 48; ++j) {
|
|
431
463
|
check = true;
|
|
@@ -446,7 +478,9 @@ function getSolvedSym(cube) {
|
|
|
446
478
|
return -1;
|
|
447
479
|
}
|
|
448
480
|
function initSym_0() {
|
|
449
|
-
let i_0
|
|
481
|
+
let i_0;
|
|
482
|
+
let j;
|
|
483
|
+
let k_0;
|
|
450
484
|
const c = new Center1_0();
|
|
451
485
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
452
486
|
c.ct[i_0] = i_0;
|
|
@@ -503,7 +537,10 @@ function initSym_0() {
|
|
|
503
537
|
}
|
|
504
538
|
}
|
|
505
539
|
function initSym2Raw() {
|
|
506
|
-
let count
|
|
540
|
+
let count;
|
|
541
|
+
let i_0;
|
|
542
|
+
let idx;
|
|
543
|
+
let j;
|
|
507
544
|
const c = new Center1_0();
|
|
508
545
|
const occ = createArray(22984);
|
|
509
546
|
for (i_0 = 0; i_0 < 22984; i_0++) {
|
|
@@ -590,7 +627,9 @@ function $clinit_Center2() {
|
|
|
590
627
|
];
|
|
591
628
|
}
|
|
592
629
|
function $getct(this$static) {
|
|
593
|
-
let i_0
|
|
630
|
+
let i_0;
|
|
631
|
+
let idx;
|
|
632
|
+
let r;
|
|
594
633
|
idx = 0;
|
|
595
634
|
r = 8;
|
|
596
635
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -599,7 +638,9 @@ function $getct(this$static) {
|
|
|
599
638
|
return idx;
|
|
600
639
|
}
|
|
601
640
|
function $getrl(this$static) {
|
|
602
|
-
let i_0
|
|
641
|
+
let i_0;
|
|
642
|
+
let idx;
|
|
643
|
+
let r;
|
|
603
644
|
idx = 0;
|
|
604
645
|
r = 4;
|
|
605
646
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -612,72 +653,87 @@ function $move_0(this$static, m_0) {
|
|
|
612
653
|
const key = m_0 % 3;
|
|
613
654
|
m_0 = ~~(m_0 / 3);
|
|
614
655
|
switch (m_0) {
|
|
615
|
-
case 0:
|
|
656
|
+
case 0: {
|
|
616
657
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
617
658
|
break;
|
|
618
|
-
|
|
659
|
+
}
|
|
660
|
+
case 1: {
|
|
619
661
|
swap(this$static.rl, 0, 1, 2, 3, key);
|
|
620
662
|
break;
|
|
621
|
-
|
|
663
|
+
}
|
|
664
|
+
case 2: {
|
|
622
665
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
623
666
|
break;
|
|
624
|
-
|
|
667
|
+
}
|
|
668
|
+
case 3: {
|
|
625
669
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
626
670
|
break;
|
|
627
|
-
|
|
671
|
+
}
|
|
672
|
+
case 4: {
|
|
628
673
|
swap(this$static.rl, 4, 5, 6, 7, key);
|
|
629
674
|
break;
|
|
630
|
-
|
|
675
|
+
}
|
|
676
|
+
case 5: {
|
|
631
677
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
632
678
|
break;
|
|
633
|
-
|
|
679
|
+
}
|
|
680
|
+
case 6: {
|
|
634
681
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
635
682
|
swap(this$static.rl, 0, 5, 4, 1, key);
|
|
636
683
|
swap(this$static.ct, 8, 9, 12, 13, key);
|
|
637
684
|
break;
|
|
638
|
-
|
|
685
|
+
}
|
|
686
|
+
case 7: {
|
|
639
687
|
swap(this$static.rl, 0, 1, 2, 3, key);
|
|
640
688
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
641
689
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
642
690
|
break;
|
|
643
|
-
|
|
691
|
+
}
|
|
692
|
+
case 8: {
|
|
644
693
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
645
694
|
swap(this$static.rl, 0, 3, 6, 5, key);
|
|
646
695
|
swap(this$static.ct, 3, 2, 5, 4, key);
|
|
647
696
|
break;
|
|
648
|
-
|
|
697
|
+
}
|
|
698
|
+
case 9: {
|
|
649
699
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
650
700
|
swap(this$static.rl, 3, 2, 7, 6, key);
|
|
651
701
|
swap(this$static.ct, 11, 10, 15, 14, key);
|
|
652
702
|
break;
|
|
653
|
-
|
|
703
|
+
}
|
|
704
|
+
case 10: {
|
|
654
705
|
swap(this$static.rl, 4, 5, 6, 7, key);
|
|
655
706
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
656
707
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
657
708
|
break;
|
|
658
|
-
|
|
709
|
+
}
|
|
710
|
+
case 11: {
|
|
659
711
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
660
712
|
swap(this$static.rl, 1, 4, 7, 2, key);
|
|
661
713
|
swap(this$static.ct, 1, 0, 7, 6, key);
|
|
714
|
+
}
|
|
662
715
|
}
|
|
663
716
|
}
|
|
664
717
|
function $rot_0(this$static, r) {
|
|
665
718
|
switch (r) {
|
|
666
|
-
case 0:
|
|
719
|
+
case 0: {
|
|
667
720
|
$move_0(this$static, 19);
|
|
668
721
|
$move_0(this$static, 28);
|
|
669
722
|
break;
|
|
670
|
-
|
|
723
|
+
}
|
|
724
|
+
case 1: {
|
|
671
725
|
$move_0(this$static, 21);
|
|
672
726
|
$move_0(this$static, 32);
|
|
673
727
|
break;
|
|
674
|
-
|
|
728
|
+
}
|
|
729
|
+
case 2: {
|
|
675
730
|
swap(this$static.ct, 0, 3, 1, 2, 1);
|
|
676
731
|
swap(this$static.ct, 8, 11, 9, 10, 1);
|
|
677
732
|
swap(this$static.ct, 4, 7, 5, 6, 1);
|
|
678
733
|
swap(this$static.ct, 12, 15, 13, 14, 1);
|
|
679
734
|
swap(this$static.rl, 0, 3, 5, 6, 1);
|
|
680
735
|
swap(this$static.rl, 1, 2, 4, 7, 1);
|
|
736
|
+
}
|
|
681
737
|
}
|
|
682
738
|
}
|
|
683
739
|
function $set_2(this$static, c, edgeParity) {
|
|
@@ -691,7 +747,8 @@ function $set_2(this$static, c, edgeParity) {
|
|
|
691
747
|
this$static.parity = edgeParity;
|
|
692
748
|
}
|
|
693
749
|
function $setct(this$static, idx) {
|
|
694
|
-
let i_0
|
|
750
|
+
let i_0;
|
|
751
|
+
let r;
|
|
695
752
|
r = 8;
|
|
696
753
|
this$static.ct[15] = 0;
|
|
697
754
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -704,7 +761,8 @@ function $setct(this$static, idx) {
|
|
|
704
761
|
}
|
|
705
762
|
}
|
|
706
763
|
function $setrl(this$static, idx) {
|
|
707
|
-
let i_0
|
|
764
|
+
let i_0;
|
|
765
|
+
let r;
|
|
708
766
|
this$static.parity = idx & 1;
|
|
709
767
|
idx >>>= 1;
|
|
710
768
|
r = 4;
|
|
@@ -723,7 +781,16 @@ function Center2_0() {
|
|
|
723
781
|
this.ct = createArray(16);
|
|
724
782
|
}
|
|
725
783
|
function init_3() {
|
|
726
|
-
let ct
|
|
784
|
+
let ct;
|
|
785
|
+
let ctx;
|
|
786
|
+
let depth;
|
|
787
|
+
let done;
|
|
788
|
+
let i_0;
|
|
789
|
+
let idx;
|
|
790
|
+
let j;
|
|
791
|
+
let m_0;
|
|
792
|
+
let rl;
|
|
793
|
+
let rlx;
|
|
727
794
|
const c = new Center2_0();
|
|
728
795
|
for (i_0 = 0; i_0 < 70; ++i_0) {
|
|
729
796
|
for (m_0 = 0; m_0 < 28; ++m_0) {
|
|
@@ -811,7 +878,10 @@ function $clinit_Center3() {
|
|
|
811
878
|
std2rl = createArray(70);
|
|
812
879
|
}
|
|
813
880
|
function $getct_0(this$static) {
|
|
814
|
-
let i_0
|
|
881
|
+
let i_0;
|
|
882
|
+
let idx;
|
|
883
|
+
let idxrl;
|
|
884
|
+
let r;
|
|
815
885
|
idx = 0;
|
|
816
886
|
r = 4;
|
|
817
887
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -836,59 +906,71 @@ function $move_1(this$static, i_0) {
|
|
|
836
906
|
switch (i_0) {
|
|
837
907
|
case 0:
|
|
838
908
|
case 1:
|
|
839
|
-
case 2:
|
|
909
|
+
case 2: {
|
|
840
910
|
swap(this$static.ud, 0, 1, 2, 3, i_0 % 3);
|
|
841
911
|
break;
|
|
842
|
-
|
|
912
|
+
}
|
|
913
|
+
case 3: {
|
|
843
914
|
swap(this$static.rl, 0, 1, 2, 3, 1);
|
|
844
915
|
break;
|
|
916
|
+
}
|
|
845
917
|
case 4:
|
|
846
918
|
case 5:
|
|
847
|
-
case 6:
|
|
919
|
+
case 6: {
|
|
848
920
|
swap(this$static.fb, 0, 1, 2, 3, (i_0 - 1) % 3);
|
|
849
921
|
break;
|
|
922
|
+
}
|
|
850
923
|
case 7:
|
|
851
924
|
case 8:
|
|
852
|
-
case 9:
|
|
925
|
+
case 9: {
|
|
853
926
|
swap(this$static.ud, 4, 5, 6, 7, (i_0 - 1) % 3);
|
|
854
927
|
break;
|
|
855
|
-
|
|
928
|
+
}
|
|
929
|
+
case 10: {
|
|
856
930
|
swap(this$static.rl, 4, 5, 6, 7, 1);
|
|
857
931
|
break;
|
|
932
|
+
}
|
|
858
933
|
case 11:
|
|
859
934
|
case 12:
|
|
860
|
-
case 13:
|
|
935
|
+
case 13: {
|
|
861
936
|
swap(this$static.fb, 4, 5, 6, 7, (i_0 + 1) % 3);
|
|
862
937
|
break;
|
|
863
|
-
|
|
938
|
+
}
|
|
939
|
+
case 14: {
|
|
864
940
|
swap(this$static.ud, 0, 1, 2, 3, 1);
|
|
865
941
|
swap(this$static.rl, 0, 5, 4, 1, 1);
|
|
866
942
|
swap(this$static.fb, 0, 5, 4, 1, 1);
|
|
867
943
|
break;
|
|
868
|
-
|
|
944
|
+
}
|
|
945
|
+
case 15: {
|
|
869
946
|
swap(this$static.rl, 0, 1, 2, 3, 1);
|
|
870
947
|
swap(this$static.fb, 1, 4, 7, 2, 1);
|
|
871
948
|
swap(this$static.ud, 1, 6, 5, 2, 1);
|
|
872
949
|
break;
|
|
873
|
-
|
|
950
|
+
}
|
|
951
|
+
case 16: {
|
|
874
952
|
swap(this$static.fb, 0, 1, 2, 3, 1);
|
|
875
953
|
swap(this$static.ud, 3, 2, 5, 4, 1);
|
|
876
954
|
swap(this$static.rl, 0, 3, 6, 5, 1);
|
|
877
955
|
break;
|
|
878
|
-
|
|
956
|
+
}
|
|
957
|
+
case 17: {
|
|
879
958
|
swap(this$static.ud, 4, 5, 6, 7, 1);
|
|
880
959
|
swap(this$static.rl, 3, 2, 7, 6, 1);
|
|
881
960
|
swap(this$static.fb, 3, 2, 7, 6, 1);
|
|
882
961
|
break;
|
|
883
|
-
|
|
962
|
+
}
|
|
963
|
+
case 18: {
|
|
884
964
|
swap(this$static.rl, 4, 5, 6, 7, 1);
|
|
885
965
|
swap(this$static.fb, 0, 3, 6, 5, 1);
|
|
886
966
|
swap(this$static.ud, 0, 3, 4, 7, 1);
|
|
887
967
|
break;
|
|
888
|
-
|
|
968
|
+
}
|
|
969
|
+
case 19: {
|
|
889
970
|
swap(this$static.fb, 4, 5, 6, 7, 1);
|
|
890
971
|
swap(this$static.ud, 0, 7, 6, 1, 1);
|
|
891
972
|
swap(this$static.rl, 1, 4, 7, 2, 1);
|
|
973
|
+
}
|
|
892
974
|
}
|
|
893
975
|
}
|
|
894
976
|
function $set_3(this$static, c, eXc_parity) {
|
|
@@ -902,7 +984,10 @@ function $set_3(this$static, c, eXc_parity) {
|
|
|
902
984
|
this$static.parity = parity ^ eXc_parity;
|
|
903
985
|
}
|
|
904
986
|
function $setct_0(this$static, idx) {
|
|
905
|
-
let i_0
|
|
987
|
+
let i_0;
|
|
988
|
+
let idxfb;
|
|
989
|
+
let idxrl;
|
|
990
|
+
let r;
|
|
906
991
|
this$static.parity = idx & 1;
|
|
907
992
|
idx >>>= 1;
|
|
908
993
|
idxrl = rl2std[idx % 12];
|
|
@@ -944,7 +1029,10 @@ function Center3_0() {
|
|
|
944
1029
|
this.fb = createArray(8);
|
|
945
1030
|
}
|
|
946
1031
|
function init_4() {
|
|
947
|
-
let depth
|
|
1032
|
+
let depth;
|
|
1033
|
+
let done;
|
|
1034
|
+
let i_0;
|
|
1035
|
+
let m_0;
|
|
948
1036
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
949
1037
|
std2rl[rl2std[i_0]] = i_0;
|
|
950
1038
|
}
|
|
@@ -992,53 +1080,65 @@ function $move_2(this$static, m_0) {
|
|
|
992
1080
|
const key = m_0 % 3;
|
|
993
1081
|
m_0 = ~~(m_0 / 3);
|
|
994
1082
|
switch (m_0) {
|
|
995
|
-
case 0:
|
|
1083
|
+
case 0: {
|
|
996
1084
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
997
1085
|
break;
|
|
998
|
-
|
|
1086
|
+
}
|
|
1087
|
+
case 1: {
|
|
999
1088
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
1000
1089
|
break;
|
|
1001
|
-
|
|
1090
|
+
}
|
|
1091
|
+
case 2: {
|
|
1002
1092
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
1003
1093
|
break;
|
|
1004
|
-
|
|
1094
|
+
}
|
|
1095
|
+
case 3: {
|
|
1005
1096
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
1006
1097
|
break;
|
|
1007
|
-
|
|
1098
|
+
}
|
|
1099
|
+
case 4: {
|
|
1008
1100
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
1009
1101
|
break;
|
|
1010
|
-
|
|
1102
|
+
}
|
|
1103
|
+
case 5: {
|
|
1011
1104
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
1012
1105
|
break;
|
|
1013
|
-
|
|
1106
|
+
}
|
|
1107
|
+
case 6: {
|
|
1014
1108
|
swap(this$static.ct, 0, 1, 2, 3, key);
|
|
1015
1109
|
swap(this$static.ct, 8, 20, 12, 16, key);
|
|
1016
1110
|
swap(this$static.ct, 9, 21, 13, 17, key);
|
|
1017
1111
|
break;
|
|
1018
|
-
|
|
1112
|
+
}
|
|
1113
|
+
case 7: {
|
|
1019
1114
|
swap(this$static.ct, 16, 17, 18, 19, key);
|
|
1020
1115
|
swap(this$static.ct, 1, 15, 5, 9, key);
|
|
1021
1116
|
swap(this$static.ct, 2, 12, 6, 10, key);
|
|
1022
1117
|
break;
|
|
1023
|
-
|
|
1118
|
+
}
|
|
1119
|
+
case 8: {
|
|
1024
1120
|
swap(this$static.ct, 8, 9, 10, 11, key);
|
|
1025
1121
|
swap(this$static.ct, 2, 19, 4, 21, key);
|
|
1026
1122
|
swap(this$static.ct, 3, 16, 5, 22, key);
|
|
1027
1123
|
break;
|
|
1028
|
-
|
|
1124
|
+
}
|
|
1125
|
+
case 9: {
|
|
1029
1126
|
swap(this$static.ct, 4, 5, 6, 7, key);
|
|
1030
1127
|
swap(this$static.ct, 10, 18, 14, 22, key);
|
|
1031
1128
|
swap(this$static.ct, 11, 19, 15, 23, key);
|
|
1032
1129
|
break;
|
|
1033
|
-
|
|
1130
|
+
}
|
|
1131
|
+
case 10: {
|
|
1034
1132
|
swap(this$static.ct, 20, 21, 22, 23, key);
|
|
1035
1133
|
swap(this$static.ct, 0, 8, 4, 14, key);
|
|
1036
1134
|
swap(this$static.ct, 3, 11, 7, 13, key);
|
|
1037
1135
|
break;
|
|
1038
|
-
|
|
1136
|
+
}
|
|
1137
|
+
case 11: {
|
|
1039
1138
|
swap(this$static.ct, 12, 13, 14, 15, key);
|
|
1040
1139
|
swap(this$static.ct, 1, 20, 7, 18, key);
|
|
1041
1140
|
swap(this$static.ct, 0, 23, 6, 17, key);
|
|
1141
|
+
}
|
|
1042
1142
|
}
|
|
1043
1143
|
}
|
|
1044
1144
|
function CenterCube_0() {
|
|
@@ -1049,7 +1149,9 @@ function CenterCube_0() {
|
|
|
1049
1149
|
}
|
|
1050
1150
|
}
|
|
1051
1151
|
function CenterCube_1(randomUIntBelow) {
|
|
1052
|
-
let i_0
|
|
1152
|
+
let i_0;
|
|
1153
|
+
let m_0;
|
|
1154
|
+
let t;
|
|
1053
1155
|
CenterCube_0.call(this);
|
|
1054
1156
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1055
1157
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1087,7 +1189,8 @@ function $move_3(this$static, idx) {
|
|
|
1087
1189
|
$copy_2(this$static, this$static.temps);
|
|
1088
1190
|
}
|
|
1089
1191
|
function $setTwist_0(this$static, idx) {
|
|
1090
|
-
let i_0
|
|
1192
|
+
let i_0;
|
|
1193
|
+
let twst;
|
|
1091
1194
|
twst = 0;
|
|
1092
1195
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
1093
1196
|
twst += this$static.co[i_0] = idx % 3;
|
|
@@ -1096,7 +1199,10 @@ function $setTwist_0(this$static, idx) {
|
|
|
1096
1199
|
this$static.co[7] = (15 - twst) % 3;
|
|
1097
1200
|
}
|
|
1098
1201
|
function CornMult_0(a, b, prod) {
|
|
1099
|
-
let corn
|
|
1202
|
+
let corn;
|
|
1203
|
+
let ori;
|
|
1204
|
+
let oriA;
|
|
1205
|
+
let oriB;
|
|
1100
1206
|
for (corn = 0; corn < 8; ++corn) {
|
|
1101
1207
|
prod.cp[corn] = a.cp[b.cp[corn]];
|
|
1102
1208
|
oriA = a.co[b.cp[corn]];
|
|
@@ -1120,7 +1226,8 @@ function CornerCube_2(randomUIntBelow) {
|
|
|
1120
1226
|
CornerCube_1.call(this, randomUIntBelow(40320), randomUIntBelow(2187));
|
|
1121
1227
|
}
|
|
1122
1228
|
function initMove_0() {
|
|
1123
|
-
let a
|
|
1229
|
+
let a;
|
|
1230
|
+
let p_0;
|
|
1124
1231
|
moveCube_0[0] = new CornerCube_1(15120, 0);
|
|
1125
1232
|
moveCube_0[3] = new CornerCube_1(21021, 1494);
|
|
1126
1233
|
moveCube_0[6] = new CornerCube_1(8064, 1236);
|
|
@@ -1182,7 +1289,11 @@ function $circlex(this$static, a, b, c, d) {
|
|
|
1182
1289
|
this$static.edge[a] = temp;
|
|
1183
1290
|
}
|
|
1184
1291
|
function $get_2(this$static, end) {
|
|
1185
|
-
let i_0
|
|
1292
|
+
let i_0;
|
|
1293
|
+
let idx;
|
|
1294
|
+
let v;
|
|
1295
|
+
let valh;
|
|
1296
|
+
let vall;
|
|
1186
1297
|
this$static.isStd || $std(this$static);
|
|
1187
1298
|
idx = 0;
|
|
1188
1299
|
vall = 1985229328;
|
|
@@ -1214,107 +1325,128 @@ function $getsym_0(this$static) {
|
|
|
1214
1325
|
function $move_4(this$static, i_0) {
|
|
1215
1326
|
this$static.isStd = false;
|
|
1216
1327
|
switch (i_0) {
|
|
1217
|
-
case 0:
|
|
1328
|
+
case 0: {
|
|
1218
1329
|
circle(this$static.edge, 0, 4, 1, 5);
|
|
1219
1330
|
circle(this$static.edgeo, 0, 4, 1, 5);
|
|
1220
1331
|
break;
|
|
1221
|
-
|
|
1332
|
+
}
|
|
1333
|
+
case 1: {
|
|
1222
1334
|
$swap_0(this$static.edge, 0, 4, 1, 5);
|
|
1223
1335
|
$swap_0(this$static.edgeo, 0, 4, 1, 5);
|
|
1224
1336
|
break;
|
|
1225
|
-
|
|
1337
|
+
}
|
|
1338
|
+
case 2: {
|
|
1226
1339
|
circle(this$static.edge, 0, 5, 1, 4);
|
|
1227
1340
|
circle(this$static.edgeo, 0, 5, 1, 4);
|
|
1228
1341
|
break;
|
|
1229
|
-
|
|
1342
|
+
}
|
|
1343
|
+
case 3: {
|
|
1230
1344
|
$swap_0(this$static.edge, 5, 10, 6, 11);
|
|
1231
1345
|
$swap_0(this$static.edgeo, 5, 10, 6, 11);
|
|
1232
1346
|
break;
|
|
1233
|
-
|
|
1347
|
+
}
|
|
1348
|
+
case 4: {
|
|
1234
1349
|
circle(this$static.edge, 0, 11, 3, 8);
|
|
1235
1350
|
circle(this$static.edgeo, 0, 11, 3, 8);
|
|
1236
1351
|
break;
|
|
1237
|
-
|
|
1352
|
+
}
|
|
1353
|
+
case 5: {
|
|
1238
1354
|
$swap_0(this$static.edge, 0, 11, 3, 8);
|
|
1239
1355
|
$swap_0(this$static.edgeo, 0, 11, 3, 8);
|
|
1240
1356
|
break;
|
|
1241
|
-
|
|
1357
|
+
}
|
|
1358
|
+
case 6: {
|
|
1242
1359
|
circle(this$static.edge, 0, 8, 3, 11);
|
|
1243
1360
|
circle(this$static.edgeo, 0, 8, 3, 11);
|
|
1244
1361
|
break;
|
|
1245
|
-
|
|
1362
|
+
}
|
|
1363
|
+
case 7: {
|
|
1246
1364
|
circle(this$static.edge, 2, 7, 3, 6);
|
|
1247
1365
|
circle(this$static.edgeo, 2, 7, 3, 6);
|
|
1248
1366
|
break;
|
|
1249
|
-
|
|
1367
|
+
}
|
|
1368
|
+
case 8: {
|
|
1250
1369
|
$swap_0(this$static.edge, 2, 7, 3, 6);
|
|
1251
1370
|
$swap_0(this$static.edgeo, 2, 7, 3, 6);
|
|
1252
1371
|
break;
|
|
1253
|
-
|
|
1372
|
+
}
|
|
1373
|
+
case 9: {
|
|
1254
1374
|
circle(this$static.edge, 2, 6, 3, 7);
|
|
1255
1375
|
circle(this$static.edgeo, 2, 6, 3, 7);
|
|
1256
1376
|
break;
|
|
1257
|
-
|
|
1377
|
+
}
|
|
1378
|
+
case 10: {
|
|
1258
1379
|
$swap_0(this$static.edge, 4, 8, 7, 9);
|
|
1259
1380
|
$swap_0(this$static.edgeo, 4, 8, 7, 9);
|
|
1260
1381
|
break;
|
|
1261
|
-
|
|
1382
|
+
}
|
|
1383
|
+
case 11: {
|
|
1262
1384
|
circle(this$static.edge, 1, 9, 2, 10);
|
|
1263
1385
|
circle(this$static.edgeo, 1, 9, 2, 10);
|
|
1264
1386
|
break;
|
|
1265
|
-
|
|
1387
|
+
}
|
|
1388
|
+
case 12: {
|
|
1266
1389
|
$swap_0(this$static.edge, 1, 9, 2, 10);
|
|
1267
1390
|
$swap_0(this$static.edgeo, 1, 9, 2, 10);
|
|
1268
1391
|
break;
|
|
1269
|
-
|
|
1392
|
+
}
|
|
1393
|
+
case 13: {
|
|
1270
1394
|
circle(this$static.edge, 1, 10, 2, 9);
|
|
1271
1395
|
circle(this$static.edgeo, 1, 10, 2, 9);
|
|
1272
1396
|
break;
|
|
1273
|
-
|
|
1397
|
+
}
|
|
1398
|
+
case 14: {
|
|
1274
1399
|
$swap_0(this$static.edge, 0, 4, 1, 5);
|
|
1275
1400
|
$swap_0(this$static.edgeo, 0, 4, 1, 5);
|
|
1276
1401
|
circle(this$static.edge, 9, 11);
|
|
1277
1402
|
circle(this$static.edgeo, 8, 10);
|
|
1278
1403
|
break;
|
|
1279
|
-
|
|
1404
|
+
}
|
|
1405
|
+
case 15: {
|
|
1280
1406
|
$swap_0(this$static.edge, 5, 10, 6, 11);
|
|
1281
1407
|
$swap_0(this$static.edgeo, 5, 10, 6, 11);
|
|
1282
1408
|
circle(this$static.edge, 1, 3);
|
|
1283
1409
|
circle(this$static.edgeo, 0, 2);
|
|
1284
1410
|
break;
|
|
1285
|
-
|
|
1411
|
+
}
|
|
1412
|
+
case 16: {
|
|
1286
1413
|
$swap_0(this$static.edge, 0, 11, 3, 8);
|
|
1287
1414
|
$swap_0(this$static.edgeo, 0, 11, 3, 8);
|
|
1288
1415
|
circle(this$static.edge, 5, 7);
|
|
1289
1416
|
circle(this$static.edgeo, 4, 6);
|
|
1290
1417
|
break;
|
|
1291
|
-
|
|
1418
|
+
}
|
|
1419
|
+
case 17: {
|
|
1292
1420
|
$swap_0(this$static.edge, 2, 7, 3, 6);
|
|
1293
1421
|
$swap_0(this$static.edgeo, 2, 7, 3, 6);
|
|
1294
1422
|
circle(this$static.edge, 8, 10);
|
|
1295
1423
|
circle(this$static.edgeo, 9, 11);
|
|
1296
1424
|
break;
|
|
1297
|
-
|
|
1425
|
+
}
|
|
1426
|
+
case 18: {
|
|
1298
1427
|
$swap_0(this$static.edge, 4, 8, 7, 9);
|
|
1299
1428
|
$swap_0(this$static.edgeo, 4, 8, 7, 9);
|
|
1300
1429
|
circle(this$static.edge, 0, 2);
|
|
1301
1430
|
circle(this$static.edgeo, 1, 3);
|
|
1302
1431
|
break;
|
|
1303
|
-
|
|
1432
|
+
}
|
|
1433
|
+
case 19: {
|
|
1304
1434
|
$swap_0(this$static.edge, 1, 9, 2, 10);
|
|
1305
1435
|
$swap_0(this$static.edgeo, 1, 9, 2, 10);
|
|
1306
1436
|
circle(this$static.edge, 4, 6);
|
|
1307
1437
|
circle(this$static.edgeo, 5, 7);
|
|
1438
|
+
}
|
|
1308
1439
|
}
|
|
1309
1440
|
}
|
|
1310
1441
|
function $rot_1(this$static, r) {
|
|
1311
1442
|
this$static.isStd = false;
|
|
1312
1443
|
switch (r) {
|
|
1313
|
-
case 0:
|
|
1444
|
+
case 0: {
|
|
1314
1445
|
$move_4(this$static, 14);
|
|
1315
1446
|
$move_4(this$static, 17);
|
|
1316
1447
|
break;
|
|
1317
|
-
|
|
1448
|
+
}
|
|
1449
|
+
case 1: {
|
|
1318
1450
|
$circlex(this$static, 11, 5, 10, 6);
|
|
1319
1451
|
$circlex(this$static, 5, 10, 6, 11);
|
|
1320
1452
|
$circlex(this$static, 1, 2, 3, 0);
|
|
@@ -1322,7 +1454,8 @@ function $rot_1(this$static, r) {
|
|
|
1322
1454
|
$circlex(this$static, 8, 4, 9, 7);
|
|
1323
1455
|
$circlex(this$static, 0, 1, 2, 3);
|
|
1324
1456
|
break;
|
|
1325
|
-
|
|
1457
|
+
}
|
|
1458
|
+
case 2: {
|
|
1326
1459
|
$swapx(this$static, 4, 5);
|
|
1327
1460
|
$swapx(this$static, 5, 4);
|
|
1328
1461
|
$swapx(this$static, 11, 8);
|
|
@@ -1335,6 +1468,7 @@ function $rot_1(this$static, r) {
|
|
|
1335
1468
|
$swapx(this$static, 0, 0);
|
|
1336
1469
|
$swapx(this$static, 3, 3);
|
|
1337
1470
|
$swapx(this$static, 2, 2);
|
|
1471
|
+
}
|
|
1338
1472
|
}
|
|
1339
1473
|
}
|
|
1340
1474
|
function $rotate_0(this$static, r) {
|
|
@@ -1346,7 +1480,12 @@ function $rotate_0(this$static, r) {
|
|
|
1346
1480
|
r !== 0 && $rot_1(this$static, 0);
|
|
1347
1481
|
}
|
|
1348
1482
|
function $set_4(this$static, idx) {
|
|
1349
|
-
let i_0
|
|
1483
|
+
let i_0;
|
|
1484
|
+
let p_0;
|
|
1485
|
+
let parity;
|
|
1486
|
+
let v;
|
|
1487
|
+
let vall;
|
|
1488
|
+
let valh;
|
|
1350
1489
|
vall = 1985229328;
|
|
1351
1490
|
valh = 47768;
|
|
1352
1491
|
parity = 0;
|
|
@@ -1388,7 +1527,10 @@ function $set_5(this$static, e) {
|
|
|
1388
1527
|
this$static.isStd = e.isStd;
|
|
1389
1528
|
}
|
|
1390
1529
|
function $set_6(this$static, c) {
|
|
1391
|
-
let i_0
|
|
1530
|
+
let i_0;
|
|
1531
|
+
let parity;
|
|
1532
|
+
let s;
|
|
1533
|
+
let t;
|
|
1392
1534
|
this$static.temp === null && (this$static.temp = createArray(12));
|
|
1393
1535
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
1394
1536
|
this$static.temp[i_0] = i_0;
|
|
@@ -1442,7 +1584,28 @@ function Edge3_0() {
|
|
|
1442
1584
|
this.edgeo = createArray(12);
|
|
1443
1585
|
}
|
|
1444
1586
|
function createPrun_0() {
|
|
1445
|
-
let chk
|
|
1587
|
+
let chk;
|
|
1588
|
+
let cord1;
|
|
1589
|
+
let cord1x;
|
|
1590
|
+
let cord2;
|
|
1591
|
+
let cord2x;
|
|
1592
|
+
let dep1m3;
|
|
1593
|
+
let depm3;
|
|
1594
|
+
let depth;
|
|
1595
|
+
let end;
|
|
1596
|
+
let find_0;
|
|
1597
|
+
let i_0;
|
|
1598
|
+
let i_;
|
|
1599
|
+
let idx;
|
|
1600
|
+
let idxx;
|
|
1601
|
+
let inv;
|
|
1602
|
+
let j;
|
|
1603
|
+
let m_0;
|
|
1604
|
+
let symState;
|
|
1605
|
+
let symcord1;
|
|
1606
|
+
let symcord1x;
|
|
1607
|
+
let symx;
|
|
1608
|
+
let val;
|
|
1446
1609
|
const e = new Edge3_0();
|
|
1447
1610
|
const f = new Edge3_0();
|
|
1448
1611
|
const g = new Edge3_0();
|
|
@@ -1516,7 +1679,11 @@ function getPruning_0(table, index) {
|
|
|
1516
1679
|
return table[index >> 4] >> ((index & 15) << 1) & 3;
|
|
1517
1680
|
}
|
|
1518
1681
|
function getmvrot(ep, mrIdx, end) {
|
|
1519
|
-
let i_0
|
|
1682
|
+
let i_0;
|
|
1683
|
+
let idx;
|
|
1684
|
+
let v;
|
|
1685
|
+
let valh;
|
|
1686
|
+
let vall;
|
|
1520
1687
|
const movo = mvroto[mrIdx];
|
|
1521
1688
|
const mov = mvrot[mrIdx];
|
|
1522
1689
|
idx = 0;
|
|
@@ -1537,7 +1704,17 @@ function getmvrot(ep, mrIdx, end) {
|
|
|
1537
1704
|
return idx;
|
|
1538
1705
|
}
|
|
1539
1706
|
function getprun(edge) {
|
|
1540
|
-
let cord1
|
|
1707
|
+
let cord1;
|
|
1708
|
+
let cord1x;
|
|
1709
|
+
let cord2;
|
|
1710
|
+
let cord2x;
|
|
1711
|
+
let depm3;
|
|
1712
|
+
let depth;
|
|
1713
|
+
let idx;
|
|
1714
|
+
let m_0;
|
|
1715
|
+
let symcord1;
|
|
1716
|
+
let symcord1x;
|
|
1717
|
+
let symx;
|
|
1541
1718
|
const e = new Edge3_0();
|
|
1542
1719
|
depth = 0;
|
|
1543
1720
|
depm3 = getPruning_0(eprun, edge);
|
|
@@ -1574,7 +1751,9 @@ function getprun_0(edge, prun) {
|
|
|
1574
1751
|
return (1227133513 << depm3 >> prun & 3) + prun - 1;
|
|
1575
1752
|
}
|
|
1576
1753
|
function initMvrot() {
|
|
1577
|
-
let i_0
|
|
1754
|
+
let i_0;
|
|
1755
|
+
let m_0;
|
|
1756
|
+
let r;
|
|
1578
1757
|
const e = new Edge3_0();
|
|
1579
1758
|
for (m_0 = 0; m_0 < 20; ++m_0) {
|
|
1580
1759
|
for (r = 0; r < 8; ++r) {
|
|
@@ -1592,7 +1771,10 @@ function initMvrot() {
|
|
|
1592
1771
|
}
|
|
1593
1772
|
}
|
|
1594
1773
|
function initRaw2Sym() {
|
|
1595
|
-
let count
|
|
1774
|
+
let count;
|
|
1775
|
+
let i_0;
|
|
1776
|
+
let idx;
|
|
1777
|
+
let j;
|
|
1596
1778
|
const e = new Edge3_0();
|
|
1597
1779
|
const occ = createArray(1485);
|
|
1598
1780
|
for (i_0 = 0; i_0 < 1485; i_0++) {
|
|
@@ -1641,7 +1823,9 @@ function $clinit_EdgeCube() {
|
|
|
1641
1823
|
ran$clinit_EdgeCube = true;
|
|
1642
1824
|
}
|
|
1643
1825
|
function $checkEdge(this$static) {
|
|
1644
|
-
let ck
|
|
1826
|
+
let ck;
|
|
1827
|
+
let i_0;
|
|
1828
|
+
let parity;
|
|
1645
1829
|
ck = 0;
|
|
1646
1830
|
parity = false;
|
|
1647
1831
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
@@ -1661,59 +1845,71 @@ function $move_5(this$static, m_0) {
|
|
|
1661
1845
|
const key = m_0 % 3;
|
|
1662
1846
|
m_0 = ~~(m_0 / 3);
|
|
1663
1847
|
switch (m_0) {
|
|
1664
|
-
case 0:
|
|
1848
|
+
case 0: {
|
|
1665
1849
|
swap(this$static.ep, 0, 1, 2, 3, key);
|
|
1666
1850
|
swap(this$static.ep, 12, 13, 14, 15, key);
|
|
1667
1851
|
break;
|
|
1668
|
-
|
|
1852
|
+
}
|
|
1853
|
+
case 1: {
|
|
1669
1854
|
swap(this$static.ep, 11, 15, 10, 19, key);
|
|
1670
1855
|
swap(this$static.ep, 23, 3, 22, 7, key);
|
|
1671
1856
|
break;
|
|
1672
|
-
|
|
1857
|
+
}
|
|
1858
|
+
case 2: {
|
|
1673
1859
|
swap(this$static.ep, 0, 11, 6, 8, key);
|
|
1674
1860
|
swap(this$static.ep, 12, 23, 18, 20, key);
|
|
1675
1861
|
break;
|
|
1676
|
-
|
|
1862
|
+
}
|
|
1863
|
+
case 3: {
|
|
1677
1864
|
swap(this$static.ep, 4, 5, 6, 7, key);
|
|
1678
1865
|
swap(this$static.ep, 16, 17, 18, 19, key);
|
|
1679
1866
|
break;
|
|
1680
|
-
|
|
1867
|
+
}
|
|
1868
|
+
case 4: {
|
|
1681
1869
|
swap(this$static.ep, 1, 20, 5, 21, key);
|
|
1682
1870
|
swap(this$static.ep, 13, 8, 17, 9, key);
|
|
1683
1871
|
break;
|
|
1684
|
-
|
|
1872
|
+
}
|
|
1873
|
+
case 5: {
|
|
1685
1874
|
swap(this$static.ep, 2, 9, 4, 10, key);
|
|
1686
1875
|
swap(this$static.ep, 14, 21, 16, 22, key);
|
|
1687
1876
|
break;
|
|
1688
|
-
|
|
1877
|
+
}
|
|
1878
|
+
case 6: {
|
|
1689
1879
|
swap(this$static.ep, 0, 1, 2, 3, key);
|
|
1690
1880
|
swap(this$static.ep, 12, 13, 14, 15, key);
|
|
1691
1881
|
swap(this$static.ep, 9, 22, 11, 20, key);
|
|
1692
1882
|
break;
|
|
1693
|
-
|
|
1883
|
+
}
|
|
1884
|
+
case 7: {
|
|
1694
1885
|
swap(this$static.ep, 11, 15, 10, 19, key);
|
|
1695
1886
|
swap(this$static.ep, 23, 3, 22, 7, key);
|
|
1696
1887
|
swap(this$static.ep, 2, 16, 6, 12, key);
|
|
1697
1888
|
break;
|
|
1698
|
-
|
|
1889
|
+
}
|
|
1890
|
+
case 8: {
|
|
1699
1891
|
swap(this$static.ep, 0, 11, 6, 8, key);
|
|
1700
1892
|
swap(this$static.ep, 12, 23, 18, 20, key);
|
|
1701
1893
|
swap(this$static.ep, 3, 19, 5, 13, key);
|
|
1702
1894
|
break;
|
|
1703
|
-
|
|
1895
|
+
}
|
|
1896
|
+
case 9: {
|
|
1704
1897
|
swap(this$static.ep, 4, 5, 6, 7, key);
|
|
1705
1898
|
swap(this$static.ep, 16, 17, 18, 19, key);
|
|
1706
1899
|
swap(this$static.ep, 8, 23, 10, 21, key);
|
|
1707
1900
|
break;
|
|
1708
|
-
|
|
1901
|
+
}
|
|
1902
|
+
case 10: {
|
|
1709
1903
|
swap(this$static.ep, 1, 20, 5, 21, key);
|
|
1710
1904
|
swap(this$static.ep, 13, 8, 17, 9, key);
|
|
1711
1905
|
swap(this$static.ep, 14, 0, 18, 4, key);
|
|
1712
1906
|
break;
|
|
1713
|
-
|
|
1907
|
+
}
|
|
1908
|
+
case 11: {
|
|
1714
1909
|
swap(this$static.ep, 2, 9, 4, 10, key);
|
|
1715
1910
|
swap(this$static.ep, 14, 21, 16, 22, key);
|
|
1716
1911
|
swap(this$static.ep, 7, 15, 1, 17, key);
|
|
1912
|
+
}
|
|
1717
1913
|
}
|
|
1718
1914
|
}
|
|
1719
1915
|
function EdgeCube_0() {
|
|
@@ -1724,7 +1920,9 @@ function EdgeCube_0() {
|
|
|
1724
1920
|
}
|
|
1725
1921
|
}
|
|
1726
1922
|
function EdgeCube_1(randomUIntBelow) {
|
|
1727
|
-
let i_0
|
|
1923
|
+
let i_0;
|
|
1924
|
+
let m_0;
|
|
1925
|
+
let t;
|
|
1728
1926
|
EdgeCube_0.call(this);
|
|
1729
1927
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1730
1928
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1794,7 +1992,12 @@ function $getEdge(this$static) {
|
|
|
1794
1992
|
return this$static.edge;
|
|
1795
1993
|
}
|
|
1796
1994
|
function $getMoveString(this$static) {
|
|
1797
|
-
let i_0
|
|
1995
|
+
let i_0;
|
|
1996
|
+
let idx;
|
|
1997
|
+
let move;
|
|
1998
|
+
let rot;
|
|
1999
|
+
let sb;
|
|
2000
|
+
let sym;
|
|
1798
2001
|
const fixedMoves = new Array(
|
|
1799
2002
|
this$static.moveLength - (this$static.add1 ? 2 : 0)
|
|
1800
2003
|
);
|
|
@@ -1819,11 +2022,11 @@ function $getMoveString(this$static) {
|
|
|
1819
2022
|
move = fixedMoves[i_0];
|
|
1820
2023
|
move = ~~(move / 3) * 3 + (2 - move % 3);
|
|
1821
2024
|
if (symmove[sym][move] >= 27) {
|
|
1822
|
-
sb = sb
|
|
2025
|
+
sb = `${sb}${move2str_1[symmove[sym][move] - 9]} `;
|
|
1823
2026
|
rot = move2rot[symmove[sym][move] - 27];
|
|
1824
2027
|
sym = symmult[sym][rot];
|
|
1825
2028
|
} else {
|
|
1826
|
-
sb = sb
|
|
2029
|
+
sb = `${sb}${move2str_1[symmove[sym][move]]} `;
|
|
1827
2030
|
}
|
|
1828
2031
|
}
|
|
1829
2032
|
return sb;
|
|
@@ -1891,7 +2094,8 @@ function $clinit_Moves() {
|
|
|
1891
2094
|
return;
|
|
1892
2095
|
}
|
|
1893
2096
|
ran$clinit_Moves = true;
|
|
1894
|
-
let i_0
|
|
2097
|
+
let i_0;
|
|
2098
|
+
let j;
|
|
1895
2099
|
move2str_1 = [
|
|
1896
2100
|
"U ",
|
|
1897
2101
|
"U2 ",
|
|
@@ -2054,7 +2258,18 @@ var skipAxis3;
|
|
|
2054
2258
|
var std2move;
|
|
2055
2259
|
var std3move;
|
|
2056
2260
|
function $doSearch(this$static) {
|
|
2057
|
-
let MAX_LENGTH2
|
|
2261
|
+
let MAX_LENGTH2;
|
|
2262
|
+
let MAX_LENGTH3;
|
|
2263
|
+
let ct;
|
|
2264
|
+
let edge;
|
|
2265
|
+
let eparity;
|
|
2266
|
+
let i_0;
|
|
2267
|
+
let index;
|
|
2268
|
+
let length12;
|
|
2269
|
+
let length123;
|
|
2270
|
+
let prun;
|
|
2271
|
+
let s2ct;
|
|
2272
|
+
let s2rl;
|
|
2058
2273
|
this$static.solution = "";
|
|
2059
2274
|
const ud = $getsym(new Center1_1($getCenter(this$static.c), 0));
|
|
2060
2275
|
const fb = $getsym(new Center1_1($getCenter(this$static.c), 1));
|
|
@@ -2175,13 +2390,14 @@ function $doSearch(this$static) {
|
|
|
2175
2390
|
this$static.solution = $getMoveString(solcube);
|
|
2176
2391
|
}
|
|
2177
2392
|
function $init2_0(this$static, sym) {
|
|
2178
|
-
let i_0
|
|
2393
|
+
let i_0;
|
|
2394
|
+
let next;
|
|
2179
2395
|
$copy_4(this$static.c1, this$static.c);
|
|
2180
2396
|
for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
|
|
2181
2397
|
$move_6(this$static.c1, this$static.move1[i_0]);
|
|
2182
2398
|
}
|
|
2183
2399
|
switch (finish_0[sym]) {
|
|
2184
|
-
case 0:
|
|
2400
|
+
case 0: {
|
|
2185
2401
|
$move_6(this$static.c1, 24);
|
|
2186
2402
|
$move_6(this$static.c1, 35);
|
|
2187
2403
|
this$static.move1[this$static.length1] = 24;
|
|
@@ -2189,7 +2405,8 @@ function $init2_0(this$static, sym) {
|
|
|
2189
2405
|
this$static.add1 = true;
|
|
2190
2406
|
sym = 19;
|
|
2191
2407
|
break;
|
|
2192
|
-
|
|
2408
|
+
}
|
|
2409
|
+
case 12869: {
|
|
2193
2410
|
$move_6(this$static.c1, 18);
|
|
2194
2411
|
$move_6(this$static.c1, 29);
|
|
2195
2412
|
this$static.move1[this$static.length1] = 18;
|
|
@@ -2197,9 +2414,11 @@ function $init2_0(this$static, sym) {
|
|
|
2197
2414
|
this$static.add1 = true;
|
|
2198
2415
|
sym = 34;
|
|
2199
2416
|
break;
|
|
2200
|
-
|
|
2417
|
+
}
|
|
2418
|
+
case 735470: {
|
|
2201
2419
|
this$static.add1 = false;
|
|
2202
2420
|
sym = 0;
|
|
2421
|
+
}
|
|
2203
2422
|
}
|
|
2204
2423
|
$set_2(
|
|
2205
2424
|
this$static.ct2,
|
|
@@ -2254,7 +2473,12 @@ function $randomState(this$static, randomUIntBelow) {
|
|
|
2254
2473
|
return this$static.solution;
|
|
2255
2474
|
}
|
|
2256
2475
|
function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
2257
|
-
let axis
|
|
2476
|
+
let axis;
|
|
2477
|
+
let ctx;
|
|
2478
|
+
let m_0;
|
|
2479
|
+
let power;
|
|
2480
|
+
let prun;
|
|
2481
|
+
let symx;
|
|
2258
2482
|
if (ct === 0) {
|
|
2259
2483
|
return maxl === 0 && $init2_0(this$static, sym);
|
|
2260
2484
|
}
|
|
@@ -2283,7 +2507,10 @@ function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
|
2283
2507
|
return false;
|
|
2284
2508
|
}
|
|
2285
2509
|
function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
2286
|
-
let ctx
|
|
2510
|
+
let ctx;
|
|
2511
|
+
let m_0;
|
|
2512
|
+
let prun;
|
|
2513
|
+
let rlx;
|
|
2287
2514
|
if (ct === 0 && ctprun[rl] === 0) {
|
|
2288
2515
|
return maxl === 0 && $init3(this$static);
|
|
2289
2516
|
}
|
|
@@ -2307,7 +2534,15 @@ function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
|
2307
2534
|
return false;
|
|
2308
2535
|
}
|
|
2309
2536
|
function $search3(this$static, edge, ct, prun, maxl, lm, depth) {
|
|
2310
|
-
let cord1x
|
|
2537
|
+
let cord1x;
|
|
2538
|
+
let cord2x;
|
|
2539
|
+
let ctx;
|
|
2540
|
+
let edgex;
|
|
2541
|
+
let m_0;
|
|
2542
|
+
let prun1;
|
|
2543
|
+
let prunx;
|
|
2544
|
+
let symcord1x;
|
|
2545
|
+
let symx;
|
|
2311
2546
|
if (maxl === 0) {
|
|
2312
2547
|
return edge === 0 && ct === 0;
|
|
2313
2548
|
}
|
|
@@ -2392,7 +2627,10 @@ function $clinit_Util_0() {
|
|
|
2392
2627
|
ran$clinit_Util_0 = true;
|
|
2393
2628
|
}
|
|
2394
2629
|
function parity_0(arr) {
|
|
2395
|
-
let i_0
|
|
2630
|
+
let i_0;
|
|
2631
|
+
let j;
|
|
2632
|
+
let len;
|
|
2633
|
+
let parity;
|
|
2396
2634
|
parity = 0;
|
|
2397
2635
|
for (i_0 = 0, len = arr.length; i_0 < len; ++i_0) {
|
|
2398
2636
|
for (j = i_0; j < len; ++j) {
|
|
@@ -2404,14 +2642,15 @@ function parity_0(arr) {
|
|
|
2404
2642
|
function swap(arr, a, b, c, d, key) {
|
|
2405
2643
|
let temp;
|
|
2406
2644
|
switch (key) {
|
|
2407
|
-
case 0:
|
|
2645
|
+
case 0: {
|
|
2408
2646
|
temp = arr[d];
|
|
2409
2647
|
arr[d] = arr[c];
|
|
2410
2648
|
arr[c] = arr[b];
|
|
2411
2649
|
arr[b] = arr[a];
|
|
2412
2650
|
arr[a] = temp;
|
|
2413
2651
|
return;
|
|
2414
|
-
|
|
2652
|
+
}
|
|
2653
|
+
case 1: {
|
|
2415
2654
|
temp = arr[a];
|
|
2416
2655
|
arr[a] = arr[c];
|
|
2417
2656
|
arr[c] = temp;
|
|
@@ -2419,13 +2658,15 @@ function swap(arr, a, b, c, d, key) {
|
|
|
2419
2658
|
arr[b] = arr[d];
|
|
2420
2659
|
arr[d] = temp;
|
|
2421
2660
|
return;
|
|
2422
|
-
|
|
2661
|
+
}
|
|
2662
|
+
case 2: {
|
|
2423
2663
|
temp = arr[a];
|
|
2424
2664
|
arr[a] = arr[b];
|
|
2425
2665
|
arr[b] = arr[c];
|
|
2426
2666
|
arr[c] = arr[d];
|
|
2427
2667
|
arr[d] = temp;
|
|
2428
2668
|
return;
|
|
2669
|
+
}
|
|
2429
2670
|
}
|
|
2430
2671
|
}
|
|
2431
2672
|
function Class_0() {
|
|
@@ -2537,7 +2778,10 @@ function splice_0(array, index, deleteCount) {
|
|
|
2537
2778
|
}
|
|
2538
2779
|
_.size = 0;
|
|
2539
2780
|
function binarySearch_0(sortedArray, key) {
|
|
2540
|
-
let high
|
|
2781
|
+
let high;
|
|
2782
|
+
let low;
|
|
2783
|
+
let mid;
|
|
2784
|
+
let midVal;
|
|
2541
2785
|
low = 0;
|
|
2542
2786
|
high = sortedArray.length - 1;
|
|
2543
2787
|
while (low <= high) {
|
|
@@ -2563,7 +2807,10 @@ function fill_1(a, toIndex) {
|
|
|
2563
2807
|
}
|
|
2564
2808
|
}
|
|
2565
2809
|
function $mergeHeaps(this$static, node) {
|
|
2566
|
-
let smallestChild
|
|
2810
|
+
let smallestChild;
|
|
2811
|
+
let leftChild;
|
|
2812
|
+
let rightChild;
|
|
2813
|
+
let smallestChild_0;
|
|
2567
2814
|
const heapSize = this$static.heap.size;
|
|
2568
2815
|
const value = $get_4(this$static.heap, node);
|
|
2569
2816
|
while (node * 2 + 1 < heapSize) {
|
|
@@ -2580,7 +2827,8 @@ function $mergeHeaps(this$static, node) {
|
|
|
2580
2827
|
$set_7(this$static.heap, node, value);
|
|
2581
2828
|
}
|
|
2582
2829
|
function $offer(this$static, e) {
|
|
2583
|
-
let childNode
|
|
2830
|
+
let childNode;
|
|
2831
|
+
let node;
|
|
2584
2832
|
node = this$static.heap.size;
|
|
2585
2833
|
$add_0(this$static.heap, e);
|
|
2586
2834
|
while (node > 0) {
|
|
@@ -2678,4 +2926,4 @@ export {
|
|
|
2678
2926
|
initialize,
|
|
2679
2927
|
random444Scramble
|
|
2680
2928
|
};
|
|
2681
|
-
//# sourceMappingURL=search-dynamic-solve-4x4x4-
|
|
2929
|
+
//# sourceMappingURL=search-dynamic-solve-4x4x4-FKQ2JWK2.js.map
|