forked from ynoproject/forest-orb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
2056 lines (2041 loc) · 133 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
$gameId = substr($_SERVER['REQUEST_URI'], 1, strrpos($_SERVER['REQUEST_URI'], '/', 1) - 1);
$enableBadgeTools = isset($_GET['badge_tools']) && $_GET['badge_tools'] == 'true';
switch ($gameId) {
case "2kki":
$gameName = "Yume 2kki";
break;
case "amillusion":
$gameName = "Amillusion";
break;
case "braingirl":
$gameName = "Braingirl";
break;
case "unconscious":
$gameName = "Collective Unconscious";
break;
case "deepdreams":
$gameName = "Deep Dreams";
break;
case "flow":
$gameName = ".flow";
break;
case "genie":
$gameName = "Dream Genie";
break;
case "mikan":
$gameName = "Mikan Muzou";
break;
case "muma":
$gameName = "Muma Rope";
break;
case "nostalgic":
$gameName = "nostAlgic";
break;
case "oneshot":
$gameName = "OneShot";
break;
case "oversomnia":
$gameName = "Oversomnia";
break;
case "prayers":
$gameName = "Answered Prayers";
break;
case "sheawaits":
$gameName = "She Awaits";
break;
case "someday":
$gameName = "Someday";
break;
case "tsushin":
$gameName = "Yume Tsushin";
break;
case "ultraviolet":
$gameName = "Ultra Violet";
break;
case "unevendream":
$gameName = "Uneven Dream";
break;
case "yume":
$gameName = "Yume Nikki";
break;
default:
$gameId = "2kki";
$gameName = "Yume 2kki";
break;
}
function isFirefoxMobile() {
$userAgent = $_SERVER['HTTP_USER_AGENT'];
return strpos($userAgent, 'Firefox') !== false && strpos($userAgent, 'Mobile') !== false;
}
function isFirefox() {
$userAgent = $_SERVER['HTTP_USER_AGENT'];
return strpos($userAgent, 'Firefox') !== false;
}
?>
<!doctype html>
<html lang="en">
<head>
<title><?php echo $gameName; ?> Online - YNOproject</title>
<meta charset="utf-8">
<meta name="description" content="Play multiplayer <?php echo $gameName; ?> for free! Ad-free and no registration required.">
<meta name="viewport" content="width=device-width, initial-scale=1.0 <?php if (isFirefoxMobile()): ?>, user-scalable=no<?php endif ?>">
<?php if ($gameId == "2kki"): ?>
<meta name="2kkiVersion" content=""> <!-- eg. 0.117g Patch 4 -->
<?php endif ?>
<link rel="manifest" href="/manifest.json"/>
<link rel="stylesheet" href="play.css">
<link rel="stylesheet" href="gamecanvas.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/animations/scale.css" />
<script src="https://unpkg.com/wasm-feature-detect/dist/umd/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/i18next.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/loc-i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js"></script>
<script src="https://unpkg.com/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/tippy-bundle.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ScrollWatch-2.0.1.min.js"></script>
</head>
<body <?php if (isFirefox()): ?>class="browserFirefox"<?php endif ?>>
<div id="background"></div>
<div id="backgroundOverlay"></div>
<div id="content">
<div id="top"></div>
<div id="header">
<div id="headerLogoContainer">
<button id="nexusButton" class="iconButton fillIcon unselectable" data-i18n="[title]tooltips.nexus" dir="ltr">
<svg height="48" viewBox="0 0 64 28" xmlns="http://www.w3.org/2000/svg">
<path d="m0 0h6v10h16v-10h6v16h-11v12.5h-6v-12.5h-11v-15.5m34-0.5h22v6h-16v22.5h-6v-28.5m22 6h6v22.5h-6v-22.5"></path>
</svg>
<svg height="48" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<path d="m0 0h28v28h-28v-28m10 13h-2v2h2v-2m-4 9h16v-16h-16v16m0.5-15.5h15v15h-15v-15"></path>
<path d="m0 0h28v28h-10l-6 7v-21l9-9h-15v17h3v6h-9v-28m22 5h-0.5v17h0.5v-17m-6 15h-1.5v0.5h-0.5v1.5h2v-2"></path>
</svg>
<svg height="48" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg">
<path d="m0 0h28v28h-28v-28m10 13h-2v2h2v-2m-4 9h16v-16h-16v16m0.5-15.5h15v15h-15v-15"></path>
<path d="m0 0h28v28h-10l-6 7v-21l9-9h-15v17h3v6h-9v-28m22 5h-0.5v17h0.5v-17m-6 15h-1.5v0.5h-0.5v1.5h2v-2"></path>
</svg>
</button>
<div id="gameLogoContainer">
<div id="gameLogo" class="transparent">
<div id="gameLogoOverlay"></div>
</div>
</div>
</div>
<div id="headerIconContainer" class="itemContainer smallItemContainer">
<div id="badgeButton" class="badgeItem item accountRequired unselectable"></div>
<button id="locationsButton" class="iconButton fillIcon unselectable hidden" data-i18n="[title]tooltips.locations">
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="m0 14zv-2.5l3.75-4 3 2 5.25-5 6 4.5v5zm0-9.5a1.0313 1.0313 90 0 0 4 0 1.0313 1.0313 90 0 0-4 0z" /></svg>
</button>
<button id="communityScreenshotsButton" class="iconButton fillIcon unselectable" data-i18n="[title]tooltips.communityScreenshots">
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="m0.75 5.5h14.5v9.25h-1.25v-8h-13.25zm14.5 9.25v1.25h-14.5v-9.25h1.25v8zm-12.5-0.75v-1.25l2.25-2.5 1.75 1.25 3-3 3.5 2.5v3zm0-5.5a0.5 0.5 90 0 0 2.5 0 0.5 0.5 90 0 0-2.5 0zm0-4.25h13.75v9.75h-1v-8.75h-12.75v-1m2-1.25h13v9h-1v-8h-12v-1" /></svg>
</button>
<button id="rankingsButton" class="iconButton fillIcon unselectable" data-i18n="[title]tooltips.rankings">
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="m0 18v-11h5.75v11m0.5 0v-16h5.5v16m0.5-6h5.75v6h-5.75v-6" /></svg>
</button>
<button id="schedulesButton" class="iconButton fillIcon unselectable" data-i18n="[title]tooltips.schedules">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
xml:space="preserve" width="32" height="32" viewBox="0 0 22 22">
<g>
<path d="M20,7.4v10.5c0,1.7-1.3,3-3,3H5.9c0,1.1,0.9,2,2,2H18c2.2,0,4-1.8,4-4V9.4C22,8.3,21.1,7.4,20,7.4z">
</path>
<g>
<path
d="M5,1.1v2H4c-1.1,0-2,0.9-2,2v12c0,1.1,0.9,2,2,2h12.2c1.1,0,2-0.9,2-2v-12c0-1.1-0.9-2-2-2h-1v-2h-2v2H7v-2 C7,1.1,5,1.1,5,1.1z M4,8.1h12.2v9H4V8.1z">
</path>
<path
d="M13.7,16.3l-2.4-1.4L9,16.3l0.6-2.7l-2.1-1.8l2.8-0.2L11.4,9l1.1,2.5l2.8,0.3l-2.1,1.8L13.7,16.3z">
</path>
</g>
</g>
<rect width="24" height="24" style="fill:none"></rect>
</svg>
</button>
<button id="loginButton" type="button" class="unselectable" data-i18n="[html]account.login">Login</button>
<button id="logoutButton" type="button" class="unselectable" data-i18n="[html]account.logout">Logout</button>
</div>
</div>
<div id="layout">
<div id="mainContainer" class="container">
<div id="gameContainer">
<div id="controls">
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
<defs id="svgDefs"></defs>
</svg>
<div id="leftControls">
<button id="privateModeButton" class="iconButton toggleButton altToggleButton transparentToggleButton unselectable" data-i18n="[title]tooltips.togglePrivateMode">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m5 0a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7 0.375 0 0.5 0 1.25 0.125-0.25 1.625 1.25 3.125 2.5 3.125q0.125 0.25 0.125 0.5c-1.75 0-3.625 1-3.875 4.125q-2.375 0-4-0.875m12-13a1 1 90 0 1 0 5 1 1 90 0 1 0-5m4 13c0-5-1-7-4-7-0.375 0-0.5 0-1.25 0.125 0.25 1.625-1.25 3.125-2.5 3.125q-0.125 0.25-0.125 0.5c1.75 0 3.625 1 3.875 4.125q2.375 0 4-0.875" /><path d="m9 4a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7s4 2 4 7q-4 2-8 0" /></svg>
</button><button id="saveButton" class="iconButton unselectable" data-i18n="[title]tooltips.save">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 1.5q0-1.5 1.5-1.5h11.25l2.25 2.25v12.75q0 1.5-1.5 1.5h-12q-1.5 0-1.5-1.5v-13.5m4.5-1.5v3.75q0 0.75 0.75 0.75h4.5q0.75 0 0.75-0.75v-3.75m-1.75 1v2.5h0.75v-2.5h-0.75m-5.75 15.5v-6.75q0-0.75 0.75-0.75h7.5q0.75 0 0.75 0.75v6.75m-7.5-6h6m-6 2.25h6m-6 2.25h6" /></svg>
</button><button id="uiThemeButton" class="iconButton unselectable" data-i18n="[title]tooltips.uiTheme">
<svg viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m4.5 3c4.5-4.5 13.5-3 13.5-0.375m-4.125 6.375c-1.875 0-3.375 1.5-1.875 1.875m3 2.625c3 1.5-4.5 6-10.5 4.5-7.5-3-4.5-12 0-15m9-0.75a1.5 1.5 90 0 0 0 3.75 1.5 1.5 90 0 0 0-3.75m-6 0.75a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m-3.75 4.5a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m1.5 5.25a1.5 1.5 90 0 0 0 3 1.5 1.5 90 0 0 0-3m6-0.75a1.5 1.5 90 0 0-0.75 4.5q2.25 0 3-1.875m7.5-14.625q-6 4.5-7.5 10.5l1.5 0.75q4.5-3.75 6-11.25m-7.5 10.5c-3 0-1.5 3-3 4.5 6 0 4.5-3 4.5-3.75m-3.75 2.25c0.75 1.5 1.5 0 1.5 1.275" /></svg>
</button><button id="chatButton" class="iconButton toggleButton offToggleButton unselectable" data-i18n="[title]tooltips.toggleChat">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m3 18l6-4.5h6q3 0 3-3v-7.5q0-3-3-3h-12q-3 0-3 3v7.5q0 3 3 3h1.5l-1.5 4.5m11.25-12.75a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3m-5.25 0a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3m-5.25 0a1.5 1.5 90 0 1 0 3 1.5 1.5 90 0 1 0 -3"/><path d="m-2 16l22-14" /></svg>
</button><?php if ($gameId == "2kki"): ?><button id="explorerButton" style="display: none" class="iconButton toggleButton onToggleButton accountRequired unselectable" data-i18n="[title]tooltips.toggleExplorer">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m6.75 6.75h4.5v4.5h-4.5v-4.5m2.25 0v-3.75h-1.5v-3h3v3h-1.5m2.25 6h3.75v-1.5h3v3h-3v-1.5m-6 2.25v3.75h1.5v3h-3v-3h1.5m-2.25-6h-3.75v-1.5h-3v3h3v-1.5"/><path d="m-2 16l22-14" /></svg>
</button><?php endif ?><button id="screenshotButton" class="iconButton unselectable" data-i18n="[title]tooltips.screenshot">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m3 8q0-1 1-1h1.5c1 0 1-2 2-2h3c1 0 1 2 2 2h1.5q1 0 1 1v4q0 1-1 1h-10q-1 0-1-1zm6-0.5a2 2 90 0 0 0 4 2 2 90 0 0 0 -4m-9-2.5v-2q0-1 1-1h2m12 0h2q1 0 1 1v2m0 8v2q0 1-1 1h-2m-12 0h-2q-1 0-1-1v-2"></path></svg>
</button><button id="myScreenshotsButton" class="iconButton accountRequired unselectable" data-i18n="[title]tooltips.myScreenshots">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 2h18v13h-18zv13-11.5 11.5zm2.5 10.5v-1.5l2.75-3 2.25 1.5 3.75-3.75 4.25 3.25v3.5zm0-6.75a0.75 0.75 90 0 0 3 0 0.75 0.75 90 0 0-3 0z"></path></svg>
</button><button id="settingsButton" class="iconButton unselectable" data-i18n="[title]tooltips.settings">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m9 5.5a1 1 90 0 0 0 7 1 1 90 0 0 0 -7m-7 5.5l-2-0.25v-3.5l2-0.25 0.75-1.5-1.25-1.75 2.25-2.25 1.75 1.25 1.5-0.75 0.25-2h3.5l0.25 2 1.5 0.75 1.75-1.25 2.25 2.25-1.25 1.75 0.75 1.5 2 0.25v3.5l-2 0.25-0.75 1.5 1.25 1.75-2.25 2.25-1.75-1.25-1.5 0.75-0.25 2h-3.5l-0.25-2-1.5-0.75-1.75 1.25-2.25-2.25 1.25-1.75-0.75-1.5" /></svg>
</button><button id="muteButton" class="iconButton toggleButton offToggleButton unselectable" data-i18n="[title]tooltips.toggleMute">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 7h3l4-4v12l-4-4h-3v-4m10 0q1 2 0 4m3-5.5q2 3.5 0 7m3-9.5q4 6 0 12" /><path d="m-2 16l22-14" /></svg>
</button><button id="hideLocationButton" class="iconButton toggleButton offToggleButton unselectable" data-i18n="[title]tooltips.toggleHideLocation">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m3 5q1-5 6-5t6 5-6 11q-7-6-6-11m6-2a1 1 0 0 0 0 5 1 1 0 0 0 0 -5m-2 11c-1 0-3 1-3 2s2 2 5 2 5-1 5-2-2-2-3-2" /><path d="m-2 16l22-14" /></svg>
</button>
</div>
<div id="rightControls">
<div id="mapControls"></div>
<?php if ($gameId == "2kki"): ?>
<div id="explorerControls"></div>
<?php endif ?>
<div id="eventControls" class="accountRequired" style="display: none">
<button id="eventsButton" class="iconButton unselectable" data-i18n="[title]tooltips.events">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="m0 9l6.5-1.5-1.5-2.5 2.5 1.5 1.5-6.5 1.5 6.5 2.5-1.5-1.5 2.5 6.5 1.5-6.5 1.5 1.5 2.5-2.5-1.5-1.5 6.5-1.5-6.5-2.5 1.5 1.5-2.5-6.5-1.5m7.75-6q-4.75 0-4.75 4.75m7.25-4.75q4.75 0 4.75 4.75m-7.25 7.25q-4.75 0-4.75-4.75m7.2656 4.75q4.7344 0 4.7344-4.75m-6-2.75a1 1 90 0 0 0 3 1 1 90 0 0 0 -3" /></svg>
</button>
</div>
<button id="controls-fullscreen" class="iconButton unselectable">
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M13.5 13.5H10m3.5 0V10m0 3.5l-4-4m.5-8h3.5m0 0V5m0-3.5l-4 4M5 1.5H1.5m0 0V5m0-3.5l4 4m-4 4.5v3.5m0 0H5m-3.5 0l4-4"></path></svg>
</button>
</div>
</div>
<div id="canvasContainer">
<div id="crashFix"> </div>
<canvas id="canvas" tabindex="-1"></canvas>
</div>
<div id="gameChatContainer" class="hidden">
<div id="gameChatInputContainer" class="gameChatMessageContainer">
<div class="gameChatMessage message">
<div class="messageContents">> <span id="gameChatModeIcon"></span><div class="globalCooldownIcon icon hidden"><svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18"><circle class="bgCircle" cx="9" cy="9" r="9" /><circle class="timerCircle" cx="9" cy="9" r="9" /></svg></div><span id="gameChatInput" contenteditable="true"></span></div>
</div>
</div>
</div>
<div id="locationDisplayContainer" class="unselectable">
<div id="locationDisplayLabelContainer">
<label id="locationDisplayLabel"></label>
</div>
<div id="locationDisplayLabelContainerOverlay"></div>
<label id="locationDisplayLabelOverlay"></label>
</div>
<div id="dpad" class="unselectable">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" class="baseColorFill">
<path id="dpad-up" data-key="ArrowUp" data-key-code="38" d="M48,5.8C48,2.5,45.4,0,42,0H29.9C26.6,0,24,2.4,24,5.8V24h24V5.8z" />
<path id="dpad-right" data-key="ArrowRight" data-key-code="39" d="M66.2,24H48v24h18.2c3.3,0,5.8-2.7,5.8-6V29.9C72,26.5,69.5,24,66.2,24z" />
<path id="dpad-down" data-key="ArrowDown" data-key-code="40" d="M24,66.3c0,3.3,2.6,5.7,5.9,5.7H42c3.3,0,6-2.4,6-5.7V48H24V66.3z" />
<path id="dpad-left" data-key="ArrowLeft" data-key-code="37" d="M5.7,24C2.4,24,0,26.5,0,29.9V42c0,3.3,2.3,6,5.7,6H24V24H5.7z" />
<rect id="dpad-center" x="24" y="24" width="24" height="24" />
</svg>
</div>
<div id="apad" class="unselectable">
<div id="apad-escape" class="baseColorBg apadCircBtn apadBtn" data-key="Escape" data-key-code="27"></div>
<div id="apad-enter" class="baseColorBg apadCircBtn apadBtn" data-key="Enter" data-key-code="13"></div>
<?php if ($gameId != "yume"): ?>
<div id="apad-shift" class="baseColorBg apadRectBtn apadBtn" data-key="ShiftLeft" data-key-code="16"></div>
<?php endif ?>
<?php if ($gameId == "yume" || $gameId == "unconscious" || $gameId == "prayers" || $gameId == "someday" || $gameId == "unevendream" || $gameId == "braingirl" || $gameId == "tsushin"|| $gameId == "oneshot"): ?>
<div id="apad-numbers" class="apadBtnContainer">
<?php if ($gameId == "tsushin"): ?>
<div id="apad-0" class="baseColorBg apadSqBtn apadBtn" data-key="Digit0" data-key-code="48"></div>
<?php endif ?>
<?php if ($gameId != "prayers"): ?>
<div id="apad-1" class="baseColorBg apadSqBtn apadBtn" data-key="Digit1" data-key-code="49"></div>
<?php endif ?>
<?php if ($gameId == "unevendream" || $gameId == "braingirl"): ?>
<div id="apad-2" class="baseColorBg apadSqBtn apadBtn" data-key="Digit2" data-key-code="50"></div>
<?php endif ?>
<?php if ($gameId == "yume" || $gameId == "unconscious" || $gameId == "unevendream" || $gameId == "someday" || $gameId == "tsushin"): ?>
<div id="apad-3" class="baseColorBg apadSqBtn apadBtn" data-key="Digit3" data-key-code="51"></div>
<?php endif ?>
<?php if ($gameId == "unevendream"): ?>
<div id="apad-4" class="baseColorBg apadSqBtn apadBtn" data-key="Digit4" data-key-code="52"></div>
<?php endif ?>
<?php if ($gameId == "yume" || $gameId == "unconscious"): ?>
<div id="apad-5" class="baseColorBg apadSqBtn apadBtn" data-key="Digit5" data-key-code="53"></div>
<?php endif ?>
<div id="apad-9" class="baseColorBg apadSqBtn apadBtn" data-key="Digit9" data-key-code="57"></div>
</div>
<?php endif ?>
</div>
<div id="joystick" class="unselectable hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" class="baseColorFill hidden" data-style="joystick">
<defs>
<mask id="joystickInset">
<rect width="100%" height="100%" fill="white"></rect>
<circle id="insetCircle" cx="25" cy="25" r="20" fill="black"></circle>
</mask>
</defs>
<circle id="joystickCircle" cx="25" cy="25" r="25" mask="url(#joystickInset)"></circle>
</svg>
<svg width="13.229166mm" height="13.229167mm" viewBox="0 0 13.229166 13.229167" version="1.1"
data-style="dpad" class="baseColorFill hidden" xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<g id="dpadCircle" transform="translate(-11.225154,-3.5548219)">
<path
d="m 17.839738,3.5548218 a 6.6145835,6.6145835 0 0 0 -6.614583,6.6145832 6.6145835,6.6145835 0 0 0 6.614583,6.614583 6.6145835,6.6145835 0 0 0 6.614583,-6.614583 6.6145835,6.6145835 0 0 0 -6.614583,-6.6145832 z M 16.436723,4.644161 h 2.806547 c 0.242771,0 0.438216,0.1954449 0.438216,0.4382161 v 3.24528 h 3.24528 c 0.242771,0 0.438216,0.1954449 0.438216,0.4382161 v 2.8070638 c 0,0.242772 -0.195445,0.438216 -0.438216,0.438216 h -3.24528 v 3.244763 c 0,0.242772 -0.195445,0.438216 -0.438216,0.438216 h -2.806547 c -0.242772,0 -0.438216,-0.195444 -0.438216,-0.438216 v -3.244763 h -3.24528 c -0.242772,0 -0.438216,-0.195444 -0.438216,-0.438216 V 8.7658732 c 0,-0.2427712 0.195444,-0.4382161 0.438216,-0.4382161 h 3.24528 v -3.24528 c 0,-0.2427712 0.195444,-0.4382161 0.438216,-0.4382161 z"
class="joystickBase" />
<path
d="M 15.998507,12.011153 V 8.3276571 h -3.24528 c -0.242772,0 -0.438216,0.1954449 -0.438216,0.4382161 v 2.8070638 c 0,0.242772 0.195444,0.438216 0.438216,0.438216 z"
id="joystickLeft" class="joystickDpad" />
<path
d="m 19.681486,12.011153 h -3.682979 v 3.244763 c 0,0.242772 0.195444,0.438216 0.438216,0.438216 h 2.806547 c 0.242771,0 0.438216,-0.195444 0.438216,-0.438216 z"
id="joystickDown" class="joystickDpad" />
<path d="m 19.681486,8.3276571 h -3.682979 v 3.6834959 h 3.682979 z" class="joystickDpad" />
<path
d="m 19.681486,8.3276571 v 3.6834959 h 3.24528 c 0.242771,0 0.438216,-0.195444 0.438216,-0.438216 V 8.7658732 c 0,-0.2427712 -0.195445,-0.4382161 -0.438216,-0.4382161 z"
id="joystickRight" class="joystickDpad" />
<path
d="m 16.436723,4.644161 c -0.242772,0 -0.438216,0.1954449 -0.438216,0.4382161 v 3.24528 h 3.682979 v -3.24528 c 0,-0.2427712 -0.195445,-0.4382161 -0.438216,-0.4382161 z"
id="joystickUp" class="joystickDpad" />
</g>
</svg>
</div>
</div>
</div>
<div id="chatboxContainer" class="container" style="display: none">
<div id="chatbox" class="allChat">
<div id="chatboxInfo">
<div id="onlineInfo" class="info hidden">
<span id="connStatus" class="infoContainer unselectable"><span id="connStatusIcon">●</span>
<label id="connStatusText" class="infoText">Disconnected</label>
<a id="reconnectButton" href="javascript:void(0);" class="reconnectLink iconLink unselectable" data-i18n="[title]chatbox.reconnect">
<div class="reconnectIcon icon fillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m0 7q1.5-7 9-7 3 0 5.5 2.5l2-2.5 1.5 8h-8l2-2.5q-5-3.5-8 1.5h-4m18 4q-1.5 7-9 7-3 0-5.5-2.5l-2 2.5-1.5-8h8l-2 2.5q5 3.5 8-1.5h4"></path>
</svg>
</div>
</a></span><span id="playerCountLabel" class="playerCountLabel infoLabel unselectable"></span><span id="mapPlayerCountLabel" class="playerCountLabel infoLabel unselectable hidden"></span><span id="immersionModeLabel" class="infoLabel unselectable" data-i18n="[html]chatbox.immersionMode">Immersion Mode</span>
</div>
<div id="location" class="info hidden">
<span id="locationLabel" class="infoLabel nowrap" data-i18n="[html]chatbox.location">Location: </span><span id="locationText" class="infoText nofilter"></span>
</div>
<div id="nextLocationContainer" class="info hidden">
<button id="toggleNextLocationButton" class="icon fillIcon iconButton" data-i18n="[title]tooltips.chat.toggleNextLocation">
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="m9 0a1 1 0 0 0 0 18 1 1 0 0 0 0-18m0 2a1 1 0 0 1 0 14 1 1 0 0 1 0-14m4 11-2-6-6-2 2 6 6 2m-4-5a1 1 0 0 1 0 2 1 1 0 0 1 0-2"></path></svg>
</button>
<div id="nextLocation" class="info">
<span id="nextLocationLabel" class="infoLabel nowrap" data-i18n="[html]chatbox.nextLocation">Next Loc: </span><span id="nextLocationText" class="infoText nofilter"></span>
</div>
</div>
</div>
<div id="chatboxContent">
<div id="chatboxTabs">
<div id="chatboxTabChat" class="chatboxTab active" data-tab-section="chat">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.chat">Chat</label>
<div id="unreadMessageCountContainer" class="notificationCountContainer hidden">
<div class="notificationCount">
<label class="notificationCountLabel">0</label>
</div>
</div>
</div>
<div id="chatboxTabPlayers" class="chatboxTab" data-tab-section="players">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.players">Players</label>
<div id="incomingFriendRequestCountContainer" class="notificationCountContainer hidden">
<div class="notificationCount">
<label class="notificationCountLabel">0</label>
</div>
</div>
</div>
<div id="chatboxTabParties" class="chatboxTab" data-tab-section="parties">
<label class="chatboxTabLabel unselectable" data-i18n="[html]chatbox.tab.parties">Parties</label>
</div>
</div>
<div id="chat" class="chatboxTabSection">
<div id="chatHeader" class="tabHeader">
<div id="chatTabs" class="subTabs">
<div id="chatTabAll" class="chatTab subTab active">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.all">All</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabMap" class="chatTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.map">Map</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabGlobal" class="chatTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.global">Global</small>
<div class="subTabBg"></div>
</div>
<div id="chatTabParty" class="chatTab partySubTab subTab">
<small class="chatTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.chat.tab.party">Party</small>
<div class="subTabBg"></div>
</div>
</div>
<div id="chatButtons" class="tabButtons">
<button id="globalMessageLocationsButton" class="iconButton toggleButton offToggleButton unselectable" data-i18n="[title]tooltips.chat.toggleGlobalMessageLocations">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 0a1 1 0 0 0 0 18 1 1 0 0 0 0-18v18q-10-9 0-18 10 9 0 18m-7.5-4q7.5-3 15 0m-15-10q7.5 2 15 0m-16.5 5h18" /><path d="m-2 16l22-14" />
</svg>
</button>
<button id="messageTimestampsButton" class="iconButton toggleButton offToggleButton unselectable" data-i18n="[title]tooltips.chat.toggleMessageTimestamps">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 0a1 1 0 0 0 0 18 1 1 0 0 0 0-18m0 3v6l4 4" /><path d="m-2 16l22-14" />
</svg>
</button>
<button id="clearChatButton" class="iconButton unselectable" data-i18n="[title]tooltips.chat.clearChat">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m3 18l6-4.5h6q3 0 3-3v-7.5q0-3-3-3h-12q-3 0-3 3v7.5q0 3 3 3h1.5l-1.5 4.5m9.5-14.75l-7 7m0-7l7 7" />
</svg>
</button>
</div>
</div>
<div id="messages" class="chatboxTabContent scrollableContainer"></div>
</div>
<div id="players" class="chatboxTabSection hidden">
<div id="playersHeader" class="tabHeader">
<div id="playersTabs" class="subTabs">
<div id="playersTabMap" class="playersTab subTab active">
<small class="playersTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.players.tab.map">Map</small>
<div class="subTabBg"></div>
</div>
<div id="playersTabFriends" class="playersTab friendsSubTab subTab">
<small class="playersTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.players.tab.friends">Friends</small>
<div class="subTabBg"></div>
</div>
<div id="playersTabParty" class="playersTab partySubTab subTab">
<small class="playersTabLabel subTabLabel infoLabel unselectable" data-i18n="[html]chatbox.players.tab.party">Party</small>
<div class="subTabBg"></div>
</div>
</div>
<div id="playersButtons" class="tabButtons"></div>
</div>
<div id="playerList" class="playerList chatboxTabContent scrollableContainer"></div>
<div id="friendsPlayerList" class="playerList chatboxTabContent scrollableContainer"></div>
<div id="partyPlayerList" class="playerList chatboxTabContent scrollableContainer"></div>
</div>
<div id="parties" class="chatboxTabSection hidden">
<div id="partiesHeader" class="tabHeader">
<div id="partiesTabs" class="subTabs"></div>
<div id="partiesButtons" class="tabButtons">
<button id="createPartyButton" class="iconButton unselectable" data-i18n="[title]tooltips.parties.createParty">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 4a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7 1.625 0 2.5313 0.6875 2.75 1.125v0.625h-3v3.5h3v2.25q-3.2344 1.2344-6.75-0.5m0-17a1 1 90 0 0 0 5 1 1 90 0 0 0-5m-4 13c0-5 1-7 4-7 0.375 0 0.5 0 1.25 0.125-0.25 1.625 1.25 3.125 2.5 3.125q0.125 0.25 0.125 0.5c-1.75 0-3.625 1-3.875 4.125q-2.375 0-4-0.875m12-13a1 1 90 0 1 0 5 1 1 90 0 1 0-5m4 11.75c-0.125-3.625-1-5.75-4-5.75-0.375 0-0.5 0-1.25 0.125 0.25 1.625-1.25 3.125-2.5 3.125q-0.125 0.25-0.125 0.5c1.75 0 2.5 0.875 2.625 1v-2h3.5v3h1.75m-2 6.25v-3h3v-3h-3v-3h-3v3h-3v3h3v3h3" />
</svg>
</button>
<button id="disbandPartyButton" class="iconButton unselectable" data-i18n="[title]tooltips.parties.disbandParty">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="15" height="15">
<path d="m9 4c0.4375 0 1.375 0.1875 1.9062 0.875l-1.9062 1.875-1.9063-1.875c0.6563-0.75 1.4688-0.875 1.9063-0.875m-4 11.25l4-4 3.9375 3.9375s0.0625 0.25 0.0625 1.8125q-4 2-8 0-0.0625-1.5 0-1.75m0-15.25m1.6562 4.4063c2.2813-2.4688-0.4687-5.2813-2.7812-4.1563q-0.5 0.3125-0.7813 0.625l3.5625 3.5313m-5.6562 8.5937c0.5 0.25 0.9375 0.4375 1.25 0.5l4.5-4.5-2.875-2.875c-3.1875 0.5-2.875 6.125-2.875 6.875m10.344-8.5937c-2.2813-2.4688 0.4687-5.2813 2.7812-4.1563q0.5 0.3125 0.7813 0.625l-3.5625 3.5313m5.6562 8.5937c-0.5 0.25-0.9375 0.4375-1.25 0.5l-4.5-4.5 2.875-2.875c3.1875 0.5 2.875 6.125 2.875 6.875m-14-12l6 6 7-7 2 2-7 7 7 7-2 2-7-7-7 7-2-2 7-7-6-6 2-2" />
</svg>
</button>
</div>
</div>
<div id="partyList" class="partyList chatboxTabContent scrollableContainer"></div>
</div>
</div>
<div id="chatInputContainer" style="display: none">
<form action="javascript:chatInputActionFired()">
<input id="chatInput" data-ynomoji="true" type="text" autocomplete="off" maxlength="150" disabled="true" />
<div id="globalChatInputOverlay"></div>
<div id="chatBorder"></div>
</form>
<div class="globalCooldownIcon icon">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
<circle class="bgCircle" cx="9" cy="9" r="9" />
<circle class="timerCircle" cx="9" cy="9" r="9" />
</svg>
</div>
<button id="globalMessageButton" class="iconButton fadeToggle unselectable" data-i18n="[title]tooltips.toggleGlobalMessage">
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" width="18" height="18">
<path d="m9 0a1 1 0 0 0 0 18 1 1 0 0 0 0-18v18q-10-9 0-18 10 9 0 18m-7.5-4q7.5-3 15 0m-15-10q7.5 2 15 0m-16.5 5h18" />
</svg>
</button>
</div>
<div id="ynomojiContainer" class="scrollableContainer hidden"></div>
<div id="enterNameContainer">
<span id="enterNameInstruction">
<span data-i18n="[html]chatbox.chat.nickname.header">You must set a nickname before you can chat.</span>
<br>
<small>
<span data-i18n="[html]chatbox.chat.nickname.rule.maxLength">* Maximum 12 characters</span>
<br>
<span data-i18n="[html]chatbox.chat.nickname.rule.alphanumeric">* Alphanumeric characters only</span>
</small>
</span>
<form id="enterNameForm" action="javascript:chatNameCheck()">
<input id="nameInput" type="text" autocomplete="off" maxlength="10" />
</form>
</div>
</div>
<?php if ($gameId == "2kki"): ?>
<div id="explorerContainer" style="display: none" class="accountRequired" data-game-ids>
<iframe id="explorerFrame" class="unselectable"></iframe>
<a id="explorerUndiscoveredLocationsLink" href="javascript:void(0);" class="iconLink hidden" data-i18n="[title]tooltips.explorerUndiscoveredLocations">
<div class="helpIcon icon fillIcon invertFillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0-18m-1.25 10.25a1 1 90 0 0 2.5 0.5q0.25-1 1.25-1.5c0.75-0.5 2.5-1.5 2.5-3.75 0-4-7.75-5.5-9.5-0.5a0.25 0.25 90 0 0 2.75 0.5c0.25-1.75 4-2.25 3.75 0.5 0 1.5-3 2.25-3.25 4.25m1.25 6a0.25 0.25 90 0 0 0-3.25 0.25 0.25 90 0 0 0 3.25" />
</svg>
</div>
</a>
</div>
<?php endif ?>
</div>
<div id="modalContainer" class="modalContainer hidden">
<div id="loginModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.login.title">Login</h1>
</div>
<div class="modalContent">
<form id="loginForm">
<ul class="formControls">
<li class="formControlRow">
<label for="loginUsername" class="unselectable" data-i18n="[html]modal.login.fields.username">Username</label><input id="loginUsername" name="user" type="text" autocomplete="off" maxlength="12" />
</li>
<li class="formControlRow">
<label for="loginPassword" class="unselectable" data-i18n="[html]modal.login.fields.password">Password</label><input id="loginPassword" name="password" type="password" autocomplete="off" />
</li>
<li id="loginErrorRow" class="formControlRow hidden">
<label id="loginError"></label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.login.submit">Submit</button>
</form>
</div>
<div class="modalFooter">
<span class="infoLabel" data-i18n="[html]modal.login.registerPrompt">Don't have an account? </span><a href="javascript:void(0);" onclick="openModal('registerModal')" data-i18n="[html]modal.login.register">Register</a>
</div>
</div>
<div id="registerModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.register.title">Register</h1>
</div>
<div class="modalContent">
<form id="registerForm">
<ul class="formControls">
<!--<li class="formControlRow">
<label for="registerEmail" class="unselectable" data-i18n="[html]modal.register.fields.email">Email</label><input id="registerEmail" type="text" autocomplete="off" />
</li>-->
<li class="formControlRow">
<label for="registerUsername" class="unselectable" data-i18n="[html]modal.register.fields.username">Username</label><input id="registerUsername" name="user" type="text" autocomplete="off" maxlength="12" />
</li>
<li class="formControlRow">
<label for="registerPassword" class="unselectable" data-i18n="[html]modal.register.fields.password">Password</label><input id="registerPassword" name="password" type="password" autocomplete="off" maxlength="72" />
</li>
<li class="formControlRow">
<label for="registerConfirmPassword" class="unselectable" data-i18n="[html]modal.register.fields.confirmPassword">Confirm Password</label><input id="registerConfirmPassword" type="password" autocomplete="off" maxlength="72" />
</li>
<li id="registerErrorRow" class="formControlRow hidden">
<label id="registerError"></label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.register.submit">Submit</button>
</form>
</div>
<div class="modalFooter">
<span class="infoLabel" data-i18n="[html]modal.register.loginPrompt">Already have an account? </span><a href="javascript:void(0);" onclick="openModal('loginModal')" data-i18n="[html]modal.register.login">Login</a>
</div>
</div>
<div id="settingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.settings.title">Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label for="lang" class="unselectable" data-i18n="[html]modal.settings.fields.lang">Language</label>
<div>
<label id="translationInstruction" class="nofilter hidden"><a id="translationLink" target="_blank" data-i18n="[html]instruction.translation">Translation Work Needed</a></label>
<div>
<select id="lang" size="4">
<option value="en">English</option>
<option value="ja">日本語</option>
<option value="zh">中文</option>
<option value="ko">한국어</option>
<option value="es">Español</option>
<option value="eo">Esperanto</option>
<option value="pt">Português</option>
<option value="fr">Français</option>
<option value="de">Deutsch</option>
<option value="it">Italiano</option>
<option value="pl">Polski</option>
<option value="ro">Română</option>
<option value="tr">Türkçe</option>
<option value="ru">Русский</option>
<option value="vi">Tiếng Việt</option>
<option value="ar">العربية</option>
</select>
</div>
<label id="noGameLocInstruction" class="hidden" data-i18n="[html]instruction.noGameLoc">* Game Localization Unsupported</label>
</div>
</li>
<li class="formControlRow">
<label for="nametagMode" class="unselectable" data-i18n="[html]modal.settings.fields.nametagMode.label">Nametags</label>
<div>
<select id="nametagMode" size="4">
<option value="0" data-i18n="[html]modal.settings.fields.nametagMode.values.none">None</option>
<option value="1" data-i18n="[html]modal.settings.fields.nametagMode.values.classic" selected>Classic</option>
<option value="2" data-i18n="[html]modal.settings.fields.nametagMode.values.compact">Compact</option>
<option value="3" data-i18n="[html]modal.settings.fields.nametagMode.values.slim">Slim</option>
</select>
</div>
</li>
<li class="formControlRow">
<label for="wikiLinkMode" class="unselectable" data-i18n="[html]modal.settings.fields.wikiLinkMode.label">Wiki Link Popup</label>
<div>
<select id="wikiLinkMode" size="3">
<option value="2" data-i18n="modal.settings.fields.wikiLinkMode.values.always">Always</option>
<option value="1" data-i18n="modal.settings.fields.wikiLinkMode.values.fullscreen" selected>Fullscreen Only</option>
<option value="0" data-i18n="modal.settings.fields.wikiLinkMode.values.never">Never</option>
</select>
</div>
</li>
<li class="formControlRow">
<label for="saveReminder" class="unselectable" data-i18n="[html]modal.settings.fields.saveReminder.label">Save Notification Interval</label>
<div>
<select id="saveReminder" size="4">
<option value="10" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':10}">10 minutes</option>
<option value="15" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':15}">15 minutes</option>
<option value="20" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':20}">20 minutes</option>
<option value="30" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':30}">30 minutes</option>
<option value="45" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':45}">45 minutes</option>
<option value="60" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':60}">60 minutes</option>
<option value="90" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':90}">90 minutes</option>
<option value="120" data-i18n="modal.settings.fields.saveReminder.interval.minutes" i18n-options="{'interval':120}">120 minutes</option>
<option value="0" data-i18n="modal.settings.fields.saveReminder.interval.never">Never</option>
</select>
</div>
</li>
<li class="formControlRow">
<label for="soundVolume" class="unselectable" data-i18n="[html]modal.settings.fields.soundVolume">Sound Volume</label>
<div>
<input id="soundVolume" type="range" min="0" max="100" value="100" step="5" class="slider" />
</div>
</li>
<li class="formControlRow">
<label for="musicVolume" class="unselectable" data-i18n="[html]modal.settings.fields.musicVolume">Music Volume</label>
<div>
<input id="musicVolume" type="range" min="0" max="100" value="100" step="5" class="slider" />
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.settings.fields.togglePlayerSounds">Player Sounds</label>
<div>
<button id="playerSoundsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<?php if ($gameId == "2kki"): ?>
<li class="formControlRow">
<label class="unselectable">
<span data-i18n="[html]modal.settings.fields.toggleEnableExplorer.label">Navigator</span>
<a href="javascript:void(0);" class="helpLink iconLink" data-i18n="[title]modal.settings.fields.toggleEnableExplorer.helpText">
<div class="helpIcon icon fillIcon invertFillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0-18m-1.25 10.25a1 1 90 0 0 2.5 0.5q0.25-1 1.25-1.5c0.75-0.5 2.5-1.5 2.5-3.75 0-4-7.75-5.5-9.5-0.5a0.25 0.25 90 0 0 2.75 0.5c0.25-1.75 4-2.25 3.75 0.5 0 1.5-3 2.25-3.25 4.25m1.25 6a0.25 0.25 90 0 0 0-3.25 0.25 0.25 90 0 0 0 3.25" />
</svg>
</div>
</a>
</label>
<div>
<button id="enableExplorerButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<?php endif ?>
<li class="formControlRow">
<label class="unselectable">
<span data-i18n="[html]modal.settings.fields.toggleImmersionMode.label">Immersion Mode</span>
<a href="javascript:void(0);" class="helpLink iconLink" data-i18n="[title]modal.settings.fields.toggleImmersionMode.helpText">
<div class="helpIcon icon fillIcon invertFillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0-18m-1.25 10.25a1 1 90 0 0 2.5 0.5q0.25-1 1.25-1.5c0.75-0.5 2.5-1.5 2.5-3.75 0-4-7.75-5.5-9.5-0.5a0.25 0.25 90 0 0 2.75 0.5c0.25-1.75 4-2.25 3.75 0.5 0 1.5-3 2.25-3.25 4.25m1.25 6a0.25 0.25 90 0 0 0-3.25 0.25 0.25 90 0 0 0 3.25" />
</svg>
</div>
</a>
</label>
<div>
<button id="immersionModeButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow mobileOnly">
<label class="unselectable" data-i18n="[html]modal.settings.fields.toggleMobileControls">Show Mobile Controls</label>
<div>
<button id="mobileControlsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow mobileOnly">
<label class="unselectable">
<span data-i18n="[html]modal.settings.fields.mobileControlsType.label">Mobile Controls Type</span>
<a href="javascript:void(0);" class="helpLink iconLink" data-i18n="[title]tooltips.mobileControlsType">
<div class="helpIcon icon fillIcon invertFillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0-18m-1.25 10.25a1 1 90 0 0 2.5 0.5q0.25-1 1.25-1.5c0.75-0.5 2.5-1.5 2.5-3.75 0-4-7.75-5.5-9.5-0.5a0.25 0.25 90 0 0 2.75 0.5c0.25-1.75 4-2.25 3.75 0.5 0 1.5-3 2.25-3.25 4.25m1.25 6a0.25 0.25 90 0 0 0-3.25 0.25 0.25 90 0 0 0 3.25" />
</svg>
</div>
</a>
</label>
<div>
<select id="mobileControl" size="3">
<option value="default" selected data-i18n="[html]modal.settings.fields.mobileControlsType.default">D-Pad</option>
<option value="joystick" data-i18n="[html]modal.settings.fields.mobileControlsType.joystick">Floating Joystick</option>
<option value="dpad" data-i18n="[html]modal.settings.fields.mobileControlsType.dpad">Floating D-Pad</option>
</select>
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.settings.fields.toggleLocationDisplay">Location Display</label>
<div>
<button id="locationDisplayButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.settings.fields.toggleRankings">Rankings</label>
<div>
<button id="toggleRankingsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable">
<span data-i18n="[html]modal.settings.fields.togglePreloads.label">Preloads</span>
<a href="javascript:void(0);" class="helpLink iconLink" data-i18n="[title]modal.settings.fields.togglePreloads.helpText">
<div class="helpIcon icon fillIcon invertFillIcon altIcon">
<svg viewBox="0 0 18 18">
<path d="m9 0a1 1 90 0 0 0 18 1 1 90 0 0 0-18m-1.25 10.25a1 1 90 0 0 2.5 0.5q0.25-1 1.25-1.5c0.75-0.5 2.5-1.5 2.5-3.75 0-4-7.75-5.5-9.5-0.5a0.25 0.25 90 0 0 2.75 0.5c0.25-1.75 4-2.25 3.75 0.5 0 1.5-3 2.25-3.25 4.25m1.25 6a0.25 0.25 90 0 0 0-3.25 0.25 0.25 90 0 0 0 3.25" />
</svg>
</div>
</a>
</label>
<div>
<button id="togglePreloadsButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<?php if ($gameId == "2kki"): ?>
<li class="formControlRow indent preloadRow hidden">
<label class="unselectable">
<span data-i18n="[html]modal.settings.fields.toggleQuestionablePreloads">Preload PC Wallpapers</span>
</label>
<div>
<button id="toggleQuestionablePreloadsButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<?php endif ?>
<li class="formControlRow buttonRow">
<button id="blocklistButton" class="unselectable" type="button" data-i18n="[html]modal.settings.blocklist">Blocklist</button>
<button id="chatSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.chatSettings" onclick="openModal('chatSettingsModal', null, 'settingsModal')">Chat</button>
<button id="screenshotSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.screenshotSettings" onclick="openModal('screenshotSettingsModal', null, 'settingsModal')">Screenshots</button>
<button id="notificationSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.notificationSettings" onclick="openModal('notificationSettingsModal', null, 'settingsModal')">Notifications</button>
<button id="cacheSettingsButton" class="unselectable" type="button" data-i18n="[html]modal.settings.cacheSettings" onclick="openCacheSettingsModal('settingsModal')">Cache</button>
<button id="accountSettingsButton" class="unselectable accountRequired" type="button" data-i18n="[html]modal.settings.accountSettings">Account</button>
</li>
</ul>
</div>
</div>
<div id="blocklistModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.blocklist.title">Blocklist</h1>
</div>
<div class="modalContent">
<span id="blocklistModalEmptyLabel" class="infoLabel" data-i18n="[html]modal.blocklist.empty">Your blocklist is currently empty</span>
<div id="blocklistModalPlayerListContainer" class="scrollableContainer">
<div id="blocklistModalPlayerList" class="playerList"></div>
</div>
</div>
</div>
<div id="chatSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.chatSettings.title">Chat Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.chatSettings.fields.toggleGameChat.label">In-Game Chat Overlay</label>
<div>
<button id="gameChatButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow indent gameChatRow">
<label class="unselectable" data-i18n="[html]modal.chatSettings.fields.toggleGameChat.global">Global Chat Overlay</label>
<div>
<button id="gameChatGlobalButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow indent gameChatRow">
<label class="unselectable" data-i18n="[html]modal.chatSettings.fields.toggleGameChat.party">Party Chat Overlay</label>
<div>
<button id="gameChatPartyButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow desktopOnly">
<label class="unselectable" data-i18n="[html]modal.chatSettings.fields.toggleTabToChat">Press Tab to Chat</label>
<div>
<button id="tabToChatButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.chatSettings.fields.togglePlayMentionSound">Play Mention Sound</label>
<div>
<button id="playMentionSoundButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="mapChatHistoryLimit" class="unselectable" data-i18n="[html]modal.chatSettings.fields.mapChatHistoryLimit.label">Map Chat History Limit</label>
<div>
<select id="mapChatHistoryLimit">
<option value="25" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.25">25</option>
<option value="50" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.50">50</option>
<option value="100" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.100" selected>100</option>
<option value="250" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.250">250</option>
<option value="500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.500">500</option>
<option value="1000" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.1000">1000</option>
<option value="2500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.2500">2500</option>
<option value="0" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.0">Unlimited</option>
</select>
</div>
</li>
<li class="formControlRow">
<label for="globalChatHistoryLimit" class="unselectable" data-i18n="[html]modal.chatSettings.fields.globalChatHistoryLimit.label">Global Chat History Limit</label>
<div>
<select id="globalChatHistoryLimit">
<option value="25" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.25">25</option>
<option value="50" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.50">50</option>
<option value="100" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.100" selected>100</option>
<option value="250" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.250">250</option>
<option value="500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.500">500</option>
<option value="1000" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.1000">1000</option>
<option value="2500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.2500">2500</option>
<option value="0" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.0">Unlimited</option>
</select>
</div>
</li>
<li class="formControlRow">
<label for="partyChatHistoryLimit" class="unselectable" data-i18n="[html]modal.chatSettings.fields.partyChatHistoryLimit.label">Map Chat History Limit</label>
<div>
<select id="partyChatHistoryLimit">
<option value="25" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.25">25</option>
<option value="50" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.50">50</option>
<option value="100" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.100">100</option>
<option value="250" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.250" selected>250</option>
<option value="500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.500">500</option>
<option value="1000" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.1000">1000</option>
<option value="2500" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.2500">2500</option>
<option value="0" data-i18n="[html]modal.chatSettings.fields.chatHistoryLimit.values.0">Unlimited</option>
</select>
</div>
</li>
</ul>
</div>
</div>
<div id="screenshotSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.screenshotSettings.title">Screenshot Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.screenshotSettings.fields.autoDownloadScreenshots">Automatically Download Screenshots</label>
<div>
<button id="autoDownloadScreenshotsButton" class="checkboxButton unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="screenshotResolution" class="unselectable" data-i18n="[html]modal.screenshotSettings.fields.screenshotResolution.label">Screenshot Download Resolution</label>
<div>
<select id="screenshotResolution">
<option value="1" data-i18n="[html]modal.screenshotSettings.fields.screenshotResolution.values.1" selected>1x - 320x240</option>
<option value="2" data-i18n="[html]modal.screenshotSettings.fields.screenshotResolution.values.2">2x - 640x480</option>
<option value="3" data-i18n="[html]modal.screenshotSettings.fields.screenshotResolution.values.3">3x - 960x720</option>
<option value="4" data-i18n="[html]modal.screenshotSettings.fields.screenshotResolution.values.4">4x - 1280x960</option>
</select>
</div>
</li>
</ul>
</div>
</div>
<div id="notificationSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.notificationSettings.title">Notification Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls">
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.notificationSettings.fields.toggleNotifications">Notifications</label>
<div>
<button id="notificationsButton" class="checkboxButton inverseToggle unselectable"><span></span></button>
</div>
</li>
<li class="formControlRow">
<label for="notificationScreenPosition" class="unselectable" data-i18n="[html]modal.notificationSettings.fields.screenPosition.label">Screen Position</label>
<div>
<select id="notificationScreenPosition" size="4">
<option value="bottomLeft" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.bottomLeft">Bottom Left</option>
<option value="bottomRight" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.bottomRight">Bottom Right</option>
<option value="topLeft" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.topLeft">Top Left</option>
<option value="topRight" data-i18n="[html]modal.notificationSettings.fields.screenPosition.values.topRight">Top Right</option>
</select>
</div>
</li>
</ul>
</div>
</div>
<div id="cacheSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.cacheSettings.title">Cache Settings</h1>
</div>
<div class="modalContent">
<ul class="formControls" style="overflow: visible">
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.cacheSettings.fields.locationCache">Location Cache</label>
<div>
<button type="button" id="clearLocationCacheButton" class="unselectable" data-i18n="[html]modal.cacheSettings.clear" onclick="clearCache(CACHE_TYPE.location, this)">Clear</button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.cacheSettings.fields.mapCache">Map Cache</label>
<div>
<button type="button" id="clearMapCacheButton" class="unselectable" data-i18n="[html]modal.cacheSettings.clear" onclick="clearCache(CACHE_TYPE.map, this)">Clear</button>
</div>
</li>
<li class="formControlRow">
<label class="unselectable" data-i18n="[html]modal.cacheSettings.fields.locationColorCache">Location Color Cache</label>
<div>
<button type="button" id="clearLocationColorCacheButton" class="unselectable" data-i18n="[html]modal.cacheSettings.clear" onclick="clearCache(CACHE_TYPE.locationColor, this)">Clear</button>
</div>
</li>
</ul>
</div>
</div>
<div id="accountSettingsModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.accountSettings.title">Account Settings</h1>
</div>
<div class="modalContent itemContainer">
<ul class="formControls">
<li class="formControlRow buttonRow">
<button id="changePasswordButton" class="unselectable" type="button" data-i18n="[html]modal.accountSettings.fields.changePassword">Change Password</button>
</li>
<li class="formControlRow">
<label for="accountBadgeButton" class="unselectable" data-i18n="[html]modal.accountSettings.fields.badge">Badge</label>
<div>
<div id="accountBadgeButton" class="badgeItem item unselectable"></div>
</div>
</li>
<li id="saveSyncSlotIdRow" class="formControlRow buttonRow">
<button id="clearSaveSyncButton" class="unselectable" type="button" data-i18n="[html]modal.accountSettings.fields.clearSaveSync">Clear Save Sync Data</button>
</li>
</ul>
</div>
</div>
<div id="passwordModal" class="modal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.password.title">Change Password</h1>
</div>
<div class="modalContent">
<form id="changePasswordForm" class="fullWidth">
<ul class="formControls">
<li class="formControlRow">
<label for="oldPassword" class="unselectable" data-i18n="[html]modal.password.fields.oldPassword">Old Password</label><input id="oldPassword" name="password" type="password" autocomplete="off" />
</li>
<li class="formControlRow">
<label for="newPassword" class="unselectable" data-i18n="[html]modal.password.fields.newPassword">New Password</label><input id="newPassword" name="newPassword" type="password" autocomplete="off" />
</li>
<li class="formControlRow">
<label for="confirmPassword" class="unselectable" data-i18n="[html]modal.password.fields.newConfirmPassword">Confirm New Password</label><input id="newConfirmPassword" type="password" autocomplete="off" />
</li>
<li id="passwordErrorRow" class="formControlRow hidden">
<label id="passwordError"></label>
</li>
</ul>
<button type="submit" data-i18n="[html]modal.password.submit">Submit</button>
</form>
</div>
</div>
<div id="badgesModal" class="modal fullscreenModal hidden">
<a href="javascript:void(0);" class="modalClose">✖</a>
<div class="modalHeader">
<h1 class="modalTitle" data-i18n="[html]modal.badges.title">Badge</h1>
<div id="badgeControls" class="uiControls wrap">
<div class="uiControl">
<label for="badgeUnlockStatus" class="unselectable" data-i18n="[html]modal.badges.fields.unlockStatus.label">Unlock Status: </label>
<select id="badgeUnlockStatus">
<option value="" data-i18n="[html]modal.badges.fields.unlockStatus.values.all">All</option>
<option value="0" data-i18n="[html]modal.badges.fields.unlockStatus.values.0">Locked</option>
<option value="1" data-i18n="[html]modal.badges.fields.unlockStatus.values.1">Unlocked</option>
<option value="recentUnlock" data-i18n="[html]modal.badges.fields.unlockStatus.values.recentUnlock">Recently Unlocked</option>
</select>
</div>
<div class="uiControl">
<label for="badgeSortOrder" class="unselectable" data-i18n="[html]modal.badges.fields.sortOrder.label">Sort Order: </label>
<select id="badgeSortOrder">
<option value="" data-i18n="[html]modal.badges.fields.sortOrder.values.default">Default</option>
</select>
</div>
<div class="uiControl">
<label for="badgeSearch" class="unselectable" data-i18n="[html]modal.badges.fields.search.label">Search: </label>
<div style="display: inline-block">
<svg data-kind="name" class="icon searchIcon hidden" height="24px" viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M14.2639 15.9376L12.5958 14.2835C11.7909 13.4852 11.3884 13.0861 10.9266 12.9402C10.5204 12.8119 10.0838 12.8166 9.68048 12.9537C9.22188 13.1096 8.82814 13.5173 8.04068 14.3327L4.04409 18.2802M14.2639 15.9376L14.6053 15.5991C15.4112 14.7999 15.8141 14.4003 16.2765 14.2544C16.6831 14.1262 17.12 14.1312 17.5236 14.2688C17.9824 14.4252 18.3761 14.834 19.1634 15.6515L20 16.4936M14.2639 15.9376L18.275 19.9566M18.275 19.9566C17.9176 20.0001 17.4543 20.0001 16.8 20.0001H7.2C6.07989 20.0001 5.51984 20.0001 5.09202 19.7821C4.71569 19.5904 4.40973 19.2844 4.21799 18.9081C4.12796 18.7314 4.07512 18.5322 4.04409 18.2802M18.275 19.9566C18.5293 19.9257 18.7301 19.8728 18.908 19.7821C19.2843 19.5904 19.5903 19.2844 19.782 18.9081C20 18.4803 20 17.9202 20 16.8001V16.4936M12.5 4L7.2 4.00011C6.07989 4.00011 5.51984 4.00011 5.09202 4.21809C4.71569 4.40984 4.40973 4.7158 4.21799 5.09213C4 5.51995 4 6.08 4 7.20011V16.8001C4 17.4576 4 17.9222 4.04409 18.2802M20 11.5V16.4936M14 10.0002L16.0249 9.59516C16.2015 9.55984 16.2898 9.54219 16.3721 9.5099C16.4452 9.48124 16.5146 9.44407 16.579 9.39917C16.6515 9.34859 16.7152 9.28492 16.8425 9.1576L21 5.00015C21.5522 4.44787 21.5522 3.55244 21 3.00015C20.4477 2.44787 19.5522 2.44787 19 3.00015L14.8425 7.1576C14.7152 7.28492 14.6515 7.34859 14.6009 7.42112C14.556 7.4855 14.5189 7.55494 14.4902 7.62801C14.4579 7.71033 14.4403 7.79862 14.4049 7.97518L14 10.0002Z"
stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg data-kind="location" class="icon searchIcon hidden" viewBox="-2 -2 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg" height="18">
<path
d="m3 5q1-5 6-5t6 5-6 11q-7-6-6-11m6-2a1 1 0 0 0 0 5 1 1 0 0 0 0 -5m-2 11c-1 0-3 1-3 2s2 2 5 2 5-1 5-2-2-2-3-2" />
</svg>
<input id="badgeSearch" type="text" autocomplete="off">
<div class="dropdown hidden" id="badgeDropdown">
<div class="dropdownItem" tabindex="0">
<i data-i18n="[html]modal.badges.fields.search.name">Name:</i> <span id="searchName"></span>
</div>
<div class="dropdownItem" tabindex="0">
<i data-i18n="[html]modal.badges.fields.search.location">Location:</i> <span id="searchLocation"></span>
</div>
</div>
</div>
<a id="badgeSearchClearLink" href="javascript:void(0);" class="unselectable hidden">✖</a>