Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
NumBlocks: items, crafting, survival, menus and saves
Mason Chen01b4e731c2d3
diff --git a/games/numblocks/Makefile b/games/numblocks/Makefileindex 353f81d3..7d7e29e6 100644--- a/games/numblocks/Makefile+++ b/games/numblocks/Makefile@@ -10,7 +10,7 @@ BUILD_DIR = outputSTRIP ?= arm-none-eabi-strip --strip-unneededCLIENT_JAR ?= client.jarGEN ?= src/genstub.c-GAME = src/main.c src/world.c src/edits.c src/render.c src/player.c src/hud.c src/data.c $(GEN)+GAME = src/main.c src/world.c src/edits.c src/render.c src/player.c src/phys.c src/inv.c src/entity.c src/gui.c src/save.c src/data.c $(GEN)HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.hCFLAGS = -std=gnu11 $(shell $(NWLINK) eadk-cflags-device)@@ -46,6 +46,11 @@ build/play: $(GAME) src/plat_host.c tests/play.c $(HEADERS)$(Q) mkdir -p build$(Q) cc $(HOST_FLAGS) $(GAME) src/plat_host.c tests/play.c -lm -o $@@echo "HOST $@"+build/unit: $(GAME) src/plat_host.c tests/unit.c $(HEADERS)+ $(Q) mkdir -p build+ $(Q) cc $(HOST_FLAGS) $(filter-out src/main.c,$(GAME)) src/plat_host.c tests/unit.c tests/stubs.c -lm -o $@+test: build/unit+ ./build/unit# every pixel traced: the reference the adaptive picture is checked againstbuild/play_ref: $(GAME) src/plat_host.c tests/play.c $(HEADERS)$(Q) mkdir -p build@@ -54,6 +59,7 @@ build/play_ref: $(GAME) src/plat_host.c tests/play.c $(HEADERS)data:python3 tools/blocks.py --header > src/blocks.h+ python3 tools/items.py --header > src/items.hpython3 tools/pack.py $(CLIENT_JAR)clean:diff --git a/games/numblocks/src/blocks.h b/games/numblocks/src/blocks.hindex 9188a736..cd30cba3 100644--- a/games/numblocks/src/blocks.h+++ b/games/numblocks/src/blocks.h@@ -218,7 +218,21 @@ enum {B_BED_HEAD = 211, /* 26:8 */B_FLOWING_WATER = 212, /* 8:1 */B_FLOWING_LAVA = 213, /* 10:2 */- B_COUNT = 214+ B_WOOD_SLAB_OAK = 214, /* 126:0 */+ B_WOOD_SLAB_SPRUCE = 215, /* 126:1 */+ B_WOOD_SLAB_BIRCH = 216, /* 126:2 */+ B_WOOD_SLAB_JUNGLE = 217, /* 126:3 */+ B_WOOD_SLAB_ACACIA = 218, /* 126:4 */+ B_WOOD_SLAB_DARK_OAK = 219, /* 126:5 */+ B_CARROTS_0 = 220, /* 141:0 */+ B_CARROTS_1 = 221, /* 141:2 */+ B_CARROTS_2 = 222, /* 141:4 */+ B_CARROTS_3 = 223, /* 141:7 */+ B_POTATOES_0 = 224, /* 142:0 */+ B_POTATOES_1 = 225, /* 142:2 */+ B_POTATOES_2 = 226, /* 142:4 */+ B_POTATOES_3 = 227, /* 142:7 */+ B_COUNT = 228};enum { M_NONE, M_CUBE, M_CROSS, M_LIQUID, M_TORCH, M_SLAB, M_LAYER, M_CACTUS, M_LEAVES, M_GLASS, M_FLAT, M_VINE, M_PANE, M_FENCE, M_DOOR, M_LADDER };diff --git a/games/numblocks/src/data.c b/games/numblocks/src/data.cindex 3b1f13fe..ab450e86 100644--- a/games/numblocks/src/data.c+++ b/games/numblocks/src/data.c@@ -1,7 +1,7 @@/* Generated by tools/pack.py from Minecraft 1.8.8's client.jar: textures and block tables. */#include "data.h"-const uint8_t tex_px[203][128] = {+const uint8_t tex_px[211][128] = {{50,51,35,0,4,50,51,35,34,0,0,51,3,0,36,50,66,51,52,51,48,34,2,34,2,34,66,2,34,51,51,35,2,48,51,51,51,0,0,64,51,34,50,51,66,34,51,36,0,18,50,0,34,34,0,64,34,50,51,51,67,51,51,34,2,64,48,34,2,0,0,0,50,51,51,35,36,50,51,32,34,48,3,48,52,0,32,34,36,34,35,34,0,34,2,64,50,51,51,51,0,51,51,35,2,0,0,50,51,52,34,0,34,50,51,51,34,0,50,35,51,51,4,32,34,50,51,34},{114,119,196,174,89,118,124,103,102,174,10,17,173,227,108,116,239,29,113,114,115,108,60,104,0,233,38,230,150,123,135,205,54,114,122,119,39,163,138,16,119,102,124,114,150,12,167,105,51,230,210,58,204,224,51,234,106,214,13,177,17,39,119,96,166,10,112,230,172,58,226,51,18,247,125,199,1,217,119,35,150,115,231,218,121,163,99,105,105,202,15,96,58,102,175,154,252,17,114,119,42,215,17,199,48,62,62,70,215,31,102,10,102,212,221,210,15,48,182,97,126,167,57,10,96,114,218,102},{32,34,16,2,19,33,35,162,113,93,85,136,88,213,122,230,163,136,138,132,133,119,87,217,81,154,71,215,167,134,72,216,81,132,134,136,72,85,196,245,130,119,135,132,167,119,72,218,80,215,132,85,119,215,85,245,112,135,88,104,168,72,136,215,65,69,133,215,87,85,212,197,128,184,136,120,74,138,136,181,161,133,168,133,138,69,117,218,115,116,123,119,85,119,93,245,177,136,132,136,69,136,136,216,81,89,93,103,136,139,119,196,113,134,136,132,125,85,103,216,239,254,207,220,221,235,239,221},@@ -205,8 +205,16 @@ const uint8_t tex_px[203][128] = {{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,237,238,219,253,36,34,68,68,221,190,219,253,20,17,17,66,221,191,221,253,36,17,17,66,255,255,255,255,68,34,67,68,119,102,102,118,119,103,102,198,201,153,156,153,153,153,106,198,0,0,0,0,0,0,80,198,0,0,0,0,0,0,80,150,0,0,0,0,0,0,80,150},{248,25,147,25,248,25,147,25,255,44,101,59,255,44,101,59,253,28,138,125,253,28,138,125,248,29,181,104,248,29,181,104,240,54,181,132,240,54,181,132,192,69,195,68,192,69,195,68,208,70,82,4,208,70,82,4,226,22,98,6,226,22,98,6,245,25,147,9,245,25,147,9,255,44,101,43,255,44,101,43,253,28,138,125,253,28,138,125,248,29,181,104,248,29,181,104,240,54,181,132,240,54,181,132,192,69,195,68,192,69,195,68,208,70,82,4,208,70,82,4,242,24,98,4,242,24,98,4},{106,27,176,170,106,27,176,170,5,172,253,245,5,172,253,245,248,60,222,197,248,60,222,197,238,114,29,196,238,114,29,196,146,181,143,164,146,181,143,164,171,7,193,13,171,7,193,13,54,206,165,78,54,206,165,78,154,154,151,57,154,154,151,57,106,27,176,170,106,27,176,170,5,172,253,245,5,172,253,245,248,60,222,197,248,60,222,197,238,114,29,196,238,114,29,196,146,181,143,164,146,181,143,164,171,7,193,13,171,7,193,13,54,206,165,78,54,206,165,78,154,154,151,57,154,154,151,57},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,1,0,80,0,0,2,0,0,99,0,22,0,32,6,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,1,0,16,16,0,0,0,96,1,0,64,16,0,2,0,0,22,0,81,1,0,1,0,96,115,0,118,1,32,103,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,16,1,1,0,0,0,0,0,0,35,0,0,17,16,0,1,32,17,0,1,1,16,16,1,16,2,0,16,2,0,33,0,0,7,0,32,0,0,2,0,0,8,0,116,16,0,1,0,112,3,0,71,16,0,114,0,0,105,0,81,8,0,146,0,112,147,0,151,1,32,120,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,112,0,0,0,0,0,4,4,68,0,176,116,80,208,112,44,2,70,0,75,180,13,112,36,99,72,8,55,7,13,0,75,5,116,99,72,208,0,0,43,6,86,5,71,109,0,0,38,252,64,11,176,15,0,0,64,252,128,109,208,15,0,0,224,255,214,111,176,15,0,0,204,255,253,253,251,13,0,0,144,218,166,10,175,218,0,0,25,145,25,145,25,145,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,1,0,80,0,0,2,0,0,99,0,22,0,32,6,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,1,0,16,16,0,0,0,96,1,0,64,16,0,2,0,0,22,0,81,1,0,1,0,96,115,0,118,1,32,103,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,16,1,1,0,0,0,0,0,0,35,0,0,17,16,0,1,32,17,0,1,1,16,16,1,16,2,0,16,2,0,33,0,0,7,0,32,0,0,2,0,0,8,0,116,16,0,1,0,112,3,0,71,16,0,114,0,0,105,0,81,8,0,146,0,112,147,0,151,1,32,120,0},+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,131,0,131,0,48,12,0,131,196,115,132,12,163,13,56,196,200,195,168,8,138,58,72,7,64,196,106,125,172,72,74,204,0,56,212,74,131,58,76,196,48,104,220,74,196,167,77,12,0,45,210,43,210,45,201,0,80,25,145,18,145,18,145,13},};-const uint16_t tex_pal[203][16] = {+const uint16_t tex_pal[211][16] = {{0x8C71,0x8410,0x7BEF,0x73AE,0x6B4D,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},{0xDDD5,0xD511,0xB4D2,0xB44F,0xA470,0xA3EE,0xABAC,0x9B4B,0x8B6C,0x8B0A,0x72EA,0x6ACA,0x7268,0x6A27,0x5A27,0x51C5},{0xD594,0xCD11,0xC4B0,0xBC6F,0xAC4F,0xABED,0xA40E,0xA38C,0x9B4B,0x8B6B,0x930A,0x82EA,0x7288,0x7268,0x6A47,0x6206},@@ -410,8 +418,16 @@ const uint16_t tex_pal[203][16] = {{0x0000,0xEF7D,0xD6BA,0xBE18,0xB5B6,0xA46C,0x9366,0x8B46,0x6A44,0x6A03,0x6A03,0x9904,0x59E3,0x8061,0x7840,0x6800},{0x433E,0x3AFE,0x3ABE,0x329E,0x325E,0x323E,0x2A3E,0x2A3E,0x2A1E,0x2A1E,0x2A1E,0x2A1E,0x2A1E,0x29FE,0x29FE,0x29FE},{0xE4A6,0xDC05,0xDBC4,0xDBA4,0xD343,0xD322,0xD302,0xD2C2,0xCAA2,0xCAA1,0xCA61,0xCA61,0xCA41,0xC221,0xC201,0xC201},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04A1,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04C1,0x04A1,0x0441,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xDCC1,0x15A0,0x0D00,0x0E20,0x04C0,0x0440,0x0440,0x0420,0x5A02,0x1A81,0x03E0,0x03A0,0x0320,0x02E0,0x0260},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04A1,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04C1,0x04A1,0x0441,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xC66B,0xA587,0x0703,0x0603,0x05C5,0x05C2,0x0563,0x0543,0x9424,0x3D29,0x0462,0x0442,0x03A2,0x0000,0x0000},};-const uint8_t tex_flags[203] = {16,16,16,16,16,16,16,0,8,16,33,16,16,16,16,16,16,16,16,16,16,16,48,48,48,48,48,48,16,0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,33,33,33,33,16,48,16,16,16,16,16,16,16,48,48,33,33,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,48,48,48,48,48,48,48,48,48,48,48,16,16,16,16,16,16,16,16,16,16,16,16,48,48,16,16,16,16,16,48,48,48,48,48,48,48,48,16,16,16,16,16,16,16,48,48,48,16,16,16,48,48,48,16,33,16,16,16,16,16,16,16,16,16,16,16,16,16,33,16,16,33,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,33,33,16,16,16,16,48,48,48,48,33,33,33,33,48,48,48,48,16,16,16,16,16,48,16,48,0,16};+const uint8_t tex_flags[211] = {16,16,16,16,16,16,16,0,8,16,33,16,16,16,16,16,16,16,16,16,16,16,48,48,48,48,48,48,16,0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,33,33,33,33,16,48,16,16,16,16,16,16,16,48,48,33,33,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,48,48,48,48,48,48,48,48,48,48,48,16,16,16,16,16,16,16,16,16,16,16,16,48,48,16,16,16,16,16,48,48,48,48,48,48,48,48,16,16,16,16,16,16,16,48,48,48,16,16,16,48,48,48,16,33,16,16,16,16,16,16,16,16,16,16,16,16,16,33,16,16,33,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,33,33,16,16,16,16,48,48,48,48,33,33,33,33,48,48,48,48,16,16,16,16,16,48,16,48,0,16,48,48,48,48,48,48,48,48};const uint8_t blk_tex[B_COUNT][6] = {{0,0,0,0,0,0}, /* AIR */@@ -628,21 +644,35 @@ const uint8_t blk_tex[B_COUNT][6] = {{199,199,200,200,200,200}, /* BED_HEAD */{201,201,201,201,201,201}, /* FLOWING_WATER */{202,202,202,202,202,202}, /* FLOWING_LAVA */+ {16,16,16,16,16,16}, /* WOOD_SLAB_OAK */+ {17,17,17,17,17,17}, /* WOOD_SLAB_SPRUCE */+ {18,18,18,18,18,18}, /* WOOD_SLAB_BIRCH */+ {19,19,19,19,19,19}, /* WOOD_SLAB_JUNGLE */+ {20,20,20,20,20,20}, /* WOOD_SLAB_ACACIA */+ {21,21,21,21,21,21}, /* WOOD_SLAB_DARK_OAK */+ {203,203,203,203,203,203}, /* CARROTS_0 */+ {204,204,204,204,204,204}, /* CARROTS_1 */+ {205,205,205,205,205,205}, /* CARROTS_2 */+ {206,206,206,206,206,206}, /* CARROTS_3 */+ {207,207,207,207,207,207}, /* POTATOES_0 */+ {208,208,208,208,208,208}, /* POTATOES_1 */+ {209,209,209,209,209,209}, /* POTATOES_2 */+ {210,210,210,210,210,210}, /* POTATOES_3 */};-const uint8_t blk_model[B_COUNT] = {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,8,8,8,1,9,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,5,5,5,5,5,5,1,1,1,1,1,4,4,4,4,4,9,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,14,14,15,10,1,1,6,9,1,7,1,2,13,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,11,1,10,1,1,13,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,8,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,5,5,3,3};-const uint8_t blk_light[B_COUNT] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,14,14,14,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,15};-const uint8_t blk_flags[B_COUNT] = {0,24,24,24,24,24,24,24,25,25,24,24,24,24,24,24,24,24,24,24,0,0,0,0,0,0,24,5,0,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,18,19,20,18,24,16,24,24,24,24,24,0,0,1,1,0,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,0,0,0,0,0,0,0,0,0,0,0,0,24,24,24,16,16,16,16,16,16,24,24,24,24,24,0,0,0,0,0,16,24,24,24,24,24,0,0,0,0,0,0,0,0,24,24,24,24,16,16,0,0,24,24,16,16,24,16,24,1,16,24,24,24,24,24,24,24,24,24,24,24,24,24,16,24,2,24,6,24,24,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,18,18,24,24,24,0,0,0,0,1,1,1,1,0,0,0,0,24,24,16,16,5,0};-const uint8_t blk_tool[B_COUNT] = {0,1,1,1,1,1,1,1,3,3,3,3,3,1,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,3,3,3,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,4,4,4,0,0,1,1,1,1,1,5,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,2,1,1,0,0,0,0,0,1,2,2,1,1,2,0,0,0,0,0,0,0,0,3,3,1,1,2,2,2,1,1,1,3,1,3,0,3,0,2,2,2,1,1,1,1,1,2,2,2,2,2,2,0,2,4,3,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,4,4,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0};-const uint8_t blk_level[B_COUNT] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};-const uint8_t blk_hard[B_COUNT] = {0,30,30,30,30,30,30,30,12,12,10,10,10,40,40,40,40,40,40,40,0,0,0,0,0,0,255,255,255,10,10,12,60,60,60,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,4,4,4,4,12,6,60,60,16,16,16,80,0,0,0,0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,0,0,0,0,0,0,0,0,0,0,0,0,60,100,40,40,40,40,40,40,40,40,0,30,40,255,0,0,0,0,0,100,40,50,60,100,50,0,0,0,0,0,0,0,0,12,12,70,70,60,60,8,14,40,60,2,10,4,8,12,0,40,20,20,15,30,30,30,30,4,4,4,4,4,4,6,20,4,12,0,60,100,40,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,40,40,40,40,40,40,40,40,4,4,10,100,10,0,0,0,0,0,0,0,0,0,0,0,0,16,6,4,4,255,255};-const uint8_t blk_id[B_COUNT] = {0,1,1,1,1,1,1,1,2,2,3,3,3,4,5,5,5,5,5,5,6,6,6,6,6,6,7,9,11,12,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,19,20,21,22,24,24,24,30,31,31,31,32,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,37,38,38,38,38,38,38,38,38,38,39,40,41,42,43,44,44,44,44,44,44,45,46,47,48,49,50,50,50,50,50,52,53,54,56,57,58,59,59,59,59,59,59,59,59,60,60,61,62,64,64,65,66,67,73,78,79,80,81,82,83,85,86,91,97,98,98,98,98,99,99,99,100,100,100,102,103,106,110,111,129,133,139,172,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,162,162,162,162,162,162,162,162,161,161,170,173,174,175,175,175,175,175,175,175,175,175,175,175,175,179,89,26,26,8,10};-const uint8_t blk_meta[B_COUNT] = {0,0,1,2,3,4,5,6,0,8,0,1,2,0,0,1,2,3,4,5,0,1,2,3,4,5,0,0,0,0,1,0,0,0,0,0,4,8,12,1,5,9,13,2,6,10,14,3,7,11,15,0,1,2,3,0,0,0,0,0,1,2,0,0,1,2,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,0,1,2,3,4,5,6,7,8,0,0,0,0,0,0,1,2,3,4,5,0,0,0,0,0,5,1,2,3,4,0,0,2,0,0,0,0,1,2,3,4,5,6,7,0,7,2,2,0,8,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,14,0,10,14,0,10,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,4,8,12,1,5,9,13,0,1,0,0,0,0,8,1,9,2,10,3,11,4,12,5,13,0,0,0,8,1,2};-const uint8_t spr_px[30952] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,244,31,102,86,102,101,102,102,86,101,70,54,102,102,86,102,102,101,102,100,70,53,102,101,85,101,85,101,101,102,70,54,102,102,102,102,101,102,102,101,70,54,102,102,102,100,102,102,102,86,70,54,102,86,102,100,102,102,102,102,86,53,102,102,102,102,101,102,102,102,70,54,102,102,102,102,102,86,86,102,85,54,101,102,102,85,101,102,101,102,70,247,31,229,238,238,238,238,238,238,238,78,53,230,237,238,238,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,53,230,238,238,238,238,238,238,238,62,54,229,238,238,238,237,238,238,238,62,52,230,238,238,237,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,54,229,238,238,238,238,238,238,238,62,247,31,229,173,218,186,184,186,173,170,58,54,229,168,170,170,170,139,217,202,41,54,230,170,170,154,186,170,186,205,60,54,230,186,138,218,172,170,173,170,59,54,230,186,202,219,202,171,173,200,59,54,229,202,170,169,170,218,172,216,74,54,230,172,170,170,186,200,202,155,58,53,230,170,187,186,170,170,186,139,74,54,230,172,203,170,169,155,138,138,58,247,31,230,170,170,171,170,187,169,170,59,54,230,186,170,171,170,138,185,138,61,54,230,173,170,172,170,170,186,172,74,53,230,170,138,170,202,138,170,170,42,54,214,218,139,170,171,138,170,218,58,54,230,170,136,172,170,170,171,218,61,37,229,138,169,170,169,202,138,170,58,53,230,170,186,218,168,219,172,170,58,54,229,186,172,139,141,169,202,152,58,247,31,229,138,218,186,171,137,170,138,58,54,230,170,169,170,170,171,170,170,58,54,230,186,154,170,169,169,173,141,59,54,230,170,171,186,171,138,170,170,60,38,229,187,168,171,172,170,173,138,74,53,230,173,170,170,170,169,138,170,58,37,230,202,170,169,202,218,155,203,58,54,230,173,170,152,170,170,218,136,58,54,230,202,186,169,200,172,173,188,57,247,31,230,136,218,170,170,140,170,138,58,54,229,186,205,154,170,169,171,170,59,54,229,154,170,170,202,138,173,202,56,54,230,187,218,138,171,172,170,205,58,54,229,170,172,204,170,170,218,171,58,54,230,221,187,218,184,170,156,201,42,54,230,171,185,170,171,169,170,184,42,70,228,138,172,138,200,171,170,170,58,53,230,168,189,170,170,138,170,172,58,247,31,230,154,138,170,170,170,170,170,60,54,230,170,202,170,170,154,168,138,58,54,230,169,170,187,170,168,170,168,58,53,230,170,168,218,170,170,218,200,73,54,229,202,173,136,170,186,173,170,40,53,230,170,168,171,218,170,170,186,61,38,230,170,203,218,170,171,171,168,57,53,230,170,170,171,173,173,170,171,58,54,230,218,173,170,168,170,170,170,58,247,31,230,170,171,202,218,170,154,218,58,53,230,186,170,216,173,202,202,218,58,54,230,170,186,140,186,186,138,170,58,54,230,168,201,185,137,201,205,202,56,54,230,170,170,154,170,186,170,202,58,37,230,170,170,170,204,170,220,154,58,69,230,170,186,187,168,202,137,170,56,70,229,173,172,184,138,219,172,141,58,54,230,168,138,173,189,170,170,168,74,247,31,229,154,173,186,172,200,170,139,58,53,230,172,189,170,170,173,168,186,56,54,230,172,188,202,170,186,170,170,58,54,230,188,204,173,170,170,154,170,59,54,229,188,170,154,170,170,168,139,58,54,230,202,168,170,184,170,172,218,56,53,230,170,218,186,170,170,170,170,58,54,230,170,204,186,170,170,186,139,58,54,230,186,185,217,202,154,168,170,58,247,31,230,188,154,184,171,170,173,186,42,70,230,170,170,171,188,186,168,173,59,38,230,189,171,170,137,170,171,170,60,54,230,155,168,157,170,170,186,173,58,53,230,170,219,186,170,138,203,202,41,53,230,173,170,170,138,170,185,172,56,54,230,171,136,173,140,170,170,170,60,54,230,186,187,202,173,217,170,170,57,54,230,170,170,172,170,170,187,218,58,247,31,230,169,170,173,184,170,138,171,72,54,214,170,172,138,154,219,139,170,58,54,228,173,186,220,205,170,218,186,58,54,230,172,218,170,155,170,138,186,44,38,229,186,186,170,168,202,185,204,58,38,230,152,189,173,170,218,200,156,56,36,230,220,170,138,171,170,203,170,60,70,230,217,170,171,168,172,173,172,58,54,230,173,170,172,219,170,170,170,58,247,31,229,170,157,170,170,169,170,173,59,54,230,170,170,154,202,186,139,204,60,54,230,170,157,172,140,186,170,218,58,54,230,170,170,171,168,170,170,170,58,54,230,202,155,202,138,172,156,168,57,53,229,138,172,170,170,170,170,173,58,54,230,173,170,168,170,170,202,170,58,53,230,186,168,170,154,170,154,170,58,54,229,154,170,202,184,186,138,202,58,247,31,229,170,154,169,186,218,186,216,58,70,230,154,170,170,189,154,186,217,74,54,230,171,172,217,170,170,170,171,58,54,229,154,153,170,201,170,202,170,59,54,230,170,218,220,171,186,170,170,58,54,230,186,186,171,171,170,154,184,59,54,230,170,170,170,218,154,186,172,58,53,230,138,171,170,152,170,170,154,58,54,229,154,152,170,170,170,186,218,56,247,31,230,168,172,173,171,202,185,205,58,70,230,170,155,218,170,170,170,170,58,38,230,170,170,186,173,202,170,170,57,54,230,170,216,168,171,154,138,172,58,54,230,168,154,170,170,172,170,186,59,38,230,171,170,173,170,140,170,138,58,54,230,170,216,170,218,170,170,170,42,54,230,185,186,173,203,186,170,154,58,54,230,202,218,171,186,170,154,186,59,247,31,230,138,154,186,170,169,170,170,58,37,229,171,154,170,141,218,186,170,59,38,228,170,141,186,172,202,188,189,42,53,230,202,171,152,170,187,187,170,58,70,230,170,170,155,138,170,173,138,60,54,230,171,155,186,219,152,170,170,75,38,230,189,168,170,170,203,202,168,58,54,230,170,202,155,170,186,169,170,58,53,230,170,170,170,138,170,170,216,58,247,31,230,170,170,170,170,138,170,170,59,54,230,172,202,173,171,169,170,171,58,38,229,171,138,170,218,170,138,201,60,54,230,186,170,187,138,170,203,170,58,69,214,168,170,171,203,204,173,156,59,54,230,170,172,170,172,170,202,170,57,54,230,202,168,170,168,155,170,170,58,54,230,173,170,204,170,171,139,170,56,54,230,170,219,203,218,184,170,140,58,247,31,230,170,189,218,186,170,189,170,58,54,230,170,170,172,171,170,140,170,58,54,230,136,171,186,170,173,170,170,60,54,230,220,216,169,168,218,218,200,74,69,230,172,171,138,154,170,173,168,74,70,230,218,172,169,187,169,188,137,59,53,230,170,138,173,218,204,170,138,57,54,230,170,204,186,188,171,202,170,61,54,229,186,168,141,218,170,201,169,60,247,31,52,51,51,51,51,34,51,36,51,54,52,51,50,51,51,51,50,51,51,53,52,50,35,35,51,51,67,35,67,70,52,52,51,51,51,51,34,51,51,54,52,51,51,51,51,35,51,51,51,54,52,51,51,51,51,68,51,51,50,70,52,51,51,51,49,67,51,51,51,54,19,51,51,51,51,67,35,51,51,54,52,51,51,51,51,67,52,51,51,247,31,101,86,102,85,102,86,102,101,102,70,85,102,86,86,102,102,102,102,102,70,102,102,85,101,102,101,102,102,102,70,102,102,86,101,102,101,102,85,102,70,86,102,86,102,102,86,102,101,101,70,86,101,101,102,102,101,102,101,101,85,86,102,101,102,102,86,102,102,102,70,102,102,102,102,86,102,102,102,101,70,102,86,102,102,102,102,102,102,86,247,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,30,17,33,49,67,51,50,35,67,51,51,231,30,119,135,119,119,133,135,135,135,119,118,235,30,167,219,219,187,187,186,203,203,187,102,235,30,183,0,0,0,0,0,0,0,0,116,235,62,181,0,0,0,0,0,0,0,0,114,234,62,183,0,0,0,0,0,0,0,0,115,234,62,183,0,0,0,0,0,0,0,0,115,235,78,183,0,0,0,0,0,0,0,0,115,235,62,183,0,0,0,0,0,0,0,0,99,235,62,182,0,0,0,0,0,0,0,0,114,237,62,183,0,0,0,0,0,0,0,0,114,234,46,199,0,0,0,0,0,0,0,0,115,236,62,214,0,0,0,0,0,0,0,0,115,235,46,167,0,0,0,0,0,0,0,0,115,235,62,151,0,0,0,0,0,0,0,0,131,237,46,168,0,0,0,0,0,0,0,0,115,235,78,215,0,0,0,0,0,0,0,0,100,234,78,200,0,0,0,0,0,0,0,0,114,235,62,200,0,0,0,0,0,0,0,0,129,237,62,71,52,35,68,67,51,51,51,18,113,235,62,119,133,119,135,117,120,119,120,120,120,235,126,187,170,205,187,170,187,187,171,155,219,235,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,16,17,17,17,17,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,32,2,0,32,17,18,33,0,18,17,17,17,2,18,17,17,17,2,18,17,17,17,2,32,17,17,33,0,0,18,17,2,0,0,32,33,0,0,0,0,2,0,0,0,0,0,0,0,0,34,32,2,0,32,33,34,34,0,32,34,34,34,0,48,34,34,50,0,0,35,34,3,0,0,48,50,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,32,33,2,0,0,32,34,2,0,0,48,34,2,0,0,0,35,2,0,0,0,48,2,0,0,0,0,3,0,0,0,0,0,0,0,0,34,0,0,0,32,17,2,0,0,18,17,33,0,0,18,17,17,2,0,32,17,17,2,0,0,18,17,2,0,0,32,34,33,2,0,0,0,18,2,0,0,0,34,0,0,0,0,0,0,0,135,0,0,0,112,115,4,0,0,128,71,69,0,0,0,105,85,0,0,0,144,102,0,0,0,0,0,2,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,147,10,0,0,0,64,89,0,0,0,160,106,0,0,0,0,120,0,0,0,0,0,2,0,0,0,0,16,0,0,0,0,0,0,32,2,0,34,0,18,33,32,17,2,18,17,18,17,2,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,0,34,34,2,0,144,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,9,25,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,102,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,145,57,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,68,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,147,25,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,102,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,145,144,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,9,240,238,204,204,238,238,239,204,236,255,255,207,204,236,238,238,206,204,238,254,255,238,204,204,254,255,239,204,188,236,254,238,204,236,238,254,207,204,236,255,255,204,204,238,238,255,238,206,188,204,255,239,204,204,236,254,239,238,238,255,255,207,204,238,238,255,239,204,236,238,255,238,206,204,236,255,239,238,204,238,255,238,204,187,236,238,238,206,204,255,15,175,122,34,34,135,154,73,36,84,170,171,58,34,84,152,155,138,37,84,169,171,138,69,68,136,155,73,67,85,153,171,57,52,68,152,155,40,66,68,137,155,40,35,84,137,221,154,116,136,152,201,153,88,117,152,186,170,53,67,149,185,170,72,116,152,185,154,36,66,131,185,169,69,84,167,185,170,53,132,135,185,154,37,65,132,184,154,53,68,146,249,143,18,17,68,130,139,18,50,100,83,139,17,51,34,114,123,51,97,70,83,139,20,17,18,33,90,17,33,34,50,123,49,102,51,131,91,33,51,102,83,123,51,67,102,54,187,19,65,102,35,229,37,99,102,51,184,39,50,102,54,184,56,35,100,51,183,23,33,51,51,180,37,49,102,54,181,55,49,38,97,184,21,33,50,51,183,39,50,35,50,248,175,88,136,85,170,155,120,119,85,153,155,137,120,85,170,171,74,84,85,169,171,73,119,85,170,171,89,120,68,168,155,137,120,133,170,155,89,135,85,169,171,89,136,88,169,221,153,136,69,148,234,153,120,85,165,186,137,135,136,165,186,154,133,88,165,186,170,136,88,165,186,153,135,119,132,185,120,68,36,149,186,154,84,117,168,186,170,120,85,168,250,240,238,204,204,236,255,255,238,254,255,255,206,188,187,203,255,239,238,238,255,255,255,238,238,255,255,238,204,204,252,255,239,204,238,254,255,239,204,204,252,255,206,204,236,255,255,238,204,204,236,238,239,238,238,238,255,255,204,204,236,255,239,206,204,236,255,255,188,203,204,254,239,206,238,238,254,239,206,204,238,254,239,206,236,238,254,255,238,236,255,15,0,64,68,0,0,0,52,51,4,0,64,3,0,67,0,52,16,1,32,4,52,16,0,32,4,52,0,0,32,4,64,3,0,66,0,0,36,34,4,0,0,64,68,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,102,4,0,0,112,151,186,84,70,70,6,160,167,121,186,100,102,102,100,169,171,155,122,101,102,85,84,167,122,123,154,86,84,100,84,154,154,121,151,69,86,102,84,185,170,167,153,96,102,84,85,170,169,122,10,0,80,101,134,169,167,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,16,7,0,0,0,0,0,48,29,83,11,0,0,0,0,32,34,58,3,0,0,0,0,0,160,1,0,0,0,6,0,0,0,0,0,0,144,157,12,0,0,0,0,176,153,227,38,4,0,0,224,158,124,83,214,214,6,176,179,237,254,216,109,98,99,89,183,253,139,249,198,44,199,179,139,135,155,207,206,41,83,251,243,226,254,53,86,214,93,41,251,248,153,160,61,82,37,181,180,143,15,0,32,34,130,89,248,9,0,0,0,96,28,248,8,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,20,67,8,0,0,0,0,112,17,51,8,0,0,0,0,0,160,7,0,0,0,1,0,0,0,0,0,0,224,56,1,0,0,0,0,112,251,147,102,1,0,0,32,186,245,67,214,214,1,112,202,174,249,98,102,98,227,203,201,254,252,168,54,68,221,202,172,174,252,74,72,35,211,252,250,153,250,52,70,102,221,91,204,202,251,240,54,66,164,204,203,172,15,0,208,100,230,203,202,15,0,0,0,224,179,202,15,0,0,0,0,0,208,15,0,0,0,0,0,0,16,5,0,0,0,0,0,64,42,27,13,0,0,0,0,16,65,49,1,0,0,0,0,0,16,4,0,0,0,4,0,0,0,0,0,0,224,184,15,0,0,0,0,192,175,63,54,7,0,0,80,231,249,83,34,252,3,160,215,230,175,35,228,88,49,187,236,222,237,216,41,34,101,171,253,233,238,88,131,52,18,246,124,159,156,101,83,36,178,191,167,109,122,96,56,130,56,105,234,171,11,0,240,130,88,174,198,8,0,0,0,224,151,134,10,0,0,0,0,0,128,10,0,0,0,0,0,0,80,1,0,0,0,0,0,16,37,27,8,0,0,0,0,128,18,17,7,0,0,0,0,0,128,8,0,0,0,2,0,0,0,0,0,0,192,100,9,0,0,0,0,128,252,78,55,1,0,0,112,168,249,99,34,199,2,112,140,235,253,36,213,185,194,219,220,154,249,148,101,38,230,173,217,169,253,100,67,69,178,218,124,158,252,38,99,56,242,191,172,185,250,224,116,70,201,169,186,171,15,0,240,146,212,170,199,14,0,0,0,240,195,203,15,0,0,0,0,0,192,15,0,0,0,0,0,0,32,2,0,0,0,0,0,16,36,18,7,0,0,0,0,96,35,66,1,0,0,0,0,0,32,9,0,0,0,7,0,0,0,0,0,0,128,146,2,0,0,0,0,192,194,106,170,3,0,0,192,120,235,75,168,186,12,224,155,214,206,167,85,104,131,107,107,253,254,163,153,98,101,205,186,239,202,92,151,131,34,248,107,252,233,87,36,90,39,188,212,221,95,16,171,50,41,140,155,235,13,0,48,53,117,147,91,9,0,0,0,64,209,220,15,0,0,0,0,0,128,9,0,0,0,0,0,0,32,1,0,0,0,0,0,16,17,17,1,0,0,0,0,112,33,33,3,0,0,0,0,0,112,8,0,0,0,1,0,0,0,0,0,0,128,82,1,0,0,0,0,96,248,68,103,1,0,0,64,200,249,88,82,101,1,64,138,138,253,51,84,86,211,171,201,172,253,98,101,82,182,204,157,171,250,87,86,99,134,156,186,236,248,54,100,87,148,188,138,204,252,144,88,66,213,220,138,170,15,0,144,51,197,136,169,15,0,0,0,144,211,138,15,0,0,0,0,0,208,14,0,0,0,0,0,0,128,5,0,0,0,0,0,48,133,133,5,0,0,0,0,80,81,51,5,0,0,0,0,0,80,3,0,0,0,1,0,0,0,0,0,0,112,30,2,0,0,0,0,112,247,234,62,1,0,0,112,51,207,106,230,17,3,112,255,223,188,74,234,238,39,119,207,156,204,166,166,234,166,157,155,207,201,110,170,102,70,207,251,252,155,170,102,164,106,188,191,203,185,96,110,170,102,155,201,191,11,0,160,228,234,204,252,11,0,0,0,160,106,155,12,0,0,0,0,0,224,12,0,0,0,0,0,0,128,5,0,0,0,0,0,80,136,133,5,0,0,0,0,80,84,85,5,0,0,0,0,0,80,5,0,0,0,1,0,0,0,0,0,0,48,30,1,0,0,0,0,48,243,234,46,1,0,0,48,51,207,126,231,17,2,48,255,223,188,106,234,238,33,51,207,156,204,167,167,234,167,157,155,207,201,126,170,119,103,207,251,204,155,170,119,166,122,188,191,203,185,112,126,170,119,155,201,255,11,0,112,234,234,204,252,11,0,0,0,160,122,155,12,0,0,0,0,0,224,12,0,0,0,0,0,0,64,6,0,0,0,0,0,96,38,42,6,0,0,0,0,96,34,102,1,0,0,0,0,0,32,2,0,0,0,5,0,0,0,0,0,0,112,136,3,0,0,0,0,176,185,136,216,8,0,0,144,183,183,88,53,136,3,176,185,201,155,56,216,93,221,233,190,123,187,133,133,216,133,124,121,190,183,93,136,85,53,190,233,235,121,136,85,131,88,155,158,185,151,80,93,136,85,121,183,158,9,0,128,211,216,187,235,9,0,0,0,128,88,121,11,0,0,0,0,0,208,11,0,0,0,0,0,0,16,4,0,0,0,0,0,32,18,55,2,0,0,0,0,112,17,33,5,0,0,0,0,0,48,3,0,0,0,2,0,0,0,0,0,0,64,126,1,0,0,0,0,160,167,222,218,6,0,0,112,164,174,38,34,111,1,160,169,141,218,150,214,46,221,247,175,77,250,98,247,102,99,120,71,239,164,46,109,101,146,175,249,122,126,150,165,20,38,218,127,183,116,32,47,246,125,71,213,159,13,0,96,226,217,170,250,7,0,0,0,96,127,77,14,0,0,0,0,0,208,10,0,0,0,0,0,0,144,1,0,0,0,0,0,64,139,152,11,0,0,0,0,64,75,97,8,0,0,0,0,0,128,8,0,0,0,13,0,0,0,0,0,0,224,153,9,0,0,0,0,96,254,181,220,8,0,0,240,207,175,37,146,201,9,240,255,124,122,21,165,154,204,238,252,58,170,82,82,165,153,238,55,173,163,42,85,34,18,173,215,218,55,85,34,81,37,122,125,167,115,32,42,85,34,55,163,125,7,0,80,161,165,170,218,7,0,0,0,80,37,55,10,0,0,0,0,0,160,10,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,160,4,0,0,0,0,0,160,162,130,1,0,0,0,0,160,130,165,2,0,0,0,0,0,160,1,0,0,0,6,0,0,0,0,0,0,176,130,2,0,0,0,0,112,185,198,102,2,0,0,144,155,127,50,194,50,2,176,153,222,123,210,98,214,98,183,190,121,191,99,202,54,195,191,185,158,187,194,50,211,98,155,127,155,127,34,198,166,194,126,183,190,123,176,98,204,99,155,191,153,15,0,208,98,194,127,183,14,0,0,0,208,50,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,80,2,0,0,0,0,0,80,81,49,1,0,0,0,0,80,49,82,1,0,0,0,0,0,80,1,0,0,0,4,0,0,0,0,0,0,208,98,2,0,0,0,0,128,218,148,68,2,0,0,160,172,143,50,146,50,2,192,170,222,140,178,98,180,98,200,222,138,223,67,150,52,147,207,218,174,220,146,50,179,66,172,143,172,143,34,148,100,146,142,200,206,140,112,98,150,99,172,223,170,15,0,176,66,146,143,216,14,0,0,0,176,50,204,15,0,0,0,0,0,144,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,100,1,0,0,0,0,144,100,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,192,178,2,0,0,0,0,112,200,181,85,2,0,0,128,138,127,50,178,50,2,160,136,238,122,210,98,213,98,167,206,120,207,83,187,53,179,175,200,142,202,178,50,211,82,138,127,138,127,34,181,181,178,126,167,174,122,160,98,187,99,138,207,136,15,0,208,82,178,127,199,14,0,0,0,208,50,170,15,0,0,0,0,0,176,14,0,0,0,0,0,0,80,1,0,0,0,0,0,80,81,49,1,0,0,0,0,80,49,81,1,0,0,0,0,0,80,1,0,0,0,4,0,0,0,0,0,0,208,98,2,0,0,0,0,128,218,148,68,2,0,0,160,172,143,50,146,50,2,192,170,222,140,178,98,180,98,200,222,138,223,67,150,52,147,207,218,174,220,146,50,179,66,172,143,172,143,34,148,100,146,142,200,206,140,112,98,150,99,172,223,170,15,0,176,66,146,143,216,14,0,0,0,176,50,204,15,0,0,0,0,0,144,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,176,195,3,0,0,0,0,112,184,197,85,3,0,0,128,139,127,67,195,67,3,176,136,238,123,211,83,213,83,183,190,120,191,84,204,69,196,191,184,142,187,195,67,212,83,139,127,139,127,51,197,197,195,126,183,190,123,160,83,204,84,139,191,136,15,0,208,83,195,127,183,14,0,0,0,208,67,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,17,0,0,33,12,0,0,0,38,16,33,32,3,0,0,16,115,12,194,155,201,0,0,32,200,12,60,185,59,0,0,0,128,179,147,203,16,2,0,16,12,154,17,0,33,12,0,32,48,85,114,188,192,0,0,0,66,155,195,153,53,1,0,16,183,16,188,27,12,44,0,33,204,32,60,11,0,192,0,194,192,176,19,6,0,0,0,0,0,48,180,12,0,0,0,0,0,48,185,0,0,0,0,0,0,128,185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,1,0,0,0,0,0,0,36,68,0,0,0,0,0,0,48,6,0,0,0,0,16,2,81,6,33,0,0,0,33,17,98,21,2,0,0,16,52,3,82,69,0,1,0,0,49,17,52,19,52,3,0,0,0,83,83,49,101,1,0,0,16,49,21,84,4,0,0,0,0,16,19,53,1,0,0,0,0,64,81,69,20,0,0,0,0,0,52,22,0,0,0,0,0,0,99,37,0,0,0,0,0,0,96,6,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,68,3,0,48,3,0,0,0,65,64,51,64,3,0,0,64,17,66,4,68,49,0,0,16,82,21,4,68,66,0,0,52,64,17,81,33,0,0,0,68,3,48,19,5,52,0,0,64,80,68,20,21,64,0,0,19,33,69,17,18,4,0,64,4,52,85,52,32,52,0,64,0,0,18,68,64,68,3,0,0,0,51,33,64,64,4,0,0,0,36,21,0,0,0,0,0,0,32,81,0,0,0,0,0,0,32,33,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,22,0,0,0,0,0,16,0,41,17,0,0,0,0,97,68,73,38,0,0,0,0,32,104,100,0,0,0,0,0,0,100,17,1,0,0,0,0,17,16,131,22,0,0,0,48,102,57,103,1,0,0,0,0,19,102,107,16,3,0,0,0,0,103,102,102,1,0,0,0,0,96,177,16,0,0,0,0,16,131,35,0,0,0,0,0,16,102,41,0,0,0,0,0,0,98,11,0,0,0,0,0,0,133,91,0,0,0,0,0,85,200,221,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,1,0,0,0,0,0,32,85,80,0,1,0,0,0,81,200,80,18,6,81,0,0,16,134,66,98,1,5,0,0,0,98,201,181,85,5,0,0,0,85,92,6,41,0,0,0,0,49,53,197,89,0,0,0,0,16,165,193,1,0,0,0,0,80,115,91,0,0,0,0,0,0,147,11,0,0,0,0,0,0,96,201,0,0,0,0,0,0,144,11,0,0,0,0,0,0,128,185,0,0,0,0,0,0,156,203,0,0,0,0,0,0,0,0,0,0,0,0,102,0,0,0,1,0,0,0,16,6,6,102,99,0,0,0,96,11,50,99,102,0,0,96,182,1,101,6,187,6,0,0,81,101,96,176,111,7,0,0,0,102,102,251,54,54,0,96,102,211,28,102,19,99,0,0,3,119,55,49,102,6,0,0,0,103,183,248,0,0,0,0,0,3,206,207,0,0,0,0,0,0,137,188,0,0,0,0,0,0,202,252,0,0,0,0,0,0,120,247,0,0,0,0,0,0,200,247,0,0,0,0,0,0,201,252,0,0,0,0,0,0,16,1,0,0,0,0,0,64,136,72,1,0,0,0,0,16,24,136,4,0,0,0,0,0,128,1,0,0,0,9,0,0,0,0,0,0,112,43,5,0,0,0,0,160,119,82,41,2,0,0,48,115,202,82,41,41,9,160,163,55,202,146,153,153,146,167,172,124,58,149,153,85,82,163,58,60,122,89,82,146,82,106,122,55,115,37,89,153,82,199,170,163,119,144,153,82,85,170,167,58,10,0,80,149,185,167,167,7,0,0,0,144,41,163,3,0,0,0,0,0,80,10,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,3,0,0,0,0,0,0,64,117,7,0,0,0,0,160,223,102,87,5,0,0,192,172,203,101,54,115,3,176,219,234,173,49,53,53,117,221,216,186,139,118,49,83,85,190,187,171,188,119,149,83,115,190,171,174,237,102,118,117,51,164,223,207,221,48,86,119,101,223,239,75,11,0,48,51,87,238,204,10,0,0,0,80,99,221,4,0,0,0,0,0,80,8,0,0,0,0,0,0,48,3,0,0,0,0,0,48,19,81,3,0,0,0,0,48,86,81,3,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,112,99,2,0,0,0,0,208,71,153,154,10,0,0,224,231,116,152,88,133,5,176,219,239,187,130,34,150,34,219,127,125,222,82,51,85,18,235,187,238,190,104,170,154,85,190,180,79,191,81,161,26,138,237,254,238,127,32,170,86,57,183,247,187,7,0,160,153,154,221,253,15,0,0,0,48,38,119,11,0,0,0,0,0,96,7,0,0,0,0,0,0,32,1,0,0,0,0,0,16,34,33,1,0,0,0,0,16,17,17,3,0,0,0,0,0,16,2,0,0,0,4,0,0,0,0,0,0,192,67,6,0,0,0,0,176,158,87,119,5,0,0,224,170,250,37,84,84,2,192,207,174,223,101,85,72,72,238,171,153,203,101,55,151,153,238,250,207,203,133,115,114,148,203,191,236,239,166,119,51,70,174,187,252,190,144,55,37,66,173,254,233,12,0,48,85,148,154,191,9,0,0,0,80,120,250,11,0,0,0,0,0,128,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,33,33,1,0,0,0,0,16,17,17,3,0,0,0,0,0,16,1,0,0,0,5,0,0,0,0,0,0,208,51,5,0,0,0,0,192,157,86,135,4,0,0,192,187,251,36,84,68,2,192,206,174,238,100,84,72,56,237,188,154,203,101,40,134,169,204,234,207,203,133,131,114,131,203,222,204,238,166,104,50,53,190,221,251,190,144,55,36,50,189,254,233,12,0,48,85,164,171,190,10,0,0,0,80,120,251,11,0,0,0,0,0,128,11,0,0,0,0,0,0,32,1,0,0,0,0,0,16,146,34,2,0,0,0,0,32,149,17,1,0,0,0,0,0,16,2,0,0,0,12,0,0,0,0,0,0,240,71,8,0,0,0,0,144,150,231,151,4,0,0,96,223,223,126,116,119,7,144,222,157,253,50,124,78,114,175,141,223,154,116,23,119,68,221,217,255,141,66,67,78,36,143,239,173,218,120,119,68,126,221,173,175,174,224,148,71,68,174,239,254,10,0,64,136,183,213,250,10,0,0,0,112,120,174,13,0,0,0,0,0,128,10,0,0,0,0,0,0,64,4,0,0,0,0,0,80,102,86,4,0,0,0,0,64,70,102,5,0,0,0,0,0,96,4,0,0,0,10,0,0,0,0,0,0,208,124,9,0,0,0,0,224,221,151,122,7,0,0,176,219,254,151,26,122,10,224,235,189,254,161,162,170,162,237,239,143,190,169,170,25,151,235,132,191,222,154,23,161,151,78,222,184,219,25,154,170,151,253,238,59,221,160,170,17,153,238,237,184,14,0,144,169,195,237,237,13,0,0,0,160,122,235,11,0,0,0,0,0,144,14,0,0,0,0,0,0,32,2,0,0,0,0,0,48,68,52,2,0,0,0,0,32,36,68,3,0,0,0,0,0,64,2,0,0,0,9,0,0,0,0,0,0,208,108,8,0,0,0,0,224,221,134,105,6,0,0,176,219,254,134,25,105,9,224,235,189,254,145,151,153,151,237,239,175,190,152,153,24,134,235,165,191,222,137,22,145,134,94,222,186,219,24,137,153,134,253,238,171,221,144,153,17,136,238,237,186,14,0,128,152,199,237,237,13,0,0,0,144,105,235,11,0,0,0,0,0,128,14,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,70,4,0,0,112,151,186,84,214,70,6,160,167,121,186,109,110,102,110,169,171,251,122,101,102,213,84,167,254,123,154,86,212,109,84,234,154,127,151,213,86,102,84,185,170,247,153,96,102,220,85,170,169,127,10,0,80,101,142,169,169,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,17,17,3,0,0,0,0,0,192,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,130,7,0,0,240,159,149,132,116,46,4,80,181,95,169,114,120,45,36,251,185,223,153,116,221,62,66,190,251,255,102,114,114,189,116,172,255,255,86,103,34,217,103,165,198,252,182,208,100,232,66,165,165,252,11,0,208,231,40,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,32,17,17,2,0,0,0,0,0,48,3,0,0,0,8,0,0,0,0,0,0,48,233,6,0,0,0,0,112,71,204,130,8,0,0,208,126,115,132,132,45,4,48,164,62,151,98,137,44,36,219,167,190,119,132,204,45,66,173,234,239,85,130,130,188,132,171,222,223,68,104,34,201,102,147,181,235,165,208,100,216,66,163,163,235,10,0,192,216,41,183,231,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,80,5,0,0,0,0,0,80,133,88,5,0,0,0,0,16,88,133,14,0,0,0,0,0,16,1,0,0,0,2,0,0,0,0,0,0,208,100,9,0,0,0,0,112,201,147,70,4,0,0,192,218,201,22,238,70,4,144,202,201,158,54,25,36,68,154,255,153,188,66,68,22,70,215,201,157,154,65,105,68,243,174,124,124,237,46,150,67,98,125,156,153,254,224,145,100,68,202,157,234,7,0,64,70,100,153,122,9,0,0,0,96,246,156,12,0,0,0,0,0,32,9,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,112,17,17,3,0,0,0,0,0,144,2,0,0,0,12,0,0,0,0,0,0,128,119,3,0,0,0,0,240,248,194,85,12,0,0,224,248,168,115,210,45,9,96,153,172,111,93,204,36,73,168,110,159,235,37,205,195,37,95,156,159,164,99,198,101,83,234,171,139,142,45,76,66,76,251,86,153,188,208,39,89,116,152,233,136,15,0,80,196,215,254,152,10,0,0,0,80,39,203,14,0,0,0,0,0,208,9,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,24,8,8,0,0,0,0,128,8,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,96,147,2,0,0,0,0,176,96,0,192,0,0,0,0,198,11,147,0,144,3,176,6,0,91,3,144,195,67,199,182,13,96,144,48,147,3,112,0,80,176,4,57,0,9,112,182,96,11,3,51,3,3,109,6,96,108,192,147,67,147,204,107,0,0,0,0,144,169,96,192,6,0,0,0,64,3,96,11,0,0,0,0,0,0,11,0,0,0,0,0,0,0,1,0,0,0,0,0,0,170,16,1,0,0,0,0,16,16,176,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,64,0,0,0,0,0,0,143,4,2,0,0,0,0,127,176,5,3,35,13,144,15,9,238,53,0,38,208,0,7,9,239,192,93,208,64,0,139,8,7,32,13,213,125,247,174,0,128,80,3,3,193,150,0,170,231,0,6,54,4,15,0,175,11,0,208,91,48,160,8,7,0,0,0,0,2,224,9,0,0,0,0,0,32,0,0,0,0,0,0,0,32,6,0,0,0,0,0,32,51,34,1,0,0,0,0,32,98,6,6,0,0,0,0,0,32,6,0,0,0,4,0,0,0,0,0,0,224,164,4,0,0,0,0,64,175,64,0,4,0,0,240,112,169,64,64,32,12,160,122,154,5,4,64,68,124,170,160,170,160,148,66,148,67,122,208,173,170,76,3,76,192,224,169,160,170,76,32,200,192,154,229,238,0,64,68,122,68,154,127,254,10,0,0,68,112,250,170,10,0,0,0,0,196,160,10,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,25,17,1,0,0,0,0,16,24,17,4,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,176,116,3,0,0,0,0,160,170,227,131,6,0,0,176,154,222,94,227,118,6,176,233,203,186,51,86,248,102,175,234,235,186,229,53,84,52,237,190,219,207,34,100,56,146,158,250,159,155,134,53,116,70,175,157,205,219,112,232,248,130,156,157,202,13,0,80,88,88,250,185,9,0,0,0,48,98,249,11,0,0,0,0,0,144,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,32,2,0,0,0,1,0,0,0,0,0,0,96,0,1,0,0,0,0,80,0,1,48,1,0,0,80,0,112,0,0,0,1,0,0,0,112,3,0,1,64,80,0,0,112,0,0,0,67,0,96,0,0,3,0,0,0,0,0,0,112,0,0,0,64,0,80,80,96,64,0,0,1,0,0,0,7,0,0,0,64,0,0,7,0,0,0,64,64,0,7,0,0,0,0,0,48,7,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,18,1,0,0,0,0,16,18,42,1,0,0,0,0,0,32,1,0,0,0,5,0,0,0,0,0,0,128,55,4,0,0,0,0,144,136,67,61,3,0,0,96,134,185,67,197,53,5,144,150,104,185,93,90,85,93,200,159,235,105,84,85,164,67,150,237,235,142,245,211,93,67,249,249,110,142,52,79,205,67,190,153,150,136,80,92,77,77,153,152,111,9,0,64,84,124,152,159,8,0,0,0,80,53,150,6,0,0,0,0,0,64,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,81,17,5,0,0,0,0,48,21,17,5,0,0,0,0,0,64,4,0,0,0,2,0,0,0,0,0,0,144,19,1,0,0,0,0,112,234,51,70,1,0,0,112,201,234,53,69,82,1,64,172,170,254,54,99,134,198,121,188,186,251,85,51,36,200,153,153,154,221,196,52,102,196,201,153,187,219,71,136,70,132,153,247,169,235,80,132,70,134,252,253,205,13,0,144,70,116,219,175,13,0,0,0,160,116,155,13,0,0,0,0,0,192,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,86,5,0,0,0,0,160,251,54,120,3,0,0,160,253,218,87,53,88,3,176,253,219,252,69,71,56,71,253,202,191,175,88,136,104,52,218,187,234,252,68,87,134,134,237,170,252,188,136,131,134,52,218,223,223,251,80,84,51,88,252,175,205,10,0,64,104,52,234,253,13,0,0,0,112,105,234,15,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,69,4,0,0,0,0,160,250,52,102,3,0,0,160,236,250,70,55,71,3,160,220,201,251,67,51,55,53,220,185,174,235,131,115,53,131,201,221,189,237,116,131,70,133,204,186,159,237,117,102,99,132,202,159,187,223,128,103,118,131,157,234,203,15,0,128,84,134,204,203,15,0,0,0,128,133,207,13,0,0,0,0,0,128,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,144,86,4,0,0,0,0,144,250,53,119,3,0,0,144,254,250,83,51,87,3,160,253,233,252,67,51,54,70,253,201,186,252,101,83,54,131,233,169,205,252,102,53,86,134,220,201,172,251,102,83,101,134,218,204,204,250,128,87,53,133,220,154,236,15,0,128,101,131,237,236,15,0,0,0,128,134,237,15,0,0,0,0,0,128,15,0,0,0,4,0,0,0,3,0,0,64,64,0,0,52,49,4,0,4,0,19,67,0,2,48,48,0,0,64,0,32,4,0,2,0,0,32,3,36,48,48,48,0,0,4,64,64,0,3,0,4,0,3,4,52,64,48,0,3,20,66,50,34,3,0,3,48,48,0,3,16,50,52,50,19,0,4,32,36,64,0,3,48,0,4,64,64,0,3,4,4,0,48,64,32,64,50,0,3,0,32,3,51,4,0,51,0,0,4,64,2,0,52,49,0,64,0,0,49,68,0,0,4,4,0,0,4,0,0,0,64,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,2,0,1,0,0,0,0,16,2,0,33,0,0,16,1,16,33,18,1,0,0,0,18,0,17,33,18,0,0,0,32,33,33,2,2,0,0,0,0,18,34,0,0,0,0,0,16,17,2,32,0,0,16,17,17,18,33,17,17,0,0,32,34,16,33,2,34,1,0,0,1,0,33,2,0,1,0,0,1,32,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,32,33,0,0,0,0,0,64,0,0,0,0,0,0,0,16,0,0,112,0,0,0,1,64,0,1,7,0,224,0,229,64,8,4,14,7,225,1,85,64,14,4,126,0,137,228,80,160,14,236,67,1,6,225,96,176,14,158,14,1,6,68,126,206,202,126,14,6,14,64,142,206,10,90,66,54,7,128,14,238,184,14,238,231,9,144,14,14,174,14,174,233,10,224,2,14,158,14,190,234,0,224,62,190,94,46,190,110,0,80,34,174,78,40,190,126,12,208,236,195,142,143,254,254,12,91,237,253,223,222,221,206,15,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,19,34,0,0,0,0,0,0,18,2,0,0,0,0,0,48,35,51,0,0,0,0,0,35,18,34,0,0,0,0,0,48,35,51,2,0,0,0,0,35,18,34,3,0,0,0,0,50,35,51,2,0,0,0,32,35,18,34,51,0,0,0,0,48,19,51,2,0,0,0,32,35,18,34,51,0,0,0,0,50,19,51,34,0,0,0,32,0,32,3,0,2,0,0,0,0,32,3,0,0,0,0,0,0,32,3,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,2,0,1,0,0,0,0,16,2,0,33,0,0,16,1,16,33,18,1,0,0,0,18,0,17,33,18,0,0,0,32,33,33,2,2,0,0,0,0,18,34,0,0,0,0,0,16,17,2,32,0,0,16,17,17,18,33,17,17,0,0,32,34,16,33,2,34,1,0,0,1,0,33,2,0,1,0,0,1,32,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,32,33,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,174,72,132,5,0,0,208,175,252,66,69,132,7,224,186,235,173,38,135,71,130,186,252,191,234,68,70,130,69,188,175,253,186,104,100,72,130,175,202,170,255,35,99,36,72,220,175,173,235,96,135,101,55,171,252,219,13,0,48,68,98,253,170,12,0,0,0,64,38,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,224,53,6,0,0,0,0,224,174,88,133,6,0,0,208,174,253,83,86,133,8,224,202,236,189,54,152,88,131,202,253,207,234,101,87,131,86,189,191,253,186,121,117,88,147,175,218,186,255,52,100,54,88,221,175,174,236,128,136,118,56,172,253,220,14,0,64,86,115,254,170,13,0,0,0,80,54,202,13,0,0,0,0,0,80,14,0,0,0,0,0,0,80,1,0,0,0,0,0,80,85,85,5,0,0,0,0,80,85,81,5,0,0,0,0,0,80,1,0,0,0,8,0,0,0,0,0,0,224,35,6,0,0,0,0,208,174,56,131,6,0,0,192,174,252,51,54,131,7,208,186,235,172,38,136,55,131,186,252,191,234,67,71,131,70,172,175,236,170,120,115,56,130,175,202,170,239,35,99,36,72,204,175,173,219,112,135,118,56,171,252,203,13,0,48,52,114,253,170,12,0,0,0,64,54,186,12,0,0,0,0,0,48,13,0,0,0,0,0,0,96,1,0,0,0,0,0,96,17,54,3,0,0,0,0,96,99,17,6,0,0,0,0,0,96,1,0,0,0,8,0,0,0,0,0,0,240,37,7,0,0,0,0,224,174,88,133,7,0,0,208,175,252,82,87,133,8,224,202,236,173,39,136,88,132,186,252,207,234,85,87,130,87,188,175,253,186,120,117,88,130,175,202,170,255,36,116,37,88,220,175,173,235,128,136,119,72,172,252,219,13,0,64,85,114,253,170,12,0,0,0,80,71,202,12,0,0,0,0,0,80,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,34,2,0,0,0,0,32,50,17,2,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,224,174,72,132,6,0,0,208,174,253,66,69,132,7,224,202,236,173,38,135,71,130,186,252,207,234,84,70,130,69,189,175,253,186,104,100,72,130,175,202,170,255,35,99,37,72,221,175,173,235,112,135,101,39,172,252,219,13,0,48,69,98,253,170,13,0,0,0,64,38,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,53,6,0,0,0,0,224,175,88,133,6,0,0,208,175,253,83,86,133,8,224,202,236,173,54,136,88,131,186,252,207,234,100,87,131,86,189,175,253,186,120,117,88,131,175,202,170,255,52,100,54,88,221,175,173,235,128,136,118,56,172,252,219,13,0,64,86,115,253,170,13,0,0,0,80,54,202,12,0,0,0,0,0,80,13,0,0,0,0,0,0,48,1,0,0,0,0,0,48,17,51,3,0,0,0,0,48,51,17,3,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,240,36,6,0,0,0,0,224,175,71,132,6,0,0,208,175,252,66,70,132,7,224,202,236,173,38,135,71,114,186,252,207,234,68,70,130,70,188,175,253,186,120,116,72,130,175,202,170,255,36,100,36,72,204,175,173,235,112,135,102,39,172,252,203,13,0,32,68,98,253,170,12,0,0,0,64,38,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,34,2,0,0,0,0,32,50,17,2,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,224,53,6,0,0,0,0,208,173,88,133,6,0,0,192,174,236,83,86,133,7,208,186,219,172,54,135,87,132,186,252,191,218,101,87,131,86,172,175,236,170,120,117,88,131,159,202,170,239,52,100,54,88,204,174,173,219,112,135,118,71,171,252,203,13,0,64,86,115,237,154,12,0,0,0,80,70,186,12,0,0,0,0,0,80,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,174,72,132,6,0,0,208,175,253,66,70,132,7,224,202,236,189,38,135,71,131,186,252,207,234,84,86,130,85,189,191,253,186,104,100,72,130,175,202,186,255,36,100,37,88,221,175,173,235,112,135,101,55,172,252,219,13,0,48,69,98,253,170,13,0,0,0,80,54,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,208,174,72,132,6,0,0,208,174,252,66,69,132,7,208,186,235,173,38,135,71,131,186,252,191,234,68,70,130,69,188,175,237,186,104,100,72,130,175,202,170,239,35,99,36,72,220,175,173,219,112,135,101,55,171,252,219,13,0,48,68,98,253,170,12,0,0,0,64,54,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,48,1,0,0,0,0,0,48,17,51,3,0,0,0,0,48,51,17,3,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,240,36,6,0,0,0,0,224,174,72,132,6,0,0,208,175,252,66,70,132,7,224,202,236,173,38,135,71,132,186,252,207,234,68,70,130,70,188,175,253,186,120,116,72,130,175,202,170,255,36,100,36,72,220,175,173,235,112,135,102,71,172,252,219,13,0,64,68,98,253,170,12,0,0,0,64,70,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,18,1,0,0,0,0,32,49,17,2,0,0,0,0,0,48,1,0,0,0,9,0,0,0,0,0,0,240,53,6,0,0,0,0,224,174,88,133,6,0,0,224,175,253,82,86,133,7,224,202,236,190,54,152,87,130,202,253,207,234,100,87,130,86,189,191,254,186,121,117,88,147,175,218,186,255,52,98,54,88,237,175,174,236,112,135,118,40,172,253,236,14,0,32,86,115,254,170,13,0,0,0,80,38,202,13,0,0,0,0,0,80,14,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,1,0,0,0,0,16,33,17,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,6,0,0,0,0,224,158,72,132,6,0,0,192,158,236,66,70,132,7,208,185,235,172,38,135,71,130,169,251,191,233,84,71,130,70,172,175,236,169,120,116,72,130,159,185,169,239,35,98,37,72,204,158,157,218,112,135,118,39,155,251,202,13,0,32,69,114,237,153,12,0,0,0,64,38,185,11,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,175,72,132,6,0,0,208,175,253,66,69,132,7,224,202,251,173,38,135,71,131,186,252,191,250,84,86,130,85,189,175,253,186,120,116,72,130,175,202,170,255,35,99,37,88,221,175,173,235,112,135,101,55,171,252,219,13,0,48,69,98,253,170,13,0,0,0,80,54,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,208,174,72,132,6,0,0,208,174,252,66,70,132,7,208,186,235,173,38,135,71,130,186,252,191,234,84,86,130,85,188,175,237,186,120,116,72,130,175,202,170,239,35,99,37,88,204,175,173,219,112,135,101,39,171,252,203,13,0,48,69,98,253,170,12,0,0,0,80,38,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,96,1,0,0,0,0,0,112,33,70,6,0,0,0,0,96,118,33,6,0,0,0,0,0,112,1,0,0,0,9,0,0,0,0,0,0,224,35,5,0,0,0,0,208,174,56,147,6,0,0,208,174,252,50,53,147,7,208,202,235,189,38,152,55,130,186,252,191,234,83,86,146,85,188,191,253,186,121,115,57,146,159,202,186,255,35,99,37,88,220,175,173,219,112,151,101,40,171,252,219,13,0,48,53,98,253,154,12,0,0,0,80,38,186,12,0,0,0,0,0,48,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,49,1,0,0,0,0,0,34,65,0,0,0,0,0,16,49,68,2,0,0,0,0,0,80,5,0,0,0,0,0,0,80,86,6,0,0,0,0,96,85,102,0,0,0,0,0,0,86,6,0,0,0,0,0,0,80,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,0,0,0,0,0,0,167,121,6,0,0,0,0,96,198,139,8,0,0,0,0,48,115,136,0,0,0,0,0,0,38,5,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,32,1,1,17,0,0,0,0,0,2,36,0,0,0,0,0,0,32,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,112,65,0,0,50,48,2,0,69,3,0,0,68,48,3,80,3,0,0,0,80,117,0,69,49,0,0,64,115,0,7,6,3,0,0,32,3,0,112,50,0,0,0,0,0,0,96,68,0,0,0,0,0,0,80,0,0,0,0,0,0,0,96,7,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,6,0,0,0,0,0,0,112,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,12,0,0,0,0,0,64,222,226,0,0,0,0,0,44,44,254,5,0,0,0,0,255,35,94,15,0,0,0,0,16,236,194,0,0,0,0,0,0,175,44,0,0,0,0,0,0,96,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,112,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,144,0,0,0,0,0,0,0,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,32,33,3,0,0,0,0,0,48,84,16,2,0,0,0,32,1,19,65,3,0,0,0,16,4,54,82,0,0,0,0,0,70,5,4,33,0,0,0,0,16,82,4,52,0,0,0,0,16,67,68,0,0,0,0,0,0,64,5,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,8,0,0,0,0,0,0,155,11,0,0,0,0,0,0,141,13,0,0,0,0,0,0,192,0,0,0,0,0,0,80,64,16,0,0,0,0,0,69,112,16,5,0,0,0,0,23,71,32,7,0,0,0,0,23,71,55,7,0,0,0,0,80,81,103,0,0,0,0,0,112,84,70,0,0,0,0,0,0,23,22,0,0,0,0,0,0,71,22,0,0,0,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,1,0,0,0,0,0,0,38,6,0,0,0,0,0,0,71,7,0,0,0,0,0,0,128,0,0,0,0,0,0,3,240,192,0,0,0,0,0,60,176,176,12,0,0,0,0,158,224,48,14,0,0,0,0,174,236,190,14,0,0,0,0,222,206,195,14,0,0,0,0,176,205,235,0,0,0,0,0,48,61,14,0,0,0,0,0,48,189,14,0,0,0,0,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,18,2,0,0,0,0,0,0,35,3,0,0,0,0,0,0,64,0,0,0,0,0,0,144,192,0,80,0,0,0,0,89,128,0,150,0,0,0,0,91,176,96,186,0,0,0,0,139,139,112,11,0,0,0,0,155,149,171,11,0,0,0,0,176,152,138,0,0,0,0,0,0,91,90,0,0,0,0,0,0,139,10,0,0,0,0,0,0,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,18,2,0,0,0,0,0,0,35,3,0,0,0,0,0,0,48,0,0,0,0,0,128,4,176,128,0,0,0,0,0,149,64,64,8,0,0,0,0,89,64,64,10,0,0,0,0,106,112,122,10,0,0,0,0,138,138,164,0,0,0,0,0,112,132,167,0,0,0,0,0,160,73,10,0,0,0,0,0,0,122,10,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,16,19,19,0,0,0,0,0,32,84,52,0,0,0,0,0,17,85,21,1,0,0,0,0,48,84,36,0,0,0,0,0,16,19,19,0,0,0,0,0,0,16,7,0,0,0,0,0,0,96,10,0,0,0,0,0,0,112,0,0,0,0,0,0,160,135,0,0,0,0,0,0,0,138,160,0,0,0,0,0,0,96,10,0,0,0,0,0,0,112,10,0,0,0,0,0,0,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,33,0,0,0,0,0,16,33,34,3,0,0,0,0,32,34,50,3,0,0,0,0,32,51,51,3,0,0,0,0,0,64,5,0,0,0,0,0,0,64,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,150,0,0,0,0,0,96,145,121,8,0,0,0,0,150,153,41,136,0,0,0,0,146,39,135,56,0,0,0,0,112,136,136,8,0,0,0,0,0,64,5,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,80,17,17,5,0,0,0,0,0,80,5,0,0,0,14,0,0,0,0,0,0,240,99,8,0,0,0,0,240,253,52,100,8,0,0,240,188,251,83,68,100,7,240,220,189,253,83,70,84,134,172,221,221,251,83,85,68,133,218,187,238,253,34,51,101,134,188,238,204,254,52,50,67,135,188,204,234,255,128,52,67,134,170,170,252,15,0,128,118,151,170,220,15,0,0,0,128,152,220,15,0,0,0,0,0,144,15,0,0,0,0,0,0,32,1,0,0,0,0,0,16,18,17,1,0,0,0,0,64,17,18,3,0,0,0,0,0,80,4,0,0,0,9,0,0,0,0,0,0,224,52,7,0,0,0,0,240,235,83,52,7,0,0,224,187,237,69,83,68,8,224,186,188,251,52,70,100,132,187,156,203,235,83,68,69,164,156,203,187,237,69,83,68,134,203,187,188,251,52,69,99,132,185,172,219,235,128,52,69,164,156,203,187,15,0,144,68,134,203,185,14,0,0,0,128,132,185,14,0,0,0,0,0,144,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,18,1,0,0,0,0,64,18,34,6,0,0,0,0,0,112,4,0,0,0,3,0,0,0,0,0,0,192,88,3,0,0,0,0,128,236,101,87,2,0,0,128,202,253,101,87,87,3,128,218,172,253,178,119,119,181,220,221,205,175,118,179,102,149,218,173,143,237,103,101,178,149,205,143,172,234,86,103,119,146,142,221,218,236,176,119,101,150,221,220,173,15,0,144,118,215,220,220,14,0,0,0,176,135,218,14,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,64,19,51,5,0,0,0,0,0,128,4,0,0,0,2,0,0,0,0,0,0,160,118,3,0,0,0,0,128,237,103,100,2,0,0,144,172,234,70,103,119,2,144,221,218,236,176,119,100,166,221,220,173,15,0,160,118,215,220,220,14,0,0,0,176,151,218,14,0,0,0,0,0,160,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,2,0,0,0,0,0,16,34,33,1,0,0,0,0,16,34,34,2,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,160,105,9,0,0,0,0,208,251,100,104,7,0,0,160,236,187,152,148,151,5,192,207,206,251,96,101,68,105,235,175,188,10,0,80,120,69,218,252,12,0,0,0,128,121,218,14,0,0,0,0,0,64,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,3,0,0,0,0,0,0,160,84,12,0,0,0,0,128,170,195,67,4,0,0,112,138,127,51,197,197,3,112,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,132,130,4,0,0,0,0,0,16,8,0,0,0,2,0,0,0,0,0,0,224,92,12,0,0,0,0,208,174,194,122,2,0,0,112,245,249,51,70,85,3,80,223,239,232,48,133,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,221,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,0,0,0,0,0,32,33,33,1,0,0,0,0,32,33,33,1,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,208,75,9,0,0,0,0,96,236,73,187,9,0,0,160,108,104,188,89,74,9,96,238,200,109,80,75,73,187,110,120,239,8,0,64,187,89,200,110,8,0,0,0,80,75,238,8,0,0,0,0,0,64,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,1,0,0,0,0,0,16,131,33,2,0,0,0,0,112,21,97,5,0,0,0,0,0,128,3,0,0,0,2,0,0,0,0,0,0,128,131,2,0,0,0,0,160,221,54,195,2,0,0,240,186,219,106,182,68,2,144,251,186,237,176,184,134,99,221,251,234,15,0,192,73,102,171,253,15,0,0,0,176,137,235,15,0,0,0,0,0,192,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,9,0,0,0,0,0,0,176,41,8,0,0,0,0,64,205,40,202,8,0,0,176,79,87,173,57,42,8,80,254,183,94,56,45,40,169,78,71,254,215,42,40,172,56,183,78,71,236,40,170,56,42,254,151,92,71,172,56,58,40,71,238,183,77,48,58,40,170,78,87,238,7,0,32,170,56,183,94,7,0,0,0,48,42,238,7,0,0,0,0,0,48,7,0,0,0,0,0,0,128,8,0,0,0,0,0,128,245,248,8,0,0,0,0,128,88,248,8,0,0,0,0,0,128,8,0,0,0,7,0,0,0,0,0,0,192,151,7,0,0,0,0,192,234,151,151,7,0,0,192,234,234,33,151,151,7,192,234,234,67,242,18,151,151,234,234,243,68,243,242,47,151,234,67,79,85,215,34,47,47,243,68,95,237,151,215,34,34,244,85,237,234,144,151,215,35,85,237,234,11,0,144,151,215,237,234,11,0,0,0,144,151,234,11,0,0,0,0,0,144,11,0,0,0,0,0,0,64,3,0,0,0,0,0,64,65,49,1,0,0,0,0,64,49,67,1,0,0,0,0,0,64,1,0,0,0,1,0,0,0,0,0,0,96,233,1,0,0,0,0,48,111,121,140,2,0,0,96,143,55,121,140,237,1,64,143,138,55,98,188,89,45,255,220,137,107,238,97,89,97,114,140,187,108,185,233,98,39,121,75,255,60,185,217,229,98,107,223,162,60,64,137,145,44,239,234,165,11,0,96,149,108,218,138,11,0,0,0,96,28,218,11,0,0,0,0,0,96,11,0,0,0,0,0,0,112,1,0,0,0,0,0,112,17,122,1,0,0,0,0,160,22,103,7,0,0,0,0,0,112,8,0,0,0,1,0,0,0,0,0,0,96,68,4,0,0,0,0,64,143,161,119,1,0,0,208,136,149,164,67,78,6,80,189,189,201,190,187,151,58,244,205,179,78,23,183,119,164,223,214,221,131,65,89,55,180,216,68,235,221,19,75,167,28,56,111,88,248,176,149,187,70,137,142,99,13,0,160,74,148,253,211,8,0,0,0,160,147,88,15,0,0,0,0,0,96,9,0,0,0,0,0,0,176,11,0,0,0,0,0,176,35,43,4,0,0,0,0,48,20,26,5,0,0,0,0,0,64,3,0,0,0,7,0,0,0,0,0,0,176,237,7,0,0,0,0,160,175,46,121,14,0,0,192,210,156,216,24,114,7,192,252,244,203,158,225,121,113,44,188,204,146,103,55,126,119,175,47,255,188,113,39,248,142,171,69,109,193,39,136,222,98,75,172,178,218,96,119,113,125,203,204,67,11,0,112,35,120,63,207,9,0,0,0,112,87,75,9,0,0,0,0,0,96,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,1,0,0,0,0,0,48,1,16,4,0,0,0,0,0,32,4,0,0,0,5,0,0,0,0,0,0,224,5,7,0,0,0,0,176,235,0,3,5,0,0,240,176,235,48,5,5,3,176,187,0,190,0,86,0,140,176,10,10,186,5,5,32,53,0,12,0,253,0,12,0,157,11,11,176,187,80,5,5,133,0,186,0,191,80,85,0,89,176,6,10,12,0,80,128,85,0,14,11,0,0,0,80,152,13,12,0,0,0,0,0,112,11,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,48,3,0,0,0,0,0,80,102,86,3,0,0,0,0,48,54,102,5,0,0,0,0,0,96,3,0,0,0,10,0,0,0,0,0,0,208,124,9,0,0,0,0,224,221,151,122,7,0,0,176,219,254,151,26,122,10,224,235,189,254,161,164,170,164,237,239,143,190,169,170,25,151,235,130,191,222,154,23,161,151,46,222,184,219,25,154,170,151,253,238,139,221,160,170,17,153,238,237,184,14,0,144,169,196,237,237,13,0,0,0,160,122,235,11,0,0,0,0,0,144,14,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,112,17,33,7,0,0,0,0,0,112,7,0,0,0,13,0,0,0,0,0,0,224,84,13,0,0,0,0,224,235,67,84,13,0,0,224,171,235,84,51,84,7,240,170,186,235,83,69,84,117,172,153,170,251,83,85,68,117,153,187,204,250,51,51,85,117,184,204,137,252,67,51,51,118,184,137,200,254,112,52,68,116,137,136,235,14,0,112,101,215,136,184,14,0,0,0,112,215,184,14,0,0,0,0,0,208,14,0,0,0,0,0,0,192,12,0,0,0,0,0,48,58,180,3,0,0,0,0,160,163,58,13,0,0,0,0,0,240,15,0,0,0,4,0,0,0,0,0,0,240,146,12,0,0,0,0,96,246,180,180,4,0,0,192,109,251,210,226,34,2,128,214,170,248,210,210,212,226,134,218,102,251,18,233,212,237,171,221,106,248,146,201,18,225,216,219,104,251,66,244,148,225,90,245,138,248,128,210,148,225,104,251,102,11,0,224,66,225,155,214,10,0,0,0,144,226,168,11,0,0,0,0,0,224,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,80,0,0,0,0,0,3,0,16,6,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,232,0,0,0,0,0,0,0,32,0,0,0,0,112,0,0,96,11,0,4,0,0,3,0,96,14,32,208,0,0,177,12,160,95,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,244,0,0,0,0,16,0,0,16,0,0,0,0,16,7,0,48,11,0,4,0,0,1,16,48,12,64,192,0,0,122,4,103,140,96,0,0,0,243,218,80,110,174,0,0,8,213,249,80,159,94,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,166,0,0,0,0,96,0,0,80,0,0,6,0,128,12,80,32,10,0,181,0,0,6,128,42,12,96,160,0,0,179,5,46,188,32,0,0,0,226,163,16,60,63,0,6,6,178,231,16,119,46,128,192,178,196,244,64,77,63,112,15,199,244,228,64,159,157,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,116,0,0,0,0,0,0,0,179,0,0,0,0,48,0,0,64,0,0,3,0,48,7,64,80,11,0,115,0,0,3,48,27,12,64,112,0,0,161,4,26,74,16,0,0,0,161,177,96,27,27,0,3,4,161,185,96,93,90,64,32,193,165,229,96,93,92,80,13,165,149,198,128,94,109,128,13,200,216,214,128,111,141,96,15,232,248,216,128,159,142,128,14,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,162,0,0,0,0,48,0,0,96,0,0,2,0,32,11,96,48,13,0,162,0,0,2,32,107,11,48,0,0,0,163,2,39,43,96,0,0,0,178,114,64,106,42,0,3,2,162,161,16,109,43,96,160,163,164,113,16,23,43,32,11,179,196,152,64,73,71,64,10,164,148,244,80,93,77,64,12,213,213,197,128,142,78,128,9,232,232,232,128,142,94,128,14,232,248,249,144,159,143,80,14,0,0,0,1,0,0,0,0,0,0,0,179,0,0,0,0,0,0,0,165,0,0,0,0,64,0,0,64,0,0,4,0,16,14,16,32,11,0,180,0,0,4,64,59,7,112,176,0,0,179,1,59,26,48,0,0,0,194,115,48,60,55,0,1,1,115,197,48,58,58,112,176,179,166,211,80,60,60,48,14,163,227,197,80,93,60,48,10,195,213,214,96,93,110,48,12,165,214,229,128,142,142,128,12,230,232,214,128,223,143,128,15,233,249,249,160,159,159,128,15,249,248,248,144,223,143,144,15,0,0,0,7,0,0,0,0,96,0,0,246,0,0,6,0,96,13,0,96,0,0,214,0,0,6,96,32,13,96,208,0,0,161,96,45,107,32,0,6,10,130,6,58,107,29,0,246,246,177,210,64,28,77,96,208,162,129,177,48,46,27,32,13,177,129,131,32,28,75,64,11,131,131,193,48,75,72,80,14,194,197,129,64,76,62,32,14,179,228,131,112,76,126,48,11,197,231,199,112,127,126,112,12,229,244,231,112,159,158,144,14,231,201,247,144,159,159,112,15,249,247,249,144,175,127,160,15,0,0,0,144,4,0,0,0,0,0,144,201,193,9,0,0,0,0,64,65,153,1,0,0,0,0,0,144,4,0,0,0,3,0,0,0,0,0,0,80,102,2,0,0,0,0,160,167,102,182,6,0,0,112,165,165,54,35,102,2,160,167,135,122,38,182,59,187,215,173,90,170,99,99,182,99,88,87,173,165,59,102,51,35,173,215,218,87,102,51,98,54,122,125,167,117,48,59,102,51,87,165,125,7,0,96,178,182,170,218,7,0,0,0,96,54,87,10,0,0,0,0,0,176,10,0,0,0,0,0,0,192,10,0,0,0,0,0,192,254,250,12,0,0,0,0,112,183,238,7,0,0,0,0,0,176,7,0,0,0,2,0,0,0,0,0,0,48,68,1,0,0,0,0,128,133,68,148,4,0,0,80,131,131,36,18,68,1,128,133,101,88,20,148,41,153,213,141,56,136,66,66,148,66,54,53,141,131,41,68,34,18,141,213,216,53,68,34,65,36,88,93,133,83,32,41,68,34,53,131,93,5,0,64,145,148,136,216,5,0,0,0,64,36,53,8,0,0,0,0,0,144,8,0,0,0,0,0,0,96,4,0,0,0,0,0,32,17,37,4,0,0,0,0,160,37,83,12,0,0,0,0,0,176,12,0,0,0,11,0,0,0,0,0,0,208,120,11,0,0,0,0,208,219,85,82,10,0,0,224,121,230,199,191,120,13,208,122,88,233,217,255,175,180,168,153,117,202,20,24,255,194,138,119,137,210,67,19,104,210,138,86,50,228,243,255,26,167,105,50,51,228,192,237,175,161,54,68,116,13,0,192,252,177,71,116,14,0,0,0,192,177,120,13,0,0,0,0,0,176,13,0,0,0,0,0,0,112,4,0,0,0,0,0,48,34,54,4,0,0,0,0,176,53,83,12,0,0,0,0,0,192,12,0,0,0,11,0,0,0,0,0,0,208,121,12,0,0,0,0,208,236,101,83,11,0,0,224,121,230,215,207,121,13,208,122,105,233,218,255,175,196,169,169,118,202,20,35,255,211,155,119,154,227,18,17,99,227,154,86,50,228,129,136,26,183,106,51,52,228,128,129,184,162,54,69,117,14,0,16,129,193,71,116,14,0,0,0,128,193,119,14,0,0,0,0,0,192,13,0,0,0,132,139,88,37,91,85,37,213,81,87,34,51,56,35,35,213,81,136,136,119,85,117,90,213,179,221,221,173,221,221,189,234,129,139,88,53,137,168,39,215,129,125,119,53,121,119,56,216,81,121,85,53,139,90,37,213,163,107,102,86,90,102,102,234,81,85,165,88,117,119,85,213,129,187,155,121,187,219,137,216,127,121,85,56,139,119,39,215,180,173,187,91,173,170,107,235,81,89,133,53,139,136,87,213,129,42,34,50,37,50,51,216,81,136,88,133,85,120,85,213,234,238,255,254,238,254,255,239,33,34,18,17,18,17,17,129,81,183,119,136,136,120,120,213,81,204,204,122,170,170,93,213,180,14,0,64,13,0,96,251,207,12,0,48,10,0,32,215,137,13,0,48,10,0,48,216,81,85,34,50,136,67,34,213,179,238,238,190,221,237,190,251,81,10,0,32,10,0,32,213,130,12,0,32,12,0,48,216,113,10,0,48,12,0,32,215,179,75,102,70,75,68,102,251,81,37,50,50,56,51,66,213,129,173,170,138,170,202,140,216,81,140,88,53,90,248,255,221,191,173,187,106,189,251,111,255,0,131,0,0,0,0,81,0,32,178,51,34,17,33,115,2,96,131,102,102,102,153,86,6,0,185,0,0,0,0,201,0,0,131,0,0,0,0,114,0,32,118,17,49,51,22,131,2,96,113,153,105,102,153,81,6,0,201,0,0,0,0,201,0,0,81,0,0,0,0,81,0,32,131,17,51,51,34,129,2,96,114,153,105,102,102,114,6,0,182,0,0,0,0,201,0,0,81,0,0,0,0,178,0,32,86,19,49,17,35,131,2,96,131,153,148,102,150,81,6,0,166,0,0,0,0,205,0,0,97,0,0,0,0,22,0,112,97,140,51,34,149,22,7,208,97,222,187,187,254,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,89,66,68,155,22,7,208,97,239,188,187,252,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,89,68,68,147,22,7,208,97,239,188,187,235,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,92,66,34,148,22,7,208,97,239,202,187,251,22,13,0,97,0,0,0,0,22,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,70,4,0,0,112,151,234,84,182,70,6,160,167,121,234,107,109,102,109,169,174,254,122,101,102,197,84,167,252,126,154,86,196,108,84,218,154,127,151,181,86,102,84,233,170,247,153,96,102,187,85,170,169,127,10,0,80,101,141,169,169,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,48,2,0,0,0,0,0,48,33,33,2,0,0,0,0,48,51,35,3,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,128,100,4,0,0,0,0,144,152,116,118,4,0,0,128,168,168,103,68,102,7,144,169,137,169,102,70,118,116,168,136,137,169,68,119,119,118,154,136,168,170,100,102,117,118,169,169,137,169,118,119,118,116,152,152,170,168,96,119,68,118,169,137,137,9,0,112,116,119,170,137,10,0,0,0,64,102,169,10,0,0,0,0,0,64,8,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,5,0,0,0,0,0,0,112,85,5,0,0,0,0,112,119,81,69,5,0,0,112,119,119,85,85,85,5,112,119,119,119,84,85,81,85,55,119,119,119,85,85,85,84,119,103,119,119,84,85,85,85,119,119,119,119,85,85,85,85,119,55,55,119,80,85,85,81,119,119,119,7,0,80,85,85,119,119,7,0,0,0,80,85,119,7,0,0,0,0,0,80,7,0,0,0,0,0,0,48,2,0,0,0,0,0,48,33,33,2,0,0,0,0,48,51,35,3,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,128,100,4,0,0,0,0,144,152,116,118,4,0,0,128,168,168,103,68,102,7,144,169,137,169,102,70,118,116,168,136,137,169,68,119,119,118,154,136,168,170,100,102,117,118,169,169,137,169,118,119,118,116,152,152,170,168,96,119,68,118,169,137,137,9,0,112,116,119,170,137,10,0,0,0,64,102,169,10,0,0,0,0,0,64,8,0,0,0,0,0,0,240,15,0,0,0,0,0,48,17,17,15,0,0,0,0,0,241,17,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,47,2,0,0,0,0,112,249,61,242,3,0,0,192,123,11,63,130,37,3,144,230,109,251,93,131,39,10,158,199,171,12,77,132,37,5,158,201,189,251,79,242,71,11,174,203,187,252,61,130,67,4,190,230,185,6,32,130,90,11,190,198,188,9,0,208,83,4,190,247,9,0,0,0,80,5,110,9,0,0,0,0,0,0,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,2,0,0,0,0,0,16,1,0,0,0,4,0,0,0,0,0,0,192,51,5,0,0,0,0,208,140,70,102,4,0,0,192,153,252,36,115,84,6,160,174,157,206,84,68,71,55,220,154,137,171,84,38,118,119,221,233,175,171,116,99,98,115,170,190,218,222,133,86,51,53,157,187,234,189,112,54,37,54,159,253,216,10,0,48,68,115,153,174,9,0,0,0,96,103,233,10,0,0,0,0,0,112,9,0,0,0,16,4,32,6,32,6,32,6,96,7,32,6,32,6,16,4,32,54,32,6,32,86,96,7,32,86,32,54,32,6,32,6,32,6,16,84,32,6,32,6,32,6,96,7,16,4,32,6,32,6,32,6,96,7,32,54,32,6,32,6,32,6,32,86,19,4,32,6,32,6,32,6,101,7,32,6,32,6,16,4,32,6,21,4,35,6,96,7,32,6,96,7,37,6,32,6,32,6,32,6,32,6,32,6,32,6,32,6,16,4,37,6,32,6,32,6,96,7,32,6,32,6,32,6,32,6,32,6,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,32,1,0,0,0,0,0,128,210,141,2,0,0,0,0,64,72,40,8,0,0,0,0,0,64,4,0,0,0,10,0,0,0,0,0,0,192,166,6,0,0,0,0,192,201,166,111,6,0,0,192,201,201,243,62,163,6,192,153,199,201,165,174,255,165,199,153,201,201,246,170,239,170,187,151,185,201,234,175,234,174,151,185,153,199,246,234,254,170,153,203,153,199,96,165,238,175,155,199,201,11,0,160,227,174,156,201,11,0,0,0,160,165,188,12,0,0,0,0,0,160,12,0,0,0,0,0,0,48,1,0,0,0,0,0,144,227,158,3,0,0,0,0,48,57,57,9,0,0,0,0,0,48,3,0,0,0,11,0,0,0,0,0,0,208,103,3,0,0,0,0,208,218,103,127,7,0,0,208,218,218,245,20,97,7,208,170,216,218,182,180,255,182,216,170,218,218,241,99,79,179,204,168,202,218,75,63,70,180,168,202,170,216,247,22,241,179,170,220,170,216,112,102,34,191,172,216,218,12,0,176,69,52,173,218,12,0,0,0,176,182,205,13,0,0,0,0,0,176,13,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,102,4,0,0,112,151,186,84,70,70,6,160,167,121,186,100,102,102,100,169,171,155,122,101,102,85,84,167,122,123,154,86,84,100,84,154,154,121,151,69,86,102,84,185,170,167,153,96,102,84,85,170,169,122,10,0,80,101,134,169,167,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,32,1,0,0,0,0,0,16,98,33,2,0,0,0,0,80,21,81,5,0,0,0,0,0,96,2,0,0,0,2,0,0,0,0,0,0,224,53,1,0,0,0,0,96,250,53,53,2,0,0,112,170,248,87,85,83,2,96,168,220,236,178,71,67,150,200,138,236,110,99,177,70,163,205,221,143,204,53,179,145,150,220,239,168,202,88,165,68,177,127,234,168,220,160,150,101,83,220,250,216,15,0,176,72,85,138,237,15,0,0,0,160,103,218,14,0,0,0,0,0,176,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,117,17,1,0,0,0,0,64,21,82,4,0,0,0,0,0,112,1,0,0,0,1,0,0,0,0,0,0,240,52,5,0,0,0,0,96,250,52,52,1,0,0,96,170,254,70,85,67,5,176,169,204,252,167,59,51,183,201,155,236,111,115,187,55,184,204,220,159,204,84,163,152,166,206,255,249,206,89,164,115,181,191,254,169,220,160,182,100,75,236,250,201,15,0,176,54,68,186,251,15,0,0,0,160,102,218,15,0,0,0,0,0,160,15,0,0,0,0,0,0,64,1,0,0,0,0,0,16,82,33,2,0,0,0,0,80,52,65,4,0,0,0,0,0,80,2,0,0,0,2,0,0,0,0,0,0,224,52,1,0,0,0,0,80,249,99,135,2,0,0,192,153,248,42,66,70,3,80,108,219,235,166,74,115,135,183,125,235,94,83,161,117,147,221,235,207,187,100,163,129,133,107,239,151,185,119,148,39,161,111,233,156,237,160,131,114,67,221,249,199,15,0,160,70,68,201,235,14,0,0,0,144,86,233,14,0,0,0,0,0,176,14,0,0,0,0,0,0,48,1,0,0,0,0,0,48,65,20,1,0,0,0,0,96,65,20,5,0,0,0,0,0,80,5,0,0,0,2,0,0,0,0,0,0,224,69,2,0,0,0,0,112,250,25,123,3,0,0,128,253,249,57,36,75,3,96,253,217,230,57,152,39,167,249,184,220,230,55,165,115,163,92,253,215,232,37,37,147,162,124,253,216,249,39,155,151,179,140,203,253,234,160,38,155,178,109,252,200,14,0,176,39,162,252,201,14,0,0,0,160,165,185,15,0,0,0,0,0,176,15,0,0,0,0,0,0,16,1,0,0,0,0,0,32,22,17,1,0,0,0,0,16,22,33,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,68,4,0,0,0,0,224,189,163,99,3,0,0,224,203,239,55,67,54,7,144,175,253,233,213,68,117,54,253,216,157,238,166,50,198,57,252,219,254,172,37,53,179,98,221,216,218,237,85,183,58,119,252,157,200,204,48,165,66,83,155,252,217,12,0,112,101,121,157,174,14,0,0,0,96,85,155,11,0,0,0,0,0,48,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,51,4,0,0,0,0,176,187,58,122,6,0,0,176,187,187,115,99,51,10,176,219,187,203,83,89,58,51,191,219,187,187,131,51,163,170,187,189,187,191,138,90,163,131,254,187,187,187,74,51,57,69,187,235,190,219,48,67,56,51,219,219,190,13,0,48,166,57,219,251,15,0,0,0,48,51,188,13,0,0,0,0,0,48,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,167,5,0,0,0,0,176,187,153,99,6,0,0,240,191,187,99,99,57,3,176,219,191,203,99,103,57,51,253,219,239,187,99,153,57,51,222,253,255,187,99,99,137,99,205,255,255,187,86,51,151,70,187,219,253,219,144,67,151,51,219,219,253,13,0,144,150,55,219,251,12,0,0,0,160,163,252,13,0,0,0,0,0,48,13,0,0,0,0,0,0,80,5,0,0,0,0,0,80,85,85,5,0,0,0,0,80,81,21,5,0,0,0,0,0,80,5,0,0,0,6,0,0,0,0,0,0,160,114,6,0,0,0,0,160,204,22,150,6,0,0,208,218,175,98,102,102,6,240,204,203,204,103,153,102,102,205,235,188,193,151,150,102,38,28,238,204,189,102,105,121,105,190,205,236,188,150,118,118,33,251,171,219,204,32,22,103,121,207,27,207,12,0,144,118,103,190,207,15,0,0,0,96,102,206,14,0,0,0,0,0,96,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,51,4,0,0,0,0,176,187,58,122,6,0,0,176,187,187,115,99,51,10,176,219,187,203,83,89,58,51,191,219,187,187,131,51,163,170,187,189,187,191,138,90,163,131,254,187,187,187,74,51,57,69,187,235,190,219,48,67,56,51,219,219,190,13,0,48,166,57,219,251,15,0,0,0,48,51,188,13,0,0,0,0,0,48,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,167,5,0,0,0,0,176,187,153,99,6,0,0,240,191,187,99,99,57,3,176,219,191,203,99,103,57,51,253,219,239,187,99,153,57,51,222,253,255,187,99,99,137,99,205,255,255,187,86,51,151,70,187,219,253,219,144,67,151,51,219,219,253,13,0,144,150,55,219,251,12,0,0,0,160,163,252,13,0,0,0,0,0,48,13,0,0,0,17,1,17,17,17,17,17,33,1,0,0,32,0,0,0,48,1,16,0,2,0,0,0,0,1,1,0,0,0,0,0,50,17,0,0,0,16,0,32,48,1,0,0,0,1,0,2,0,0,0,0,32,0,0,0,48,1,2,0,2,0,0,0,48,33,0,0,0,0,0,0,48,1,0,0,0,1,0,0,0,0,0,0,16,0,0,16,0,1,0,0,2,0,0,1,48,32,0,0,0,0,16,0,48,2,0,0,0,0,2,0,48,1,0,0,0,0,0,0,32,50,51,51,0,51,48,51,35,0,0,0,16,10,0,0,0,0,0,16,65,33,2,0,0,0,0,16,17,65,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,128,106,2,0,0,0,0,160,140,170,147,3,0,0,208,199,124,221,179,131,8,80,197,231,95,218,195,131,56,236,231,231,95,170,210,184,56,239,247,236,95,170,194,179,45,255,245,231,95,102,195,162,45,238,245,204,108,48,99,134,45,238,245,202,10,0,144,132,40,238,213,11,0,0,0,64,72,206,5,0,0,0,0,0,48,12,0,0,0,0,84,84,0,0,80,84,0,0,16,84,69,0,80,18,0,0,64,1,48,4,16,84,0,1,80,1,0,69,67,84,20,2,0,66,0,32,85,1,37,85,0,84,0,18,80,1,85,4,84,84,64,69,0,82,80,0,69,20,82,0,16,84,0,0,80,65,5,0,64,2,0,0,69,65,5,0,82,2,0,0,65,2,80,0,4,82,0,80,82,68,5,0,5,84,64,36,0,84,1,0,85,20,84,5,0,81,82,66,80,33,5,0,16,2,32,85,2,82,0,0,85,4,0,0,0,66,5,0,0,0,48,3,0,0,0,0,0,112,49,19,1,0,0,0,0,16,51,51,3,0,0,0,0,0,16,3,0,0,0,3,0,0,0,0,0,0,80,119,1,0,0,0,0,160,154,119,119,7,0,0,144,245,249,223,61,51,7,144,167,158,143,126,119,127,245,169,154,217,191,98,226,254,119,217,222,189,178,43,102,215,189,153,222,187,40,102,34,98,38,143,141,184,130,32,43,102,34,40,178,221,8,0,32,182,182,187,219,8,0,0,0,96,38,40,11,0,0,0,0,0,176,11,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,64,4,0,0,64,17,4,0,20,65,0,0,64,34,66,64,33,65,0,0,20,34,65,64,34,34,4,0,20,51,18,36,35,34,4,0,20,34,18,35,50,18,4,0,20,34,18,19,34,18,4,0,20,35,34,18,34,18,4,0,20,34,34,19,34,18,4,0,20,34,18,19,50,18,4,0,64,50,18,18,34,65,0,0,64,17,18,19,35,65,0,0,0,68,17,51,66,4,0,0,0,0,68,68,4,0,0,0,0,0,0,0,0,0,0,0,0,0,16,4,0,0,0,0,0,64,116,66,1,0,0,0,0,16,20,66,4,0,0,0,0,0,64,1,0,0,0,8,0,0,0,0,0,0,176,138,12,0,0,0,0,192,187,84,43,4,0,0,192,186,214,164,114,72,8,192,254,235,222,84,43,184,135,203,238,189,172,133,184,85,95,234,255,237,222,75,247,135,84,220,110,253,182,162,21,43,84,219,238,234,187,128,136,171,81,204,109,172,12,0,80,133,203,203,204,11,0,0,0,128,72,225,10,0,0,0,0,0,80,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,65,68,5,0,0,0,0,0,64,4,0,0,0,2,0,0,0,0,0,0,128,84,7,0,0,0,0,128,251,38,50,7,0,0,128,233,251,35,66,52,2,128,184,220,253,51,67,101,100,219,184,204,253,55,52,82,167,140,137,201,221,82,52,100,166,152,155,233,239,84,85,102,166,185,201,237,251,112,87,118,167,153,201,141,14,0,160,166,114,232,220,15,0,0,0,112,116,203,14,0,0,0,0,0,112,13,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,208,38,3,0,0,0,0,208,221,82,86,2,0,0,128,187,219,67,70,52,6,224,218,140,235,99,70,70,99,221,255,187,187,100,54,54,85,136,172,139,233,85,98,67,35,203,232,140,184,52,69,83,50,253,254,248,140,64,101,50,36,251,236,141,15,0,48,100,68,221,233,9,0,0,0,80,38,251,8,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,34,1,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,224,56,5,0,0,0,0,224,221,100,121,4,0,0,176,203,237,116,105,69,9,240,236,190,236,148,105,89,148,237,255,205,220,150,73,73,119,187,221,189,251,119,147,100,68,236,235,190,203,68,118,116,68,253,255,251,189,64,151,68,69,253,237,189,15,0,64,151,101,221,251,11,0,0,0,96,72,251,11,0,0,0,0,0,80,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,192,39,3,0,0,0,0,192,171,66,102,2,0,0,144,169,203,83,55,51,6,208,201,156,218,99,70,86,99,203,255,171,186,100,54,54,101,153,187,155,217,102,98,67,35,202,217,156,169,51,84,99,50,251,221,233,155,48,101,50,36,219,219,155,15,0,48,101,68,187,217,9,0,0,0,64,38,249,9,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,208,56,4,0,0,0,0,208,188,99,104,3,0,0,160,171,220,84,72,69,8,208,218,156,218,132,88,88,132,220,223,172,202,134,72,72,102,170,187,172,218,119,131,84,52,202,218,156,170,69,102,116,67,252,253,233,171,80,134,67,53,220,219,173,14,0,64,133,85,204,218,10,0,0,0,96,56,250,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,5,0,0,0,0,208,188,82,104,2,0,0,144,186,220,99,88,53,8,224,217,157,219,115,87,103,116,220,255,188,203,117,55,71,102,153,156,156,234,102,114,84,35,219,217,157,185,52,101,100,50,252,222,233,156,64,118,66,53,236,220,156,15,0,64,118,85,204,233,10,0,0,0,80,39,202,9,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,208,40,4,0,0,0,0,208,172,114,120,2,0,0,176,170,220,99,88,52,8,224,218,156,218,131,104,72,131,220,223,172,202,134,56,72,118,170,188,188,234,119,130,100,35,202,218,188,171,52,103,116,50,252,222,251,172,64,134,69,36,236,220,173,15,0,64,134,100,204,234,10,0,0,0,112,40,250,10,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,3,0,0,0,0,208,204,82,87,2,0,0,144,169,220,83,55,52,7,208,217,156,217,115,87,71,115,220,255,156,201,117,39,55,85,153,188,156,218,102,114,83,35,201,217,156,153,36,85,99,50,252,237,217,156,64,117,50,36,220,220,157,15,0,48,117,84,204,217,9,0,0,0,80,39,233,9,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,208,56,4,0,0,0,0,208,219,115,104,3,0,0,160,170,219,84,72,69,8,224,218,157,234,116,87,87,116,219,239,171,186,117,71,71,118,170,187,171,234,102,115,84,52,218,218,157,170,69,103,100,67,251,238,233,171,80,118,67,53,235,219,172,14,0,64,117,85,187,234,10,0,0,0,112,55,202,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,208,55,5,0,0,0,0,208,237,99,121,3,0,0,160,221,221,116,105,69,9,240,220,173,253,131,104,88,132,221,255,221,221,134,56,88,119,186,189,173,253,119,131,101,51,221,219,173,218,53,118,117,83,253,255,250,189,80,135,83,53,253,221,223,15,0,80,135,101,221,250,13,0,0,0,96,55,253,13,0,0,0,0,0,80,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,5,0,0,0,0,208,205,98,103,2,0,0,144,187,219,83,71,53,7,224,218,157,219,114,87,87,115,221,223,187,187,117,39,55,102,153,155,155,235,102,114,83,34,187,217,156,185,35,102,99,50,253,222,233,155,48,118,52,37,235,219,189,14,0,48,117,85,221,234,10,0,0,0,96,39,251,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,224,40,3,0,0,0,0,224,206,114,104,2,0,0,160,186,238,99,88,52,7,224,234,174,250,115,103,71,114,238,255,174,234,118,55,55,102,170,204,174,235,102,114,99,35,218,234,174,170,36,103,99,50,254,254,250,172,64,118,53,36,254,236,175,15,0,48,118,100,238,234,10,0,0,0,112,38,250,10,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,40,4,0,0,0,0,208,205,98,103,2,0,0,160,202,220,82,71,37,7,224,219,157,235,114,87,87,115,221,239,188,203,117,39,55,102,170,187,172,234,119,114,83,34,203,218,172,186,35,86,115,50,253,238,234,171,48,118,50,37,236,219,174,14,0,48,117,85,221,234,10,0,0,0,96,39,250,10,0,0,0,0,0,80,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,208,39,4,0,0,0,0,208,173,82,86,2,0,0,144,154,221,83,86,52,6,240,217,189,249,99,86,70,98,221,255,173,217,101,54,54,85,153,189,157,249,102,98,84,35,201,233,157,153,52,85,99,50,253,255,251,157,64,101,51,36,253,237,157,15,0,64,101,84,221,249,9,0,0,0,80,38,249,9,0,0,0,0,0,64,9,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,208,55,5,0,0,0,0,208,189,99,103,3,0,0,144,170,221,100,103,69,7,224,218,157,234,116,103,87,115,221,255,173,218,118,71,87,102,153,205,157,234,119,115,101,52,218,233,157,169,53,102,117,83,253,254,249,157,80,118,84,53,253,237,173,15,0,80,118,101,221,234,10,0,0,0,96,55,250,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,40,3,0,0,0,0,208,172,114,120,2,0,0,160,170,220,82,72,35,8,208,218,188,218,114,87,87,115,220,223,172,202,117,55,55,118,170,188,172,218,102,114,83,34,202,202,189,170,35,103,99,50,252,221,235,172,48,118,50,37,220,204,173,14,0,48,117,85,204,218,10,0,0,0,112,39,250,10,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,34,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,224,71,5,0,0,0,0,224,189,100,104,4,0,0,160,187,237,100,88,69,8,240,235,173,251,116,103,103,116,237,255,173,219,133,72,71,102,170,205,173,251,119,115,101,68,219,250,173,186,69,102,116,68,253,255,250,173,80,134,67,70,253,253,174,15,0,80,118,102,221,250,11,0,0,0,96,71,235,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,192,40,5,0,0,0,0,192,204,115,120,2,0,0,160,188,204,83,72,53,8,224,203,172,203,131,104,104,131,204,255,204,203,134,56,72,119,170,188,172,234,119,130,101,51,187,202,172,186,53,119,116,51,252,222,234,172,80,135,66,54,236,204,188,15,0,80,133,102,204,234,11,0,0,0,112,56,218,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,48,17,17,3,0,0,0,0,0,144,9,0,0,0,6,0,0,0,0,0,0,96,232,5,0,0,0,0,144,105,203,114,6,0,0,240,159,150,116,100,45,4,96,199,111,169,82,88,43,52,252,201,223,153,116,187,61,66,206,251,255,136,114,83,171,116,173,255,255,119,87,34,184,85,166,216,253,200,208,84,215,66,182,182,253,11,0,192,214,40,201,249,10,0,0,0,224,212,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,17,17,4,0,0,0,0,0,176,11,0,0,0,7,0,0,0,0,0,0,80,217,6,0,0,0,0,144,89,204,114,7,0,0,224,158,149,116,116,45,4,80,181,94,169,98,120,44,36,235,185,206,153,116,204,61,66,189,235,239,102,114,114,188,116,171,238,239,85,103,34,201,102,165,182,235,182,192,100,215,66,165,165,251,10,0,192,215,40,185,233,10,0,0,0,208,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,16,18,65,1,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,144,118,10,0,0,0,0,160,184,222,57,4,0,0,144,198,254,68,222,86,4,160,186,253,89,34,100,223,118,184,253,108,102,54,66,84,222,253,156,102,182,222,35,34,130,92,89,184,254,148,222,39,50,121,182,254,155,80,136,222,38,181,253,188,11,0,112,131,223,253,172,9,0,0,0,128,103,172,12,0,0,0,0,0,64,10,0,0,0,0,0,0,64,1,0,0,0,0,0,96,104,22,1,0,0,0,0,128,22,136,8,0,0,0,0,0,128,6,0,0,0,7,0,0,0,0,0,0,144,58,10,0,0,0,0,208,153,103,119,10,0,0,144,123,153,170,170,58,10,176,185,150,183,103,118,118,106,121,91,121,219,170,170,42,118,151,150,153,187,170,166,106,167,155,153,109,185,55,170,170,172,155,219,150,155,160,122,99,199,187,107,153,11,0,160,119,202,153,185,13,0,0,0,160,122,123,11,0,0,0,0,0,160,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,33,18,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,144,67,4,0,0,0,0,160,154,98,54,6,0,0,176,204,188,101,118,87,4,144,219,238,172,115,119,115,69,153,252,239,188,117,136,120,68,202,254,223,155,115,119,119,70,203,255,206,155,83,119,103,85,219,159,156,154,48,101,102,82,236,223,172,9,0,64,85,52,219,188,10,0,0,0,48,51,170,10,0,0,0,0,0,48,9,0,0,0,0,0,0,48,4,0,0,0,0,0,32,16,4,0,0,0,0,0,16,35,6,0,0,0,0,0,64,35,6,2,0,0,0,0,0,48,3,100,0,0,0,0,0,48,67,6,0,0,0,0,0,32,99,0,0,0,0,0,0,16,3,0,0,0,0,0,0,16,3,0,0,0,0,0,0,16,4,0,0,0,0,0,16,34,20,0,0,0,0,0,96,50,52,6,0,0,0,0,0,54,100,0,0,0,0,0,0,16,6,0,0,0,0,0,0,32,4,0,0,0,0,0,0,80,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,4,0,0,0,0,0,0,16,4,0,0,0,0,0,0,32,4,0,0,0,0,0,0,32,4,0,0,0,0,0,0,48,36,0,0,0,0,0,0,48,83,0,0,0,0,0,16,35,3,0,0,0,0,0,64,19,5,0,0,0,0,0,0,20,3,0,0,0,0,0,0,16,3,0,0,0,0,50,2,0,12,4,0,0,0,19,165,0,78,0,33,0,0,0,147,4,15,33,51,1,32,1,0,64,0,53,33,0,16,35,3,192,64,35,0,0,0,50,37,64,4,0,0,0,0,32,81,176,0,0,18,0,0,0,0,180,0,35,35,0,0,35,0,204,32,53,1,0,0,49,50,208,64,35,0,0,0,32,83,1,4,0,0,0,0,0,50,8,6,15,0,0,0,0,0,192,246,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,32,35,19,0,0,32,1,0,0,49,53,0,0,50,3,0,0,32,83,0,48,19,0,0,0,0,0,4,83,2,0,0,0,49,2,112,68,48,2,0,0,34,3,0,4,32,19,0,0,48,18,0,7,83,50,0,0,16,53,0,7,84,3,0,0,48,5,0,71,0,0,0,0,0,64,0,132,0,0,2,0,0,0,100,4,0,35,19,0,0,0,128,4,48,50,2,0,0,0,0,7,80,21,0,0,50,0,0,7,4,0,0,96,11,48,11,112,123,123,0,112,10,64,11,96,107,122,0,48,0,96,0,64,58,123,10,64,0,163,0,64,48,107,11,80,0,163,0,179,64,48,11,80,11,6,0,182,112,48,11,112,10,6,16,8,96,43,10,0,7,6,16,8,96,74,10,0,6,7,96,10,112,107,10,0,164,167,96,0,96,107,11,0,162,183,112,0,112,123,11,0,177,167,96,10,112,122,0,0,7,96,10,7,163,96,0,80,10,96,11,166,183,166,0,112,11,112,11,183,166,183,0,0,155,144,155,176,185,185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,80,7,32,0,0,0,2,0,32,8,48,0,0,0,131,0,32,0,80,7,128,0,80,0,96,0,96,8,32,0,96,8,133,0,118,0,48,8,0,116,114,5,130,0,0,118,0,2,134,2,2,0,0,5,0,5,5,131,3,0,0,5,80,7,5,116,115,0,16,0,32,0,5,4,117,0,48,0,32,0,5,4,134,0,48,8,96,0,134,118,5,0,80,7,80,7,134,116,6,0,96,7,96,8,132,134,4,0,79,97,183,76,223,48,86,0,184,211,0,16,6,178,13,0,64,20,214,125,70,97,183,9,0,61,125,22,57,189,112,0,213,100,209,126,27,116,13,0,96,237,131,24,40,190,5,0,244,84,209,127,81,4,159,0,96,176,46,21,162,188,4,0,144,107,22,75,225,118,107,0,0,248,45,22,146,190,4,0,0,76,118,129,205,72,0,0,0,134,206,19,104,251,0,0,0,240,88,22,189,132,14,0,0,156,0,16,12,0,9,0,0,0,0,64,12,0,0,0,0,0,0,112,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,8,0,0,16,3,0,0,144,225,0,192,195,78,0,0,0,26,4,89,113,8,0,0,224,63,109,62,5,0,0,0,156,118,65,20,252,0,0,0,10,206,146,243,104,0,0,0,208,71,18,161,254,0,0,0,128,240,172,242,90,14,0,0,64,140,23,113,238,5,0,0,0,198,94,223,69,15,0,200,7,108,22,148,14,1,0,160,177,212,156,220,55,15,0,231,242,77,24,164,145,183,5,0,238,6,32,122,175,80,0,0,48,15,90,127,170,99,0,0,32,160,146,74,182,188,12,0,99,42,175,170,178,204,12,63,58,58,170,122,226,236,14,48,250,167,82,90,244,227,0,176,107,167,199,221,124,179,11,204,236,122,188,236,126,203,204,176,204,122,219,238,51,206,14,176,236,167,236,62,175,227,14,0,78,175,79,118,122,111,5,0,0,167,71,247,167,106,0,0,240,167,71,167,167,100,15,0,0,48,95,122,250,4,0,0,0,64,122,159,135,9,0,0,0,0,132,138,170,0,0,0,0,0,0,0,0,0,0,0,0,0,161,186,0,0,0,0,0,0,184,184,0,0,0,0,129,10,112,11,128,8,0,0,185,57,7,0,186,26,0,0,184,0,39,0,163,138,0,0,112,0,64,32,3,187,0,0,114,0,129,0,7,119,0,0,64,128,170,8,39,112,0,0,50,160,184,59,0,4,2,0,48,2,176,71,0,64,0,0,0,71,64,6,0,64,2,0,128,66,0,37,0,112,0,144,152,184,7,5,32,3,0,128,129,185,119,0,52,112,2,0,152,11,68,64,7,112,0,0,0,118,117,117,87,6,0,96,6,103,101,101,101,0,0,112,87,119,86,103,117,0,0,0,112,117,118,22,49,0,0,0,112,86,102,36,18,4,0,0,0,103,117,49,36,101,6,96,85,112,117,53,100,119,0,0,103,118,117,85,117,0,0,0,112,101,101,101,119,0,0,80,117,102,86,102,0,85,7,96,86,103,87,102,85,119,0,0,96,101,86,86,119,7,0,0,0,86,86,86,7,0,0,0,0,80,87,118,0,0,0,0,0,112,103,119,0,0,0,0,0,112,119,118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,53,0,96,97,0,0,0,131,104,5,143,17,6,0,48,53,85,5,142,38,18,0,48,53,38,196,174,104,97,0,0,67,68,201,234,143,104,0,0,155,249,206,239,175,250,0,0,192,255,31,226,170,14,0,224,252,204,33,102,239,170,14,224,207,44,38,134,175,254,15,0,240,111,17,136,234,15,0,0,0,204,134,168,254,10,0,0,0,240,174,173,174,14,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,102,5,0,0,0,0,160,251,54,120,3,0,0,160,253,202,103,53,104,3,160,253,219,252,70,55,56,71,253,185,191,174,88,136,104,52,217,187,234,251,68,87,134,134,237,170,236,187,136,131,134,51,217,207,207,251,80,84,51,88,251,175,189,10,0,64,104,52,233,253,13,0,0,0,112,105,234,14,0,0,0,0,0,48,10,0,0,0,0,0,0,192,12,0,0,0,0,0,192,28,23,7,0,0,0,0,112,204,115,1,0,0,0,0,0,192,12,0,0,0,10,0,0,0,0,0,0,176,234,14,0,0,0,0,96,178,56,24,8,0,0,208,251,111,30,225,168,5,240,214,246,246,229,161,133,229,178,253,178,109,234,138,238,136,159,242,219,251,168,56,163,21,157,182,217,253,26,56,90,136,187,191,191,242,80,234,232,56,180,219,223,15,0,128,62,133,159,191,11,0,0,0,224,234,38,13,0,0,0,0,0,128,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,6,0,0,0,0,0,112,118,38,6,0,0,0,0,176,186,119,7,0,0,0,0,0,160,10,0,0,0,11,0,0,0,0,0,0,224,188,11,0,0,0,0,224,254,17,189,12,0,0,224,253,147,1,21,207,11,208,248,147,0,0,0,21,191,253,147,0,0,0,0,0,21,147,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,9,0,0,0,0,0,160,169,28,1,0,0,0,0,160,28,17,2,0,0,0,0,0,32,2,0,0,0,10,0,0,0,0,0,0,80,156,10,0,0,0,0,64,84,109,204,2,0,0,240,68,232,0,107,35,2,176,255,232,230,0,0,107,68,255,232,0,6,0,0,0,214,232,0,0,0,0,0,0,213,0,0,0,0,0,0,0,176,0,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,10,0,0,0,0,0,0,128,58,7,0,0,0,0,128,220,58,55,10,0,0,128,143,222,105,119,58,7,128,220,191,94,58,102,58,55,143,222,190,92,58,23,105,119,191,94,143,220,58,55,58,102,190,92,143,222,105,119,58,23,143,220,191,94,48,102,58,55,143,222,190,12,0,48,105,119,191,94,15,0,0,0,48,102,190,12,0,0,0,0,0,48,15,0,0,0,0,0,0,96,4,0,0,0,0,0,96,68,97,4,0,0,0,0,64,97,68,1,0,0,0,0,0,64,1,0,0,0,7,0,0,0,0,0,0,208,171,10,0,0,0,0,80,239,119,186,7,0,0,208,147,213,18,167,171,10,80,239,223,158,119,26,119,186,147,213,237,221,171,42,18,167,223,158,93,239,119,186,119,26,237,221,147,213,18,167,171,42,93,239,223,158,112,26,119,186,147,213,237,13,0,32,18,167,223,158,13,0,0,0,112,26,237,13,0,0,0,0,0,32,13,0,0,0};-const uint32_t spr_off[226] = {0,2002,2290,2418,2463,2508,2553,2598,2643,2688,2733,3188,3643,3688,3816,3944,4072,4200,4328,4456,4584,4712,4840,4968,5096,5224,5352,5480,5608,5736,5864,5992,6120,6248,6376,6504,6632,6760,6888,7016,7144,7272,7400,7528,7656,7784,7912,8040,8168,8296,8424,8552,8680,8808,8936,9064,9192,9320,9448,9576,9704,9832,9960,10088,10216,10344,10472,10600,10728,10856,10984,11112,11240,11368,11496,11624,11752,11880,12008,12136,12264,12392,12520,12648,12776,12904,13032,13160,13288,13416,13544,13672,13800,13928,14056,14184,14312,14440,14568,14696,14824,14952,15080,15208,15336,15464,15592,15720,15848,15976,16104,16232,16360,16488,16616,16744,16872,17000,17128,17256,17384,17512,17640,17768,17896,18024,18152,18280,18408,18536,18664,18792,18920,19048,19176,19304,19432,19560,19688,19816,19944,20072,20200,20328,20456,20584,20712,20840,20968,21096,21224,21352,21480,21608,21736,21864,21992,22120,22248,22376,22504,22632,22760,22888,23016,23144,23272,23400,23528,23656,23784,23912,24040,24168,24296,24424,24552,24680,24808,24936,25064,25192,25320,25448,25576,25704,25832,25960,26088,26216,26344,26472,26600,26728,26856,26984,27112,27240,27368,27496,27624,27752,27880,28008,28136,28264,28392,28520,28648,28776,28904,29032,29160,29288,29416,29544,29672,29800,29928,30056,30184,30312,30440,30568,30696,30824};-const uint8_t spr_w[226] = {182,24,16,9,9,9,9,9,9,9,182,182,9,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16};-const uint8_t spr_h[226] = {22,24,16,9,9,9,9,9,9,9,5,5,9,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16};-const uint8_t spr_alpha[226] = {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};-const uint16_t spr_pal[226][16] = {+const uint8_t blk_model[B_COUNT] = {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,1,3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,8,8,8,1,9,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,5,5,5,5,5,5,1,1,1,1,1,4,4,4,4,4,9,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,14,14,15,10,1,1,6,9,1,7,1,2,13,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,11,1,10,1,1,13,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,8,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,5,5,3,3,5,5,5,5,5,5,2,2,2,2,2,2,2,2};+const uint8_t blk_light[B_COUNT] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,14,14,14,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0};+const uint8_t blk_flags[B_COUNT] = {0,24,24,24,24,24,24,24,25,25,24,24,24,24,24,24,24,24,24,24,0,0,0,0,0,0,24,5,0,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,18,19,20,18,24,16,24,24,24,24,24,0,0,1,1,0,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,0,0,0,0,0,0,0,0,0,0,0,0,24,24,24,16,16,16,16,16,16,24,24,24,24,24,0,0,0,0,0,16,24,24,24,24,24,0,0,0,0,0,0,0,0,24,24,24,24,16,16,0,0,24,24,16,16,24,16,24,1,16,24,24,24,24,24,24,24,24,24,24,24,24,24,16,24,2,24,6,24,24,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,18,18,24,24,24,0,0,0,0,1,1,1,1,0,0,0,0,24,24,16,16,5,0,16,16,16,16,16,16,0,0,0,0,0,0,0,0};+const uint8_t blk_tool[B_COUNT] = {0,1,1,1,1,1,1,1,3,3,3,3,3,1,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,3,3,3,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,4,4,4,0,0,1,1,1,1,1,5,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,2,1,1,0,0,0,0,0,1,2,2,1,1,2,0,0,0,0,0,0,0,0,3,3,1,1,2,2,2,1,1,1,3,1,3,0,3,0,2,2,2,1,1,1,1,1,2,2,2,2,2,2,0,2,4,3,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,4,4,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0};+const uint8_t blk_level[B_COUNT] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};+const uint8_t blk_hard[B_COUNT] = {0,30,30,30,30,30,30,30,12,12,10,10,10,40,40,40,40,40,40,40,0,0,0,0,0,0,255,255,255,10,10,12,60,60,60,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,4,4,4,4,12,6,60,60,16,16,16,80,0,0,0,0,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,0,0,0,0,0,0,0,0,0,0,0,0,60,100,40,40,40,40,40,40,40,40,0,30,40,255,0,0,0,0,0,100,40,50,60,100,50,0,0,0,0,0,0,0,0,12,12,70,70,60,60,8,14,40,60,2,10,4,8,12,0,40,20,20,15,30,30,30,30,4,4,4,4,4,4,6,20,4,12,0,60,100,40,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,40,40,40,40,40,40,40,40,4,4,10,100,10,0,0,0,0,0,0,0,0,0,0,0,0,16,6,4,4,255,255,40,40,40,40,40,40,0,0,0,0,0,0,0,0};+const uint8_t blk_id[B_COUNT] = {0,1,1,1,1,1,1,1,2,2,3,3,3,4,5,5,5,5,5,5,6,6,6,6,6,6,7,9,11,12,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,19,20,21,22,24,24,24,30,31,31,31,32,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,37,38,38,38,38,38,38,38,38,38,39,40,41,42,43,44,44,44,44,44,44,45,46,47,48,49,50,50,50,50,50,52,53,54,56,57,58,59,59,59,59,59,59,59,59,60,60,61,62,64,64,65,66,67,73,78,79,80,81,82,83,85,86,91,97,98,98,98,98,99,99,99,100,100,100,102,103,106,110,111,129,133,139,172,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,162,162,162,162,162,162,162,162,161,161,170,173,174,175,175,175,175,175,175,175,175,175,175,175,175,179,89,26,26,8,10,126,126,126,126,126,126,141,141,141,141,142,142,142,142};+const uint8_t blk_meta[B_COUNT] = {0,0,1,2,3,4,5,6,0,8,0,1,2,0,0,1,2,3,4,5,0,1,2,3,4,5,0,0,0,0,1,0,0,0,0,0,4,8,12,1,5,9,13,2,6,10,14,3,7,11,15,0,1,2,3,0,0,0,0,0,1,2,0,0,1,2,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,0,1,2,3,4,5,6,7,8,0,0,0,0,0,0,1,2,3,4,5,0,0,0,0,0,5,1,2,3,4,0,0,2,0,0,0,0,1,2,3,4,5,6,7,0,7,2,2,0,8,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,14,0,10,14,0,10,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,4,8,12,1,5,9,13,0,1,0,0,0,0,8,1,9,2,10,3,11,4,12,5,13,0,0,0,8,1,2,0,1,2,3,4,5,0,2,4,7,0,2,4,7};+const uint8_t spr_px[56494] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,244,31,102,86,102,101,102,102,86,101,70,54,102,102,86,102,102,101,102,100,70,53,102,101,85,101,85,101,101,102,70,54,102,102,102,102,101,102,102,101,70,54,102,102,102,100,102,102,102,86,70,54,102,86,102,100,102,102,102,102,86,53,102,102,102,102,101,102,102,102,70,54,102,102,102,102,102,86,86,102,85,54,101,102,102,85,101,102,101,102,70,247,31,229,238,238,238,238,238,238,238,78,53,230,237,238,238,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,53,230,238,238,238,238,238,238,238,62,54,229,238,238,238,237,238,238,238,62,52,230,238,238,237,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,54,230,238,238,238,238,238,238,238,62,54,229,238,238,238,238,238,238,238,62,247,31,229,173,218,186,184,186,173,170,58,54,229,168,170,170,170,139,217,202,41,54,230,170,170,154,186,170,186,205,60,54,230,186,138,218,172,170,173,170,59,54,230,186,202,219,202,171,173,200,59,54,229,202,170,169,170,218,172,216,74,54,230,172,170,170,186,200,202,155,58,53,230,170,187,186,170,170,186,139,74,54,230,172,203,170,169,155,138,138,58,247,31,230,170,170,171,170,187,169,170,59,54,230,186,170,171,170,138,185,138,61,54,230,173,170,172,170,170,186,172,74,53,230,170,138,170,202,138,170,170,42,54,214,218,139,170,171,138,170,218,58,54,230,170,136,172,170,170,171,218,61,37,229,138,169,170,169,202,138,170,58,53,230,170,186,218,168,219,172,170,58,54,229,186,172,139,141,169,202,152,58,247,31,229,138,218,186,171,137,170,138,58,54,230,170,169,170,170,171,170,170,58,54,230,186,154,170,169,169,173,141,59,54,230,170,171,186,171,138,170,170,60,38,229,187,168,171,172,170,173,138,74,53,230,173,170,170,170,169,138,170,58,37,230,202,170,169,202,218,155,203,58,54,230,173,170,152,170,170,218,136,58,54,230,202,186,169,200,172,173,188,57,247,31,230,136,218,170,170,140,170,138,58,54,229,186,205,154,170,169,171,170,59,54,229,154,170,170,202,138,173,202,56,54,230,187,218,138,171,172,170,205,58,54,229,170,172,204,170,170,218,171,58,54,230,221,187,218,184,170,156,201,42,54,230,171,185,170,171,169,170,184,42,70,228,138,172,138,200,171,170,170,58,53,230,168,189,170,170,138,170,172,58,247,31,230,154,138,170,170,170,170,170,60,54,230,170,202,170,170,154,168,138,58,54,230,169,170,187,170,168,170,168,58,53,230,170,168,218,170,170,218,200,73,54,229,202,173,136,170,186,173,170,40,53,230,170,168,171,218,170,170,186,61,38,230,170,203,218,170,171,171,168,57,53,230,170,170,171,173,173,170,171,58,54,230,218,173,170,168,170,170,170,58,247,31,230,170,171,202,218,170,154,218,58,53,230,186,170,216,173,202,202,218,58,54,230,170,186,140,186,186,138,170,58,54,230,168,201,185,137,201,205,202,56,54,230,170,170,154,170,186,170,202,58,37,230,170,170,170,204,170,220,154,58,69,230,170,186,187,168,202,137,170,56,70,229,173,172,184,138,219,172,141,58,54,230,168,138,173,189,170,170,168,74,247,31,229,154,173,186,172,200,170,139,58,53,230,172,189,170,170,173,168,186,56,54,230,172,188,202,170,186,170,170,58,54,230,188,204,173,170,170,154,170,59,54,229,188,170,154,170,170,168,139,58,54,230,202,168,170,184,170,172,218,56,53,230,170,218,186,170,170,170,170,58,54,230,170,204,186,170,170,186,139,58,54,230,186,185,217,202,154,168,170,58,247,31,230,188,154,184,171,170,173,186,42,70,230,170,170,171,188,186,168,173,59,38,230,189,171,170,137,170,171,170,60,54,230,155,168,157,170,170,186,173,58,53,230,170,219,186,170,138,203,202,41,53,230,173,170,170,138,170,185,172,56,54,230,171,136,173,140,170,170,170,60,54,230,186,187,202,173,217,170,170,57,54,230,170,170,172,170,170,187,218,58,247,31,230,169,170,173,184,170,138,171,72,54,214,170,172,138,154,219,139,170,58,54,228,173,186,220,205,170,218,186,58,54,230,172,218,170,155,170,138,186,44,38,229,186,186,170,168,202,185,204,58,38,230,152,189,173,170,218,200,156,56,36,230,220,170,138,171,170,203,170,60,70,230,217,170,171,168,172,173,172,58,54,230,173,170,172,219,170,170,170,58,247,31,229,170,157,170,170,169,170,173,59,54,230,170,170,154,202,186,139,204,60,54,230,170,157,172,140,186,170,218,58,54,230,170,170,171,168,170,170,170,58,54,230,202,155,202,138,172,156,168,57,53,229,138,172,170,170,170,170,173,58,54,230,173,170,168,170,170,202,170,58,53,230,186,168,170,154,170,154,170,58,54,229,154,170,202,184,186,138,202,58,247,31,229,170,154,169,186,218,186,216,58,70,230,154,170,170,189,154,186,217,74,54,230,171,172,217,170,170,170,171,58,54,229,154,153,170,201,170,202,170,59,54,230,170,218,220,171,186,170,170,58,54,230,186,186,171,171,170,154,184,59,54,230,170,170,170,218,154,186,172,58,53,230,138,171,170,152,170,170,154,58,54,229,154,152,170,170,170,186,218,56,247,31,230,168,172,173,171,202,185,205,58,70,230,170,155,218,170,170,170,170,58,38,230,170,170,186,173,202,170,170,57,54,230,170,216,168,171,154,138,172,58,54,230,168,154,170,170,172,170,186,59,38,230,171,170,173,170,140,170,138,58,54,230,170,216,170,218,170,170,170,42,54,230,185,186,173,203,186,170,154,58,54,230,202,218,171,186,170,154,186,59,247,31,230,138,154,186,170,169,170,170,58,37,229,171,154,170,141,218,186,170,59,38,228,170,141,186,172,202,188,189,42,53,230,202,171,152,170,187,187,170,58,70,230,170,170,155,138,170,173,138,60,54,230,171,155,186,219,152,170,170,75,38,230,189,168,170,170,203,202,168,58,54,230,170,202,155,170,186,169,170,58,53,230,170,170,170,138,170,170,216,58,247,31,230,170,170,170,170,138,170,170,59,54,230,172,202,173,171,169,170,171,58,38,229,171,138,170,218,170,138,201,60,54,230,186,170,187,138,170,203,170,58,69,214,168,170,171,203,204,173,156,59,54,230,170,172,170,172,170,202,170,57,54,230,202,168,170,168,155,170,170,58,54,230,173,170,204,170,171,139,170,56,54,230,170,219,203,218,184,170,140,58,247,31,230,170,189,218,186,170,189,170,58,54,230,170,170,172,171,170,140,170,58,54,230,136,171,186,170,173,170,170,60,54,230,220,216,169,168,218,218,200,74,69,230,172,171,138,154,170,173,168,74,70,230,218,172,169,187,169,188,137,59,53,230,170,138,173,218,204,170,138,57,54,230,170,204,186,188,171,202,170,61,54,229,186,168,141,218,170,201,169,60,247,31,52,51,51,51,51,34,51,36,51,54,52,51,50,51,51,51,50,51,51,53,52,50,35,35,51,51,67,35,67,70,52,52,51,51,51,51,34,51,51,54,52,51,51,51,51,35,51,51,51,54,52,51,51,51,51,68,51,51,50,70,52,51,51,51,49,67,51,51,51,54,19,51,51,51,51,67,35,51,51,54,52,51,51,51,51,67,52,51,51,247,31,101,86,102,85,102,86,102,101,102,70,85,102,86,86,102,102,102,102,102,70,102,102,85,101,102,101,102,102,102,70,102,102,86,101,102,101,102,85,102,70,86,102,86,102,102,86,102,101,101,70,86,101,101,102,102,101,102,101,101,85,86,102,101,102,102,86,102,102,102,70,102,102,102,102,86,102,102,102,101,70,102,86,102,102,102,102,102,102,86,247,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,30,17,33,49,67,51,50,35,67,51,51,231,30,119,135,119,119,133,135,135,135,119,118,235,30,167,219,219,187,187,186,203,203,187,102,235,30,183,0,0,0,0,0,0,0,0,116,235,62,181,0,0,0,0,0,0,0,0,114,234,62,183,0,0,0,0,0,0,0,0,115,234,62,183,0,0,0,0,0,0,0,0,115,235,78,183,0,0,0,0,0,0,0,0,115,235,62,183,0,0,0,0,0,0,0,0,99,235,62,182,0,0,0,0,0,0,0,0,114,237,62,183,0,0,0,0,0,0,0,0,114,234,46,199,0,0,0,0,0,0,0,0,115,236,62,214,0,0,0,0,0,0,0,0,115,235,46,167,0,0,0,0,0,0,0,0,115,235,62,151,0,0,0,0,0,0,0,0,131,237,46,168,0,0,0,0,0,0,0,0,115,235,78,215,0,0,0,0,0,0,0,0,100,234,78,200,0,0,0,0,0,0,0,0,114,235,62,200,0,0,0,0,0,0,0,0,129,237,62,71,52,35,68,67,51,51,51,18,113,235,62,119,133,119,135,117,120,119,120,120,120,235,126,187,170,205,187,170,187,187,171,155,219,235,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,16,17,17,17,17,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,32,2,0,32,17,18,33,0,18,17,17,17,2,18,17,17,17,2,18,17,17,17,2,32,17,17,33,0,0,18,17,2,0,0,32,33,0,0,0,0,2,0,0,0,0,0,0,0,0,34,32,2,0,32,33,34,34,0,32,34,34,34,0,48,34,34,50,0,0,35,34,3,0,0,48,50,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,32,33,2,0,0,32,34,2,0,0,48,34,2,0,0,0,35,2,0,0,0,48,2,0,0,0,0,3,0,0,0,0,0,0,0,0,34,0,0,0,32,17,2,0,0,18,17,33,0,0,18,17,17,2,0,32,17,17,2,0,0,18,17,2,0,0,32,34,33,2,0,0,0,18,2,0,0,0,34,0,0,0,0,0,0,0,135,0,0,0,112,115,4,0,0,128,71,69,0,0,0,105,85,0,0,0,144,102,0,0,0,0,0,2,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,147,10,0,0,0,64,89,0,0,0,160,106,0,0,0,0,120,0,0,0,0,0,2,0,0,0,0,16,0,0,0,0,0,0,32,2,0,34,0,18,33,32,17,2,18,17,18,17,2,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,32,17,17,33,0,0,34,34,2,0,144,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,9,25,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,102,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,145,57,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,56,117,119,119,53,68,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,131,83,119,119,87,147,25,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,24,50,51,51,18,102,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,129,33,51,51,35,145,144,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,9,240,238,204,204,238,238,239,204,236,255,255,207,204,236,238,238,206,204,238,254,255,238,204,204,254,255,239,204,188,236,254,238,204,236,238,254,207,204,236,255,255,204,204,238,238,255,238,206,188,204,255,239,204,204,236,254,239,238,238,255,255,207,204,238,238,255,239,204,236,238,255,238,206,204,236,255,239,238,204,238,255,238,204,187,236,238,238,206,204,255,15,175,122,34,34,135,154,73,36,84,170,171,58,34,84,152,155,138,37,84,169,171,138,69,68,136,155,73,67,85,153,171,57,52,68,152,155,40,66,68,137,155,40,35,84,137,221,154,116,136,152,201,153,88,117,152,186,170,53,67,149,185,170,72,116,152,185,154,36,66,131,185,169,69,84,167,185,170,53,132,135,185,154,37,65,132,184,154,53,68,146,249,143,18,17,68,130,139,18,50,100,83,139,17,51,34,114,123,51,97,70,83,139,20,17,18,33,90,17,33,34,50,123,49,102,51,131,91,33,51,102,83,123,51,67,102,54,187,19,65,102,35,229,37,99,102,51,184,39,50,102,54,184,56,35,100,51,183,23,33,51,51,180,37,49,102,54,181,55,49,38,97,184,21,33,50,51,183,39,50,35,50,248,175,88,136,85,170,155,120,119,85,153,155,137,120,85,170,171,74,84,85,169,171,73,119,85,170,171,89,120,68,168,155,137,120,133,170,155,89,135,85,169,171,89,136,88,169,221,153,136,69,148,234,153,120,85,165,186,137,135,136,165,186,154,133,88,165,186,170,136,88,165,186,153,135,119,132,185,120,68,36,149,186,154,84,117,168,186,170,120,85,168,250,240,238,204,204,236,255,255,238,254,255,255,206,188,187,203,255,239,238,238,255,255,255,238,238,255,255,238,204,204,252,255,239,204,238,254,255,239,204,204,252,255,206,204,236,255,255,238,204,204,236,238,239,238,238,238,255,255,204,204,236,255,239,206,204,236,255,255,188,203,204,254,239,206,238,238,254,239,206,204,238,254,239,206,236,238,254,255,238,236,255,15,0,64,68,0,0,0,52,51,4,0,64,3,0,67,0,52,16,1,32,4,52,16,0,32,4,52,0,0,32,4,64,3,0,66,0,0,36,34,4,0,0,64,68,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,102,4,0,0,112,151,186,84,70,70,6,160,167,121,186,100,102,102,100,169,171,155,122,101,102,85,84,167,122,123,154,86,84,100,84,154,154,121,151,69,86,102,84,185,170,167,153,96,102,84,85,170,169,122,10,0,80,101,134,169,167,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,16,7,0,0,0,0,0,48,29,83,11,0,0,0,0,32,34,58,3,0,0,0,0,0,160,1,0,0,0,6,0,0,0,0,0,0,144,157,12,0,0,0,0,176,153,227,38,4,0,0,224,158,124,83,214,214,6,176,179,237,254,216,109,98,99,89,183,253,139,249,198,44,199,179,139,135,155,207,206,41,83,251,243,226,254,53,86,214,93,41,251,248,153,160,61,82,37,181,180,143,15,0,32,34,130,89,248,9,0,0,0,96,28,248,8,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,20,67,8,0,0,0,0,112,17,51,8,0,0,0,0,0,160,7,0,0,0,1,0,0,0,0,0,0,224,56,1,0,0,0,0,112,251,147,102,1,0,0,32,186,245,67,214,214,1,112,202,174,249,98,102,98,227,203,201,254,252,168,54,68,221,202,172,174,252,74,72,35,211,252,250,153,250,52,70,102,221,91,204,202,251,240,54,66,164,204,203,172,15,0,208,100,230,203,202,15,0,0,0,224,179,202,15,0,0,0,0,0,208,15,0,0,0,0,0,0,16,5,0,0,0,0,0,64,42,27,13,0,0,0,0,16,65,49,1,0,0,0,0,0,16,4,0,0,0,4,0,0,0,0,0,0,224,184,15,0,0,0,0,192,175,63,54,7,0,0,80,231,249,83,34,252,3,160,215,230,175,35,228,88,49,187,236,222,237,216,41,34,101,171,253,233,238,88,131,52,18,246,124,159,156,101,83,36,178,191,167,109,122,96,56,130,56,105,234,171,11,0,240,130,88,174,198,8,0,0,0,224,151,134,10,0,0,0,0,0,128,10,0,0,0,0,0,0,80,1,0,0,0,0,0,16,37,27,8,0,0,0,0,128,18,17,7,0,0,0,0,0,128,8,0,0,0,2,0,0,0,0,0,0,192,100,9,0,0,0,0,128,252,78,55,1,0,0,112,168,249,99,34,199,2,112,140,235,253,36,213,185,194,219,220,154,249,148,101,38,230,173,217,169,253,100,67,69,178,218,124,158,252,38,99,56,242,191,172,185,250,224,116,70,201,169,186,171,15,0,240,146,212,170,199,14,0,0,0,240,195,203,15,0,0,0,0,0,192,15,0,0,0,0,0,0,32,2,0,0,0,0,0,16,36,18,7,0,0,0,0,96,35,66,1,0,0,0,0,0,32,9,0,0,0,7,0,0,0,0,0,0,128,146,2,0,0,0,0,192,194,106,170,3,0,0,192,120,235,75,168,186,12,224,155,214,206,167,85,104,131,107,107,253,254,163,153,98,101,205,186,239,202,92,151,131,34,248,107,252,233,87,36,90,39,188,212,221,95,16,171,50,41,140,155,235,13,0,48,53,117,147,91,9,0,0,0,64,209,220,15,0,0,0,0,0,128,9,0,0,0,0,0,0,32,1,0,0,0,0,0,16,17,17,1,0,0,0,0,112,33,33,3,0,0,0,0,0,112,8,0,0,0,1,0,0,0,0,0,0,128,82,1,0,0,0,0,96,248,68,103,1,0,0,64,200,249,88,82,101,1,64,138,138,253,51,84,86,211,171,201,172,253,98,101,82,182,204,157,171,250,87,86,99,134,156,186,236,248,54,100,87,148,188,138,204,252,144,88,66,213,220,138,170,15,0,144,51,197,136,169,15,0,0,0,144,211,138,15,0,0,0,0,0,208,14,0,0,0,0,0,0,128,5,0,0,0,0,0,48,133,133,5,0,0,0,0,80,81,51,5,0,0,0,0,0,80,3,0,0,0,1,0,0,0,0,0,0,112,30,2,0,0,0,0,112,247,234,62,1,0,0,112,51,207,106,230,17,3,112,255,223,188,74,234,238,39,119,207,156,204,166,166,234,166,157,155,207,201,110,170,102,70,207,251,252,155,170,102,164,106,188,191,203,185,96,110,170,102,155,201,191,11,0,160,228,234,204,252,11,0,0,0,160,106,155,12,0,0,0,0,0,224,12,0,0,0,0,0,0,128,5,0,0,0,0,0,80,136,133,5,0,0,0,0,80,84,85,5,0,0,0,0,0,80,5,0,0,0,1,0,0,0,0,0,0,48,30,1,0,0,0,0,48,243,234,46,1,0,0,48,51,207,126,231,17,2,48,255,223,188,106,234,238,33,51,207,156,204,167,167,234,167,157,155,207,201,126,170,119,103,207,251,204,155,170,119,166,122,188,191,203,185,112,126,170,119,155,201,255,11,0,112,234,234,204,252,11,0,0,0,160,122,155,12,0,0,0,0,0,224,12,0,0,0,0,0,0,64,6,0,0,0,0,0,96,38,42,6,0,0,0,0,96,34,102,1,0,0,0,0,0,32,2,0,0,0,5,0,0,0,0,0,0,112,136,3,0,0,0,0,176,185,136,216,8,0,0,144,183,183,88,53,136,3,176,185,201,155,56,216,93,221,233,190,123,187,133,133,216,133,124,121,190,183,93,136,85,53,190,233,235,121,136,85,131,88,155,158,185,151,80,93,136,85,121,183,158,9,0,128,211,216,187,235,9,0,0,0,128,88,121,11,0,0,0,0,0,208,11,0,0,0,0,0,0,16,4,0,0,0,0,0,32,18,55,2,0,0,0,0,112,17,33,5,0,0,0,0,0,48,3,0,0,0,2,0,0,0,0,0,0,64,126,1,0,0,0,0,160,167,222,218,6,0,0,112,164,174,38,34,111,1,160,169,141,218,150,214,46,221,247,175,77,250,98,247,102,99,120,71,239,164,46,109,101,146,175,249,122,126,150,165,20,38,218,127,183,116,32,47,246,125,71,213,159,13,0,96,226,217,170,250,7,0,0,0,96,127,77,14,0,0,0,0,0,208,10,0,0,0,0,0,0,144,1,0,0,0,0,0,64,139,152,11,0,0,0,0,64,75,97,8,0,0,0,0,0,128,8,0,0,0,13,0,0,0,0,0,0,224,153,9,0,0,0,0,96,254,181,220,8,0,0,240,207,175,37,146,201,9,240,255,124,122,21,165,154,204,238,252,58,170,82,82,165,153,238,55,173,163,42,85,34,18,173,215,218,55,85,34,81,37,122,125,167,115,32,42,85,34,55,163,125,7,0,80,161,165,170,218,7,0,0,0,80,37,55,10,0,0,0,0,0,160,10,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,160,4,0,0,0,0,0,160,162,130,1,0,0,0,0,160,130,165,2,0,0,0,0,0,160,1,0,0,0,6,0,0,0,0,0,0,176,130,2,0,0,0,0,112,185,198,102,2,0,0,144,155,127,50,194,50,2,176,153,222,123,210,98,214,98,183,190,121,191,99,202,54,195,191,185,158,187,194,50,211,98,155,127,155,127,34,198,166,194,126,183,190,123,176,98,204,99,155,191,153,15,0,208,98,194,127,183,14,0,0,0,208,50,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,80,2,0,0,0,0,0,80,81,49,1,0,0,0,0,80,49,82,1,0,0,0,0,0,80,1,0,0,0,4,0,0,0,0,0,0,208,98,2,0,0,0,0,128,218,148,68,2,0,0,160,172,143,50,146,50,2,192,170,222,140,178,98,180,98,200,222,138,223,67,150,52,147,207,218,174,220,146,50,179,66,172,143,172,143,34,148,100,146,142,200,206,140,112,98,150,99,172,223,170,15,0,176,66,146,143,216,14,0,0,0,176,50,204,15,0,0,0,0,0,144,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,100,1,0,0,0,0,144,100,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,192,178,2,0,0,0,0,112,200,181,85,2,0,0,128,138,127,50,178,50,2,160,136,238,122,210,98,213,98,167,206,120,207,83,187,53,179,175,200,142,202,178,50,211,82,138,127,138,127,34,181,181,178,126,167,174,122,160,98,187,99,138,207,136,15,0,208,82,178,127,199,14,0,0,0,208,50,170,15,0,0,0,0,0,176,14,0,0,0,0,0,0,80,1,0,0,0,0,0,80,81,49,1,0,0,0,0,80,49,81,1,0,0,0,0,0,80,1,0,0,0,4,0,0,0,0,0,0,208,98,2,0,0,0,0,128,218,148,68,2,0,0,160,172,143,50,146,50,2,192,170,222,140,178,98,180,98,200,222,138,223,67,150,52,147,207,218,174,220,146,50,179,66,172,143,172,143,34,148,100,146,142,200,206,140,112,98,150,99,172,223,170,15,0,176,66,146,143,216,14,0,0,0,176,50,204,15,0,0,0,0,0,144,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,176,195,3,0,0,0,0,112,184,197,85,3,0,0,128,139,127,67,195,67,3,176,136,238,123,211,83,213,83,183,190,120,191,84,204,69,196,191,184,142,187,195,67,212,83,139,127,139,127,51,197,197,195,126,183,190,123,160,83,204,84,139,191,136,15,0,208,83,195,127,183,14,0,0,0,208,67,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,17,0,0,33,12,0,0,0,38,16,33,32,3,0,0,16,115,12,194,155,201,0,0,32,200,12,60,185,59,0,0,0,128,179,147,203,16,2,0,16,12,154,17,0,33,12,0,32,48,85,114,188,192,0,0,0,66,155,195,153,53,1,0,16,183,16,188,27,12,44,0,33,204,32,60,11,0,192,0,194,192,176,19,6,0,0,0,0,0,48,180,12,0,0,0,0,0,48,185,0,0,0,0,0,0,128,185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,1,0,0,0,0,0,0,36,68,0,0,0,0,0,0,48,6,0,0,0,0,16,2,81,6,33,0,0,0,33,17,98,21,2,0,0,16,52,3,82,69,0,1,0,0,49,17,52,19,52,3,0,0,0,83,83,49,101,1,0,0,16,49,21,84,4,0,0,0,0,16,19,53,1,0,0,0,0,64,81,69,20,0,0,0,0,0,52,22,0,0,0,0,0,0,99,37,0,0,0,0,0,0,96,6,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,68,3,0,48,3,0,0,0,65,64,51,64,3,0,0,64,17,66,4,68,49,0,0,16,82,21,4,68,66,0,0,52,64,17,81,33,0,0,0,68,3,48,19,5,52,0,0,64,80,68,20,21,64,0,0,19,33,69,17,18,4,0,64,4,52,85,52,32,52,0,64,0,0,18,68,64,68,3,0,0,0,51,33,64,64,4,0,0,0,36,21,0,0,0,0,0,0,32,81,0,0,0,0,0,0,32,33,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,22,0,0,0,0,0,16,0,41,17,0,0,0,0,97,68,73,38,0,0,0,0,32,104,100,0,0,0,0,0,0,100,17,1,0,0,0,0,17,16,131,22,0,0,0,48,102,57,103,1,0,0,0,0,19,102,107,16,3,0,0,0,0,103,102,102,1,0,0,0,0,96,177,16,0,0,0,0,16,131,35,0,0,0,0,0,16,102,41,0,0,0,0,0,0,98,11,0,0,0,0,0,0,133,91,0,0,0,0,0,85,200,221,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,1,0,0,0,0,0,32,85,80,0,1,0,0,0,81,200,80,18,6,81,0,0,16,134,66,98,1,5,0,0,0,98,201,181,85,5,0,0,0,85,92,6,41,0,0,0,0,49,53,197,89,0,0,0,0,16,165,193,1,0,0,0,0,80,115,91,0,0,0,0,0,0,147,11,0,0,0,0,0,0,96,201,0,0,0,0,0,0,144,11,0,0,0,0,0,0,128,185,0,0,0,0,0,0,156,203,0,0,0,0,0,0,0,0,0,0,0,0,102,0,0,0,1,0,0,0,16,6,6,102,99,0,0,0,96,11,50,99,102,0,0,96,182,1,101,6,187,6,0,0,81,101,96,176,111,7,0,0,0,102,102,251,54,54,0,96,102,211,28,102,19,99,0,0,3,119,55,49,102,6,0,0,0,103,183,248,0,0,0,0,0,3,206,207,0,0,0,0,0,0,137,188,0,0,0,0,0,0,202,252,0,0,0,0,0,0,120,247,0,0,0,0,0,0,200,247,0,0,0,0,0,0,201,252,0,0,0,0,0,0,16,1,0,0,0,0,0,64,136,72,1,0,0,0,0,16,24,136,4,0,0,0,0,0,128,1,0,0,0,9,0,0,0,0,0,0,112,43,5,0,0,0,0,160,119,82,41,2,0,0,48,115,202,82,41,41,9,160,163,55,202,146,153,153,146,167,172,124,58,149,153,85,82,163,58,60,122,89,82,146,82,106,122,55,115,37,89,153,82,199,170,163,119,144,153,82,85,170,167,58,10,0,80,149,185,167,167,7,0,0,0,144,41,163,3,0,0,0,0,0,80,10,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,3,0,0,0,0,0,0,64,117,7,0,0,0,0,160,223,102,87,5,0,0,192,172,203,101,54,115,3,176,219,234,173,49,53,53,117,221,216,186,139,118,49,83,85,190,187,171,188,119,149,83,115,190,171,174,237,102,118,117,51,164,223,207,221,48,86,119,101,223,239,75,11,0,48,51,87,238,204,10,0,0,0,80,99,221,4,0,0,0,0,0,80,8,0,0,0,0,0,0,48,3,0,0,0,0,0,48,19,81,3,0,0,0,0,48,86,81,3,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,112,99,2,0,0,0,0,208,71,153,154,10,0,0,224,231,116,152,88,133,5,176,219,239,187,130,34,150,34,219,127,125,222,82,51,85,18,235,187,238,190,104,170,154,85,190,180,79,191,81,161,26,138,237,254,238,127,32,170,86,57,183,247,187,7,0,160,153,154,221,253,15,0,0,0,48,38,119,11,0,0,0,0,0,96,7,0,0,0,0,0,0,32,1,0,0,0,0,0,16,34,33,1,0,0,0,0,16,17,17,3,0,0,0,0,0,16,2,0,0,0,4,0,0,0,0,0,0,192,67,6,0,0,0,0,176,158,87,119,5,0,0,224,170,250,37,84,84,2,192,207,174,223,101,85,72,72,238,171,153,203,101,55,151,153,238,250,207,203,133,115,114,148,203,191,236,239,166,119,51,70,174,187,252,190,144,55,37,66,173,254,233,12,0,48,85,148,154,191,9,0,0,0,80,120,250,11,0,0,0,0,0,128,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,33,33,1,0,0,0,0,16,17,17,3,0,0,0,0,0,16,1,0,0,0,5,0,0,0,0,0,0,208,51,5,0,0,0,0,192,157,86,135,4,0,0,192,187,251,36,84,68,2,192,206,174,238,100,84,72,56,237,188,154,203,101,40,134,169,204,234,207,203,133,131,114,131,203,222,204,238,166,104,50,53,190,221,251,190,144,55,36,50,189,254,233,12,0,48,85,164,171,190,10,0,0,0,80,120,251,11,0,0,0,0,0,128,11,0,0,0,0,0,0,32,1,0,0,0,0,0,16,146,34,2,0,0,0,0,32,149,17,1,0,0,0,0,0,16,2,0,0,0,12,0,0,0,0,0,0,240,71,8,0,0,0,0,144,150,231,151,4,0,0,96,223,223,126,116,119,7,144,222,157,253,50,124,78,114,175,141,223,154,116,23,119,68,221,217,255,141,66,67,78,36,143,239,173,218,120,119,68,126,221,173,175,174,224,148,71,68,174,239,254,10,0,64,136,183,213,250,10,0,0,0,112,120,174,13,0,0,0,0,0,128,10,0,0,0,0,0,0,64,4,0,0,0,0,0,80,102,86,4,0,0,0,0,64,70,102,5,0,0,0,0,0,96,4,0,0,0,10,0,0,0,0,0,0,208,124,9,0,0,0,0,224,221,151,122,7,0,0,176,219,254,151,26,122,10,224,235,189,254,161,162,170,162,237,239,143,190,169,170,25,151,235,132,191,222,154,23,161,151,78,222,184,219,25,154,170,151,253,238,59,221,160,170,17,153,238,237,184,14,0,144,169,195,237,237,13,0,0,0,160,122,235,11,0,0,0,0,0,144,14,0,0,0,0,0,0,32,2,0,0,0,0,0,48,68,52,2,0,0,0,0,32,36,68,3,0,0,0,0,0,64,2,0,0,0,9,0,0,0,0,0,0,208,108,8,0,0,0,0,224,221,134,105,6,0,0,176,219,254,134,25,105,9,224,235,189,254,145,151,153,151,237,239,175,190,152,153,24,134,235,165,191,222,137,22,145,134,94,222,186,219,24,137,153,134,253,238,171,221,144,153,17,136,238,237,186,14,0,128,152,199,237,237,13,0,0,0,144,105,235,11,0,0,0,0,0,128,14,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,70,4,0,0,112,151,186,84,214,70,6,160,167,121,186,109,110,102,110,169,171,251,122,101,102,213,84,167,254,123,154,86,212,109,84,234,154,127,151,213,86,102,84,185,170,247,153,96,102,220,85,170,169,127,10,0,80,101,142,169,169,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,17,17,3,0,0,0,0,0,192,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,130,7,0,0,240,159,149,132,116,46,4,80,181,95,169,114,120,45,36,251,185,223,153,116,221,62,66,190,251,255,102,114,114,189,116,172,255,255,86,103,34,217,103,165,198,252,182,208,100,232,66,165,165,252,11,0,208,231,40,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,82,26,3,0,0,0,0,0,48,12,0,0,0,7,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,114,7,0,0,224,159,149,116,116,29,4,80,181,95,169,98,120,45,36,235,185,223,153,116,221,45,65,190,251,255,102,113,114,189,116,172,255,255,85,103,17,217,102,165,198,252,182,208,100,216,65,181,181,252,11,0,208,215,24,185,249,10,0,0,0,224,228,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,32,17,17,2,0,0,0,0,0,48,3,0,0,0,8,0,0,0,0,0,0,48,233,6,0,0,0,0,112,71,204,130,8,0,0,208,126,115,132,132,45,4,48,164,62,151,98,137,44,36,219,167,190,119,132,204,45,66,173,234,239,85,130,130,188,132,171,222,223,68,104,34,201,102,147,181,235,165,208,100,216,66,163,163,235,10,0,192,216,41,183,231,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,176,13,0,0,0,0,0,32,198,197,1,0,0,0,0,80,114,44,6,0,0,0,0,0,80,12,0,0,0,7,0,0,0,0,0,0,48,233,6,0,0,0,0,128,56,204,113,7,0,0,208,142,131,116,116,29,4,48,163,62,152,113,121,28,20,219,168,190,136,132,204,45,65,173,234,239,85,129,113,188,132,171,222,223,52,120,17,201,103,147,181,235,165,208,100,217,65,163,163,235,10,0,192,215,25,168,232,10,0,0,0,240,212,217,10,0,0,0,0,0,64,10,0,0,0,0,0,0,80,5,0,0,0,0,0,80,133,88,5,0,0,0,0,16,88,133,14,0,0,0,0,0,16,1,0,0,0,2,0,0,0,0,0,0,208,100,9,0,0,0,0,112,201,147,70,4,0,0,192,218,201,22,238,70,4,144,202,201,158,54,25,36,68,154,255,153,188,66,68,22,70,215,201,157,154,65,105,68,243,174,124,124,237,46,150,67,98,125,156,153,254,224,145,100,68,202,157,234,7,0,64,70,100,153,122,9,0,0,0,96,246,156,12,0,0,0,0,0,32,9,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,32,22,33,15,0,0,0,0,0,16,15,0,0,0,3,0,0,0,0,0,0,224,116,9,0,0,0,0,128,218,147,87,4,0,0,208,234,218,39,255,55,5,176,218,219,191,55,41,53,84,170,255,171,205,83,84,39,87,232,219,189,186,66,121,51,243,207,141,141,254,63,151,83,115,142,173,170,255,240,146,117,85,220,174,250,8,0,48,87,101,187,138,11,0,0,0,96,246,189,13,0,0,0,0,0,48,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,112,17,17,3,0,0,0,0,0,144,2,0,0,0,12,0,0,0,0,0,0,128,119,3,0,0,0,0,240,248,194,85,12,0,0,224,248,168,115,210,45,9,96,153,172,111,93,204,36,73,168,110,159,235,37,205,195,37,95,156,159,164,99,198,101,83,234,171,139,142,45,76,66,76,251,86,153,188,208,39,89,116,152,233,136,15,0,80,196,215,254,152,10,0,0,0,80,39,203,14,0,0,0,0,0,208,9,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,128,3,0,0,0,0,0,112,49,55,1,0,0,0,0,96,33,49,2,0,0,0,0,0,144,1,0,0,0,12,0,0,0,0,0,0,112,102,2,0,0,0,0,240,247,194,69,12,0,0,224,247,167,98,209,45,8,80,136,172,95,93,204,35,56,167,94,143,235,36,205,194,37,79,156,143,164,82,197,85,66,234,171,123,126,45,76,50,60,251,69,136,188,208,38,88,100,135,233,119,15,0,80,195,214,254,151,10,0,0,0,80,38,203,14,0,0,0,0,0,208,8,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,24,8,8,0,0,0,0,128,8,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,96,147,2,0,0,0,0,176,96,0,192,0,0,0,0,198,11,147,0,144,3,176,6,0,91,3,144,195,67,199,182,13,96,144,48,147,3,112,0,80,176,4,57,0,9,112,182,96,11,3,51,3,3,109,6,96,108,192,147,67,147,204,107,0,0,0,0,144,169,96,192,6,0,0,0,64,3,96,11,0,0,0,0,0,0,11,0,0,0,0,0,0,0,1,0,0,0,0,0,0,170,16,1,0,0,0,0,16,16,176,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,64,0,0,0,0,0,0,143,4,2,0,0,0,0,127,176,5,3,35,13,144,15,9,238,53,0,38,208,0,7,9,239,192,93,208,64,0,139,8,7,32,13,213,125,247,174,0,128,80,3,3,193,150,0,170,231,0,6,54,4,15,0,175,11,0,208,91,48,160,8,7,0,0,0,0,2,224,9,0,0,0,0,0,32,0,0,0,0,0,0,0,32,6,0,0,0,0,0,32,51,34,1,0,0,0,0,32,98,6,6,0,0,0,0,0,32,6,0,0,0,4,0,0,0,0,0,0,224,164,4,0,0,0,0,64,175,64,0,4,0,0,240,112,169,64,64,32,12,160,122,154,5,4,64,68,124,170,160,170,160,148,66,148,67,122,208,173,170,76,3,76,192,224,169,160,170,76,32,200,192,154,229,238,0,64,68,122,68,154,127,254,10,0,0,68,112,250,170,10,0,0,0,0,196,160,10,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,25,17,1,0,0,0,0,16,24,17,4,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,176,116,3,0,0,0,0,160,170,227,131,6,0,0,176,154,222,94,227,118,6,176,233,203,186,51,86,248,102,175,234,235,186,229,53,84,52,237,190,219,207,34,100,56,146,158,250,159,155,134,53,116,70,175,157,205,219,112,232,248,130,156,157,202,13,0,80,88,88,250,185,9,0,0,0,48,98,249,11,0,0,0,0,0,144,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,32,2,0,0,0,1,0,0,0,0,0,0,96,0,1,0,0,0,0,80,0,1,48,1,0,0,80,0,112,0,0,0,1,0,0,0,112,3,0,1,64,80,0,0,112,0,0,0,67,0,96,0,0,3,0,0,0,0,0,0,112,0,0,0,64,0,80,80,96,64,0,0,1,0,0,0,7,0,0,0,64,0,0,7,0,0,0,64,64,0,7,0,0,0,0,0,48,7,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,18,1,0,0,0,0,16,18,42,1,0,0,0,0,0,32,1,0,0,0,5,0,0,0,0,0,0,128,55,4,0,0,0,0,144,136,67,61,3,0,0,96,134,185,67,197,53,5,144,150,104,185,93,90,85,93,200,159,235,105,84,85,164,67,150,237,235,142,245,211,93,67,249,249,110,142,52,79,205,67,190,153,150,136,80,92,77,77,153,152,111,9,0,64,84,124,152,159,8,0,0,0,80,53,150,6,0,0,0,0,0,64,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,81,17,5,0,0,0,0,48,21,17,5,0,0,0,0,0,64,4,0,0,0,2,0,0,0,0,0,0,144,19,1,0,0,0,0,112,234,51,70,1,0,0,112,201,234,53,69,82,1,64,172,170,254,54,99,134,198,121,188,186,251,85,51,36,200,153,153,154,221,196,52,102,196,201,153,187,219,71,136,70,132,153,247,169,235,80,132,70,134,252,253,205,13,0,144,70,116,219,175,13,0,0,0,160,116,155,13,0,0,0,0,0,192,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,86,5,0,0,0,0,160,251,54,120,3,0,0,160,253,218,87,53,88,3,176,253,219,252,69,71,56,71,253,202,191,175,88,136,104,52,218,187,234,252,68,87,134,134,237,170,252,188,136,131,134,52,218,223,223,251,80,84,51,88,252,175,205,10,0,64,104,52,234,253,13,0,0,0,112,105,234,15,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,69,4,0,0,0,0,160,250,52,102,3,0,0,160,236,250,70,55,71,3,160,220,201,251,67,51,55,53,220,185,174,235,131,115,53,131,201,221,189,237,116,131,70,133,204,186,159,237,117,102,99,132,202,159,187,223,128,103,118,131,157,234,203,15,0,128,84,134,204,203,15,0,0,0,128,133,207,13,0,0,0,0,0,128,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,17,1,0,0,0,0,16,34,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,144,86,4,0,0,0,0,144,250,53,119,3,0,0,144,254,250,83,51,87,3,160,253,233,252,67,51,54,70,253,201,186,252,101,83,54,131,233,169,205,252,102,53,86,134,220,201,172,251,102,83,101,134,218,204,204,250,128,87,53,133,220,154,236,15,0,128,101,131,237,236,15,0,0,0,128,134,237,15,0,0,0,0,0,128,15,0,0,0,4,0,0,0,3,0,0,64,64,0,0,52,49,4,0,4,0,19,67,0,2,48,48,0,0,64,0,32,4,0,2,0,0,32,3,36,48,48,48,0,0,4,64,64,0,3,0,4,0,3,4,52,64,48,0,3,20,66,50,34,3,0,3,48,48,0,3,16,50,52,50,19,0,4,32,36,64,0,3,48,0,4,64,64,0,3,4,4,0,48,64,32,64,50,0,3,0,32,3,51,4,0,51,0,0,4,64,2,0,52,49,0,64,0,0,49,68,0,0,4,4,0,0,4,0,0,0,64,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,2,0,1,0,0,0,0,16,2,0,33,0,0,16,1,16,33,18,1,0,0,0,18,0,17,33,18,0,0,0,32,33,33,2,2,0,0,0,0,18,34,0,0,0,0,0,16,17,2,32,0,0,16,17,17,18,33,17,17,0,0,32,34,16,33,2,34,1,0,0,1,0,33,2,0,1,0,0,1,32,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,32,33,0,0,0,0,0,64,0,0,0,0,0,0,0,16,0,0,112,0,0,0,1,64,0,1,7,0,224,0,229,64,8,4,14,7,225,1,85,64,14,4,126,0,137,228,80,160,14,236,67,1,6,225,96,176,14,158,14,1,6,68,126,206,202,126,14,6,14,64,142,206,10,90,66,54,7,128,14,238,184,14,238,231,9,144,14,14,174,14,174,233,10,224,2,14,158,14,190,234,0,224,62,190,94,46,190,110,0,80,34,174,78,40,190,126,12,208,236,195,142,143,254,254,12,91,237,253,223,222,221,206,15,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,19,34,0,0,0,0,0,0,18,2,0,0,0,0,0,48,35,51,0,0,0,0,0,35,18,34,0,0,0,0,0,48,35,51,2,0,0,0,0,35,18,34,3,0,0,0,0,50,35,51,2,0,0,0,32,35,18,34,51,0,0,0,0,48,19,51,2,0,0,0,32,35,18,34,51,0,0,0,0,50,19,51,34,0,0,0,32,0,32,3,0,2,0,0,0,0,32,3,0,0,0,0,0,0,32,3,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,16,2,0,1,0,0,0,0,16,2,0,33,0,0,16,1,16,33,18,1,0,0,0,18,0,17,33,18,0,0,0,32,33,33,2,2,0,0,0,0,18,34,0,0,0,0,0,16,17,2,32,0,0,16,17,17,18,33,17,17,0,0,32,34,16,33,2,34,1,0,0,1,0,33,2,0,1,0,0,1,32,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,16,33,0,0,0,0,0,0,32,33,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,174,72,132,5,0,0,208,175,252,66,69,132,7,224,186,235,173,38,135,71,130,186,252,191,234,68,70,130,69,188,175,253,186,104,100,72,130,175,202,170,255,35,99,36,72,220,175,173,235,96,135,101,55,171,252,219,13,0,48,68,98,253,170,12,0,0,0,64,38,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,224,53,6,0,0,0,0,224,174,88,133,6,0,0,208,174,253,83,86,133,8,224,202,236,189,54,152,88,131,202,253,207,234,101,87,131,86,189,191,253,186,121,117,88,147,175,218,186,255,52,100,54,88,221,175,174,236,128,136,118,56,172,253,220,14,0,64,86,115,254,170,13,0,0,0,80,54,202,13,0,0,0,0,0,80,14,0,0,0,0,0,0,80,1,0,0,0,0,0,80,85,85,5,0,0,0,0,80,85,81,5,0,0,0,0,0,80,1,0,0,0,8,0,0,0,0,0,0,224,35,6,0,0,0,0,208,174,56,131,6,0,0,192,174,252,51,54,131,7,208,186,235,172,38,136,55,131,186,252,191,234,67,71,131,70,172,175,236,170,120,115,56,130,175,202,170,239,35,99,36,72,204,175,173,219,112,135,118,56,171,252,203,13,0,48,52,114,253,170,12,0,0,0,64,54,186,12,0,0,0,0,0,48,13,0,0,0,0,0,0,96,1,0,0,0,0,0,96,17,54,3,0,0,0,0,96,99,17,6,0,0,0,0,0,96,1,0,0,0,8,0,0,0,0,0,0,240,37,7,0,0,0,0,224,174,88,133,7,0,0,208,175,252,82,87,133,8,224,202,236,173,39,136,88,132,186,252,207,234,85,87,130,87,188,175,253,186,120,117,88,130,175,202,170,255,36,116,37,88,220,175,173,235,128,136,119,72,172,252,219,13,0,64,85,114,253,170,12,0,0,0,80,71,202,12,0,0,0,0,0,80,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,34,2,0,0,0,0,32,50,17,2,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,224,174,72,132,6,0,0,208,174,253,66,69,132,7,224,202,236,173,38,135,71,130,186,252,207,234,84,70,130,69,189,175,253,186,104,100,72,130,175,202,170,255,35,99,37,72,221,175,173,235,112,135,101,39,172,252,219,13,0,48,69,98,253,170,13,0,0,0,64,38,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,53,6,0,0,0,0,224,175,88,133,6,0,0,208,175,253,83,86,133,8,224,202,236,173,54,136,88,131,186,252,207,234,100,87,131,86,189,175,253,186,120,117,88,131,175,202,170,255,52,100,54,88,221,175,173,235,128,136,118,56,172,252,219,13,0,64,86,115,253,170,13,0,0,0,80,54,202,12,0,0,0,0,0,80,13,0,0,0,0,0,0,48,1,0,0,0,0,0,48,17,51,3,0,0,0,0,48,51,17,3,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,240,36,6,0,0,0,0,224,175,71,132,6,0,0,208,175,252,66,70,132,7,224,202,236,173,38,135,71,114,186,252,207,234,68,70,130,70,188,175,253,186,120,116,72,130,175,202,170,255,36,100,36,72,204,175,173,235,112,135,102,39,172,252,203,13,0,32,68,98,253,170,12,0,0,0,64,38,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,34,2,0,0,0,0,32,50,17,2,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,224,53,6,0,0,0,0,208,173,88,133,6,0,0,192,174,236,83,86,133,7,208,186,219,172,54,135,87,132,186,252,191,218,101,87,131,86,172,175,236,170,120,117,88,131,159,202,170,239,52,100,54,88,204,174,173,219,112,135,118,71,171,252,203,13,0,64,86,115,237,154,12,0,0,0,80,70,186,12,0,0,0,0,0,80,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,174,72,132,6,0,0,208,175,253,66,70,132,7,224,202,236,189,38,135,71,131,186,252,207,234,84,86,130,85,189,191,253,186,104,100,72,130,175,202,186,255,36,100,37,88,221,175,173,235,112,135,101,55,172,252,219,13,0,48,69,98,253,170,13,0,0,0,80,54,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,208,174,72,132,6,0,0,208,174,252,66,69,132,7,208,186,235,173,38,135,71,131,186,252,191,234,68,70,130,69,188,175,237,186,104,100,72,130,175,202,170,239,35,99,36,72,220,175,173,219,112,135,101,55,171,252,219,13,0,48,68,98,253,170,12,0,0,0,64,54,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,48,1,0,0,0,0,0,48,17,51,3,0,0,0,0,48,51,17,3,0,0,0,0,0,48,1,0,0,0,8,0,0,0,0,0,0,240,36,6,0,0,0,0,224,174,72,132,6,0,0,208,175,252,66,70,132,7,224,202,236,173,38,135,71,132,186,252,207,234,68,70,130,70,188,175,253,186,120,116,72,130,175,202,170,255,36,100,36,72,220,175,173,235,112,135,102,71,172,252,219,13,0,64,68,98,253,170,12,0,0,0,64,70,202,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,48,17,18,1,0,0,0,0,32,49,17,2,0,0,0,0,0,48,1,0,0,0,9,0,0,0,0,0,0,240,53,6,0,0,0,0,224,174,88,133,6,0,0,224,175,253,82,86,133,7,224,202,236,190,54,152,87,130,202,253,207,234,100,87,130,86,189,191,254,186,121,117,88,147,175,218,186,255,52,98,54,88,237,175,174,236,112,135,118,40,172,253,236,14,0,32,86,115,254,170,13,0,0,0,80,38,202,13,0,0,0,0,0,80,14,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,1,0,0,0,0,16,33,17,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,6,0,0,0,0,224,158,72,132,6,0,0,192,158,236,66,70,132,7,208,185,235,172,38,135,71,130,169,251,191,233,84,71,130,70,172,175,236,169,120,116,72,130,159,185,169,239,35,98,37,72,204,158,157,218,112,135,118,39,155,251,202,13,0,32,69,114,237,153,12,0,0,0,64,38,185,11,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,18,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,240,36,5,0,0,0,0,224,175,72,132,6,0,0,208,175,253,66,69,132,7,224,202,251,173,38,135,71,131,186,252,191,250,84,86,130,85,189,175,253,186,120,116,72,130,175,202,170,255,35,99,37,88,221,175,173,235,112,135,101,55,171,252,219,13,0,48,69,98,253,170,13,0,0,0,80,54,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,32,1,0,0,0,0,0,32,17,34,2,0,0,0,0,32,34,17,2,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,224,36,5,0,0,0,0,208,174,72,132,6,0,0,208,174,252,66,70,132,7,208,186,235,173,38,135,71,130,186,252,191,234,84,86,130,85,188,175,237,186,120,116,72,130,175,202,170,239,35,99,37,88,204,175,173,219,112,135,101,39,171,252,203,13,0,48,69,98,253,170,12,0,0,0,80,38,186,12,0,0,0,0,0,64,13,0,0,0,0,0,0,96,1,0,0,0,0,0,112,33,70,6,0,0,0,0,96,118,33,6,0,0,0,0,0,112,1,0,0,0,9,0,0,0,0,0,0,224,35,5,0,0,0,0,208,174,56,147,6,0,0,208,174,252,50,53,147,7,208,202,235,189,38,152,55,130,186,252,191,234,83,86,146,85,188,191,253,186,121,115,57,146,159,202,186,255,35,99,37,88,220,175,173,219,112,151,101,40,171,252,219,13,0,48,53,98,253,154,12,0,0,0,80,38,186,12,0,0,0,0,0,48,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,49,1,0,0,0,0,0,34,65,0,0,0,0,0,16,49,68,2,0,0,0,0,0,80,5,0,0,0,0,0,0,80,86,6,0,0,0,0,96,85,102,0,0,0,0,0,0,86,6,0,0,0,0,0,0,80,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,0,0,0,0,0,0,167,121,6,0,0,0,0,96,198,139,8,0,0,0,0,48,115,136,0,0,0,0,0,0,38,5,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,32,1,1,17,0,0,0,0,0,2,36,0,0,0,0,0,0,32,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,112,65,0,0,50,48,2,0,69,3,0,0,68,48,3,80,3,0,0,0,80,117,0,69,49,0,0,64,115,0,7,6,3,0,0,32,3,0,112,50,0,0,0,0,0,0,96,68,0,0,0,0,0,0,80,0,0,0,0,0,0,0,96,7,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,6,0,0,0,0,0,0,112,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,12,0,0,0,0,0,64,222,226,0,0,0,0,0,44,44,254,5,0,0,0,0,255,35,94,15,0,0,0,0,16,236,194,0,0,0,0,0,0,175,44,0,0,0,0,0,0,96,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,112,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,144,0,0,0,0,0,0,0,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,32,33,3,0,0,0,0,0,48,84,16,2,0,0,0,32,1,19,65,3,0,0,0,16,4,54,82,0,0,0,0,0,70,5,4,33,0,0,0,0,16,82,4,52,0,0,0,0,16,67,68,0,0,0,0,0,0,64,5,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,8,0,0,0,0,0,0,155,11,0,0,0,0,0,0,141,13,0,0,0,0,0,0,192,0,0,0,0,0,0,80,64,16,0,0,0,0,0,69,112,16,5,0,0,0,0,23,71,32,7,0,0,0,0,23,71,55,7,0,0,0,0,80,81,103,0,0,0,0,0,112,84,70,0,0,0,0,0,0,23,22,0,0,0,0,0,0,71,22,0,0,0,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,1,0,0,0,0,0,0,38,6,0,0,0,0,0,0,71,7,0,0,0,0,0,0,128,0,0,0,0,0,0,3,240,192,0,0,0,0,0,60,176,176,12,0,0,0,0,158,224,48,14,0,0,0,0,174,236,190,14,0,0,0,0,222,206,195,14,0,0,0,0,176,205,235,0,0,0,0,0,48,61,14,0,0,0,0,0,48,189,14,0,0,0,0,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,18,2,0,0,0,0,0,0,35,3,0,0,0,0,0,0,64,0,0,0,0,0,0,144,192,0,80,0,0,0,0,89,128,0,150,0,0,0,0,91,176,96,186,0,0,0,0,139,139,112,11,0,0,0,0,155,149,171,11,0,0,0,0,176,152,138,0,0,0,0,0,0,91,90,0,0,0,0,0,0,139,10,0,0,0,0,0,0,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,18,2,0,0,0,0,0,0,35,3,0,0,0,0,0,0,48,0,0,0,0,0,128,4,176,128,0,0,0,0,0,149,64,64,8,0,0,0,0,89,64,64,10,0,0,0,0,106,112,122,10,0,0,0,0,138,138,164,0,0,0,0,0,112,132,167,0,0,0,0,0,160,73,10,0,0,0,0,0,0,122,10,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,16,19,19,0,0,0,0,0,32,84,52,0,0,0,0,0,17,85,21,1,0,0,0,0,48,84,36,0,0,0,0,0,16,19,19,0,0,0,0,0,0,16,7,0,0,0,0,0,0,96,10,0,0,0,0,0,0,112,0,0,0,0,0,0,160,135,0,0,0,0,0,0,0,138,160,0,0,0,0,0,0,96,10,0,0,0,0,0,0,112,10,0,0,0,0,0,0,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,33,0,0,0,0,0,16,33,34,3,0,0,0,0,32,34,50,3,0,0,0,0,32,51,51,3,0,0,0,0,0,64,5,0,0,0,0,0,0,64,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,150,0,0,0,0,0,96,145,121,8,0,0,0,0,150,153,41,136,0,0,0,0,146,39,135,56,0,0,0,0,112,136,136,8,0,0,0,0,0,64,5,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,80,17,17,5,0,0,0,0,0,80,5,0,0,0,14,0,0,0,0,0,0,240,99,8,0,0,0,0,240,253,52,100,8,0,0,240,188,251,83,68,100,7,240,220,189,253,83,70,84,134,172,221,221,251,83,85,68,133,218,187,238,253,34,51,101,134,188,238,204,254,52,50,67,135,188,204,234,255,128,52,67,134,170,170,252,15,0,128,118,151,170,220,15,0,0,0,128,152,220,15,0,0,0,0,0,144,15,0,0,0,0,0,0,32,1,0,0,0,0,0,16,18,17,1,0,0,0,0,64,17,18,3,0,0,0,0,0,80,4,0,0,0,9,0,0,0,0,0,0,224,52,7,0,0,0,0,240,235,83,52,7,0,0,224,187,237,69,83,68,8,224,186,188,251,52,70,100,132,187,156,203,235,83,68,69,164,156,203,187,237,69,83,68,134,203,187,188,251,52,69,99,132,185,172,219,235,128,52,69,164,156,203,187,15,0,144,68,134,203,185,14,0,0,0,128,132,185,14,0,0,0,0,0,144,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,34,18,1,0,0,0,0,64,18,34,6,0,0,0,0,0,112,4,0,0,0,3,0,0,0,0,0,0,192,88,3,0,0,0,0,128,236,101,87,2,0,0,128,202,253,101,87,87,3,128,218,172,253,178,119,119,181,220,221,205,175,118,179,102,149,218,173,143,237,103,101,178,149,205,143,172,234,86,103,119,146,142,221,218,236,176,119,101,150,221,220,173,15,0,144,118,215,220,220,14,0,0,0,176,135,218,14,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,64,19,51,5,0,0,0,0,0,128,4,0,0,0,2,0,0,0,0,0,0,160,118,3,0,0,0,0,128,237,103,100,2,0,0,144,172,234,70,103,119,2,144,221,218,236,176,119,100,166,221,220,173,15,0,160,118,215,220,220,14,0,0,0,176,151,218,14,0,0,0,0,0,160,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,2,0,0,0,0,0,16,34,33,1,0,0,0,0,16,34,34,2,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,160,105,9,0,0,0,0,208,251,100,104,7,0,0,160,236,187,152,148,151,5,192,207,206,251,96,101,68,105,235,175,188,10,0,80,120,69,218,252,12,0,0,0,128,121,218,14,0,0,0,0,0,64,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,3,0,0,0,0,0,0,160,84,12,0,0,0,0,128,170,195,67,4,0,0,112,138,127,51,197,197,3,112,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,132,130,4,0,0,0,0,0,16,8,0,0,0,2,0,0,0,0,0,0,224,92,12,0,0,0,0,208,174,194,122,2,0,0,112,245,249,51,70,85,3,80,223,239,232,48,133,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,221,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,0,0,0,0,0,32,33,33,1,0,0,0,0,32,33,33,1,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,208,75,9,0,0,0,0,96,236,73,187,9,0,0,160,108,104,188,89,74,9,96,238,200,109,80,75,73,187,110,120,239,8,0,64,187,89,200,110,8,0,0,0,80,75,238,8,0,0,0,0,0,64,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,1,0,0,0,0,0,16,131,33,2,0,0,0,0,112,21,97,5,0,0,0,0,0,128,3,0,0,0,2,0,0,0,0,0,0,128,131,2,0,0,0,0,160,221,54,195,2,0,0,240,186,219,106,182,68,2,144,251,186,237,176,184,134,99,221,251,234,15,0,192,73,102,171,253,15,0,0,0,176,137,235,15,0,0,0,0,0,192,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,9,0,0,0,0,0,0,176,41,8,0,0,0,0,64,205,40,202,8,0,0,176,79,87,173,57,42,8,80,254,183,94,56,45,40,169,78,71,254,215,42,40,172,56,183,78,71,236,40,170,56,42,254,151,92,71,172,56,58,40,71,238,183,77,48,58,40,170,78,87,238,7,0,32,170,56,183,94,7,0,0,0,48,42,238,7,0,0,0,0,0,48,7,0,0,0,0,0,0,128,8,0,0,0,0,0,128,245,248,8,0,0,0,0,128,88,248,8,0,0,0,0,0,128,8,0,0,0,7,0,0,0,0,0,0,192,151,7,0,0,0,0,192,234,151,151,7,0,0,192,234,234,33,151,151,7,192,234,234,67,242,18,151,151,234,234,243,68,243,242,47,151,234,67,79,85,215,34,47,47,243,68,95,237,151,215,34,34,244,85,237,234,144,151,215,35,85,237,234,11,0,144,151,215,237,234,11,0,0,0,144,151,234,11,0,0,0,0,0,144,11,0,0,0,0,0,0,64,3,0,0,0,0,0,64,65,49,1,0,0,0,0,64,49,67,1,0,0,0,0,0,64,1,0,0,0,1,0,0,0,0,0,0,96,233,1,0,0,0,0,48,111,121,140,2,0,0,96,143,55,121,140,237,1,64,143,138,55,98,188,89,45,255,220,137,107,238,97,89,97,114,140,187,108,185,233,98,39,121,75,255,60,185,217,229,98,107,223,162,60,64,137,145,44,239,234,165,11,0,96,149,108,218,138,11,0,0,0,96,28,218,11,0,0,0,0,0,96,11,0,0,0,0,0,0,112,1,0,0,0,0,0,112,17,122,1,0,0,0,0,160,22,103,7,0,0,0,0,0,112,8,0,0,0,1,0,0,0,0,0,0,96,68,4,0,0,0,0,64,143,161,119,1,0,0,208,136,149,164,67,78,6,80,189,189,201,190,187,151,58,244,205,179,78,23,183,119,164,223,214,221,131,65,89,55,180,216,68,235,221,19,75,167,28,56,111,88,248,176,149,187,70,137,142,99,13,0,160,74,148,253,211,8,0,0,0,160,147,88,15,0,0,0,0,0,96,9,0,0,0,0,0,0,176,11,0,0,0,0,0,176,35,43,4,0,0,0,0,48,20,26,5,0,0,0,0,0,64,3,0,0,0,7,0,0,0,0,0,0,176,237,7,0,0,0,0,160,175,46,121,14,0,0,192,210,156,216,24,114,7,192,252,244,203,158,225,121,113,44,188,204,146,103,55,126,119,175,47,255,188,113,39,248,142,171,69,109,193,39,136,222,98,75,172,178,218,96,119,113,125,203,204,67,11,0,112,35,120,63,207,9,0,0,0,112,87,75,9,0,0,0,0,0,96,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,3,0,0,0,0,0,0,16,1,0,0,0,0,0,0,128,10,0,0,0,0,0,0,112,14,0,0,0,0,0,0,112,11,0,0,0,0,0,0,64,12,0,0,0,0,0,0,96,14,0,0,0,0,0,0,144,13,0,0,0,0,0,0,80,14,0,0,0,0,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,1,0,0,0,0,0,48,1,16,4,0,0,0,0,0,32,4,0,0,0,5,0,0,0,0,0,0,224,5,7,0,0,0,0,176,235,0,3,5,0,0,240,176,235,48,5,5,3,176,187,0,190,0,86,0,140,176,10,10,186,5,5,32,53,0,12,0,253,0,12,0,157,11,11,176,187,80,5,5,133,0,186,0,191,80,85,0,89,176,6,10,12,0,80,128,85,0,14,11,0,0,0,80,152,13,12,0,0,0,0,0,112,11,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,48,3,0,0,0,0,0,80,102,86,3,0,0,0,0,48,54,102,5,0,0,0,0,0,96,3,0,0,0,10,0,0,0,0,0,0,208,124,9,0,0,0,0,224,221,151,122,7,0,0,176,219,254,151,26,122,10,224,235,189,254,161,164,170,164,237,239,143,190,169,170,25,151,235,130,191,222,154,23,161,151,46,222,184,219,25,154,170,151,253,238,139,221,160,170,17,153,238,237,184,14,0,144,169,196,237,237,13,0,0,0,160,122,235,11,0,0,0,0,0,144,14,0,0,0,0,0,0,16,2,0,0,0,0,0,16,33,17,1,0,0,0,0,112,17,33,7,0,0,0,0,0,112,7,0,0,0,13,0,0,0,0,0,0,224,84,13,0,0,0,0,224,235,67,84,13,0,0,224,171,235,84,51,84,7,240,170,186,235,83,69,84,117,172,153,170,251,83,85,68,117,153,187,204,250,51,51,85,117,184,204,137,252,67,51,51,118,184,137,200,254,112,52,68,116,137,136,235,14,0,112,101,215,136,184,14,0,0,0,112,215,184,14,0,0,0,0,0,208,14,0,0,0,0,0,0,192,12,0,0,0,0,0,48,58,180,3,0,0,0,0,160,163,58,13,0,0,0,0,0,240,15,0,0,0,4,0,0,0,0,0,0,240,146,12,0,0,0,0,96,246,180,180,4,0,0,192,109,251,210,226,34,2,128,214,170,248,210,210,212,226,134,218,102,251,18,233,212,237,171,221,106,248,146,201,18,225,216,219,104,251,66,244,148,225,90,245,138,248,128,210,148,225,104,251,102,11,0,224,66,225,155,214,10,0,0,0,144,226,168,11,0,0,0,0,0,224,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,80,0,0,0,0,0,3,0,16,6,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,232,0,0,0,0,0,0,0,32,0,0,0,0,112,0,0,96,11,0,4,0,0,3,0,96,14,32,208,0,0,177,12,160,95,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,244,0,0,0,0,16,0,0,16,0,0,0,0,16,7,0,48,11,0,4,0,0,1,16,48,12,64,192,0,0,122,4,103,140,96,0,0,0,243,218,80,110,174,0,0,8,213,249,80,159,94,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,166,0,0,0,0,96,0,0,80,0,0,6,0,128,12,80,32,10,0,181,0,0,6,128,42,12,96,160,0,0,179,5,46,188,32,0,0,0,226,163,16,60,63,0,6,6,178,231,16,119,46,128,192,178,196,244,64,77,63,112,15,199,244,228,64,159,157,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,116,0,0,0,0,0,0,0,179,0,0,0,0,48,0,0,64,0,0,3,0,48,7,64,80,11,0,115,0,0,3,48,27,12,64,112,0,0,161,4,26,74,16,0,0,0,161,177,96,27,27,0,3,4,161,185,96,93,90,64,32,193,165,229,96,93,92,80,13,165,149,198,128,94,109,128,13,200,216,214,128,111,141,96,15,232,248,216,128,159,142,128,14,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,162,0,0,0,0,48,0,0,96,0,0,2,0,32,11,96,48,13,0,162,0,0,2,32,107,11,48,0,0,0,163,2,39,43,96,0,0,0,178,114,64,106,42,0,3,2,162,161,16,109,43,96,160,163,164,113,16,23,43,32,11,179,196,152,64,73,71,64,10,164,148,244,80,93,77,64,12,213,213,197,128,142,78,128,9,232,232,232,128,142,94,128,14,232,248,249,144,159,143,80,14,0,0,0,1,0,0,0,0,0,0,0,179,0,0,0,0,0,0,0,165,0,0,0,0,64,0,0,64,0,0,4,0,16,14,16,32,11,0,180,0,0,4,64,59,7,112,176,0,0,179,1,59,26,48,0,0,0,194,115,48,60,55,0,1,1,115,197,48,58,58,112,176,179,166,211,80,60,60,48,14,163,227,197,80,93,60,48,10,195,213,214,96,93,110,48,12,165,214,229,128,142,142,128,12,230,232,214,128,223,143,128,15,233,249,249,160,159,159,128,15,249,248,248,144,223,143,144,15,0,0,0,7,0,0,0,0,96,0,0,246,0,0,6,0,96,13,0,96,0,0,214,0,0,6,96,32,13,96,208,0,0,161,96,45,107,32,0,6,10,130,6,58,107,29,0,246,246,177,210,64,28,77,96,208,162,129,177,48,46,27,32,13,177,129,131,32,28,75,64,11,131,131,193,48,75,72,80,14,194,197,129,64,76,62,32,14,179,228,131,112,76,126,48,11,197,231,199,112,127,126,112,12,229,244,231,112,159,158,144,14,231,201,247,144,159,159,112,15,249,247,249,144,175,127,160,15,0,0,0,144,4,0,0,0,0,0,144,201,193,9,0,0,0,0,64,65,153,1,0,0,0,0,0,144,4,0,0,0,3,0,0,0,0,0,0,80,102,2,0,0,0,0,160,167,102,182,6,0,0,112,165,165,54,35,102,2,160,167,135,122,38,182,59,187,215,173,90,170,99,99,182,99,88,87,173,165,59,102,51,35,173,215,218,87,102,51,98,54,122,125,167,117,48,59,102,51,87,165,125,7,0,96,178,182,170,218,7,0,0,0,96,54,87,10,0,0,0,0,0,176,10,0,0,0,0,0,0,192,10,0,0,0,0,0,192,254,250,12,0,0,0,0,112,183,238,7,0,0,0,0,0,176,7,0,0,0,2,0,0,0,0,0,0,48,68,1,0,0,0,0,128,133,68,148,4,0,0,80,131,131,36,18,68,1,128,133,101,88,20,148,41,153,213,141,56,136,66,66,148,66,54,53,141,131,41,68,34,18,141,213,216,53,68,34,65,36,88,93,133,83,32,41,68,34,53,131,93,5,0,64,145,148,136,216,5,0,0,0,64,36,53,8,0,0,0,0,0,144,8,0,0,0,0,0,0,96,4,0,0,0,0,0,32,17,37,4,0,0,0,0,160,37,83,12,0,0,0,0,0,176,12,0,0,0,11,0,0,0,0,0,0,208,120,11,0,0,0,0,208,219,85,82,10,0,0,224,121,230,199,191,120,13,208,122,88,233,217,255,175,180,168,153,117,202,20,24,255,194,138,119,137,210,67,19,104,210,138,86,50,228,243,255,26,167,105,50,51,228,192,237,175,161,54,68,116,13,0,192,252,177,71,116,14,0,0,0,192,177,120,13,0,0,0,0,0,176,13,0,0,0,0,0,0,112,4,0,0,0,0,0,48,34,54,4,0,0,0,0,176,53,83,12,0,0,0,0,0,192,12,0,0,0,11,0,0,0,0,0,0,208,121,12,0,0,0,0,208,236,101,83,11,0,0,224,121,230,215,207,121,13,208,122,105,233,218,255,175,196,169,169,118,202,20,35,255,211,155,119,154,227,18,17,99,227,154,86,50,228,129,136,26,183,106,51,52,228,128,129,184,162,54,69,117,14,0,16,129,193,71,116,14,0,0,0,128,193,119,14,0,0,0,0,0,192,13,0,0,0,132,139,88,37,91,85,37,213,81,87,34,51,56,35,35,213,81,136,136,119,85,117,90,213,179,221,221,173,221,221,189,234,129,139,88,53,137,168,39,215,129,125,119,53,121,119,56,216,81,121,85,53,139,90,37,213,163,107,102,86,90,102,102,234,81,85,165,88,117,119,85,213,129,187,155,121,187,219,137,216,127,121,85,56,139,119,39,215,180,173,187,91,173,170,107,235,81,89,133,53,139,136,87,213,129,42,34,50,37,50,51,216,81,136,88,133,85,120,85,213,234,238,255,254,238,254,255,239,33,34,18,17,18,17,17,129,81,183,119,136,136,120,120,213,81,204,204,122,170,170,93,213,180,14,0,64,13,0,96,251,207,12,0,48,10,0,32,215,137,13,0,48,10,0,48,216,81,85,34,50,136,67,34,213,179,238,238,190,221,237,190,251,81,10,0,32,10,0,32,213,130,12,0,32,12,0,48,216,113,10,0,48,12,0,32,215,179,75,102,70,75,68,102,251,81,37,50,50,56,51,66,213,129,173,170,138,170,202,140,216,81,140,88,53,90,248,255,221,191,173,187,106,189,251,111,255,0,131,0,0,0,0,81,0,32,178,51,34,17,33,115,2,96,131,102,102,102,153,86,6,0,185,0,0,0,0,201,0,0,131,0,0,0,0,114,0,32,118,17,49,51,22,131,2,96,113,153,105,102,153,81,6,0,201,0,0,0,0,201,0,0,81,0,0,0,0,81,0,32,131,17,51,51,34,129,2,96,114,153,105,102,102,114,6,0,182,0,0,0,0,201,0,0,81,0,0,0,0,178,0,32,86,19,49,17,35,131,2,96,131,153,148,102,150,81,6,0,166,0,0,0,0,205,0,0,97,0,0,0,0,22,0,112,97,140,51,34,149,22,7,208,97,222,187,187,254,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,89,66,68,155,22,7,208,97,239,188,187,252,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,89,68,68,147,22,7,208,97,239,188,187,235,22,13,0,97,0,0,0,0,22,0,0,97,0,0,0,0,22,0,112,97,92,66,34,148,22,7,208,97,239,202,187,251,22,13,0,97,0,0,0,0,22,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,70,4,0,0,112,151,234,84,182,70,6,160,167,121,234,107,109,102,109,169,174,254,122,101,102,197,84,167,252,126,154,86,196,108,84,218,154,127,151,181,86,102,84,233,170,247,153,96,102,187,85,170,169,127,10,0,80,101,141,169,169,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,48,2,0,0,0,0,0,48,33,33,2,0,0,0,0,48,51,35,3,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,128,100,4,0,0,0,0,144,152,116,118,4,0,0,128,168,168,103,68,102,7,144,169,137,169,102,70,118,116,168,136,137,169,68,119,119,118,154,136,168,170,100,102,117,118,169,169,137,169,118,119,118,116,152,152,170,168,96,119,68,118,169,137,137,9,0,112,116,119,170,137,10,0,0,0,64,102,169,10,0,0,0,0,0,64,8,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,5,0,0,0,0,0,0,112,85,5,0,0,0,0,112,119,81,69,5,0,0,112,119,119,85,85,85,5,112,119,119,119,84,85,81,85,55,119,119,119,85,85,85,84,119,103,119,119,84,85,85,85,119,119,119,119,85,85,85,85,119,55,55,119,80,85,85,81,119,119,119,7,0,80,85,85,119,119,7,0,0,0,80,85,119,7,0,0,0,0,0,80,7,0,0,0,0,0,0,48,2,0,0,0,0,0,48,33,33,2,0,0,0,0,48,51,35,3,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,128,100,4,0,0,0,0,144,152,116,118,4,0,0,128,168,168,103,68,102,7,144,169,137,169,102,70,118,116,168,136,137,169,68,119,119,118,154,136,168,170,100,102,117,118,169,169,137,169,118,119,118,116,152,152,170,168,96,119,68,118,169,137,137,9,0,112,116,119,170,137,10,0,0,0,64,102,169,10,0,0,0,0,0,64,8,0,0,0,0,0,0,240,15,0,0,0,0,0,48,17,17,15,0,0,0,0,0,241,17,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,47,2,0,0,0,0,112,249,61,242,3,0,0,192,123,11,63,130,37,3,144,230,109,251,93,131,39,10,158,199,171,12,77,132,37,5,158,201,189,251,79,242,71,11,174,203,187,252,61,130,67,4,190,230,185,6,32,130,90,11,190,198,188,9,0,208,83,4,190,247,9,0,0,0,80,5,110,9,0,0,0,0,0,0,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,2,0,0,0,0,0,16,1,0,0,0,4,0,0,0,0,0,0,192,51,5,0,0,0,0,208,140,70,102,4,0,0,192,153,252,36,115,84,6,160,174,157,206,84,68,71,55,220,154,137,171,84,38,118,119,221,233,175,171,116,99,98,115,170,190,218,222,133,86,51,53,157,187,234,189,112,54,37,54,159,253,216,10,0,48,68,115,153,174,9,0,0,0,96,103,233,10,0,0,0,0,0,112,9,0,0,0,16,4,32,6,32,6,32,6,96,7,32,6,32,6,16,4,32,54,32,6,32,86,96,7,32,86,32,54,32,6,32,6,32,6,16,84,32,6,32,6,32,6,96,7,16,4,32,6,32,6,32,6,96,7,32,54,32,6,32,6,32,6,32,86,19,4,32,6,32,6,32,6,101,7,32,6,32,6,16,4,32,6,21,4,35,6,96,7,32,6,96,7,37,6,32,6,32,6,32,6,32,6,32,6,32,6,32,6,16,4,37,6,32,6,32,6,96,7,32,6,32,6,32,6,32,6,32,6,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,5,0,0,0,0,0,0,160,195,3,0,0,0,0,112,168,197,85,3,0,0,128,138,127,67,195,67,3,160,136,238,122,211,83,213,83,167,174,120,175,84,204,69,196,175,168,142,170,195,67,212,83,138,127,138,127,51,197,197,195,126,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,32,1,0,0,0,0,0,128,210,141,2,0,0,0,0,64,72,40,8,0,0,0,0,0,64,4,0,0,0,10,0,0,0,0,0,0,192,166,6,0,0,0,0,192,201,166,111,6,0,0,192,201,201,243,62,163,6,192,153,199,201,165,174,255,165,199,153,201,201,246,170,239,170,187,151,185,201,234,175,234,174,151,185,153,199,246,234,254,170,153,203,153,199,96,165,238,175,155,199,201,11,0,160,227,174,156,201,11,0,0,0,160,165,188,12,0,0,0,0,0,160,12,0,0,0,0,0,0,48,1,0,0,0,0,0,144,227,158,3,0,0,0,0,48,57,57,9,0,0,0,0,0,48,3,0,0,0,11,0,0,0,0,0,0,208,103,3,0,0,0,0,208,218,103,127,7,0,0,208,218,218,245,20,97,7,208,170,216,218,182,180,255,182,216,170,218,218,241,99,79,179,204,168,202,218,75,63,70,180,168,202,170,216,247,22,241,179,170,220,170,216,112,102,34,191,172,216,218,12,0,176,69,52,173,218,12,0,0,0,176,182,205,13,0,0,0,0,0,176,13,0,0,0,0,0,0,16,1,0,0,0,0,0,32,51,35,1,0,0,0,0,16,19,51,2,0,0,0,0,0,48,1,0,0,0,6,0,0,0,0,0,0,144,72,5,0,0,0,0,160,153,84,102,4,0,0,112,151,186,84,70,70,6,160,167,121,186,100,102,102,100,169,171,155,122,101,102,85,84,167,122,123,154,86,84,100,84,154,154,121,151,69,86,102,84,185,170,167,153,96,102,84,85,170,169,122,10,0,80,101,134,169,167,9,0,0,0,96,70,167,7,0,0,0,0,0,80,10,0,0,0,0,0,0,32,1,0,0,0,0,0,16,98,33,2,0,0,0,0,80,21,81,5,0,0,0,0,0,96,2,0,0,0,2,0,0,0,0,0,0,224,53,1,0,0,0,0,96,250,53,53,2,0,0,112,170,248,87,85,83,2,96,168,220,236,178,71,67,150,200,138,236,110,99,177,70,163,205,221,143,204,53,179,145,150,220,239,168,202,88,165,68,177,127,234,168,220,160,150,101,83,220,250,216,15,0,176,72,85,138,237,15,0,0,0,160,103,218,14,0,0,0,0,0,176,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,117,17,1,0,0,0,0,64,21,82,4,0,0,0,0,0,112,1,0,0,0,1,0,0,0,0,0,0,240,52,5,0,0,0,0,96,250,52,52,1,0,0,96,170,254,70,85,67,5,176,169,204,252,167,59,51,183,201,155,236,111,115,187,55,184,204,220,159,204,84,163,152,166,206,255,249,206,89,164,115,181,191,254,169,220,160,182,100,75,236,250,201,15,0,176,54,68,186,251,15,0,0,0,160,102,218,15,0,0,0,0,0,160,15,0,0,0,0,0,0,64,1,0,0,0,0,0,16,82,33,2,0,0,0,0,80,52,65,4,0,0,0,0,0,80,2,0,0,0,2,0,0,0,0,0,0,224,52,1,0,0,0,0,80,249,99,135,2,0,0,192,153,248,42,66,70,3,80,108,219,235,166,74,115,135,183,125,235,94,83,161,117,147,221,235,207,187,100,163,129,133,107,239,151,185,119,148,39,161,111,233,156,237,160,131,114,67,221,249,199,15,0,160,70,68,201,235,14,0,0,0,144,86,233,14,0,0,0,0,0,176,14,0,0,0,0,0,0,48,1,0,0,0,0,0,48,65,20,1,0,0,0,0,96,65,20,5,0,0,0,0,0,80,5,0,0,0,2,0,0,0,0,0,0,224,69,2,0,0,0,0,112,250,25,123,3,0,0,128,253,249,57,36,75,3,96,253,217,230,57,152,39,167,249,184,220,230,55,165,115,163,92,253,215,232,37,37,147,162,124,253,216,249,39,155,151,179,140,203,253,234,160,38,155,178,109,252,200,14,0,176,39,162,252,201,14,0,0,0,160,165,185,15,0,0,0,0,0,176,15,0,0,0,0,0,0,16,1,0,0,0,0,0,32,22,17,1,0,0,0,0,16,22,33,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,68,4,0,0,0,0,224,189,163,99,3,0,0,224,203,239,55,67,54,7,144,175,253,233,213,68,117,54,253,216,157,238,166,50,198,57,252,219,254,172,37,53,179,98,221,216,218,237,85,183,58,119,252,157,200,204,48,165,66,83,155,252,217,12,0,112,101,121,157,174,14,0,0,0,96,85,155,11,0,0,0,0,0,48,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,51,4,0,0,0,0,176,187,58,122,6,0,0,176,187,187,115,99,51,10,176,219,187,203,83,89,58,51,191,219,187,187,131,51,163,170,187,189,187,191,138,90,163,131,254,187,187,187,74,51,57,69,187,235,190,219,48,67,56,51,219,219,190,13,0,48,166,57,219,251,15,0,0,0,48,51,188,13,0,0,0,0,0,48,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,167,5,0,0,0,0,176,187,153,99,6,0,0,240,191,187,99,99,57,3,176,219,191,203,99,103,57,51,253,219,239,187,99,153,57,51,222,253,255,187,99,99,137,99,205,255,255,187,86,51,151,70,187,219,253,219,144,67,151,51,219,219,253,13,0,144,150,55,219,251,12,0,0,0,160,163,252,13,0,0,0,0,0,48,13,0,0,0,0,0,0,80,5,0,0,0,0,0,80,85,85,5,0,0,0,0,80,81,21,5,0,0,0,0,0,80,5,0,0,0,6,0,0,0,0,0,0,160,114,6,0,0,0,0,160,204,22,150,6,0,0,208,218,175,98,102,102,6,240,204,203,204,103,153,102,102,205,235,188,193,151,150,102,38,28,238,204,189,102,105,121,105,190,205,236,188,150,118,118,33,251,171,219,204,32,22,103,121,207,27,207,12,0,144,118,103,190,207,15,0,0,0,96,102,206,14,0,0,0,0,0,96,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,51,4,0,0,0,0,176,187,58,122,6,0,0,176,187,187,115,99,51,10,176,219,187,203,83,89,58,51,191,219,187,187,131,51,163,170,187,189,187,191,138,90,163,131,254,187,187,187,74,51,57,69,187,235,190,219,48,67,56,51,219,219,190,13,0,48,166,57,219,251,15,0,0,0,48,51,188,13,0,0,0,0,0,48,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,32,33,17,2,0,0,0,0,0,32,1,0,0,0,6,0,0,0,0,0,0,176,167,5,0,0,0,0,176,187,153,99,6,0,0,240,191,187,99,99,57,3,176,219,191,203,99,103,57,51,253,219,239,187,99,153,57,51,222,253,255,187,99,99,137,99,205,255,255,187,86,51,151,70,187,219,253,219,144,67,151,51,219,219,253,13,0,144,150,55,219,251,12,0,0,0,160,163,252,13,0,0,0,0,0,48,13,0,0,0,17,1,17,17,17,17,17,33,1,0,0,32,0,0,0,48,1,16,0,2,0,0,0,0,1,1,0,0,0,0,0,50,17,0,0,0,16,0,32,48,1,0,0,0,1,0,2,0,0,0,0,32,0,0,0,48,1,2,0,2,0,0,0,48,33,0,0,0,0,0,0,48,1,0,0,0,1,0,0,0,0,0,0,16,0,0,16,0,1,0,0,2,0,0,1,48,32,0,0,0,0,16,0,48,2,0,0,0,0,2,0,48,1,0,0,0,0,0,0,32,50,51,51,0,51,48,51,35,0,0,0,16,10,0,0,0,0,0,16,65,33,2,0,0,0,0,16,17,65,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,128,106,2,0,0,0,0,160,140,170,147,3,0,0,208,199,124,221,179,131,8,80,197,231,95,218,195,131,56,236,231,231,95,170,210,184,56,239,247,236,95,170,194,179,45,255,245,231,95,102,195,162,45,238,245,204,108,48,99,134,45,238,245,202,10,0,144,132,40,238,213,11,0,0,0,64,72,206,5,0,0,0,0,0,48,12,0,0,0,0,84,84,0,0,80,84,0,0,16,84,69,0,80,18,0,0,64,1,48,4,16,84,0,1,80,1,0,69,67,84,20,2,0,66,0,32,85,1,37,85,0,84,0,18,80,1,85,4,84,84,64,69,0,82,80,0,69,20,82,0,16,84,0,0,80,65,5,0,64,2,0,0,69,65,5,0,82,2,0,0,65,2,80,0,4,82,0,80,82,68,5,0,5,84,64,36,0,84,1,0,85,20,84,5,0,81,82,66,80,33,5,0,16,2,32,85,2,82,0,0,85,4,0,0,0,66,5,0,0,0,48,3,0,0,0,0,0,112,49,19,1,0,0,0,0,16,51,51,3,0,0,0,0,0,16,3,0,0,0,3,0,0,0,0,0,0,80,119,1,0,0,0,0,160,154,119,119,7,0,0,144,245,249,223,61,51,7,144,167,158,143,126,119,127,245,169,154,217,191,98,226,254,119,217,222,189,178,43,102,215,189,153,222,187,40,102,34,98,38,143,141,184,130,32,43,102,34,40,178,221,8,0,32,182,182,187,219,8,0,0,0,96,38,40,11,0,0,0,0,0,176,11,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,64,4,0,0,64,17,4,0,20,65,0,0,64,34,66,64,33,65,0,0,20,34,65,64,34,34,4,0,20,51,18,36,35,34,4,0,20,34,18,35,50,18,4,0,20,34,18,19,34,18,4,0,20,35,34,18,34,18,4,0,20,34,34,19,34,18,4,0,20,34,18,19,50,18,4,0,64,50,18,18,34,65,0,0,64,17,18,19,35,65,0,0,0,68,17,51,66,4,0,0,0,0,68,68,4,0,0,0,0,0,0,0,0,0,0,0,0,0,16,4,0,0,0,0,0,64,116,66,1,0,0,0,0,16,20,66,4,0,0,0,0,0,64,1,0,0,0,8,0,0,0,0,0,0,176,138,12,0,0,0,0,192,187,84,43,4,0,0,192,186,214,164,114,72,8,192,254,235,222,84,43,184,135,203,238,189,172,133,184,85,95,234,255,237,222,75,247,135,84,220,110,253,182,162,21,43,84,219,238,234,187,128,136,171,81,204,109,172,12,0,80,133,203,203,204,11,0,0,0,128,72,225,10,0,0,0,0,0,80,14,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,65,68,5,0,0,0,0,0,64,4,0,0,0,2,0,0,0,0,0,0,128,84,7,0,0,0,0,128,251,38,50,7,0,0,128,233,251,35,66,52,2,128,184,220,253,51,67,101,100,219,184,204,253,55,52,82,167,140,137,201,221,82,52,100,166,152,155,233,239,84,85,102,166,185,201,237,251,112,87,118,167,153,201,141,14,0,160,166,114,232,220,15,0,0,0,112,116,203,14,0,0,0,0,0,112,13,0,0,0,0,0,0,96,1,0,0,0,0,0,96,178,40,6,0,0,0,0,128,149,130,4,0,0,0,0,0,16,8,0,0,0,9,0,0,0,0,0,0,64,18,5,0,0,0,0,240,166,82,77,5,0,0,80,248,222,19,76,165,8,64,141,123,251,194,198,204,90,190,191,131,239,92,59,90,213,254,228,219,174,194,122,146,131,123,127,245,249,51,69,85,147,92,223,239,233,48,149,162,34,187,134,233,5,0,32,172,84,126,238,11,0,0,0,128,204,182,15,0,0,0,0,0,64,15,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,208,38,3,0,0,0,0,208,221,82,86,2,0,0,128,187,219,67,70,52,6,224,218,140,235,99,70,70,99,221,255,187,187,100,54,54,85,136,172,139,233,85,98,67,35,203,232,140,184,52,69,83,50,253,254,248,140,64,101,50,36,251,236,141,15,0,48,100,68,221,233,9,0,0,0,80,38,251,8,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,34,1,0,0,0,0,0,32,1,0,0,0,9,0,0,0,0,0,0,224,56,5,0,0,0,0,224,221,100,121,4,0,0,176,203,237,116,105,69,9,240,236,190,236,148,105,89,148,237,255,205,220,150,73,73,119,187,221,189,251,119,147,100,68,236,235,190,203,68,118,116,68,253,255,251,189,64,151,68,69,253,237,189,15,0,64,151,101,221,251,11,0,0,0,96,72,251,11,0,0,0,0,0,80,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,192,39,3,0,0,0,0,192,171,66,102,2,0,0,144,169,203,83,55,51,6,208,201,156,218,99,70,86,99,203,255,171,186,100,54,54,101,153,187,155,217,102,98,67,35,202,217,156,169,51,84,99,50,251,221,233,155,48,101,50,36,219,219,155,15,0,48,101,68,187,217,9,0,0,0,64,38,249,9,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,208,56,4,0,0,0,0,208,188,99,104,3,0,0,160,171,220,84,72,69,8,208,218,156,218,132,88,88,132,220,223,172,202,134,72,72,102,170,187,172,218,119,131,84,52,202,218,156,170,69,102,116,67,252,253,233,171,80,134,67,53,220,219,173,14,0,64,133,85,204,218,10,0,0,0,96,56,250,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,5,0,0,0,0,208,188,82,104,2,0,0,144,186,220,99,88,53,8,224,217,157,219,115,87,103,116,220,255,188,203,117,55,71,102,153,156,156,234,102,114,84,35,219,217,157,185,52,101,100,50,252,222,233,156,64,118,66,53,236,220,156,15,0,64,118,85,204,233,10,0,0,0,80,39,202,9,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,208,40,4,0,0,0,0,208,172,114,120,2,0,0,176,170,220,99,88,52,8,224,218,156,218,131,104,72,131,220,223,172,202,134,56,72,118,170,188,188,234,119,130,100,35,202,218,188,171,52,103,116,50,252,222,251,172,64,134,69,36,236,220,173,15,0,64,134,100,204,234,10,0,0,0,112,40,250,10,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,3,0,0,0,0,208,204,82,87,2,0,0,144,169,220,83,55,52,7,208,217,156,217,115,87,71,115,220,255,156,201,117,39,55,85,153,188,156,218,102,114,83,35,201,217,156,153,36,85,99,50,252,237,217,156,64,117,50,36,220,220,157,15,0,48,117,84,204,217,9,0,0,0,80,39,233,9,0,0,0,0,0,64,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,208,56,4,0,0,0,0,208,219,115,104,3,0,0,160,170,219,84,72,69,8,224,218,157,234,116,87,87,116,219,239,171,186,117,71,71,118,170,187,171,234,102,115,84,52,218,218,157,170,69,103,100,67,251,238,233,171,80,118,67,53,235,219,172,14,0,64,117,85,187,234,10,0,0,0,112,55,202,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,8,0,0,0,0,0,0,208,55,5,0,0,0,0,208,237,99,121,3,0,0,160,221,221,116,105,69,9,240,220,173,253,131,104,88,132,221,255,221,221,134,56,88,119,186,189,173,253,119,131,101,51,221,219,173,218,53,118,117,83,253,255,250,189,80,135,83,53,253,221,223,15,0,80,135,101,221,250,13,0,0,0,96,55,253,13,0,0,0,0,0,80,13,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,39,5,0,0,0,0,208,205,98,103,2,0,0,144,187,219,83,71,53,7,224,218,157,219,114,87,87,115,221,223,187,187,117,39,55,102,153,155,155,235,102,114,83,34,187,217,156,185,35,102,99,50,253,222,233,155,48,118,52,37,235,219,189,14,0,48,117,85,221,234,10,0,0,0,96,39,251,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,224,40,3,0,0,0,0,224,206,114,104,2,0,0,160,186,238,99,88,52,7,224,234,174,250,115,103,71,114,238,255,174,234,118,55,55,102,170,204,174,235,102,114,99,35,218,234,174,170,36,103,99,50,254,254,250,172,64,118,53,36,254,236,175,15,0,48,118,100,238,234,10,0,0,0,112,38,250,10,0,0,0,0,0,64,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,40,4,0,0,0,0,208,205,98,103,2,0,0,160,202,220,82,71,37,7,224,219,157,235,114,87,87,115,221,239,188,203,117,39,55,102,170,187,172,234,119,114,83,34,203,218,172,186,35,86,115,50,253,238,234,171,48,118,50,37,236,219,174,14,0,48,117,85,221,234,10,0,0,0,96,39,250,10,0,0,0,0,0,80,12,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,6,0,0,0,0,0,0,208,39,4,0,0,0,0,208,173,82,86,2,0,0,144,154,221,83,86,52,6,240,217,189,249,99,86,70,98,221,255,173,217,101,54,54,85,153,189,157,249,102,98,84,35,201,233,157,153,52,85,99,50,253,255,251,157,64,101,51,36,253,237,157,15,0,64,101,84,221,249,9,0,0,0,80,38,249,9,0,0,0,0,0,64,9,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,18,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,208,55,5,0,0,0,0,208,189,99,103,3,0,0,144,170,221,100,103,69,7,224,218,157,234,116,103,87,115,221,255,173,218,118,71,87,102,153,205,157,234,119,115,101,52,218,233,157,169,53,102,117,83,253,254,249,157,80,118,84,53,253,237,173,15,0,80,118,101,221,234,10,0,0,0,96,55,250,10,0,0,0,0,0,80,10,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,7,0,0,0,0,0,0,208,40,3,0,0,0,0,208,172,114,120,2,0,0,160,170,220,82,72,35,8,208,218,188,218,114,87,87,115,220,223,172,202,117,55,55,118,170,188,172,218,102,114,83,34,202,202,189,170,35,103,99,50,252,221,235,172,48,118,50,37,220,204,173,14,0,48,117,85,204,218,10,0,0,0,112,39,250,10,0,0,0,0,0,48,10,0,0,0,0,0,0,16,1,0,0,0,0,0,32,18,34,1,0,0,0,0,16,18,34,1,0,0,0,0,0,32,1,0,0,0,7,0,0,0,0,0,0,224,71,5,0,0,0,0,224,189,100,104,4,0,0,160,187,237,100,88,69,8,240,235,173,251,116,103,103,116,237,255,173,219,133,72,71,102,170,205,173,251,119,115,101,68,219,250,173,186,69,102,116,68,253,255,250,173,80,134,67,70,253,253,174,15,0,80,118,102,221,250,11,0,0,0,96,71,235,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,8,0,0,0,0,0,0,192,40,5,0,0,0,0,192,204,115,120,2,0,0,160,188,204,83,72,53,8,224,203,172,203,131,104,104,131,204,255,204,203,134,56,72,119,170,188,172,234,119,130,101,51,187,202,172,186,53,119,116,51,252,222,234,172,80,135,66,54,236,204,188,15,0,80,133,102,204,234,11,0,0,0,112,56,218,10,0,0,0,0,0,80,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,48,17,17,3,0,0,0,0,0,144,9,0,0,0,6,0,0,0,0,0,0,96,232,5,0,0,0,0,144,105,203,114,6,0,0,240,159,150,116,100,45,4,96,199,111,169,82,88,43,52,252,201,223,153,116,187,61,66,206,251,255,136,114,83,171,116,173,255,255,119,87,34,184,85,166,216,253,200,208,84,215,66,182,182,253,11,0,192,214,40,201,249,10,0,0,0,224,212,250,11,0,0,0,0,0,64,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,112,9,0,0,0,0,0,16,146,146,1,0,0,0,0,32,50,24,2,0,0,0,0,0,32,9,0,0,0,6,0,0,0,0,0,0,80,232,4,0,0,0,0,144,105,203,129,6,0,0,240,159,149,131,99,29,3,96,199,111,169,81,88,43,35,252,201,223,153,115,187,45,49,206,251,255,136,113,82,171,115,173,255,255,119,71,17,184,69,166,216,253,200,208,67,216,49,181,182,253,11,0,192,214,24,201,249,10,0,0,0,224,211,250,11,0,0,0,0,0,48,11,0,0,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,64,17,17,4,0,0,0,0,0,176,11,0,0,0,7,0,0,0,0,0,0,80,217,6,0,0,0,0,144,89,204,114,7,0,0,224,158,149,116,116,45,4,80,181,94,169,98,120,44,36,235,185,206,153,116,204,61,66,189,235,239,102,114,114,188,116,171,238,239,85,103,34,201,102,165,182,235,182,192,100,215,66,165,165,251,10,0,192,215,40,185,233,10,0,0,0,208,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,144,12,0,0,0,0,0,16,179,179,1,0,0,0,0,48,83,26,3,0,0,0,0,0,48,11,0,0,0,6,0,0,0,0,0,0,80,233,6,0,0,0,0,144,89,221,113,7,0,0,224,159,149,116,116,29,4,80,181,95,169,97,104,28,36,235,185,207,153,116,221,45,65,190,251,255,102,113,98,188,116,172,239,239,85,103,17,201,102,165,182,252,182,208,100,215,65,165,165,251,10,0,208,215,24,185,233,10,0,0,0,224,212,234,10,0,0,0,0,0,64,11,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,187,16,1,0,0,0,0,16,16,192,3,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,128,80,0,0,0,0,0,0,143,4,2,0,0,0,0,127,192,5,4,35,13,144,15,10,238,54,0,38,208,0,7,10,255,208,93,208,80,0,156,8,7,32,14,213,125,247,190,0,144,80,3,3,193,166,0,186,231,0,7,54,5,15,0,191,12,0,208,92,48,160,9,7,0,0,0,0,2,224,10,0,0,0,0,0,32,0,0,0,0,0,0,0,16,1,0,0,0,0,0,16,18,18,1,0,0,0,0,16,18,65,1,0,0,0,0,0,32,2,0,0,0,4,0,0,0,0,0,0,144,118,10,0,0,0,0,160,184,222,57,4,0,0,144,198,254,68,222,86,4,160,186,253,89,34,100,223,118,184,253,108,102,54,66,84,222,253,156,102,182,222,35,34,130,92,89,184,254,148,222,39,50,121,182,254,155,80,136,222,38,181,253,188,11,0,112,131,223,253,172,9,0,0,0,128,103,172,12,0,0,0,0,0,64,10,0,0,0,0,0,0,64,1,0,0,0,0,0,96,104,22,1,0,0,0,0,128,22,136,8,0,0,0,0,0,128,6,0,0,0,7,0,0,0,0,0,0,144,58,10,0,0,0,0,208,153,103,119,10,0,0,144,123,153,170,170,58,10,176,185,150,183,103,118,118,106,121,91,121,219,170,170,42,118,151,150,153,187,170,166,106,167,155,153,109,185,55,170,170,172,155,219,150,155,160,122,99,199,187,107,153,11,0,160,119,202,153,185,13,0,0,0,160,122,123,11,0,0,0,0,0,160,9,0,0,0,0,0,0,16,1,0,0,0,0,0,16,33,18,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,144,67,4,0,0,0,0,160,154,98,54,6,0,0,176,204,188,101,118,87,4,144,219,238,172,115,119,115,69,153,252,239,188,117,136,120,68,202,254,223,155,115,119,119,70,203,255,206,155,83,119,103,85,219,159,156,154,48,101,102,82,236,223,172,9,0,64,85,52,219,188,10,0,0,0,48,51,170,10,0,0,0,0,0,48,9,0,0,0,0,0,0,48,4,0,0,0,0,0,32,16,4,0,0,0,0,0,16,35,6,0,0,0,0,0,64,35,6,2,0,0,0,0,0,48,3,100,0,0,0,0,0,48,67,6,0,0,0,0,0,32,99,0,0,0,0,0,0,16,3,0,0,0,0,0,0,16,3,0,0,0,0,0,0,16,4,0,0,0,0,0,16,34,20,0,0,0,0,0,96,50,52,6,0,0,0,0,0,54,100,0,0,0,0,0,0,16,6,0,0,0,0,0,0,32,4,0,0,0,0,0,0,80,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,4,0,0,0,0,0,0,16,4,0,0,0,0,0,0,32,4,0,0,0,0,0,0,32,4,0,0,0,0,0,0,48,36,0,0,0,0,0,0,48,83,0,0,0,0,0,16,35,3,0,0,0,0,0,64,19,5,0,0,0,0,0,0,20,3,0,0,0,0,0,0,16,3,0,0,0,0,50,2,0,12,4,0,0,0,19,165,0,78,0,33,0,0,0,147,4,15,33,51,1,32,1,0,64,0,53,33,0,16,35,3,192,64,35,0,0,0,50,37,64,4,0,0,0,0,32,81,176,0,0,18,0,0,0,0,180,0,35,35,0,0,35,0,204,32,53,1,0,0,49,50,208,64,35,0,0,0,32,83,1,4,0,0,0,0,0,50,8,6,15,0,0,0,0,0,192,246,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,32,35,19,0,0,32,1,0,0,49,53,0,0,50,3,0,0,32,83,0,48,19,0,0,0,0,0,4,83,2,0,0,0,49,2,112,68,48,2,0,0,34,3,0,4,32,19,0,0,48,18,0,7,83,50,0,0,16,53,0,7,84,3,0,0,48,5,0,71,0,0,0,0,0,64,0,132,0,0,2,0,0,0,100,4,0,35,19,0,0,0,128,4,48,50,2,0,0,0,0,7,80,21,0,0,50,0,0,7,4,0,0,96,11,48,11,112,123,123,0,112,10,64,11,96,107,122,0,48,0,96,0,64,58,123,10,64,0,163,0,64,48,107,11,80,0,163,0,179,64,48,11,80,11,6,0,182,112,48,11,112,10,6,16,8,96,43,10,0,7,6,16,8,96,74,10,0,6,7,96,10,112,107,10,0,164,167,96,0,96,107,11,0,162,183,112,0,112,123,11,0,177,167,96,10,112,122,0,0,7,96,10,7,163,96,0,80,10,96,11,166,183,166,0,112,11,112,11,183,166,183,0,0,155,144,155,176,185,185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,80,7,32,0,0,0,2,0,32,8,48,0,0,0,131,0,32,0,80,7,128,0,80,0,96,0,96,8,32,0,96,8,133,0,118,0,48,8,0,116,114,5,130,0,0,118,0,2,134,2,2,0,0,5,0,5,5,131,3,0,0,5,80,7,5,116,115,0,16,0,32,0,5,4,117,0,48,0,32,0,5,4,134,0,48,8,96,0,134,118,5,0,80,7,80,7,134,116,6,0,96,7,96,8,132,134,4,0,79,97,183,76,223,48,86,0,184,211,0,16,6,178,13,0,64,20,214,125,70,97,183,9,0,61,125,22,57,189,112,0,213,100,209,126,27,116,13,0,96,237,131,24,40,190,5,0,244,84,209,127,81,4,159,0,96,176,46,21,162,188,4,0,144,107,22,75,225,118,107,0,0,248,45,22,146,190,4,0,0,76,118,129,205,72,0,0,0,134,206,19,104,251,0,0,0,240,88,22,189,132,14,0,0,156,0,16,12,0,9,0,0,0,0,64,12,0,0,0,0,0,0,112,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,8,0,0,16,3,0,0,144,225,0,192,195,78,0,0,0,26,4,89,113,8,0,0,224,63,109,62,5,0,0,0,156,118,65,20,252,0,0,0,10,206,146,243,104,0,0,0,208,71,18,161,254,0,0,0,128,240,172,242,90,14,0,0,64,140,23,113,238,5,0,0,0,198,94,223,69,15,0,200,7,108,22,148,14,1,0,160,177,212,156,220,55,15,0,231,242,77,24,164,145,183,5,0,238,6,32,122,175,80,0,0,48,15,90,127,170,99,0,0,32,160,146,74,182,188,12,0,99,42,175,170,178,204,12,63,58,58,170,122,226,236,14,48,250,167,82,90,244,227,0,176,107,167,199,221,124,179,11,204,236,122,188,236,126,203,204,176,204,122,219,238,51,206,14,176,236,167,236,62,175,227,14,0,78,175,79,118,122,111,5,0,0,167,71,247,167,106,0,0,240,167,71,167,167,100,15,0,0,48,95,122,250,4,0,0,0,64,122,159,135,9,0,0,0,0,132,138,170,0,0,0,0,0,0,0,0,0,0,0,0,0,161,186,0,0,0,0,0,0,184,184,0,0,0,0,129,10,112,11,128,8,0,0,185,57,7,0,186,26,0,0,184,0,39,0,163,138,0,0,112,0,64,32,3,187,0,0,114,0,129,0,7,119,0,0,64,128,170,8,39,112,0,0,50,160,184,59,0,4,2,0,48,2,176,71,0,64,0,0,0,71,64,6,0,64,2,0,128,66,0,37,0,112,0,144,152,184,7,5,32,3,0,128,129,185,119,0,52,112,2,0,152,11,68,64,7,112,0,0,0,118,117,117,87,6,0,96,6,103,101,101,101,0,0,112,87,119,86,103,117,0,0,0,112,117,118,22,49,0,0,0,112,86,102,36,18,4,0,0,0,103,117,49,36,101,6,96,85,112,117,53,100,119,0,0,103,118,117,85,117,0,0,0,112,101,101,101,119,0,0,80,117,102,86,102,0,85,7,96,86,103,87,102,85,119,0,0,96,101,86,86,119,7,0,0,0,86,86,86,7,0,0,0,0,80,87,118,0,0,0,0,0,112,103,119,0,0,0,0,0,112,119,118,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,53,0,96,97,0,0,0,131,104,5,143,17,6,0,48,53,85,5,142,38,18,0,48,53,38,196,174,104,97,0,0,67,68,201,234,143,104,0,0,155,249,206,239,175,250,0,0,192,255,31,226,170,14,0,224,252,204,33,102,239,170,14,224,207,44,38,134,175,254,15,0,240,111,17,136,234,15,0,0,0,204,134,168,254,10,0,0,0,240,174,173,174,14,0,0,0,0,16,1,0,0,0,0,0,16,17,17,1,0,0,0,0,16,17,17,1,0,0,0,0,0,16,1,0,0,0,3,0,0,0,0,0,0,160,102,5,0,0,0,0,160,251,54,120,3,0,0,160,253,202,103,53,104,3,160,253,219,252,70,55,56,71,253,185,191,174,88,136,104,52,217,187,234,251,68,87,134,134,237,170,236,187,136,131,134,51,217,207,207,251,80,84,51,88,251,175,189,10,0,64,104,52,233,253,13,0,0,0,112,105,234,14,0,0,0,0,0,48,10,0,0,0,0,0,0,192,12,0,0,0,0,0,192,28,23,7,0,0,0,0,112,204,115,1,0,0,0,0,0,192,12,0,0,0,10,0,0,0,0,0,0,176,234,14,0,0,0,0,96,178,56,24,8,0,0,208,251,111,30,225,168,5,240,214,246,246,229,161,133,229,178,253,178,109,234,138,238,136,159,242,219,251,168,56,163,21,157,182,217,253,26,56,90,136,187,191,191,242,80,234,232,56,180,219,223,15,0,128,62,133,159,191,11,0,0,0,224,234,38,13,0,0,0,0,0,128,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,6,0,0,0,0,0,112,118,38,6,0,0,0,0,176,186,119,7,0,0,0,0,0,160,10,0,0,0,11,0,0,0,0,0,0,224,188,11,0,0,0,0,224,254,17,189,12,0,0,224,253,147,1,21,207,11,208,248,147,0,0,0,21,191,253,147,0,0,0,0,0,21,147,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,9,0,0,0,0,0,160,169,28,1,0,0,0,0,160,28,17,2,0,0,0,0,0,32,2,0,0,0,10,0,0,0,0,0,0,80,156,10,0,0,0,0,64,84,109,204,2,0,0,240,68,232,0,107,35,2,176,255,232,230,0,0,107,68,255,232,0,6,0,0,0,214,232,0,0,0,0,0,0,213,0,0,0,0,0,0,0,176,0,0,0,0,0,0,0,32,2,0,0,0,0,0,32,34,34,2,0,0,0,0,32,34,34,2,0,0,0,0,0,32,2,0,0,0,10,0,0,0,0,0,0,128,58,7,0,0,0,0,128,220,58,55,10,0,0,128,143,222,105,119,58,7,128,220,191,94,58,102,58,55,143,222,190,92,58,23,105,119,191,94,143,220,58,55,58,102,190,92,143,222,105,119,58,23,143,220,191,94,48,102,58,55,143,222,190,12,0,48,105,119,191,94,15,0,0,0,48,102,190,12,0,0,0,0,0,48,15,0,0,0,0,0,0,96,4,0,0,0,0,0,96,68,97,4,0,0,0,0,64,97,68,1,0,0,0,0,0,64,1,0,0,0,7,0,0,0,0,0,0,208,171,10,0,0,0,0,80,239,119,186,7,0,0,208,147,213,18,167,171,10,80,239,223,158,119,26,119,186,147,213,237,221,171,42,18,167,223,158,93,239,119,186,119,26,237,221,147,213,18,167,171,42,93,239,223,158,112,26,119,186,147,213,237,13,0,32,18,167,223,158,13,0,0,0,112,26,237,13,0,0,0,0,0,32,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,3,0,0,0,0,0,0,160,84,12,0,0,0,0,128,170,195,67,4,0,0,112,138,127,51,197,197,3,112,167,174,122,176,83,204,84,138,175,136,15,0,208,83,195,127,167,14,0,0,0,208,67,170,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,3,0,0,0,0,0,144,146,114,1,0,0,0,0,144,114,148,2,0,0,0,0,0,144,1,0,0,0,2,0,0,0,0,0,0,192,83,10,0,0,0,0,128,204,210,50,3,0,0,96,140,111,34,213,165,2,96,198,207,108,176,82,221,83,140,207,136,15,0,208,82,210,111,198,15,0,0,0,208,50,204,15,0,0,0,0,0,208,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,2,0,0,0,0,0,96,97,66,1,0,0,0,0,96,66,98,1,0,0,0,0,0,96,1,0,0,0,3,0,0,0,0,0,0,224,84,8,0,0,0,0,176,237,163,67,4,0,0,144,189,159,51,165,133,3,144,217,223,157,160,115,168,116,189,239,187,15,0,192,83,163,159,233,15,0,0,0,192,67,221,15,0,0,0,0,0,160,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,100,1,0,0,0,0,144,100,150,2,0,0,0,0,0,144,1,0,0,0,2,0,0,0,0,0,0,208,83,12,0,0,0,0,128,219,194,50,3,0,0,112,139,127,34,197,197,2,112,183,190,123,160,98,204,99,139,223,136,15,0,208,82,194,127,215,14,0,0,0,208,50,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,2,0,0,0,0,0,96,97,66,1,0,0,0,0,96,66,98,1,0,0,0,0,0,96,1,0,0,0,3,0,0,0,0,0,0,224,84,7,0,0,0,0,176,237,163,67,4,0,0,144,189,159,51,165,117,3,144,217,223,157,128,115,167,116,189,239,187,15,0,192,83,163,159,233,15,0,0,0,192,67,221,15,0,0,0,0,0,160,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,6,0,0,0,0,0,144,146,98,1,0,0,0,0,144,98,150,2,0,0,0,0,0,144,1,0,0,0,3,0,0,0,0,0,0,176,84,12,0,0,0,0,128,187,195,67,4,0,0,112,139,127,51,197,197,3,112,183,190,123,160,83,204,84,139,191,136,15,0,208,83,195,127,183,14,0,0,0,208,67,187,15,0,0,0,0,0,192,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,1,0,80,0,0,2,0,0,99,0,22,0,32,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,1,0,16,16,0,0,0,96,1,0,64,16,0,2,0,0,22,0,81,1,0,1,0,96,115,0,118,1,32,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,16,1,1,0,0,0,0,0,0,35,0,0,17,16,0,1,32,17,0,1,1,16,16,1,16,2,0,16,2,0,33,0,0,7,0,32,0,0,2,0,0,8,0,116,16,0,1,0,112,3,0,71,16,0,114,0,0,105,0,81,8,0,146,0,112,147,0,151,1,32,120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,112,0,0,0,0,0,4,4,68,0,176,116,80,208,112,44,2,70,0,75,180,13,112,36,99,72,8,55,7,13,0,75,5,116,99,72,208,0,0,43,6,86,5,71,109,0,0,38,252,64,11,176,15,0,0,64,252,128,109,208,15,0,0,224,255,214,111,176,15,0,0,204,255,253,253,251,13,0,0,144,218,166,10,175,218,0,0,25,145,25,145,25,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,1,0,80,0,0,2,0,0,99,0,22,0,32,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,1,0,16,16,0,0,0,96,1,0,64,16,0,2,0,0,22,0,81,1,0,1,0,96,115,0,118,1,32,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,16,1,1,0,0,0,0,0,0,35,0,0,17,16,0,1,32,17,0,1,1,16,16,1,16,2,0,16,2,0,33,0,0,7,0,32,0,0,2,0,0,8,0,116,16,0,1,0,112,3,0,71,16,0,114,0,0,105,0,81,8,0,146,0,112,147,0,151,1,32,120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,131,0,131,0,48,12,0,131,196,115,132,12,163,13,56,196,200,195,168,8,138,58,72,7,64,196,106,125,172,72,74,204,0,56,212,74,131,58,76,196,48,104,220,74,196,167,77,12,0,45,210,43,210,45,201,0,80,25,145,18,145,18,145,13,0,0,0,0,0,0,128,136,0,0,0,0,0,0,40,131,0,0,0,0,0,128,50,130,0,0,0,0,0,40,35,8,0,0,0,0,128,50,130,0,0,0,0,0,40,35,8,0,0,153,0,128,50,130,0,0,0,121,9,40,35,8,0,0,0,144,149,50,130,0,0,0,0,144,149,35,8,0,0,0,0,0,89,153,0,0,0,0,0,96,148,117,9,0,0,0,0,22,10,153,151,0,0,0,153,164,0,0,153,0,0,0,89,9,0,0,0,0,0,0,153,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,119,0,0,0,0,0,0,39,66,7,0,0,0,0,112,50,36,7,0,0,0,0,39,67,35,7,0,0,0,0,96,52,114,0,0,0,0,0,22,40,7,0,0,0,0,96,129,112,0,0,0,0,0,86,8,0,0,0,0,0,96,129,0,0,0,0,0,0,86,8,0,0,0,0,0,104,129,0,0,0,0,0,0,22,8,0,0,0,0,0,0,96,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,119,7,0,0,0,0,112,50,68,115,86,0,0,0,0,119,119,68,129,0,0,0,0,0,0,54,116,0,0,0,0,0,96,133,52,7,0,0,0,0,22,8,71,7,0,0,0,96,133,0,71,7,0,0,0,22,8,0,55,7,0,0,96,133,0,0,39,7,0,0,22,8,0,0,112,0,0,96,133,0,0,0,0,0,0,22,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,8,0,0,0,0,0,0,40,130,0,0,0,0,0,128,66,131,0,0,0,0,0,40,68,116,5,0,0,0,0,40,67,70,9,0,0,0,0,128,120,100,132,0,0,0,0,0,87,73,132,0,0,0,0,112,145,128,8,0,0,0,0,87,9,0,0,0,0,0,112,149,0,0,0,0,0,0,23,9,0,0,0,0,0,112,149,0,0,0,0,0,0,23,9,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,119,0,0,0,0,0,0,39,51,7,0,0,0,0,0,112,71,115,86,0,0,0,0,0,112,68,129,0,0,0,0,0,0,54,116,0,0,0,0,0,96,133,7,0,0,0,0,0,22,8,0,0,0,0,0,96,133,0,0,0,0,0,0,22,8,0,0,0,0,0,96,133,0,0,0,0,0,0,22,8,0,0,0,0,0,96,133,0,0,0,0,0,0,22,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,119,0,0,0,0,0,0,23,114,0,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,136,0,112,33,113,0,0,0,88,8,23,18,7,0,0,0,128,131,33,113,0,0,0,0,128,131,18,7,0,0,0,0,0,56,136,0,0,0,0,0,144,134,83,8,0,0,0,0,73,10,136,133,0,0,0,136,166,0,0,136,0,0,0,56,8,0,0,0,0,0,0,136,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,49,6,0,0,0,0,96,33,19,6,0,0,0,0,22,50,18,6,0,0,0,0,112,35,97,0,0,0,0,0,71,24,6,0,0,0,0,112,132,96,0,0,0,0,0,87,8,0,0,0,0,0,112,132,0,0,0,0,0,0,87,8,0,0,0,0,0,120,132,0,0,0,0,0,0,71,8,0,0,0,0,0,0,112,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,6,0,0,0,0,96,33,51,98,87,0,0,0,0,102,102,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,35,6,0,0,0,0,71,8,54,6,0,0,0,112,133,0,54,6,0,0,0,71,8,0,38,6,0,0,112,133,0,0,22,6,0,0,71,8,0,0,96,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,23,113,0,0,0,0,0,112,49,114,0,0,0,0,0,23,51,131,6,0,0,0,0,23,50,53,9,0,0,0,0,112,135,83,115,0,0,0,0,0,104,57,115,0,0,0,0,128,148,112,7,0,0,0,0,104,9,0,0,0,0,0,128,150,0,0,0,0,0,0,72,9,0,0,0,0,0,128,150,0,0,0,0,0,0,72,9,0,0,0,0,0,0,150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,34,6,0,0,0,0,0,96,54,98,87,0,0,0,0,0,96,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,6,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,119,0,0,0,0,0,0,23,114,0,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,153,0,112,33,113,0,0,0,89,9,23,18,7,0,0,0,144,147,33,113,0,0,0,0,144,147,18,7,0,0,0,0,0,57,153,0,0,0,0,0,128,150,83,9,0,0,0,0,72,10,153,149,0,0,0,153,166,0,0,153,0,0,0,57,9,0,0,0,0,0,0,153,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,49,6,0,0,0,0,96,33,19,6,0,0,0,0,22,50,18,6,0,0,0,0,112,35,97,0,0,0,0,0,71,24,6,0,0,0,0,112,132,96,0,0,0,0,0,87,8,0,0,0,0,0,112,132,0,0,0,0,0,0,87,8,0,0,0,0,0,120,132,0,0,0,0,0,0,71,8,0,0,0,0,0,0,112,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,6,0,0,0,0,96,33,51,98,87,0,0,0,0,102,102,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,35,6,0,0,0,0,71,8,54,6,0,0,0,112,133,0,54,6,0,0,0,71,8,0,38,6,0,0,112,133,0,0,22,6,0,0,71,8,0,0,96,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,23,113,0,0,0,0,0,112,49,114,0,0,0,0,0,23,51,131,6,0,0,0,0,23,50,52,9,0,0,0,0,112,135,67,115,0,0,0,0,0,104,57,115,0,0,0,0,128,149,112,7,0,0,0,0,104,9,0,0,0,0,0,128,150,0,0,0,0,0,0,88,9,0,0,0,0,0,128,150,0,0,0,0,0,0,88,9,0,0,0,0,0,0,150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,34,6,0,0,0,0,0,96,54,98,87,0,0,0,0,0,96,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,6,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,119,0,0,0,0,0,0,23,114,0,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,0,0,112,33,113,0,0,0,0,0,23,18,7,0,0,170,0,112,33,113,0,0,0,106,10,23,18,7,0,0,0,160,163,33,113,0,0,0,0,160,163,18,7,0,0,0,0,0,58,170,0,0,0,0,0,128,165,99,10,0,0,0,0,72,9,170,166,0,0,0,170,149,0,0,170,0,0,0,58,10,0,0,0,0,0,0,170,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,49,6,0,0,0,0,96,33,19,6,0,0,0,0,22,50,18,6,0,0,0,0,112,35,97,0,0,0,0,0,71,24,6,0,0,0,0,112,132,96,0,0,0,0,0,87,8,0,0,0,0,0,112,132,0,0,0,0,0,0,87,8,0,0,0,0,0,120,132,0,0,0,0,0,0,71,8,0,0,0,0,0,0,112,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,6,0,0,0,0,96,33,51,98,87,0,0,0,0,102,102,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,35,6,0,0,0,0,71,8,54,6,0,0,0,112,133,0,54,6,0,0,0,71,8,0,38,6,0,0,112,133,0,0,22,6,0,0,71,8,0,0,96,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,23,113,0,0,0,0,0,112,49,114,0,0,0,0,0,23,51,131,6,0,0,0,0,23,50,53,9,0,0,0,0,112,135,83,115,0,0,0,0,0,104,57,115,0,0,0,0,128,148,112,7,0,0,0,0,104,9,0,0,0,0,0,128,150,0,0,0,0,0,0,72,9,0,0,0,0,0,128,150,0,0,0,0,0,0,72,9,0,0,0,0,0,0,150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,34,6,0,0,0,0,0,96,54,98,87,0,0,0,0,0,96,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,6,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,136,0,0,0,0,0,0,24,130,0,0,0,0,0,128,33,129,0,0,0,0,0,24,18,8,0,0,0,0,128,33,129,0,0,0,0,0,24,18,8,0,0,119,0,128,33,129,0,0,0,71,7,24,18,8,0,0,0,112,115,33,129,0,0,0,0,112,115,18,8,0,0,0,0,0,55,119,0,0,0,0,0,144,118,67,7,0,0,0,0,89,10,119,116,0,0,0,119,166,0,0,119,0,0,0,55,7,0,0,0,0,0,0,119,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,49,6,0,0,0,0,96,33,19,6,0,0,0,0,22,50,18,6,0,0,0,0,112,35,97,0,0,0,0,0,71,24,6,0,0,0,0,112,132,96,0,0,0,0,0,87,8,0,0,0,0,0,112,132,0,0,0,0,0,0,87,8,0,0,0,0,0,120,132,0,0,0,0,0,0,71,8,0,0,0,0,0,0,112,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,6,0,0,0,0,96,33,51,98,87,0,0,0,0,102,102,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,35,6,0,0,0,0,71,8,54,6,0,0,0,112,133,0,54,6,0,0,0,71,8,0,38,6,0,0,112,133,0,0,22,6,0,0,71,8,0,0,96,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,23,113,0,0,0,0,0,112,49,114,0,0,0,0,0,23,51,131,6,0,0,0,0,23,50,52,9,0,0,0,0,112,135,67,115,0,0,0,0,0,104,57,115,0,0,0,0,128,149,112,7,0,0,0,0,104,9,0,0,0,0,0,128,150,0,0,0,0,0,0,88,9,0,0,0,0,0,128,150,0,0,0,0,0,0,88,9,0,0,0,0,0,0,150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,0,0,0,0,0,0,22,34,6,0,0,0,0,0,96,54,98,87,0,0,0,0,0,96,51,132,0,0,0,0,0,0,39,99,0,0,0,0,0,112,133,6,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,112,133,0,0,0,0,0,0,71,8,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,170,11,0,0,0,0,0,160,57,18,0,0,0,0,0,154,35,1,1,0,0,0,160,57,18,16,178,0,0,0,122,43,1,33,179,0,0,0,122,11,16,50,185,0,0,160,183,0,32,147,11,0,0,160,183,0,186,185,0,0,0,80,8,170,119,11,0,0,0,3,96,119,187,0,0,0,0,4,128,187,0,0,0,0,0,64,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,0,0,0,0,0,0,144,34,9,0,0,0,0,0,53,83,83,0,0,0,0,0,37,9,89,0,0,0,0,0,37,9,0,0,0,0,0,0,37,9,0,0,0,0,0,0,37,9,89,0,112,0,0,0,53,83,83,0,23,7,0,0,144,34,9,112,65,10,0,0,0,85,0,23,100,167,0,0,0,0,112,65,102,167,0,0,0,0,112,100,102,135,10,0,0,0,112,119,119,136,10,0,0,0,0,122,168,170,0,0,0,0,0,160,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,6,0,0,0,0,102,54,68,115,0,0,0,102,67,115,119,7,0,0,96,66,119,7,80,0,0,0,38,33,0,0,5,0,0,96,18,2,0,80,0,0,0,96,36,0,0,5,0,0,0,54,7,0,80,0,0,0,0,70,7,0,5,0,0,0,0,54,7,80,0,0,0,0,96,115,0,5,0,0,0,0,96,116,80,0,0,0,0,0,96,116,5,0,0,0,0,0,96,115,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,7,0,0,0,0,0,53,83,7,0,0,0,0,0,103,115,0,0,0,0,0,0,150,117,0,0,0,0,0,96,9,7,0,0,0,0,0,150,0,0,0,0,0,0,96,9,0,0,0,0,0,0,150,0,0,0,0,0,0,96,9,0,0,0,0,0,32,148,0,0,0,0,0,0,66,130,0,0,0,0,0,0,40,8,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,69,84,5,0,0,0,0,21,36,66,99,0,0,0,80,17,36,66,51,6,0,0,80,17,36,66,51,6,0,0,80,17,69,100,51,6,0,0,80,81,119,119,54,6,0,0,80,81,119,119,54,6,0,0,80,97,119,119,54,6,0,0,0,101,0,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,68,0,0,0,68,33,4,64,17,84,0,64,18,33,5,64,17,33,5,64,17,17,65,20,17,33,5,64,18,17,33,17,17,34,5,0,20,17,33,17,33,82,0,0,64,17,49,18,34,5,0,0,64,17,33,17,34,5,0,0,80,17,49,18,34,5,0,0,80,17,33,33,34,5,0,0,80,33,50,34,34,5,0,0,80,34,50,34,34,5,0,0,0,85,85,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,102,102,0,0,0,96,34,34,34,66,8,0,0,96,34,34,34,66,8,0,0,96,34,68,68,66,8,0,0,96,66,132,72,66,8,0,0,96,85,8,96,85,8,0,0,80,49,7,80,49,7,0,0,80,51,7,80,51,7,0,0,96,85,8,96,85,8,0,0,96,66,8,96,66,8,0,0,96,66,8,96,66,8,0,0,96,68,8,96,68,8,0,0,96,136,8,96,136,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,6,96,102,0,0,0,96,66,8,96,66,8,0,0,96,66,8,96,66,8,0,0,96,66,8,96,66,8,0,0,96,66,8,96,66,8,0,0,96,66,8,96,66,8,0,0,37,82,7,80,37,82,0,80,81,53,7,80,83,53,7,80,51,115,0,0,55,51,7,80,119,7,0,0,112,119,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,102,6,0,0,0,0,70,66,66,115,0,0,0,96,20,36,36,53,7,0,0,96,66,66,82,83,8,0,0,96,36,102,134,53,7,0,0,96,98,169,169,88,8,0,0,96,100,154,154,55,7,0,0,96,114,169,169,88,8,0,0,0,134,0,0,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,0,0,102,0,0,0,102,52,6,96,36,134,0,96,66,82,8,96,66,82,8,96,36,36,100,38,36,52,7,96,67,65,66,66,66,83,8,0,38,36,36,36,52,133,0,0,88,66,66,66,82,115,0,0,96,36,36,36,52,7,0,0,112,66,66,66,83,8,0,0,128,37,36,52,53,7,0,0,112,83,83,83,83,8,0,0,0,55,53,53,133,0,0,0,0,112,120,120,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,102,102,0,0,0,96,36,36,36,52,7,0,0,96,66,65,66,82,8,0,0,96,20,53,53,52,7,0,0,96,82,115,88,82,8,0,0,96,52,7,96,52,7,0,0,96,82,8,96,82,8,0,0,96,52,7,96,52,7,0,0,96,82,8,96,82,8,0,0,96,52,7,96,52,7,0,0,96,82,8,96,82,8,0,0,96,53,7,96,53,7,0,0,96,120,8,96,120,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,6,96,102,0,0,0,96,82,8,96,82,8,0,0,96,52,7,96,52,7,0,0,96,82,8,96,82,8,0,0,96,52,7,96,52,7,0,0,96,82,8,96,82,8,0,0,22,52,7,96,36,100,0,96,66,83,8,96,67,82,8,96,53,133,0,0,55,53,7,96,120,8,0,0,112,120,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,68,68,4,0,0,0,0,36,34,34,83,0,0,0,64,18,33,34,51,5,0,0,64,18,34,50,51,5,0,0,64,34,68,84,51,5,0,0,64,66,102,102,53,5,0,0,64,66,102,102,53,5,0,0,64,82,102,102,53,5,0,0,0,84,0,0,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,68,0,0,0,68,50,4,64,34,84,0,64,34,50,5,64,34,50,5,64,34,34,66,36,34,50,5,64,35,17,34,34,34,51,5,0,36,33,34,34,50,83,0,0,53,34,34,34,50,83,0,0,64,34,34,34,50,5,0,0,80,34,34,34,51,5,0,0,80,35,34,50,51,5,0,0,80,51,51,51,51,5,0,0,0,53,51,51,83,0,0,0,0,80,85,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,68,68,68,0,0,0,64,34,34,34,50,5,0,0,64,18,33,34,50,5,0,0,64,18,51,51,50,5,0,0,64,50,83,53,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,51,5,64,51,5,0,0,64,85,5,64,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,4,64,68,0,0,0,64,50,5,64,50,5,0,0,64,49,5,64,49,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,20,50,5,64,34,66,0,64,34,51,5,64,35,50,5,64,51,83,0,0,53,51,5,64,85,5,0,0,80,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,68,68,4,0,0,0,0,36,34,34,83,0,0,0,64,18,33,34,51,5,0,0,64,18,34,50,51,5,0,0,64,34,68,84,51,5,0,0,64,66,102,102,53,5,0,0,64,66,102,102,53,5,0,0,64,82,102,102,53,5,0,0,0,84,0,0,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,68,0,0,0,68,50,4,64,34,84,0,64,34,50,5,64,34,50,5,64,34,34,66,36,34,50,5,64,35,17,34,34,34,51,5,0,36,33,34,34,50,83,0,0,53,34,34,34,50,83,0,0,64,34,34,34,50,5,0,0,80,34,34,34,51,5,0,0,80,35,34,50,51,5,0,0,80,51,51,51,51,5,0,0,0,53,51,51,83,0,0,0,0,80,85,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,68,68,68,0,0,0,64,34,34,34,50,5,0,0,64,18,33,34,50,5,0,0,64,18,51,51,50,5,0,0,64,50,83,53,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,51,5,64,51,5,0,0,64,85,5,64,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,4,64,68,0,0,0,64,50,5,64,50,5,0,0,64,49,5,64,49,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,20,50,5,64,34,66,0,64,34,51,5,64,35,50,5,64,51,83,0,0,53,51,5,64,85,5,0,0,80,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,68,68,4,0,0,0,0,36,34,34,83,0,0,0,64,18,33,34,51,5,0,0,64,18,34,50,51,5,0,0,64,34,68,84,51,5,0,0,64,66,102,102,53,5,0,0,64,66,102,102,53,5,0,0,64,82,102,102,53,5,0,0,0,84,0,0,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,0,0,68,0,0,0,68,50,4,64,34,84,0,64,34,50,5,64,34,50,5,64,34,34,66,36,34,50,5,64,35,17,34,34,34,51,5,0,36,33,34,34,50,83,0,0,53,34,34,34,50,83,0,0,64,34,34,34,50,5,0,0,80,34,34,34,51,5,0,0,80,35,34,50,51,5,0,0,80,51,51,51,51,5,0,0,0,53,51,51,83,0,0,0,0,80,85,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,68,68,68,0,0,0,64,34,34,34,50,5,0,0,64,18,33,34,50,5,0,0,64,18,51,51,50,5,0,0,64,50,83,53,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,51,5,64,51,5,0,0,64,85,5,64,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,4,64,68,0,0,0,64,50,5,64,50,5,0,0,64,49,5,64,49,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,64,50,5,64,50,5,0,0,20,50,5,64,34,66,0,64,34,51,5,64,35,50,5,64,51,83,0,0,53,51,5,64,85,5,0,0,80,85,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,4,0,0,0,0,0,0,19,4,0,0,0,0,0,48,65,0,0,0,0,0,0,35,4,0,0,0,0,0,48,65,0,0,0,0,0,0,35,4,0,0,0,0,0,48,65,0,0,0,0,0,0,35,4,0,0,0,0,0,48,65,0,0,0,0,0,0,35,4,0,0,0,0,0,48,65,0,0,0,0,0,0,19,4,0,0,0,0,0,0,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,255,0,0,0,0,0,0,143,103,15,0,0,0,0,240,56,113,247,0,0,0,0,240,54,50,119,15,0,0,0,240,39,50,82,247,0,0,0,127,49,68,131,167,15,0,0,143,35,167,183,202,15,0,0,127,85,119,167,170,250,0,0,127,119,119,169,170,249,0,0,175,139,170,218,206,254,0,0,240,170,222,205,203,15,0,0,0,223,141,255,255,0,0,0,0,240,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,255,0,0,0,0,0,0,159,120,15,0,0,0,0,240,89,131,248,0,0,0,0,240,55,20,136,15,0,0,0,240,24,82,116,248,0,0,0,143,20,50,149,173,15,0,240,146,69,166,182,221,15,0,240,151,50,168,184,218,15,0,143,119,72,216,42,250,15,0,143,129,130,218,170,250,0,0,175,155,136,218,206,254,0,0,240,170,221,170,203,15,0,0,0,223,157,255,255,0,0,0,0,240,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,170,170,0,0,0,0,0,160,17,17,10,0,0,0,0,26,51,35,166,0,0,0,160,33,51,81,165,0,0,0,160,49,33,34,101,10,0,0,26,19,68,68,88,10,0,0,26,35,68,68,88,166,0,0,26,114,68,68,152,169,0,0,26,85,136,136,119,168,0,0,160,149,119,119,121,10,0,0,160,150,119,119,137,10,0,0,0,138,119,119,168,0,0,0,0,160,170,170,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,0,0,0,0,0,144,153,51,9,0,0,0,153,57,33,34,147,0,144,153,19,33,34,34,50,9,73,17,33,34,34,130,136,168,25,36,34,34,136,72,68,164,25,66,130,136,68,68,116,167,41,50,70,68,68,119,119,167,89,53,70,68,119,135,170,10,144,85,118,119,167,170,0,0,0,89,118,170,10,0,0,0,0,144,170,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,170,0,0,0,0,0,160,170,51,10,0,0,0,170,58,33,34,163,0,160,170,19,33,34,34,50,10,74,17,33,34,34,146,153,185,26,36,34,34,153,73,68,180,26,66,146,153,68,68,116,183,42,50,70,68,68,119,119,184,90,53,70,68,119,135,187,11,160,85,118,119,183,187,0,0,0,90,134,187,11,0,0,0,0,160,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,6,0,0,0,0,0,96,19,130,0,0,0,0,0,96,33,84,8,0,0,0,0,96,33,116,8,0,0,0,0,0,70,133,0,0,0,0,0,0,86,135,0,0,0,0,0,0,86,135,0,0,0,0,0,0,96,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,221,0,0,0,0,0,0,29,34,13,0,0,0,0,208,50,102,216,0,0,0,0,45,35,118,156,14,0,0,208,49,66,134,154,235,0,0,208,82,20,66,153,234,0,0,208,82,21,83,136,235,0,0,208,82,37,83,152,234,0,0,208,84,53,69,152,235,0,0,208,100,69,68,202,235,0,0,0,141,134,168,204,14,0,0,0,208,136,200,236,0,0,0,0,0,158,169,14,0,0,0,0,0,224,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,6,0,0,0,0,0,0,38,98,0,0,0,0,0,96,33,67,6,0,0,0,0,38,34,66,100,0,0,0,96,34,34,66,21,6,0,0,22,34,35,65,68,100,0,0,38,35,34,66,84,100,0,0,70,18,34,66,68,100,0,0,96,68,34,69,20,6,0,0,0,102,68,68,102,0,0,0,0,0,102,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,0,0,0,0,0,0,80,65,7,0,0,0,0,0,21,66,7,0,0,0,0,80,33,66,118,0,0,0,0,21,34,67,118,0,0,0,80,33,50,68,102,7,0,0,21,34,67,68,100,7,0,0,37,50,68,68,100,118,0,0,37,67,68,68,102,118,0,0,87,85,85,100,102,7,0,0,112,85,85,69,118,0,0,0,0,87,85,85,7,0,0,0,0,112,119,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,16,3,0,0,0,0,0,0,49,1,0,0,0,0,0,16,19,2,0,0,0,0,48,19,19,3,0,0,0,0,17,49,17,5,0,0,0,48,19,19,83,0,0,0,0,17,49,17,3,0,0,0,0,0,20,19,5,0,0,0,0,64,22,83,0,0,0,0,64,100,16,5,0,0,0,0,96,6,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,16,19,0,0,0,0,0,0,32,48,0,0,0,0,0,0,48,33,0,0,0,0,1,0,0,51,1,0,0,32,3,0,0,0,35,0,0,49,0,18,18,0,48,1,0,2,16,51,51,18,0,2,0,19,48,2,0,51,2,1,0,48,18,51,0,16,3,2,0,0,51,18,18,50,16,3,0,0,0,51,51,3,50,0,0,0,0,0,19,18,3,0,0,0,0,0,48,51,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,0,0,0,0,0,0,32,218,0,0,0,0,0,0,192,185,14,0,0,0,0,0,140,238,0,0,0,0,0,192,228,0,0,0,0,0,0,108,14,0,0,0,0,0,192,225,0,0,0,0,0,0,76,14,0,0,0,0,0,192,230,0,0,0,0,0,0,92,14,0,0,0,0,0,202,226,0,0,0,0,0,208,83,14,0,0,0,0,0,240,189,14,0,0,0,0,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,39,114,0,0,0,0,0,112,33,84,7,0,0,0,0,39,34,82,117,0,0,0,112,34,34,82,86,7,0,0,39,34,36,81,85,117,0,0,39,36,34,82,101,117,0,0,87,18,34,82,85,117,0,0,112,85,34,86,53,7,0,0,0,119,85,85,119,0,0,0,0,0,119,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,51,0,0,0,0,51,48,18,33,3,51,0,0,35,19,17,33,49,66,0,0,48,17,18,17,33,4,0,0,48,18,18,33,33,4,0,0,0,19,18,17,66,0,0,0,0,35,17,17,66,0,0,0,0,19,33,17,65,0,0,0,0,19,33,17,65,0,0,0,48,34,33,33,34,4,0,0,48,17,17,17,33,4,0,0,48,33,34,34,33,4,0,0,35,66,36,66,36,66,0,0,67,4,64,4,64,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,33,10,10,0,0,0,160,10,66,166,0,160,0,0,0,49,42,97,162,10,0,0,0,163,35,74,171,0,0,0,0,49,20,162,100,161,0,0,0,49,65,40,23,2,0,0,16,19,89,133,34,170,0,0,16,65,133,92,213,13,0,0,220,87,88,213,13,0,0,16,205,95,213,93,10,0,16,52,242,222,13,208,173,0,48,35,88,13,0,0,0,0,208,130,219,0,0,0,0,0,32,221,213,0,0,0,0,0,208,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,48,0,0,0,0,32,0,0,0,3,0,0,0,96,0,0,0,34,0,0,0,3,0,82,0,102,0,0,0,3,1,102,0,0,0,0,32,5,6,0,0,0,0,0,96,6,0,3,16,4,0,0,0,0,32,5,96,6,0,0,0,0,96,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,116,0,0,0,0,0,115,66,7,0,0,0,0,16,83,98,5,36,0,0,0,16,37,70,71,66,7,0,0,0,50,100,36,116,0,0,0,16,67,86,114,7,0,0,0,66,101,36,103,85,0,0,35,67,70,66,85,119,0,0,55,116,20,116,119,0,0,0,64,71,82,7,0,0,0,0,112,39,116,0,0,0,0,0,0,64,7,0,0,0,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,5,0,0,0,0,0,0,21,83,0,0,0,0,0,80,17,51,5,0,0,0,0,37,33,50,83,0,0,0,80,17,18,49,52,5,0,0,21,34,17,34,67,83,0,0,21,18,33,17,67,83,0,0,53,17,34,65,51,84,0,0,80,51,17,51,68,5,0,0,0,85,51,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,16,17,1,0,0,0,0,0,17,34,17,0,0,0,0,17,18,34,18,1,0,0,17,34,18,34,34,17,0,17,34,34,34,33,34,34,2,35,34,18,34,34,33,50,3,48,34,34,33,34,17,3,0,0,35,34,33,34,49,0,0,0,48,17,34,50,3,0,0,0,0,35,50,3,0,0,0,0,0,48,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,136,8,0,0,0,0,0,136,85,133,0,0,0,0,136,85,87,85,8,0,0,136,85,85,119,87,133,0,136,85,117,85,117,119,85,8,104,85,85,87,85,85,85,151,104,86,85,85,85,85,119,66,104,98,85,85,85,119,35,67,105,33,86,85,119,50,50,151,144,22,98,119,50,35,119,153,0,105,33,34,35,119,153,0,0,144,22,51,119,153,0,0,0,0,105,119,153,0,0,0,0,0,144,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,5,0,0,0,0,0,80,21,83,5,0,0,0,0,37,17,49,83,0,0,0,80,33,33,18,52,5,0,0,80,17,17,17,52,5,0,0,21,34,17,34,67,83,0,0,53,17,33,17,67,83,0,0,53,17,34,49,51,84,0,0,80,52,17,51,68,5,0,0,0,85,51,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,0,0,0,0,0,112,119,18,7,0,0,0,119,39,17,17,113,0,112,119,18,17,17,17,17,7,55,17,17,17,17,97,102,134,39,19,17,17,102,70,51,131,39,50,97,102,52,51,51,131,39,34,68,51,51,51,51,133,55,34,52,51,51,99,136,8,112,35,52,51,133,136,0,0,0,55,84,136,8,0,0,0,0,112,136,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,51,51,3,0,0,0,48,35,17,17,50,3,0,0,52,34,17,17,33,66,0,0,68,36,18,17,66,68,0,0,20,65,68,68,52,67,0,0,64,17,33,34,50,4,0,0,0,68,34,34,68,0,0,0,0,0,68,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,187,187,0,0,0,0,0,187,21,81,203,0,0,0,176,21,17,51,135,12,0,0,176,17,17,52,119,12,0,0,91,49,20,68,84,201,0,0,27,51,67,17,116,201,0,0,27,68,68,34,114,202,0,0,91,17,49,51,118,201,0,0,176,102,51,99,167,12,0,0,192,105,119,119,170,12,0,0,0,204,170,170,204,0,0,0,0,0,204,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,5,0,0,0,0,0,64,20,66,5,0,0,0,0,20,17,33,82,0,0,0,0,20,17,17,82,0,0,0,64,17,17,17,34,5,0,0,64,17,17,17,34,5,0,0,20,17,17,17,34,82,0,0,20,17,17,17,34,82,0,0,36,17,17,17,34,82,0,0,64,17,17,33,34,5,0,0,64,35,17,34,34,5,0,0,0,85,34,34,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,204,204,0,0,0,0,0,204,38,98,220,0,0,0,192,38,34,68,152,13,0,0,192,18,33,69,136,13,0,0,108,18,33,85,101,218,0,0,44,68,84,34,133,218,0,0,44,85,85,51,131,219,0,0,108,34,66,68,135,218,0,0,192,119,68,116,184,13,0,0,208,122,136,136,187,13,0,0,0,221,187,187,221,0,0,0,0,0,221,221,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,6,0,0,0,0,0,0,38,98,0,0,0,0,0,96,33,67,6,0,0,0,0,38,34,66,100,0,0,0,96,34,34,66,21,6,0,0,22,34,35,65,68,100,0,0,38,35,34,66,84,100,0,0,70,18,34,66,68,100,0,0,96,68,34,69,20,6,0,0,0,102,68,68,102,0,0,0,0,0,102,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,187,170,10,0,0,0,176,139,102,102,164,10,0,0,155,137,102,102,68,180,0,0,186,137,104,102,68,187,0,0,42,187,104,102,187,183,0,0,42,34,187,187,85,183,0,0,42,18,50,51,85,183,0,0,160,18,50,51,117,11,0,0,160,34,33,83,117,11,0,0,160,34,33,83,117,11,0,0,0,42,34,83,181,0,0,0,0,90,34,85,181,0,0,0,0,176,187,187,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,255,238,14,0,0,0,240,175,119,119,229,14,0,0,223,205,187,187,89,245,0,0,254,204,188,187,153,255,0,0,46,255,188,187,255,246,0,0,46,34,255,255,153,246,0,0,46,18,56,51,73,246,0,0,224,18,50,51,105,15,0,0,224,34,33,67,100,15,0,0,224,34,33,67,105,15,0,0,0,46,34,67,244,0,0,0,0,78,34,68,244,0,0,0,0,240,255,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,255,238,14,0,0,0,240,191,107,182,231,14,0,0,191,219,73,148,125,247,0,0,254,73,148,68,217,255,0,0,30,255,212,153,255,245,0,0,46,17,255,255,212,252,0,0,46,18,45,34,137,252,0,0,224,18,82,85,205,15,0,0,224,34,33,133,200,15,0,0,224,34,33,133,205,15,0,0,0,46,34,133,248,0,0,0,0,142,34,136,248,0,0,0,0,240,255,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,136,119,7,0,0,0,128,56,51,51,114,7,0,0,56,18,17,17,33,130,0,0,135,17,17,17,17,136,0,0,39,136,17,17,136,134,0,0,39,34,136,136,17,134,0,0,39,18,65,68,81,134,0,0,112,18,66,68,97,8,0,0,112,34,33,84,101,8,0,0,112,34,33,84,97,8,0,0,0,39,34,84,133,0,0,0,0,87,34,85,133,0,0,0,0,128,136,136,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,34,34,34,34,2,0,0,48,2,0,2,0,2,0,0,64,2,0,2,0,2,0,0,48,34,34,34,34,2,0,0,48,2,0,2,0,2,0,0,48,2,0,2,0,2,0,0,48,34,34,34,68,2,0,0,48,18,17,18,17,2,0,0,48,18,17,18,17,2,0,0,48,34,34,34,34,2,0,0,64,18,17,18,17,2,0,0,48,18,17,18,17,2,0,0,48,34,34,34,34,2,0,0,48,51,51,51,51,3,0,0,0,0,0,0,0,0,0,0,0,0,0,64,68,0,0,0,0,0,160,42,17,4,0,0,0,160,122,167,18,65,0,0,160,138,136,119,42,17,4,0,138,120,136,120,167,18,4,160,120,135,136,136,152,74,6,160,120,136,136,152,170,90,6,160,138,136,152,170,170,86,6,96,170,152,170,170,102,96,6,80,166,170,170,102,0,0,0,0,96,170,102,0,0,0,0,0,0,99,0,0,0,0,0,0,0,101,0,0,0,0,0,0,0,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,85,85,5,0,0,0,80,69,34,34,82,5,0,0,69,100,102,102,38,81,0,80,100,102,102,102,102,38,8,80,102,102,102,99,102,102,8,80,102,102,54,55,102,102,8,80,105,102,102,103,102,150,8,80,146,105,102,103,150,73,8,80,18,146,153,153,73,68,8,0,24,34,34,34,68,132,0,0,128,40,34,34,132,8,0,0,0,128,136,136,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,153,0,0,0,0,0,153,34,34,153,0,0,0,144,34,170,170,34,9,0,0,41,170,74,164,170,145,0,0,41,170,51,51,168,178,0,144,162,138,51,51,136,26,11,144,162,138,56,131,136,26,11,144,162,138,24,162,136,26,11,144,18,204,44,194,204,33,11,176,34,17,33,18,17,34,11,176,38,34,34,34,34,98,11,176,98,34,34,34,34,118,11,0,43,102,34,34,102,183,0,0,176,81,102,102,117,11,0,0,0,187,85,85,187,0,0,0,0,0,187,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,2,0,0,0,0,0,0,40,203,0,0,0,0,0,192,155,203,0,0,0,0,204,108,164,203,0,0,0,204,119,52,185,202,0,0,192,85,51,179,186,203,0,0,192,170,116,170,187,12,0,0,0,204,171,187,204,0,0,0,0,0,204,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,5,0,0,0,0,80,85,21,85,80,0,0,0,21,83,17,83,21,5,0,0,21,84,21,81,17,84,0,0,80,21,82,53,21,84,0,0,21,34,83,33,67,83,0,0,21,18,83,33,21,84,0,0,53,49,85,67,21,85,0,0,80,85,17,53,84,5,0,0,0,85,67,53,85,0,0,0,0,80,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,0,0,0,0,0,0,0,21,85,0,0,0,0,80,85,81,37,5,0,0,0,21,21,81,50,5,0,0,80,81,49,53,83,0,0,0,21,53,85,81,84,0,0,80,81,82,49,52,21,5,0,21,50,21,35,69,81,0,0,53,85,65,83,49,83,0,0,85,49,50,69,49,84,0,80,17,67,81,19,68,5,0,0,85,85,20,49,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,98,0,0,0,0,16,100,32,99,0,0,0,81,38,101,96,6,0,0,0,82,86,6,0,0,0,0,0,100,5,0,16,98,0,0,1,6,97,33,54,98,0,16,100,0,33,54,86,99,0,0,6,49,54,102,0,6,0,0,0,81,96,49,21,100,0,0,0,102,0,82,38,100,0,0,0,0,0,102,96,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,89,151,0,0,0,0,0,41,84,65,9,0,0,0,144,50,69,148,148,0,0,0,25,119,67,121,148,0,0,0,41,23,66,71,151,0,0,0,57,35,151,116,153,0,0,144,50,33,137,119,9,0,0,73,83,150,116,148,9,0,0,153,34,152,119,152,0,0,0,41,153,68,135,9,0,0,0,137,119,151,153,0,0,0,0,144,153,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,85,0,0,0,0,0,85,17,17,85,0,0,0,80,17,18,33,50,5,0,0,21,34,17,34,66,83,0,0,21,18,33,17,66,83,0,0,53,17,34,65,51,84,0,0,80,51,17,51,68,5,0,0,0,85,52,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,7,0,0,0,0,0,0,39,116,112,0,0,0,0,112,97,70,71,7,0,0,0,55,50,33,100,114,0,0,112,34,86,69,69,117,0,0,39,99,33,99,50,115,0,0,23,38,50,98,65,117,0,0,103,38,67,82,100,117,0,0,112,68,34,70,85,7,0,0,0,119,68,69,119,0,0,0,0,0,119,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,6,0,0,0,0,96,102,22,100,0,0,0,0,22,82,34,6,0,0,0,0,54,37,50,98,0,0,0,96,50,18,83,82,102,6,0,0,38,50,37,53,84,101,0,0,38,83,50,33,20,100,0,0,70,33,51,50,67,101,0,0,96,68,34,65,85,6,0,0,0,102,69,85,102,0,0,0,0,0,102,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,102,0,0,0,0,0,102,33,50,102,0,0,0,96,17,18,49,69,6,0,0,22,34,17,34,83,99,0,0,22,18,33,17,83,99,0,0,54,17,34,81,51,101,0,0,96,51,17,51,85,6,0,0,0,102,51,53,102,0,0,0,0,0,102,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,85,0,0,0,0,0,85,33,50,85,0,0,0,80,17,18,49,52,5,0,0,21,34,17,34,67,83,0,0,21,18,33,17,67,83,0,0,53,17,34,65,51,84,0,0,80,51,17,51,68,5,0,0,0,85,51,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,85,0,0,0,0,0,85,33,50,85,0,0,0,80,17,18,49,52,5,0,0,21,34,17,34,67,83,0,0,21,18,33,17,67,83,0,0,53,17,34,65,51,84,0,0,80,51,17,51,68,5,0,0,0,85,51,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,24,8,0,0,0,0,128,136,81,8,0,0,0,0,136,34,87,8,0,0,0,128,18,116,114,8,0,0,0,136,70,70,100,133,0,0,128,50,101,65,38,8,0,0,24,99,39,99,82,134,0,0,72,22,55,38,100,130,0,0,72,38,103,98,116,133,0,0,128,100,34,71,86,8,0,0,0,136,116,69,136,0,0,0,0,0,136,136,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,96,6,0,0,0,0,22,82,38,100,0,0,0,96,82,84,18,66,6,0,0,22,66,37,51,68,100,0,0,38,84,50,33,84,101,0,0,70,37,51,85,68,101,0,0,96,68,33,68,85,6,0,0,0,102,68,85,102,0,0,0,0,0,102,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,85,0,0,0,0,0,85,33,17,85,0,0,0,80,17,18,49,52,5,0,0,21,17,17,34,66,84,0,0,21,18,33,17,66,83,0,0,53,17,34,65,51,84,0,0,80,51,49,51,68,5,0,0,0,85,68,52,85,0,0,0,0,0,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,6,0,0,0,0,0,96,17,99,0,0,0,0,0,96,33,83,102,102,0,0,0,86,34,85,35,51,6,0,96,17,85,53,52,98,0,0,22,34,17,34,67,99,0,0,22,82,21,17,67,99,0,0,54,82,33,65,35,100,0,0,96,83,33,83,37,6,0,0,0,22,82,51,101,0,0,0,0,96,102,102,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,96,97,6,0,96,0,0,0,96,33,100,6,54,6,0,0,22,34,22,99,22,6,0,0,70,85,81,51,37,99,0,0,96,35,21,66,53,101,0,0,22,18,53,84,86,54,6,0,22,82,81,69,21,51,6,0,51,21,51,84,49,38,6,0,22,85,83,69,99,100,0,96,99,51,21,83,70,98,0,0,6,102,83,37,102,98,0,0,0,96,34,100,96,99,0,0,0,0,102,6,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,67,0,0,0,0,0,0,0,3,0,0,0,0,0,0,185,79,0,0,0,0,0,153,70,180,221,0,0,0,144,86,85,91,187,13,0,0,144,21,33,85,181,13,0,0,105,17,82,85,117,219,0,0,89,18,85,85,118,235,0,0,89,85,85,85,118,235,0,0,91,85,85,101,167,235,0,0,192,87,101,118,186,14,0,0,192,187,119,167,187,14,0,0,0,190,139,184,235,0,0,0,0,224,14,224,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,0,0,0,0,0,119,0,0,0,0,0,0,0,7,0,0,0,0,0,0,119,118,0,0,0,0,0,119,66,52,119,0,0,0,112,34,34,35,51,7,0,0,112,18,33,34,50,7,0,0,39,17,34,34,50,115,0,0,39,17,34,34,50,115,0,0,39,34,34,34,50,115,0,0,39,34,34,34,51,115,0,0,112,35,34,50,51,7,0,0,112,51,51,51,51,7,0,0,0,55,83,53,115,0,0,0,0,112,7,112,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,4,0,0,0,0,0,64,20,49,5,0,0,0,0,20,34,34,133,0,0,0,64,81,37,34,83,9,0,0,20,18,81,34,83,9,0,64,33,34,18,50,133,9,0,20,85,34,34,83,149,0,0,36,17,37,50,133,9,0,64,33,34,33,85,149,0,0,64,33,34,82,85,9,0,0,64,33,34,83,152,0,0,0,0,53,83,85,9,0,0,0,0,103,85,152,0,0,0,0,0,112,153,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,119,8,0,0,0,0,0,103,70,166,0,0,0,0,112,67,53,22,10,0,0,0,103,70,85,20,10,0,0,120,102,100,86,33,11,0,128,83,86,86,54,161,11,0,112,85,67,85,20,162,0,0,87,101,22,52,33,186,0,0,56,69,19,17,162,11,0,0,160,25,17,162,186,0,0,0,160,170,170,186,0,0,0,0,0,176,187,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,187,13,0,0,0,0,0,141,183,250,0,0,0,0,208,123,130,148,15,0,0,0,157,83,21,162,15,0,0,189,118,49,68,133,15,0,208,105,49,38,97,200,15,0,176,51,22,85,34,249,0,0,155,81,85,49,150,252,0,0,155,18,114,40,213,15,0,0,192,102,65,200,254,0,0,0,224,189,187,253,0,0,0,0,0,240,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,170,10,0,0,0,0,0,138,56,232,0,0,0,0,160,49,22,104,14,0,0,0,138,56,102,99,14,0,0,170,136,131,104,118,14,0,160,97,104,104,24,198,14,0,160,102,49,102,67,219,14,0,106,134,24,83,183,237,0,0,26,54,65,71,203,14,0,0,208,44,116,201,239,0,0,0,224,205,204,237,14,0,0,0,0,224,238,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,170,10,0,0,0,0,0,186,23,227,0,0,0,0,160,71,152,51,13,0,0,0,122,28,130,54,13,0,0,170,51,181,22,53,14,0,160,133,43,83,155,212,14,0,160,21,121,20,145,219,0,0,106,152,116,151,52,237,0,0,58,98,75,148,219,14,0,0,208,60,186,211,253,0,0,0,224,221,221,237,14,0,0,0,0,224,238,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,221,13,0,0,0,0,0,173,54,215,13,0,0,0,0,109,51,102,216,0,0,0,208,55,131,104,85,237,0,0,208,52,104,22,81,216,15,0,208,93,38,17,85,216,15,0,77,212,38,49,85,218,15,0,77,147,134,170,165,217,15,0,61,147,168,35,170,253,0,0,109,137,58,50,217,253,0,0,180,168,41,131,253,15,0,0,241,200,85,216,15,0,0,0,0,79,221,255,0,0,0,0,0,241,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,170,10,0,0,0,0,0,154,86,168,10,0,0,0,0,105,133,136,169,0,0,0,160,104,104,37,82,170,0,0,160,102,88,34,82,166,12,0,160,138,37,34,85,166,13,0,122,149,38,82,85,166,13,0,122,167,150,170,102,169,12,0,122,169,42,82,154,250,0,0,122,154,74,98,169,202,0,0,163,169,73,150,250,13,0,0,193,186,102,169,14,0,0,0,0,60,170,220,0,0,0,0,0,193,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,9,0,0,0,0,0,0,54,149,0,0,0,0,0,0,38,167,0,0,0,0,0,96,19,167,0,0,0,0,0,96,18,180,0,0,0,0,0,38,23,184,0,0,0,0,96,65,37,184,0,0,0,96,38,35,53,9,0,0,0,54,116,20,50,10,0,0,96,67,87,71,129,11,0,0,22,67,85,85,146,11,0,0,22,66,85,71,168,0,0,0,137,35,17,130,187,0,0,0,154,136,136,185,11,0,0,0,160,170,187,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,14,0,0,0,0,0,0,75,234,0,0,0,0,0,0,59,230,0,0,0,0,0,176,35,230,0,0,0,0,0,176,18,250,0,0,0,0,0,27,25,253,0,0,0,0,176,161,38,254,0,0,0,176,59,33,38,14,0,0,0,27,65,21,51,14,0,0,176,49,105,53,209,15,0,0,27,154,116,150,225,15,0,0,27,100,92,55,237,0,0,0,222,35,17,210,255,0,0,0,239,222,221,254,15,0,0,0,240,255,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,15,0,0,0,0,0,176,124,15,0,0,0,0,0,141,87,248,0,0,0,0,80,44,163,75,95,15,0,0,112,97,106,115,138,15,0,0,40,150,66,21,252,0,0,112,97,26,105,67,15,0,0,23,101,49,42,247,0,0,96,66,54,137,177,213,253,0,48,179,49,54,171,237,15,0,224,60,41,213,238,253,0,0,0,204,130,238,255,15,0,0,0,108,252,255,0,0,0,0,0,240,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,136,136,0,0,0,0,0,128,21,83,8,0,0,0,0,128,50,84,8,0,0,0,0,128,67,101,8,0,0,0,0,128,85,118,8,0,0,0,0,0,136,136,135,0,0,0,0,0,0,128,134,0,0,0,0,0,0,88,133,0,0,0,0,0,0,104,8,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,102,102,6,0,0,0,96,22,18,17,98,6,0,0,39,18,34,34,33,114,0,0,119,35,18,18,49,119,0,0,71,115,55,115,55,118,0,0,112,68,84,83,101,7,0,0,0,119,85,85,119,0,0,0,0,0,119,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,34,66,6,0,0,0,32,66,38,34,34,2,0,0,34,17,17,33,17,82,0,32,17,21,65,22,20,18,2,64,37,33,82,22,37,17,2,32,17,65,33,17,18,65,2,32,33,97,17,33,18,18,2,48,34,18,66,22,81,33,3,112,35,21,17,17,17,50,7,0,55,35,34,98,50,115,0,0,112,55,51,51,115,7,0,0,0,112,119,119,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,99,0,0,0,0,0,0,112,50,5,0,0,0,0,0,183,36,99,0,0,0,0,144,219,24,99,0,0,0,0,169,187,24,83,0,0,0,112,187,159,24,83,0,0,0,185,171,185,24,99,0,0,112,171,190,171,20,99,0,0,167,188,151,137,49,5,0,48,66,136,136,20,83,6,0,96,35,17,17,49,101,0,0,0,54,51,51,99,6,0,0,0,0,102,85,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,0,0,0,0,0,0,0,213,0,0,0,0,0,0,88,136,14,0,0,0,0,120,133,198,0,0,0,0,51,103,199,232,0,0,0,48,18,218,253,207,14,0,0,35,65,148,11,0,15,0,144,19,66,153,11,0,0,0,57,34,148,186,0,0,0,0,35,68,169,11,0,0,0,48,146,186,187,0,0,0,0,0,187,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,138,136,12,0,0,0,0,138,68,180,197,12,0,0,0,24,33,171,117,202,0,0,128,36,43,131,120,202,15,0,128,37,51,118,120,202,14,0,128,133,97,183,168,204,14,0,128,136,135,221,202,236,0,0,192,137,136,171,236,14,0,0,0,204,170,204,14,0,0,0,0,0,238,238,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,119,36,10,0,0,0,0,71,42,167,161,12,0,0,0,36,162,26,166,165,0,0,144,58,26,97,171,168,13,0,112,115,42,166,74,168,14,0,64,163,97,58,243,170,14,0,80,165,170,83,168,250,0,0,160,167,53,138,234,15,0,0,0,170,136,170,15,0,0,0,0,0,238,238,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,104,12,0,0,0,0,138,51,163,197,11,0,0,0,40,18,138,100,183,0,0,128,19,23,131,104,183,12,0,96,20,17,132,104,217,14,0,80,21,134,255,217,237,0,0,192,85,134,157,235,14,0,0,0,204,169,221,14,0,0,0,0,0,238,238,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,116,71,4,0,0,0,64,212,140,168,76,4,0,0,196,138,136,137,168,76,0,64,173,152,120,139,136,202,4,16,172,85,85,197,139,218,1,32,84,221,238,133,168,77,2,32,221,237,94,170,77,33,3,96,221,254,95,17,33,98,15,0,102,15,32,34,50,246,0,0,0,0,32,50,246,15,0,0,0,0,240,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,3,0,0,0,0,0,0,16,19,0,0,0,0,0,0,48,117,7,0,0,16,1,36,100,87,5,0,0,17,66,66,130,170,10,0,0,33,36,36,100,0,0,0,0,66,66,66,134,0,0,0,32,36,20,81,152,0,0,0,64,66,81,133,6,0,0,0,34,36,36,104,9,0,0,0,178,66,130,150,0,0,0,0,34,98,104,9,0,0,0,0,105,102,153,0,0,0,0,0,144,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,5,0,0,0,0,0,0,16,21,0,0,0,0,0,0,80,166,10,0,0,0,0,35,115,106,6,0,0,0,51,34,114,221,13,0,0,48,50,40,114,0,0,0,0,51,130,51,131,0,0,0,48,50,40,50,183,0,0,0,48,130,51,131,11,0,0,0,68,40,50,183,0,0,0,0,228,52,131,11,0,0,0,0,68,148,187,0,0,0,0,0,156,153,0,0,0,0,0,0,192,204,0,0,0,0,0,0,0,0,0,0,0,0,0,99,51,51,51,51,99,51,67,54,51,54,51,70,53,51,52,51,52,51,52,53,99,82,51,98,51,98,51,67,82,51,67,51,66,51,35,81,51,70,53,33,53,38,84,51,66,53,36,54,20,86,99,33,53,38,84,18,53,67,98,53,19,82,17,52,67,81,53,20,82,22,82,35,81,51,18,86,19,81,35,33,51,17,53,20,84,67,17,53,20,52,83,85,51,85,53,83,85,34,34,34,34,34,34,34,18,34,34,34,34,34,34,34,34,34,34,34,18,33,34,34,34,34,34,34,34,34,34,34,18,17,34,34,34,34,34,34,34,34,34,34,18,17,33,34,34,34,34,34,34,34,34,34,18,17,17,34,34,34,34,34,34,34,34,34,18,17,17,33,34,18,17,17,17,17,17,17,17,17,17,17,34,18,17,17,17,17,17,17,17,17,17,17,33,18,17,17,17,17,17,17,17,17,17,17,35,50,51,51,51,51,51,51,19,17,17,49,34,34,34,34,34,34,34,34,18,17,17,35,34,34,34,34,34,34,34,34,18,17,49,34,34,34,34,34,34,34,34,34,18,17,35,34,34,34,34,34,34,34,34,34,18,49,34,34,34,34,34,34,34,34,34,34,18,35,34,34,34,34,34,34,34,34,34,34,50,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,64,4,0,68,0,20,66,64,33,4,36,34,36,34,4,52,34,34,50,4,64,34,34,66,0,64,34,34,66,0,64,34,34,66,0,64,51,51,67,0,0,68,68,4,0,80,5,0,85,0,37,81,80,68,5,37,34,69,68,5,53,34,69,68,5,80,34,69,84,0,80,34,69,84,0,80,34,69,84,0,80,51,69,84,0,0,85,85,5,0,0,0,1,0,0,1,0,1,16,0,18,0,2,33,0,32,0,0,2,0,0,0,0,0,0,1,0,0,16,1,2,1,0,32,2,16,2,0,1,0,32,0,0,2,0,0,17,16,1,0,16,34,33,18,0,33,34,34,34,1,33,34,34,34,1,33,34,34,34,1,16,34,34,18,0,0,33,34,1,0,0,16,18,0,0,0,0,1,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,246,31,102,102,102,151,148,102,102,70,102,150,169,120,72,148,102,54,148,119,121,102,151,138,102,134,102,101,151,66,102,53,101,151,84,101,105,134,102,104,168,89,34,150,152,86,168,105,70,102,84,137,102,102,102,134,86,163,71,102,134,152,105,83,102,121,70,69,102,102,86,150,136,54,85,66,102,83,100,104,118,39,166,102,102,85,103,54,102,102,51,102,118,35,101,102,86,86,37,169,253,31,151,102,134,100,102,86,99,168,104,53,70,102,102,102,102,101,118,151,170,100,168,100,102,102,86,98,152,154,154,103,134,122,102,102,53,57,101,36,101,36,166,104,134,138,151,103,151,105,83,100,37,82,168,104,86,71,134,73,98,102,102,102,102,151,87,83,102,135,100,37,132,138,101,134,154,72,82,168,153,103,104,100,134,86,99,121,102,100,102,37,100,102,102,102,102,100,102,150,252,31,86,121,70,102,102,152,151,154,134,138,168,122,53,101,102,102,135,83,102,102,100,121,102,152,138,134,154,118,118,121,102,102,168,87,152,102,35,98,138,70,99,121,151,138,102,103,102,151,103,102,102,121,102,86,83,53,52,101,134,70,137,121,102,102,102,102,131,168,70,102,102,70,83,102,104,86,67,167,104,102,134,170,104,99,121,102,100,86,114,104,69,121,71,67,121,66,36,168,253,31,86,148,70,134,122,102,54,84,100,102,102,134,70,153,170,90,66,82,102,151,102,104,168,136,154,151,154,70,102,102,53,134,105,118,56,53,50,102,104,101,102,151,121,102,150,103,102,118,170,104,150,99,103,67,66,167,154,102,102,151,105,53,100,102,104,168,120,102,99,119,105,102,134,154,102,102,104,83,102,86,120,102,102,102,102,87,150,169,121,136,137,137,121,102,150,103,151,120,252,31,103,102,70,150,103,102,118,105,102,118,72,102,169,105,68,102,85,83,52,150,103,102,70,85,104,99,70,153,104,102,167,138,102,86,134,53,101,53,150,118,102,37,132,152,103,102,134,102,169,104,37,101,150,105,151,121,102,120,152,102,102,102,102,86,99,85,134,122,37,50,133,105,104,102,106,134,154,151,170,168,120,169,104,102,103,102,134,154,138,102,104,53,137,102,136,122,134,135,252,31,151,70,51,85,98,121,102,102,102,70,102,168,104,86,104,150,154,138,102,37,101,102,102,86,34,99,118,70,51,101,53,150,132,154,53,101,86,50,102,102,102,37,36,85,102,168,74,68,102,102,102,70,53,134,152,119,102,86,83,70,34,100,102,70,102,104,102,102,100,102,102,102,86,67,137,121,70,70,102,83,102,86,83,99,102,85,102,69,83,102,102,102,86,99,102,102,151,104,252,31,121,168,103,102,53,134,153,103,102,102,102,104,121,118,137,104,36,149,70,102,53,103,118,116,138,102,100,120,82,102,118,121,102,118,169,136,138,102,102,102,70,102,102,102,150,137,102,68,101,153,121,169,169,54,101,53,148,136,134,170,136,68,118,136,54,52,101,102,102,102,122,67,101,102,134,54,101,102,102,102,138,151,103,118,153,102,134,150,170,120,37,149,103,102,116,36,166,104,252,31,102,118,101,102,102,53,101,102,151,86,134,154,68,50,102,35,68,36,66,148,152,73,53,34,82,153,118,83,52,102,118,137,153,89,70,101,102,134,102,102,102,102,151,105,102,134,154,102,99,102,102,102,169,153,150,70,82,102,168,38,101,70,66,86,83,134,153,101,70,85,102,85,102,102,151,103,53,133,105,37,34,67,66,102,102,102,151,103,118,101,134,134,138,86,82,102,102,166,254,31,87,66,35,101,134,70,53,72,82,102,102,152,100,118,102,104,102,101,134,102,102,116,73,101,37,101,86,98,138,102,102,134,102,37,101,102,120,88,34,34,98,86,82,102,102,102,102,151,38,101,37,100,104,151,136,103,54,167,71,118,121,38,99,152,116,102,118,102,149,82,70,102,100,102,118,72,102,169,137,138,100,53,137,105,100,104,102,134,150,154,151,103,102,102,102,99,134,152,252,31,102,102,101,153,103,168,105,134,154,68,102,100,103,37,66,86,83,99,102,102,102,104,100,102,102,102,102,102,100,102,70,134,70,86,83,86,102,86,118,169,103,152,54,36,137,102,52,100,102,102,102,134,103,66,148,57,101,134,138,120,169,87,105,153,103,104,102,102,102,100,70,154,102,102,151,119,105,164,130,70,105,102,104,102,84,68,82,152,105,150,137,134,118,121,135,83,102,53,252,31,102,70,85,134,170,136,170,38,133,100,102,166,136,86,83,151,136,102,102,102,102,102,102,85,100,83,102,102,70,50,83,69,100,102,100,83,101,121,86,50,100,72,101,105,105,53,150,102,169,71,170,138,70,102,115,121,134,105,100,102,54,101,70,102,72,85,121,102,103,137,102,134,74,53,50,150,154,102,104,36,83,34,99,100,118,121,134,122,86,102,102,118,168,104,152,103,101,134,254,31,100,134,73,102,120,70,102,134,137,102,83,101,165,89,135,70,85,118,39,154,153,134,102,100,168,104,118,153,103,150,121,102,102,102,134,105,102,102,102,102,168,104,118,137,166,154,37,101,70,85,103,86,102,134,138,138,100,102,86,83,37,102,102,135,149,154,154,102,102,53,101,151,152,72,66,102,100,118,72,150,135,137,136,105,105,121,102,121,36,84,82,87,185,122,134,137,169,122,252,31,35,101,134,102,102,118,51,102,102,118,102,102,102,100,105,150,103,102,169,121,102,102,102,134,102,102,151,100,102,151,152,102,102,86,99,136,41,101,150,106,83,102,102,83,100,70,118,133,134,106,34,101,70,50,83,167,154,170,89,52,101,86,34,166,153,71,152,101,121,102,102,137,134,138,102,118,104,102,118,73,36,98,118,153,100,102,54,85,132,70,167,136,121,168,104,134,37,68,252,31,102,70,102,102,103,168,104,118,121,53,118,72,36,83,121,102,134,154,102,134,86,66,67,68,134,138,102,53,69,102,98,101,70,102,104,100,102,133,103,168,54,101,68,137,151,119,118,102,104,166,169,88,102,102,104,37,100,70,100,102,70,117,137,168,58,101,100,102,100,104,102,151,135,105,83,86,82,104,86,102,99,121,102,102,136,154,134,153,121,151,152,35,84,104,37,66,102,53,252,31,134,104,151,154,54,132,73,66,134,106,82,104,67,82,134,170,152,166,104,168,104,102,167,171,83,168,55,66,100,102,86,83,102,70,102,53,132,152,87,98,152,100,86,51,101,100,102,86,83,102,134,102,86,83,37,82,134,102,118,168,104,86,83,102,101,118,105,102,102,70,102,37,51,150,103,118,102,102,152,102,169,103,100,134,101,153,168,104,86,151,83,117,153,154,102,102,86,66,252,63,204,221,204,221,221,222,204,204,204,204,204,187,221,204,237,238,189,187,204,204,204,205,204,204,221,205,204,220,205,204,236,204,203,204,188,204,204,220,204,219,204,220,221,188,222,205,188,204,237,204,204,204,204,204,220,205,203,188,204,221,204,188,187,204,204,221,205,188,220,221,204,204,204,220,205,187,204,205,220,222,205,221,204,220,237,205,204,204,204,204,220,204,188,203,204,204,204,204,252,143,204,187,204,220,220,204,205,204,204,204,237,189,220,204,220,204,188,221,205,204,204,204,204,220,205,204,204,220,205,237,221,222,204,221,204,188,204,205,204,204,204,204,204,222,220,221,205,220,206,204,204,204,204,205,203,205,220,204,205,204,204,204,204,204,188,204,204,220,205,189,204,220,205,204,203,203,204,204,203,220,188,204,220,205,204,220,237,221,204,204,204,220,220,204,204,204,204,204,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,245,31,85,85,85,134,131,85,85,53,85,133,168,103,40,131,85,37,131,102,105,85,150,122,85,117,85,83,150,50,85,36,84,134,66,84,88,133,85,88,167,73,34,133,151,69,168,89,53,85,66,121,85,85,85,117,69,162,38,85,133,151,89,66,85,105,53,36,85,85,69,149,135,37,52,50,85,50,83,87,101,38,165,85,85,52,86,37,85,85,34,85,101,34,84,85,69,69,35,169,253,31,150,85,117,82,85,69,82,168,87,36,53,85,85,85,85,84,101,150,170,83,167,83,85,85,53,82,151,154,154,86,117,106,85,85,36,40,84,35,84,35,165,87,133,138,150,86,150,89,50,83,36,50,167,87,69,54,117,57,82,85,85,85,85,150,70,66,85,134,83,35,115,122,84,133,138,55,50,167,152,86,88,83,133,69,82,105,85,83,85,36,83,85,85,85,85,83,85,149,252,31,69,105,53,85,85,151,150,138,117,122,168,106,36,84,85,85,134,66,85,85,82,105,85,136,138,117,154,101,101,104,85,85,167,54,135,85,34,82,122,53,82,105,150,122,85,86,85,150,86,85,85,105,85,69,66,36,35,84,133,37,137,104,85,85,85,85,130,168,53,85,85,53,66,85,88,69,34,166,87,85,133,170,87,82,105,85,83,53,98,88,51,105,38,34,104,50,35,168,253,31,69,146,37,133,106,85,37,66,83,85,85,117,53,137,170,74,34,50,85,150,85,87,168,120,154,150,154,53,85,85,36,133,88,101,39,35,34,85,88,83,85,150,105,85,149,86,85,101,170,87,133,82,86,50,50,166,154,85,85,150,88,35,82,85,87,167,104,85,82,102,89,85,133,138,85,85,88,66,85,69,104,85,85,85,85,54,149,169,105,119,137,121,104,85,149,86,150,103,252,31,86,85,53,149,86,85,101,89,85,101,56,85,169,89,51,85,52,50,35,149,86,85,53,52,87,82,37,153,88,85,166,138,85,69,133,36,84,36,149,101,85,35,115,151,86,85,117,85,169,87,35,83,133,88,150,105,85,103,152,85,85,85,85,69,82,52,117,106,35,34,116,89,87,85,90,117,154,134,170,168,103,169,87,85,86,85,117,154,138,85,87,36,137,85,136,106,133,134,252,31,150,53,34,68,82,105,85,85,85,37,85,168,88,69,87,149,154,122,85,35,83,85,85,69,34,82,101,53,34,84,35,149,115,138,36,84,53,34,85,85,85,35,34,51,85,167,42,51,85,85,85,53,36,133,151,102,85,69,66,53,34,83,85,53,85,87,85,85,83,85,85,85,69,50,137,105,53,37,85,66,85,53,50,82,85,68,85,51,66,85,85,85,53,82,85,85,150,88,252,31,105,167,86,85,36,117,137,86,85,85,85,87,105,101,121,88,35,148,37,85,36,86,101,99,122,85,83,103,50,85,101,105,85,101,169,119,138,85,85,85,53,85,85,85,133,136,85,35,84,153,105,168,169,37,84,36,147,119,117,170,136,35,101,136,37,35,84,85,85,85,106,34,83,85,117,37,84,85,85,85,138,150,86,101,153,85,117,133,170,103,35,148,86,85,99,35,165,87,252,31,85,101,84,85,85,36,84,85,150,53,117,138,50,34,85,34,51,35,50,147,136,40,36,34,66,137,101,50,35,85,101,121,153,72,53,83,85,133,85,85,85,85,150,89,85,133,138,85,82,85,85,85,169,152,149,37,66,85,168,37,83,53,50,69,66,117,153,83,37,68,85,67,85,85,150,86,36,116,89,36,34,50,50,85,85,85,150,86,101,83,133,117,122,53,50,85,85,165,254,31,54,50,34,84,133,53,35,56,50,85,85,151,83,101,85,88,85,83,133,85,85,99,57,84,36,84,53,82,138,85,85,133,85,35,83,85,104,71,34,34,82,53,50,85,85,85,85,150,37,83,35,82,87,150,119,86,37,166,38,101,104,37,82,151,99,85,101,85,131,50,53,85,83,85,101,39,85,168,136,122,83,36,137,89,83,88,85,117,133,138,150,86,85,85,85,82,133,151,252,31,85,85,83,152,86,168,89,117,154,35,85,82,86,36,50,53,50,82,85,85,85,87,83,85,85,85,85,85,83,85,53,133,37,69,66,53,85,53,101,169,86,151,37,35,121,85,34,83,85,85,85,117,86,50,147,41,84,133,138,103,169,70,89,153,86,87,85,85,85,83,53,154,85,85,150,102,89,162,114,53,88,85,87,85,67,51,66,151,89,133,121,117,101,105,118,50,85,36,252,31,85,53,68,117,170,135,170,37,116,82,85,165,136,69,66,150,119,85,85,85,85,85,85,68,83,66,85,85,53,34,50,51,82,85,82,50,83,105,69,34,82,55,84,89,89,36,133,85,168,38,170,122,37,85,98,105,133,89,82,85,37,83,53,85,56,52,105,85,86,136,85,117,58,35,34,133,138,85,87,35,50,34,82,83,101,105,117,106,53,85,85,101,168,88,151,86,83,133,254,31,83,117,57,85,104,53,85,117,121,85,66,84,163,73,134,37,52,101,38,138,153,133,85,83,167,88,101,153,86,133,105,85,85,85,117,89,85,85,85,85,167,87,101,137,165,138,36,83,53,52,86,69,85,133,138,138,83,85,69,66,35,85,85,134,131,154,154,85,85,36,84,150,152,55,50,85,82,101,39,149,118,137,120,89,89,105,85,105,35,51,66,70,169,106,117,137,169,106,252,31,34,84,117,85,85,101,34,85,85,101,85,85,85,83,88,149,86,85,168,105,85,85,85,133,85,85,150,83,85,150,136,85,85,69,82,136,41,83,133,90,66,85,85,50,83,37,101,132,133,90,34,84,53,34,66,166,154,170,73,35,84,69,34,165,152,54,151,83,105,85,85,121,117,122,85,101,88,85,101,40,34,82,101,137,82,85,37,68,130,53,166,136,105,167,87,133,35,51,252,31,85,53,85,85,86,167,87,101,105,36,101,39,35,66,104,85,117,154,85,117,53,50,34,51,117,122,85,36,52,85,82,83,53,85,88,83,85,132,86,167,37,84,34,121,134,102,101,85,87,165,169,55,85,85,88,36,82,53,82,85,53,100,137,168,42,84,83,85,83,88,85,150,118,89,66,53,66,88,69,85,82,105,85,85,136,138,117,153,105,150,136,34,67,88,35,50,85,36,252,31,117,88,150,138,37,114,57,50,133,90,66,87,50,66,117,170,136,165,88,167,87,85,166,170,66,167,38,50,82,85,69,66,85,53,85,36,115,152,54,82,151,83,69,34,84,83,85,69,66,85,117,85,69,66,36,66,117,85,101,168,88,69,66,85,83,101,89,85,85,53,85,35,34,149,86,101,85,85,151,85,169,86,83,133,84,137,167,87,53,150,50,100,137,138,85,85,69,50,252,47,204,237,204,221,221,222,204,204,204,204,204,204,222,204,237,238,189,203,204,204,204,205,204,204,221,205,204,220,205,204,236,204,204,204,204,204,204,220,204,220,204,220,222,204,238,205,204,204,237,204,204,204,204,204,236,206,203,204,204,221,204,204,188,204,204,221,205,188,220,222,204,204,204,220,205,203,204,205,220,222,205,221,204,220,237,205,204,204,204,204,220,204,188,204,204,204,204,204,252,127,204,188,204,220,220,204,205,204,204,204,237,205,220,204,220,204,204,237,206,204,204,204,204,220,205,204,204,220,205,237,221,222,204,221,204,204,204,205,204,204,204,204,204,222,220,221,205,220,206,204,204,204,204,205,204,205,220,204,205,204,204,204,204,204,188,204,204,236,205,205,204,220,205,204,204,203,204,204,204,220,204,204,236,205,204,220,237,221,204,204,204,220,220,204,204,204,204,204,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,143,168,103,85,119,116,138,119,119,119,87,119,217,121,119,121,151,174,155,119,70,118,119,119,119,20,117,135,103,69,119,70,167,150,157,71,119,103,82,119,119,119,54,69,102,119,217,93,102,119,119,119,103,87,151,169,136,119,119,116,103,19,118,119,103,119,121,119,119,118,119,119,119,119,100,154,137,103,87,119,117,119,103,101,117,119,119,119,102,116,119,119,119,103,117,119,119,168,121,247,127,119,119,119,152,150,119,119,103,119,151,185,137,89,150,119,87,150,136,138,119,168,155,119,151,119,118,168,99,119,71,119,152,117,119,121,151,119,121,185,121,67,151,169,119,185,121,103,119,117,154,119,119,119,151,119,181,88,119,151,169,122,116,119,138,103,87,119,119,119,167,153,71,103,98,119,101,118,121,135,56,183,119,119,103,120,87,119,119,85,119,135,52,119,119,119,119,70,217,253,143,168,119,151,117,119,119,116,185,121,87,103,119,119,119,119,119,135,168,188,118,185,118,119,119,103,115,169,171,171,120,151,139,119,119,87,89,119,70,119,38,183,121,151,157,152,120,168,122,101,118,39,98,185,121,119,104,151,106,116,119,119,119,119,168,120,116,119,152,118,70,150,156,119,151,157,105,100,185,169,120,121,118,151,119,117,138,119,118,119,39,118,119,119,119,119,118,119,167,250,127,119,137,103,119,119,153,168,157,151,155,217,139,87,119,119,119,152,116,119,119,117,138,119,153,157,151,155,135,135,137,119,119,185,104,153,119,52,116,155,103,116,137,168,155,119,120,119,168,120,119,119,137,119,119,116,71,86,119,151,87,153,137,119,119,119,119,149,185,103,119,119,103,116,119,121,119,84,184,121,119,151,189,121,117,137,119,118,103,132,121,102,138,88,85,137,97,70,185,251,127,119,165,87,151,139,119,87,117,118,119,119,151,103,153,187,123,84,98,119,152,119,121,217,153,171,152,157,103,119,119,71,151,121,135,89,86,81,119,121,118,119,168,138,119,167,120,119,135,187,121,151,116,120,101,99,184,171,119,119,168,121,86,117,119,121,185,137,119,117,136,121,119,151,157,119,119,121,117,119,119,137,119,119,119,119,104,167,201,137,153,154,154,137,119,167,120,168,137,248,143,120,119,103,167,120,119,135,122,119,135,105,119,218,122,102,119,103,100,70,167,120,119,103,103,121,116,87,170,121,119,184,157,119,119,151,71,119,71,167,135,119,70,150,169,120,119,151,119,186,121,70,118,151,121,168,138,119,137,153,119,119,119,119,119,117,103,151,139,38,68,151,122,121,119,123,151,171,152,190,185,137,186,121,119,120,119,151,171,157,119,121,87,154,119,153,139,151,152,249,143,168,103,85,119,116,138,119,119,119,87,119,217,121,119,121,151,174,155,119,70,118,119,119,119,20,117,135,103,69,119,70,167,150,157,71,119,103,82,119,119,119,54,69,102,119,217,93,102,119,119,119,103,87,151,169,136,119,119,116,103,19,118,119,103,119,121,119,119,118,119,119,119,119,100,154,137,103,87,119,117,119,103,101,117,119,119,119,102,116,119,119,119,103,117,119,119,168,121,247,159,137,185,120,119,87,151,154,120,119,119,119,121,137,135,154,121,38,167,87,119,87,120,135,134,155,119,118,137,100,119,135,137,119,135,186,153,155,119,119,119,103,119,119,119,151,153,119,86,119,154,138,217,186,87,119,71,150,153,151,187,153,86,135,153,87,70,119,119,119,119,140,85,118,119,151,87,119,119,119,119,155,168,120,135,170,119,151,151,222,137,38,167,120,119,134,54,183,121,247,127,119,135,119,119,119,71,119,119,168,103,151,155,101,67,119,68,102,54,98,166,153,89,87,33,116,153,135,100,70,119,135,153,170,121,103,118,119,151,119,119,119,119,168,122,119,151,157,119,117,119,119,119,186,153,151,87,116,119,217,55,118,103,97,119,116,151,153,118,87,119,119,118,119,119,152,120,71,151,122,71,68,101,98,119,119,119,168,120,135,118,151,151,155,103,98,119,119,199,252,143,104,98,37,119,151,103,86,105,98,119,119,169,118,135,119,121,119,118,151,119,119,134,106,119,71,119,103,114,157,119,119,151,119,38,118,119,137,121,66,18,116,103,98,119,119,119,119,168,55,118,70,117,121,168,153,120,87,184,88,135,137,71,117,169,134,119,135,119,150,100,103,119,118,119,135,89,119,233,153,157,118,87,154,122,118,121,119,151,151,158,168,120,119,119,119,117,151,169,250,127,119,119,118,169,120,217,122,151,155,86,119,117,120,39,97,103,101,117,119,119,119,121,118,119,119,119,119,119,118,119,103,151,87,119,117,103,119,103,135,186,120,169,87,70,153,119,69,118,119,119,119,151,120,100,166,73,119,151,155,137,186,120,122,170,120,121,119,119,119,118,103,171,119,119,168,136,121,181,148,103,121,119,121,119,118,102,116,169,121,151,153,151,135,138,152,101,119,71,244,127,119,103,119,151,187,153,221,71,151,117,119,183,153,119,116,168,153,119,119,119,119,119,119,119,118,116,119,119,103,81,100,102,117,119,117,101,118,137,119,84,117,105,119,122,121,87,151,119,217,88,187,155,87,119,133,138,151,121,117,119,87,118,103,119,105,103,138,119,120,153,119,151,107,70,66,151,157,119,121,22,100,68,117,118,135,138,151,139,103,119,119,135,185,121,169,120,118,151,249,111,118,151,106,119,137,103,119,151,154,119,117,119,182,122,152,87,103,135,56,155,170,151,119,118,185,121,135,170,120,151,138,119,119,119,151,122,119,119,119,119,185,121,135,154,183,158,71,118,103,103,120,119,119,151,156,156,118,119,119,117,70,119,119,152,150,171,158,119,119,87,119,152,169,105,98,119,117,135,89,167,152,154,153,122,122,137,119,137,22,102,116,120,233,139,151,154,218,139,248,95,69,119,151,119,119,135,85,119,119,135,119,119,119,118,121,167,120,119,233,138,119,119,119,151,119,119,152,118,119,168,153,119,119,119,116,153,74,118,151,123,117,119,119,101,118,87,135,151,151,125,66,119,103,81,116,184,155,221,122,70,119,119,68,183,169,104,169,118,138,119,119,154,151,155,119,135,121,119,135,89,21,113,135,154,117,119,71,119,149,103,184,153,137,185,121,151,38,102,246,127,119,103,119,119,120,185,121,135,138,87,135,89,38,117,137,119,151,155,119,151,103,99,84,102,151,155,119,87,103,119,116,118,103,119,121,118,119,151,120,185,87,119,85,154,152,136,135,119,121,215,186,105,119,119,121,71,117,103,117,119,103,135,154,217,92,119,118,119,118,121,119,168,152,122,117,103,114,121,119,119,117,138,119,119,153,155,151,169,138,168,153,53,118,121,38,100,119,71,244,127,151,121,152,158,87,149,105,97,151,123,116,121,100,116,151,188,153,215,121,185,121,119,184,190,117,185,88,99,117,119,119,117,119,103,119,71,150,169,104,116,169,118,119,68,119,118,119,119,116,119,151,119,119,117,71,116,151,119,135,217,121,119,116,119,118,135,122,119,119,103,119,38,84,167,120,135,119,119,169,119,186,120,118,151,119,154,185,121,103,152,100,135,154,155,119,119,119,100,246,143,168,103,85,119,116,138,119,119,119,87,119,217,121,119,121,151,174,155,119,70,118,119,119,119,20,117,135,103,69,119,70,167,150,157,71,119,103,82,119,119,119,54,69,102,119,217,93,102,119,119,119,103,87,151,169,136,119,119,116,103,19,118,119,103,119,121,119,119,118,119,119,119,119,100,154,137,103,87,119,117,119,103,101,117,119,119,119,102,116,119,119,119,103,117,119,119,168,121,247,159,137,185,120,119,87,151,154,120,119,119,119,121,137,135,154,121,38,167,87,119,87,120,135,134,155,119,118,137,100,119,135,137,119,135,186,153,155,119,119,119,103,119,119,119,151,153,119,86,119,154,138,217,186,87,119,71,150,153,151,187,153,86,135,153,87,70,119,119,119,119,140,85,118,119,151,87,119,119,119,119,155,168,120,135,170,119,151,151,222,137,38,167,120,119,134,54,183,121,247,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,17,17,1,0,0,0,0,1,0,0,16,0,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,16,1,16,1,1,0,0,16,0,0,0,0,1,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,16,0,0,1,0,0,0,0,0,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,17,17,17,0,0,0,17,0,0,0,0,17,0,16,0,0,0,0,0,0,1,16,0,0,0,0,0,0,1,16,0,0,0,0,0,0,1,0,1,0,0,0,0,16,0,0,1,0,0,0,0,16,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,0,1,0,0,16,0,0,0,0,16,17,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,17,17,17,0,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,0,0,0,1,0,0,16,0,16,1,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,17,1,16,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,1,16,17,0,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,16,0,1,16,0,1,0,0,1,0,1,16,0,16,0,16,0,0,1,16,0,0,1,16,0,16,0,0,1,0,1,16,17,1,0,0,16,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,255,255,255,255,255,255,0,0,0,0,0,0,0,240,255,255,255,255,255,255,0,0,0,0,0,0,0,240,255,255,255,255,255,255,0,0,0,0,0,0,0,240,85,85,85,85,117,247,0,0,0,0,0,0,0,240,85,85,85,85,117,247,0,0,0,0,0,0,0,96,85,102,150,89,149,153,0,0,0,0,0,0,0,96,85,102,150,89,149,153,0,0,0,0,0,0,0,80,17,221,87,213,29,97,0,0,0,0,0,0,0,176,119,85,204,92,149,185,0,0,0,0,0,0,0,176,119,85,204,92,149,185,0,0,0,0,0,0,0,176,187,204,204,204,188,187,0,0,0,0,0,0,0,176,187,204,204,204,188,187,0,0,0,0,0,0,0,192,204,187,203,188,187,203,0,0,0,0,68,35,50,131,68,187,185,187,75,68,51,34,67,4,68,35,50,131,68,187,185,187,75,68,51,34,67,4,34,35,66,52,51,68,187,75,36,34,68,34,35,2,34,35,66,52,51,68,187,75,36,34,68,34,35,2,51,34,34,34,34,51,132,56,35,34,34,34,50,3,51,34,34,34,34,51,132,56,35,34,34,34,50,3,68,34,66,36,34,34,132,40,34,34,68,34,66,4,102,102,102,134,136,34,130,40,130,136,102,102,102,6,102,102,102,134,136,34,130,40,130,136,102,102,102,6,102,105,102,134,136,34,131,40,50,131,102,102,105,6,102,105,102,134,136,34,131,40,50,131,102,102,105,6,102,105,150,137,34,34,56,35,50,131,153,102,105,6,102,102,150,137,34,34,56,35,50,131,153,102,102,6,102,102,150,137,34,34,56,35,50,131,153,102,102,6,102,102,150,41,34,34,56,35,34,130,153,102,102,6,102,102,150,41,34,34,56,35,34,130,153,102,102,6,102,102,102,134,136,136,35,50,35,130,102,102,102,6,102,150,105,214,221,221,221,221,45,130,102,153,102,6,102,150,105,214,221,221,221,221,45,130,102,153,102,6,153,150,153,217,221,221,221,221,221,141,153,153,150,9,153,150,153,217,221,221,221,221,221,141,153,153,150,9,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,208,221,221,221,221,221,221,0,0,0,0,0,0,0,160,170,170,170,170,170,170,0,0,0,0,0,0,0,160,170,170,170,170,170,170,0,0,0,0,0,0,0,160,170,170,170,170,170,170,0,0,0,0,33,98,22,34,102,103,22,22,38,103,38,115,22,98,38,119,97,118,97,102,97,102,119,97,66,97,114,22,34,38,22,98,98,18,39,102,114,70,38,103,118,34,38,119,103,118,102,22,113,102,99,22,97,17,38,38,97,17,34,102,114,34,102,34,98,38,38,118,38,98,102,103,34,103,118,103,102,102,17,38,34,22,97,33,23,97,34,99,98,38,18,38,36,98,39,118,118,98,34,97,102,102,102,17,38,102,101,34,118,113,22,34,98,23,118,118,102,118,102,34,98,33,98,35,34,102,34,118};+const uint32_t spr_off[379] = {0,2002,2290,2418,2463,2508,2553,2598,2643,2688,2733,3188,3643,3688,3816,3944,4072,4200,4328,4456,4584,4712,4840,4968,5096,5224,5352,5480,5608,5736,5864,5992,6120,6248,6376,6504,6632,6760,6888,7016,7144,7272,7400,7528,7656,7784,7912,8040,8168,8296,8424,8552,8680,8808,8936,9064,9192,9320,9448,9576,9704,9832,9960,10088,10216,10344,10472,10600,10728,10856,10984,11112,11240,11368,11496,11624,11752,11880,12008,12136,12264,12392,12520,12648,12776,12904,13032,13160,13288,13416,13544,13672,13800,13928,14056,14184,14312,14440,14568,14696,14824,14952,15080,15208,15336,15464,15592,15720,15848,15976,16104,16232,16360,16488,16616,16744,16872,17000,17128,17256,17384,17512,17640,17768,17896,18024,18152,18280,18408,18536,18664,18792,18920,19048,19176,19304,19432,19560,19688,19816,19944,20072,20200,20328,20456,20584,20712,20840,20968,21096,21224,21352,21480,21608,21736,21864,21992,22120,22248,22376,22504,22632,22760,22888,23016,23144,23272,23400,23528,23656,23784,23912,24040,24168,24296,24424,24552,24680,24808,24936,25064,25192,25320,25448,25576,25704,25832,25960,26088,26216,26344,26472,26600,26728,26856,26984,27112,27240,27368,27496,27624,27752,27880,28008,28136,28264,28392,28520,28648,28776,28904,29032,29160,29288,29416,29544,29672,29800,29928,30056,30184,30312,30440,30568,30696,30824,30952,31080,31208,31336,31464,31592,31720,31848,31976,32104,32232,32360,32488,32616,32744,32872,33000,33128,33256,33384,33512,33640,33768,33896,34024,34152,34280,34408,34536,34664,34792,34920,35048,35176,35304,35432,35560,35688,35816,35944,36072,36200,36328,36456,36584,36712,36840,36968,37096,37224,37352,37480,37608,37736,37864,37992,38120,38248,38376,38504,38632,38760,38888,39016,39144,39272,39400,39528,39656,39784,39912,40040,40168,40296,40424,40552,40680,40808,40936,41064,41192,41320,41448,41576,41704,41832,41960,42088,42216,42344,42472,42600,42728,42856,42984,43112,43240,43368,43496,43624,43752,43880,44008,44136,44264,44392,44520,44648,44776,44904,45032,45160,45288,45416,45544,45672,45800,45928,46056,46184,46312,46440,46568,46696,46824,46952,47080,47208,47336,47464,47592,47720,47848,47976,48104,48232,48360,48488,48616,48714,48918,48963,49008,49053,49098,51098,53098,55098,55226,55354,55482,55610,56366};+const uint8_t spr_w[379] = {182,24,16,9,9,9,9,9,9,9,182,182,9,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,14,24,9,9,9,9,200,200,200,16,16,16,16,27,16};+const uint8_t spr_h[379] = {22,24,16,9,9,9,9,9,9,9,5,5,9,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,14,17,9,9,9,9,20,20,20,16,16,16,16,54,16};+const uint8_t spr_alpha[379] = {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0};+const uint16_t spr_pal[379][16] = {{0x0000,0x94B2,0x8410,0x7BEF,0x738E,0x630C,0x5AEB,0x41E5,0x2921,0x2920,0x2120,0x2120,0x2100,0x10A0,0x0020,0x0000},{0x0000,0xF7DE,0xDF7A,0xD75A,0xD739,0xB615,0xA5B4,0xA593,0x9D73,0x740E,0x638B,0x5B6B,0x5B4B,0x532A,0x0020,0x0000},{0x0000,0xFFFF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},@@ -869,8 +899,193 @@ const uint16_t spr_pal[226][16] = {{0x0000,0xEF7D,0xBDF7,0x9D13,0x8431,0x736B,0x6AA5,0x7A45,0x5203,0x9104,0x7081,0x5963,0x6000,0x4982,0x3922,0x4040},{0x0000,0x32BA,0x325E,0x2A58,0x2A1C,0x21F2,0x21D8,0x21B8,0x21D2,0x2198,0x2198,0x2172,0x1952,0x1952,0x1932,0x1932},{0x0000,0xC3E5,0xAAE3,0x82C4,0xC281,0x8263,0xB221,0xA201,0x9201,0x7A02,0xA1C1,0x9980,0x8181,0x7960,0x7940,0x7120},+ {0x0000,0xB48B,0x9C29,0x93C9,0x9389,0x7B47,0x72E7,0x72C7,0x6AA6,0x6AA6,0x5A65,0x6266,0x5A45,0x5205,0x41C4,0x3983},+ {0x0000,0x6A86,0x6245,0x6225,0x5205,0x51E4,0x49C4,0x49C4,0x49A4,0x4184,0x4184,0x3983,0x3963,0x3963,0x2922,0x28E2},+ {0x0000,0xCDAF,0xBD4E,0xAD0E,0xACCD,0xA48C,0x9C4C,0x942B,0x942B,0x83CA,0x83AA,0x8389,0x7B69,0x7B69,0x6AE8,0x5A87},+ {0x0000,0xABCA,0x936A,0x8B29,0x8B28,0x7AC7,0x7286,0x6A87,0x6A66,0x6A25,0x6205,0x5A05,0x5A05,0x51C4,0x4183,0x3943},+ {0x0000,0xAAE6,0xA2A6,0x9285,0x9265,0x8A45,0x8A25,0x8224,0x79E4,0x69E4,0x71E4,0x69C4,0x69C4,0x61A3,0x5983,0x5143},+ {0x0000,0x4162,0x3942,0x3922,0x3922,0x3101,0x28E1,0x28E1,0x28C1,0x28C1,0x20C1,0x20C1,0x20A1,0x20A1,0x1880,0x1860},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04A1,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04C1,0x04A1,0x0441,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xDCC1,0x15A0,0x0D00,0x0E20,0x04C0,0x0440,0x0440,0x0420,0x5A02,0x1A81,0x03E0,0x03A0,0x0320,0x02E0,0x0260},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04A1,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x0702,0x0622,0x05E2,0x05C2,0x0562,0x04C1,0x04A1,0x0441,0x0340,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xC66B,0xA587,0x0703,0x0603,0x05C5,0x05C2,0x0563,0x0543,0x9424,0x3D29,0x0462,0x0442,0x03A2,0x0000,0x0000},+ {0x0000,0x8B24,0x8324,0x72C4,0x6A63,0x5A03,0x49A2,0x41A2,0x3142,0x2901,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x8B24,0x8324,0x72C4,0x6A83,0x6A63,0x49A2,0x3142,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x8B24,0x8324,0x72C4,0x6A83,0x6A63,0x49A2,0x3142,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x8B24,0x8324,0x72C4,0x6A83,0x6A63,0x5A03,0x49A2,0x3142,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x8B24,0x8324,0x72C4,0x6A83,0x6A63,0x49A2,0x3142,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9CD3,0x8C51,0x6B6D,0x8B24,0x5ACB,0x6A63,0x4A49,0x39E7,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9CD3,0x8C51,0x7BEF,0x8B24,0x6A63,0x4A49,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9CD3,0x8C51,0x7BEF,0x8B24,0x6A63,0x4A49,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9CD3,0x8C51,0x7BEF,0x8B24,0x6B6D,0x6A63,0x4A49,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9CD3,0x8C51,0x7BEF,0x8B24,0x6A63,0x4A49,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0x94B2,0x8B24,0x6B4D,0x6A63,0x4228,0x49A2,0x2945,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xC618,0x8B24,0x6A63,0x4228,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xC618,0x8B24,0x6A63,0x4228,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xC618,0x94B2,0x8B24,0x6A63,0x4228,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xC618,0x8B24,0x6A63,0x4228,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3759,0x2E35,0x1C4E,0x8B24,0x6A63,0x130A,0x09E6,0x49A2,0x28E1,0x0924,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3759,0x2E35,0x2593,0x8B24,0x6A63,0x09E6,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3759,0x2E35,0x2593,0x8B24,0x6A63,0x09E6,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3759,0x2E35,0x2593,0x8B24,0x1C4E,0x6A63,0x09E6,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3759,0x2E35,0x2593,0x8B24,0x6A63,0x09E6,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF6A,0xCE8A,0x9CE8,0x7BE7,0x8B24,0x6A63,0x39E5,0x39E4,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF6A,0xCE8A,0xBDE9,0x8B24,0x6A63,0x39E4,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF6A,0xCE8A,0xBDE9,0x8B24,0x6A63,0x39E4,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF6A,0xCE8A,0xBDE9,0x9CE8,0x8B24,0x6A63,0x39E4,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF6A,0xCE8A,0xBDE9,0x8B24,0x6A63,0x39E4,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD6BA,0xAD55,0x738E,0x630C,0x528A,0x4A69,0x6206,0x4208,0x51E6,0x51C6,0x4185,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD69A,0xBDD7,0x9CF3,0x7BEF,0x4228,0x3186,0x2945,0x10A2,0x0861,0x0020,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x94B2,0x6B4D,0x8B24,0x6A63,0x4228,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xE71C,0xDEDB,0xC638,0x94B2,0x8B24,0x4228,0x39E7,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x92E7,0x7245,0x7245,0x3102,0x3102,0x20A1,0x0020,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x92E7,0x7245,0x61E5,0x3102,0x20A1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x92E7,0x92E7,0x7245,0x7245,0x3102,0x3102,0x20A1,0x20A1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x92E7,0x92E7,0x7245,0x7245,0x3102,0x3102,0x20A1,0x20A1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x6B6D,0x52AA,0x2965,0x2104,0x18C3,0x1861,0x1082,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x6B6D,0x52AA,0x2965,0x2104,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x6B6D,0x52AA,0x2965,0x2104,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x6B6D,0x52AA,0x2965,0x2104,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x2965,0x18C3,0x1861,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x94B2,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF6A,0xDD02,0x2965,0x18C3,0x1861,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF6A,0xDD02,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF6A,0xDD02,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF6A,0xDD02,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x3759,0x1C4E,0x2965,0x18C3,0x1861,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x3759,0x1C4E,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x3759,0x1C4E,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x3759,0x1C4E,0x2965,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x8B24,0x6A63,0x49A2,0x28E1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x3186,0x2965,0x2945,0x2124,0x2104,0x18E3,0x18C3,0x18C3,0x10A2,0x10A2,0x1082,0x0861,0x0841,0x0841,0x0000},+ {0x0000,0x62A8,0x4A06,0x41E6,0x3985,0x3164,0x3164,0x2923,0x20E3,0x18E2,0x18C2,0x18A2,0x1081,0x1061,0x0861,0x0820},+ {0x0000,0xFFFF,0xD7DE,0xA7BC,0x8FBC,0x4F7A,0x36D7,0x2E76,0x24B0,0x1BCD,0x09A6,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xAD55,0x94B2,0x8410,0x7BEF,0x738E,0x6B4D,0x4228,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xFFF1,0xFFE1,0xDEE0,0xDD02,0xAD60,0xDBA2,0xB302,0x8420,0x5280,0x39E0,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xFFF1,0xFFE1,0xFFE0,0xDEE0,0x7BC0,0xDBA2,0x4A42,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xBFFA,0xB7D9,0x8FD6,0x6793,0x4790,0x16EC,0x05C8,0x0546,0x0506,0x04A5,0x0444,0x03C2,0x0280,0x01C0,0x0160},+ {0x0000,0xF800,0x7000,0x5000,0x4800,0x3000,0x2800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD69A,0x7BEF,0x52AA,0x3186,0x2945,0x10A2,0x0020,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xD69A,0x8C51,0x6B4D,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xF7BE,0xDEDB,0x4228,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFD,0xFFFD,0xFFFD,0xFFFD,0xFFFD,0xFFFC,0xFFDC,0xFFBC,0xF7BA,0xF7BA,0xF79A,0xEF59,0xE71A,0x7BCE,0x73CE},+ {0x0000,0x8C51,0x738E,0x5ACB,0x52AA,0x4A49,0x31A6,0x2965,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xC2E6,0x9A45,0x5122,0x38E2,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD6C8,0xAD87,0xAD65,0x8464,0x7C05,0x7BC2,0x63A4,0x6322,0x5B22,0x7304,0x52E2,0x3A82,0x21A1,0x21A1,0x1920},+ {0x0000,0xAD87,0x6D87,0x0702,0x6B84,0x4384,0x2A01,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xC7F0,0xAECE,0x960C,0x854B,0x6C28,0x5347,0x29C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF5D,0xD6BB,0xBDD9,0x52AD,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF5D,0xD6BA,0x528A,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD6BA,0xB5B6,0x9CD3,0x5ACB,0x6242,0x51E2,0x3941,0x20C1,0x1080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xA557,0x8C95,0x634F,0x5AEE,0x31C8,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xB2C8,0x8A26,0x79E5,0x69A4,0x6164,0x5943,0x38E2,0x28A2,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x7261,0x51C1,0x3920,0x18A0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xFFFF,0xEFFF,0xE79E,0xDEFB,0xCEFB,0xC69A,0xAD75,0xA575,0x9D34,0x73EF,0x6B6D,0x0000,0x0000,0x0000},+ {0x0000,0xDE73,0xB52F,0xA4AE,0x734A,0x5267,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x864E,0x864E,0x7E4E,0x75ED,0x756C,0x6D6C,0x650B,0x5C29,0x5429,0x5409,0x3AE6,0x3285,0x0000,0x0000},+ {0x0000,0xFFE0,0xD680,0x9CC0,0x8420,0x6300,0x5280,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xAD55,0x9CD3,0x94B2,0x7BCF,0x738E,0x6B6D,0x52AA,0x528A,0x31A6,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xDEDB,0xAD55,0x94B2,0x63F7,0x738E,0x5355,0x3B5C,0x3B3B,0x4B34,0x32FB,0x32FA,0x3AD5,0x528A,0x31A6},+ {0x0000,0xF7BE,0xDEDB,0xDE90,0xE66B,0xAD54,0xAD0D,0xBCAF,0x94B2,0xE468,0xBC48,0xA3CC,0x738E,0xCA24,0x528A,0x31A6},+ {0x0000,0xFFFF,0xDEDB,0xC618,0xAD55,0x94B2,0x738E,0x528A,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xB4AA,0x9C29,0x6AA6,0x20C1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xEF5D,0xBDF7,0x9C29,0x738E,0x6AA6,0x41A4,0x9924,0x88A2,0x8020,0x7000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xC618,0x7BEF,0x632C,0x630C,0x31A6,0x2965,0xF8A2,0x18A0,0x10A2,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE71C,0xDEF2,0xFFE0,0xCE60,0xBDE5,0x7383,0xB365,0x4B5B,0x4221,0x3A95,0x3181,0x18A2,0x0000,0x0000,0x0000},+ {0x0000,0xBC70,0x934B,0x7B2E,0x732E,0x630E,0x62CC,0x52AC,0x7A47,0x4A09,0x39C8,0x18E4,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xDA69,0xD208,0xB986,0xA104,0x7820,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x6425,0x53C4,0x4B43,0x3281,0x21A0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9328,0x8AC6,0x7224,0x61C3,0x4942,0x4101,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x74BD,0x5C1C,0x437A,0x32F8,0x1A95,0x1A73,0x2255,0x1175,0x094F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xB33B,0xA299,0x89D7,0x8196,0x50CE,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x4CF8,0x3C76,0x2BF3,0x2371,0x1B30,0x1AEF,0x0A0B,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xDEDB,0xCE59,0xBDD8,0xAD77,0x9CF6,0x39E9,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x94B2,0x8430,0x73AE,0x6B4D,0x5AEB,0x4208,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xF5BA,0xED39,0xDC56,0xCBD4,0x81AB,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x86A3,0x7622,0x6561,0x5CC1,0x3B60,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE72D,0xE725,0xDEA4,0xD604,0xCD84,0xBCC3,0xB483,0x8B42,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xBEBF,0x8DDE,0x857C,0x7D1B,0x6479,0x2AB1,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xDBDA,0xCB58,0xBAF7,0xAA75,0x690C,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xF587,0xE4E6,0xDC45,0xCBC4,0xC3C3,0x9221,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xEF5D,0xD6BB,0xBDD9,0x7390,0x52AD,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFCF4,0xFACC,0x6961,0x40E0,0xF8E5,0xF0C5,0xD8A4,0x30A0,0xD0A4,0xC0A4,0xB083,0xA883,0x7862,0x5041,0x30A0},+ {0x0000,0xFFFF,0xEF6A,0xDD02,0x5121,0x30A0,0x30A0,0x18C3,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x9B84,0x9364,0x7AC3,0x72A3,0x6242,0x51E2,0x49C2,0x49C2,0x3961,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFE38,0xEDB6,0xFD75,0xFC71,0xFBAE,0xEB8E,0xBB4D,0xA28A,0x9A28,0x81E7,0x5124,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE675,0xDE33,0xD5F2,0xCDB0,0xC58F,0xC56F,0xBD2E,0xB4EE,0xACAC,0xA42A,0x9BC8,0x8B87,0x8B46,0x7B06,0x5A64},+ {0x0000,0xE38D,0xE30B,0xE30B,0xE289,0xDA68,0xE248,0xDA07,0xD9C6,0xC9E6,0xA985,0x8903,0x7881,0x5861,0x4040,0x4040},+ {0x0000,0x9B29,0x92C8,0x92A7,0x8AA7,0x8A67,0x8247,0x8247,0x71E5,0x69E5,0x69C5,0x69C5,0x61A4,0x3902,0x28A1,0x20A1},+ {0x0000,0xFF9C,0xFF5C,0xFF5B,0xFF3B,0xFF1A,0xFED9,0xFE98,0xEDF5,0xDD12,0xDD11,0xC44F,0xC42D,0xBC2E,0xB3CC,0x8288},+ {0x0000,0xEE55,0xE5F4,0xE591,0xDD0F,0xDCEF,0xD46C,0xCC4B,0xCBC8,0xAAE6,0x8A24,0x8224,0x5962,0x5962,0x5962,0x5962},+ {0x0000,0xEC50,0xE38D,0xE30B,0xE248,0xD9C6,0xA985,0xD164,0x8903,0x7881,0x5861,0x4040,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xA38B,0x9B4A,0x9B08,0x92C8,0x8A87,0x8247,0x7A46,0x7A26,0x71E5,0x71E5,0x69C5,0x69C5,0x5163,0x3902,0x28A1},+ {0x0000,0xBC0A,0xBB48,0xBAA5,0x8284,0xB224,0x9A24,0x8223,0x6202,0x9984,0x8183,0x7162,0x6182,0x5902,0x48E2,0x2081},+ {0x0000,0xE659,0xE576,0xC2ED,0x98E5,0x7864,0x6025,0x5004,0x2802,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xCCCF,0xCC6D,0x936A,0x7261,0x51C1,0x3920,0x18A0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE488,0xDC07,0xBB86,0x8A45,0x5163,0x4942,0x4142,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xD5B3,0xC48F,0x8444,0xCB8B,0x5B23,0x4261,0xC1E5,0xC1A4,0xB984,0xB922,0xB8A1,0x78C1,0x58E2,0x58C1,0x48E2},+ {0x0000,0xFE0E,0xFD27,0xFC83,0xFC61,0x35C6,0x14C2,0x2C45,0x0BC1,0xD341,0xB2A0,0xA9C0,0x0360,0x0320,0x02C0,0x0260},+ {0x0000,0xFF58,0xFF37,0xFF37,0xFED3,0xF670,0xEE2E,0xEE0D,0xEDCC,0xE5AB,0xD4E7,0xB428,0xBBC2,0x8B46,0x9AA0,0xA280},+ {0x0000,0xFEF3,0xF60F,0xFDCE,0xF58C,0xED2A,0xC54F,0xE4C9,0xD445,0xD405,0xB321,0x8BEC,0x9A60,0x9A20,0x9220,0x9200},+ {0x0000,0xF796,0xF777,0xEF54,0xEECF,0xC6A8,0xE64C,0xD647,0xE60B,0xD588,0xC4E6,0xA4E2,0x8CA2,0xB444,0x73E1,0x9B84},+ {0x0000,0xFE6F,0xEDAC,0xD4E9,0xECEC,0xEC6C,0xCC68,0xE40A,0xDBC8,0xD388,0xD367,0xDB46,0xD305,0xCAC4,0xC2A3,0x8B03},+ {0x0000,0xADFB,0x6CF2,0x8494,0x5C2F,0x6BD1,0x432B,0x52ED,0x3AA9,0x1965,0x2105,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xADFB,0xC596,0xACD3,0x6CF2,0x8494,0x6BD1,0x83CF,0x734D,0x432B,0x52ED,0x4A08,0x1965,0x2105,0x0000,0x0000},+ {0x0000,0xFFFF,0xFFE3,0xC638,0xFDA0,0x8C51,0xDA68,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x6B4D,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE73E,0xBDD8,0x6B4E,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xE73E,0xBDD8,0x6B4E,0x39E7,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x04BF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x2945,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xAD55,0x73AE,0x738E,0x738E,0x738E,0x6B6D,0x6B6D,0x6B6D,0x6B6D,0x6B4D,0x5AEB,0x52AA,0x528A,0x4A69,0x0000},+ {0x0000,0xB5DE,0x8478,0x8458,0x7C57,0x7C57,0x7C37,0x7C37,0x7C37,0x7C17,0x7417,0x6395,0x5B33,0x5B13,0x52F2,0x0000},+ {0x0000,0x3186,0x3186,0x3186,0x2965,0x2965,0x2965,0x2965,0x2945,0x2945,0x2945,0x2945,0x2124,0x2124,0x2124,0x0000},+ {0x0000,0x1904,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x1904,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x1904,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0x1904,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0x0575,0x0555,0x04F3,0xBC4E,0xABEC,0xB3CC,0x04D3,0x9B8B,0x6B4D,0x8AC7,0x6A07,0x41D4,0x396B,0x28E1},+ {0x0000,0x2902,0x20C2,0x2104,0x18C3,0x18A2,0x18A1,0x1061,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+};+const uint16_t blk_icon[B_COUNT] = {65535,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};+const uint16_t blk_item[B_COUNT] = {65535,1,2,3,4,5,6,7,8,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,65535,65535,29,30,31,32,33,34,35,35,35,35,39,39,39,39,43,43,43,43,47,47,47,47,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,109,109,109,109,114,115,116,117,118,119,321,321,321,321,321,321,321,321,128,128,130,130,337,337,134,135,136,137,138,139,140,141,142,322,144,145,146,1,148,149,150,151,152,152,152,155,155,155,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,183,183,183,187,187,187,187,191,192,193,194,195,196,196,198,198,200,200,202,202,204,204,206,206,208,209,338,338,65535,65535,214,215,216,217,218,219,373,373,373,373,374,374,374,374};+const uint16_t blk_fuel[B_COUNT] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,300,300,300,300,100,100,100,100,100,100,0,0,0,0,0,0,0,0,0,300,300,300,300,300,300,300,300,300,300,300,300,300,300,300,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,0,0,0,0,300,0,0,0,0,0,0,0,0,300,300,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,0,0,300,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,300,300,300,300,300,300,0,0,0,16000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,150,150,150,150,150,0,0,0,0,0,0,0,0};+const char *const blk_label[B_COUNT] = {0,"Stone","Granite","Polished Granite","Diorite","Polished Diorite","Andesite","Polished Andesite","Grass Block",0,"Dirt","Coarse Dirt","Podzol","Cobblestone","Oak Wood Planks","Spruce Wood Planks","Birch Wood Planks","Jungle Wood Planks","Acacia Wood Planks","Dark Oak Wood Planks","Oak Sapling","Spruce Sapling","Birch Sapling","Jungle Sapling","Acacia Sapling","Dark Oak Sapling","Bedrock",0,0,"Sand","Red Sand","Gravel","Gold Ore","Iron Ore","Coal Ore","Oak Wood",0,0,0,"Spruce Wood",0,0,0,"Birch Wood",0,0,0,"Jungle Wood",0,0,0,"Oak Leaves","Spruce Leaves","Birch Leaves","Jungle Leaves","Sponge","Glass","Lapis Lazuli Ore","Lapis Lazuli Block","Sandstone","Chiseled Sandstone","Smooth Sandstone","Cobweb","Shrub","Grass","Fern","Dead Bush","Wool","Orange Wool","Magenta Wool","Light Blue Wool","Yellow Wool","Lime Wool","Pink Wool","Gray Wool","Light Gray Wool","Cyan Wool","Purple Wool","Blue Wool","Brown Wool","Green Wool","Red Wool","Black Wool","Dandelion","Poppy","Blue Orchid","Allium","Azure Bluet","Red Tulip","Orange Tulip","White Tulip","Pink Tulip","Oxeye Daisy","Mushroom","Mushroom","Block of Gold","Block of Iron","Stone Slab","Stone Slab","Sandstone Slab","Wooden Slab","Cobblestone Slab","Bricks Slab","Stone Bricks Slab","Bricks","TNT","Bookshelf","Moss Stone","Obsidian","Torch",0,0,0,0,"Monster Spawner","Oak Wood Stairs","Chest","Diamond Ore","Block of Diamond","Crafting Table",0,0,0,0,0,0,0,0,"Farmland",0,"Furnace",0,0,0,"Ladder","Rail","Cobblestone Stairs","Redstone Ore","Snow","Ice","Snow","Cactus","Clay",0,"Oak Fence","Pumpkin","Jack o'Lantern",0,"Stone Bricks","Mossy Stone Bricks","Cracked Stone Bricks","Chiseled Stone Bricks","Mushroom",0,0,"Mushroom",0,0,"Glass Pane","Melon","Vines","Mycelium","Lily Pad","Emerald Ore","Block of Emerald","Cobblestone Wall","Hardened Clay","White Stained Clay","Orange Stained Clay","Magenta Stained Clay","Light Blue Stained Clay","Yellow Stained Clay","Lime Stained Clay","Pink Stained Clay","Gray Stained Clay","Light Gray Stained Clay","Cyan Stained Clay","Purple Stained Clay","Blue Stained Clay","Brown Stained Clay","Green Stained Clay","Red Stained Clay","Black Stained Clay","Acacia Wood",0,0,0,"Dark Oak Wood",0,0,0,"Acacia Leaves","Dark Oak Leaves","Hay Bale","Block of Coal","Packed Ice","Sunflower",0,"Lilac",0,"Double Tallgrass",0,"Large Fern",0,"Rose Bush",0,"Peony",0,"Red Sandstone","Glowstone",0,0,0,0,"Oak Wood Slab","Spruce Wood Slab","Birch Wood Slab","Jungle Wood Slab","Acacia Wood Slab","Dark Oak Wood Slab",0,0,0,0,0,0,0,0};+const char *const it_label[N_ITEMS] = {"Wooden Sword","Wooden Shovel","Wooden Pickaxe","Wooden Axe","Wooden Hoe","Stone Sword","Stone Shovel","Stone Pickaxe","Stone Axe","Stone Hoe","Iron Sword","Iron Shovel","Iron Pickaxe","Iron Axe","Iron Hoe","Diamond Sword","Diamond Shovel","Diamond Pickaxe","Diamond Axe","Diamond Hoe","Golden Sword","Golden Shovel","Golden Pickaxe","Golden Axe","Golden Hoe","Shears","Flint and Steel","Bow","Arrow","Leather Cap","Leather Tunic","Leather Pants","Leather Boots","Chain Helmet","Chain Chestplate","Chain Leggings","Chain Boots","Iron Helmet","Iron Chestplate","Iron Leggings","Iron Boots","Golden Helmet","Golden Chestplate","Golden Leggings","Golden Boots","Diamond Helmet","Diamond Chestplate","Diamond Leggings","Diamond Boots","Stick","Coal","Charcoal","Diamond","Iron Ingot","Gold Ingot","Gold Nugget","Emerald","Redstone","Flint","Feather","String","Bone","Gunpowder","Leather","Wheat","Seeds","Sugar Canes","Sugar","Paper","Book","Clay","Brick","Bowl","Snowball","Egg","Slimeball","Glowstone Dust","Bucket","Water Bucket","Lava Bucket","Milk","Oak Door","Bed","Compass","Clock","Ink Sac","Rose Red","Cactus Green","Cocoa Beans","Lapis Lazuli","Purple Dye","Cyan Dye","Light Gray Dye","Gray Dye","Pink Dye","Lime Dye","Dandelion Yellow","Light Blue Dye","Magenta Dye","Orange Dye","Bone Meal","Apple","Golden Apple","Bread","Raw Porkchop","Cooked Porkchop","Raw Beef","Steak","Raw Chicken","Cooked Chicken","Raw Mutton","Cooked Mutton","Rotten Flesh","Spider Eye","Mushroom Stew","Cookie","Melon","Carrot","Potato","Baked Potato","Poisonous Potato","Pumpkin Pie","Raw Fish","Cooked Fish"};+const uint16_t it_icon[N_ITEMS] = {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};+const uint8_t it_kind[N_ITEMS] = {6,4,2,3,5,6,4,2,3,5,6,4,2,3,5,6,4,2,3,5,6,4,2,3,5,7,19,20,0,8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,0,0,0,0,0,0,22,23,0,0,14,15,16,17,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,12,12,12,12,12,12,12,12,12,12,12,12,12,13,12,12,12,12,12,12,12,12,12};+const uint8_t it_stack[N_ITEMS] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,64,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,16,16,64,64,16,1,1,1,64,1,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,1,64,64,64,64,64,64,64,64,64};+const uint16_t it_dur[N_ITEMS] = {59,59,59,59,59,131,131,131,131,131,250,250,250,250,250,1561,1561,1561,1561,1561,32,32,32,32,32,238,64,384,0,55,80,75,65,165,240,225,195,165,240,225,195,77,112,105,91,363,528,495,429,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};+const uint8_t it_tier[N_ITEMS] = {0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};+const uint8_t it_a[N_ITEMS] = {5,2,3,4,1,6,3,4,5,1,7,4,5,6,1,8,5,6,7,1,5,2,3,4,1,0,0,0,0,1,3,2,1,2,5,4,1,2,6,5,2,2,5,3,1,3,8,6,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,5,3,8,3,8,2,6,2,6,4,2,6,2,2,3,1,5,2,8,2,5};+const uint8_t it_b[N_ITEMS] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,12,6,3,8,3,8,3,6,3,8,1,8,6,1,3,6,3,6,3,3,1,6};+const uint8_t it_place[N_ITEMS] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,120,143,255,255,255,255,255,255,255,255,255,255,255,255,255,255,132,210,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,220,224,255,255,255,255,255};+const uint16_t it_fuel[N_ITEMS] = {200,200,200,200,200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,1600,1600,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};+const Recipe recipes[186] = {{258,1,3,3,{61440,61440,61440,0,305,0,0,305,0}},{257,1,1,3,{61440,305,305,0,0,0,0,0,0}},{259,1,2,3,{61440,61440,61440,305,0,305,0,0,0}},{260,1,2,3,{61440,61440,0,305,0,305,0,0,0}},{256,1,1,3,{61440,61440,305,0,0,0,0,0,0}},{263,1,3,3,{13,13,13,0,305,0,0,305,0}},{262,1,1,3,{13,305,305,0,0,0,0,0,0}},{264,1,2,3,{13,13,13,305,0,305,0,0,0}},{265,1,2,3,{13,13,0,305,0,305,0,0,0}},{261,1,1,3,{13,13,305,0,0,0,0,0,0}},{268,1,3,3,{309,309,309,0,305,0,0,305,0}},{267,1,1,3,{309,305,305,0,0,0,0,0,0}},{269,1,2,3,{309,309,309,305,0,305,0,0,0}},{270,1,2,3,{309,309,0,305,0,305,0,0,0}},{266,1,1,3,{309,309,305,0,0,0,0,0,0}},{273,1,3,3,{308,308,308,0,305,0,0,305,0}},{272,1,1,3,{308,305,305,0,0,0,0,0,0}},{274,1,2,3,{308,308,308,305,0,305,0,0,0}},{275,1,2,3,{308,308,0,305,0,305,0,0,0}},{271,1,1,3,{308,308,305,0,0,0,0,0,0}},{278,1,3,3,{310,310,310,0,305,0,0,305,0}},{277,1,1,3,{310,305,305,0,0,0,0,0,0}},{279,1,2,3,{310,310,310,305,0,305,0,0,0}},{280,1,2,3,{310,310,0,305,0,305,0,0,0}},{276,1,1,3,{310,310,305,0,0,0,0,0,0}},{281,1,2,2,{0,309,309,0,0,0,0,0,0}},{283,1,3,3,{0,305,316,305,0,316,0,305,316}},{284,4,1,3,{314,305,315,0,0,0,0,0,0}},{285,1,3,2,{319,319,319,319,0,319,0,0,0}},{286,1,3,3,{319,0,319,319,319,319,319,319,319}},{287,1,3,3,{319,319,319,319,0,319,319,0,319}},{288,1,3,2,{319,0,319,319,0,319,0,0,0}},{293,1,3,2,{309,309,309,309,0,309,0,0,0}},{294,1,3,3,{309,0,309,309,309,309,309,309,309}},{295,1,3,3,{309,309,309,309,0,309,309,0,309}},{296,1,3,2,{309,0,309,309,0,309,0,0,0}},{301,1,3,2,{308,308,308,308,0,308,0,0,0}},{302,1,3,3,{308,0,308,308,308,308,308,308,308}},{303,1,3,3,{308,308,308,308,0,308,308,0,308}},{304,1,3,2,{308,0,308,308,0,308,0,0,0}},{297,1,3,2,{310,310,310,310,0,310,0,0,0}},{298,1,3,3,{310,0,310,310,310,310,310,310,310}},{299,1,3,3,{310,310,310,310,0,310,310,0,310}},{300,1,3,2,{310,0,310,310,0,310,0,0,0}},{95,1,3,3,{310,310,310,310,310,310,310,310,310}},{310,9,1,1,{95,0,0,0,0,0,0,0,0}},{96,1,3,3,{309,309,309,309,309,309,309,309,309}},{309,9,1,1,{96,0,0,0,0,0,0,0,0}},{118,1,3,3,{308,308,308,308,308,308,308,308,308}},{308,9,1,1,{118,0,0,0,0,0,0,0,0}},{164,1,3,3,{312,312,312,312,312,312,312,312,312}},{312,9,1,1,{164,0,0,0,0,0,0,0,0}},{58,1,3,3,{345,345,345,345,345,345,345,345,345}},{345,9,1,1,{58,0,0,0,0,0,0,0,0}},{194,1,3,3,{306,306,306,306,306,306,306,306,306}},{306,9,1,1,{194,0,0,0,0,0,0,0,0}},{193,1,3,3,{320,320,320,320,320,320,320,320,320}},{320,9,1,1,{193,0,0,0,0,0,0,0,0}},{310,1,3,3,{311,311,311,311,311,311,311,311,311}},{311,9,1,1,{310,0,0,0,0,0,0,0,0}},{370,1,0,3,{93,94,328,0,0,0,0,0,0}},{371,8,3,1,{320,344,320,0,0,0,0,0,0}},{159,1,3,3,{372,372,372,372,372,372,372,372,372}},{377,1,0,3,{145,323,330,0,0,0,0,0,0}},{116,1,3,3,{61440,61440,61440,61440,0,61440,61440,61440,61440}},{130,1,3,3,{13,13,13,13,0,13,13,13,13}},{119,1,2,2,{61440,61440,61440,61440,0,0,0,0,0}},{59,1,2,2,{29,29,29,29,0,0,0,0,0}},{208,1,2,2,{30,30,30,30,0,0,0,0,0}},{61,4,2,2,{59,59,59,59,0,0,0,0,0}},{60,1,1,2,{99,99,0,0,0,0,0,0,0}},{148,4,2,2,{1,1,1,1,0,0,0,0,0}},{151,1,1,2,{103,103,0,0,0,0,0,0,0}},{149,1,0,2,{148,160,0,0,0,0,0,0,0}},{107,1,0,2,{13,160,0,0,0,0,0,0,0}},{158,16,3,2,{56,56,56,56,56,56,0,0,0}},{11,4,2,2,{10,31,31,10,0,0,0,0,0}},{5,4,2,2,{4,4,4,4,0,0,0,0,0}},{3,4,2,2,{2,2,2,2,0,0,0,0,0}},{7,4,2,2,{6,6,6,6,0,0,0,0,0}},{6,2,0,2,{4,13,0,0,0,0,0,0,0}},{82,1,0,2,{341,67,0,0,0,0,0,0,0}},{182,8,3,3,{166,166,166,166,341,166,166,166,166}},{81,1,0,2,{342,67,0,0,0,0,0,0,0}},{181,8,3,3,{166,166,166,166,342,166,166,166,166}},{80,1,0,2,{343,67,0,0,0,0,0,0,0}},{180,8,3,3,{166,166,166,166,343,166,166,166,166}},{79,1,0,2,{344,67,0,0,0,0,0,0,0}},{179,8,3,3,{166,166,166,166,344,166,166,166,166}},{78,1,0,2,{345,67,0,0,0,0,0,0,0}},{178,8,3,3,{166,166,166,166,345,166,166,166,166}},{77,1,0,2,{346,67,0,0,0,0,0,0,0}},{177,8,3,3,{166,166,166,166,346,166,166,166,166}},{76,1,0,2,{347,67,0,0,0,0,0,0,0}},{176,8,3,3,{166,166,166,166,347,166,166,166,166}},{75,1,0,2,{348,67,0,0,0,0,0,0,0}},{175,8,3,3,{166,166,166,166,348,166,166,166,166}},{74,1,0,2,{349,67,0,0,0,0,0,0,0}},{174,8,3,3,{166,166,166,166,349,166,166,166,166}},{73,1,0,2,{350,67,0,0,0,0,0,0,0}},{173,8,3,3,{166,166,166,166,350,166,166,166,166}},{72,1,0,2,{351,67,0,0,0,0,0,0,0}},{172,8,3,3,{166,166,166,166,351,166,166,166,166}},{71,1,0,2,{352,67,0,0,0,0,0,0,0}},{171,8,3,3,{166,166,166,166,352,166,166,166,166}},{70,1,0,2,{353,67,0,0,0,0,0,0,0}},{170,8,3,3,{166,166,166,166,353,166,166,166,166}},{69,1,0,2,{354,67,0,0,0,0,0,0,0}},{169,8,3,3,{166,166,166,166,354,166,166,166,166}},{68,1,0,2,{355,67,0,0,0,0,0,0,0}},{168,8,3,3,{166,166,166,166,355,166,166,166,166}},{167,8,3,3,{166,166,166,166,356,166,166,166,166}},{352,1,0,1,{83,0,0,0,0,0,0,0,0}},{342,1,0,1,{84,0,0,0,0,0,0,0,0}},{356,3,0,1,{317,0,0,0,0,0,0,0,0}},{350,2,0,2,{342,356,0,0,0,0,0,0,0}},{355,2,0,2,{342,352,0,0,0,0,0,0,0}},{351,2,0,2,{343,356,0,0,0,0,0,0,0}},{349,2,0,2,{341,356,0,0,0,0,0,0,0}},{348,2,0,2,{349,356,0,0,0,0,0,0,0}},{348,3,0,3,{341,356,356,0,0,0,0,0,0}},{353,2,0,2,{345,356,0,0,0,0,0,0,0}},{347,2,0,2,{345,343,0,0,0,0,0,0,0}},{346,2,0,2,{345,342,0,0,0,0,0,0,0}},{354,2,0,2,{346,350,0,0,0,0,0,0,0}},{354,3,0,3,{345,342,350,0,0,0,0,0,0}},{354,4,0,4,{345,342,342,356,0,0,0,0,0}},{353,1,0,1,{85,0,0,0,0,0,0,0,0}},{354,1,0,1,{86,0,0,0,0,0,0,0,0}},{348,1,0,1,{87,0,0,0,0,0,0,0,0}},{342,1,0,1,{88,0,0,0,0,0,0,0,0}},{355,1,0,1,{89,0,0,0,0,0,0,0,0}},{348,1,0,1,{90,0,0,0,0,0,0,0,0}},{350,1,0,1,{91,0,0,0,0,0,0,0,0}},{348,1,0,1,{92,0,0,0,0,0,0,0,0}},{352,2,0,1,{196,0,0,0,0,0,0,0,0}},{354,2,0,1,{198,0,0,0,0,0,0,0,0}},{342,2,0,1,{204,0,0,0,0,0,0,0,0}},{350,2,0,1,{206,0,0,0,0,0,0,0,0}},{324,3,3,1,{322,322,322,0,0,0,0,0,0}},{325,1,0,4,{324,324,324,319,0,0,0,0,0}},{144,3,3,2,{14,305,14,14,305,14,0,0,0}},{165,6,3,2,{13,13,13,13,13,13,0,0,0}},{106,1,3,3,{61440,61440,61440,325,325,325,61440,61440,61440}},{140,1,2,2,{329,329,329,329,0,0,0,0,0}},{138,6,3,1,{140,140,140,0,0,0,0,0,0}},{142,1,2,2,{326,326,326,326,0,0,0,0,0}},{104,1,2,2,{327,327,327,327,0,0,0,0,0}},{209,1,2,2,{332,332,332,332,0,0,0,0,0}},{67,1,2,2,{316,316,316,316,0,0,0,0,0}},{105,1,3,3,{318,29,318,29,318,29,318,29,318}},{101,6,3,1,{13,13,13,0,0,0,0,0,0}},{98,6,3,1,{1,1,1,0,0,0,0,0,0}},{99,6,3,1,{59,59,59,0,0,0,0,0,0}},{102,6,3,1,{104,104,104,0,0,0,0,0,0}},{103,6,3,1,{148,148,148,0,0,0,0,0,0}},{214,6,3,1,{14,14,14,0,0,0,0,0,0}},{14,4,1,1,{35,0,0,0,0,0,0,0,0}},{215,6,3,1,{15,15,15,0,0,0,0,0,0}},{15,4,1,1,{39,0,0,0,0,0,0,0,0}},{216,6,3,1,{16,16,16,0,0,0,0,0,0}},{16,4,1,1,{43,0,0,0,0,0,0,0,0}},{217,6,3,1,{17,17,17,0,0,0,0,0,0}},{17,4,1,1,{47,0,0,0,0,0,0,0,0}},{218,6,3,1,{18,18,18,0,0,0,0,0,0}},{18,4,1,1,{183,0,0,0,0,0,0,0,0}},{219,6,3,1,{19,19,19,0,0,0,0,0,0}},{19,4,1,1,{187,0,0,0,0,0,0,0,0}},{134,3,3,3,{305,0,305,305,305,305,305,0,305}},{337,3,2,3,{14,14,14,14,14,14,0,0,0}},{323,1,1,1,{322,0,0,0,0,0,0,0,0}},{305,4,1,2,{61440,61440,0,0,0,0,0,0,0}},{109,4,1,2,{306,305,0,0,0,0,0,0,0}},{109,4,1,2,{307,305,0,0,0,0,0,0,0}},{328,4,3,2,{61440,0,61440,0,61440,0,0,0,0}},{135,16,3,3,{309,0,309,309,305,309,309,0,309}},{146,1,1,2,{145,109,0,0,0,0,0,0,0}},{333,1,3,2,{309,0,309,0,309,0,0,0,0}},{282,1,0,2,{309,314,0,0,0,0,0,0,0}},{359,1,3,1,{320,320,320,0,0,0,0,0,0}},{115,4,3,3,{14,0,0,14,14,0,14,14,14}},{136,4,3,3,{13,0,0,13,13,0,13,13,13}},{358,1,3,3,{310,310,310,310,357,310,310,310,310}},{340,1,3,3,{0,310,0,310,313,310,0,310,0}},{339,1,3,3,{0,309,0,309,313,309,0,309,0}},{338,1,3,2,{61441,61441,61441,61440,61440,61440,0,0,0}}};+const uint16_t smelting[26][2] = {{33,309},{32,310},{117,308},{29,56},{30,56},{360,361},{362,363},{364,365},{366,367},{13,1},{148,150},{326,327},{142,166},{141,343},{163,312},{374,375},{34,306},{137,313},{57,345},{378,379},{35,307},{39,307},{43,307},{47,307},{183,307},{187,307}};+const uint16_t group_planks[] = {14,15,16,17,18,19,0xFFFF};+const uint16_t group_wool[] = {67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,0xFFFF};+const uint16_t group_log[] = {35,39,43,47,183,187,0xFFFF};+const uint16_t group_sapling[] = {20,21,22,23,24,25,0xFFFF};+const uint8_t font_bits[96 * 8] = {0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,10,10,5,0,0,0,0,0,10,10,31,10,31,10,10,0,4,30,1,14,16,15,4,0,17,9,8,4,2,18,17,0,4,10,4,22,13,9,22,0,2,2,1,0,0,0,0,0,12,2,1,1,1,2,12,0,3,4,8,8,8,4,3,0,0,0,9,6,9,0,0,0,0,4,4,31,4,4,0,0,0,0,0,0,0,1,1,1,0,0,0,31,0,0,0,0,0,0,0,0,0,1,1,0,16,8,8,4,2,2,1,0,14,17,25,21,19,17,14,0,4,6,4,4,4,4,31,0,14,17,16,12,2,17,31,0,14,17,16,12,16,17,14,0,24,20,18,17,31,16,16,0,31,1,15,16,16,17,14,0,12,2,1,15,17,17,14,0,31,17,16,8,4,4,4,0,14,17,17,14,17,17,14,0,14,17,17,30,16,8,6,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,1,8,4,2,1,2,4,8,0,0,0,31,0,0,31,0,0,1,2,4,8,4,2,1,0,14,17,16,8,4,0,4,0,30,33,45,45,61,1,30,0,14,17,31,17,17,17,17,0,15,17,15,17,17,17,15,0,14,17,1,1,1,17,14,0,15,17,17,17,17,17,15,0,31,1,7,1,1,1,31,0,31,1,7,1,1,1,1,0,30,1,25,17,17,17,14,0,17,17,31,17,17,17,17,0,7,2,2,2,2,2,7,0,16,16,16,16,16,17,14,0,17,9,7,9,17,17,17,0,1,1,1,1,1,1,31,0,17,27,21,17,17,17,17,0,17,19,21,25,17,17,17,0,14,17,17,17,17,17,14,0,15,17,15,1,1,1,1,0,14,17,17,17,17,9,22,0,15,17,15,17,17,17,17,0,30,1,14,16,16,17,14,0,31,4,4,4,4,4,4,0,17,17,17,17,17,17,14,0,17,17,17,17,10,10,4,0,17,17,17,17,21,27,17,0,17,10,4,10,17,17,17,0,17,10,4,4,4,4,4,0,31,16,8,4,2,1,31,0,7,1,1,1,1,1,7,0,1,2,2,4,8,8,16,0,7,4,4,4,4,4,7,0,4,10,17,0,0,0,0,0,0,0,0,0,0,0,0,31,1,1,2,0,0,0,0,0,0,0,14,16,30,17,30,0,1,1,13,19,17,17,15,0,0,0,14,17,1,17,14,0,16,16,22,25,17,17,30,0,0,0,14,17,31,1,30,0,12,2,15,2,2,2,2,0,0,0,30,17,17,30,16,15,1,1,13,19,17,17,17,0,1,0,1,1,1,1,1,0,16,0,16,16,16,17,17,14,1,1,9,5,3,5,9,0,1,1,1,1,1,1,2,0,0,0,11,21,21,17,17,0,0,0,15,17,17,17,17,0,0,0,14,17,17,17,14,0,0,0,13,19,17,15,1,1,0,0,22,25,17,30,16,16,0,0,13,19,1,1,1,0,0,0,30,1,14,16,15,0,2,2,7,2,2,2,4,0,0,0,17,17,17,17,30,0,0,0,17,17,17,10,4,0,0,0,17,17,21,21,30,0,0,0,17,10,4,10,17,0,0,0,17,17,17,30,16,15,0,0,31,8,4,2,31,0,12,2,2,1,2,2,12,0,1,1,1,0,1,1,1,0,3,4,4,8,4,4,3,0,38,25,0,0,0,0,0,0,0,0,4,10,17,17,31,0};+const uint8_t font_w[96] = {4,2,5,6,6,6,6,3,5,5,5,6,2,6,2,6,6,6,6,6,6,6,6,6,6,6,2,2,5,6,5,6,7,6,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,4,6,4,6,6,3,6,6,6,6,6,5,6,6,2,6,5,3,6,6,6,6,6,6,6,4,6,6,6,6,6,6,5,2,5,7,6};+const uint8_t img_rle[18407] = {1,111,155,2,0,96,31,155,96,1,96,31,156,32,96,0,96,18,47,153,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,37,48,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,48,31,1,80,111,36,16,47,78,65,96,96,17,35,95,1,48,80,111,36,16,39,95,1,48,95,1,48,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,4,95,1,48,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,4,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,48,39,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,49,38,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,50,37,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,51,36,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,52,35,80,63,0,16,43,65,96,96,17,35,48,31,1,80,111,36,16,39,48,31,1,48,31,1,33,62,34,80,63,0,16,43,65,96,96,17,35,95,1,48,80,111,36,16,39,95,1,48,95,1,48,33,63,0,33,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,33,62,34,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,52,35,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,51,36,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,50,37,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,49,38,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,42,48,39,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,4,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,4,80,63,0,16,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,4,48,31,1,43,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,80,63,0,16,80,111,36,16,39,80,63,0,16,80,63,0,16,47,34,65,96,96,17,35,48,31,1,80,111,36,16,39,48,31,1,48,31,1,47,34,65,96,96,17,35,95,1,48,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,80,63,0,16,80,111,36,16,47,78,65,96,96,17,35,48,31,1,48,31,37,47,78,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,153,66,96,0,96,32,79,156,96,1,96,79,155,96,0,2,111,155,1,1,111,155,2,0,96,31,155,96,1,96,31,156,32,96,0,96,18,47,153,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,10,95,1,48,95,1,48,95,1,48,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,95,9,48,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,80,63,8,16,47,12,65,96,96,17,47,10,48,31,1,48,31,1,48,31,1,47,20,80,63,8,16,47,12,65,96,96,17,47,10,95,1,48,95,1,48,95,1,48,47,20,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,48,45,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,49,44,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,50,43,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,51,42,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,52,41,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,53,40,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,38,63,5,39,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,38,63,6,38,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,38,63,5,39,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,53,40,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,52,41,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,51,42,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,50,43,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,49,44,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,5,48,45,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,80,63,8,16,47,12,65,96,96,17,47,10,48,31,1,48,31,1,48,31,1,47,20,80,63,8,16,47,12,65,96,96,17,47,10,95,1,48,95,1,48,95,1,48,47,20,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,80,63,8,16,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,20,48,31,9,47,12,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,80,63,0,16,80,63,0,16,80,63,0,16,47,74,65,96,96,17,47,10,48,31,1,48,31,1,48,31,1,47,74,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,153,66,96,0,96,32,79,156,96,1,96,79,155,96,0,2,111,155,1,1,111,155,2,0,96,31,155,96,1,96,31,156,32,96,0,96,18,47,153,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,36,95,1,48,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,22,95,9,48,47,20,65,96,96,17,47,36,80,63,0,16,47,22,80,63,8,16,47,20,65,96,96,17,47,36,80,63,0,16,47,22,80,63,8,16,47,20,65,96,96,17,47,36,48,31,1,47,22,80,63,8,16,47,20,65,96,96,17,47,92,80,63,8,16,47,20,65,96,96,17,47,75,48,47,0,80,63,8,16,47,20,65,96,96,17,47,75,49,46,80,63,8,16,47,20,65,96,96,17,47,39,48,40,48,47,9,50,45,80,63,8,16,47,20,65,96,96,17,47,39,48,40,48,47,9,51,44,80,63,8,16,47,20,65,96,96,17,47,40,48,34,48,34,48,47,10,52,43,80,63,8,16,47,20,65,96,96,17,47,40,48,34,48,34,48,47,10,53,42,80,63,8,16,47,20,65,96,96,17,47,39,49,35,48,33,49,42,63,5,41,80,63,8,16,47,20,65,96,96,17,47,39,49,35,48,33,49,42,63,6,40,80,63,8,16,47,20,65,96,96,17,47,38,50,34,49,33,50,41,63,5,41,80,63,8,16,47,20,65,96,96,17,47,38,49,35,49,34,49,47,8,53,42,80,63,8,16,47,20,65,96,96,17,47,38,49,34,50,34,49,47,8,52,43,80,63,8,16,47,20,65,96,96,17,47,38,50,33,49,34,50,47,8,51,44,80,63,8,16,47,20,65,96,96,17,47,39,49,33,49,34,49,47,9,50,45,80,63,8,16,47,20,65,96,96,17,47,39,49,33,50,33,49,47,9,49,46,80,63,8,16,47,20,65,96,96,17,47,38,50,33,50,33,50,47,8,48,47,0,80,63,8,16,47,20,65,96,96,17,47,92,80,63,8,16,47,20,65,96,96,17,47,92,80,63,8,16,47,20,65,96,96,17,47,36,95,1,48,47,22,80,63,8,16,47,20,65,96,96,17,47,36,80,63,0,16,47,22,80,63,8,16,47,20,65,96,96,17,47,36,80,63,0,16,47,22,80,63,8,16,47,20,65,96,96,17,47,36,80,63,0,16,47,22,48,31,9,47,20,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,80,63,0,16,47,84,65,96,96,17,47,36,48,31,1,47,84,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,153,66,96,0,96,32,79,156,96,1,96,79,155,96,0,2,111,155,1,1,111,155,2,0,96,31,155,96,1,96,31,156,32,96,0,96,18,47,153,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,35,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,95,1,48,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,80,63,0,16,35,65,96,96,17,35,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,48,31,1,35,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,154,65,96,96,17,47,153,66,96,0,96,32,79,156,96,1,96,79,155,96,0,2,111,155,1};+const uint32_t img_rows[665] = {0,4,10,16,22,28,34,40,53,68,83,98,113,128,143,158,173,188,203,218,233,248,263,278,293,307,328,352,376,400,424,448,472,496,520,544,572,601,631,661,691,721,751,778,806,836,866,896,926,956,986,1015,1044,1072,1096,1120,1144,1168,1192,1216,1240,1261,1275,1290,1305,1320,1335,1350,1365,1380,1395,1410,1425,1440,1455,1470,1485,1500,1515,1528,1534,1540,1546,1552,1585,1627,1669,1711,1753,1795,1837,1879,1921,1963,2005,2047,2089,2131,2173,2215,2257,2290,2323,2365,2407,2449,2491,2533,2575,2617,2659,2701,2743,2785,2827,2869,2911,2953,2995,3028,3061,3103,3145,3187,3229,3271,3313,3355,3397,3439,3481,3523,3565,3607,3649,3691,3733,3766,3772,3778,3784,3790,3823,3865,3907,3949,3991,4033,4075,4117,4159,4201,4243,4285,4327,4369,4411,4453,4495,4528,4534,4540,4546,4552,4558,4564,4568,4572,4578,4584,4590,4596,4602,4608,4614,4620,4626,4632,4638,4644,4650,4656,4662,4679,4699,4719,4739,4759,4779,4799,4819,4839,4859,4879,4899,4919,4939,4964,4990,5016,5039,5062,5090,5118,5146,5174,5202,5230,5258,5286,5314,5342,5370,5398,5426,5454,5482,5508,5531,5554,5580,5606,5631,5651,5671,5691,5711,5731,5751,5771,5791,5811,5831,5851,5871,5891,5908,5914,5920,5926,5932,5938,5944,5950,5956,5962,5968,5974,5980,5986,6019,6061,6103,6145,6187,6229,6271,6313,6355,6397,6439,6481,6523,6565,6607,6649,6691,6724,6757,6799,6841,6883,6925,6967,7009,7051,7093,7135,7177,7219,7261,7303,7345,7387,7429,7462,7495,7537,7579,7621,7663,7705,7747,7789,7831,7873,7915,7957,7999,8041,8083,8125,8167,8200,8206,8212,8218,8224,8257,8299,8341,8383,8425,8467,8509,8551,8593,8635,8677,8719,8761,8803,8845,8887,8929,8962,8968,8974,8980,8986,8992,8998,9002,9006,9012,9018,9024,9030,9036,9042,9048,9054,9060,9066,9072,9078,9084,9090,9096,9107,9119,9131,9143,9155,9167,9179,9191,9203,9215,9227,9239,9251,9263,9280,9298,9316,9333,9345,9360,9374,9393,9412,9433,9454,9475,9496,9517,9538,9559,9580,9601,9622,9644,9656,9668,9685,9703,9721,9738,9750,9762,9774,9786,9798,9810,9822,9834,9846,9858,9870,9882,9894,9905,9911,9917,9923,9929,9935,9941,9947,9953,9959,9965,9971,9977,9983,10016,10058,10100,10142,10184,10226,10268,10310,10352,10394,10436,10478,10520,10562,10604,10646,10688,10721,10754,10796,10838,10880,10922,10964,11006,11048,11090,11132,11174,11216,11258,11300,11342,11384,11426,11459,11492,11534,11576,11618,11660,11702,11744,11786,11828,11870,11912,11954,11996,12038,12080,12122,12164,12197,12203,12209,12215,12221,12254,12296,12338,12380,12422,12464,12506,12548,12590,12632,12674,12716,12758,12800,12842,12884,12926,12959,12965,12971,12977,12983,12989,12995,12999,13003,13009,13015,13021,13027,13033,13039,13045,13051,13057,13063,13069,13075,13081,13087,13093,13099,13132,13174,13216,13258,13300,13342,13384,13426,13468,13510,13552,13594,13636,13678,13720,13762,13804,13837,13870,13912,13954,13996,14038,14080,14122,14164,14206,14248,14290,14332,14374,14416,14458,14500,14542,14575,14608,14650,14692,14734,14776,14818,14860,14902,14944,14986,15028,15070,15112,15154,15196,15238,15280,15313,15319,15325,15331,15337,15343,15349,15355,15361,15367,15373,15379,15385,15391,15424,15466,15508,15550,15592,15634,15676,15718,15760,15802,15844,15886,15928,15970,16012,16054,16096,16129,16162,16204,16246,16288,16330,16372,16414,16456,16498,16540,16582,16624,16666,16708,16750,16792,16834,16867,16900,16942,16984,17026,17068,17110,17152,17194,17236,17278,17320,17362,17404,17446,17488,17530,17572,17605,17611,17617,17623,17629,17662,17704,17746,17788,17830,17872,17914,17956,17998,18040,18082,18124,18166,18208,18250,18292,18334,18367,18373,18379,18385,18391,18397,18403};+const uint16_t img_row0[4] = {0,166,332,498};+const uint8_t img_w[4] = {176,176,176,176};+const uint8_t img_h[4] = {166,166,166,167};+const uint16_t img_pal[4][16] = {+ {0x0000,0xFFFF,0xC638,0x8C51,0x52AA,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x8C51,0x52AA,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x8C51,0x52AA,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},+ {0x0000,0xFFFF,0xC638,0x8C51,0x52AA,0x31A6,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000},};-const uint16_t blk_icon[B_COUNT] = {65535,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};const uint8_t clouds[8192] = {0,0,30,2,0,0,0,0,0,0,0,0,176,5,30,0,0,8,0,0,0,0,128,12,0,112,8,54,0,0,0,0,3,32,30,19,96,0,0,24,28,0,192,0,64,62,14,0,2,12,0,64,96,0,0,0,0,60,0,62,0,0,0,0,6,0,14,48,0,0,0,16,0,0,200,1,64,31,0,0,3,0,0,0,60,0,0,1,0,24,128,127,0,0,128,0,14,0,78,0,0,0,0,0,0,0,60,6,224,31,225,192,7,0,0,128,63,192,128,15,0,0,224,255,0,0,192,0,15,0,254,33,0,0,0,0,0,0,0,4,224,31,246,0,12,0,0,192,7,0,136,9,0,32,224,255,1,0,0,2,15,0,255,1,0,0,0,0,0,0,0,0,224,31,254,17,62,0,0,64,0,0,64,0,128,97,241,255,28,128,24,0,63,128,249,1,0,0,0,0,0,0,0,0,224,55,253,7,62,0,0,0,6,0,224,131,56,0,96,255,1,0,120,0,60,248,240,1,0,0,0,0,0,0,0,0,192,247,248,15,252,1,0,0,11,0,240,1,120,0,4,56,0,0,240,0,220,0,64,0,0,0,0,0,0,8,0,0,192,255,253,15,127,32,0,0,0,0,224,0,8,0,0,40,0,0,224,0,207,129,3,0,0,0,0,0,16,27,0,128,184,255,127,14,63,96,0,0,0,0,98,0,0,0,0,64,0,0,192,0,199,195,3,0,0,0,0,0,128,31,0,192,216,255,63,140,255,8,0,0,0,0,39,0,0,0,0,0,32,0,0,0,240,220,66,0,0,0,0,0,0,12,0,192,248,255,31,152,255,8,0,0,0,0,0,0,0,0,8,0,64,0,0,0,248,200,96,0,0,0,0,0,0,8,0,224,61,255,31,6,255,15,2,0,0,0,0,0,0,0,8,0,0,0,0,0,254,1,240,1,0,0,0,80,0,0,0,0,124,239,15,6,224,7,0,0,0,0,0,0,0,0,8,0,176,3,0,0,90,32,240,1,0,0,0,0,0,0,0,128,62,94,60,134,3,55,0,0,0,0,0,24,0,128,13,0,224,0,0,32,19,64,224,7,0,0,0,0,0,8,0,0,38,126,60,158,7,62,128,0,0,0,0,18,0,128,156,1,96,0,0,48,0,192,112,15,0,0,0,0,0,8,0,0,32,127,2,8,34,55,0,0,0,0,0,0,0,128,182,205,0,0,0,0,0,226,22,14,0,0,0,0,0,0,0,0,0,15,3,72,224,31,0,0,0,0,0,0,0,0,190,248,3,0,0,0,0,98,3,2,156,0,0,0,0,6,0,0,128,125,2,0,128,31,0,0,0,0,0,0,0,0,254,221,3,0,8,0,0,176,133,64,48,0,0,0,0,14,0,0,128,252,67,0,0,12,2,0,0,0,0,0,64,48,254,255,7,0,64,48,0,128,157,192,32,0,0,0,0,164,0,0,0,112,96,0,8,14,2,0,0,0,0,0,0,32,254,255,7,136,0,0,0,4,255,192,70,0,0,0,128,252,0,0,0,120,0,0,80,6,0,0,0,0,0,0,0,0,254,231,31,128,1,0,0,2,50,192,1,0,0,0,0,28,0,2,0,26,0,0,126,0,0,0,0,0,0,0,0,192,255,135,15,0,0,0,0,242,48,128,17,0,0,0,0,0,132,7,0,30,64,1,190,1,0,0,0,0,0,0,0,248,167,7,14,0,0,0,0,130,120,7,18,0,0,0,192,48,8,0,0,4,0,0,240,0,0,0,0,0,0,0,0,248,245,15,142,0,0,0,0,128,255,255,15,0,0,0,224,63,27,0,0,0,0,0,224,0,0,0,0,32,0,0,0,249,184,4,155,1,48,4,128,128,249,221,63,0,0,0,240,15,31,0,0,0,0,0,128,0,0,0,8,32,0,0,128,124,7,0,224,41,0,0,240,225,225,236,25,0,0,0,190,14,14,0,0,0,0,32,152,0,0,192,0,96,0,0,128,252,15,0,224,15,0,0,224,243,241,241,29,0,0,0,218,4,7,128,0,0,0,0,222,33,0,0,0,96,2,0,0,252,15,0,224,29,6,0,192,243,241,19,12,0,0,0,152,173,3,0,12,0,49,0,255,61,0,0,0,224,3,0,0,248,7,0,224,241,23,0,120,159,0,0,32,0,0,0,28,160,7,12,0,32,38,128,253,63,0,0,0,0,0,32,0,224,7,0,232,1,7,0,106,31,14,0,32,0,0,128,61,0,14,12,0,48,14,192,224,30,0,0,0,20,0,48,0,224,7,0,222,3,28,0,96,15,14,0,32,0,0,0,56,2,14,12,4,0,0,0,32,28,0,8,0,0,0,62,0,96,0,0,14,0,24,0,224,111,63,0,0,0,0,0,224,3,26,31,0,0,0,12,0,0,0,28,0,0,0,124,0,112,0,0,0,176,143,3,224,15,63,0,0,0,0,0,250,3,48,15,2,0,128,32,0,0,0,24,0,8,0,252,3,112,0,0,0,0,254,1,128,3,15,0,0,128,0,0,255,3,224,7,0,6,192,0,0,32,0,24,128,12,0,252,102,32,0,0,12,0,248,3,128,255,1,0,4,0,0,0,240,3,128,12,0,128,0,0,0,224,0,28,128,8,0,247,34,0,0,0,12,136,253,3,240,252,0,0,6,24,4,0,224,1,0,28,16,128,0,0,32,225,225,127,128,0,0,31,160,1,0,0,0,252,204,224,224,255,64,0,0,56,0,8,0,0,128,24,28,216,23,0,96,123,240,63,0,0,0,14,120,0,0,2,6,252,193,255,240,243,249,0,0,96,0,8,4,64,224,73,28,252,63,0,96,24,240,30,0,0,0,0,56,0,64,6,6,255,251,239,240,247,255,9,0,64,0,12,130,0,224,217,15,48,0,32,2,8,32,28,0,0,0,8,12,0,0,0,0,246,9,97,112,255,231,31,1,249,0,28,224,6,224,251,7,0,128,3,0,0,0,142,0,2,64,14,2,0,0,0,0,194,8,248,127,255,255,31,0,144,8,222,96,3,248,255,7,0,0,66,0,0,0,192,1,0,136,0,2,0,0,8,0,2,152,248,111,255,255,127,0,0,129,121,224,129,255,254,7,0,64,224,7,7,0,240,1,0,8,128,2,0,0,8,0,26,0,232,48,246,215,63,0,0,128,121,96,1,242,115,63,0,96,226,0,14,0,252,0,0,0,128,96,0,0,2,0,30,0,240,48,240,199,63,3,0,206,224,243,1,192,131,127,0,96,2,0,56,6,255,0,130,0,0,241,1,240,0,0,12,0,96,56,216,3,113,0,0,207,249,243,1,192,129,126,0,112,2,32,188,6,124,0,128,0,32,80,2,240,1,0,188,0,32,0,240,129,113,0,0,195,185,231,1,128,0,56,0,48,128,48,0,6,62,0,0,0,96,12,6,224,1,0,56,0,236,224,224,224,253,0,0,0,240,96,0,112,131,8,0,224,128,0,32,2,30,2,0,0,0,8,4,240,0,0,0,0,12,120,4,240,127,0,80,0,96,0,0,120,128,0,0,224,1,0,240,3,30,0,0,0,0,29,8,248,24,0,0,0,24,104,131,240,112,0,0,2,48,0,0,120,0,0,0,32,0,0,32,0,12,0,0,0,128,12,156,216,43,0,0,0,62,4,128,65,204,64,0,2,32,0,0,0,0,0,0,0,0,0,0,128,13,0,0,0,240,24,252,248,15,0,0,0,4,32,0,128,220,128,8,0,0,0,0,192,0,0,0,0,0,0,192,243,8,0,0,0,32,12,34,248,15,0,0,2,0,0,0,128,159,129,0,0,65,0,192,208,1,0,0,0,3,1,224,255,60,0,0,0,0,12,35,40,0,0,0,0,0,0,0,0,156,0,0,0,1,2,32,192,0,0,0,0,2,222,193,255,11,0,0,0,0,156,35,160,1,0,0,0,0,0,0,0,0,0,0,64,16,24,48,0,0,0,0,0,64,254,199,255,3,0,0,0,0,24,0,128,3,0,0,0,0,8,0,38,6,0,32,0,2,12,0,8,0,0,0,0,0,254,227,255,99,0,0,0,4,12,0,96,0,0,0,0,0,156,0,255,7,0,32,0,3,28,128,28,0,0,4,0,0,59,248,255,241,0,0,0,62,14,64,32,0,0,0,0,0,140,0,255,7,0,0,0,2,56,0,16,0,0,0,0,0,126,127,242,248,3,0,0,60,14,0,32,0,2,0,0,0,0,4,63,16,0,64,0,0,192,143,192,0,128,0,0,0,254,31,246,248,0,0,0,28,8,192,3,0,0,0,0,224,0,0,127,9,0,0,0,0,0,136,0,0,192,0,0,0,222,31,198,0,0,0,0,14,4,0,0,0,0,0,128,192,4,128,15,207,0,0,120,0,0,192,0,0,224,0,0,0,154,15,135,129,0,0,32,15,1,0,240,7,0,0,128,128,0,128,1,216,1,0,60,0,0,0,0,0,32,32,0,2,134,15,135,19,0,0,0,0,1,0,200,5,0,0,128,128,1,128,1,142,1,64,126,0,0,0,0,0,32,0,0,0,6,143,131,127,0,0,0,0,0,0,77,6,32,0,64,132,0,0,0,31,0,0,60,0,0,0,0,0,48,4,0,0,4,252,4,31,0,0,0,0,32,192,28,15,0,0,96,2,0,0,80,31,0,16,48,125,0,0,0,0,176,15,0,0,4,248,132,7,0,0,0,0,96,192,127,31,0,0,64,15,0,0,192,63,0,0,240,61,0,0,0,0,242,3,0,0,0,248,160,39,0,0,0,2,0,192,255,127,0,0,96,63,192,1,32,15,0,0,224,63,0,0,0,0,102,0,0,0,0,248,224,127,0,0,96,0,0,128,191,127,0,0,252,15,0,0,96,15,0,0,240,121,0,0,0,0,54,8,0,0,0,240,195,255,0,0,0,0,0,0,255,127,0,0,0,143,0,0,224,15,0,6,112,224,1,0,0,0,7,126,0,32,0,240,131,227,0,0,0,0,0,12,254,127,0,48,1,8,0,128,0,32,0,0,112,52,0,0,0,4,38,124,0,0,0,16,2,94,0,0,0,0,0,12,254,255,67,32,0,12,0,128,0,0,0,128,56,31,0,0,0,4,176,25,0,0,0,24,2,31,0,0,0,0,48,128,255,255,219,0,0,60,128,8,0,64,0,0,8,31,0,0,0,12,28,141,0,0,0,0,130,63,0,0,0,0,0,142,255,247,195,0,0,60,198,47,236,192,0,0,192,79,2,0,0,8,207,0,0,0,0,0,194,60,1,0,0,0,0,30,242,254,113,0,0,30,227,167,61,224,0,128,131,15,0,0,0,0,158,9,0,0,0,0,128,31,128,3,0,0,0,2,222,254,13,0,0,31,3,62,35,128,0,128,7,28,0,0,0,192,208,15,4,0,0,0,0,31,0,0,0,0,0,0,134,255,15,0,0,223,221,15,2,128,0,128,132,156,0,0,0,128,128,15,0,0,0,0,0,12,0,0,0,0,0,8,2,248,63,0,0,14,252,14,6,64,0,0,28,200,32,0,0,192,0,14,0,0,0,0,12,24,0,0,0,0,0,48,0,240,63,0,0,18,126,14,0,0,0,0,24,222,3,0,0,112,0,24,0,0,0,0,30,8,2,0,0,0,0,0,0,250,210,0,0,0,63,6,0,8,0,0,128,127,2,0,0,56,0,48,0,16,0,0,0,12,4,0,0,0,0,0,0,62,224,1,6,64,0,2,0,0,0,128,0,127,0,0,0,120,0,32,0,0,0,0,6,30,0,0,0,0,0,0,0,116,216,0,4,192,0,0,64,0,0,0,120,255,0,0,50,224,0,0,0,0,0,0,6,159,0,32,128,0,0,0,6,184,195,0,0,248,0,0,2,56,0,0,97,255,0,0,2,248,1,0,0,0,0,0,131,31,0,2,128,0,0,0,222,220,240,1,128,216,0,0,4,62,0,192,97,239,1,0,6,188,1,32,0,0,96,3,15,64,0,2,128,0,0,64,156,239,112,196,1,0,32,0,0,0,0,0,112,255,1,0,14,124,9,0,6,0,0,0,248,0,0,0,0,0,0,64,13,130,96,224,32,32,64,0,0,0,0,0,224,127,0,0,158,159,49,0,7,0,0,0,108,0,0,0,0,0,0,128,1,0,120,48,32,32,0,2,0,0,2,0,200,127,0,0,128,143,113,0,0,0,2,136,60,0,0,0,2,0,0,192,3,0,0,0,48,0,0,0,0,96,0,0,254,127,0,0,0,128,102,0,0,0,0,128,24,0,0,0,6,0,0,128,225,128,0,4,54,0,0,0,0,224,0,0,254,255,0,6,0,0,32,0,0,0,8,128,152,0,0,0,2,0,8,0,0,0,0,14,0,64,0,0,0,247,0,0,254,255,0,14,0,0,0,0,0,0,0,0,128,0,128,0,24,0,56,0,0,0,24,24,0,248,0,0,128,7,0,0,255,127,1,12,0,0,0,0,128,2,0,0,0,0,128,0,8,0,0,0,16,0,216,33,0,248,0,0,136,7,0,0,255,255,3,12,0,0,0,0,192,1,0,0,0,0,0,0,0,0,0,8,208,0,200,1,0,224,0,0,136,31,0,0,246,255,131,6,0,0,0,0,128,128,0,0,32,11,0,0,0,0,0,0,0,0,136,0,0,224,0,0,152,125,0,0,2,236,194,7,0,0,12,0,48,8,0,0,240,63,24,32,0,0,0,0,0,0,193,0,0,60,0,0,152,60,0,0,0,120,16,14,0,0,30,0,112,66,3,0,224,63,0,64,3,0,32,0,0,0,1,0,128,0,0,0,204,28,0,0,198,121,1,8,0,128,73,0,108,1,3,0,128,96,0,0,7,0,0,0,96,0,48,8,0,1,146,0,252,157,0,0,226,32,0,8,0,0,240,0,120,1,0,0,224,8,0,32,32,0,18,0,32,0,96,0,0,0,231,128,223,201,0,0,242,0,0,6,0,0,176,96,48,6,0,16,224,11,48,224,56,2,126,0,0,0,224,0,4,16,127,0,223,207,1,0,242,0,0,0,0,0,224,0,248,3,0,32,98,2,96,8,120,3,248,3,0,0,96,0,0,240,62,129,31,135,1,0,194,15,0,0,0,0,224,1,252,7,0,0,0,64,224,15,124,31,192,3,64,0,98,4,0,240,198,247,127,226,0,0,192,7,0,0,0,8,248,0,152,7,0,0,8,0,104,12,32,198,249,3,0,0,32,66,0,32,199,255,63,128,0,0,240,2,0,0,32,72,60,64,12,4,0,0,8,184,121,28,48,194,255,6,0,0,0,1,0,0,128,255,255,0,0,0,64,2,0,0,0,136,63,0,32,12,0,0,0,240,15,252,240,195,255,0,0,0,0,143,0,0,17,255,255,7,1,0,64,48,0,0,0,0,123,6,48,17,48,0,128,224,31,252,56,199,131,0,0,0,6,4,0,0,0,127,255,5,0,96,130,0,0,0,0,0,120,0,54,128,0,0,128,0,183,222,251,223,99,0,0,8,2,0,0,0,0,239,191,0,0,240,3,1,0,0,0,0,96,0,120,128,1,12,0,0,143,199,251,127,224,0,0,4,0,0,0,0,0,255,253,10,0,224,3,0,0,0,0,0,248,7,124,192,247,1,0,128,63,224,255,127,128,0,0,128,24,0,0,0,7,103,240,9,0,224,15,24,2,28,0,0,252,7,124,227,255,8,0,192,60,224,252,31,3,0,0,128,16,0,0,0,13,246,243,9,0,200,15,0,0,0,0,0,240,9,120,99,195,8,0,192,29,64,248,223,7,0,0,224,0,0,0,0,25,243,247,7,24,195,121,0,0,0,0,0,118,72,0,102,0,64,0,128,15,128,131,255,39,0,0,240,0,0,0,0,31,246,251,7,0,255,60,0,0,0,0,0,246,1,224,127,0,127,0,0,0,128,128,255,3,0,0,192,0,0,0,0,31,254,159,63,0,255,13,192,0,0,0,0,252,1,224,119,64,24,17,64,112,0,192,159,1,112,0,0,0,0,0,0,254,255,9,201,48,64,28,8,0,0,0,0,254,193,255,51,134,13,0,0,96,0,0,159,128,96,0,0,0,0,48,0,255,255,0,136,57,0,248,155,192,4,0,0,255,192,63,0,159,13,0,0,97,192,243,255,112,36,0,0,0,0,48,4,252,223,8,200,127,8,216,15,64,24,0,0,222,225,127,224,221,0,0,0,0,0,247,63,32,112,0,0,0,0,48,0,236,127,0,252,255,28,252,7,224,24,0,128,255,193,251,224,56,0,0,0,192,1,254,31,0,113,0,0,0,0,2,0,252,55,0,246,127,142,253,7,96,0,0,224,63,200,221,248,109,11,0,0,0,32,220,15,128,105,0,0,0,0,128,136,252,7,0,231,51,200,127,62,0,0,0,240,62,216,255,249,227,47,0,0,0,0,15,3,192,229,3,0,0,0,192,220,248,3,0,119,243,223,255,63,0,0,0,56,62,192,255,121,35,50,0,0,0,0,32,0,128,224,0,0,0,0,96,192,248,0,128,112,239,29,255,63,188,1,6,56,100,199,255,48,0,120,0,0,0,0,112,0,0,0,0,0,0,0,96,128,251,0,128,96,137,156,191,127,143,0,0,0,124,255,255,36,192,112,0,0,0,0,96,0,128,0,0,0,0,0,128,192,235,0,0,96,24,8,39,231,15,12,0,0,254,255,252,44,192,225,32,0,0,0,32,0,128,1,0,0,67,128,0,0,9,0,0,0,12,0,140,199,159,19,0,2,208,255,125,28,0,128,3,0,0,0,32,0,128,8,0,48,0,0,0,8,4,0,0,0,0,64,236,247,31,3,32,2,176,255,127,0,0,2,1,0,0,0,0,0,226,0,0,112,0,0,0,28,35,0,0,0,2,0,128,242,31,0,32,0,224,255,255,15,0,38,0,0,0,0,0,0,32,128,0,8,105,0,0,12,115,0,16,0,4,192,128,13,15,0,0,0,224,247,255,15,2,68,0,0,0,60,0,0,0,0,0,1,248,0,0,14,99,0,16,0,0,0,128,60,2,0,0,32,224,199,255,3,14,8,0,0,0,120,0,0,8,0,8,0,248,1,8,62,3,0,96,224,0,0,140,28,96,0,0,32,48,0,56,4,15,0,0,0,4,240,0,0,200,33,63,0,0,4,4,124,0,0,48,0,0,0,8,0,64,0,0,0,208,2,32,0,0,0,0,0,140,240,0,0,200,112,6,0,12,4,0,54,0,0,0,7,0,0,1,0,58,0,0,192,224,18,0,0,0,0,4,7,204,4,0,0,192,127,6,0,14,15,0,7,0,32,160,7,0,128,0,0,96,0,8,192,127,0,0,0,0,0,128,7,254,3,0,0,130,115,12,0,48,124,129,12,0,6,176,1,3,0,0,0,224,0,0,64,60,0,0,0,0,0,128,7,254,251,0,0,15,243,60,0,64,255,65,24,0,4,156,7,0,128,0,0,192,0,0,128,60,0,0,0,2,0,0,60,254,31,0,0,132,243,239,0,0,246,97,2,0,16,243,7,8,0,0,0,0,0,2,0,196,0,0,192,7,0,64,120,190,63,192,64,192,254,192,5,0,248,192,3,0,0,50,0,0,0,0,0,0,0,0,32,0,0,0,128,3,0,0,62,248,31,0,0,156,252,143,0,0,255,253,35,0,32,66,0,0,0,0,0,0,0,0,0,129,0,0,192,0,0,0,62,224,59,0,16,159,253,12,4,32,254,255,56,0,32,210,0,0,0,0,0,0,0,0,0,192,0,0,128,0,0,0,220,231,127,0,64,142,29,12,8,160,255,127,32,0,32,255,7,0,0,0,6,0,16,0,0,0,0,224,0,192,0,0,248,119,254,1,192,128,56,0,203,191,31,7,192,0,0,242,1,0,0,0,2,7,0,128,0,0,0,0,0,192,1,0,240,7,248,131,248,0,39,1,194,255,199,3,0,0,192,225,0,0,0,0,2,7,0,0,0,0,0,0,0,192,1,2,240,71,201,129,248,0,198,1,194,207,192,3,0,0,0,96,0,0,0,0,14,4,0,0,0,0,0,0,0,192,1,2,224,127,223,9,96,0,130,0,98,151,244,1,0,12,0,96,0,0,0,24,14,24,0,0,0,0,0,0,0,128,1,0,224,252,255,0,192,1,0,0,160,25,62,25,4,29,128,1,0,0,0,120,2,14,8,0,0,0,0,0,0,0,32,0,48,246,255,0,8,0,128,0,160,8,254,0,0,124,192,0,0,0,0,236,64,0,8,0,0,0,0,0,0,0,0,0,8,243,63,17,192,0,192,0,16,124,255,128,0,32,0,32,34,0,0,248,1,0,12,0,0,8,0,0,0,0,0,0,0,194,63,2,192,0,128,0,0,126,127,224,0,0,32,112,123,0,0,216,1,0,0,0,0,30,14,12,0,36,0,0,0,6,126,0,224,0,67,0,128,255,7,96,0,0,32,120,126,6,0,216,1,0,0,0,0,63,12,28,0,0,0,0,0,0,119,64,115,128,7,0,0,252,143,32,0,0,0,102,252,7,0,254,1,0,0,0,192,27,152,13,0,0,0,0,0,224,55,224,32,0,60,0,0,252,159,1,65,0,0,160,253,15,0,255,1,0,0,0,0,80,3,55,0,0,0,0,0,224,127,226,0,0,14,0,0,252,223,29,64,0,0,0,15,7,160,251,16,0,0,0,0,96,3,126,0,0,0,0,0,240,127,224,1,112,7,0,0,54,254,63,65,0,0,0,63,6,160,253,127,0,0,0,0,96,3,24,0,0,16,0,0,224,127,72,1,32,0,7,0,48,255,29,0,0,128,64,30,6,0,248,127,0,0,0,0,96,96,0,0,0,112,0,0,192,255,223,3,0,0,7,0,224,255,65,0,0,192,0,30,2,0,112,8,0,0,0,12,104,224,192,0,0,32,0,0,128,255,159,7,0,0,0,0,0,253,9,0,0,96,64,8,2,0,96,0,0,0,0,255,124,128,208,0,0,1,0,0,16,255,127,16,48,6,0,0,0,216,31,4,0,32,0,0,0,0,0,0,0,0,0,255,13,192,0,0,0,0,0,0,0,255,55,96,32,2,0,0,2,200,247,0,27,32,2,7,0,0,0,12,0,0,0,190,15,240,1,64,0,96,0,0,6,244,7,227,1,0,0,192,0,12,254,0,0,32,34,6,0,0,4,0,0,0,0,62,0,0,192,0,0,0,0,0,30,246,95,240,1,0,0,192,0,30,7,0,0,70,99,120,0,0,0,0,0,0,0,79,0,0,240,1,0,0,0,0,14,255,123,236,3,0,0,96,0,15,3,8,3,252,39,60,0,0,16,0,0,0,0,24,0,0,112,0,0,0,0,0,158,247,47,248,3,0,0,48,128,133,39,8,3,252,15,12,0,0,147,1,6,0,0,56,0,0,96,0,1,0,0,0,31,255,3,120,4,0,0,32,0,241,127,8,0,176,204,29,0,0,192,7,2,32,0,56,0,64,8,0,0,0,0,0,28,31,0,28,0,0,0,32,0,48,142,0,0,0,206,24,0,0,224,14,0,48,2,60,1,64,24,64,0,6,0,0,128,11,0,31,0,0,0,0,128,48,4,0,0,128,207,31,0,0,224,15,8,34,0,53,0,0,128,1,8,38,0,0,240,31,0,31,0,8,0,0,128,45,132,1,0,224,143,63,0,2,240,199,3,0,0,57,0,16,2,96,124,6,0,0,224,30,0,6,0,0,0,0,192,143,253,3,0,224,221,63,0,0,240,15,0,0,14,60,0,0,6,224,16,0,0,0,0,0,0,0,0,0,0,0,96,13,220,1,0,32,252,120,0,0,248,31,0,0,14,4,1,128,30,0,1,1,0,0,0,192,3,0,192,0,0,0,48,12,236,0,0,32,255,15,0,0,248,15,0,0,12,0,0,150,7,96,61,2,0,0,0,136,3,0,192,0,0,0,56,8,241,1,0,128,163,15,192,17,225,3,0,0,16,96,0,131,1,98,30,0,0,32,1,12,12,64,16,0,0,64,12,128,243,1,0,0,32,253,0,0,224,3,0,0,2,96,0,12,32,247,31,0,0,32,0,6,0,8,0,0,0,0,180,128,113,0,1,28,0,252,1,96,224,71,0,0,128,7,0,60,240,127,0,0,0,32,48,32,0,28,64,0,64,0,55,14,124,1,248,1,0,126,0,32,0,32,0,0,128,117,0,52,128,124,0,0,0,32,60,6,0,254,3,0,0,0,56,8,120,0,192,3,128,31,0,0,0,0,0,0,32,120,1,15,223,39,0,0,0,0,15,30,0,255,15,0,0,0,120,0,120,192,218,0,0,14,0,0,0,0,0,0,32,0,32,159,242,39,0,0,0,0,7,12,0,210,15,0,0,0,0,0,252,3,130,0,0,0,0,0,0,0,0,0,0,0,96,50,56,51,0,32,0,0,30,207,17,16,0,1,0,110,0,128,207,3,0,0,0,0,0,0,0,0,0,0,0,0,254,167,125,56,0,0,0,0,8,141,135,0,3,0,0,0,8,128,221,135,0,48,128,7,0,0,0,28,0,192,128,0,255,191,255,244,0,8,0,0,0,16,134,3,15,0,0,0,72,0,129,140,0,32,0,0,0,0,0,12,0,64,156,0,254,15,192,48,0,56,0,0,0,32,222,2,0,0,0,0,136,32,140,221,0,96,4,0,0,0,0,158,0,0,60,0,252,1,128,129,3,112,0,0,128,15,248,28,0,0,6,0,128,248,204,255,0,120,0,0,0,0,0,220,1,128,30,0,255,1,224,224,39,112,128,0,0,0,32,24,0,0,32,0,0,144,8,255,0,240,16,0,0,0,0,252,64,132,6,240,255,15,0,240,15,96,199,0,0,0,0,0,0,0,0,0,0,0,0,255,0,224,7,0,0,0,0,252,192,255,7,128,255,1,0,96,15,240,7,0,0,0,32,0,0,0,0,0,32,0,128,247,0,192,15,0,0,0,0,175,176,255,7,0,241,0,0,64,6,240,3,0,0,15,240,96,0,0,0,0,96,130,152,63,0,192,15,0,0,0,0,127,224,255,55,0,8,3,0,0,35,240,15,0,36,8,176,0,3,0,0,0,48,130,252,127,192,3,8,0,0,0,0,226,192,254,63,0,12,8,0,0,112,240,7,0,12,24,0,0,0,0,0,0,112,128,252,56,0,0,12,0,0,0,0,8,128,252,3,0,12,0,0,0,240,242,3,0,8,32,159,0,32,248,0,0,0,130,124,31,0,120,4,0,112,0,0,8,160,220,128,4,12,0,0,0,240,255,1,3,24,0,31,0,0,252,1,0,0,128,239,3,128,24,0,0,240,0,0,136,0,216,128,0,0,0,0,0,248,11,32,0,8,122,59,0,128,248,0,0,129,129,127,0,192,9,96,0,242,1,0,0,4,240,193,3,0,0,0,0,240,25,0,0,24,254,99,0,192,225,0,128,193,192,63,0,192,31,0,0,14,0,0,0,8,224,201,2,0,0,0,0,224,57,8,2,0,247,51,0,200,113,0,8,128,0,159,0,208,31,0,0,15,0,0,0,8,192,193,3,16,0,0,0,224,239,207,3,0,227,63,0,224,49,0,0,0,28,192,1,192,23,0,0,13,32,0,0,44,124,98,0,0,0,0,0,96,63,192,9,0,160,32,0,246,55,0,0,0,128,15,0,192,226,1,192,28,4,0,0,8,56,6,6,96,0,0,0,4,24,96,28,0,176,48,0,49,62,0,0,0,0,12,12,128,247,0,128,8,0,0,0,8,152,2,6,0,0,0,0,118,8,96,96,128,0,0,0,0,38,0,0,0,134,28,8,144,255,69,0,8,15,0,0,0,4,3,31,16,0,0,0,254,15,96,224,128,64,0,0,0,34,0,0,0,142,28,0,210,255,243,0,8,2,0,0,0,0,3,31,146,0,0,32,248,1,0,194,129,96,0,0,8,0,0,128,0,2,48,0,192,253,247,145,8,0,0,0,0,144,7,248,14,0,0,0,248,192,0,181,0,32,0,0,56,0,0,240,1,0,240,0,194,255,255,134,0,0,0,2,0,128,13,34,6,2,0,0,240,193,128,240,1,0,0,0,32,0,0,8,0,0,160,0,240,255,63,14,4,0,0,6,0,192,188,1,0,4,0,0,251,202,0,184,1,0,0,0,0,7,0,24,0,0,0,0,64,251,127,28,0,32,0,0,0,152,220,0,0,0,0,2,255,131,3,56,0,0,0,0,0,3,0,0,128,0,2,0,224,239,127,152,0,56,0,0,0,20,65,224,0,16,0,0,220,193,3,96,0,0,0,0,4,0,0,0,225,0,2,0,244,255,191,4,0,62,0,0,0,0,124,224,0,0,0,0,156,8,0,8,0,2,0,0,8,0,0,128,32,0,0,0,238,246,143,7,0,31,0,0,0,0,126,176,0,0,0,0,31,0,0,0,136,1,0,0,24,0,0,0,48,0,0,0,253,99,158,7,128,159,0,0,0,0,127,179,0,0,0,0,30,0,0,0,0,128,0,0,8,0,0,0,118,8,24,0,253,224,127,12,132,79,0,0,0,96,255,47,0,0,0,0,124,0,0,6,0,198,1,0,0,0,0,16,255,99,22,0,128,224,63,12,12,31,0,0,0,32,222,57,0,0,0,0,240,0,0,0,0,0,0,0,0,0,0,0,222,99,0,0,128,224,127,12,3,156,3,0,64,0,222,113,0,1,0,16,128,15,0,0,48,0,0,0,0,0,0,0,143,63,0,0,128,200,127,25,0,220,1,0,16,0,156,0,0,0,0,6,192,15,3,0,176,0,0,0,0,0,0,60,0,0,3,0,192,217,247,71,14,248,1,0,24,0,1,0,0,0,0,0,128,1,3,6,56,0,0,0,0,0,0,62,0,0,3,0,226,205,115,32,2,2,0,0,12,0,0,64,0,0,0,0,200,96,0,128,28,0,0,0,0,0,0,6,32,4,0,0,255,141,127,0,192,7,64,0,199,0,0,64,0,0,0,128,120,56,0,208,12,0,0,0,0,192,12,8,64,0,0,0,255,197,125,32,0,1,0,28,7,0,0,0,0,2,0,128,56,0,0,24,30,0,0,0,0,192,15,56,0,0,0,0,251,3,61,64,4,0,0,127,31,0,0,0,0,224,0,0,0,0,4,4,222,0,0,0,0,192,31,48,0,64,8,128,255,98,253,128,0,0,128,61,127,0,0,0,0,0,0,0,0,28,0,0,2,0,0,0,0,96,15,32,0,0,32,130,252,113,126,128,0,0,240,30,255,3,0,8,0,6,8,4,0,62,197,1,2,0,0,0,0,112,132,1,0,224,99,2,192,97,126,128,0,8,96,31,252,1,0,0,0,66,8,0,0,255,221,1,0,2,0,0,128,55,140,129,32,128,135,3,153,224,126,0,0,8,32,251,32,0,0,128,4,113,8,0,0,255,201,0,3,2,0,0,128,47,8,196,0,0,7,129,221,0,118,96,0,0,32,200,0,0,0,0,0,114,8,0,0,254,217,0,0,0,0,0,0,24,14,62,0,8,12,0,126,0,192,99,0,8,0,198,0,0,0,0,96,246,81,0,0,252,208,0,2,0,0,0,0,28,15,24,130,9,56,0,127,0,200,33,0,0,0,0,0,0,0,0,0,254,7,0,0,252,1,0,128,0,0,0,0,2,7,126,128,8,0,0,99,7,152,1,0,4,0,0,0,0,0,0,64,156,15,0,0,232,7,4,128,1,2,0,0,0,51,126,216,200,0,0,2,0,248,33,0,0,0,0,0,0,0,0,192,159,13,0,0,192,48,2,128,0,0,0,0,12,96,36,204,11,0,0,2,0,255,1,0,0,240,0,0,0,0,128,240,155,7,64,0,0,56,2,12,0,0,0,0,28,129,1,4,3,0,0,0,0,255,0,18,0,248,39,0,0,0,128,193,207,39,64,0,0,24,2,0,0,0,0,0,24,0,3,84,2,128,128,0,0,30,3,63,0,64,127,0,0,0,0,192,231,63,129,1,128,15,0,16,0,0,0,0,0,0,0,122,0,0,151,0,0,192,3,0,0,0,2,0,0,0,0,192,225,28,128,0,0,136,0,0,0,0,32,0,8,0,0,0,32,32,128,0,0,128,16,0,0,0,0,0,0,0,0,128,1,24,0,0,0,24,64,12,1,0,0,7,4,0,0,4,112,102,192,0,0,128,19,0,0,0,128,1,0,0,0,8,0,124,0,0,0,0,0,0,0,96,0,12,3,0,0,0,48,6,192,0,0,128,1,0,0,0,192,1,0,0,0,24,236,127,0,0,32,3,0,1,0,192,64,12,1,0,128,0,12,1,192,0,0,194,0,0,0,0,32,8,0,0,0,0,248,255,0,0,96,0,0,4,0,64,8,0,0,0,0,0,2,12,226,192,0,196,0,0,0,0,32,0,126,0,0,0,252,255,0,8,0,16,0,12,0,64,24,0,0,0,0,0,0,28,114,128,0,220,32,0,32,128,32,32,134,2,0,128,255,247,0,8,0,0,0,14,0,0,62,0,0,0,0,0,0,24,96,6,0,252,9,2,0,128,32,0,70,0,0,224,255,127,0,0,0,0,2,0,0,0,6,2,24,0,0,0,132,0,0,0,0,252,91,2,0,0,0,0,0,0,0,224,253,25,0,0,0,0,2,0,0,0,28,2,118,0,0,0,128,0,0,0,192,252,255,0,0,0,0,0,0,0,0,224,244,1,0,0,0,0,26,0,0,0,28,227,255,1,0,0,224,1,0,0,0,255,243,0,2,0,0,0,0,8,0,192,255,0,0,0,0,0,12,8,0,0,216,227,255,1,96,0,242,3,0,0,0,255,227,7,23,6,0,0,0,0,16,0,191,1,0,0,0,0,4,120,0,0,240,99,159,0,224,1,242,1,0,0,0,242,247,3,18,6,8,0,0,0,4,0,31,0,0,0,0,0,6,128,0,0,210,33,255,129,0,0,96,0,0,64,0,224,255,0,96,6,0,0,0,0,12,0,30,0,0,0,0,0,7,0,0,0,194,3,254,1,0,0,0,0,0,2,0,248,255,5,48,7,0,0,8,0,8,0,54,0,0,0,0,0,0,128,0,0,198,3,126,0,0,0,0,0,32,0,3,252,239,1,60,7,0,0,24,0,28,0,2,0,0,0,0,64,0,128,0,0,31,7,254,0,0,0,0,2,48,0,0,248,61,0,8,0,36,0,0,0,10,0,128,0,0,0,0,0,0,0,0,0,31,134,240,0,0,0,0,2,192,0,4,96,28,0,0,0,230,6,132,65,3,0,0,0,0,14,0,8,34,0,0,32,30,15,192,16,0,0,0,6,192,0,0,32,31,0,0,32,231,3,0,0,7,2,0,0,0,8,0,8,0,0,0,160,31,0,0,0,0,128,0,0,0,0,0,158,31,0,0,0,7,3,0,0,4,3,0,0,0,0,0,8,1,0,128,128,14,0,88,0,0,0,0,0,0,32,0,0,31,0,128,0,6,38,0,0,60,0,0,0,0,12,0,8,0,0,128,160,31,0,220,0,0,128,0,32,32,56,0,0,14,4,128,28,7,126,0,0,60,0,0,0,0,4,0,0,224,0,24,190,31,1,254,3,2,2,4,56,248,24,0,0,6,2,128,30,0,62,0,0,56,0,2,0,0,0,0,0,0,0,28,230,63,0,126,0,128,0,8,176,244,64,4,0,0,114,0,220,0,28,0,0,120,3,3,0,0,0,0,0,0,0,24,252,95,0,120,225,128,0,0,176,14,0,0,0,14,0,0,156,0,14,0,0,0,0,0,0,0,0,0,0,0,32,156,223,93,0,120,128,0,32,2,12,136,16,0,0,15,0,0,12,4,31,0,0,0,0,12,0,0,0,0,0,14,225,159,143,3,192,12,128,113,96,0,6,0,32,0,0,36,34,8,188,0,28,0,0,2,0,0,0,8,32,0,0,248,255,159,159,159,216,128,128,0,96,0,7,0,0,0,64,140,7,12,120,4,64,0,3,3,0,0,4,136,32,0,0,96,159,207,207,63,140,113,0,0,96,0,7,0,0,0,200,29,0,128,8,2,0,0,2,0,0,136,0,0,0,0,0,32,15,30,191,63,136,96,0,0,32,128,2,224,0,0,192,63,0,128,0,0,11,0,0,0,1,140,1,3,0,0,0,0,0,30,255,255,200,32,25,0,0,67,48,192,0,0,194,31,0,0,2,0,0,0,240,128,1,128,0,3,0,0,0,0,0,54,252,63,136,97,28,32,32,3,24,24,16,0,195,3,0,0,2,196,0,0,240,16,1,128,192,0,0,48,0,0,1,103,156,39,140,1,12,12,96,0,0,28};const uint16_t biome_grass[256] = {0x8DCE,0x95EB,0xBDAA,0x8DB1,0x7E0B,0x85B0,0x6B87,0x8DCE,0xBDAA,0x8DCE,0x85B2,0x85B2,0x85B2,0x85B2,0x5647,0x5647,0x95EB,0xBDAA,0x7E0B,0x85B0,0x8DB1,0x5E47,0x5E47,0x6627,0x8DCE,0x8DB1,0x85B2,0x8DCC,0x8DCC,0x53C6,0x85B2,0x85B2,0x85CF,0x85CF,0x8DB1,0xBDAA,0xBDAA,0x9409,0x9409,0x9409,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x95EB,0xBDAA,0x8DB1,0x7E0B,0x85B0,0x6B87,0x8DCE,0xBDAA,0x8DCE,0x85B2,0x85B2,0x85B2,0x85B2,0x5647,0x5647,0x95EB,0xBDAA,0x7E0B,0x85B0,0x8DB1,0x5E47,0x5E47,0x6627,0x8DCE,0x8DB1,0x85B2,0x8DCC,0x8DCC,0x53C6,0x85B2,0x85B2,0x85B0,0x85B0,0x8DB1,0xBDAA,0xBDAA,0x9409,0x9409,0x9409,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE,0x8DCE};const uint16_t biome_foliage[256] = {0x7529,0x7545,0xAD25,0x6D0D,0x5D66,0x6D2C,0x6B87,0x7529,0xAD25,0x7529,0x650F,0x650F,0x650F,0x650F,0x2DC1,0x2DC1,0x7545,0xAD25,0x5D66,0x6D2C,0x6D0D,0x35C1,0x35C1,0x3DC1,0x7529,0x6D0D,0x650F,0x6D48,0x6D48,0x5D66,0x650F,0x650F,0x6D2B,0x6D2B,0x6D0D,0xAD25,0xAD25,0x9C09,0x9C09,0x9C09,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7545,0xAD25,0x6D0D,0x5D66,0x6D2C,0x6B87,0x7529,0xAD25,0x7529,0x650F,0x650F,0x650F,0x650F,0x2DC1,0x2DC1,0x7545,0xAD25,0x5D66,0x6D2C,0x6D0D,0x35C1,0x35C1,0x3DC1,0x7529,0x6D0D,0x650F,0x6D48,0x6D48,0x5D66,0x650F,0x650F,0x6D2C,0x6D2C,0x6D0D,0xAD25,0xAD25,0x9C09,0x9C09,0x9C09,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529,0x7529};diff --git a/games/numblocks/src/data.h b/games/numblocks/src/data.hindex b0e7b53f..10077cd1 100644--- a/games/numblocks/src/data.h+++ b/games/numblocks/src/data.h@@ -4,7 +4,7 @@#include <stdint.h>#include "blocks.h"-#define NTEX 203+#define NTEX 211/* tex_flags: bits 0-4, the first palette index tinted by the biome (16: none); 0x20: has see-through texels */extern const uint8_t tex_px[NTEX][128];extern const uint16_t tex_pal[NTEX][16];@@ -224,6 +224,14 @@ extern const int8_t biome_temp[256]; /* temperature x 50 */#define TX_BED_HEAD_SIDE 200#define TX_WATER_FLOW 201#define TX_LAVA_FLOW 202+#define TX_CARROTS_STAGE_0 203+#define TX_CARROTS_STAGE_1 204+#define TX_CARROTS_STAGE_2 205+#define TX_CARROTS_STAGE_3 206+#define TX_POTATOES_STAGE_0 207+#define TX_POTATOES_STAGE_1 208+#define TX_POTATOES_STAGE_2 209+#define TX_POTATOES_STAGE_3 210extern const uint8_t spr_px[], spr_w[], spr_h[], spr_alpha[];extern const uint32_t spr_off[];@@ -242,5 +250,46 @@ extern const uint16_t blk_icon[B_COUNT]; /* sprite of its icon */#define SP_XP_BG 10#define SP_XP 11#define SP_BUBBLE 12+#define SP_FLAME 364+#define SP_ARROW 365+#define SP_ARMOR_FULL 366+#define SP_ARMOR_HALF 367+#define SP_BUBBLE_POP 368+#define SP_HEART_HIT 369+#define SP_BUTTON 370+#define SP_BUTTON_HOVER 371+#define SP_BUTTON_OFF 372+#define SP_SLOT_HELMET 373+#define SP_SLOT_CHESTPLATE 374+#define SP_SLOT_LEGGINGS 375+#define SP_SLOT_BOOTS 376+#define SP_STEVE 377+#define SP_DIRT_BG 378++#include "items.h"+extern const uint16_t blk_item[B_COUNT]; /* the item a block state counts as (0xFFFF: none) */+extern const uint16_t blk_fuel[B_COUNT]; /* ticks it burns in a furnace */+extern const char *const blk_label[B_COUNT], *const it_label[N_ITEMS];+extern const uint16_t it_icon[N_ITEMS], it_dur[N_ITEMS], it_fuel[N_ITEMS];+/* it_tier: the tool or armour material; it_a: attack damage, armour points or food; it_b: saturation x 10 */+extern const uint8_t it_kind[N_ITEMS], it_stack[N_ITEMS], it_tier[N_ITEMS], it_a[N_ITEMS], it_b[N_ITEMS];+extern const uint8_t it_place[N_ITEMS]; /* the block it places (255: none) */+typedef struct { uint16_t out; uint8_t n, w, h; uint16_t in[9]; } Recipe; /* w 0: shapeless, h of them */+#define N_RECIPES 186+extern const Recipe recipes[N_RECIPES];+#define N_SMELTING 26+extern const uint16_t smelting[N_SMELTING][2];+extern const uint16_t group_planks[]; /* ends with 0xFFFF */+extern const uint16_t group_wool[]; /* ends with 0xFFFF */+extern const uint16_t group_log[]; /* ends with 0xFFFF */+extern const uint16_t group_sapling[]; /* ends with 0xFFFF */+extern const uint8_t font_bits[96 * 8], font_w[96]; /* characters 32-127 */+extern const uint8_t img_rle[], img_w[], img_h[];+extern const uint32_t img_rows[];+extern const uint16_t img_row0[], img_pal[][16];+#define IMG_INVENTORY 0+#define IMG_CRAFTING_TABLE 1+#define IMG_FURNACE 2+#define IMG_CHEST 3#endifdiff --git a/games/numblocks/src/edits.c b/games/numblocks/src/edits.cindex 2f891274..370fd7d1 100644--- a/games/numblocks/src/edits.c+++ b/games/numblocks/src/edits.c@@ -1,62 +1,209 @@-/* The edit log: one entry per block the player changed, kept in chunk order- * so a chunk's entries are found by a binary search. */+/* The player's changes to the world, saved as they happen.+ *+ * The world is cut in regions of 4 x 4 chunks (64 x 64 columns). Each region+ * the player changed has a record in the calculator's storage, read where it+ * lies: sorted 32-bit entries, chunk (4 bits), x and z in it (8), y (7), then+ * the block (8, the top byte). New changes go to a small journal in RAM, kept+ * in the same order; when it fills up (and when the game saves), its entries+ * are merged into the records. */#include "edits.h"#include "nb.h"typedef struct {- int16_t cx, cz;- uint8_t xz, y, b, pad; /* xz: x | z << 4 */-} Edit;+ int16_t rx, rz;+ uint32_t e; /* the entry, as in the records */+} Journal;-static Edit ed[EDITS_MAX];-static int ned;+#define J_MAX 256+static Journal jn[J_MAX];+static int nj;+static char prefix[8] = "nb1";+static bool full; /* a record could not grow: storage is full */+static uint32_t *scratch;+static uint32_t scratch_n;-void edits_clear(void) { ned = 0; }-int edits_count(void) { return ned; }+void edits_setup(const char *world, uint32_t *buf, uint32_t n) {+ int i = 0;+ for (; world[i] && i < 7; i++) prefix[i] = world[i];+ prefix[i] = 0;+ scratch = buf;+ scratch_n = n;+}+bool edits_full(void) { return full; }-static inline int floordiv16(int a) { return a >= 0 ? a >> 4 : -((-a + 15) >> 4); }+static inline int floordiv(int a, int d) { return a >= 0 ? a / d : -((-a + d - 1) / d); }-static inline int64_t key(int cx, int cz, int xz, int y) {- return ((int64_t)(cz + 32768) << 40) | ((int64_t)(cx + 32768) << 24) | (int64_t)(xz << 8) | y;+/* "nb1r-3_12.nbe" */+static void region_name(char *out, int rx, int rz) {+ char *p = out;+ for (const char *s = prefix; *s;) *p++ = *s++;+ *p++ = 'r';+ int v[2] = {rx, rz};+ for (int k = 0; k < 2; k++) {+ if (k) *p++ = '_';+ int n = v[k];+ if (n < 0) *p++ = '-', n = -n;+ char t[8];+ int m = 0;+ do t[m++] = (char)('0' + n % 10), n /= 10;+ while (n);+ while (m) *p++ = t[--m];+ }+ const char *ext = ".nbe";+ while (*ext) *p++ = *ext++;+ *p = 0;}-static inline int64_t ekey(const Edit *e) { return key(e->cx, e->cz, e->xz, e->y); }-/* the first entry with a key >= k */-static int lower(int64_t k) {- int lo = 0, hi = ned;+/* a region's record (the last one looked up is remembered until records change) */+static bool cache_ok;+static int cache_rx, cache_rz, cache_n;+static const uint8_t *cache_r;+static const uint8_t *region(int rx, int rz, int *n) {+ if (!cache_ok || rx != cache_rx || rz != cache_rz) {+ char name[32];+ region_name(name, rx, rz);+ uint32_t len = 0;+ const uint8_t *d = plat_load(name, &len);+ cache_r = d;+ cache_n = d ? (int)(len / 4) : 0;+ cache_rx = rx, cache_rz = rz, cache_ok = true;+ }+ *n = cache_n;+ return cache_r;+}++void edits_clear(void) { nj = 0, full = false, cache_ok = false; }+void edits_forget(void) { cache_ok = false; }++/* records are not aligned in storage: entries are read a byte at a time */+static inline uint32_t rd32(const uint8_t *p) {+ uint32_t v;+ memcpy(&v, p, 4);+ return v;+}+#define R(i) rd32(r + 4 * (i))++/* entries are sorted by their low 24 bits */+#define KEY(e) ((e) & 0xFFFFFF)+static inline uint32_t entry_key(int x, int y, int z) {+ int cx = floordiv(x, 16), cz = floordiv(z, 16);+ int chunk = (cx & 3) | (cz & 3) << 2;+ int xz = (x & 15) | (z & 15) << 4;+ return (uint32_t)(chunk << 15 | xz << 7 | (y & 127));+}++static int jcmp(int rx, int rz, uint32_t key, const Journal *j) {+ if (rz != j->rz) return rz < j->rz ? -1 : 1;+ if (rx != j->rx) return rx < j->rx ? -1 : 1;+ uint32_t k = KEY(j->e);+ return key < k ? -1 : key > k;+}+static int jlower(int rx, int rz, uint32_t key) {+ int lo = 0, hi = nj;while (lo < hi) {int m = (lo + hi) / 2;- if (ekey(&ed[m]) < k) lo = m + 1;+ if (jcmp(rx, rz, key, &jn[m]) > 0) lo = m + 1;else hi = m;}return lo;}+static int rlower(const uint8_t *r, int n, uint32_t key) {+ int lo = 0, hi = n;+ while (lo < hi) {+ int m = (lo + hi) / 2;+ if (KEY(R(m)) < key) lo = m + 1;+ else hi = m;+ }+ return lo;+}++/* the journal's entries go into their regions' records */+bool edits_flush(void) {+ bool ok = true;+ int i = 0;+ while (i < nj) {+ int rx = jn[i].rx, rz = jn[i].rz, j = i;+ while (j < nj && jn[j].rx == rx && jn[j].rz == rz) j++;+ int n;+ const uint8_t *r = region(rx, rz, &n);+ /* merge the record and the journal's entries for it into the scratch buffer */+ uint32_t m = 0;+ int a = 0, b = i;+ while ((a < n || b < j) && m < scratch_n) {+ if (b >= j || (a < n && KEY(R(a)) < KEY(jn[b].e))) scratch[m++] = R(a), a++;+ else {+ if (a < n && KEY(R(a)) == KEY(jn[b].e)) a++;+ scratch[m++] = jn[b++].e;+ }+ }+ char name[32];+ region_name(name, rx, rz);+ cache_ok = false;+ if (a < n || b < j || !plat_save(name, scratch, m * 4)) {+ /* no room: these changes stay in the journal */+ ok = false;+ full = true;+ i = j;+ continue;+ }+ memmove(&jn[i], &jn[j], (size_t)(nj - j) * sizeof jn[0]);+ nj -= j - i;+ }+ return ok;+}bool edits_put(int x, int y, int z, int b) {- int cx = floordiv16(x), cz = floordiv16(z), xz = (x - cx * 16) | (z - cz * 16) << 4;- int64_t k = key(cx, cz, xz, y);- int i = lower(k);- if (i < ned && ekey(&ed[i]) == k) {- ed[i].b = (uint8_t)b;+ int rx = floordiv(x, 64), rz = floordiv(z, 64);+ uint32_t key = entry_key(x, y, z);+ int i = jlower(rx, rz, key);+ if (i < nj && jcmp(rx, rz, key, &jn[i]) == 0) {+ jn[i].e = key | (uint32_t)b << 24;return true;}- if (ned >= EDITS_MAX) return false;- memmove(&ed[i + 1], &ed[i], (size_t)(ned - i) * sizeof ed[0]);- ed[i] = (Edit){(int16_t)cx, (int16_t)cz, (uint8_t)xz, (uint8_t)y, (uint8_t)b, 0};- ned++;+ if (nj >= J_MAX) {+ edits_flush();+ if (nj >= J_MAX) return false;+ i = jlower(rx, rz, key);+ }+ memmove(&jn[i + 1], &jn[i], (size_t)(nj - i) * sizeof jn[0]);+ jn[i] = (Journal){(int16_t)rx, (int16_t)rz, key | (uint32_t)b << 24};+ nj++;return true;}+/* onto a chunk from gen_slab: the record's entries, then the journal's */void edits_apply(int cx, int cz, int y0, int h, uint8_t *slab) {- for (int i = lower(key(cx, cz, 0, 0)); i < ned && ed[i].cx == cx && ed[i].cz == cz; i++) {- int y = ed[i].y - y0;- if (y >= 0 && y < h) slab[(y * 16 + (ed[i].xz >> 4)) * 16 + (ed[i].xz & 15)] = ed[i].b;+ int rx = floordiv(cx, 4), rz = floordiv(cz, 4), chunk = (cx & 3) | (cz & 3) << 2;+ uint32_t k0 = (uint32_t)chunk << 15, k1 = k0 + (1 << 15);+ int n;+ const uint8_t *r = region(rx, rz, &n);+ for (int i = rlower(r, n, k0); i < n && KEY(R(i)) < k1; i++) {+ uint32_t e = R(i);+ int y = (int)(e & 127) - y0, xz = (int)(e >> 7) & 255;+ if (y >= 0 && y < h) slab[(y * 16 + (xz >> 4)) * 16 + (xz & 15)] = (uint8_t)(e >> 24);+ }+ for (int i = jlower(rx, rz, k0); i < nj && jn[i].rx == rx && jn[i].rz == rz && KEY(jn[i].e) < k1; i++) {+ int y = (int)(jn[i].e & 127) - y0, xz = (int)(jn[i].e >> 7) & 255;+ if (y >= 0 && y < h) slab[(y * 16 + (xz >> 4)) * 16 + (xz & 15)] = (uint8_t)(jn[i].e >> 24);}}+/* the column's sky top (1 + the highest opaque y) with the changes */int edits_top(int x, int z, int top) {- int cx = floordiv16(x), cz = floordiv16(z), xz = (x - cx * 16) | (z - cz * 16) << 4;- for (int i = lower(key(cx, cz, xz, 0)); i < ned && ed[i].cx == cx && ed[i].cz == cz && ed[i].xz == xz; i++)- if ((blk_flags[ed[i].b] & BF_OPAQUE) && ed[i].y + 1 > top) top = ed[i].y + 1;+ int rx = floordiv(x, 64), rz = floordiv(z, 64);+ uint32_t k0 = entry_key(x, 0, z), k1 = k0 + 128;+ int n;+ const uint8_t *r = region(rx, rz, &n);+ for (int i = rlower(r, n, k0); i < n && KEY(R(i)) < k1; i++) {+ uint32_t e = R(i);+ if ((blk_flags[e >> 24] & BF_OPAQUE) && (int)(e & 127) + 1 > top) top = (int)(e & 127) + 1;+ }+ for (int i = jlower(rx, rz, k0); i < nj && jn[i].rx == rx && jn[i].rz == rz && KEY(jn[i].e) < k1; i++)+ if ((blk_flags[jn[i].e >> 24] & BF_OPAQUE) && (int)(jn[i].e & 127) + 1 > top) top = (int)(jn[i].e & 127) + 1;return top;}++int edits_count(void) { return nj; }++/* the merge buffer, lent out between merges (n bytes at most) */+void *edits_scratch(uint32_t n) { return n <= scratch_n * 4 ? scratch : NULL; }diff --git a/games/numblocks/src/edits.h b/games/numblocks/src/edits.hindex 297e4376..e51df5d2 100644--- a/games/numblocks/src/edits.h+++ b/games/numblocks/src/edits.h@@ -4,10 +4,14 @@#include <stdbool.h>#include <stdint.h>-#define EDITS_MAX 2048+void edits_setup(const char *world, uint32_t *scratch, uint32_t n); /* the world's record prefix; a merge buffer */void edits_clear(void);-bool edits_put(int x, int y, int z, int b); /* false: the log is full */+bool edits_put(int x, int y, int z, int b); /* false: no room left to keep it */+bool edits_flush(void); /* the journal into storage; false if some did not fit */+bool edits_full(void);+void edits_forget(void); /* storage changed: records may have moved */void edits_apply(int cx, int cz, int y0, int h, uint8_t *slab); /* onto a chunk from gen_slab */int edits_top(int x, int z, int top); /* the column's sky top with the edits (1 + y) */int edits_count(void);+void *edits_scratch(uint32_t n); /* in the journal */#endifdiff --git a/games/numblocks/src/entity.c b/games/numblocks/src/entity.cnew file mode 100644index 00000000..4079540c--- /dev/null+++ b/games/numblocks/src/entity.c@@ -0,0 +1,118 @@+/* Entities: dropped items for now (EntityItem), mobs to come.+ *+ * An item falls (0.04 a tick, drag 0.98), slides (0.6 x 0.98 on the ground),+ * bounces a little, joins the same items near it, can be picked up after 10+ * ticks (40 when the player threw it) and disappears after 5 minutes. */+#include <math.h>+#include "nb.h"++Entity ents[N_ENT];++Entity *ent_new(int type, float x, float y, float z) {+ Entity *e = NULL;+ for (int i = 0; i < N_ENT; i++)+ if (ents[i].type == E_NONE) {+ e = &ents[i];+ break;+ }+ if (!e) {+ /* full: the oldest item makes room */+ int best = -1;+ for (int i = 0; i < N_ENT; i++)+ if (ents[i].type == E_ITEM && (best < 0 || ents[i].age > ents[best].age)) best = i;+ if (best < 0) return NULL;+ e = &ents[best];+ }+ memset(e, 0, sizeof *e);+ e->type = (uint8_t)type;+ e->x = e->px = x;+ e->y = e->py = y;+ e->z = e->pz = z;+ return e;+}++/* Block.spawnAsEntity / EntityPlayer.dropItem */+void ent_drop(int id, int count, int dmg, float x, float y, float z, bool thrown) {+ if (!id || count <= 0) return;+ Entity *e = ent_new(E_ITEM, x, y, z);+ if (!e) return;+ e->item.id = (uint16_t)id;+ e->item.aux = (uint16_t)(item_dur(id) ? dmg : count);+ if (thrown) {+ /* EntityPlayer.dropItem: 0.3 forwards, a little up, a little at random */+ float yaw = pl.yaw * 0.017453292f, pitch = pl.pitch * 0.017453292f;+ e->vx = -sinf(yaw) * cosf(pitch) * 0.3f;+ e->vz = cosf(yaw) * cosf(pitch) * 0.3f;+ e->vy = -sinf(pitch) * 0.3f + 0.1f;+ float a = rndf() * 6.2831853f, f = 0.02f * rndf();+ e->vx += cosf(a) * f;+ e->vy += (rndf() - rndf()) * 0.1f;+ e->vz += sinf(a) * f;+ e->delay = 40;+ } else {+ e->vx = rndf() * 0.2f - 0.1f;+ e->vy = 0.2f;+ e->vz = rndf() * 0.2f - 0.1f;+ e->delay = 10;+ }+ e->yaw = rndf() * 360;+}++static void item_tick(Entity *e) {+ float p[3] = {e->x, e->y, e->z}, v[3] = {e->vx, e->vy - 0.04f, e->vz};+ /* stuck in a block: pushed up out of it */+ float b[6];+ if (block_box((int)floorf(e->x), (int)floorf(e->y + 0.125f), (int)floorf(e->z), b) && e->y + 0.125f < b[4])+ v[1] = 0.1f;+ bool ground = phys_move(p, v, 0.25f, 0.25f);+ e->x = p[0], e->y = p[1], e->z = p[2];+ float f = ground ? 0.6f * 0.98f : 0.98f;+ e->vx = v[0] * f;+ e->vy = v[1] * 0.98f;+ e->vz = v[2] * f;+ if (ground) e->vy *= -0.5f;+ e->on_ground = ground;+ if (e->delay > 0) e->delay--;+ if (e->age >= 6000) {+ e->type = E_NONE;+ return;+ }+ /* EntityItem.searchForOtherItemsNearby: the same items within half a block join */+ if ((e->age & 7) == 0 && !item_dur(e->item.id)) {+ for (int i = 0; i < N_ENT; i++) {+ Entity *o = &ents[i];+ if (o == e || o->type != E_ITEM || o->item.id != e->item.id) continue;+ if (fabsf(o->x - e->x) > 0.75f || fabsf(o->y - e->y) > 0.5f || fabsf(o->z - e->z) > 0.75f) continue;+ int room = item_max(e->item.id) - e->item.aux;+ if (room <= 0) break;+ int k = o->item.aux < room ? o->item.aux : room;+ e->item.aux = (uint16_t)(e->item.aux + k);+ o->item.aux = (uint16_t)(o->item.aux - k);+ if (!o->item.aux) o->type = E_NONE;+ if (o->delay > e->delay) e->delay = o->delay;+ }+ }+ /* picked up: the player's box grown by 1, 0.5, 1 touches it */+ if (!e->delay && !pl.dead && fabsf(e->x - pl.x) < 0.3f + 0.125f + 1 && e->y + 0.25f > pl.y - 0.5f &&+ e->y < pl.y + 1.8f + 0.5f && fabsf(e->z - pl.z) < 0.3f + 0.125f + 1) {+ int left = inv_add(pl.inv, 36, e->item.id, item_count(&e->item), item_dur(e->item.id) ? e->item.aux : 0);+ if (!left) e->type = E_NONE;+ else if (!item_dur(e->item.id)) e->item.aux = (uint16_t)left;+ }+}++void ents_tick(void) {+ for (int i = 0; i < N_ENT; i++) {+ Entity *e = &ents[i];+ if (e->type == E_NONE) continue;+ e->px = e->x, e->py = e->y, e->pz = e->z;+ e->age++;+ /* far outside the loaded blocks: gone */+ if (!world_loaded((int)floorf(e->x), 64, (int)floorf(e->z))) {+ e->type = E_NONE;+ continue;+ }+ if (e->type == E_ITEM) item_tick(e);+ if (e->y < -64) e->type = E_NONE;+ }+}diff --git a/games/numblocks/src/gen.c b/games/numblocks/src/gen.cnew file mode 100644index 00000000..4de4875b--- /dev/null+++ b/games/numblocks/src/gen.c@@ -0,0 +1,1879 @@+/* NumBlocks world generator: Minecraft 1.8.8's overworld generator in C.+ *+ * Ported from the decompiled 1.8.8 server (Spigot v1_8_R3 names in comments):+ * GenLayer* (biomes), ChunkProviderGenerate (terrain noise, surface),+ * WorldGenCaves / WorldGenCanyon (caves, ravines), BiomeDecorator and the+ * WorldGen* features (population), WorldServer's spawn search.+ *+ * ---------------------------------------------------------------------------+ * DEVIATIONS FROM MINECRAFT 1.8.8 (everything else is meant to be exact)+ * ---------------------------------------------------------------------------+ * Arithmetic+ * - java.util.Random, GenLayer LCGs and all integer logic are bit exact.+ * - Perlin/simplex noise: the cell index and the fraction of every sample are+ * computed exactly (double/fixed point setup per octave), but the gradient,+ * fade and lerp math, the octave sums and the density formula run in float+ * instead of double. Results differ by ~1e-6 relative, so a block flips only+ * where the density is within that of 0 (very rare). Java's quirk of reusing+ * stale x-lerps while the y cell does not change is kept.+ * - Terrain interpolation is done per column (trilinear, float) rather than+ * with Java's incremental double steps: same maths, different rounding.+ * - MathHelper.sin/cos: the 65536-entry table is replaced by a float+ * polynomial on the same table index (within ~1 ulp of the table value).+ * - Caves, ravines, ore veins, lakes, big oak trees use float where Java uses+ * double (cave positions are kept in 32.32 fixed point so they do not drift).+ * - Voronoi biome zoom uses exact integer distances (double only for ties).+ * - Bedrock: nextInt(5) is drawn 256 times per column; the draws whose value is+ * unused are skipped with an LCG jump (identical unless a draw would have hit+ * Java's rejection loop, probability 1.4e-9 per draw).+ * Session-dependent behaviour of Minecraft, made deterministic+ * - WorldGenBigTree keeps the height of the first big oak of a biome for the+ * whole server session (and shortens it when blocked): here every big oak+ * draws its own height, as the first one of a session would.+ * - The decorator's huge mushroom keeps the first mushroom's colour for the+ * session: here each one draws its colour.+ * - Mutable biome top blocks (mega taiga podzol, extreme hills stone...) used+ * when caves expose dirt: the biome's default top block is used.+ * Population (decoration)+ * - Minecraft populates chunk P (writing into the 32x32 area P+8..P+24 that+ * spans four chunks) once P and its +x/+z neighbours exist, reading the live+ * world, so the result depends on chunk load order. Here gen_slab(C) replays+ * the four populations that write into C ((cx-1,cz-1), (cx,cz-1), (cx-1,cz),+ * (cx,cz)); each population P decides everything that affects its random+ * stream from a "view" that is identical whatever chunk is being generated:+ * the undecorated terrain of the 3x3 chunks around (a cached per-column+ * summary: top block, water floor, filler depth; no caves) plus P's own+ * earlier writes (height map, top block, plants). So objects crossing chunk+ * borders are always complete and consistent, but a population does not see+ * the other populations' trees, and does not see caves except where+ * Minecraft's outcome needs them: dungeons and lakes query the real caves+ * and ravines of their box (exact walk). Writes landing in C are re-checked+ * against C's real blocks (caves included), e.g. leaves never replace logs.+ * - Light is not computed: mushrooms need "shade" = an opaque block above in+ * the view; snow and ice ignore block light.+ * - Dungeon chests and spawners are placed; chest loot is not stored, but the+ * random numbers Minecraft draws for it are (so later features match).+ * - Structures are not generated (see TODO below), which matches Minecraft+ * only where no structure exists.+ * TODO: structures (villages, strongholds, mineshafts, temples, monuments).+ * ---------------------------------------------------------------------------+ */+#include "gen.h"++#include <string.h>++#include "blocks.h"++#if defined(__clang__)+#pragma clang fp contract(off)+#endif++typedef int64_t i64;+typedef uint64_t u64;+typedef int32_t i32;+typedef uint32_t u32;++#define SEA 63++/* ======================================================================== */+/* java.util.Random */+/* ======================================================================== */++#define JMUL 0x5DEECE66DULL+#define JADD 0xBULL+#define JMASK ((1ULL << 48) - 1)++typedef struct {+ u64 s;+} JRand;++static void jr_seed(JRand *r, i64 seed) { r->s = ((u64)seed ^ JMUL) & JMASK; }++static inline i32 jr_next(JRand *r, int bits) {+ r->s = (r->s * JMUL + JADD) & JMASK;+ return (i32)(u32)(r->s >> (48 - bits));+}++static i32 jr_int(JRand *r, i32 n) {+ if ((n & -n) == n) return (i32)(((i64)n * (i64)jr_next(r, 31)) >> 31);+ i32 bits, val;+ do {+ bits = jr_next(r, 31);+ val = bits % n;+ } while ((i32)((u32)bits - (u32)val + (u32)(n - 1)) < 0);+ return val;+}++static i64 jr_long(JRand *r) {+ i64 hi = jr_next(r, 32);+ i64 lo = jr_next(r, 32);+ return (i64)((u64)hi << 32) + lo;+}++static inline int jr_bool(JRand *r) { return jr_next(r, 1) != 0; }++static inline float jr_float(JRand *r) { return (float)jr_next(r, 24) * (1.0f / 16777216.0f); }++/* nextDouble as the exact 53-bit integer numerator (value = n / 2^53) */+static inline i64 jr_double_bits(JRand *r) {+ i64 a = jr_next(r, 26);+ i64 b = jr_next(r, 27);+ return (a << 27) + b;+}++static inline double jr_double(JRand *r) { return (double)jr_double_bits(r) * (1.0 / 9007199254740992.0); }++/* nextDouble rounded to float (one rounding from the exact value) */+static inline float jr_doublef(JRand *r) { return (float)jr_double_bits(r) * (1.0f / 9007199254740992.0f); }++/* LCG jump: advance by n steps (n < 1024) */+static u64 jump_mul[10], jump_add[10];++static void jr_jump_init(void) {+ u64 m = JMUL, a = JADD;+ for (int i = 0; i < 10; i++) {+ jump_mul[i] = m;+ jump_add[i] = a;+ a = (a * m + a) & JMASK;+ m = (m * m) & JMASK;+ }+}++static void jr_skip(JRand *r, unsigned n) {+ for (int i = 0; n; i++, n >>= 1)+ if (n & 1) r->s = (r->s * jump_mul[i] + jump_add[i]) & JMASK;+}++/* ======================================================================== */+/* MathHelper */+/* ======================================================================== */++/* sin of table index i (0..65535): (float)Math.sin(i * 2pi / 65536) */+static float sin_index(u32 i) {+ i &= 65535;+ if ((i & 16383) == 0) {+ static const float exact[4] = {0.0f, 1.0f, 1.2246467991473532e-16f, -1.0f};+ return exact[i >> 14];+ }+ u32 q = i >> 13; /* octant */+ i32 r = (i32)(i & 8191);+ int usecos;+ float sign = 1.0f;+ /* angle in [0, 2pi): octant 0: sin(r), 1: cos(8192-r), 2: cos(r), 3: sin(8192-r), 4..7 negated */+ if (q >= 4) {+ sign = -1.0f;+ q -= 4;+ }+ if (q == 0) {+ usecos = 0;+ } else if (q == 1) {+ usecos = 1;+ r = 8192 - r;+ } else if (q == 2) {+ usecos = 1;+ } else {+ usecos = 0;+ r = 8192 - r;+ }+ float x = (float)r * 9.58737992428526e-05f; /* 2pi/65536 */+ float x2 = x * x;+ float v;+ if (!usecos)+ v = x + x * x2 * (-1.6666654611e-1f + x2 * (8.3321608736e-3f + x2 * (-1.9515295891e-4f)));+ else+ v = 1.0f - 0.5f * x2 + x2 * x2 * (4.166664568298827e-2f + x2 * (-1.388731625493765e-3f + x2 * 2.443315711809948e-5f));+ return sign * v;+}++static inline float mh_sin(float f) { return sin_index((u32)(i32)(f * 10430.378f)); }+static inline float mh_cos(float f) { return sin_index((u32)(i32)(f * 10430.378f + 16384.0f)); }++static inline int floor_f(float f) {+ int i = (int)f;+ return f < (float)i ? i - 1 : i;+}++static inline int floor_d(double d) {+ int i = (int)d;+ return d < (double)i ? i - 1 : i;+}++/* ======================================================================== */+/* Biomes */+/* ======================================================================== */++enum {+ BI_OCEAN = 0, BI_PLAINS = 1, BI_DESERT = 2, BI_EXTREME_HILLS = 3, BI_FOREST = 4, BI_TAIGA = 5, BI_SWAMP = 6,+ BI_RIVER = 7, BI_FROZEN_OCEAN = 10, BI_FROZEN_RIVER = 11, BI_ICE_PLAINS = 12, BI_ICE_MOUNTAINS = 13,+ BI_MUSHROOM = 14, BI_MUSHROOM_SHORE = 15, BI_BEACH = 16, BI_DESERT_HILLS = 17, BI_FOREST_HILLS = 18,+ BI_TAIGA_HILLS = 19, BI_EH_EDGE = 20, BI_JUNGLE = 21, BI_JUNGLE_HILLS = 22, BI_JUNGLE_EDGE = 23,+ BI_DEEP_OCEAN = 24, BI_STONE_BEACH = 25, BI_COLD_BEACH = 26, BI_BIRCH = 27, BI_BIRCH_HILLS = 28,+ BI_ROOFED = 29, BI_COLD_TAIGA = 30, BI_COLD_TAIGA_HILLS = 31, BI_MEGA_TAIGA = 32, BI_MEGA_TAIGA_HILLS = 33,+ BI_EH_PLUS = 34, BI_SAVANNA = 35, BI_SAVANNA_PLATEAU = 36, BI_MESA = 37, BI_MESA_PLATEAU_F = 38,+ BI_MESA_PLATEAU = 39+};++/* Biome class (getClass(), with BiomeBaseSub reporting its parent's class) */+enum {+ C_OCEAN, C_PLAINS, C_DESERT, C_HILLS, C_FOREST, C_TAIGA, C_SWAMP, C_RIVER, C_ICE, C_MUSHROOM, C_BEACH,+ C_JUNGLE, C_STONEBEACH, C_SAVANNA, C_MESA+};++/* Surface builders */+enum { S_DEFAULT, S_HILLS, S_TAIGA_MEGA, S_SWAMP, S_SAVANNA_M, S_MESA };++/* Decoration (biome .a(World, Random, BlockPosition)) kinds */+enum {+ D_PLAIN, /* decorator only */+ D_PLAINS, /* BiomePlains */+ D_DESERT, /* BiomeDesert (well) */+ D_HILLS, /* BiomeBigHills (emerald, silverfish) */+ D_FOREST, /* BiomeForest */+ D_TAIGA, /* BiomeTaiga */+ D_ICE, /* BiomeIcePlains */+ D_JUNGLE, /* BiomeJungle (melon, vine draws) */+ D_SAVANNA, /* BiomeSavanna (double grass) */+ D_ROOFED_SUB /* Roofed Forest M: parent's BiomeForest.a with the parent biome */+};++/* Tree selector kinds (biome.a(Random)) */+enum {+ T_DEFAULT, T_HILLS, T_FOREST0, T_FOREST1, T_BIRCH, T_ROOFED, T_BIRCH_SUB, T_TAIGA0, T_TAIGA1, T_TAIGA2,+ T_SWAMP, T_ICE, T_JUNGLE, T_JUNGLE_EDGE, T_SAVANNA, T_MESA+};++/* Flower selector kinds; grass selector kinds */+enum { F_DEFAULT, F_PLAINS, F_FLOWER_FOREST, F_SWAMP };+enum { G_DEFAULT, G_TAIGA, G_JUNGLE };++typedef struct {+ uint8_t id;+ uint8_t cls, surf, deco, tree, flower, grass;+ uint8_t snowy; /* ax: BiomeBase.c() */+ uint8_t temp_cat; /* 0 ocean 1 cold 2 medium 3 warm */+ uint8_t top, filler;+ uint8_t mode; /* hills: aI; taiga: aI; forest: aG; mesa: bit0 bryce, bit1 plateau F; plains: sunflower; ice: spikes; jungle: edge */+ float depth, scale, temp;+ /* decorator: A trees, B flowers, C grass, D deadbush, E mushrooms, F reeds, G cactus, H gravel,+ * I sand, J clay, K big mushrooms, Z lily pads */+ int16_t dA;+ int8_t dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dZ;+ u32 color;+} Biome;++#define DEC(A, B, C, D, E, F, G, H, I, J, K, Z) A, B, C, D, E, F, G, H, I, J, K, Z+#define DDEF DEC(0, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0)++static const Biome BIOMES[] = {+ {0, C_OCEAN, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 0, B_GRASS, B_DIRT, 0, -1.0f, 0.1f, 0.5f, DDEF, 0x000070},+ {1, C_PLAINS, S_DEFAULT, D_PLAINS, T_DEFAULT, F_PLAINS, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 0.125f, 0.05f, 0.8f, DEC(-999, 4, 10, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x8DB360},+ {2, C_DESERT, S_DEFAULT, D_DESERT, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 3, B_SAND, B_SAND, 0, 0.125f, 0.05f, 2.0f, DEC(-999, 2, 1, 2, 0, 50, 10, 1, 3, 1, 0, 0), 0xFA9418},+ {3, C_HILLS, S_HILLS, D_HILLS, T_HILLS, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 1.0f, 0.5f, 0.2f, DDEF, 0x606060},+ {4, C_FOREST, S_DEFAULT, D_FOREST, T_FOREST0, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 0.1f, 0.2f, 0.7f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x056621},+ {5, C_TAIGA, S_DEFAULT, D_TAIGA, T_TAIGA0, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 0, 0.2f, 0.2f, 0.25f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x0B6659},+ {6, C_SWAMP, S_SWAMP, D_PLAIN, T_SWAMP, F_SWAMP, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, -0.2f, 0.1f, 0.8f, DEC(2, 1, 5, 1, 8, 10, 0, 0, 0, 1, 0, 4), 0x07F9B2},+ {7, C_RIVER, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, -0.5f, 0.0f, 0.5f, DDEF, 0x0000FF},+ {10, C_OCEAN, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 1, 0, B_GRASS, B_DIRT, 0, -1.0f, 0.1f, 0.0f, DDEF, 0x9090A0},+ {11, C_RIVER, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 1, 1, B_GRASS, B_DIRT, 0, -0.5f, 0.0f, 0.0f, DDEF, 0xA0A0FF},+ {12, C_ICE, S_DEFAULT, D_ICE, T_ICE, F_DEFAULT, G_DEFAULT, 1, 1, B_GRASS, B_DIRT, 0, 0.125f, 0.05f, 0.0f, DDEF, 0xFFFFFF},+ {13, C_ICE, S_DEFAULT, D_ICE, T_ICE, F_DEFAULT, G_DEFAULT, 1, 1, B_GRASS, B_DIRT, 0, 0.45f, 0.3f, 0.0f, DDEF, 0xA0A0A0},+ {14, C_MUSHROOM, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 2, B_MYCELIUM, B_DIRT, 0, 0.2f, 0.3f, 0.9f, DEC(-100, -100, -100, 0, 1, 0, 0, 1, 3, 1, 1, 0), 0xFF00FF},+ {15, C_MUSHROOM, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 2, B_MYCELIUM, B_DIRT, 0, 0.0f, 0.025f, 0.9f, DEC(-100, -100, -100, 0, 1, 0, 0, 1, 3, 1, 1, 0), 0xA000FF},+ {16, C_BEACH, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 2, B_SAND, B_SAND, 0, 0.0f, 0.025f, 0.8f, DEC(-999, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xFADE55},+ {17, C_DESERT, S_DEFAULT, D_DESERT, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 3, B_SAND, B_SAND, 0, 0.45f, 0.3f, 2.0f, DEC(-999, 2, 1, 2, 0, 50, 10, 1, 3, 1, 0, 0), 0xD25F12},+ {18, C_FOREST, S_DEFAULT, D_FOREST, T_FOREST0, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 0.45f, 0.3f, 0.7f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x22551C},+ {19, C_TAIGA, S_DEFAULT, D_TAIGA, T_TAIGA0, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 0, 0.45f, 0.3f, 0.25f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x163933},+ {20, C_HILLS, S_HILLS, D_HILLS, T_HILLS, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 1, 0.8f, 0.3f, 0.2f, DEC(3, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x72789A},+ {21, C_JUNGLE, S_DEFAULT, D_JUNGLE, T_JUNGLE, F_DEFAULT, G_JUNGLE, 0, 2, B_GRASS, B_DIRT, 0, 0.1f, 0.2f, 0.95f, DEC(50, 4, 25, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x537B09},+ {22, C_JUNGLE, S_DEFAULT, D_JUNGLE, T_JUNGLE, F_DEFAULT, G_JUNGLE, 0, 2, B_GRASS, B_DIRT, 0, 0.45f, 0.3f, 0.95f, DEC(50, 4, 25, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x2C4205},+ {23, C_JUNGLE, S_DEFAULT, D_JUNGLE, T_JUNGLE_EDGE, F_DEFAULT, G_JUNGLE, 0, 2, B_GRASS, B_DIRT, 1, 0.1f, 0.2f, 0.95f, DEC(2, 4, 25, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x628B17},+ {24, C_OCEAN, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 0, B_GRASS, B_DIRT, 0, -1.8f, 0.1f, 0.5f, DDEF, 0x000030},+ {25, C_STONEBEACH, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 2, B_STONE, B_STONE, 0, 0.1f, 0.8f, 0.2f, DEC(-999, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xA2A284},+ {26, C_BEACH, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 1, 1, B_SAND, B_SAND, 0, 0.0f, 0.025f, 0.05f, DEC(-999, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xFAF0C0},+ {27, C_FOREST, S_DEFAULT, D_FOREST, T_BIRCH, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 0.1f, 0.2f, 0.6f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x307444},+ {28, C_FOREST, S_DEFAULT, D_FOREST, T_BIRCH, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 0.45f, 0.3f, 0.6f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x1F5F32},+ {29, C_FOREST, S_DEFAULT, D_FOREST, T_ROOFED, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 3, 0.1f, 0.2f, 0.7f, DEC(-999, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x40511A},+ {30, C_TAIGA, S_DEFAULT, D_TAIGA, T_TAIGA0, F_DEFAULT, G_TAIGA, 1, 1, B_GRASS, B_DIRT, 0, 0.2f, 0.2f, -0.5f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x31554A},+ {31, C_TAIGA, S_DEFAULT, D_TAIGA, T_TAIGA0, F_DEFAULT, G_TAIGA, 1, 1, B_GRASS, B_DIRT, 0, 0.45f, 0.3f, -0.5f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x243F36},+ {32, C_TAIGA, S_TAIGA_MEGA, D_TAIGA, T_TAIGA1, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 1, 0.2f, 0.2f, 0.3f, DEC(10, 2, 7, 1, 3, 0, 0, 1, 3, 1, 0, 0), 0x596651},+ {33, C_TAIGA, S_TAIGA_MEGA, D_TAIGA, T_TAIGA1, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 1, 0.45f, 0.3f, 0.3f, DEC(10, 2, 7, 1, 3, 0, 0, 1, 3, 1, 0, 0), 0x454F3E},+ {34, C_HILLS, S_HILLS, D_HILLS, T_HILLS, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 1, 1.0f, 0.5f, 0.2f, DEC(3, 2, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x507050},+ {35, C_SAVANNA, S_DEFAULT, D_SAVANNA, T_SAVANNA, F_DEFAULT, G_DEFAULT, 0, 3, B_GRASS, B_DIRT, 0, 0.125f, 0.05f, 1.2f, DEC(1, 4, 20, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xBDB25F},+ {36, C_SAVANNA, S_DEFAULT, D_SAVANNA, T_SAVANNA, F_DEFAULT, G_DEFAULT, 0, 3, B_GRASS, B_DIRT, 0, 1.5f, 0.025f, 1.0f, DEC(1, 4, 20, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xA79D64},+ {37, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 0, 0.1f, 0.2f, 2.0f, DEC(-999, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xD94515},+ {38, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 2, 1.5f, 0.025f, 2.0f, DEC(5, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xB09765},+ {39, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 0, 1.5f, 0.025f, 2.0f, DEC(-999, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xCA8C65},+ /* mutated variants */+ {129, C_PLAINS, S_DEFAULT, D_PLAINS, T_DEFAULT, F_PLAINS, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 1, 0.125f, 0.05f, 0.8f, DEC(-999, 4, 10, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xB5DB88},+ {130, C_DESERT, S_DEFAULT, D_PLAIN, T_DEFAULT, F_DEFAULT, G_DEFAULT, 0, 3, B_SAND, B_SAND, 0, 0.225f, 0.25f, 2.0f, DEC(-999, 2, 1, 2, 0, 50, 10, 1, 3, 1, 0, 0), 0xFFBC40},+ {131, C_HILLS, S_HILLS, D_HILLS, T_HILLS, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 1.0f, 0.5f, 0.2f, DDEF, 0x888888},+ {132, C_FOREST, S_DEFAULT, D_FOREST, T_FOREST1, F_FLOWER_FOREST, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 1, 0.1f, 0.4f, 0.7f, DEC(6, 100, 1, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x6A7425},+ {133, C_TAIGA, S_DEFAULT, D_PLAIN, T_TAIGA0, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 0.3f, 0.4f, 0.25f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x338E81},+ {134, C_SWAMP, S_SWAMP, D_PLAIN, T_SWAMP, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, -0.1f, 0.3f, 0.8f, DEC(2, 1, 5, 1, 8, 10, 0, 0, 0, 1, 0, 4), 0x2FFFDA},+ {140, C_ICE, S_DEFAULT, D_ICE, T_ICE, F_DEFAULT, G_DEFAULT, 1, 1, B_SNOW, B_DIRT, 1, 0.425f, 0.45f, 0.0f, DDEF, 0xB4DCDC},+ {149, C_JUNGLE, S_DEFAULT, D_PLAIN, T_JUNGLE, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 0.2f, 0.4f, 0.95f, DEC(50, 4, 25, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x7BA331},+ {151, C_JUNGLE, S_DEFAULT, D_PLAIN, T_JUNGLE_EDGE, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 1, 0.2f, 0.4f, 0.95f, DEC(2, 4, 25, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x8AB33F},+ {155, C_FOREST, S_DEFAULT, D_PLAIN, T_BIRCH_SUB, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 0.2f, 0.4f, 0.6f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x589C6C},+ {156, C_FOREST, S_DEFAULT, D_PLAIN, T_BIRCH_SUB, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 0.55f, 0.5f, 0.6f, DEC(10, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x47875A},+ {157, C_FOREST, S_DEFAULT, D_ROOFED_SUB, T_ROOFED, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 3, 0.2f, 0.4f, 0.7f, DEC(-999, 2, 2, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0x687942},+ {158, C_TAIGA, S_DEFAULT, D_PLAIN, T_TAIGA0, F_DEFAULT, G_DEFAULT, 1, 1, B_GRASS, B_DIRT, 0, 0.3f, 0.4f, -0.5f, DEC(10, 2, 1, 0, 1, 0, 0, 1, 3, 1, 0, 0), 0x597D72},+ {160, C_TAIGA, S_TAIGA_MEGA, D_TAIGA, T_TAIGA2, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 2, 0.2f, 0.2f, 0.25f, DEC(10, 2, 7, 1, 3, 0, 0, 1, 3, 1, 0, 0), 0x818E79},+ {161, C_TAIGA, S_TAIGA_MEGA, D_TAIGA, T_TAIGA2, F_DEFAULT, G_TAIGA, 0, 2, B_GRASS, B_DIRT, 2, 0.2f, 0.2f, 0.25f, DEC(10, 2, 7, 1, 3, 0, 0, 1, 3, 1, 0, 0), 0x6D7766},+ {162, C_HILLS, S_HILLS, D_HILLS, T_HILLS, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 2, 1.0f, 0.5f, 0.2f, DDEF, 0x789878},+ {163, C_SAVANNA, S_SAVANNA_M, D_PLAIN, T_SAVANNA, F_DEFAULT, G_DEFAULT, 0, 3, B_GRASS, B_DIRT, 0, 0.3625f, 1.225f, 1.1f, DEC(2, 2, 5, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xE5DA87},+ {164, C_SAVANNA, S_SAVANNA_M, D_PLAIN, T_SAVANNA, F_DEFAULT, G_DEFAULT, 0, 2, B_GRASS, B_DIRT, 0, 1.05f, 1.2125f, 1.0f, DEC(2, 2, 5, 0, 0, 0, 0, 1, 3, 1, 0, 0), 0xCFC58C},+ {165, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 1, 0.1f, 0.2f, 2.0f, DEC(-999, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xFF6D3D},+ {166, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 2, 0.45f, 0.3f, 2.0f, DEC(5, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xD8BF8D},+ {167, C_MESA, S_MESA, D_PLAIN, T_MESA, F_DEFAULT, G_DEFAULT, 0, 3, B_RED_SAND, B_STAINED_CLAY_WHITE, 0, 0.45f, 0.3f, 2.0f, DEC(-999, 0, 1, 20, 0, 3, 5, 1, 3, 1, 0, 0), 0xF2B48D},+};+#define NBIOMES ((int)(sizeof(BIOMES) / sizeof(BIOMES[0])))++static uint8_t biome_index[256]; /* id -> index in BIOMES, 255 = none */++static const Biome *bio(int id) {+ if (id < 0 || id > 255 || biome_index[id] == 255) return &BIOMES[0]; /* BiomeBase.getBiome(id, OCEAN) */+ return &BIOMES[biome_index[id]];+}++static int bio_exists(int id) { return id >= 0 && id < 256 && biome_index[id] != 255; }++/* GenLayer.a(int, int): same biome "kind" */+static int bio_same(int i, int j) {+ if (i == j) return 1;+ if (i == BI_MESA_PLATEAU_F || i == BI_MESA_PLATEAU) return j == BI_MESA_PLATEAU_F || j == BI_MESA_PLATEAU;+ if (!bio_exists(i) || !bio_exists(j)) return 0;+ return bio(i)->cls == bio(j)->cls;+}++static int is_ocean_id(int i) { return i == BI_OCEAN || i == BI_DEEP_OCEAN || i == BI_FROZEN_OCEAN; }++/* ======================================================================== */+/* GenLayer stack */+/* ======================================================================== */++#define LMUL 6364136223846793005ULL+#define LADD 1442695040888963407ULL++enum {+ L_ISLAND0, L_ZOOM, L_FUZZY, L_ISLAND, L_ICEPLAINS, L_TOPSOIL, L_SPEC1, L_SPEC2, L_SPEC3, L_MUSHISLAND,+ L_DEEPOCEAN, L_CLEANER, L_BIOME, L_DESERT, L_HILLS, L_PLAINS, L_MUSHSHORE, L_RIVER, L_SMOOTH+};++typedef struct {+ uint8_t type;+ int16_t seed;+ uint8_t noworld; /* never initialised with the world seed (c stays 0) */+} LayerDef;++static const LayerDef LBASE[] = {+ {L_ISLAND0, 1, 0}, {L_FUZZY, 2000, 0}, {L_ISLAND, 1, 0}, {L_ZOOM, 2001, 0}, {L_ISLAND, 2, 0},+ {L_ISLAND, 50, 0}, {L_ISLAND, 70, 0}, {L_ICEPLAINS, 2, 0}, {L_TOPSOIL, 2, 0}, {L_ISLAND, 3, 0},+ {L_SPEC1, 2, 0}, {L_SPEC2, 2, 0}, {L_SPEC3, 3, 0}, {L_ZOOM, 2002, 0}, {L_ZOOM, 2003, 0},+ {L_ISLAND, 4, 0}, {L_MUSHISLAND, 5, 0}, {L_DEEPOCEAN, 4, 0},+};+#define NBASE 18+/* the river noise used by GenLayerRegionHills: its two zoom layers are never seeded with the world seed */+static const LayerDef LHILLSRIVER[] = {{L_CLEANER, 100, 0}, {L_ZOOM, 1000, 1}, {L_ZOOM, 1001, 1}};+static const LayerDef LRIVER[] = {{L_CLEANER, 100, 0}, {L_ZOOM, 1000, 0}, {L_ZOOM, 1001, 0}, {L_ZOOM, 1000, 0},+ {L_ZOOM, 1001, 0}, {L_ZOOM, 1002, 0}, {L_ZOOM, 1003, 0}, {L_RIVER, 1, 0},+ {L_SMOOTH, 1000, 0}};+static const LayerDef LBIOME1[] = {{L_BIOME, 200, 0}, {L_ZOOM, 1000, 0}, {L_ZOOM, 1001, 0}, {L_DESERT, 1000, 0}};+static const LayerDef LBIOME2[] = {{L_HILLS, 1000, 0}, {L_PLAINS, 1001, 0}, {L_ZOOM, 1000, 0},+ {L_ISLAND, 3, 0}, {L_ZOOM, 1001, 0}, {L_MUSHSHORE, 1000, 0},+ {L_ZOOM, 1002, 0}, {L_ZOOM, 1003, 0}, {L_SMOOTH, 1000, 0}};++static i64 g_seed;+static i64 lay_wseed[19 + 32]; /* world-seeded "c" per distinct layer seed, see layer_c() */++static i64 layer_base(i64 s) {+ u64 b = (u64)s;+ for (int i = 0; i < 3; i++) {+ b *= b * LMUL + LADD;+ b += (u64)s;+ }+ return (i64)b;+}++static i64 layer_world(i64 s) {+ u64 b = (u64)layer_base(s);+ u64 c = (u64)g_seed;+ for (int i = 0; i < 3; i++) {+ c *= c * LMUL + LADD;+ c += b;+ }+ return (i64)c;+}++/* cache of world-seeded c by layer seed (the seeds used are few) */+static const int16_t LSEEDS[] = {1, 2, 3, 4, 5, 10, 50, 70, 100, 200, 1000, 1001, 1002, 1003, 2000, 2001, 2002, 2003};+#define NLSEEDS 18++static i64 layer_c(int seed, int noworld) {+ if (noworld) return 0;+ for (int i = 0; i < NLSEEDS; i++)+ if (LSEEDS[i] == seed) return lay_wseed[i];+ return layer_world(seed);+}++/* layer RNG state */+typedef struct {+ i64 c, d;+} LRand;++static inline void lr_chunk(LRand *r, i64 x, i64 z) {+ u64 d = (u64)r->c;+ d *= d * LMUL + LADD;+ d += (u64)x;+ d *= d * LMUL + LADD;+ d += (u64)z;+ d *= d * LMUL + LADD;+ d += (u64)x;+ d *= d * LMUL + LADD;+ d += (u64)z;+ r->d = (i64)d;+}++static inline int lr_int(LRand *r, int n) {+ int j = (int)((r->d >> 24) % (i64)n);+ if (j < 0) j += n;+ u64 d = (u64)r->d;+ d *= d * LMUL + LADD;+ d += (u64)r->c;+ r->d = (i64)d;+ return j;+}++static inline int sel_mode(LRand *r, int i, int j, int k, int l) {+ if (j == k && k == l) return j;+ if (i == j && i == k) return i;+ if (i == j && i == l) return i;+ if (i == k && i == l) return i;+ if (i == j && k != l) return i;+ if (i == k && j != l) return i;+ if (i == l && j != k) return i;+ if (j == k && i != l) return j;+ if (j == l && i != k) return j;+ if (k == l && i != j) return k;+ int a[4] = {i, j, k, l};+ return a[lr_int(r, 4)];+}++/* Layer scratch: one bump-allocated int32 area */+static i32 *lay_mem; /* points into the shared scratch union */+static int lay_top, lay_peak, lay_cap;++static i32 *lay_alloc(int n) {+ i32 *p = lay_mem + lay_top;+ lay_top += n;+ if (lay_top > lay_peak) lay_peak = lay_top;+ if (lay_top > lay_cap) {+ /* should not happen with the request sizes used; clamp to avoid corruption */+ lay_top = lay_cap;+ return lay_mem + lay_cap - n;+ }+ return p;+}++/* parent window of a layer for an output window */+static void layer_parent_win(int type, int x, int z, int w, int h, int *px, int *pz, int *pw, int *ph) {+ switch (type) {+ case L_ZOOM:+ case L_FUZZY:+ *px = x >> 1;+ *pz = z >> 1;+ *pw = (w >> 1) + 2;+ *ph = (h >> 1) + 2;+ break;+ case L_SPEC3:+ case L_CLEANER:+ case L_BIOME:+ *px = x;+ *pz = z;+ *pw = w;+ *ph = h;+ break;+ default:+ *px = x - 1;+ *pz = z - 1;+ *pw = w + 2;+ *ph = h + 2;+ break;+ }+}++/* Applies one layer: in = parent window (px,pz,pw,ph), out = (x,z,w,h). in2 is the second+ * input (hills river noise, same window as in). */+static void layer_apply(const LayerDef *L, const i32 *in, const i32 *in2, i32 *out, int x, int z, int w, int h) {+ LRand r;+ r.c = layer_c(L->seed, L->noworld);+ int pw = w + 2;+ switch (L->type) {+ case L_ISLAND0:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ out[i + j * w] = lr_int(&r, 10) == 0 ? 1 : 0;+ }+ if (x > -w && x <= 0 && z > -h && z <= 0) out[-x + -z * w] = 1;+ break;+ case L_ZOOM:+ case L_FUZZY: {+ int px = x >> 1, pz = z >> 1, ppw = (w >> 1) + 2;+ int cx0 = x >> 1, cx1 = (x + w - 1) >> 1, cz0 = z >> 1, cz1 = (z + h - 1) >> 1;+ for (int cz = cz0; cz <= cz1; cz++)+ for (int cx = cx0; cx <= cx1; cx++) {+ int ix = cx - px, iz = cz - pz;+ int a = in[ix + iz * ppw], b = in[ix + (iz + 1) * ppw];+ int c = in[ix + 1 + iz * ppw], d = in[ix + 1 + (iz + 1) * ppw];+ lr_chunk(&r, (i64)cx << 1, (i64)cz << 1);+ int v00 = a;+ int v01 = lr_int(&r, 2) ? b : a;+ int v10 = lr_int(&r, 2) ? c : a;+ int v11;+ if (L->type == L_FUZZY) {+ int arr[4] = {a, c, b, d};+ v11 = arr[lr_int(&r, 4)];+ } else {+ v11 = sel_mode(&r, a, c, b, d);+ }+ int bx = (cx << 1) - x, bz = (cz << 1) - z;+ if (bx >= 0 && bz >= 0) out[bx + bz * w] = v00;+ if (bx >= 0 && bz + 1 < h) out[bx + (bz + 1) * w] = v01;+ if (bx + 1 < w && bz >= 0) out[bx + 1 + bz * w] = v10;+ if (bx + 1 < w && bz + 1 < h) out[bx + 1 + (bz + 1) * w] = v11;+ }+ break;+ }+ case L_ISLAND:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int a = in[i + j * pw], b = in[i + 2 + j * pw], c = in[i + (j + 2) * pw], d = in[i + 2 + (j + 2) * pw];+ int k = in[i + 1 + (j + 1) * pw];+ lr_chunk(&r, x + i, z + j);+ int v;+ if (k == 0 && (a != 0 || b != 0 || c != 0 || d != 0)) {+ int l3 = 1, i4 = 1;+ if (a != 0 && lr_int(&r, l3++) == 0) i4 = a;+ if (b != 0 && lr_int(&r, l3++) == 0) i4 = b;+ if (c != 0 && lr_int(&r, l3++) == 0) i4 = c;+ if (d != 0 && lr_int(&r, l3++) == 0) i4 = d;+ if (lr_int(&r, 3) == 0) v = i4;+ else if (i4 == 4) v = 4;+ else v = 0;+ } else if (k > 0 && (a == 0 || b == 0 || c == 0 || d == 0)) {+ if (lr_int(&r, 5) == 0) v = k == 4 ? 4 : 0;+ else v = k;+ } else {+ v = k;+ }+ out[i + j * w] = v;+ }+ break;+ case L_ICEPLAINS:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw];+ int s = in[i + 1 + (j + 2) * pw], k = in[i + 1 + (j + 1) * pw];+ out[i + j * w] = k;+ lr_chunk(&r, x + i, z + j);+ if (k == 0 && n == 0 && e == 0 && ww == 0 && s == 0 && lr_int(&r, 2) == 0) out[i + j * w] = 1;+ }+ break;+ case L_TOPSOIL:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int k = in[i + 1 + (j + 1) * pw];+ lr_chunk(&r, x + i, z + j);+ if (k == 0) {+ out[i + j * w] = 0;+ } else {+ int l = lr_int(&r, 6);+ out[i + j * w] = l == 0 ? 4 : (l <= 1 ? 3 : 1);+ }+ }+ break;+ case L_SPEC1:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + 1 + (j + 1) * pw];+ if (k == 1) {+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw];+ if (n == 3 || e == 3 || ww == 3 || s == 3 || n == 4 || e == 4 || ww == 4 || s == 4) k = 2;+ }+ out[i + j * w] = k;+ }+ break;+ case L_SPEC2:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int k = in[i + 1 + (j + 1) * pw];+ if (k == 4) {+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw];+ if (n == 2 || e == 2 || ww == 2 || s == 2 || n == 1 || e == 1 || ww == 1 || s == 1) k = 3;+ }+ out[i + j * w] = k;+ }+ break;+ case L_SPEC3:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + j * w];+ if (k != 0 && lr_int(&r, 13) == 0) k |= (1 + lr_int(&r, 15)) << 8 & 3840;+ out[i + j * w] = k;+ }+ break;+ case L_MUSHISLAND:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int a = in[i + j * pw], b = in[i + 2 + j * pw], c = in[i + (j + 2) * pw], d = in[i + 2 + (j + 2) * pw];+ int k = in[i + 1 + (j + 1) * pw];+ lr_chunk(&r, x + i, z + j);+ if (k == 0 && a == 0 && b == 0 && c == 0 && d == 0 && lr_int(&r, 100) == 0) out[i + j * w] = BI_MUSHROOM;+ else out[i + j * w] = k;+ }+ break;+ case L_DEEPOCEAN:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw], k = in[i + 1 + (j + 1) * pw];+ int c = (n == 0) + (e == 0) + (ww == 0) + (s == 0);+ out[i + j * w] = (k == 0 && c > 3) ? BI_DEEP_OCEAN : k;+ }+ break;+ case L_CLEANER:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ out[i + j * w] = in[i + j * w] > 0 ? lr_int(&r, 299999) + 2 : 0;+ }+ break;+ case L_BIOME: {+ static const uint8_t warm[6] = {BI_DESERT, BI_DESERT, BI_DESERT, BI_SAVANNA, BI_SAVANNA, BI_PLAINS};+ static const uint8_t medium[6] = {BI_FOREST, BI_ROOFED, BI_EXTREME_HILLS, BI_PLAINS, BI_BIRCH, BI_SWAMP};+ static const uint8_t cold[4] = {BI_FOREST, BI_EXTREME_HILLS, BI_TAIGA, BI_PLAINS};+ static const uint8_t ice[4] = {BI_ICE_PLAINS, BI_ICE_PLAINS, BI_ICE_PLAINS, BI_COLD_TAIGA};+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + j * w];+ int sp = (k & 3840) >> 8;+ k &= ~3840;+ int v;+ if (is_ocean_id(k) || k == BI_MUSHROOM) v = k;+ else if (k == 1) v = sp > 0 ? (lr_int(&r, 3) == 0 ? BI_MESA_PLATEAU : BI_MESA_PLATEAU_F) : warm[lr_int(&r, 6)];+ else if (k == 2) v = sp > 0 ? BI_JUNGLE : medium[lr_int(&r, 6)];+ else if (k == 3) v = sp > 0 ? BI_MEGA_TAIGA : cold[lr_int(&r, 4)];+ else if (k == 4) v = ice[lr_int(&r, 4)];+ else v = BI_MUSHROOM;+ out[i + j * w] = v;+ }+ break;+ }+ case L_DESERT:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + 1 + (j + 1) * pw];+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw];+ int v;+ /* a(...): extreme hills edge */+ if (bio_same(k, BI_EXTREME_HILLS)) {+ /* b(int,int): same kind, or compatible temperatures */+#define TEMPOK(q, t) (bio_same(q, t) || (bio_exists(q) && bio_exists(t) && (bio(q)->temp_cat == bio(t)->temp_cat || bio(q)->temp_cat == 2 || bio(t)->temp_cat == 2)))+ v = (TEMPOK(n, BI_EXTREME_HILLS) && TEMPOK(e, BI_EXTREME_HILLS) && TEMPOK(ww, BI_EXTREME_HILLS) &&+ TEMPOK(s, BI_EXTREME_HILLS))+ ? k+ : BI_EH_EDGE;+ } else if (k == BI_MESA_PLATEAU_F) {+ v = (bio_same(n, k) && bio_same(e, k) && bio_same(ww, k) && bio_same(s, k)) ? k : BI_MESA;+ } else if (k == BI_MESA_PLATEAU) {+ v = (bio_same(n, k) && bio_same(e, k) && bio_same(ww, k) && bio_same(s, k)) ? k : BI_MESA;+ } else if (k == BI_MEGA_TAIGA) {+ v = (bio_same(n, k) && bio_same(e, k) && bio_same(ww, k) && bio_same(s, k)) ? k : BI_TAIGA;+ } else if (k == BI_DESERT) {+ v = (n != BI_ICE_PLAINS && e != BI_ICE_PLAINS && ww != BI_ICE_PLAINS && s != BI_ICE_PLAINS) ? k : BI_EH_PLUS;+ } else if (k == BI_SWAMP) {+ if (n != BI_DESERT && e != BI_DESERT && ww != BI_DESERT && s != BI_DESERT && n != BI_COLD_TAIGA &&+ e != BI_COLD_TAIGA && ww != BI_COLD_TAIGA && s != BI_COLD_TAIGA && n != BI_ICE_PLAINS &&+ e != BI_ICE_PLAINS && ww != BI_ICE_PLAINS && s != BI_ICE_PLAINS)+ v = (n != BI_JUNGLE && s != BI_JUNGLE && e != BI_JUNGLE && ww != BI_JUNGLE) ? k : BI_JUNGLE_EDGE;+ else+ v = BI_PLAINS;+ } else {+ v = k;+ }+ out[i + j * w] = v;+ }+ break;+ case L_HILLS:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + 1 + (j + 1) * pw];+ int l = in2[i + 1 + (j + 1) * pw];+ int flag = (l - 2) % 29 == 0;+ int v;+ if (k != 0 && l >= 2 && (l - 2) % 29 == 1 && k < 128) {+ v = bio_exists(k + 128) ? k + 128 : k;+ } else if (lr_int(&r, 3) != 0 && !flag) {+ v = k;+ } else {+ int i2 = k;+ if (k == BI_DESERT) i2 = BI_DESERT_HILLS;+ else if (k == BI_FOREST) i2 = BI_FOREST_HILLS;+ else if (k == BI_BIRCH) i2 = BI_BIRCH_HILLS;+ else if (k == BI_ROOFED) i2 = BI_PLAINS;+ else if (k == BI_TAIGA) i2 = BI_TAIGA_HILLS;+ else if (k == BI_MEGA_TAIGA) i2 = BI_MEGA_TAIGA_HILLS;+ else if (k == BI_COLD_TAIGA) i2 = BI_COLD_TAIGA_HILLS;+ else if (k == BI_PLAINS) i2 = lr_int(&r, 3) == 0 ? BI_FOREST_HILLS : BI_FOREST;+ else if (k == BI_ICE_PLAINS) i2 = BI_ICE_MOUNTAINS;+ else if (k == BI_JUNGLE) i2 = BI_JUNGLE_HILLS;+ else if (k == BI_OCEAN) i2 = BI_DEEP_OCEAN;+ else if (k == BI_EXTREME_HILLS) i2 = BI_EH_PLUS;+ else if (k == BI_SAVANNA) i2 = BI_SAVANNA_PLATEAU;+ else if (bio_same(k, BI_MESA_PLATEAU_F)) i2 = BI_MESA;+ else if (k == BI_DEEP_OCEAN && lr_int(&r, 3) == 0) i2 = lr_int(&r, 2) == 0 ? BI_PLAINS : BI_FOREST;+ if (flag && i2 != k) i2 = bio_exists(i2 + 128) ? i2 + 128 : k;+ if (i2 == k) {+ v = k;+ } else {+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw];+ int c = bio_same(n, k) + bio_same(e, k) + bio_same(ww, k) + bio_same(s, k);+ v = c >= 3 ? i2 : k;+ }+ }+ out[i + j * w] = v;+ }+ break;+ case L_PLAINS:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + 1 + (j + 1) * pw];+ out[i + j * w] = (lr_int(&r, 57) == 0 && k == BI_PLAINS) ? BI_PLAINS + 128 : k;+ }+ break;+ case L_MUSHSHORE:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ lr_chunk(&r, x + i, z + j);+ int k = in[i + 1 + (j + 1) * pw];+ int n = in[i + 1 + j * pw], e = in[i + 2 + (j + 1) * pw], ww = in[i + (j + 1) * pw],+ s = in[i + 1 + (j + 2) * pw];+ int v;+ const Biome *b = bio_exists(k) ? bio(k) : 0;+#define JUNGLEOK(q) ((bio_exists(q) && bio(q)->cls == C_JUNGLE) || (q) == BI_JUNGLE_EDGE || (q) == BI_JUNGLE || (q) == BI_JUNGLE_HILLS || (q) == BI_FOREST || (q) == BI_TAIGA || is_ocean_id(q))+#define ISMESA(q) (bio_exists(q) && bio(q)->cls == C_MESA)+ if (k == BI_MUSHROOM) {+ v = (n != BI_OCEAN && e != BI_OCEAN && ww != BI_OCEAN && s != BI_OCEAN) ? k : BI_MUSHROOM_SHORE;+ } else if (b && b->cls == C_JUNGLE) {+ if (JUNGLEOK(n) && JUNGLEOK(e) && JUNGLEOK(ww) && JUNGLEOK(s))+ v = (!is_ocean_id(n) && !is_ocean_id(e) && !is_ocean_id(ww) && !is_ocean_id(s)) ? k : BI_BEACH;+ else+ v = BI_JUNGLE_EDGE;+ } else if (k != BI_EXTREME_HILLS && k != BI_EH_PLUS && k != BI_EH_EDGE) {+ if (b && b->snowy) {+ v = is_ocean_id(k) ? k : ((!is_ocean_id(n) && !is_ocean_id(e) && !is_ocean_id(ww) && !is_ocean_id(s)) ? k : BI_COLD_BEACH);+ } else if (k != BI_MESA && k != BI_MESA_PLATEAU_F) {+ if (k != BI_OCEAN && k != BI_DEEP_OCEAN && k != BI_RIVER && k != BI_SWAMP)+ v = (!is_ocean_id(n) && !is_ocean_id(e) && !is_ocean_id(ww) && !is_ocean_id(s)) ? k : BI_BEACH;+ else+ v = k;+ } else {+ if (!is_ocean_id(n) && !is_ocean_id(e) && !is_ocean_id(ww) && !is_ocean_id(s))+ v = (ISMESA(n) && ISMESA(e) && ISMESA(ww) && ISMESA(s)) ? k : BI_DESERT;+ else+ v = k;+ }+ } else {+ v = is_ocean_id(k) ? k : ((!is_ocean_id(n) && !is_ocean_id(e) && !is_ocean_id(ww) && !is_ocean_id(s)) ? k : BI_STONE_BEACH);+ }+ out[i + j * w] = v;+ }+ break;+ case L_RIVER:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+#define RC(q) ((q) >= 2 ? 2 + ((q) & 1) : (q))+ int a = RC(in[i + (j + 1) * pw]), b = RC(in[i + 2 + (j + 1) * pw]);+ int c = RC(in[i + 1 + j * pw]), d = RC(in[i + 1 + (j + 2) * pw]);+ int k = RC(in[i + 1 + (j + 1) * pw]);+ out[i + j * w] = (k == a && k == c && k == b && k == d) ? -1 : BI_RIVER;+ }+ break;+ case L_SMOOTH:+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int a = in[i + (j + 1) * pw], b = in[i + 2 + (j + 1) * pw];+ int c = in[i + 1 + j * pw], d = in[i + 1 + (j + 2) * pw];+ int k = in[i + 1 + (j + 1) * pw];+ if (a == b && c == d) {+ lr_chunk(&r, x + i, z + j);+ k = lr_int(&r, 2) == 0 ? a : c;+ } else {+ if (a == b) k = a;+ if (c == d) k = c;+ }+ out[i + j * w] = k;+ }+ break;+ }+}++/* Runs a chain of layers (the last one producing window x,z,w,h), starting from the+ * output of `base` layers (computed recursively by run_base) or from `start`.+ * Returns a pointer to the result (allocated at the bump allocator). */+typedef struct {+ int x, z, w, h;+} Win;++static i32 *run_chain(const LayerDef *const *defs, int n, int x, int z, int w, int h, const i32 *second) {+ /* windows, top down */+ Win win[40];+ win[n - 1] = (Win){x, z, w, h};+ for (int i = n - 1; i > 0; i--)+ layer_parent_win(defs[i]->type, win[i].x, win[i].z, win[i].w, win[i].h, &win[i - 1].x, &win[i - 1].z,+ &win[i - 1].w, &win[i - 1].h);+ /* bottom up with two buffers */+ int mark = lay_top;+ int maxa = 0;+ for (int i = 0; i < n; i++)+ if (win[i].w * win[i].h > maxa) maxa = win[i].w * win[i].h;+ i32 *b0 = lay_alloc(maxa), *b1 = lay_alloc(maxa);+ i32 *cur = 0;+ for (int i = 0; i < n; i++) {+ i32 *dst = (cur == b0) ? b1 : b0;+ layer_apply(defs[i], cur, (defs[i]->type == L_HILLS) ? second : 0, dst, win[i].x, win[i].z, win[i].w,+ win[i].h);+ cur = dst;+ }+ /* move result to mark */+ i32 *res = lay_mem + mark;+ memmove(res, cur, sizeof(i32) * (size_t)(w * h));+ lay_top = mark + w * h;+ return res;+}++static const LayerDef *chain_buf[40];++static int chain_build(const LayerDef *tail, int ntail, int with_base) {+ int n = 0;+ if (with_base)+ for (int i = 0; i < NBASE; i++) chain_buf[n++] = &LBASE[i];+ for (int i = 0; i < ntail; i++) chain_buf[n++] = &tail[i];+ return n;+}++/* GenLayerRiverMix output for window (x,z,w,h) into dst (biome ids) */+static void layers_rivermix(int x, int z, int w, int h, i32 *dst) {+ int mark = lay_top;+ /* biome branch: base + biome1 to desert, then hills (needs the hills river noise), then biome2 */+ /* window of the hills layer input */+ const LayerDef *b2[9];+ for (int i = 0; i < 9; i++) b2[i] = &LBIOME2[i];+ Win wb2[9];+ wb2[8] = (Win){x - 1, z - 1, w + 2, h + 2}; /* the smooth layer input is fed by b2[7]; RiverMix needs smooth(x,z,w,h) */+ /* compute windows for b2 chain from its top (smooth outputs x,z,w,h) */+ wb2[8] = (Win){x, z, w, h};+ for (int i = 8; i > 0; i--)+ layer_parent_win(b2[i]->type, wb2[i].x, wb2[i].z, wb2[i].w, wb2[i].h, &wb2[i - 1].x, &wb2[i - 1].z,+ &wb2[i - 1].w, &wb2[i - 1].h);+ Win hin; /* input window of the hills layer */+ layer_parent_win(L_HILLS, wb2[0].x, wb2[0].z, wb2[0].w, wb2[0].h, &hin.x, &hin.z, &hin.w, &hin.h);+ /* hills river noise */+ int n = chain_build(LHILLSRIVER, 3, 1);+ i32 *hr = run_chain(chain_buf, n, hin.x, hin.z, hin.w, hin.h, 0);+ /* biome chain up to desert */+ n = chain_build(LBIOME1, 4, 1);+ i32 *bd = run_chain(chain_buf, n, hin.x, hin.z, hin.w, hin.h, 0);+ /* hills .. smooth: run chain fed by bd */+ {+ int mark2 = lay_top;+ int maxa = 0;+ for (int i = 0; i < 9; i++)+ if (wb2[i].w * wb2[i].h > maxa) maxa = wb2[i].w * wb2[i].h;+ i32 *q0 = lay_alloc(maxa), *q1 = lay_alloc(maxa);+ const i32 *cur = bd;+ i32 *dstb = q0;+ for (int i = 0; i < 9; i++) {+ layer_apply(b2[i], cur, hr, dstb, wb2[i].x, wb2[i].z, wb2[i].w, wb2[i].h);+ cur = dstb;+ dstb = (dstb == q0) ? q1 : q0;+ }+ /* keep biome result at mark2 (overwrites q0 area, safe with memmove) */+ i32 *keep = lay_mem + mark;+ memmove(keep, cur, sizeof(i32) * (size_t)(w * h));+ lay_top = mark + w * h;+ (void)mark2;+ }+ i32 *biomes = lay_mem + mark;+ n = chain_build(LRIVER, 9, 1);+ i32 *river = run_chain(chain_buf, n, x, z, w, h, 0);+ for (int i = 0; i < w * h; i++) {+ int b = biomes[i], rv = river[i];+ int v;+ if (b != BI_OCEAN && b != BI_DEEP_OCEAN) {+ if (rv == BI_RIVER) {+ if (b == BI_ICE_PLAINS) v = BI_FROZEN_RIVER;+ else if (b != BI_MUSHROOM && b != BI_MUSHROOM_SHORE) v = rv & 255;+ else v = BI_MUSHROOM_SHORE;+ } else {+ v = b;+ }+ } else {+ v = b;+ }+ dst[i] = v;+ }+ lay_top = mark;+}++/* GenLayerZoomVoronoi for the block window (x, z, w, h); rm = rivermix window+ * ((x-2)>>2, (z-2)>>2, rw, rh) as returned by voronoi_rm_win. Output uint8 biome ids. */+static void voronoi_rm_win(int x, int z, int w, int h, int *rx, int *rz, int *rw, int *rh) {+ *rx = (x - 2) >> 2;+ *rz = (z - 2) >> 2;+ *rw = ((x - 2 + w - 1) >> 2) - *rx + 2;+ *rh = ((z - 2 + h - 1) >> 2) - *rz + 2;+}++static i64 vor_c;++/* jitter values for the 4 corner points of a cell, as integers u = a(1024) - 512 */+static void vor_cell(i64 cx4, i64 cz4, int u[8]) {+ LRand r;+ r.c = vor_c;+ lr_chunk(&r, cx4 << 2, cz4 << 2);+ u[0] = lr_int(&r, 1024) - 512; /* d1 x */+ u[1] = lr_int(&r, 1024) - 512; /* d2 z */+ lr_chunk(&r, (cx4 + 1) << 2, cz4 << 2);+ u[2] = lr_int(&r, 1024) - 512; /* d3 x (+4) */+ u[3] = lr_int(&r, 1024) - 512; /* d4 z */+ lr_chunk(&r, cx4 << 2, (cz4 + 1) << 2);+ u[4] = lr_int(&r, 1024) - 512; /* d5 x */+ u[5] = lr_int(&r, 1024) - 512; /* d6 z (+4) */+ lr_chunk(&r, (cx4 + 1) << 2, (cz4 + 1) << 2);+ u[6] = lr_int(&r, 1024) - 512; /* d7 x (+4) */+ u[7] = lr_int(&r, 1024) - 512; /* d8 z (+4) */+}++/* which corner (0: x0z0, 1: x1z0, 2: x0z1, 3: x1z1) sub-position (sx, sz) of a cell picks */+static int vor_pick(const int u[8], int sx, int sz) {+ /* (i - d) * 2560 = 2560 * (i - off) - 9u, exact */+ static const int offx[4] = {0, 4, 0, 4}, offz[4] = {0, 0, 4, 4};+ i64 dd[4];+ for (int k = 0; k < 4; k++) {+ i64 nx = 2560LL * (sx - offx[k]) - 9LL * u[2 * k];+ i64 nz = 2560LL * (sz - offz[k]) - 9LL * u[2 * k + 1];+ dd[k] = nx * nx + nz * nz;+ }+ if (dd[0] == dd[1] || dd[0] == dd[2] || dd[0] == dd[3] || dd[1] == dd[2] || dd[1] == dd[3] || dd[2] == dd[3]) {+ /* exact tie: replay Java's double arithmetic */+ double d[8];+ for (int k = 0; k < 8; k++) {+ d[k] = ((double)(u[k] + 512) / 1024.0 - 0.5) * 3.6;+ if ((k == 2) || (k == 5) || (k == 6) || (k == 7)) d[k] += 4.0;+ }+ double i4 = sz, k4 = sx;+ double d9 = (i4 - d[1]) * (i4 - d[1]) + (k4 - d[0]) * (k4 - d[0]);+ double d10 = (i4 - d[3]) * (i4 - d[3]) + (k4 - d[2]) * (k4 - d[2]);+ double d11 = (i4 - d[5]) * (i4 - d[5]) + (k4 - d[4]) * (k4 - d[4]);+ double d12 = (i4 - d[7]) * (i4 - d[7]) + (k4 - d[6]) * (k4 - d[6]);+ if (d9 < d10 && d9 < d11 && d9 < d12) return 0;+ if (d10 < d9 && d10 < d11 && d10 < d12) return 1;+ if (d11 < d9 && d11 < d10 && d11 < d12) return 2;+ return 3;+ }+ if (dd[0] < dd[1] && dd[0] < dd[2] && dd[0] < dd[3]) return 0;+ if (dd[1] < dd[0] && dd[1] < dd[2] && dd[1] < dd[3]) return 1;+ if (dd[2] < dd[0] && dd[2] < dd[1] && dd[2] < dd[3]) return 2;+ return 3;+}++static void voronoi(const i32 *rm, int rx, int rz, int rw, int x, int z, int w, int h, uint8_t *out, int ostride) {+ int u[8];+ i64 lastx = INT64_MIN, lastz = INT64_MIN;+ for (int j = 0; j < h; j++)+ for (int i = 0; i < w; i++) {+ int X = x + i - 2, Z = z + j - 2;+ int cx4 = X >> 2, cz4 = Z >> 2;+ if (cx4 != lastx || cz4 != lastz) {+ vor_cell(cx4, cz4, u);+ lastx = cx4;+ lastz = cz4;+ }+ int k = vor_pick(u, X & 3, Z & 3);+ int ix = cx4 - rx + (k & 1), iz = cz4 - rz + (k >> 1);+ out[i + j * ostride] = (uint8_t)(rm[ix + iz * rw] & 255);+ }+}++/* ======================================================================== */+/* Noise */+/* ======================================================================== */++/* A NoiseGeneratorPerlin / NoiseGenerator3Handler is fully determined by the+ * java.util.Random state at its construction: 3 nextDouble (offsets) then 256+ * swaps. We keep only that state and rebuild the permutation when needed. */+typedef struct {+ u64 st;+} Octave;++static void perm_build(u64 st, uint8_t *perm, i64 off[3]) {+ JRand r = {st};+ for (int k = 0; k < 3; k++) {+ i64 n = jr_double_bits(&r);+ if (off) off[k] = n >> 13; /* offset * 2^32 (offset = n / 2^53 * 256), Q32 */+ }+ for (int i = 0; i < 256; i++) perm[i] = (uint8_t)i;+ for (int i = 0; i < 256; i++) {+ int j = jr_int(&r, 256 - i) + i;+ uint8_t t = perm[i];+ perm[i] = perm[j];+ perm[j] = t;+ }+}++static void perm_skip(JRand *r) {+ for (int k = 0; k < 6; k++) jr_next(r, 27);+ for (int i = 0; i < 256; i++) jr_int(r, 256 - i);+}++static inline float fade(float t) { return t * t * t * (t * (t * 6.0f - 15.0f) + 10.0f); }+static inline float lerp(float t, float a, float b) { return a + t * (b - a); }++static inline float grad3(int h, float x, float y, float z) {+ switch (h & 15) {+ case 0: return x + y;+ case 1: return -x + y;+ case 2: return x - y;+ case 3: return -x - y;+ case 4: return x + z;+ case 5: return -x + z;+ case 6: return x - z;+ case 7: return -x - z;+ case 8: return y + z;+ case 9: return -y + z;+ case 10: return y - z;+ case 11: return -y - z;+ case 12: return x + y;+ case 13: return -y + z;+ case 14: return -x + y;+ default: return -y - z;+ }+}++/* Coordinates of samples: for octave `oct` (frequency 2^-oct) of a generator whose+ * scale (Java double from a float) is S_fx = scale * 2^32, the sample index n of a+ * request starting at integer position base gives+ * coord = (base * scale + n * scale) * 2^-oct + offset+ * We compute it modulo 2^32 * 256 in Q32 fixed point: cell = bits 32..39, frac = bits 0..31. */+static inline u64 coord_q32(i64 base, u64 S_fx, int oct, i64 n, i64 off) {+ u64 b = ((u64)base * S_fx) >> oct;+ return b + (u64)n * (S_fx >> oct) + (u64)off;+}++static inline void coord_split(u64 c, int *cell, float *frac) {+ *cell = (int)((c >> 32) & 255);+ *frac = (float)(u32)c * (1.0f / 4294967296.0f);+}++/* Fixed-point scales (value * 2^32) of the generators' sample spacings: Java passes+ * (double)float, and these floats are exactly representable in Q32. */+#define FX(f) ((u64)((double)(f) * 4294967296.0))+static u64 SC_LIMIT, SC_MAINXZ, SC_MAINY, SC_DEPTH;++/* One 3D octave over the chunk grid (5 x 33 x 5, index (x*5+z)*33+y), Java's+ * NoiseGeneratorPerlin.a with its stale-cache quirk. need: bitmask per point or NULL.+ * mul: per-point multiplier array (or NULL for 1). */+static void perlin3_octave(const uint8_t *P, float *acc, const uint8_t *need, int bit, const float *mul, const int *xc,+ const float *xf, const int *zc, const float *zf, const int *yc, const float *yf, float amp) {+ int idx = 0;+ for (int x = 0; x < 5; x++) {+ float fx = xf[x], ux = fade(fx);+ int l1 = xc[x];+ for (int z = 0; z < 5; z++) {+ float fz = zf[z], uz = fade(fz);+ int j4 = zc[z];+ int last = -1, pend = 0, valid = 0;+ float d16 = 0, d7 = 0, d17 = 0, d8 = 0;+ for (int y = 0; y < 33; y++, idx++) {+ int i5 = yc[y];+ if (y == 0 || i5 != last) {+ last = i5;+ pend = y;+ valid = 0;+ }+ if (need && !(need[idx] & bit)) continue;+ if (!valid) {+ float fy = yf[pend];+ int ci = yc[pend];+ int j5 = P[l1] + ci;+ int k5 = P[j5 & 255] + j4;+ int l5 = P[(j5 + 1) & 255] + j4;+ int i6 = P[(l1 + 1) & 255] + ci;+ int i2 = P[i6 & 255] + j4;+ int j6 = P[(i6 + 1) & 255] + j4;+ d16 = lerp(ux, grad3(P[k5 & 255], fx, fy, fz), grad3(P[i2 & 255], fx - 1, fy, fz));+ d7 = lerp(ux, grad3(P[l5 & 255], fx, fy - 1, fz), grad3(P[j6 & 255], fx - 1, fy - 1, fz));+ d17 = lerp(ux, grad3(P[(k5 + 1) & 255], fx, fy, fz - 1), grad3(P[(i2 + 1) & 255], fx - 1, fy, fz - 1));+ d8 = lerp(ux, grad3(P[(l5 + 1) & 255], fx, fy - 1, fz - 1),+ grad3(P[(j6 + 1) & 255], fx - 1, fy - 1, fz - 1));+ valid = 1;+ }+ float uy = fade(yf[y]);+ float v = lerp(uz, lerp(uy, d16, d7), lerp(uy, d17, d8));+ acc[idx] += v * amp * (mul ? mul[idx] : 1.0f);+ }+ }+ }+}++/* 2D octave (Java's j == 1 path) over 5 x 5 */+static void perlin2_octave(const uint8_t *P, float *acc, const int *xc, const float *xf, const int *zc,+ const float *zf, float amp) {+ int idx = 0;+ for (int x = 0; x < 5; x++) {+ float fx = xf[x], ux = fade(fx);+ int i3 = xc[x];+ for (int z = 0; z < 5; z++, idx++) {+ float fz = zf[z], uz = fade(fz);+ int l1 = zc[z];+ int l = P[i3];+ int j3 = P[l & 255] + l1;+ int k3 = P[(i3 + 1) & 255];+ int i1 = P[k3 & 255] + l1;+ float d11 = lerp(ux, grad3(P[j3 & 255], fx, 0, fz), grad3(P[i1 & 255], fx - 1, 0, fz));+ float d12 = lerp(ux, grad3(P[(j3 + 1) & 255], fx, 0, fz - 1), grad3(P[(i1 + 1) & 255], fx - 1, 0, fz - 1));+ acc[idx] += lerp(uz, d11, d12) * amp;+ }+ }+}++/* ---- simplex (NoiseGenerator3Handler) ---- */+/* constants as Q64 fractions for exact integer setup */+#define F2D 0.36602540378443864676 /* 0.5 * (sqrt(3) - 1) */+#define G2D 0.21132486540518711775 /* (3 - sqrt(3)) / 6 */+#define H2D 0.57735026918962576451 /* 1 - 2 * G2 = sqrt(3) / 3 */+static const u64 F2_Q64 = 0x5DB3D742C265539DULL; /* F2 * 2^64 */++/* (k * frac) in Q32 (k signed, frac = q/2^64), exact to ~2^-32 */+static inline i64 mul_q64(i64 k, u64 q) {+ u64 hi = q >> 32, lo = q & 0xFFFFFFFFULL;+ i64 a = k * (i64)hi; /* Q32 */+ i64 b = (k * (i64)lo) >> 32; /* Q32 (|k| < 2^31) */+ return a + b;+}++static const int8_t SGRAD[12][2] = {{1, 1}, {-1, 1}, {1, -1}, {-1, -1}, {1, 0}, {-1, 0},+ {1, 0}, {-1, 0}, {0, 1}, {0, -1}, {0, 1}, {0, -1}};++/* simplex value at (xi + xf, zi + zf); xf, zf small (|.| < ~4) */+static float simplex2(const uint8_t *P, i32 xi, float xf, i32 zi, float zf) {+ i32 K = xi + zi;+ i64 sq = mul_q64(K, F2_Q64); /* K*F2, Q32 */+ i32 si = (i32)(sq >> 32);+ float sf = (float)(u32)sq * (1.0f / 4294967296.0f);+ float t = (xf + zf) * (float)F2D;+ float sx = xf + sf + t, sz = zf + sf + t;+ int fsx = floor_f(sx), fsz = floor_f(sz);+ i32 ci = xi + si + fsx, cj = zi + si + fsz;+ /* unskew: x0 = xf - fsx + (fsx + fsz) * G2 + (K * G2 - si * (1 - 2 G2)), and the last+ * term equals sf * (1 - 2 G2) because F2 * (1 - 2 G2) = G2 */+ float u = (float)(fsx + fsz) * (float)G2D + sf * (float)H2D;+ float x0 = (xf - (float)fsx) + u, z0 = (zf - (float)fsz) + u;+ int b0, b1;+ if (x0 > z0) {+ b0 = 1;+ b1 = 0;+ } else {+ b0 = 0;+ b1 = 1;+ }+ float x1 = x0 - (float)b0 + (float)G2D, z1 = z0 - (float)b1 + (float)G2D;+ float x2 = x0 - 1.0f + 2.0f * (float)G2D, z2 = z0 - 1.0f + 2.0f * (float)G2D;+ int k = ci & 255, l = cj & 255;+ int g0 = P[(k + P[l]) & 255] % 12;+ int g1 = P[(k + b0 + P[(l + b1) & 255]) & 255] % 12;+ int g2 = P[(k + 1 + P[(l + 1) & 255]) & 255] % 12;+ float n = 0;+ float t0 = 0.5f - x0 * x0 - z0 * z0;+ if (t0 >= 0) {+ t0 *= t0;+ n += t0 * t0 * (SGRAD[g0][0] * x0 + SGRAD[g0][1] * z0);+ }+ float t1 = 0.5f - x1 * x1 - z1 * z1;+ if (t1 >= 0) {+ t1 *= t1;+ n += t1 * t1 * (SGRAD[g1][0] * x1 + SGRAD[g1][1] * z1);+ }+ float t2 = 0.5f - x2 * x2 - z2 * z2;+ if (t2 >= 0) {+ t2 *= t2;+ n += t2 * t2 * (SGRAD[g2][0] * x2 + SGRAD[g2][1] * z2);+ }+ return 70.0f * n;+}++/* Java's single-point NoiseGenerator3Handler.a(double, double) in double: used only to+ * settle values the float version puts within 1e-5 of a threshold that matters. */+static int jfloor_s(double d) { return d > 0.0 ? (int)d : (int)d - 1; }++static double simplex2_d(const uint8_t *P, double d0, double d1) {+ const double F = 0.5 * (1.7320508075688772 - 1.0), G = (3.0 - 1.7320508075688772) / 6.0;+ double d3 = (d0 + d1) * F;+ int i = jfloor_s(d0 + d3), j = jfloor_s(d1 + d3);+ double d5 = (double)(i + j) * G;+ double d8 = d0 - ((double)i - d5), d9 = d1 - ((double)j - d5);+ int b0 = d8 > d9, b1 = !b0;+ double d10 = d8 - b0 + G, d11 = d9 - b1 + G, d12 = d8 - 1.0 + 2.0 * G, d13 = d9 - 1.0 + 2.0 * G;+ int k = i & 255, l = j & 255;+ int g0 = P[(k + P[l]) & 255] % 12, g1 = P[(k + b0 + P[(l + b1) & 255]) & 255] % 12,+ g2 = P[(k + 1 + P[(l + 1) & 255]) & 255] % 12;+ double n = 0, t;+ t = 0.5 - d8 * d8 - d9 * d9;+ if (t >= 0) {+ t *= t;+ n += t * t * (SGRAD[g0][0] * d8 + SGRAD[g0][1] * d9);+ }+ t = 0.5 - d10 * d10 - d11 * d11;+ if (t >= 0) {+ t *= t;+ n += t * t * (SGRAD[g1][0] * d10 + SGRAD[g1][1] * d11);+ }+ t = 0.5 - d12 * d12 - d13 * d13;+ if (t >= 0) {+ t *= t;+ n += t * t * (SGRAD[g2][0] * d12 + SGRAD[g2][1] * d13);+ }+ return 70.0 * n;+}++/* ======================================================================== */+/* World state */+/* ======================================================================== */++static Octave oc_min[16], oc_max[16], oc_main[8], oc_surf[4], oc_depth[16];+static uint8_t perm_temp[256], perm_grass[256]; /* BiomeBase.ae (1234), .af (2345) */+static Octave oc_mesa[6]; /* aH, aF[0..3], aG */+static uint8_t mesa_bands[64]; /* B_ ids */+static i64 pop_mul_x, pop_mul_z; /* population seed multipliers */+static i64 cave_mul_x, cave_mul_z; /* MapGenBase seed multipliers */++/* temperature noise (BiomeBase.ae) at block x, z: ae.a(x/8, z/8) */+static float temp_noise(int x, int z) {+ return simplex2(perm_temp, x >> 3, (float)(x & 7) * 0.125f, z >> 3, (float)(z & 7) * 0.125f);+}++/* BiomeBase.a(BlockPosition): temperature at height */+static float biome_temp_at(const Biome *b, int x, int y, int z) {+ if (y > 64) {+ float f = temp_noise(x, z) * 4.0f;+ return b->temp - (f + (float)y - 64.0f) * 0.05f / 30.0f;+ }+ return b->temp;+}++/* af.a(x / d, z / d) for an integer divisor d (exact split) */+static float grass_noise_div(int x, int z, int d) {+ int xi = x >= 0 ? x / d : -((-x + d - 1) / d), zi = z >= 0 ? z / d : -((-z + d - 1) / d);+ return simplex2(perm_grass, xi, (float)(x - xi * d) / (float)d, zi, (float)(z - zi * d) / (float)d);+}++/* ======================================================================== */+/* Scratch memory (phases never overlap) */+/* ======================================================================== */++#define LAY_INTS 1200++typedef struct {+ float grid[825]; /* main noise, then density */+ float acc[825]; /* limit noise accumulator */+ float surf[256]; /* surface depth noise, index z*16+x */+ uint8_t cls[825]; /* clamped-lerp class per grid point */+ uint8_t perm[256];+ uint8_t mperm[6][256]; /* mesa noises (built when a mesa column shows up) */+ uint8_t col[256];+ uint8_t mesa_ready;+} TerrainScratch;++static union {+ TerrainScratch t;+ i32 lay[LAY_INTS];+} U;++/* ======================================================================== */+/* Terrain */+/* ======================================================================== */++static float bweights[25]; /* ChunkProviderGenerate.q */++/* biomes of chunk (cx, cz): 1:4 grid 10x10 at (cx*4-2, cz*4-2) and 16x16 blocks */+static uint8_t cb4[100], cb16[256];++static void chunk_biomes(int cx, int cz) {+ i32 *rm = U.lay;+ lay_mem = U.lay + 100;+ lay_cap = LAY_INTS - 100;+ lay_top = 0;+ layers_rivermix(cx * 4 - 2, cz * 4 - 2, 10, 10, rm);+ for (int i = 0; i < 100; i++) cb4[i] = (uint8_t)rm[i];+ /* voronoi window for blocks (cx*16, cz*16, 16, 16) is rivermix (cx*4-1, cz*4-1, 6, 6),+ * a sub-window of the 10x10 one at offset (1, 1) */+ voronoi(rm + 1 + 10, cx * 4 - 1, cz * 4 - 1, 10, cx * 16, cz * 16, 16, 16, cb16, 16);+}++static void octave_setup(const Octave *o, i64 off[3]) { perm_build(o->st, U.t.perm, off); }++/* noise grid for chunk (cx, cz) -> U.t.grid holds the 5x5x33 densities */+static void chunk_density(int cx, int cz) {+ TerrainScratch *T = &U.t;+ int xc[5], zc[5], yc[33];+ float xf[5], zf[5], yf[33];+ i64 off[3];+ i64 bx = (i64)cx * 4, bz = (i64)cz * 4;+ /* main noise (8 octaves), all points */+ memset(T->grid, 0, sizeof T->grid);+ for (int o = 0; o < 8; o++) {+ octave_setup(&oc_main[o], off);+ for (int n = 0; n < 5; n++) {+ coord_split(coord_q32(bx, SC_MAINXZ, o, n, off[0]), &xc[n], &xf[n]);+ coord_split(coord_q32(bz, SC_MAINXZ, o, n, off[2]), &zc[n], &zf[n]);+ }+ for (int n = 0; n < 33; n++) coord_split(coord_q32(0, SC_MAINY, o, n, off[1]), &yc[n], &yf[n]);+ perlin3_octave(T->perm, T->grid, 0, 0, 0, xc, xf, zc, zf, yc, yf, (float)(1 << o));+ }+ /* classes: 1 min only, 2 max only, 3 both */+ for (int i = 0; i < 825; i++) {+ float d7 = (T->grid[i] / 10.0f + 1.0f) / 2.0f;+ T->grid[i] = d7;+ T->cls[i] = d7 < 0.0f ? 1 : (d7 > 1.0f ? 2 : 3);+ }+ memset(T->acc, 0, sizeof T->acc);+ for (int o = 0; o < 16; o++) {+ octave_setup(&oc_min[o], off);+ for (int n = 0; n < 5; n++) {+ coord_split(coord_q32(bx, SC_LIMIT, o, n, off[0]), &xc[n], &xf[n]);+ coord_split(coord_q32(bz, SC_LIMIT, o, n, off[2]), &zc[n], &zf[n]);+ }+ for (int n = 0; n < 33; n++) coord_split(coord_q32(0, SC_LIMIT, o, n, off[1]), &yc[n], &yf[n]);+ perlin3_octave(T->perm, T->acc, T->cls, 1, 0, xc, xf, zc, zf, yc, yf, (float)(1 << o));+ }+ for (int i = 0; i < 825; i++) {+ if (T->cls[i] == 3) T->acc[i] *= 1.0f - T->grid[i];+ if (T->cls[i] == 2) T->grid[i] = 1.0f;+ }+ for (int o = 0; o < 16; o++) {+ octave_setup(&oc_max[o], off);+ for (int n = 0; n < 5; n++) {+ coord_split(coord_q32(bx, SC_LIMIT, o, n, off[0]), &xc[n], &xf[n]);+ coord_split(coord_q32(bz, SC_LIMIT, o, n, off[2]), &zc[n], &zf[n]);+ }+ for (int n = 0; n < 33; n++) coord_split(coord_q32(0, SC_LIMIT, o, n, off[1]), &yc[n], &yf[n]);+ perlin3_octave(T->perm, T->acc, T->cls, 2, T->grid, xc, xf, zc, zf, yc, yf, (float)(1 << o));+ }+ /* depth noise (2D, 16 octaves) into grid[0..24] after we are done with it: keep separate */+ float depth[25];+ memset(depth, 0, sizeof depth);+ for (int o = 0; o < 16; o++) {+ octave_setup(&oc_depth[o], off);+ for (int n = 0; n < 5; n++) {+ coord_split(coord_q32(bx, SC_DEPTH, o, n, off[0]), &xc[n], &xf[n]);+ coord_split(coord_q32(bz, SC_DEPTH, o, n, off[2]), &zc[n], &zf[n]);+ }+ perlin2_octave(T->perm, depth, xc, xf, zc, zf, (float)(1 << o));+ }+ /* density */+ int l = 0, i1 = 0;+ for (int j1 = 0; j1 < 5; j1++)+ for (int k1 = 0; k1 < 5; k1++) {+ float f2 = 0, f3 = 0, f4 = 0;+ const Biome *bc = bio(cb4[j1 + 2 + (k1 + 2) * 10]);+ for (int l1 = -2; l1 <= 2; l1++)+ for (int i2 = -2; i2 <= 2; i2++) {+ const Biome *b1 = bio(cb4[j1 + l1 + 2 + (k1 + i2 + 2) * 10]);+ float f5 = 0.0f + b1->depth * 1.0f;+ float f6 = 0.0f + b1->scale * 1.0f;+ float f7 = bweights[l1 + 2 + (i2 + 2) * 5] / (f5 + 2.0f);+ if (b1->depth > bc->depth) f7 /= 2.0f;+ f2 += f6 * f7;+ f3 += f5 * f7;+ f4 += f7;+ }+ f2 /= f4;+ f3 /= f4;+ f2 = f2 * 0.9f + 0.1f;+ f3 = (f3 * 4.0f - 1.0f) / 8.0f;+ float d0 = depth[i1] / 8000.0f;+ if (d0 < 0.0f) d0 = -d0 * 0.3f;+ d0 = d0 * 3.0f - 2.0f;+ if (d0 < 0.0f) {+ d0 /= 2.0f;+ if (d0 < -1.0f) d0 = -1.0f;+ d0 /= 1.4f;+ d0 /= 2.0f;+ } else {+ if (d0 > 1.0f) d0 = 1.0f;+ d0 /= 8.0f;+ }+ ++i1;+ float d1 = f3, d2 = f2;+ d1 += d0 * 0.2f;+ d1 = d1 * 8.5f / 8.0f;+ float d3 = 8.5f + d1 * 4.0f;+ for (int j2 = 0; j2 < 33; j2++, l++) {+ float d4 = ((float)j2 - d3) * 12.0f * 128.0f / 256.0f / d2;+ if (d4 < 0.0f) d4 *= 4.0f;+ float d8 = T->acc[l] / 512.0f - d4;+ if (j2 > 29) {+ float d9 = (float)(j2 - 29) / 3.0f;+ d8 = d8 * (1.0f - d9) + -10.0f * d9;+ }+ T->grid[l] = d8;+ }+ }+}++/* surface depth noise (NoiseGenerator3, 4 octaves) for chunk -> U.t.surf[z*16+x] */+static void chunk_surface_noise(int cx, int cz) {+ TerrainScratch *T = &U.t;+ i64 off[3];+ memset(T->surf, 0, sizeof T->surf);+ for (int o = 0; o < 4; o++) {+ perm_build(oc_surf[o].st, T->perm, off);+ /* coordinate = (X + i) * 0.0625 * 2^-o + offset */+ int sh = 4 + o;+ float amp = 0.55f * (float)(1 << o);+ /* offsets b (x) = off[0], c (z) = off[1] in Q32 */+ i32 bxi = (i32)(off[0] >> 32), bzi = (i32)(off[1] >> 32);+ float bxf = (float)(u32)off[0] * (1.0f / 4294967296.0f), bzf = (float)(u32)off[1] * (1.0f / 4294967296.0f);+ float scale = 1.0f / (float)(1 << sh);+ for (int j = 0; j < 16; j++) {+ int Z = cz * 16 + j;+ i32 zi = (Z >> sh) + bzi;+ float zf = (float)(Z & ((1 << sh) - 1)) * scale + bzf;+ for (int i = 0; i < 16; i++) {+ int X = cx * 16 + i;+ i32 xi = (X >> sh) + bxi;+ float xf = (float)(X & ((1 << sh) - 1)) * scale + bxf;+ T->surf[j * 16 + i] += simplex2(T->perm, xi, xf, zi, zf) * amp;+ }+ }+ }+}++/* ---- surface builders (BiomeBase.b and the overrides) ---- */++typedef struct {+ uint8_t top, blk, aux; /* see summary below */+} ColSum;++/* one step of BiomeBase.b's loop at height y (no bedrock); returns 1 if it needs a sandstone+ * draw (then the caller draws and calls sand_after) */+typedef struct {+ uint8_t top0, fill0, top, fill;+ int l, i1;+ float temp;+} SurfState;++static inline int surf_step(SurfState *s, uint8_t *col, int y) {+ uint8_t blk = col[y];+ if (blk == B_AIR) {+ s->l = -1;+ return 0;+ }+ if (blk != B_STONE) return 0;+ if (s->l == -1) {+ if (s->i1 <= 0) {+ s->top = B_AIR;+ s->fill = B_STONE;+ } else if (y >= SEA - 4 && y <= SEA + 1) {+ s->top = s->top0;+ s->fill = s->fill0;+ }+ if (y < SEA && s->top == B_AIR) s->top = s->temp < 0.15f ? B_ICE : B_WATER;+ s->l = s->i1;+ if (y >= SEA - 1) {+ col[y] = s->top;+ } else if (y < SEA - 7 - s->i1) {+ s->top = B_AIR;+ s->fill = B_STONE;+ col[y] = B_GRAVEL;+ } else {+ col[y] = s->fill;+ }+ } else if (s->l > 0) {+ --s->l;+ col[y] = s->fill;+ if (s->l == 0 && (s->fill == B_SAND || s->fill == B_RED_SAND)) return 1;+ }+ return 0;+}++static void build_default(uint8_t *col, const Biome *b, JRand *r, float noise, uint8_t top0, uint8_t fill0) {+ SurfState s;+ s.top0 = s.top = top0;+ s.fill0 = s.fill = fill0;+ s.l = -1;+ s.temp = b->temp;+ s.i1 = (int)(noise / 3.0f + 3.0f + jr_doublef(r) * 0.25f);+ unsigned skip = 0;+ for (int y = 255; y >= 0; y--) {+ if (y <= 4) {+ jr_skip(r, skip);+ skip = 0;+ if (y <= jr_int(r, 5)) {+ col[y] = B_BEDROCK;+ continue;+ }+ } else {+ skip++;+ }+ if (surf_step(&s, col, y)) {+ jr_skip(r, skip);+ skip = 0;+ s.l = jr_int(r, 4) + (y - SEA > 0 ? y - SEA : 0);+ s.fill = s.fill == B_RED_SAND ? B_RED_SANDSTONE : B_SANDSTONE;+ }+ }+}++/* BiomeMesa band at (x, y): aD[(y + round(aH(x/512, x/512) * 2) + 64) % 64] */+static uint8_t mesa_band(int x, int y) {+ const uint8_t *P = U.t.mperm[0];+ float xf = (float)(x & 511) / 512.0f;+ float v = simplex2(P, x >> 9, xf, x >> 9, xf) * 2.0f;+ int l = (int)floor_f(v + 0.5f);+ return mesa_bands[(y + l + 64) % 64];+}++static void mesa_prepare(void) {+ if (U.t.mesa_ready) return;+ for (int i = 0; i < 6; i++) perm_build(oc_mesa[i].st, U.t.mperm[i], 0);+ U.t.mesa_ready = 1;+}++/* NoiseGenerator3.a(x, z) (single point, no offsets) over n octaves with perms P[o] */+static float simplex_oct_point(int n, uint8_t (*P)[256], i32 xi, float xf, i32 zi, float zf, int shift0) {+ /* coordinates (xi + xf) * 2^-shift0 * 2^-o */+ float sum = 0;+ for (int o = 0; o < n; o++) {+ int sh = shift0 + o;+ /* split (xi + xf) / 2^sh into integer + fraction exactly enough */+ i32 xa = xi >> sh, za = zi >> sh;+ float xr = ((float)(xi & ((1 << sh) - 1)) + xf) / (float)(1 << sh);+ float zr = ((float)(zi & ((1 << sh) - 1)) + zf) / (float)(1 << sh);+ sum += simplex2(P[o], xa, xr, za, zr) * (float)(1 << o);+ }+ return sum;+}++static void build_mesa(uint8_t *col, const Biome *b, JRand *r, int bx, int bz, float noise) {+ mesa_prepare();+ float d1 = 0.0f;+ if (b->mode & 1) { /* bryce */+ int k = (bx & -16) + (bz & 15), l = (bz & -16) + (bx & 15);+ /* aF: 4 octaves at (k*0.25, l*0.25): perms mperm[0..3] (aF[0] == aH) */+ uint8_t(*P)[256] = U.t.mperm;+ float d2 = simplex_oct_point(4, P, k, 0.0f, l, 0.0f, 2);+ float an = noise < 0 ? -noise : noise;+ if (an < d2) d2 = an;+ if (d2 > 0.0f) {+ float d4 = simplex_oct_point(1, &U.t.mperm[4], k, 0.0f, l, 0.0f, 9);+ if (d4 < 0) d4 = -d4;+ d1 = d2 * d2 * 2.5f;+ float c = d4 * 50.0f;+ int ci = (int)c;+ float d5 = (float)(c > (float)ci ? ci + 1 : ci) + 14.0f;+ if (d1 > d5) d1 = d5;+ d1 += 64.0f;+ }+ }+ int d1i = (int)d1;+ uint8_t top = B_STAINED_CLAY_WHITE, fill = b->filler;+ int j1 = (int)(noise / 3.0f + 3.0f + jr_doublef(r) * 0.25f);+ /* Math.cos(d0 / 3.0 * pi) > 0 */+ float ph = noise / 3.0f;+ float m = ph - 2.0f * (float)floor_f(ph * 0.5f); /* in [0, 2) */+ int flag = (m < 0.5f || m > 1.5f);+ int k1 = -1, flag1 = 0;+ unsigned skip = 0;+ for (int y = 255; y >= 0; y--) {+ if (col[y] == B_AIR && y < d1i) col[y] = B_STONE;+ if (y <= 4) {+ jr_skip(r, skip);+ skip = 0;+ if (y <= jr_int(r, 5)) {+ col[y] = B_BEDROCK;+ continue;+ }+ } else {+ skip++;+ }+ uint8_t blk = col[y];+ if (blk == B_AIR) {+ k1 = -1;+ } else if (blk == B_STONE) {+ if (k1 == -1) {+ flag1 = 0;+ if (j1 <= 0) {+ top = B_AIR;+ fill = B_STONE;+ } else if (y >= SEA - 4 && y <= SEA + 1) {+ top = B_STAINED_CLAY_WHITE;+ fill = b->filler;+ }+ if (y < SEA && top == B_AIR) top = B_WATER;+ k1 = j1 + (y - SEA > 0 ? y - SEA : 0);+ if (y >= SEA - 1) {+ if ((b->mode & 2) && y > 86 + j1 * 2) {+ col[y] = flag ? B_COARSE_DIRT : B_GRASS;+ } else if (y > SEA + 3 + j1) {+ col[y] = (y >= 64 && y <= 127) ? (flag ? B_HARDENED_CLAY : mesa_band(bx, y)) : B_STAINED_CLAY_ORANGE;+ } else {+ col[y] = b->top;+ flag1 = 1;+ }+ } else {+ col[y] = fill == B_STAINED_CLAY_WHITE ? B_STAINED_CLAY_ORANGE : fill;+ }+ } else if (k1 > 0) {+ --k1;+ col[y] = flag1 ? B_STAINED_CLAY_ORANGE : mesa_band(bx, y);+ }+ }+ }+ (void)top;+}++static void build_surface(uint8_t *col, const Biome *b, JRand *r, int bx, int bz, float noise) {+ uint8_t top = b->top, fill = b->filler;+ switch (b->surf) {+ case S_HILLS:+ top = B_GRASS;+ fill = B_DIRT;+ if ((noise < -1.0f || noise > 2.0f) && b->mode == 2) top = fill = B_GRAVEL;+ else if (noise > 1.0f && b->mode != 1) top = fill = B_STONE;+ break;+ case S_TAIGA_MEGA:+ top = B_GRASS;+ fill = B_DIRT;+ if (noise > 1.75f) top = B_COARSE_DIRT;+ else if (noise > -0.95f) top = B_PODZOL;+ break;+ case S_SAVANNA_M:+ top = B_GRASS;+ fill = B_DIRT;+ if (noise > 1.75f) top = fill = B_STONE;+ else if (noise > -0.5f) top = B_COARSE_DIRT;+ break;+ case S_SWAMP: {+ float f1 = simplex2(perm_grass, bx >> 2, (float)(bx & 3) * 0.25f, bz >> 2, (float)(bz & 3) * 0.25f);+ double d1 = f1;+ if ((f1 > -1e-5f && f1 < 1e-5f) || (f1 > 0.12f - 1e-5f && f1 < 0.12f + 1e-5f))+ d1 = simplex2_d(perm_grass, (double)bx * 0.25, (double)bz * 0.25);+ if (d1 > 0.0) {+ for (int y = 255; y >= 0; y--)+ if (col[y] != B_AIR) {+ if (y == 62 && col[y] != B_WATER) {+ col[y] = B_WATER;+ if (d1 < 0.12) col[y + 1] = B_LILY_PAD;+ }+ break;+ }+ }+ break;+ }+ case S_MESA:+ build_mesa(col, b, r, bx, bz, noise);+ return;+ }+ build_default(col, b, r, noise, top, fill);+}++/* ---- per-chunk terrain pipeline ---- */++static inline int is_liquid_top(int blk) { return blk == B_WATER || blk == B_ICE || blk == B_LILY_PAD || blk == B_LAVA; }++/* column summary of the undecorated, cave-less terrain:+ * top: y of the highest non-air block (lily pads excluded)+ * blk: that block; B_LILY_PAD means water at top with a lily pad above+ * aux: water columns (blk water/ice/lily): y of the highest solid block below;+ * others: number of non-stone blocks (filler) right below the top */+static void column_summary(const uint8_t *col, ColSum *s) {+ int y = 255;+ while (y > 0 && col[y] == B_AIR) y--;+ int lily = 0;+ if (col[y] == B_LILY_PAD) {+ lily = 1;+ y--;+ }+ s->top = (uint8_t)y;+ s->blk = lily ? B_LILY_PAD : col[y];+ if (is_liquid_top(s->blk)) {+ int f = y;+ while (f > 0 && (col[f] == B_WATER || col[f] == B_ICE || col[f] == B_LAVA || col[f] == B_AIR)) f--;+ s->aux = (uint8_t)f;+ } else {+ int d = 0;+ for (int k = y - 1; k > 0 && d < 15; k--, d++) {+ uint8_t b = col[k];+ if (b == B_STONE || b == B_AIR || b == B_BEDROCK || b == B_WATER) break;+ }+ s->aux = (uint8_t)d;+ }+}++static void column_density(int x, int z, uint8_t *col) {+ const float *g = U.t.grid;+ int gx = x >> 2, gz = z >> 2;+ float fx = (float)(x & 3) * 0.25f, fz = (float)(z & 3) * 0.25f;+ const float *c00 = g + (gx * 5 + gz) * 33, *c01 = g + (gx * 5 + gz + 1) * 33;+ const float *c10 = g + ((gx + 1) * 5 + gz) * 33, *c11 = g + ((gx + 1) * 5 + gz + 1) * 33;+ float v[33];+ for (int k = 0; k < 33; k++) {+ float a = c00[k] + (c10[k] - c00[k]) * fx;+ float b = c01[k] + (c11[k] - c01[k]) * fx;+ v[k] = a + (b - a) * fz;+ }+ for (int k2 = 0; k2 < 32; k2++) {+ float base = v[k2], step = (v[k2 + 1] - v[k2]) * 0.125f;+ int y = k2 * 8;+ if (base <= 0.0f && v[k2 + 1] <= 0.0f && y >= SEA) {+ memset(col + y, B_AIR, 8);+ continue;+ }+ for (int l2 = 0; l2 < 8; l2++, y++) {+ float val = base + (float)l2 * step;+ col[y] = val > 0.0f ? B_STONE : (y < SEA ? B_WATER : B_AIR);+ }+ }+}++/* Terrain and surface of chunk (cx, cz) before caves. Rows y0..y0+h-1 go to out (if out),+ * the column summaries to sum (if sum). Also leaves the biomes in cb4/cb16. */+static void chunk_terrain(int cx, int cz, uint8_t *out, int y0, int h, ColSum *sum) {+ chunk_biomes(cx, cz);+ U.t.mesa_ready = 0;+ chunk_density(cx, cz);+ chunk_surface_noise(cx, cz);+ JRand r;+ jr_seed(&r, (i64)((u64)(i64)cx * 341873128712ULL + (u64)(i64)cz * 132897987541ULL));+ uint8_t *col = U.t.col;+ for (int z = 0; z < 16; z++)+ for (int x = 0; x < 16; x++) {+ column_density(x, z, col);+ const Biome *b = bio(cb16[x + z * 16]);+ build_surface(col, b, &r, cx * 16 + z, cz * 16 + x, U.t.surf[z * 16 + x]);+ if (sum) column_summary(col, &sum[x + z * 16]);+ if (out)+ for (int y = 0; y < h; y++) out[y * 256 + z * 16 + x] = col[y0 + y];+ }+}++/* ======================================================================== */+/* Block properties */+/* ======================================================================== */++/* flags per block id */+enum {+ BF_OPAQUE = 1, /* light opacity != 0: counts in the height map */+ BF_SOLID = 2, /* Material.isSolid() */+ BF_BUILD = 4, /* Material.isBuildable() */+ BF_LEAVES = 8,+ BF_LOG = 16,+ BF_PLANT = 32, /* REPLACEABLE_PLANT or PLANT material (flowers, grass, saplings...) */+ BF_CUBE = 64, /* Block.o(): opaque full cube (leaves included on the server) */+ BF_LIQUID = 128+};+static uint8_t bflags[256];++static void bflags_init(void) {+ for (int i = 0; i < 256; i++) bflags[i] = BF_OPAQUE | BF_SOLID | BF_BUILD | BF_CUBE;+ static const uint8_t air[] = {B_AIR};+ bflags[air[0]] = 0;+ bflags[B_WATER] = bflags[B_FLOWING_WATER] = BF_OPAQUE | BF_LIQUID;+ bflags[B_LAVA] = bflags[B_FLOWING_LAVA] = BF_LIQUID;+ static const uint8_t leaves[] = {B_LEAVES_OAK, B_LEAVES_SPRUCE, B_LEAVES_BIRCH, B_LEAVES_JUNGLE, B_LEAVES_ACACIA,+ B_LEAVES_DARK_OAK};+ for (unsigned i = 0; i < sizeof leaves; i++) bflags[leaves[i]] = BF_OPAQUE | BF_SOLID | BF_BUILD | BF_LEAVES | BF_CUBE;+ static const uint8_t logs[] = {B_LOG_OAK, B_LOG_OAK_X, B_LOG_OAK_Z, B_LOG_OAK_BARK, B_LOG_SPRUCE, B_LOG_SPRUCE_X,+ B_LOG_SPRUCE_Z, B_LOG_SPRUCE_BARK, B_LOG_BIRCH, B_LOG_BIRCH_X, B_LOG_BIRCH_Z,+ B_LOG_BIRCH_BARK, B_LOG_JUNGLE, B_LOG_JUNGLE_X, B_LOG_JUNGLE_Z, B_LOG_JUNGLE_BARK,+ B_LOG_ACACIA, B_LOG_ACACIA_X, B_LOG_ACACIA_Z, B_LOG_ACACIA_BARK, B_LOG_DARK_OAK,+ B_LOG_DARK_OAK_X, B_LOG_DARK_OAK_Z, B_LOG_DARK_OAK_BARK};+ for (unsigned i = 0; i < sizeof logs; i++) bflags[logs[i]] |= BF_LOG;+ static const uint8_t plants[] = {B_SAPLING_OAK, B_SAPLING_SPRUCE, B_SAPLING_BIRCH, B_SAPLING_JUNGLE,+ B_SAPLING_ACACIA, B_SAPLING_DARK_OAK, B_DEAD_SHRUB, B_TALL_GRASS, B_FERN,+ B_DEAD_BUSH, B_DANDELION, B_POPPY, B_BLUE_ORCHID, B_ALLIUM, B_AZURE_BLUET,+ B_RED_TULIP, B_ORANGE_TULIP, B_WHITE_TULIP, B_PINK_TULIP, B_OXEYE_DAISY,+ B_BROWN_MUSHROOM, B_RED_MUSHROOM, B_SUGAR_CANE, B_VINE, B_LILY_PAD,+ B_SUNFLOWER_LOWER, B_SUNFLOWER_UPPER, B_LILAC_LOWER, B_LILAC_UPPER,+ B_DOUBLE_GRASS_LOWER, B_DOUBLE_GRASS_UPPER, B_LARGE_FERN_LOWER,+ B_LARGE_FERN_UPPER, B_ROSE_BUSH_LOWER, B_ROSE_BUSH_UPPER, B_PEONY_LOWER,+ B_PEONY_UPPER};+ for (unsigned i = 0; i < sizeof plants; i++) bflags[plants[i]] = BF_PLANT;+ bflags[B_SNOW_LAYER] = 0; /* not solid, opacity 0 */+ bflags[B_ICE] = BF_OPAQUE | BF_SOLID | BF_BUILD;+ bflags[B_PACKED_ICE] = BF_OPAQUE | BF_SOLID | BF_BUILD | BF_CUBE;+ bflags[B_CACTUS] = BF_SOLID | BF_BUILD;+ bflags[B_COBWEB] = BF_OPAQUE;+ bflags[B_MOB_SPAWNER] = BF_SOLID | BF_BUILD;+ bflags[B_CHEST] = BF_SOLID | BF_BUILD;+ bflags[B_GLASS] = BF_SOLID | BF_BUILD;+ bflags[B_PUMPKIN] = BF_OPAQUE | BF_SOLID | BF_BUILD | BF_CUBE;+ bflags[B_SANDSTONE_SLAB] = BF_SOLID | BF_BUILD;+ bflags[B_STONE_SLAB] = BF_SOLID | BF_BUILD;+}++#define IS_AIR(b) ((b) == B_AIR)+#define IS_LEAVES(b) (bflags[b] & BF_LEAVES)+#define IS_LOG(b) (bflags[b] & BF_LOG)+#define IS_SOLID(b) (bflags[b] & BF_SOLID)+#define IS_BUILD(b) (bflags[b] & BF_BUILD)+#define IS_OPAQUE(b) (bflags[b] & BF_OPAQUE)+#define IS_CUBE(b) (bflags[b] & BF_CUBE)+#define IS_PLANT(b) (bflags[b] & BF_PLANT)+#define IS_WATER(b) ((b) == B_WATER || (b) == B_FLOWING_WATER)+#define IS_DIRTISH(b) ((b) == B_DIRT || (b) == B_COARSE_DIRT || (b) == B_PODZOL)+#define IS_CLAY(b) ((b) == B_HARDENED_CLAY || ((b) >= B_STAINED_CLAY_WHITE && (b) <= B_STAINED_CLAY_BLACK))++/* filler below a top block (for summary-based reads) */+static uint8_t filler_of(uint8_t top) {+ switch (top) {+ case B_SAND: return B_SAND;+ case B_RED_SAND: return B_STAINED_CLAY_ORANGE;+ case B_GRAVEL: return B_GRAVEL;+ case B_STONE: return B_STONE;+ default:+ if (IS_CLAY(top)) return B_STAINED_CLAY_ORANGE;+ return B_DIRT;+ }+}++/* block of a column from its summary (no caves, no decoration) */+static uint8_t sum_block(const ColSum *s, int y) {+ if (y < 0) return B_BEDROCK;+ if (y > s->top) {+ if (y == s->top + 1 && s->blk == B_LILY_PAD) return B_LILY_PAD;+ return B_AIR;+ }+ if (y == 0) return B_BEDROCK;+ if (is_liquid_top(s->blk)) {+ if (y == s->top) return s->blk == B_LILY_PAD ? B_WATER : s->blk;+ if (y > s->aux) return s->blk == B_LAVA ? B_LAVA : B_WATER;+ if (y == s->aux) return B_SAND; /* floor (sand, gravel, dirt or clay: all buildable) */+ return B_STONE;+ }+ if (y == s->top) return s->blk;+ if (y >= s->top - s->aux) return filler_of(s->blk);+ return B_STONE;+}diff --git a/games/numblocks/src/gen.h b/games/numblocks/src/gen.hnew file mode 100644index 00000000..168f7f48--- /dev/null+++ b/games/numblocks/src/gen.h@@ -0,0 +1,32 @@+/* NumBlocks world generator: a port of Minecraft 1.8.8's default overworld+ * generator (ChunkProviderGenerate and everything it calls), sized for the+ * NumWorks calculator (all state static, no malloc, about 28 KB of RAM).+ * See the comment at the top of gen.c for what differs from Minecraft. */+#ifndef NB_GEN_H+#define NB_GEN_H+#include <stdint.h>++/* Starts a world: seed as a Java long (what /seed prints). Call before anything else. */+void gen_init(int64_t seed);++/* Blocks of chunk (cx, cz) for y in [y0, y0 + h), after terrain, caves, ravines+ * and the decoration (population) that Minecraft would put in this chunk:+ * out[(y - y0) * 256 + z * 16 + x], x and z in 0..15, values from blocks.h (B_*).+ * Only y < 128 is ever written (y0 + h must be <= 128). */+void gen_slab(int cx, int cz, int y0, int h, uint8_t *out);++/* Minecraft biome id at block (x, z) (0 ocean, 1 plains, ... 129+ mutated). */+int gen_biome(int x, int z);++/* y (0..127) of the highest non-air block of column (x, z) after generation+ * (including trees and other decoration), or -1 if the column is empty. */+int gen_top(int x, int z);++/* The world spawn point, as Minecraft chooses it (WorldChunkManager.findBiomePosition+ * then the random walk until the top block is grass); y is the first air block above it. */+void gen_spawn(int *x, int *y, int *z);++/* Statistics for tests: bytes of static RAM the generator uses. */+unsigned gen_ram_bytes(void);++#endifdiff --git a/games/numblocks/src/gui.c b/games/numblocks/src/gui.cnew file mode 100644index 00000000..290ba4a5--- /dev/null+++ b/games/numblocks/src/gui.c@@ -0,0 +1,1095 @@+/* What is drawn over the 3D view, and the screens: the HUD (crosshair,+ * hotbar, hearts, food, armour, air, experience), the inventory, the+ * crafting table, the furnace and the chest, the game menu and the death+ * screen. All drawn strip by strip just before each strip goes to the+ * screen (render.c calls hud_strip), at Minecraft's GUI scale 1, which is+ * what 1.8 picks for a 320 x 240 window.+ *+ * In a container a cursor jumps between slots with the arrows: OK is the+ * left click, EXE the right click, shift + OK the shift click, a digit swaps+ * with that hotbar slot; var or Back closes. */+#include <math.h>+#include <stdlib.h>+#include "nb.h"++int gui;+static int clip_y0, clip_y1; /* the strip: screen rows [clip_y0, clip_y1) */+static uint16_t *clip_buf;+static uint32_t frame_no;++/* ---------------------------------------------------------------- drawing */+static inline uint16_t *row_at(int y) { return clip_buf + (y - clip_y0) * SCREEN_W; }++static void sprite_part(int id, int x, int y, int sx, int sy, int w, int h) {+ int stride = (spr_w[id] + 1) / 2;+ const uint8_t *px = spr_px + spr_off[id];+ const uint16_t *pal = spr_pal[id];+ for (int r = 0; r < h; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint16_t *d = row_at(ty);+ const uint8_t *s = px + (sy + r) * stride;+ for (int c = 0; c < w; c++) {+ int tx = x + c, u = sx + c;+ if ((unsigned)tx >= SCREEN_W) continue;+ int i = (u & 1) ? s[u >> 1] >> 4 : s[u >> 1] & 15;+ if (i) d[tx] = pal[i];+ }+ }+}+static void sprite(int id, int x, int y) { sprite_part(id, x, y, 0, 0, spr_w[id], spr_h[id]); }++/* a picture kept as runs (data.h: img_*) */+static void image(int id, int x, int y) {+ int w = img_w[id], h = img_h[id];+ const uint16_t *pal = img_pal[id];+ for (int r = 0; r < h; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint16_t *d = row_at(ty) + x;+ const uint8_t *s = img_rle + img_rows[img_row0[id] + r];+ for (int c = 0; c < w;) {+ int v = *s++, n = (v & 15) + 1, i = v >> 4;+ if (n == 16) n = 16 + *s++;+ if (i)+ for (int k = 0; k < n; k++) d[c + k] = pal[i];+ c += n;+ }+ }+}++static void fill(int x, int y, int w, int h, uint16_t c) {+ for (int r = 0; r < h; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint16_t *d = row_at(ty);+ for (int k = 0; k < w; k++)+ if ((unsigned)(x + k) < SCREEN_W) d[x + k] = c;+ }+}++/* c towards colour k by a / 32 */+static inline uint16_t blend(uint16_t c, uint16_t k, int a) {+ uint32_t A = (c | (uint32_t)c << 16) & 0x07E0F81F, B = (k | (uint32_t)k << 16) & 0x07E0F81F;+ uint32_t m = (A + (((B - A) * (uint32_t)a) >> 5)) & 0x07E0F81F;+ return (uint16_t)(m | m >> 16);+}+static void tint_rect(int x, int y, int w, int h, uint16_t k, int a) {+ for (int r = 0; r < h; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint16_t *d = row_at(ty);+ for (int c = 0; c < w; c++)+ if ((unsigned)(x + c) < SCREEN_W) d[x + c] = blend(d[x + c], k, a);+ }+}++/* GuiScreen.drawDefaultBackground: the world behind, darkened (0xC0101010 to 0xD0101010) */+static void dark_background(void) {+ for (int y = clip_y0; y < clip_y1; y++) {+ int a = 24 + (y * 2) / SCREEN_H;+ uint16_t *d = row_at(y);+ for (int x = 0; x < SCREEN_W; x++) d[x] = blend(d[x], 0x1082, a);+ }+}++#define RGB(r, g, b) (uint16_t)(((r) & 0xF8) << 8 | ((g) & 0xFC) << 3 | (b) >> 3)++/* ---------------------------------------------------------------- text (FontRenderer) */+int text_width(const char *s) {+ int w = 0;+ for (; *s; s++)+ if (*s >= 32 && *s < 127) w += font_w[*s - 32];+ return w;+}+static void glyphs(const char *s, int x, int y, uint16_t col, int scale) {+ for (; *s; s++) {+ int c = (unsigned char)*s;+ if (c < 32 || c >= 127) continue;+ const uint8_t *g = font_bits + (c - 32) * 8;+ for (int r = 0; r < 8 * scale; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint8_t bits = g[r / scale];+ if (!bits) continue;+ uint16_t *d = row_at(ty);+ for (int k = 0; k < 8 * scale; k++)+ if (bits & (1 << (k / scale)) && (unsigned)(x + k) < SCREEN_W) d[x + k] = col;+ }+ x += font_w[c - 32] * scale;+ }+}+/* drawStringWithShadow: the shadow is the colour at a quarter, one pixel down and right */+static void text(const char *s, int x, int y, uint16_t col, bool shadow) {+ if (y + 9 <= clip_y0 || y >= clip_y1) return;+ if (shadow) glyphs(s, x + 1, y + 1, (uint16_t)((col >> 2) & 0x39E7), 1);+ glyphs(s, x, y, col, 1);+}+static void text_center(const char *s, int cx, int y, uint16_t col) { text(s, cx - text_width(s) / 2, y, col, true); }+static void text_big(const char *s, int cx, int y, uint16_t col, int scale) {+ int w = text_width(s) * scale;+ if (y + 9 * scale <= clip_y0 || y >= clip_y1) return;+ glyphs(s, cx - w / 2 + scale, y + scale, (uint16_t)((col >> 2) & 0x39E7), scale);+ glyphs(s, cx - w / 2, y, col, scale);+}++static void number(int n, char *buf) {+ char t[12];+ int k = 0;+ if (n < 0) *buf++ = '-', n = -n;+ do t[k++] = (char)('0' + n % 10), n /= 10;+ while (n);+ while (k) *buf++ = t[--k];+ *buf = 0;+}++/* ---------------------------------------------------------------- items (RenderItem.renderItemOverlays) */+static void draw_stack(const Stack *s, int x, int y) {+ if (!s->id) return;+ int ic = item_icon(s->id);+ if (ic >= 0) sprite(ic, x, y);+ int d = item_dur(s->id);+ if (d && s->aux) {+ /* the durability bar: 13 pixels, green to red */+ float f = 1 - s->aux / (float)d;+ int w = (int)roundf(f * 13);+ float hue = f / 3; /* 0 red .. 1/3 green */+ int r = (int)(255 * (hue < 1.0f / 6 ? 1 : 2 - hue * 6)), g = (int)(255 * (hue < 1.0f / 6 ? hue * 6 : 1));+ if (r < 0) r = 0;+ if (r > 255) r = 255;+ if (g > 255) g = 255;+ fill(x + 2, y + 13, 13, 2, 0);+ fill(x + 2, y + 13, 12, 1, RGB(r / 4, g / 4, 0));+ fill(x + 2, y + 13, w, 1, RGB(r, g, 0));+ } else if (!d && s->aux > 1) {+ char b[8];+ number(s->aux, b);+ text(b, x + 19 - 2 - text_width(b), y + 6 + 3, 0xFFFF, true);+ }+}++/* ---------------------------------------------------------------- the HUD (GuiIngame) */+static int name_timer, last_slot = -1, last_id;++static void hud(void) {+ int hx = (SCREEN_W - 182) / 2, hy = SCREEN_H - 22;+ if (gui == GUI_NONE) {+ /* Minecraft draws its crosshair inverting what is behind it */+ for (int k = -4; k <= 4; k++) {+ int pts[2][2] = {{SCREEN_W / 2 + k, SCREEN_H / 2}, {SCREEN_W / 2, SCREEN_H / 2 + k}};+ for (int p = 0; p < 2; p++) {+ if (p == 1 && k == 0) continue;+ int x = pts[p][0], y = pts[p][1];+ if (y < clip_y0 || y >= clip_y1) continue;+ uint16_t *d = row_at(y) + x;+ *d = (uint16_t)~*d;+ }+ }+ }+ if (clip_y1 <= SCREEN_H - 60) return;+ sprite(SP_HOTBAR, hx, hy);+ sprite(SP_HOTBAR_SEL, hx - 1 + pl.slot * 20, hy - 1);+ for (int i = 0; i < 9; i++) draw_stack(&pl.inv[i], hx + 3 + i * 20, hy + 3);+ if (pl.mode == 0) {+ /* experience: the bar and the level */+ int by = SCREEN_H - 32 + 3;+ sprite(SP_XP_BG, hx, by);+ int w = (int)(pl.xp * 183);+ if (w > 0) sprite_part(SP_XP, hx, by, 0, 0, w > 182 ? 182 : w, 5);+ if (pl.xp_level > 0) {+ char b[12];+ number(pl.xp_level, b);+ int tx = (SCREEN_W - text_width(b)) / 2, ty = SCREEN_H - 31 - 4;+ glyphs(b, tx + 1, ty, 0, 1);+ glyphs(b, tx - 1, ty, 0, 1);+ glyphs(b, tx, ty + 1, 0, 1);+ glyphs(b, tx, ty - 1, 0, 1);+ glyphs(b, tx, ty, RGB(0x80, 0xFF, 0x20), 1);+ }+ /* hearts, from the left; they shake at 2 hearts or less */+ int top = SCREEN_H - 39, left = SCREEN_W / 2 - 91, right = SCREEN_W / 2 + 91;+ int hp = (int)ceilf(pl.health);+ bool flash = pl.invuln > 10 && (pl.invuln / 3) % 2 == 1;+ for (int i = 0; i < 10; i++) {+ int x = left + i * 8, y = top;+ if (hp <= 4) y += (int)((frame_no * 7 + i * 13) % 3) - 1;+ sprite(flash ? SP_HEART_HIT : SP_HEART_BG, x, y);+ if (i * 2 + 1 < hp) sprite(SP_HEART, x, y);+ else if (i * 2 + 1 == hp) sprite(SP_HEART_HALF, x, y);+ }+ /* armour, over the hearts */+ int ap = 0;+ for (int i = 0; i < 4; i++)+ if (pl.armor[i].id >= 256) ap += it_a[pl.armor[i].id - 256];+ if (ap > 0)+ for (int i = 0; i < 10; i++) {+ int x = left + i * 8;+ sprite(i * 2 + 1 < ap ? SP_ARMOR_FULL : i * 2 + 1 == ap ? SP_ARMOR_HALF : SP_ARMOR_BG, x, top - 10);+ }+ /* food, from the right */+ for (int i = 0; i < 10; i++) {+ int x = right - i * 8 - 9, y = top;+ if (pl.sat <= 0 && (frame_no % (unsigned)(pl.food * 3 + 1)) == 0) y += (int)(frame_no % 3) - 1;+ sprite(SP_FOOD_BG, x, y);+ if (i * 2 + 1 < pl.food) sprite(SP_FOOD, x, y);+ else if (i * 2 + 1 == pl.food) sprite(SP_FOOD_HALF, x, y);+ }+ /* air, over the food */+ if (pl.air < 300) {+ int full = (int)ceilf((pl.air - 2) * 10 / 300.0f), part = (int)ceilf(pl.air * 10 / 300.0f) - full;+ for (int i = 0; i < full + part; i++) sprite(i < full ? SP_BUBBLE : SP_BUBBLE_POP, right - i * 8 - 9, top - 10);+ }+ }+ /* the name of the item just picked, for two seconds */+ if (gui == GUI_NONE && name_timer > 0 && held()->id) {+ const char *n = item_label(held()->id);+ int y = SCREEN_H - 59 + (pl.mode ? 14 : 0);+ text(n, (SCREEN_W - text_width(n)) / 2, y, 0xFFFF, true);+ }+}++/* ---------------------------------------------------------------- chests and furnaces */+typedef struct { int16_t x, z; uint8_t y, used; Stack s[27]; } Chest;+typedef struct { int16_t x, z; uint8_t y, used; Stack s[3]; int16_t burn, burn_max, cook; } Furnace;+#define N_CHESTS 8+#define N_FURNACES 6+static struct {+ Chest c[N_CHESTS];+ Furnace f[N_FURNACES];+} tiles;+#define chests tiles.c+#define furnaces tiles.f+void *tiles_data(uint32_t *len) {+ *len = sizeof tiles;+ return &tiles;+}+static Chest *chest;+static Furnace *furnace;++static Chest *chest_at(int x, int y, int z, bool make) {+ for (int i = 0; i < N_CHESTS; i++)+ if (chests[i].used && chests[i].x == x && chests[i].y == y && chests[i].z == z) return &chests[i];+ if (!make) return NULL;+ for (int i = 0; i < N_CHESTS; i++)+ if (!chests[i].used) {+ memset(&chests[i], 0, sizeof chests[i]);+ chests[i].used = 1, chests[i].x = (int16_t)x, chests[i].y = (uint8_t)y, chests[i].z = (int16_t)z;+ return &chests[i];+ }+ return NULL;+}+static Furnace *furnace_at(int x, int y, int z, bool make) {+ for (int i = 0; i < N_FURNACES; i++)+ if (furnaces[i].used && furnaces[i].x == x && furnaces[i].y == y && furnaces[i].z == z) return &furnaces[i];+ if (!make) return NULL;+ for (int i = 0; i < N_FURNACES; i++)+ if (!furnaces[i].used) {+ memset(&furnaces[i], 0, sizeof furnaces[i]);+ furnaces[i].used = 1, furnaces[i].x = (int16_t)x, furnaces[i].y = (uint8_t)y, furnaces[i].z = (int16_t)z;+ return &furnaces[i];+ }+ return NULL;+}++void tiles_removed(int x, int y, int z) {+ Chest *c = chest_at(x, y, z, false);+ Stack *s = NULL;+ int n = 0;+ if (c) s = c->s, n = 27, c->used = 0;+ Furnace *f = furnace_at(x, y, z, false);+ if (f) s = f->s, n = 3, f->used = 0;+ for (int i = 0; i < n; i++)+ if (s[i].id) ent_drop(s[i].id, item_count(&s[i]), s[i].aux, x + 0.5f, y + 0.5f, z + 0.5f, false);+}++/* TileEntityFurnace.update */+static bool can_smelt(const Furnace *f) {+ if (!f->s[0].id) return false;+ int out = smelt_of(f->s[0].id);+ if (!out) return false;+ if (!f->s[2].id) return true;+ return f->s[2].id == out && f->s[2].aux < item_max(out);+}+void gui_tick(void) {+ for (int i = 0; i < N_FURNACES; i++) {+ Furnace *f = &furnaces[i];+ if (!f->used) continue;+ bool was = f->burn > 0;+ if (f->burn > 0) f->burn--;+ if ((f->burn > 0 || f->s[1].id) && f->s[0].id) {+ if (f->burn == 0 && can_smelt(f)) {+ f->burn = f->burn_max = (int16_t)item_fuel(f->s[1].id);+ if (f->burn > 0) {+ if (f->s[1].id == I_LAVA_BUCKET) f->s[1].id = I_BUCKET;+ else stack_take(&f->s[1], 1);+ }+ }+ if (f->burn > 0 && can_smelt(f)) {+ if (++f->cook >= 200) {+ f->cook = 0;+ int out = smelt_of(f->s[0].id);+ if (!f->s[2].id) f->s[2].id = (uint16_t)out, f->s[2].aux = 1;+ else f->s[2].aux++;+ stack_take(&f->s[0], 1);+ }+ } else f->cook = 0;+ } else if (f->burn == 0 && f->cook > 0) f->cook = (int16_t)(f->cook > 2 ? f->cook - 2 : 0);+ if (was != (f->burn > 0) && world_loaded(f->x, f->y, f->z)) {+ int b = world_get(f->x, f->y, f->z);+ if (b == B_FURNACE || b == B_FURNACE_LIT) world_set(f->x, f->y, f->z, f->burn > 0 ? B_FURNACE_LIT : B_FURNACE);+ }+ }+}++/* ---------------------------------------------------------------- container screens */+enum { SL_NORMAL, SL_RESULT, SL_OUTPUT, SL_ARMOR, SL_FUEL };+typedef struct { uint8_t x, y, kind, k; Stack *s; } Slot;+static Slot slots[64];+static int nslots, cur, panel_x, panel_y, panel_h, grid_w;+static Stack result; /* what the crafting grid makes */+static Stack table_grid[9]; /* the crafting table's grid */+static Stack *grid;++static void add_slot(int x, int y, int kind, int k, Stack *s) {+ slots[nslots++] = (Slot){(uint8_t)x, (uint8_t)y, (uint8_t)kind, (uint8_t)k, s};+}+static void add_player_slots(int y_main, int y_hot) {+ for (int r = 0; r < 3; r++)+ for (int c = 0; c < 9; c++) add_slot(8 + c * 18, y_main + r * 18, SL_NORMAL, 0, &pl.inv[9 + r * 9 + c]);+ for (int c = 0; c < 9; c++) add_slot(8 + c * 18, y_hot, SL_NORMAL, 0, &pl.inv[c]);+}++static void update_result(void) {+ result.id = 0, result.aux = 0;+ if (!grid) return;+ int r = craft_find(grid, grid_w);+ if (r >= 0) result.id = recipes[r].out, result.aux = recipes[r].n;+ if (result.id && item_dur(result.id)) result.aux = 0;+}++static int origin_x, origin_y, origin_z;+void gui_open(int screen, int x, int y, int z) {+ gui = screen;+ nslots = 0;+ cur = 0;+ grid = NULL;+ origin_x = x, origin_y = y, origin_z = z;+ panel_h = 166;+ switch (screen) {+ case GUI_INVENTORY:+ add_slot(144, 36, SL_RESULT, 0, &result);+ for (int i = 0; i < 4; i++) add_slot(88 + (i & 1) * 18, 26 + (i >> 1) * 18, SL_NORMAL, 0, &pl.craft[i]);+ for (int i = 0; i < 4; i++) add_slot(8, 8 + i * 18, SL_ARMOR, (uint8_t)(3 - i), &pl.armor[3 - i]);+ add_player_slots(84, 142);+ grid = pl.craft, grid_w = 2;+ cur = 5 + 4 + 27; /* the first hotbar slot */+ break;+ case GUI_CRAFTING:+ add_slot(124, 35, SL_RESULT, 0, &result);+ memset(table_grid, 0, sizeof table_grid);+ for (int i = 0; i < 9; i++) add_slot(30 + (i % 3) * 18, 17 + (i / 3) * 18, SL_NORMAL, 0, &table_grid[i]);+ add_player_slots(84, 142);+ grid = table_grid, grid_w = 3;+ cur = 10 + 27;+ break;+ case GUI_FURNACE:+ furnace = furnace_at(x, y, z, true);+ if (!furnace) {+ gui = GUI_NONE;+ return;+ }+ add_slot(56, 17, SL_NORMAL, 0, &furnace->s[0]);+ add_slot(56, 53, SL_FUEL, 0, &furnace->s[1]);+ add_slot(116, 35, SL_OUTPUT, 0, &furnace->s[2]);+ add_player_slots(84, 142);+ cur = 3 + 27;+ break;+ case GUI_CHEST:+ chest = chest_at(x, y, z, true);+ if (!chest) {+ gui = GUI_NONE;+ return;+ }+ for (int i = 0; i < 27; i++) add_slot(8 + (i % 9) * 18, 18 + (i / 9) * 18, SL_NORMAL, 0, &chest->s[i]);+ add_player_slots(85, 143);+ panel_h = 167;+ cur = 27 + 27;+ break;+ }+ panel_x = (SCREEN_W - 176) / 2;+ panel_y = (SCREEN_H - panel_h) / 2;+ update_result();+}++void gui_close(void) {+ /* what is left in a crafting grid and on the cursor goes back to the inventory (or falls) */+ Stack *back[10];+ int n = 0;+ if (gui == GUI_INVENTORY)+ for (int i = 0; i < 4; i++) back[n++] = &pl.craft[i];+ if (gui == GUI_CRAFTING)+ for (int i = 0; i < 9; i++) back[n++] = &table_grid[i];+ back[n++] = &pl.cursor;+ for (int i = 0; i < n; i++) {+ Stack *s = back[i];+ if (!s->id) continue;+ int left = inv_add(pl.inv, 36, s->id, item_count(s), s->aux);+ if (left) ent_drop(s->id, left, s->aux, pl.x, pl.y + 1.32f, pl.z, true);+ s->id = 0, s->aux = 0;+ }+ gui = GUI_NONE;+ grid = NULL;+}++static bool armor_fits(int k, int id) {+ static const uint8_t want[4] = {IK_BOOTS, IK_LEGGINGS, IK_CHESTPLATE, IK_HELMET};+ return item_kind(id) == want[k];+}++/* crafting: take the result once, the grid gives one of each */+static void take_result(void) {+ for (int i = 0; i < grid_w * grid_w; i++)+ if (grid[i].id) {+ int id = grid[i].id;+ stack_take(&grid[i], 1);+ /* a milk or water bucket used in a recipe leaves its bucket */+ if (id == I_MILK_BUCKET || id == I_WATER_BUCKET || id == I_LAVA_BUCKET) grid[i].id = I_BUCKET, grid[i].aux = 1;+ }+}++static int smelt_xp_left;+static void furnace_xp(int id, int n) {+ /* RecipesFurnace's experience, x 100 */+ int x = 10;+ if (id == I_IRON_INGOT || id == I_REDSTONE) x = 70;+ else if (id == I_GOLD_INGOT || id == I_DIAMOND || id == I_EMERALD) x = 100;+ else if (id >= I_COOKED_PORKCHOP && id <= I_COOKED_FISH) x = 35;+ else if (id == I_CHARCOAL) x = 15;+ else if (id == I_DYE_GREEN || id == I_DYE_BLUE) x = 20;+ else if (id == I_BRICK) x = 30;+ else if (id == B_HARDENED_CLAY) x = 35;+ smelt_xp_left += x * n;+ player_add_xp(smelt_xp_left / 100);+ smelt_xp_left %= 100;+}++/* Container.slotClick: button 0 left, 1 right */+static void click(Slot *sl, int button) {+ Stack *s = sl->s, *c = &pl.cursor;+ if (sl->kind == SL_RESULT || sl->kind == SL_OUTPUT) {+ if (!s->id) return;+ int n = item_count(s);+ if (c->id && (c->id != s->id || item_dur(s->id) || c->aux + n > item_max(s->id))) return;+ if (!c->id) *c = *s;+ else c->aux = (uint16_t)(c->aux + n);+ if (sl->kind == SL_RESULT) {+ take_result();+ update_result();+ } else {+ furnace_xp(s->id, n);+ s->id = 0, s->aux = 0;+ }+ return;+ }+ if (sl->kind == SL_ARMOR && c->id && !armor_fits(sl->k, c->id)) return;+ if (button == 0) {+ if (!c->id) *c = *s, s->id = 0, s->aux = 0;+ else if (!s->id) {+ if (sl->kind == SL_ARMOR && item_count(c) > 1) return;+ *s = *c, c->id = 0, c->aux = 0;+ } else if (s->id == c->id && !item_dur(s->id)) {+ int room = item_max(s->id) - s->aux, k = c->aux < room ? c->aux : room;+ s->aux = (uint16_t)(s->aux + k);+ stack_take(c, k);+ } else {+ Stack t = *s;+ *s = *c, *c = t;+ }+ } else {+ if (!c->id) {+ if (!s->id) return;+ if (item_dur(s->id)) *c = *s, s->id = 0, s->aux = 0;+ else {+ int half = (s->aux + 1) / 2;+ c->id = s->id, c->aux = (uint16_t)half;+ stack_take(s, half);+ }+ } else if (!s->id || (s->id == c->id && !item_dur(c->id) && s->aux < item_max(c->id))) {+ if (!s->id) {+ s->id = c->id;+ s->aux = item_dur(c->id) ? c->aux : 0;+ }+ if (!item_dur(c->id)) s->aux++;+ stack_take(c, 1);+ } else {+ Stack t = *s;+ *s = *c, *c = t;+ }+ }+ if (grid) update_result();+}++/* moves a stack into slots [a, b) (stacks first, then empty slots); true if all of it went */+static bool merge(Stack *s, int a, int b, bool backwards) {+ for (int pass = 0; pass < 2 && s->id; pass++)+ for (int k = 0; k < b - a && s->id; k++) {+ Slot *t = &slots[backwards ? b - 1 - k : a + k];+ if (t->kind == SL_RESULT || t->kind == SL_OUTPUT) continue;+ if (t->kind == SL_ARMOR && !armor_fits(t->k, s->id)) continue;+ if (pass == 0) {+ if (t->s->id != s->id || item_dur(s->id)) continue;+ int room = item_max(s->id) - t->s->aux, n = s->aux < room ? s->aux : room;+ if (n <= 0) continue;+ t->s->aux = (uint16_t)(t->s->aux + n);+ stack_take(s, n);+ } else if (!t->s->id) {+ *t->s = *s;+ s->id = 0, s->aux = 0;+ }+ }+ return !s->id;+}++/* transferStackInSlot of each container: shift + OK */+static void shift_click(int i) {+ Slot *sl = &slots[i];+ if (!sl->s->id) return;+ int pmain = nslots - 36, phot = nslots - 9; /* the player's rows, then the hotbar */+ if (sl->kind == SL_RESULT) {+ /* craft as many as fit */+ for (int n = 0; n < 64 && result.id; n++) {+ Stack r = result;+ if (!merge(&r, pmain, nslots, true)) {+ if (r.id != result.id || r.aux != result.aux) {+ take_result();+ }+ break;+ }+ take_result();+ update_result();+ }+ update_result();+ return;+ }+ Stack s = *sl->s;+ int before = item_count(&s);+ if (i >= pmain) {+ bool done = false;+ if (gui == GUI_FURNACE) {+ if (smelt_of(s.id)) done = merge(&s, 0, 1, false);+ else if (item_fuel(s.id)) done = merge(&s, 1, 2, false);+ } else if (gui == GUI_CHEST) done = merge(&s, 0, 27, false);+ else if (gui == GUI_INVENTORY && item_kind(s.id) >= IK_HELMET && item_kind(s.id) <= IK_BOOTS)+ done = merge(&s, 5, 9, false);+ if (!done && s.id) {+ if (i >= phot) merge(&s, pmain, phot, false);+ else merge(&s, phot, nslots, false);+ }+ } else {+ if (sl->kind == SL_OUTPUT) furnace_xp(s.id, before);+ merge(&s, pmain, nslots, true);+ }+ *sl->s = s;+ if (grid) update_result();+}++/* the arrows: the nearest slot that way */+static void move_cursor(int dx, int dy) {+ int best = -1;+ float bd = 1e9f;+ int cx = slots[cur].x, cy = slots[cur].y;+ for (int i = 0; i < nslots; i++) {+ if (i == cur) continue;+ int ex = slots[i].x - cx, ey = slots[i].y - cy;+ int along = dx ? ex * dx : ey * dy, across = dx ? ey : ex;+ if (along <= 0) continue;+ float d = along + abs(across) * 2.5f;+ if (d < bd) bd = d, best = i;+ }+ if (best >= 0) cur = best;+}++/* ---------------------------------------------------------------- menus+ * GuiMainMenu, GuiSelectWorld, GuiCreateWorld, GuiYesNo, GuiOptions,+ * GuiIngameMenu, GuiGameOver: their buttons where 1.8 puts them. */+typedef struct { int16_t x, y, w; uint8_t on, id; char label[32]; } Button;+static Button buttons[12];+static int nbuttons, bcur;+enum { B_NO, B_SINGLE, B_OPTIONS, B_QUITAPP, B_PLAY, B_CREATE, B_DELETE, B_CANCEL, B_MODE, B_SEED, B_DOCREATE,+ B_DODELETE, B_DIFF, B_GFX, B_LOOK, B_CLOUDS, B_BOB, B_DONE, B_BACK_GAME, B_SAVEQUIT, B_RESPAWN, B_TITLE };+int menu_choice; /* an action for main.c (ACT_*) */+int create_mode; /* the new world's game mode */+char seed_text[21]; /* the new world's seed, as typed */+static int options_from; /* the screen the options go back to */+static bool seed_focus;++static void add_button(int x, int y, int w, int on, int id, const char *label) {+ Button *b = &buttons[nbuttons++];+ *b = (Button){(int16_t)x, (int16_t)y, (int16_t)w, (uint8_t)on, (uint8_t)id, {0}};+ int i = 0;+ for (; label[i] && i < 31; i++) b->label[i] = label[i];+ b->label[i] = 0;+}+static void cat(char *d, const char *a, const char *b) {+ while (*a) *d++ = *a++;+ while (*b) *d++ = *b++;+ *d = 0;+}++static void menu(int screen) {+ nbuttons = 0;+ int w = SCREEN_W, h = SCREEN_H;+ char t[40];+ switch (screen) {+ case GUI_TITLE: {+ int j = h / 4 + 48;+ add_button(w / 2 - 100, j, 200, 1, B_SINGLE, "Singleplayer");+ add_button(w / 2 - 100, j + 24, 200, 0, B_NO, "Multiplayer");+ add_button(w / 2 - 100, j + 72 + 12 - 24, 98, 1, B_OPTIONS, "Options...");+ add_button(w / 2 + 2, j + 72 + 12 - 24, 98, 1, B_QUITAPP, "Quit Game");+ break;+ }+ case GUI_WORLDS: {+ bool any = world_exists();+ add_button(w / 2 - 154, h - 52, 150, any, B_PLAY, "Play Selected World");+ add_button(w / 2 + 4, h - 52, 150, 1, B_CREATE, "Create New World");+ add_button(w / 2 - 154, h - 28, 72, 0, B_NO, "Rename");+ add_button(w / 2 - 76, h - 28, 72, any, B_DELETE, "Delete");+ add_button(w / 2 + 4, h - 28, 72, 0, B_NO, "Re-Create");+ add_button(w / 2 + 82, h - 28, 72, 1, B_CANCEL, "Cancel");+ break;+ }+ case GUI_CREATE:+ cat(t, "Game Mode: ", create_mode ? "Creative" : "Survival");+ add_button(w / 2 - 75, 100, 150, 1, B_MODE, t);+ cat(t, "Seed: ", seed_text[0] ? seed_text : (seed_focus ? "" : "(random)"));+ add_button(w / 2 - 100, 150, 200, 1, B_SEED, t);+ add_button(w / 2 - 155, h - 28, 150, 1, B_DOCREATE, "Create New World");+ add_button(w / 2 + 5, h - 28, 150, 1, B_CANCEL, "Cancel");+ break;+ case GUI_CONFIRM:+ add_button(w / 2 - 155, h / 6 + 96, 150, 1, B_DODELETE, "Delete");+ add_button(w / 2 + 5, h / 6 + 96, 150, 1, B_CANCEL, "Cancel");+ break;+ case GUI_OPTIONS: {+ static const char *const diff[4] = {"Peaceful", "Easy", "Normal", "Hard"};+ cat(t, "Difficulty: ", diff[opt.difficulty & 3]);+ add_button(w / 2 - 155, h / 6 - 12, 150, 1, B_DIFF, t);+ cat(t, "Graphics: ", opt.fancy ? "Fancy" : "Fast");+ add_button(w / 2 + 5, h / 6 - 12, 150, 1, B_GFX, t);+ char n[8];+ number(opt.look, n);+ cat(t, "Look Speed: ", n);+ int k = (int)strlen(t);+ t[k] = '%', t[k + 1] = 0;+ add_button(w / 2 - 155, h / 6 + 12, 150, 1, B_LOOK, t);+ cat(t, "Clouds: ", opt.clouds ? "ON" : "OFF");+ add_button(w / 2 + 5, h / 6 + 12, 150, 1, B_CLOUDS, t);+ cat(t, "View Bobbing: ", opt.bobbing ? "ON" : "OFF");+ add_button(w / 2 - 155, h / 6 + 36, 150, 1, B_BOB, t);+ add_button(w / 2 - 100, h / 6 + 168, 200, 1, B_DONE, "Done");+ break;+ }+ case GUI_PAUSE:+ add_button(w / 2 - 100, h / 4 + 24 - 16, 200, 1, B_BACK_GAME, "Back to Game");+ add_button(w / 2 - 100, h / 4 + 48 - 16, 98, 0, B_NO, "Achievements");+ add_button(w / 2 + 2, h / 4 + 48 - 16, 98, 0, B_NO, "Statistics");+ add_button(w / 2 - 100, h / 4 + 96 - 16, 98, 1, B_OPTIONS, "Options...");+ add_button(w / 2 + 2, h / 4 + 96 - 16, 98, 0, B_NO, "Open to LAN");+ add_button(w / 2 - 100, h / 4 + 120 - 16, 200, 1, B_SAVEQUIT, "Save and Quit to Title");+ break;+ case GUI_DEATH:+ add_button(w / 2 - 100, h / 4 + 72, 200, 1, B_RESPAWN, "Respawn");+ add_button(w / 2 - 100, h / 4 + 96, 200, 1, B_TITLE, "Title screen");+ break;+ }+ if (bcur >= nbuttons || !buttons[bcur].on)+ for (bcur = 0; bcur < nbuttons - 1 && !buttons[bcur].on; bcur++) {}+}++void gui_menu(int screen) {+ gui = screen;+ bcur = 0;+ seed_focus = false;+ menu(screen);+}++static void button(const Button *b, bool hover) {+ int sp = !b->on ? SP_BUTTON_OFF : hover ? SP_BUTTON_HOVER : SP_BUTTON;+ /* GuiButton.drawButton: the left half from the texture's left, the right half from its right */+ sprite_part(sp, b->x, b->y, 0, 0, b->w / 2, 20);+ sprite_part(sp, b->x + b->w / 2, b->y, 200 - b->w / 2, 0, b->w / 2, 20);+ uint16_t col = !b->on ? RGB(0xA0, 0xA0, 0xA0) : hover ? RGB(0xFF, 0xFF, 0xA0) : RGB(0xE0, 0xE0, 0xE0);+ text_center(b->label, b->x + b->w / 2, b->y + (20 - 8) / 2, col);+}++static void press(int id) {+ switch (id) {+ case B_SINGLE: gui_menu(GUI_WORLDS); break;+ case B_OPTIONS:+ options_from = gui;+ gui_menu(GUI_OPTIONS);+ break;+ case B_QUITAPP: menu_choice = ACT_QUIT_APP; break;+ case B_PLAY: menu_choice = ACT_PLAY; break;+ case B_CREATE:+ create_mode = 0;+ seed_text[0] = 0;+ gui_menu(GUI_CREATE);+ break;+ case B_DELETE: gui_menu(GUI_CONFIRM); break;+ case B_DODELETE:+ delete_world();+ gui_menu(GUI_WORLDS);+ break;+ case B_CANCEL: gui_menu(gui == GUI_WORLDS ? GUI_TITLE : GUI_WORLDS); break;+ case B_MODE: create_mode = !create_mode; break;+ case B_SEED: seed_focus = !seed_focus; break;+ case B_DOCREATE: menu_choice = ACT_NEW; break;+ case B_DIFF: opt.difficulty = (uint8_t)((opt.difficulty + 1) & 3); break;+ case B_GFX: opt.fancy = !opt.fancy; break;+ case B_LOOK: opt.look = (uint8_t)(opt.look >= 200 ? 50 : opt.look + 25); break;+ case B_CLOUDS: opt.clouds = !opt.clouds; break;+ case B_BOB: opt.bobbing = !opt.bobbing; break;+ case B_DONE:+ save_options();+ gui_menu(options_from);+ break;+ case B_BACK_GAME: gui = GUI_NONE; break;+ case B_SAVEQUIT: menu_choice = ACT_SAVE_QUIT; break;+ case B_RESPAWN: menu_choice = ACT_RESPAWN; break;+ case B_TITLE: menu_choice = ACT_TITLE; break;+ }+ if (gui != GUI_NONE) menu(gui);+}++static void menu_input(uint32_t keys, uint32_t pressed) {+ if (!nbuttons) menu(gui);+ if (seed_focus) {+ /* typing the seed: digits, a minus first; backspace deletes; OK is done */+ int n = (int)strlen(seed_text);+ for (int d = 0; d < 9; d++)+ if (pressed & (K_SLOT1 << d) && n < 19) seed_text[n++] = (char)('1' + d), seed_text[n] = 0;+ if (pressed & K_ZERO && n < 19) seed_text[n++] = '0', seed_text[n] = 0;+ if (pressed & K_MINUS && n == 0) seed_text[n++] = '-', seed_text[n] = 0;+ if ((pressed & K_ATTACK) && !(keys & K_BACK) && n > 0) seed_text[--n] = 0;+ if (pressed & (K_USE | K_BACK)) seed_focus = false;+ menu(gui);+ return;+ }+ int dir = (pressed & (K_DOWN | K_RIGHT)) ? 1 : (pressed & (K_UP | K_LEFT)) ? -1 : 0;+ if (dir)+ for (int k = 0; k < nbuttons; k++) {+ bcur = (bcur + dir + nbuttons) % nbuttons;+ if (buttons[bcur].on) break;+ }+ if (pressed & K_USE && buttons[bcur].on) press(buttons[bcur].id);+ else if (pressed & K_BACK) {+ /* Back: the way out of each screen */+ if (gui == GUI_PAUSE) gui = GUI_NONE;+ else if (gui == GUI_OPTIONS) press(B_DONE);+ else if (gui == GUI_WORLDS || gui == GUI_CREATE || gui == GUI_CONFIRM) press(B_CANCEL);+ }+}++/* the title's name, in stone, like the game's logo (but its own) */+static void logo(int y) {+ const char *s = "NumBlocks";+ const int sc = 4;+ int w = text_width(s) * sc, x0 = (SCREEN_W - w) / 2;+ if (y + 8 * sc + 4 <= clip_y0 || y >= clip_y1) return;+ for (int d = 3; d >= 1; d--) glyphs(s, x0 + d, y + d, RGB(0x30 + d * 8, 0x30 + d * 8, 0x30 + d * 8), sc);+ /* the face: stone texels, 4 screen pixels each */+ int tex = blk_tex[B_STONE][0];+ for (int r = 0; r < 8 * sc; r++) {+ int ty = y + r;+ if (ty < clip_y0 || ty >= clip_y1) continue;+ uint16_t *d = row_at(ty);+ int x = x0;+ for (const char *c = s; *c; c++) {+ const uint8_t *g = font_bits + (*c - 32) * 8;+ for (int k = 0; k < 8 * sc; k++)+ if (g[r / sc] & (1 << (k / sc))) {+ int u = ((x + k) / 2) & 15, v = (ty / 2) & 15;+ uint8_t p = tex_px[tex][(v * 16 + u) >> 1];+ uint16_t col = tex_pal[tex][(u & 1) ? p >> 4 : p & 15];+ if (r < sc) col = blend(col, 0xFFFF, 8); /* a lit top edge */+ d[x + k] = col;+ }+ x += font_w[*c - 32] * sc;+ }+ }+}++/* the yellow splash, turned 20 degrees */+static void splash(const char *s, int cx, int cy, float scale) {+ float a = -20 * 0.017453292f, ca = cosf(a), sa = sinf(a);+ int tw = text_width(s);+ int half = (int)(tw * scale / 2) + 12;+ for (int y = cy - half; y < cy + half; y++) {+ if (y < clip_y0 || y >= clip_y1) continue;+ uint16_t *d = row_at(y);+ for (int x = cx - half; x < cx + half; x++) {+ if ((unsigned)x >= SCREEN_W) continue;+ float dx = (x - cx) / scale, dy = (y - cy) / scale;+ for (int sh = 1; sh >= 0; sh--) {+ float u = ca * (dx - sh) + sa * (dy - sh) + tw / 2.0f, v = -sa * (dx - sh) + ca * (dy - sh) + 4;+ if (u < 0 || v < 0 || u >= tw || v >= 8) continue;+ int px = (int)u, row = (int)v, cx2 = 0;+ const char *c = s;+ while (*c && cx2 + font_w[*c - 32] <= px) cx2 += font_w[*c - 32], c++;+ if (!*c) continue;+ if (font_bits[(*c - 32) * 8 + row] & (1 << (px - cx2))) d[x] = sh ? RGB(0x3F, 0x3F, 0) : RGB(0xFF, 0xFF, 0);+ }+ }+ }+}++static void dirt_background(void) {+ /* GuiScreen.drawBackground: the options background, 32 pixel tiles, darkened */+ int id = SP_DIRT_BG;+ const uint8_t *px = spr_px + spr_off[id];+ const uint16_t *pal = spr_pal[id];+ for (int y = clip_y0; y < clip_y1; y++) {+ uint16_t *d = row_at(y);+ const uint8_t *s = px + ((y / 2) & 15) * 8;+ for (int x = 0; x < SCREEN_W; x++) {+ int u = (x / 2) & 15;+ d[x] = pal[(u & 1) ? s[u >> 1] >> 4 : s[u >> 1] & 15];+ }+ }+}++static void menu_screen(void) {+ int w = SCREEN_W, h = SCREEN_H;+ switch (gui) {+ case GUI_TITLE:+ logo(30);+ splash("Also try Minecraft!", w / 2 + 90, 70, 1.6f + 0.1f * fabsf(sinf((frame_no % 60) * 0.1047f)));+ text("NumBlocks 1.0", 2, h - 10, 0xFFFF, true);+ text("Made by Mason Chen for NumPlay", w - text_width("Made by Mason Chen for NumPlay") - 2, h - 10, 0xFFFF,+ true);+ break;+ case GUI_WORLDS:+ text_center("Select World", w / 2, 20, 0xFFFF);+ if (world_exists()) {+ /* the one world, selected */+ int x = w / 2 - 110, y = 36;+ fill(x - 2, y - 2, 220, 36, RGB(0x80, 0x80, 0x80));+ fill(x - 1, y - 1, 218, 34, 0);+ text("New World", x + 2, y + 1, 0xFFFF, true);+ char t[48], n[12];+ number((int)((30000 - (int)plat_storage_free()) / 1024), n);+ cat(t, "nb1 (storage free: ", "");+ number((int)(plat_storage_free() / 1024), n);+ cat(t + strlen(t), n, " KB)");+ text(t, x + 2, y + 12, RGB(0x80, 0x80, 0x80), true);+ text(world_mode() == 1 ? "Creative Mode" : "Survival Mode", x + 2, y + 22, RGB(0x80, 0x80, 0x80), true);+ } else text_center("No worlds yet", w / 2, 60, RGB(0x80, 0x80, 0x80));+ break;+ case GUI_CREATE:+ text_center("Create New World", w / 2, 20, 0xFFFF);+ text("World Name", w / 2 - 100, 47, RGB(0xA0, 0xA0, 0xA0), true);+ fill(w / 2 - 101, 59, 202, 22, RGB(0xA0, 0xA0, 0xA0));+ fill(w / 2 - 100, 60, 200, 20, 0);+ text("New World", w / 2 - 96, 66, RGB(0xE0, 0xE0, 0xE0), true);+ text_center(create_mode ? "Unlimited resources, free flying and" : "Search for resources, crafting, gain",+ w / 2, 122, RGB(0xA0, 0xA0, 0xA0));+ text_center(create_mode ? "destroy blocks instantly" : "levels, health and hunger", w / 2, 134,+ RGB(0xA0, 0xA0, 0xA0));+ text_center(seed_focus ? "Type with the digits, then OK" : "Leave blank for a random seed", w / 2, 174,+ RGB(0xA0, 0xA0, 0xA0));+ break;+ case GUI_CONFIRM:+ text_center("Are you sure you want to delete this world?", w / 2, 70, 0xFFFF);+ text_center("'New World' will be lost forever! (A long time!)", w / 2, 90, 0xFFFF);+ break;+ case GUI_OPTIONS: text_center("Options", w / 2, 15, 0xFFFF); break;+ case GUI_PAUSE: text_center("Game menu", w / 2, 40, 0xFFFF); break;+ case GUI_LOADING:+ text_center("Loading world", w / 2, h / 2 - 50, 0xFFFF);+ text_center("Building terrain", w / 2, h / 2 - 20, 0xFFFF);+ break;+ }+ for (int i = 0; i < nbuttons; i++) button(&buttons[i], i == bcur && !seed_focus);+ if (seed_focus && gui == GUI_CREATE) {+ /* the field being typed in: a white frame and a blinking cursor */+ Button *b = &buttons[1];+ fill(b->x, b->y, b->w, 1, 0xFFFF);+ fill(b->x, b->y + 19, b->w, 1, 0xFFFF);+ fill(b->x, b->y, 1, 20, 0xFFFF);+ fill(b->x + b->w - 1, b->y, 1, 20, 0xFFFF);+ if ((frame_no / 6) & 1) {+ int tx = b->x + b->w / 2 + text_width(b->label) / 2 + 1;+ fill(tx, b->y + 6, 5, 1, 0xFFFF);+ fill(tx, b->y + 13, 5, 1, 0xFFFF);+ }+ }+}++/* ---------------------------------------------------------------- input */+void gui_input(uint32_t keys, uint32_t pressed) {+ if (gui >= GUI_PAUSE) {+ if (gui == GUI_PAUSE && (pressed & K_PAUSE)) {+ gui = GUI_NONE;+ return;+ }+ menu_input(keys, pressed);+ return;+ }+ if (gui == GUI_NONE) {+ nbuttons = 0;+ if (pressed & K_INV && !pl.dead) gui_open(pl.mode == 1 ? GUI_INVENTORY : GUI_INVENTORY, 0, 0, 0);+ else if (pressed & K_PAUSE) gui_menu(GUI_PAUSE);+ if (held()->id != last_id || pl.slot != last_slot) name_timer = 40, last_id = held()->id, last_slot = pl.slot;+ if (name_timer) name_timer--;+ return;+ }+ /* a container */+ if (pressed & (K_INV | K_BACK | K_PAUSE)) {+ gui_close();+ return;+ }+ if (pressed & K_LEFT) move_cursor(-1, 0);+ if (pressed & K_RIGHT) move_cursor(1, 0);+ if (pressed & K_UP) move_cursor(0, -1);+ if (pressed & K_DOWN) move_cursor(0, 1);+ if (pressed & K_OK) {+ if (keys & K_SHIFT) shift_click(cur);+ else click(&slots[cur], 0);+ } else if (pressed & K_EXE) click(&slots[cur], 1);+ /* a digit: swap with that hotbar slot */+ for (int n = 0; n < 9; n++)+ if (pressed & (K_SLOT1 << n)) {+ Slot *sl = &slots[cur];+ if (sl->kind == SL_RESULT || sl->kind == SL_OUTPUT) {+ if (!pl.inv[n].id) {+ pl.inv[n] = *sl->s;+ if (sl->kind == SL_RESULT) take_result(), update_result();+ else sl->s->id = 0, sl->s->aux = 0;+ }+ } else if (sl->s != &pl.inv[n] && (sl->kind != SL_ARMOR || !pl.inv[n].id || armor_fits(sl->k, pl.inv[n].id))) {+ Stack t = *sl->s;+ *sl->s = pl.inv[n];+ pl.inv[n] = t;+ }+ if (grid) update_result();+ }+ /* xnt: throw the hovered stack's one item */+ if (pressed & K_DROP) {+ Slot *sl = &slots[cur];+ if (sl->s->id && sl->kind != SL_RESULT) {+ ent_drop(sl->s->id, 1, sl->s->aux, pl.x, pl.y + 1.32f, pl.z, true);+ stack_take(sl->s, 1);+ }+ }+}++/* ---------------------------------------------------------------- drawing a screen */+static void tooltip(const char *s, int x, int y) {+ /* GuiScreen.drawHoveringText: dark violet box with a blue to purple frame */+ int w = text_width(s), h = 8;+ x += 12, y -= 12;+ if (x + w + 4 > SCREEN_W) x = SCREEN_W - w - 4;+ if (y < 4) y = 4;+ fill(x - 3, y - 4, w + 6, 1, RGB(0x10, 0, 0x10));+ fill(x - 3, y + h + 3, w + 6, 1, RGB(0x10, 0, 0x10));+ fill(x - 3, y - 3, w + 6, h + 6, RGB(0x10, 0, 0x10));+ fill(x - 4, y - 3, 1, h + 6, RGB(0x10, 0, 0x10));+ fill(x + w + 3, y - 3, 1, h + 6, RGB(0x10, 0, 0x10));+ fill(x - 3, y - 2, 1, h + 4, RGB(0x50, 0, 0xFF));+ fill(x + w + 2, y - 2, 1, h + 4, RGB(0x28, 0, 0x7F));+ fill(x - 3, y - 3, w + 6, 1, RGB(0x50, 0, 0xFF));+ fill(x - 3, y + h + 2, w + 6, 1, RGB(0x28, 0, 0x7F));+ text(s, x, y, 0xFFFF, true);+}++static void container(void) {+ int px = panel_x, py = panel_y;+ static const uint8_t img[] = {0, IMG_INVENTORY, IMG_CRAFTING_TABLE, IMG_FURNACE, IMG_CHEST};+ image(img[gui], px, py);+ uint16_t label = RGB(0x40, 0x40, 0x40);+ switch (gui) {+ case GUI_INVENTORY:+ sprite(SP_STEVE, px + 51 - 13, py + 75 - 54 + 2);+ text("Crafting", px + 86, py + 16, label, false);+ for (int i = 0; i < 4; i++)+ if (!pl.armor[3 - i].id) sprite(SP_SLOT_HELMET + i, px + 8, py + 8 + i * 18);+ break;+ case GUI_CRAFTING:+ text("Crafting", px + 28, py + 6, label, false);+ text("Inventory", px + 8, py + panel_h - 96 + 2, label, false);+ break;+ case GUI_FURNACE: {+ text("Furnace", px + 88 - text_width("Furnace") / 2, py + 6, label, false);+ text("Inventory", px + 8, py + panel_h - 96 + 2, label, false);+ if (furnace->burn > 0) {+ int k = furnace->burn * 13 / (furnace->burn_max ? furnace->burn_max : 200);+ sprite_part(SP_FLAME, px + 56, py + 36 + 12 - k, 0, 12 - k, 14, k + 1);+ }+ int a = furnace->cook * 24 / 200;+ if (a > 0) sprite_part(SP_ARROW, px + 79, py + 34, 0, 0, a + 1, 16);+ break;+ }+ case GUI_CHEST:+ text("Chest", px + 8, py + 6, label, false);+ text("Inventory", px + 8, py + panel_h - 96 + 2, label, false);+ break;+ }+ for (int i = 0; i < nslots; i++) draw_stack(slots[i].s, px + slots[i].x, py + slots[i].y);+ /* the slot under the cursor: lightened (drawGradientRect 0x80FFFFFF) */+ Slot *sl = &slots[cur];+ tint_rect(px + sl->x, py + sl->y, 16, 16, 0xFFFF, 16);+ if (pl.cursor.id) draw_stack(&pl.cursor, px + sl->x + 4, py + sl->y + 4);+ else if (sl->s->id) tooltip(item_label(sl->s->id), px + sl->x + 8, py + sl->y + 8);+}++void hud_strip(uint16_t *buf, int y0, int rows) {+ clip_buf = buf;+ clip_y0 = y0;+ clip_y1 = y0 + rows;+ if (y0 == 0) frame_no++;+ if (gui < GUI_PAUSE || gui == GUI_PAUSE || gui == GUI_DEATH || (gui == GUI_OPTIONS && options_from == GUI_PAUSE)) hud();+ if (pl.hurt_time > 0 && gui == GUI_NONE) {+ /* (Minecraft tilts the camera; a red flash says the same here) */+ tint_rect(0, y0, SCREEN_W, rows, RGB(0xFF, 0, 0), pl.hurt_time);+ }+ switch (gui) {+ case GUI_INVENTORY: case GUI_CRAFTING: case GUI_FURNACE: case GUI_CHEST:+ dark_background();+ container();+ break;+ case GUI_PAUSE:+ dark_background();+ menu_screen();+ break;+ case GUI_OPTIONS:+ if (options_from == GUI_PAUSE) dark_background();+ else dirt_background();+ menu_screen();+ break;+ case GUI_TITLE:+ menu_screen();+ break;+ case GUI_WORLDS: case GUI_CREATE: case GUI_CONFIRM: case GUI_LOADING:+ dirt_background();+ menu_screen();+ break;+ case GUI_DEATH: {+ /* GuiGameOver: red gradient 0x60500000 to 0xA0803030 */+ for (int y = y0; y < y0 + rows; y++) {+ int a = 12 + y * 8 / SCREEN_H;+ uint16_t k = blend(RGB(0x50, 0, 0), RGB(0x80, 0x30, 0x30), y * 32 / SCREEN_H);+ uint16_t *d = row_at(y);+ for (int x = 0; x < SCREEN_W; x++) d[x] = blend(d[x], k, a);+ }+ text_big("You died!", SCREEN_W / 2, 60 / 2 * 2, 0xFFFF, 2);+ char b[24] = "Score: ", n[12];+ number(pl.xp_total, n);+ memcpy(b + 7, n, strlen(n) + 1);+ text_center(b, SCREEN_W / 2, 100, 0xFFFF);+ for (int i = 0; i < nbuttons; i++) button(&buttons[i], i == bcur);+ break;+ }+ }+}diff --git a/games/numblocks/src/hud.c b/games/numblocks/src/hud.cdeleted file mode 100644index 3aea9a23..00000000--- a/games/numblocks/src/hud.c+++ /dev/null@@ -1,57 +0,0 @@-/* What is drawn over the 3D view: the crosshair, the hotbar with its icons,- * and the block being mined. Drawn strip by strip, just before each strip- * goes to the screen (render.c), so nothing flickers. */-#include "nb.h"--static int clip_y0, clip_y1; /* the strip: screen rows [clip_y0, clip_y1) */-static uint16_t *clip_buf;--/* a packed sprite at (x, y), its palette index 0 see-through */-static void sprite(int id, int x, int y) {- int w = spr_w[id], h = spr_h[id], stride = (w + 1) / 2;- const uint8_t *px = spr_px + spr_off[id];- const uint16_t *pal = spr_pal[id];- for (int r = 0; r < h; r++) {- int sy = y + r;- if (sy < clip_y0 || sy >= clip_y1) continue;- uint16_t *d = clip_buf + (sy - clip_y0) * SCREEN_W;- const uint8_t *s = px + r * stride;- for (int c = 0; c < w; c++) {- int sx = x + c;- if ((unsigned)sx >= SCREEN_W) continue;- int i = (c & 1) ? s[c >> 1] >> 4 : s[c >> 1] & 15;- if (i) d[sx] = pal[i];- }- }-}--/* Minecraft draws its crosshair inverting what is behind it */-static void crosshair(void) {- for (int k = -4; k <= 4; k++) {- int pts[2][2] = {{SCREEN_W / 2 + k, SCREEN_H / 2}, {SCREEN_W / 2, SCREEN_H / 2 + k}};- for (int p = 0; p < 2; p++) {- if (p == 1 && k == 0) continue;- int x = pts[p][0], y = pts[p][1];- if (y < clip_y0 || y >= clip_y1) continue;- uint16_t *d = clip_buf + (y - clip_y0) * SCREEN_W + x;- *d = (uint16_t)~*d;- }- }-}--void hud_strip(uint16_t *buf, int y0, int rows) {- clip_buf = buf;- clip_y0 = y0;- clip_y1 = y0 + rows;- crosshair();- /* the hotbar, 182 x 22, centred at the bottom */- int hx = (SCREEN_W - 182) / 2, hy = SCREEN_H - 22;- if (clip_y1 > hy - 1) {- sprite(SP_HOTBAR, hx, hy);- sprite(SP_HOTBAR_SEL, hx - 1 + pl.slot * 20, hy - 1);- for (int i = 0; i < 9; i++) {- int b = pl.hotbar[i];- if (b > 0 && b < B_COUNT && blk_icon[b] != 0xFFFF) sprite(blk_icon[b], hx + 3 + i * 20, hy + 3);- }- }-}diff --git a/games/numblocks/src/inv.c b/games/numblocks/src/inv.cnew file mode 100644index 00000000..e8e794eb--- /dev/null+++ b/games/numblocks/src/inv.c@@ -0,0 +1,272 @@+/* Items: what they are, stacks, the player's inventory, crafting, smelting+ * and what blocks drop (Minecraft 1.8.8: InventoryPlayer, ShapedRecipes,+ * ShapelessRecipes, the Block*.getItemDropped and quantityDropped methods). */+#include "nb.h"++/* ---------------------------------------------------------------- items */+int item_max(int id) {+ if (id <= 0) return 0;+ return id < 256 ? 64 : it_stack[id - 256];+}+int item_dur(int id) { return id >= 256 ? it_dur[id - 256] : 0; }+int item_kind(int id) { return id >= 256 ? it_kind[id - 256] : (id > 0 ? IK_BLOCK : IK_NONE); }+int item_count(const Stack *s) { return !s->id ? 0 : item_dur(s->id) ? 1 : s->aux; }+const char *item_label(int id) {+ if (id >= 256) return it_label[id - 256];+ return id > 0 && blk_label[id] ? blk_label[id] : "";+}+int item_icon(int id) { return id >= 256 ? it_icon[id - 256] : id > 0 ? blk_icon[id] : -1; }+int item_fuel(int id) { return id >= 256 ? it_fuel[id - 256] : id > 0 ? blk_fuel[id] : 0; }++int smelt_of(int id) {+ for (int i = 0; i < N_SMELTING; i++)+ if (smelting[i][0] == id) return smelting[i][1];+ return 0;+}++/* how many of `id` can still go on the stack s (0 if another item) */+static int room(const Stack *s, int id) {+ if (!s->id) return item_max(id);+ if (s->id != id || item_dur(id)) return 0;+ return item_max(id) - s->aux;+}++/* InventoryPlayer.addItemStackToInventory: on stacks of the same item first+ * (hotbar first), then in the first empty slots; what does not fit is left */+int inv_add(Stack *inv, int n, int id, int count, int dmg) {+ if (item_dur(id)) {+ for (int i = 0; i < n && count; i++)+ if (!inv[i].id) inv[i].id = (uint16_t)id, inv[i].aux = (uint16_t)dmg, count--;+ return count;+ }+ for (int pass = 0; pass < 2 && count; pass++)+ for (int i = 0; i < n && count; i++) {+ if (pass == 0 && inv[i].id != id) continue;+ int r = room(&inv[i], id);+ if (r <= 0) continue;+ int k = r < count ? r : count;+ if (!inv[i].id) inv[i].id = (uint16_t)id, inv[i].aux = 0;+ inv[i].aux = (uint16_t)(inv[i].aux + k);+ count -= k;+ }+ return count;+}++/* takes one of the stack (the stack empties at 0) */+void stack_take(Stack *s, int k) {+ if (!s->id) return;+ if (item_dur(s->id) || s->aux <= k) s->id = 0, s->aux = 0;+ else s->aux = (uint16_t)(s->aux - k);+}++/* a tool or armour piece takes damage; false when it breaks */+bool stack_wear(Stack *s, int k) {+ int d = item_dur(s->id);+ if (!d) return true;+ if (s->aux + k > d) {+ s->id = 0, s->aux = 0;+ return false;+ }+ s->aux = (uint16_t)(s->aux + k);+ return true;+}++/* ---------------------------------------------------------------- crafting */+static bool in_group(const uint16_t *g, int id) {+ for (; *g != 0xFFFF; g++)+ if (*g == id) return true;+ return false;+}+static bool fits(int want, int have) {+ if (want == have) return true;+ switch (want) {+ case G_PLANKS: return have < 256 && in_group(group_planks, have);+ case G_WOOL: return have < 256 && in_group(group_wool, have);+ case G_LOG: return have < 256 && in_group(group_log, have);+ case G_SAPLING: return have < 256 && in_group(group_sapling, have);+ }+ return false;+}++/* the recipe the grid (w x w) makes, or -1 (ShapedRecipes.matches, mirrored too; ShapelessRecipes.matches) */+int craft_find(const Stack *grid, int w) {+ /* the grid's used rectangle */+ int x0 = w, y0 = w, x1 = -1, y1 = -1, used = 0;+ for (int y = 0; y < w; y++)+ for (int x = 0; x < w; x++)+ if (grid[y * w + x].id) {+ used++;+ if (x < x0) x0 = x;+ if (x > x1) x1 = x;+ if (y < y0) y0 = y;+ if (y > y1) y1 = y;+ }+ if (!used) return -1;+ int gw = x1 - x0 + 1, gh = y1 - y0 + 1;+ for (int r = 0; r < N_RECIPES; r++) {+ const Recipe *rc = &recipes[r];+ if (rc->w == 0) {+ /* shapeless: every ingredient matched by a different stack */+ if (rc->h != used) continue;+ bool taken[9] = {0};+ bool ok = true;+ for (int k = 0; k < rc->h && ok; k++) {+ ok = false;+ for (int i = 0; i < w * w; i++)+ if (grid[i].id && !taken[i] && fits(rc->in[k], grid[i].id)) {+ taken[i] = true;+ ok = true;+ break;+ }+ }+ if (ok) return r;+ continue;+ }+ if (rc->w != gw || rc->h != gh) continue;+ for (int mirror = 0; mirror < 2; mirror++) {+ bool ok = true;+ for (int y = 0; y < gh && ok; y++)+ for (int x = 0; x < gw && ok; x++) {+ int want = rc->in[y * rc->w + (mirror ? gw - 1 - x : x)];+ int have = grid[(y0 + y) * w + x0 + x].id;+ ok = want ? have && fits(want, have) : !have;+ }+ if (ok) return r;+ }+ }+ return -1;+}++/* ---------------------------------------------------------------- tools and blocks */+static int tool_kind_of(int b) {+ switch (blk_tool[b]) {+ case T_PICKAXE: return IK_PICKAXE;+ case T_AXE: return IK_AXE;+ case T_SHOVEL: return IK_SHOVEL;+ }+ return -1;+}++/* does the block need the right tool to drop anything (Material.isToolNotRequired false)? */+static bool needs_tool(int b) {+ if (b == B_ICE || b == B_PACKED_ICE) return false;+ return blk_tool[b] == T_PICKAXE || b == B_SNOW || b == B_SNOW_LAYER || b == B_COBWEB;+}++/* EntityPlayer.canHarvestBlock with the held item */+bool can_harvest(int b, int held) {+ if (!needs_tool(b)) return true;+ int k = item_kind(held);+ if (b == B_COBWEB) return k == IK_SWORD || k == IK_SHEARS;+ if (b == B_SNOW || b == B_SNOW_LAYER) return k == IK_SHOVEL;+ if (k != IK_PICKAXE) return false;+ static const uint8_t level[5] = {0, 1, 2, 3, 0}; /* wood stone iron diamond gold */+ return level[it_tier[held - 256]] >= blk_level[b];+}++/* ItemTool.getStrVsBlock and friends: how much faster than a hand */+float dig_speed(int b, int held) {+ static const uint8_t eff[5] = {2, 4, 6, 8, 12};+ int k = item_kind(held);+ if (k == IK_SWORD) {+ if (b == B_COBWEB) return 15;+ int m = blk_model[b];+ return m == M_CROSS || m == M_LEAVES || m == M_VINE || b == B_PUMPKIN || b == B_MELON ? 1.5f : 1;+ }+ if (k == IK_SHEARS) {+ if (b == B_COBWEB || blk_model[b] == M_LEAVES) return 15;+ return b >= B_WOOL_WHITE && b <= B_WOOL_BLACK ? 5 : 1;+ }+ if (k >= IK_PICKAXE && k <= IK_SHOVEL) {+ if (tool_kind_of(b) == k || (k == IK_PICKAXE && (b == B_ICE || b == B_PACKED_ICE))) return eff[it_tier[held - 256]];+ }+ return 1;+}++static uint32_t rng = 0x2545F491;+int rnd(int n) {+ rng ^= rng << 13;+ rng ^= rng >> 17;+ rng ^= rng << 5;+ return (int)((rng >> 8) % (uint32_t)n);+}+float rndf(void) { return (float)rnd(1 << 20) / (float)(1 << 20); }++/* what breaking block b with `held` drops: up to 2 stacks, how many */+int block_drops(int b, int held, Stack *out) {+ int n = 0;+ int k = item_kind(held);+ bool shears = k == IK_SHEARS;+#define DROP(id_, c_) do { if ((c_) > 0) out[n].id = (uint16_t)(id_), out[n].aux = (uint16_t)(c_), n++; } while (0)+ if (!can_harvest(b, held)) return 0;+ switch (b) {+ case B_STONE: DROP(B_COBBLESTONE, 1); return n;+ case B_GRASS: case B_GRASS_SNOWED: case B_MYCELIUM: case B_PODZOL: case B_FARMLAND: case B_FARMLAND_WET:+ DROP(B_DIRT, 1);+ return n;+ case B_COAL_ORE: DROP(I_COAL, 1); return n;+ case B_DIAMOND_ORE: DROP(I_DIAMOND, 1); return n;+ case B_EMERALD_ORE: DROP(I_EMERALD, 1); return n;+ case B_LAPIS_ORE: DROP(I_DYE_BLUE, 4 + rnd(5)); return n;+ case B_REDSTONE_ORE: DROP(I_REDSTONE, 4 + rnd(2)); return n;+ case B_GRAVEL: DROP(rnd(10) == 0 ? I_FLINT : B_GRAVEL, 1); return n;+ case B_CLAY: DROP(I_CLAY_BALL, 4); return n;+ case B_GLOWSTONE: DROP(I_GLOWSTONE_DUST, 2 + rnd(3)); return n;+ case B_MELON: DROP(I_MELON_SLICE, 3 + rnd(5)); return n;+ case B_BOOKSHELF: DROP(I_BOOK, 3); return n;+ case B_SNOW: DROP(I_SNOWBALL, 4); return n;+ case B_SNOW_LAYER: DROP(I_SNOWBALL, 1); return n;+ case B_STONE_SLAB_DOUBLE: DROP(B_STONE_SLAB, 2); return n;+ case B_COBWEB: DROP(shears ? B_COBWEB : I_STRING, 1); return n;+ case B_GLASS: case B_GLASS_PANE: case B_ICE: case B_PACKED_ICE: case B_MOB_SPAWNER: case B_MONSTER_EGG_STONE:+ case B_BEDROCK:+ return 0;+ case B_TALL_GRASS: case B_FERN: case B_DOUBLE_GRASS_LOWER: case B_DOUBLE_GRASS_UPPER: case B_LARGE_FERN_LOWER:+ case B_LARGE_FERN_UPPER:+ if (shears) DROP(blk_item[b], b == B_DOUBLE_GRASS_LOWER || b == B_DOUBLE_GRASS_UPPER ? 2 : 1);+ else if (rnd(8) == 0) DROP(I_WHEAT_SEEDS, 1);+ return n;+ case B_DEAD_BUSH: case B_DEAD_SHRUB:+ if (shears) DROP(B_DEAD_BUSH, 1);+ else DROP(I_STICK, rnd(3));+ return n;+ case B_VINE:+ if (shears) DROP(B_VINE, 1);+ return n;+ case B_BROWN_MUSHROOM_CAP: case B_BROWN_MUSHROOM_INSIDE: case B_BROWN_MUSHROOM_STEM:+ DROP(B_BROWN_MUSHROOM, rnd(10) - 7);+ return n;+ case B_RED_MUSHROOM_CAP: case B_RED_MUSHROOM_INSIDE: case B_RED_MUSHROOM_STEM:+ DROP(B_RED_MUSHROOM, rnd(10) - 7);+ return n;+ case B_WHEAT_7:+ DROP(I_WHEAT, 1);+ DROP(I_WHEAT_SEEDS, 1 + rnd(4)); /* 0-3 more, and the one planted */+ return n;+ case B_CARROTS_3: DROP(I_CARROT, 1 + rnd(4)); return n;+ case B_POTATOES_3:+ DROP(I_POTATO, 1 + rnd(4));+ if (rnd(50) == 0) DROP(I_POISONOUS_POTATO, 1);+ return n;+ }+ if (blk_model[b] == M_LEAVES) {+ if (shears) {+ DROP(b, 1);+ return n;+ }+ /* BlockLeaves: a sapling 1 in 20 (jungle 1 in 40), an apple 1 in 200 (oak, dark oak) */+ static const uint16_t sap[6] = {B_SAPLING_OAK, B_SAPLING_SPRUCE, B_SAPLING_BIRCH, B_SAPLING_JUNGLE,+ B_SAPLING_ACACIA, B_SAPLING_DARK_OAK};+ int v = b == B_LEAVES_OAK ? 0 : b == B_LEAVES_SPRUCE ? 1 : b == B_LEAVES_BIRCH ? 2 : b == B_LEAVES_JUNGLE ? 3+ : b == B_LEAVES_ACACIA ? 4 : 5;+ if (rnd(v == 3 ? 40 : 20) == 0) DROP(sap[v], 1);+ if ((v == 0 || v == 5) && rnd(200) == 0) DROP(I_APPLE, 1);+ return n;+ }+ if (b == B_BED_HEAD) return 0; /* the foot drops the bed */+ if (b == B_DOOR_OAK_UPPER) return 0;+ int it = blk_item[b];+ if (it != 0xFFFF) DROP(it, 1);+ return n;+#undef DROP+}diff --git a/games/numblocks/src/items.h b/games/numblocks/src/items.hnew file mode 100644index 00000000..4339c016--- /dev/null+++ b/games/numblocks/src/items.h@@ -0,0 +1,139 @@+/* Generated by tools/items.py: the items NumBlocks knows (ids 256 and up; below 256 a block state). */+#ifndef NB_ITEMS_H+#define NB_ITEMS_H+#include <stdint.h>+#include "blocks.h"++enum {+ I_WOODEN_SWORD = 256,+ I_WOODEN_SHOVEL = 257,+ I_WOODEN_PICKAXE = 258,+ I_WOODEN_AXE = 259,+ I_WOODEN_HOE = 260,+ I_STONE_SWORD = 261,+ I_STONE_SHOVEL = 262,+ I_STONE_PICKAXE = 263,+ I_STONE_AXE = 264,+ I_STONE_HOE = 265,+ I_IRON_SWORD = 266,+ I_IRON_SHOVEL = 267,+ I_IRON_PICKAXE = 268,+ I_IRON_AXE = 269,+ I_IRON_HOE = 270,+ I_DIAMOND_SWORD = 271,+ I_DIAMOND_SHOVEL = 272,+ I_DIAMOND_PICKAXE = 273,+ I_DIAMOND_AXE = 274,+ I_DIAMOND_HOE = 275,+ I_GOLDEN_SWORD = 276,+ I_GOLDEN_SHOVEL = 277,+ I_GOLDEN_PICKAXE = 278,+ I_GOLDEN_AXE = 279,+ I_GOLDEN_HOE = 280,+ I_SHEARS = 281,+ I_FLINT_AND_STEEL = 282,+ I_BOW = 283,+ I_ARROW = 284,+ I_LEATHER_HELMET = 285,+ I_LEATHER_CHESTPLATE = 286,+ I_LEATHER_LEGGINGS = 287,+ I_LEATHER_BOOTS = 288,+ I_CHAINMAIL_HELMET = 289,+ I_CHAINMAIL_CHESTPLATE = 290,+ I_CHAINMAIL_LEGGINGS = 291,+ I_CHAINMAIL_BOOTS = 292,+ I_IRON_HELMET = 293,+ I_IRON_CHESTPLATE = 294,+ I_IRON_LEGGINGS = 295,+ I_IRON_BOOTS = 296,+ I_GOLDEN_HELMET = 297,+ I_GOLDEN_CHESTPLATE = 298,+ I_GOLDEN_LEGGINGS = 299,+ I_GOLDEN_BOOTS = 300,+ I_DIAMOND_HELMET = 301,+ I_DIAMOND_CHESTPLATE = 302,+ I_DIAMOND_LEGGINGS = 303,+ I_DIAMOND_BOOTS = 304,+ I_STICK = 305,+ I_COAL = 306,+ I_CHARCOAL = 307,+ I_DIAMOND = 308,+ I_IRON_INGOT = 309,+ I_GOLD_INGOT = 310,+ I_GOLD_NUGGET = 311,+ I_EMERALD = 312,+ I_REDSTONE = 313,+ I_FLINT = 314,+ I_FEATHER = 315,+ I_STRING = 316,+ I_BONE = 317,+ I_GUNPOWDER = 318,+ I_LEATHER = 319,+ I_WHEAT = 320,+ I_WHEAT_SEEDS = 321,+ I_REEDS = 322,+ I_SUGAR = 323,+ I_PAPER = 324,+ I_BOOK = 325,+ I_CLAY_BALL = 326,+ I_BRICK = 327,+ I_BOWL = 328,+ I_SNOWBALL = 329,+ I_EGG = 330,+ I_SLIME_BALL = 331,+ I_GLOWSTONE_DUST = 332,+ I_BUCKET = 333,+ I_WATER_BUCKET = 334,+ I_LAVA_BUCKET = 335,+ I_MILK_BUCKET = 336,+ I_WOODEN_DOOR = 337,+ I_BED = 338,+ I_COMPASS = 339,+ I_CLOCK = 340,+ I_DYE_BLACK = 341,+ I_DYE_RED = 342,+ I_DYE_GREEN = 343,+ I_DYE_BROWN = 344,+ I_DYE_BLUE = 345,+ I_DYE_PURPLE = 346,+ I_DYE_CYAN = 347,+ I_DYE_SILVER = 348,+ I_DYE_GRAY = 349,+ I_DYE_PINK = 350,+ I_DYE_LIME = 351,+ I_DYE_YELLOW = 352,+ I_DYE_LIGHT_BLUE = 353,+ I_DYE_MAGENTA = 354,+ I_DYE_ORANGE = 355,+ I_DYE_WHITE = 356,+ I_APPLE = 357,+ I_GOLDEN_APPLE = 358,+ I_BREAD = 359,+ I_PORKCHOP = 360,+ I_COOKED_PORKCHOP = 361,+ I_BEEF = 362,+ I_COOKED_BEEF = 363,+ I_CHICKEN = 364,+ I_COOKED_CHICKEN = 365,+ I_MUTTON = 366,+ I_COOKED_MUTTON = 367,+ I_ROTTEN_FLESH = 368,+ I_SPIDER_EYE = 369,+ I_MUSHROOM_STEW = 370,+ I_COOKIE = 371,+ I_MELON_SLICE = 372,+ I_CARROT = 373,+ I_POTATO = 374,+ I_BAKED_POTATO = 375,+ I_POISONOUS_POTATO = 376,+ I_PUMPKIN_PIE = 377,+ I_RAW_FISH = 378,+ I_COOKED_FISH = 379,+ I_END = 380+};+#define N_ITEMS 124++enum { IK_NONE, IK_BLOCK, IK_PICKAXE, IK_AXE, IK_SHOVEL, IK_HOE, IK_SWORD, IK_SHEARS, IK_HELMET, IK_CHESTPLATE, IK_LEGGINGS, IK_BOOTS, IK_FOOD, IK_STEW, IK_BUCKET, IK_WATER_BUCKET, IK_LAVA_BUCKET, IK_MILK_BUCKET, IK_PLACER, IK_FLINT_AND_STEEL, IK_BOW, IK_BONE_MEAL, IK_SNOWBALL, IK_EGG };+enum { G_PLANKS = 0xF000, G_WOOL = 0xF001, G_LOG = 0xF002, G_SAPLING = 0xF003 };++#endifdiff --git a/games/numblocks/src/main.c b/games/numblocks/src/main.cindex bab51b4b..727ccadd 100644--- a/games/numblocks/src/main.c+++ b/games/numblocks/src/main.c@@ -11,17 +11,64 @@ const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level")))uint32_t perf_frames __attribute__((used)); /* read by tools/emu.py */uint32_t game_time = 1000; /* Minecraft's time of day: 0 sunrise, 6000 noon */-bool game_running = true;+bool start_in_world; /* tests: straight into a new world */-static uint32_t last, acc, held;+static uint32_t last, acc, keys_held, autosave;static float px, py, pz;+static bool in_world; /* playing; else the title screens, the world turning behind */+static float title_yaw;-void game_init(void) {- world_new(0);- player_spawn();+static void camera_reset(void) { px = pl.x, py = pl.y, pz = pl.z; }++/* the title's backdrop: the saved world where the player is, else a world of seed 0 */+static void title(void) {+ in_world = false;+ if (!load_world()) {+ world_new(0, "nbt");+ player_spawn();+ }+ gui_menu(GUI_TITLE);+ world_follow(pl.x, pl.y, pl.z);+ camera_reset();+}++/* the loading screen, drawn once before the world is built */+static void loading(void) {+ gui = GUI_LOADING;+ render_frame(NULL, game_time);world_follow(pl.x, pl.y, pl.z);+ camera_reset();+ gui = GUI_NONE;+ in_world = true;+ autosave = 0;+ acc = 0;last = plat_millis();- px = pl.x, py = pl.y, pz = pl.z;+}++static int64_t parse_seed(void) {+ if (!seed_text[0] || (seed_text[0] == '-' && !seed_text[1])) {+ /* random: the time, mixed */+ uint64_t v = (uint64_t)plat_millis() * 0x9E3779B97F4A7C15ull + perf_frames;+ v ^= v >> 29;+ v *= 0xBF58476D1CE4E5B9ull;+ return (int64_t)(v ^ v >> 32);+ }+ int64_t v = 0;+ bool neg = seed_text[0] == '-';+ for (const char *c = seed_text + neg; *c; c++) v = (int64_t)((uint64_t)v * 10 + (uint64_t)(*c - '0'));+ return neg ? -v : v;+}++void game_init(void) {+ load_options();+ last = plat_millis();+ if (start_in_world) {+ new_world(0, 0);+ game_time = 1000;+ loading();+ return;+ }+ title();}/* one frame: input, the ticks due, the picture; false once the player quits */@@ -31,30 +78,90 @@ bool game_frame(void) {last = now;if (dt > 250) dt = 250;uint32_t k = plat_keys();- if (k & K_HOME) return false;- /* looking around: arrows, 150 degrees a second sideways, 100 up and down */- float turn = dt / 1000.0f;- if (k & K_LEFT) pl.yaw -= 150 * turn;- if (k & K_RIGHT) pl.yaw += 150 * turn;- if (k & K_UP) pl.pitch -= 100 * turn;- if (k & K_DOWN) pl.pitch += 100 * turn;- if (pl.pitch > 90) pl.pitch = 90;- if (pl.pitch < -90) pl.pitch = -90;- pl.sprinting = (k & K_SPRINT) && (k & K_FWD) && !pl.sneaking;- acc += dt;- uint32_t pressed = k & ~held;- held = k;+ uint32_t pressed = k & ~keys_held;+ keys_held = k;+ if (k & K_HOME) {+ /* Home: save and quit, from anywhere */+ if (in_world) {+ if (gui != GUI_NONE && gui < GUI_PAUSE) gui_close();+ save_world();+ }+ return false;+ }+ gui_input(k, pressed);+ if (menu_choice) {+ int c = menu_choice;+ menu_choice = 0;+ switch (c) {+ case ACT_PLAY:+ if (load_world()) loading();+ break;+ case ACT_NEW:+ new_world(parse_seed(), create_mode);+ game_time = 0;+ loading();+ save_world();+ break;+ case ACT_QUIT_APP: return false;+ case ACT_SAVE_QUIT:+ case ACT_TITLE:+ save_world();+ title();+ break;+ case ACT_RESPAWN:+ player_respawn();+ gui = GUI_NONE;+ world_follow(pl.x, pl.y, pl.z);+ camera_reset();+ break;+ }+ }+ if (!in_world) {+ /* the title: the world turns slowly, nothing moves */+ title_yaw += dt * 0.006f;+ Camera c = {pl.x, pl.y + 1.62f, pl.z, title_yaw, 8};+ render_frame(gui == GUI_TITLE ? &c : NULL, game_time);+ perf_frames++;+ return true;+ }+ bool in_game = gui == GUI_NONE;+ /* looking around: arrows, 150 degrees a second sideways, 100 up and down (x the look speed) */+ if (in_game) {+ float turn = dt / 1000.0f * opt.look / 100.0f;+ if (k & K_LEFT) pl.yaw -= 150 * turn;+ if (k & K_RIGHT) pl.yaw += 150 * turn;+ if (k & K_UP) pl.pitch -= 100 * turn;+ if (k & K_DOWN) pl.pitch += 100 * turn;+ if (pl.pitch > 90) pl.pitch = 90;+ if (pl.pitch < -90) pl.pitch = -90;+ pl.sprinting = (k & K_SPRINT) && (k & K_FWD) && !pl.sneaking;+ }+ bool paused = gui == GUI_PAUSE || (gui == GUI_OPTIONS);+ if (!paused) acc += dt;+ uint32_t game_keys = in_game ? k : 0, game_pressed = in_game ? pressed : 0;while (acc >= 50) {px = pl.x, py = pl.y, pz = pl.z;- player_tick(k, pressed);- pressed = 0;+ player_tick(game_keys, game_pressed);+ game_pressed = 0;+ ents_tick();+ gui_tick();game_time++;acc -= 50;+ /* Minecraft saves every 45 seconds */+ if (++autosave >= 900) {+ autosave = 0;+ save_world();+ }+ }+ if (pl.dead && gui != GUI_DEATH) {+ if (gui != GUI_NONE && gui < GUI_PAUSE) gui_close();+ gui_menu(GUI_DEATH);}world_follow(pl.x, pl.y, pl.z);float t = acc / 50.0f;Camera c = {px + (pl.x - px) * t, py + (pl.y - py) * t + (pl.sneaking ? 1.54f : 1.62f), pz + (pl.z - pz) * t, pl.yaw,pl.pitch};+ if (pl.dead) c.y = pl.y + 0.3f;render_frame(&c, game_time);perf_frames++;return true;diff --git a/games/numblocks/src/nb.h b/games/numblocks/src/nb.hindex 001b5d9e..a01e987c 100644--- a/games/numblocks/src/nb.h+++ b/games/numblocks/src/nb.h@@ -23,14 +23,21 @@ enum {K_HOME = 1 << 12, K_SNEAK = 1 << 13, K_PAUSE = 1 << 14, K_DROP = 1 << 15,K_SLOT1 = 1 << 16, /* K_SLOT1 << n: digit n + 1 */K_SPRINT = 1 << 25,- K_ANY = 1u << 31+ K_EXE = 1 << 26, /* EXE alone (OK and EXE both give K_USE): right click in screens */+ K_SHIFT = 1 << 27, /* shift: shift click in screens */+ K_BACK = 1 << 28, /* Back alone: closes screens */+ K_OK = 1 << 29, /* OK alone */+ K_ZERO = 1 << 30, /* 0 (typing a seed) */+ K_MINUS = 1u << 31 /* - (typing a seed) */};uint32_t plat_keys(void);uint32_t plat_millis(void);void plat_sleep(uint32_t ms);void plat_push(int x, int y, int w, int h, const uint16_t *px);bool plat_save(const char *name, const void *data, uint32_t len);-const uint8_t *plat_load(const char *name, uint32_t *len);+const uint8_t *plat_load(const char *name, uint32_t *len); /* unaligned, valid until storage changes */+void plat_remove_prefix(const char *prefix);+uint32_t plat_storage_free(void);void plat_begin(void);int plat_end(void);@@ -62,25 +69,115 @@ extern uint8_t vmac[MCY * MCZ * MCX];#define MC_I(x, y, z) ((((y) >> 2) * MCZ + ((z) >> 2)) * MCX + ((x) >> 2))static inline int light_at(int i) { return (vlight[i >> 1] >> ((i & 1) * 4)) & 15; }-void world_new(int64_t seed);+void world_new(int64_t seed, const char *name); /* name: the save's record prefix */void world_follow(float x, float y, float z); /* keeps the cache around (x, y, z) */int world_get(int x, int y, int z); /* B_AIR outside the cache, B_BEDROCK below 0 */void world_set(int x, int y, int z, int b); /* a player's change: kept in the edit log */bool world_loaded(int x, int y, int z);+/* ---------------------------------------------------------------- items (inv.c) */+typedef struct { uint16_t id, aux; } Stack; /* aux: how many; for tools and armour, their damage (one) */+int item_max(int id);+int item_dur(int id);+int item_kind(int id);+int item_count(const Stack *s);+const char *item_label(int id);+int item_icon(int id); /* its sprite, -1 if none */+int item_fuel(int id);+int smelt_of(int id);+int inv_add(Stack *inv, int n, int id, int count, int dmg); /* what does not fit */+void stack_take(Stack *s, int k);+bool stack_wear(Stack *s, int k); /* false: it broke */+int craft_find(const Stack *grid, int w); /* a recipe, or -1 */+bool can_harvest(int b, int held);+float dig_speed(int b, int held);+int block_drops(int b, int held, Stack *out); /* up to 2 */+int rnd(int n);+float rndf(void);++/* ---------------------------------------------------------------- collisions (phys.c) */+bool block_box(int x, int y, int z, float *b);+float phys_clip(const float *box, int axis, float d);+bool phys_move(float *p, float *v, float w, float h);+/* ---------------------------------------------------------------- the player (player.c) */typedef struct {float x, y, z; /* feet */float vx, vy, vz; /* blocks a tick */float yaw, pitch; /* degrees */- bool on_ground, in_water, sneaking, sprinting;+ bool on_ground, in_water, sneaking, sprinting, flying, dead;int hit_x, hit_y, hit_z, hit_face; /* the block looked at (hit_face -1: none) */float breaking; /* 0..1 of the block being mined */- int hotbar[9], slot;+ int slot; /* the hotbar slot held */+ Stack inv[36]; /* 0-8 the hotbar, then the three rows */+ Stack armor[4]; /* boots, leggings, chestplate, helmet */+ Stack craft[4]; /* the inventory's 2 x 2 crafting grid */+ Stack cursor; /* held by the cursor in a screen */+ float health, sat, exhaustion, fall, last_damage;+ int food, food_timer, air, invuln, hurt_time, fire, using_ticks;+ int xp_level, xp_total;+ float xp; /* 0..1 of the way to the next level */+ int spawn_x, spawn_y, spawn_z;+ uint8_t mode; /* 0 survival, 1 creative */} Player;extern Player pl;void player_spawn(void);void player_tick(uint32_t keys, uint32_t pressed); /* 20 a second */+static inline Stack *held(void) { return &pl.inv[pl.slot]; }+void player_hurt(float amount, int kind); /* kind: DMG_* */+enum { DMG_GENERIC, DMG_FALL, DMG_DROWN, DMG_LAVA, DMG_FIRE, DMG_STARVE, DMG_WALL, DMG_VOID, DMG_MOB, DMG_ARROW,+ DMG_EXPLOSION, DMG_CACTUS };+void player_add_xp(int n);++/* ---------------------------------------------------------------- entities (entity.c) */+enum { E_NONE, E_ITEM, E_ZOMBIE, E_SKELETON, E_CREEPER, E_SPIDER, E_PIG, E_COW, E_SHEEP, E_CHICKEN, E_ARROW };+typedef struct {+ uint8_t type, on_ground, hurt, state;+ int16_t age, health, timer, delay; /* delay: an item's pickup delay */+ float x, y, z, vx, vy, vz, yaw, pitch;+ float px, py, pz; /* last tick's position */+ Stack item;+} Entity;+#define N_ENT 24+extern Entity ents[N_ENT];+Entity *ent_new(int type, float x, float y, float z);+void ent_drop(int id, int count, int dmg, float x, float y, float z, bool thrown);+void ents_tick(void);++void player_respawn(void);++/* ---------------------------------------------------------------- screens (gui.c) */+enum { GUI_NONE, GUI_INVENTORY, GUI_CRAFTING, GUI_FURNACE, GUI_CHEST,+ GUI_PAUSE, GUI_DEATH, GUI_OPTIONS, GUI_TITLE, GUI_WORLDS, GUI_CREATE, GUI_CONFIRM, GUI_LOADING };+extern int gui; /* the screen open */+void gui_open(int screen, int x, int y, int z);+void gui_close(void);+void gui_input(uint32_t keys, uint32_t pressed);+void gui_tick(void); /* 20 a second: furnaces */+void tiles_removed(int x, int y, int z); /* a chest or furnace broken: its items fall out */+void gui_menu(int screen); /* opens a menu screen */+enum { ACT_NONE, ACT_PLAY, ACT_NEW, ACT_QUIT_APP, ACT_SAVE_QUIT, ACT_RESPAWN, ACT_TITLE };+extern int menu_choice; /* what a menu asks main.c to do (ACT_*), 0 if nothing */+extern int create_mode;+extern char seed_text[21];++/* ---------------------------------------------------------------- saves and options (save.c) */+typedef struct {+ uint8_t difficulty; /* 0 peaceful, 1 easy, 2 normal, 3 hard */+ uint8_t fancy; /* graphics: 0 fast (solid leaves), 1 fancy */+ uint8_t look; /* look speed, % */+ uint8_t clouds, bobbing;+} Options;+extern Options opt;+extern int64_t world_seed;+bool save_world(void);+bool load_world(void);+bool world_exists(void);+int world_mode(void);+void new_world(int64_t seed, int mode);+void delete_world(void);+void load_options(void);+void save_options(void);/* ---------------------------------------------------------------- drawing (render.c, hud.c) */#define RW 160diff --git a/games/numblocks/src/phys.c b/games/numblocks/src/phys.cnew file mode 100644index 00000000..2db23f53--- /dev/null+++ b/games/numblocks/src/phys.c@@ -0,0 +1,68 @@+/* Collisions with blocks, for the player and every entity (Entity.moveEntity:+ * the box is moved along y, then x, then z, as far as block boxes let it). */+#include "nb.h"++static inline int ifloor(float v) { int i = (int)v; return v < (float)i ? i - 1 : i; }++/* the collision box of the block at (x, y, z), in world coordinates; false if none */+bool block_box(int x, int y, int z, float *b) {+ int s = world_get(x, y, z);+ if (!(blk_flags[s] & BF_SOLID)) return false;+ float y1 = 1;+ int m = blk_model[s];+ if (m == M_SLAB) y1 = 0.5f;+ else if (m == M_LAYER) y1 = 0.125f;+ else if (m == M_FENCE) y1 = 1.5f;+ b[0] = (float)x;+ b[1] = (float)y;+ b[2] = (float)z;+ b[3] = x + 1.0f;+ b[4] = y + y1;+ b[5] = z + 1.0f;+ if (m == M_CACTUS) b[0] += 1 / 16.0f, b[2] += 1 / 16.0f, b[3] -= 1 / 16.0f, b[5] -= 1 / 16.0f;+ return true;+}++/* how far the box `a` can move along `axis` by `d` before touching block boxes */+float phys_clip(const float *a, int axis, float d) {+ int x0 = ifloor(a[0] - (axis == 0 && d < 0 ? -d : 0)) - 1, x1 = ifloor(a[3] + (axis == 0 && d > 0 ? d : 0)) + 1;+ int y0 = ifloor(a[1] - (axis == 1 && d < 0 ? -d : 0)) - 1, y1 = ifloor(a[4] + (axis == 1 && d > 0 ? d : 0)) + 1;+ int z0 = ifloor(a[2] - (axis == 2 && d < 0 ? -d : 0)) - 1, z1 = ifloor(a[5] + (axis == 2 && d > 0 ? d : 0)) + 1;+ for (int y = y0; y <= y1; y++)+ for (int z = z0; z <= z1; z++)+ for (int x = x0; x <= x1; x++) {+ float b[6];+ if (!block_box(x, y, z, b)) continue;+ /* overlapping on the other two axes? */+ bool ov = true;+ for (int k = 0; k < 3; k++)+ if (k != axis && (a[k + 3] <= b[k] || a[k] >= b[k + 3])) ov = false;+ if (!ov) continue;+ if (d > 0 && a[axis + 3] <= b[axis]) {+ float m = b[axis] - a[axis + 3];+ if (m < d) d = m;+ } else if (d < 0 && a[axis] >= b[axis + 3]) {+ float m = b[axis + 3] - a[axis];+ if (m > d) d = m;+ }+ }+ return d;+}++/* moves a box (w wide, h high, feet at p) by v; stops on blocks, zeroes the+ * velocity along blocked axes; true if it landed on something */+bool phys_move(float *p, float *v, float w, float h) {+ float a[6] = {p[0] - w / 2, p[1], p[2] - w / 2, p[0] + w / 2, p[1] + h, p[2] + w / 2};+ float dy = phys_clip(a, 1, v[1]);+ a[1] += dy, a[4] += dy;+ float dx = phys_clip(a, 0, v[0]);+ a[0] += dx, a[3] += dx;+ float dz = phys_clip(a, 2, v[2]);+ a[2] += dz, a[5] += dz;+ bool ground = dy != v[1] && v[1] < 0;+ if (dy != v[1]) v[1] = 0;+ if (dx != v[0]) v[0] = 0;+ if (dz != v[2]) v[2] = 0;+ p[0] = (a[0] + a[3]) / 2, p[1] = a[1], p[2] = (a[2] + a[5]) / 2;+ return ground;+}diff --git a/games/numblocks/src/plat_eadk.c b/games/numblocks/src/plat_eadk.cindex 6f09e535..9fbaa624 100644--- a/games/numblocks/src/plat_eadk.c+++ b/games/numblocks/src/plat_eadk.c@@ -24,6 +24,12 @@ uint32_t plat_keys(void) {if (k & KEY(eadk_key_tangent)) r |= K_STRAFE_R;if (k & KEY(eadk_key_pi)) r |= K_JUMP;if (k & (KEY(eadk_key_ok) | KEY(eadk_key_exe))) r |= K_USE;+ if (k & KEY(eadk_key_ok)) r |= K_OK;+ if (k & KEY(eadk_key_exe)) r |= K_EXE;+ if (k & KEY(eadk_key_shift)) r |= K_SHIFT;+ if (k & KEY(eadk_key_back)) r |= K_BACK;+ if (k & KEY(eadk_key_zero)) r |= K_ZERO;+ if (k & KEY(eadk_key_minus)) r |= K_MINUS;if (k & (KEY(eadk_key_back) | KEY(eadk_key_backspace))) r |= K_ATTACK;if (k & KEY(eadk_key_var)) r |= K_INV;if (k & (KEY(eadk_key_home) | KEY(eadk_key_on_off))) r |= K_HOME;@@ -35,7 +41,6 @@ uint32_t plat_keys(void) {eadk_key_six, eadk_key_seven, eadk_key_eight, eadk_key_nine};for (int i = 0; i < 9; i++)if (k & KEY(digits[i])) r |= K_SLOT1 << i;- if (k) r |= K_ANY;return r;}@@ -46,5 +51,38 @@ void plat_push(int x, int y, int w, int h, const uint16_t *px) {}bool plat_save(const char *name, const void *data, uint32_t len) { return ef_write(name, data, len); }const uint8_t *plat_load(const char *name, uint32_t *len) { return ef_read(name, len); }++/* removes every record whose name starts with `prefix` */+void plat_remove_prefix(const char *prefix) {+ for (bool again = true; again;) {+ again = false;+ ef_fs_t fs;+ if (!ef_open(&fs)) return;+ int end = ef_end(&fs);+ if (end < 0) return;+ for (uint32_t p = 0; (int)p < end; p += ef_rd16(fs.buf + p)) {+ const char *n = (const char *)fs.buf + p + 2;+ uint32_t i = 0;+ while (prefix[i] && n[i] == prefix[i]) i++;+ if (!prefix[i]) {+ char name[40];+ uint32_t k = 0;+ while (n[k] && k < sizeof name - 1) name[k] = n[k], k++;+ name[k] = 0;+ if (!ef_remove(name)) return;+ again = true; /* records moved: start over */+ break;+ }+ }+ }+}++/* bytes left in the calculator's storage */+uint32_t plat_storage_free(void) {+ ef_fs_t fs;+ if (!ef_open(&fs)) return 0;+ int end = ef_end(&fs);+ return end < 0 ? 0 : fs.size - (uint32_t)end - 2;+}void plat_begin(void) { np_app_begin(); }int plat_end(void) { return np_app_end(); }diff --git a/games/numblocks/src/plat_host.c b/games/numblocks/src/plat_host.cindex d1dbd723..fa160e99 100644--- a/games/numblocks/src/plat_host.c+++ b/games/numblocks/src/plat_host.c@@ -2,6 +2,7 @@* keys come from a script, time is simulated (tests/play.c). */#include <stdio.h>#include <stdlib.h>+#include <string.h>#include "nb.h"uint16_t host_fb[SCREEN_W * SCREEN_H];@@ -38,6 +39,20 @@ const uint8_t *plat_load(const char *name, uint32_t *len) {fclose(f);return loaded;}+#include <dirent.h>+void plat_remove_prefix(const char *prefix) {+ DIR *d = opendir(save_dir);+ if (!d) return;+ struct dirent *e;+ while ((e = readdir(d)))+ if (!strncmp(e->d_name, prefix, strlen(prefix))) {+ char p[600];+ snprintf(p, sizeof p, "%s/%s", save_dir, e->d_name);+ remove(p);+ }+ closedir(d);+}+uint32_t plat_storage_free(void) { return 30000; }void plat_begin(void) {}int plat_end(void) { return 0; }diff --git a/games/numblocks/src/player.c b/games/numblocks/src/player.cindex d313aec3..cc51b3f1 100644--- a/games/numblocks/src/player.c+++ b/games/numblocks/src/player.c@@ -15,51 +15,6 @@ Player pl;static inline int ifloor(float v) { int i = (int)v; return v < (float)i ? i - 1 : i; }-/* the collision box of the block at (x, y, z), in world coordinates; false if none */-static bool block_box(int x, int y, int z, float *b) {- int s = world_get(x, y, z);- if (!(blk_flags[s] & BF_SOLID)) return false;- float y1 = 1;- int m = blk_model[s];- if (m == M_SLAB) y1 = 0.5f;- else if (m == M_LAYER) y1 = 0.125f;- else if (m == M_FENCE) y1 = 1.5f;- b[0] = (float)x;- b[1] = (float)y;- b[2] = (float)z;- b[3] = x + 1.0f;- b[4] = y + y1;- b[5] = z + 1.0f;- if (m == M_CACTUS) b[0] += 1 / 16.0f, b[2] += 1 / 16.0f, b[3] -= 1 / 16.0f, b[5] -= 1 / 16.0f;- return true;-}--/* how far the box `a` can move along `axis` by `d` before touching block boxes */-static float clip(const float *a, int axis, float d) {- int x0 = ifloor(a[0] - (axis == 0 && d < 0 ? -d : 0)) - 1, x1 = ifloor(a[3] + (axis == 0 && d > 0 ? d : 0)) + 1;- int y0 = ifloor(a[1] - (axis == 1 && d < 0 ? -d : 0)) - 1, y1 = ifloor(a[4] + (axis == 1 && d > 0 ? d : 0)) + 1;- int z0 = ifloor(a[2] - (axis == 2 && d < 0 ? -d : 0)) - 1, z1 = ifloor(a[5] + (axis == 2 && d > 0 ? d : 0)) + 1;- for (int y = y0; y <= y1; y++)- for (int z = z0; z <= z1; z++)- for (int x = x0; x <= x1; x++) {- float b[6];- if (!block_box(x, y, z, b)) continue;- /* overlapping on the other two axes? */- bool ov = true;- for (int k = 0; k < 3; k++)- if (k != axis && (a[k + 3] <= b[k] || a[k] >= b[k + 3])) ov = false;- if (!ov) continue;- if (d > 0 && a[axis + 3] <= b[axis]) {- float m = b[axis] - a[axis + 3];- if (m < d) d = m;- } else if (d < 0 && a[axis] >= b[axis + 3]) {- float m = b[axis + 3] - a[axis];- if (m > d) d = m;- }- }- return d;-}-static void box_of(float x, float y, float z, float *a) {a[0] = x - W, a[1] = y, a[2] = z - W, a[3] = x + W, a[4] = y + H, a[5] = z + W;}@@ -75,33 +30,33 @@ static void move(float dx, float dy, float dz) {for (; dx != 0; dx = fabsf(dx) < 0.05f ? 0 : dx - (dx > 0 ? 0.05f : -0.05f)) {memcpy(t, a, sizeof t);t[0] += dx, t[3] += dx, t[1] -= 1, t[4] = t[1] + 1;- if (clip(t, 1, -0.01f) > -0.01f) break; /* something under */+ if (phys_clip(t, 1, -0.01f) > -0.01f) break; /* something under */}for (; dz != 0; dz = fabsf(dz) < 0.05f ? 0 : dz - (dz > 0 ? 0.05f : -0.05f)) {memcpy(t, a, sizeof t);t[2] += dz, t[5] += dz, t[1] -= 1, t[4] = t[1] + 1;- if (clip(t, 1, -0.01f) > -0.01f) break;+ if (phys_clip(t, 1, -0.01f) > -0.01f) break;}odx = dx, odz = dz;}- float mdy = clip(a, 1, dy);+ float mdy = phys_clip(a, 1, dy);a[1] += mdy, a[4] += mdy;- float mdx = clip(a, 0, dx);+ float mdx = phys_clip(a, 0, dx);a[0] += mdx, a[3] += mdx;- float mdz = clip(a, 2, dz);+ float mdz = phys_clip(a, 2, dz);a[2] += mdz, a[5] += mdz;bool grounded = ody != mdy && ody < 0;if ((grounded || pl.on_ground) && (odx != mdx || odz != mdz)) {/* try again 0.6 higher */float s[6];box_of(pl.x, pl.y, pl.z, s);- float up = clip(s, 1, 0.6f);+ float up = phys_clip(s, 1, 0.6f);s[1] += up, s[4] += up;- float sx = clip(s, 0, odx);+ float sx = phys_clip(s, 0, odx);s[0] += sx, s[3] += sx;- float sz = clip(s, 2, odz);+ float sz = phys_clip(s, 2, odz);s[2] += sz, s[5] += sz;- float down = clip(s, 1, -up);+ float down = phys_clip(s, 1, -up);s[1] += down, s[4] += down;if (sx * sx + sz * sz > mdx * mdx + mdz * mdz) {memcpy(a, s, sizeof s);@@ -136,8 +91,199 @@ static bool in_liquid(void) {return blk_model[b] == M_LIQUID;}+/* ---------------------------------------------------------------- health, food, experience */+static float armor_points(void) {+ int n = 0;+ for (int i = 0; i < 4; i++)+ if (pl.armor[i].id >= 256) n += it_a[pl.armor[i].id - 256];+ return (float)n;+}++void player_add_xp(int n) {+ pl.xp_total += n;+ while (n > 0) {+ /* EntityPlayer.xpBarCap */+ int cap = pl.xp_level >= 30 ? 112 + (pl.xp_level - 30) * 9 : pl.xp_level >= 15 ? 37 + (pl.xp_level - 15) * 5+ : 7 + pl.xp_level * 2;+ float need = (1 - pl.xp) * cap;+ if (n >= need) {+ n -= (int)ceilf(need);+ pl.xp = 0;+ pl.xp_level++;+ } else {+ pl.xp += n / (float)cap;+ n = 0;+ }+ }+}++static void exhaust(float f) { pl.exhaustion += f; }++/* EntityLivingBase.attackEntityFrom and EntityPlayer.damageEntity: 10 ticks of+ * grace after a hit (only more damage gets through), armour takes 4% a point */+void player_hurt(float amount, int kind) {+ if (pl.dead || amount <= 0) return;+ if (pl.mode == 1 && kind != DMG_VOID) return;+ if (pl.invuln > 10) {+ if (amount <= pl.last_damage) return;+ float a = amount;+ amount -= pl.last_damage;+ pl.last_damage = a;+ } else {+ pl.last_damage = amount;+ pl.invuln = 20;+ pl.hurt_time = 10;+ }+ bool armored = kind == DMG_MOB || kind == DMG_ARROW || kind == DMG_EXPLOSION || kind == DMG_LAVA ||+ kind == DMG_FIRE || kind == DMG_CACTUS || kind == DMG_GENERIC;+ if (armored) {+ float ap = armor_points();+ if (ap > 0) {+ int wear = (int)(amount / 4);+ if (wear < 1) wear = 1;+ for (int i = 0; i < 4; i++)+ if (pl.armor[i].id) stack_wear(&pl.armor[i], wear);+ amount = amount * (25 - ap) / 25;+ }+ }+ exhaust(0.3f);+ pl.health -= amount;+ if (pl.health <= 0) {+ pl.health = 0;+ pl.dead = true;+ /* everything falls out (InventoryPlayer.dropAllItems) */+ for (int i = 0; i < 36; i++)+ if (pl.inv[i].id) ent_drop(pl.inv[i].id, item_count(&pl.inv[i]), pl.inv[i].aux, pl.x, pl.y + 1.3f, pl.z, false);+ for (int i = 0; i < 4; i++)+ if (pl.armor[i].id) ent_drop(pl.armor[i].id, 1, pl.armor[i].aux, pl.x, pl.y + 1.3f, pl.z, false);+ memset(pl.inv, 0, sizeof pl.inv);+ memset(pl.armor, 0, sizeof pl.armor);+ }+}++/* FoodStats.onUpdate */+static void food_tick(void) {+ if (pl.exhaustion > 4) {+ pl.exhaustion -= 4;+ if (pl.sat > 0) pl.sat = pl.sat > 1 ? pl.sat - 1 : 0;+ else if (pl.food > 0) pl.food--;+ }+ if (pl.food >= 18 && pl.health > 0 && pl.health < 20) {+ if (++pl.food_timer >= 80) {+ pl.health += 1;+ if (pl.health > 20) pl.health = 20;+ exhaust(3);+ pl.food_timer = 0;+ }+ } else if (pl.food <= 0) {+ if (++pl.food_timer >= 80) {+ if (pl.health > 1) player_hurt(1, DMG_STARVE); /* Normal: down to half a heart */+ pl.food_timer = 0;+ }+ } else pl.food_timer = 0;+}++/* ---------------------------------------------------------------- blocks */+static const int8_t NX[6] = {0, 0, 0, 0, -1, 1}, NY[6] = {-1, 1, 0, 0, 0, 0}, NZ[6] = {0, 0, -1, 1, 0, 0};++static bool replaceable(int b) {+ return b == B_AIR || blk_model[b] == M_LIQUID || b == B_TALL_GRASS || b == B_FERN || b == B_DEAD_SHRUB ||+ b == B_DEAD_BUSH || b == B_VINE || b == B_SNOW_LAYER || b == B_DOUBLE_GRASS_LOWER || b == B_LARGE_FERN_LOWER;+}+static bool solid_top(int b) { return (blk_flags[b] & BF_OPAQUE) != 0 || b == B_GLASS || b == B_LEAVES_OAK; }+static bool soil(int b) { return b == B_GRASS || b == B_DIRT || b == B_PODZOL || b == B_COARSE_DIRT || b == B_FARMLAND || b == B_FARMLAND_WET; }+static bool is_plant(int b) { return blk_model[b] == M_CROSS && b != B_COBWEB; }+static bool near_water(int x, int y, int z) {+ for (int f = 2; f < 6; f++) {+ int n = world_get(x + NX[f], y, z + NZ[f]);+ if (n == B_WATER || n == B_FLOWING_WATER) return true;+ }+ return false;+}++/* can block b stay at (x, y, z) (Block.canBlockStay / canPlaceBlockAt)? */+static bool can_stay(int b, int x, int y, int z) {+ int below = world_get(x, y - 1, z);+ int m = blk_model[b];+ if (b >= B_WHEAT_0 && b <= B_WHEAT_7) return below == B_FARMLAND || below == B_FARMLAND_WET;+ if ((b >= B_CARROTS_0 && b <= B_CARROTS_3) || (b >= B_POTATOES_0 && b <= B_POTATOES_3))+ return below == B_FARMLAND || below == B_FARMLAND_WET;+ if (b == B_SUGAR_CANE)+ return below == B_SUGAR_CANE || ((below == B_GRASS || below == B_DIRT || below == B_SAND || below == B_RED_SAND) &&+ near_water(x, y - 1, z));+ if (b == B_CACTUS) {+ for (int f = 2; f < 6; f++)+ if (blk_flags[world_get(x + NX[f], y, z + NZ[f])] & BF_SOLID) return false;+ return below == B_CACTUS || below == B_SAND || below == B_RED_SAND;+ }+ if (b == B_DEAD_BUSH) return below == B_SAND || below == B_RED_SAND || below == B_HARDENED_CLAY ||+ (below >= B_STAINED_CLAY_WHITE && below <= B_STAINED_CLAY_BLACK) || soil(below);+ if (b == B_BROWN_MUSHROOM || b == B_RED_MUSHROOM) return solid_top(below);+ if (b == B_LILY_PAD) return below == B_WATER;+ if (b >= B_SUNFLOWER_LOWER && b <= B_PEONY_UPPER && ((b - B_SUNFLOWER_LOWER) & 1))+ return world_get(x, y - 1, z) == b - 1;+ if (is_plant(b)) return soil(below);+ if (b == B_TORCH) return solid_top(below);+ if (b == B_TORCH_E) return blk_flags[world_get(x - 1, y, z)] & BF_OPAQUE;+ if (b == B_TORCH_W) return blk_flags[world_get(x + 1, y, z)] & BF_OPAQUE;+ if (b == B_TORCH_S) return blk_flags[world_get(x, y, z - 1)] & BF_OPAQUE;+ if (b == B_TORCH_N) return blk_flags[world_get(x, y, z + 1)] & BF_OPAQUE;+ if (b == B_SNOW_LAYER || b == B_RAIL) return solid_top(below);+ if (b == B_DOOR_OAK_UPPER) return world_get(x, y - 1, z) == B_DOOR_OAK_LOWER;+ if (b == B_DOOR_OAK_LOWER) return solid_top(below) && world_get(x, y + 1, z) == B_DOOR_OAK_UPPER;+ if (m == M_LADDER) return true;+ return true;+}++static void break_block(int x, int y, int z, bool drops);++/* a block changed at (x, y, z): what stood on it or hung on it may fall off */+static void neighbours_changed(int x, int y, int z) {+ for (int f = 0; f < 6; f++) {+ int nx = x + NX[f], ny = y + NY[f], nz = z + NZ[f];+ int b = world_get(nx, ny, nz);+ if (b != B_AIR && blk_model[b] != M_LIQUID && !can_stay(b, nx, ny, nz)) break_block(nx, ny, nz, true);+ /* sand and gravel fall (straight down, at once) */+ if ((b == B_SAND || b == B_RED_SAND || b == B_GRAVEL) && replaceable(world_get(nx, ny - 1, nz)) && ny > 0) {+ int yy = ny;+ while (yy > 0 && replaceable(world_get(nx, yy - 1, nz))) yy--;+ world_set(nx, ny, nz, B_AIR);+ world_set(nx, yy, nz, b);+ neighbours_changed(nx, ny, nz);+ }+ }+}++static int depth;+static void break_block(int x, int y, int z, bool drops) {+ int b = world_get(x, y, z);+ if (b == B_AIR || depth > 8) return;+ depth++;+ if (b == B_CHEST || b == B_FURNACE || b == B_FURNACE_LIT) tiles_removed(x, y, z);+ world_set(x, y, z, B_AIR);+ if (drops && pl.mode == 0) {+ Stack out[2];+ int n = block_drops(b, held()->id, out);+ for (int i = 0; i < n; i++)+ ent_drop(out[i].id, out[i].aux, 0, x + 0.25f + rndf() * 0.5f, y + 0.25f + rndf() * 0.5f, z + 0.25f + rndf() * 0.5f,+ false);+ }+ /* the other half of a two-block thing goes too */+ if (b == B_DOOR_OAK_LOWER || (b >= B_SUNFLOWER_LOWER && b <= B_PEONY_UPPER && !((b - B_SUNFLOWER_LOWER) & 1)))+ if (world_get(x, y + 1, z) == b + 1) world_set(x, y + 1, z, B_AIR);+ if (b == B_DOOR_OAK_UPPER || (b >= B_SUNFLOWER_LOWER && b <= B_PEONY_UPPER && ((b - B_SUNFLOWER_LOWER) & 1)))+ if (world_get(x, y - 1, z) == b - 1) world_set(x, y - 1, z, B_AIR);+ neighbours_changed(x, y, z);+ depth--;+}++static void set_block(int x, int y, int z, int b) {+ world_set(x, y, z, b);+ neighbours_changed(x, y, z);+}+/* ---------------------------------------------------------------- looking */-/* the first block the eyes' ray meets within 4.5 blocks (1.8's survival reach) */+/* the first block the eyes' ray meets within reach (4.5, 5 in creative) */static void pick(void) {float ex = pl.x, ey = pl.y + (pl.sneaking ? 1.54f : 1.62f), ez = pl.z;float yaw = pl.yaw * 0.017453292f, pitch = pl.pitch * 0.017453292f;@@ -148,9 +294,9 @@ static void pick(void) {float tx = dx > 0 ? (x + 1 - ex) * idx : (ex - x) * idx, ty = dy > 0 ? (y + 1 - ey) * idy : (ey - y) * idy,tz = dz > 0 ? (z + 1 - ez) * idz : (ez - z) * idz;int face = -1;- float t = 0;+ float t = 0, reach = pl.mode ? 5.0f : 4.5f;pl.hit_face = -1;- while (t <= 4.5f) {+ while (t <= reach) {int b = world_get(x, y, z);if (b != B_AIR && blk_model[b] != M_LIQUID) {pl.hit_x = x, pl.hit_y = y, pl.hit_z = z, pl.hit_face = face < 0 ? 1 : face;@@ -162,85 +308,372 @@ static void pick(void) {}}+/* the liquid source the eyes look at (for buckets), or false */+static bool pick_liquid(int *ox, int *oy, int *oz) {+ float ex = pl.x, ey = pl.y + 1.62f, ez = pl.z;+ float yaw = pl.yaw * 0.017453292f, pitch = pl.pitch * 0.017453292f;+ float dx = -sinf(yaw) * cosf(pitch), dy = -sinf(pitch), dz = cosf(yaw) * cosf(pitch);+ for (float t = 0; t < 4.5f; t += 0.1f) {+ int x = ifloor(ex + dx * t), y = ifloor(ey + dy * t), z = ifloor(ez + dz * t);+ int b = world_get(x, y, z);+ if (b == B_WATER || b == B_LAVA) {+ *ox = x, *oy = y, *oz = z;+ return true;+ }+ if (b != B_AIR && blk_model[b] != M_LIQUID) return false;+ }+ return false;+}++/* ---------------------------------------------------------------- using items */+static bool box_free(int x, int y, int z) {+ float a[6];+ box_of(pl.x, pl.y, pl.z, a);+ return !(x + 1 > a[0] && x < a[3] && y + 1 > a[1] && y < a[4] && z + 1 > a[2] && z < a[5]);+}++static void use_up(void) {+ if (pl.mode == 0) stack_take(held(), 1);+}++/* places the held block (or the block an item places) against the face looked at */+static bool place(int b) {+ int f = pl.hit_face;+ int x = pl.hit_x, y = pl.hit_y, z = pl.hit_z;+ int at = world_get(x, y, z);+ if (!(replaceable(at) && at != B_AIR)) x += NX[f], y += NY[f], z += NZ[f];+ else f = 1;+ if (y < 0 || y >= WORLD_H || !world_loaded(x, y, z) || !replaceable(world_get(x, y, z))) return false;+ /* the variant: logs lie along the face's axis, torches lean on the block */+ if (b >= B_LOG_OAK && b <= B_LOG_JUNGLE_BARK && (b - B_LOG_OAK) % 4 == 0) b += (f >> 1) == 2 ? 1 : (f >> 1) == 1 ? 2 : 0;+ if (b >= B_LOG_ACACIA && b <= B_LOG_DARK_OAK_BARK && (b - B_LOG_ACACIA) % 4 == 0)+ b += (f >> 1) == 2 ? 1 : (f >> 1) == 1 ? 2 : 0;+ if (b == B_TORCH) {+ static const uint8_t tf[6] = {0, B_TORCH, B_TORCH_N, B_TORCH_S, B_TORCH_W, B_TORCH_E};+ if (f == 0) return false;+ b = tf[f];+ }+ if (!can_stay(b, x, y, z) && b != B_DOOR_OAK_LOWER) return false;+ if ((blk_flags[b] & BF_SOLID) && !box_free(x, y, z)) return false;+ if (b == B_DOOR_OAK_LOWER || (b >= B_SUNFLOWER_LOWER && b <= B_PEONY_UPPER)) {+ if (!replaceable(world_get(x, y + 1, z)) || !solid_top(world_get(x, y - 1, z))) return false;+ if (!box_free(x, y + 1, z) && b == B_DOOR_OAK_LOWER) return false;+ world_set(x, y + 1, z, b + 1);+ }+ set_block(x, y, z, b);+ return true;+}++static void eat_done(void) {+ Stack *h = held();+ int i = h->id - 256;+ pl.food += it_a[i];+ if (pl.food > 20) pl.food = 20;+ pl.sat += it_a[i] * it_b[i] / 10.0f * 2;+ if (pl.sat > pl.food) pl.sat = (float)pl.food;+ if (it_kind[i] == IK_STEW) {+ h->id = I_BOWL, h->aux = 1;+ return;+ }+ if (h->id == I_GOLDEN_APPLE) pl.health = pl.health + 4 > 20 ? 20 : pl.health + 4; /* regeneration II, 5 s */+ use_up();+}++/* OK pressed: use the block looked at, else the held item */+static void use(uint32_t pressed) {+ Stack *h = held();+ int k = item_kind(h->id);+ bool on_block = pl.hit_face >= 0;+ int x = pl.hit_x, y = pl.hit_y, z = pl.hit_z;+ int b = on_block ? world_get(x, y, z) : B_AIR;+ if (!(pressed & K_USE)) return;+ if (on_block && !pl.sneaking) {+ if (b == B_CRAFTING_TABLE) {+ gui_open(GUI_CRAFTING, x, y, z);+ return;+ }+ if (b == B_FURNACE || b == B_FURNACE_LIT) {+ gui_open(GUI_FURNACE, x, y, z);+ return;+ }+ if (b == B_CHEST) {+ gui_open(GUI_CHEST, x, y, z);+ return;+ }+ }+ switch (k) {+ case IK_BLOCK:+ if (on_block && place(h->id)) use_up();+ return;+ case IK_PLACER:+ case IK_FOOD:+ if (on_block && h->id >= 256 && it_place[h->id - 256] != 255) {+ int pb = it_place[h->id - 256];+ if ((k == IK_FOOD || pb == B_WHEAT_0) && !(pl.hit_face == 1 && (b == B_FARMLAND || b == B_FARMLAND_WET))) {+ if (k == IK_PLACER) return;+ } else if (place(pb)) {+ use_up();+ return;+ }+ }+ return;+ case IK_HOE:+ if (on_block && pl.hit_face != 0 && (b == B_GRASS || b == B_DIRT) && world_get(x, y + 1, z) == B_AIR) {+ set_block(x, y, z, B_FARMLAND);+ if (pl.mode == 0) stack_wear(h, 1);+ }+ return;+ case IK_BONE_MEAL:+ if (!on_block) return;+ if (b >= B_WHEAT_0 && b < B_WHEAT_7) {+ int st = b - B_WHEAT_0 + 2 + rnd(4);+ set_block(x, y, z, B_WHEAT_0 + (st > 7 ? 7 : st));+ use_up();+ } else if ((b >= B_CARROTS_0 && b < B_CARROTS_3) || (b >= B_POTATOES_0 && b < B_POTATOES_3)) {+ int base = b <= B_CARROTS_3 ? B_CARROTS_0 : B_POTATOES_0;+ set_block(x, y, z, b + 1 > base + 3 ? base + 3 : b + 1);+ use_up();+ } else if (b == B_GRASS && world_get(x, y + 1, z) == B_AIR) {+ /* ItemDye.applyBonemeal on grass: tall grass and flowers around */+ for (int i = 0; i < 64; i++) {+ int gx = x + rnd(7) - 3, gz = z + rnd(7) - 3, gy = y + rnd(3) - 1;+ if (world_get(gx, gy, gz) == B_GRASS && world_get(gx, gy + 1, gz) == B_AIR)+ set_block(gx, gy + 1, gz, rnd(8) ? B_TALL_GRASS : rnd(2) ? B_DANDELION : B_POPPY);+ }+ use_up();+ }+ return;+ case IK_BUCKET: {+ int lx, ly, lz;+ if (pick_liquid(&lx, &ly, &lz)) {+ int lb = world_get(lx, ly, lz);+ set_block(lx, ly, lz, B_AIR);+ int full = lb == B_WATER ? I_WATER_BUCKET : I_LAVA_BUCKET;+ if (pl.mode == 1) return;+ if (h->aux <= 1) h->id = (uint16_t)full, h->aux = 1;+ else {+ h->aux--;+ if (inv_add(pl.inv, 36, full, 1, 0)) ent_drop(full, 1, 0, pl.x, pl.y + 1.3f, pl.z, true);+ }+ }+ return;+ }+ case IK_WATER_BUCKET:+ case IK_LAVA_BUCKET:+ if (on_block) {+ int f = pl.hit_face, px = x + NX[f], py = y + NY[f], pz = z + NZ[f];+ if (replaceable(world_get(px, py, pz))) {+ set_block(px, py, pz, k == IK_WATER_BUCKET ? B_WATER : B_LAVA);+ if (pl.mode == 0) h->id = I_BUCKET, h->aux = 1;+ }+ }+ return;+ case IK_MILK_BUCKET:+ if (pl.mode == 0) h->id = I_BUCKET, h->aux = 1;+ return;+ }+}+/* ---------------------------------------------------------------- a tick */void player_spawn(void) {int x, y, z;gen_spawn(&x, &y, &z);memset(&pl, 0, sizeof pl);+ pl.spawn_x = x, pl.spawn_y = y, pl.spawn_z = z;pl.x = x + 0.5f;pl.y = (float)y;pl.z = z + 0.5f;- static const int start[9] = {B_DIRT, B_COBBLESTONE, B_PLANKS_OAK, B_LOG_OAK, B_GLASS, B_TORCH, B_STONE_BRICKS, B_SAND,- B_CRAFTING_TABLE};- memcpy(pl.hotbar, start, sizeof start);+ pl.health = 20;+ pl.food = 20;+ pl.sat = 5;+ pl.air = 300;+}++void player_respawn(void) {+ pl.x = pl.spawn_x + 0.5f, pl.y = (float)pl.spawn_y, pl.z = pl.spawn_z + 0.5f;+ pl.vx = pl.vy = pl.vz = 0;+ pl.health = 20, pl.food = 20, pl.sat = 5, pl.exhaustion = 0, pl.air = 300, pl.fall = 0, pl.fire = 0;+ pl.xp = 0, pl.xp_level = 0, pl.xp_total = 0;+ pl.dead = false;+ pl.pitch = 0;}-static int break_cooldown;+static int break_cooldown, jump_timer;+static uint32_t prev_keys;++/* the damage the world does: falls, drowning, lava, fire, cactus, suffocation, the void */+static void hazards(float fell_from) {+ int fx = ifloor(pl.x), fz = ifloor(pl.z);+ int feet = world_get(fx, ifloor(pl.y + 0.1f), fz), head = world_get(fx, ifloor(pl.y + 1.62f), fz);+ /* falling: the distance counts while going down, out of water */+ if (pl.in_water || pl.flying || feet == B_LADDER || feet == B_VINE || feet == B_COBWEB) pl.fall = 0;+ else if (pl.y < fell_from) pl.fall += fell_from - pl.y;+ if (pl.on_ground) {+ if (pl.fall > 3) player_hurt(ceilf(pl.fall - 3), DMG_FALL);+ pl.fall = 0;+ }+ /* air: 300 ticks under water, then 2 damage every 20 */+ if (head == B_WATER || head == B_FLOWING_WATER) {+ if (pl.mode == 0 && --pl.air <= -20) {+ pl.air = 0;+ player_hurt(2, DMG_DROWN);+ }+ } else pl.air = 300;+ bool lava = feet == B_LAVA || feet == B_FLOWING_LAVA || head == B_LAVA || head == B_FLOWING_LAVA;+ if (lava) {+ player_hurt(4, DMG_LAVA);+ pl.fire = 300;+ }+ if (pl.in_water) pl.fire = 0;+ if (pl.fire > 0) {+ if (pl.fire % 20 == 0) player_hurt(1, DMG_FIRE);+ pl.fire--;+ }+ if ((blk_flags[head] & BF_OPAQUE) && pl.mode == 0) player_hurt(1, DMG_WALL);+ /* cactus: touching one hurts */+ for (int f = 2; f < 6; f++)+ if (world_get(ifloor(pl.x + NX[f] * 0.31f), ifloor(pl.y + 0.5f), ifloor(pl.z + NZ[f] * 0.31f)) == B_CACTUS)+ player_hurt(1, DMG_CACTUS);+ if (pl.y < -64) player_hurt(4, DMG_VOID);+}void player_tick(uint32_t keys, uint32_t pressed) {+ if (pl.dead) return;+ if (pl.invuln > 0) pl.invuln--;+ if (pl.hurt_time > 0) pl.hurt_time--;float fwd = (keys & K_FWD ? 1.0f : 0) - (keys & K_BACKW ? 1.0f : 0);float strafe = (keys & K_STRAFE_L ? 1.0f : 0) - (keys & K_STRAFE_R ? 1.0f : 0);- pl.sneaking = (keys & K_SNEAK) != 0;+ pl.sneaking = (keys & K_SNEAK) != 0 && !pl.flying;fwd *= 0.98f;strafe *= 0.98f;if (pl.sneaking) fwd *= 0.3f, strafe *= 0.3f;+ if (pl.using_ticks) fwd *= 0.2f, strafe *= 0.2f; /* eating slows you down */pl.in_water = in_liquid();- if (keys & K_JUMP) {- if (pl.in_water) pl.vy += 0.04f;- else if (pl.on_ground) {- pl.vy = 0.42f;- if (pl.sprinting) {- float y = pl.yaw * 0.017453292f;- pl.vx -= sinf(y) * 0.2f;- pl.vz += cosf(y) * 0.2f;- }- }+ /* creative: jump twice quickly to fly or land */+ if (jump_timer) jump_timer--;+ if (pressed & K_JUMP && pl.mode == 1) {+ if (jump_timer) {+ pl.flying = !pl.flying;+ jump_timer = 0;+ } else jump_timer = 7;}- if (pl.in_water) {- move_flying(strafe, fwd, 0.02f);+ if (pl.food <= 6 && pl.mode == 0) pl.sprinting = false;+ float y0 = pl.y, ox = pl.x, oz = pl.z;+ if (pl.flying) {+ /* PlayerCapabilities: flying speed 0.05, x2 sprinting; up with jump, down with sneak */+ if (keys & K_JUMP) pl.vy += 0.15f;+ if (keys & K_SNEAK) pl.vy -= 0.15f;+ move_flying(strafe, fwd, pl.sprinting ? 0.1f : 0.05f);move(pl.vx, pl.vy, pl.vz);- pl.vx *= 0.8f, pl.vy *= 0.8f, pl.vz *= 0.8f;- pl.vy -= 0.02f;+ pl.vx *= 0.91f, pl.vy *= 0.6f, pl.vz *= 0.91f;+ if (pl.on_ground) pl.flying = false;} else {- float fr = pl.on_ground ? 0.6f * 0.91f : 0.91f;- float speed = 0.1f * (pl.sprinting ? 1.3f : 1.0f);- float f = pl.on_ground ? speed * (0.16277136f / (fr * fr * fr)) : (pl.sprinting ? 0.026f : 0.02f);- move_flying(strafe, fwd, f);- move(pl.vx, pl.vy, pl.vz);- pl.vy -= 0.08f;- pl.vy *= 0.98f;- pl.vx *= fr;- pl.vz *= fr;+ if (keys & K_JUMP) {+ if (pl.in_water) pl.vy += 0.04f;+ else if (pl.on_ground) {+ pl.vy = 0.42f;+ exhaust(pl.sprinting ? 0.8f : 0.2f);+ if (pl.sprinting) {+ float y = pl.yaw * 0.017453292f;+ pl.vx -= sinf(y) * 0.2f;+ pl.vz += cosf(y) * 0.2f;+ }+ }+ }+ int at = world_get(ifloor(pl.x), ifloor(pl.y), ifloor(pl.z));+ if (pl.in_water) {+ move_flying(strafe, fwd, 0.02f);+ move(pl.vx, pl.vy, pl.vz);+ pl.vx *= 0.8f, pl.vy *= 0.8f, pl.vz *= 0.8f;+ pl.vy -= 0.02f;+ } else {+ float fr = pl.on_ground ? 0.6f * 0.91f : 0.91f;+ float speed = 0.1f * (pl.sprinting ? 1.3f : 1.0f);+ float f = pl.on_ground ? speed * (0.16277136f / (fr * fr * fr)) : (pl.sprinting ? 0.026f : 0.02f);+ move_flying(strafe, fwd, f);+ /* ladders and vines: slow falls, climb when pushing into them */+ bool ladder = at == B_LADDER || at == B_VINE;+ if (ladder) {+ if (pl.vx < -0.15f) pl.vx = -0.15f;+ if (pl.vx > 0.15f) pl.vx = 0.15f;+ if (pl.vz < -0.15f) pl.vz = -0.15f;+ if (pl.vz > 0.15f) pl.vz = 0.15f;+ if (pl.vy < -0.15f) pl.vy = -0.15f;+ if (pl.sneaking && pl.vy < 0) pl.vy = 0;+ }+ if (at == B_COBWEB) pl.vx *= 0.25f, pl.vy *= 0.05f, pl.vz *= 0.25f;+ float bvx = pl.vx, bvz = pl.vz;+ move(pl.vx, pl.vy, pl.vz);+ if (ladder && (bvx != pl.vx || bvz != pl.vz)) pl.vy = 0.2f;+ pl.vy -= 0.08f;+ pl.vy *= 0.98f;+ pl.vx *= fr;+ pl.vz *= fr;+ }}- if (pl.y < -64) pl.y = 100, pl.vy = 0;+ /* walking, sprinting and swimming tire (EntityPlayer.addMovementStat) */+ float moved = sqrtf((pl.x - ox) * (pl.x - ox) + (pl.z - oz) * (pl.z - oz));+ if (pl.mode == 0) exhaust(moved * (pl.in_water ? 0.015f : pl.sprinting ? 0.1f : 0.0f));+ hazards(y0);+ if (pl.mode == 0) food_tick();+ if (pl.dead) return;pick();- /* mining (Back held) and placing (OK) */+ /* mining (Back held) */if (break_cooldown) break_cooldown--;if ((keys & K_ATTACK) && pl.hit_face >= 0 && !break_cooldown) {int b = world_get(pl.hit_x, pl.hit_y, pl.hit_z);int hard = blk_hard[b];- if (hard == 255) pl.breaking = 0;+ if (pl.mode == 1) {+ break_block(pl.hit_x, pl.hit_y, pl.hit_z, false);+ break_cooldown = 5;+ } else if (hard == 255) pl.breaking = 0;else {- /* by hand: 1 / hardness / 100 a tick if the block needs a tool, else / 30 */- float per = hard ? 20.0f / hard / (blk_tool[b] == T_PICKAXE ? 100.0f : 30.0f) : 1.0f;+ /* Block.getPlayerRelativeBlockHardness: speed / hardness / 30, or / 100 without the right tool */+ int h = held()->id;+ float speed = dig_speed(b, h);+ if (pl.in_water && ifloor(pl.y + 1.62f) >= 0 && blk_model[world_get(ifloor(pl.x), ifloor(pl.y + 1.62f), ifloor(pl.z))] == M_LIQUID)+ speed /= 5;+ if (!pl.on_ground) speed /= 5;+ float per = hard ? speed * 20.0f / hard / (can_harvest(b, h) ? 30.0f : 100.0f) : 1.0f;pl.breaking += per;if (pl.breaking >= 1) {- world_set(pl.hit_x, pl.hit_y, pl.hit_z, B_AIR);+ break_block(pl.hit_x, pl.hit_y, pl.hit_z, true);+ exhaust(0.025f);+ /* experience from ores (Block.dropXpOnBlockBreak) */+ if (b == B_COAL_ORE) player_add_xp(rnd(3));+ else if (b == B_DIAMOND_ORE || b == B_EMERALD_ORE) player_add_xp(3 + rnd(5));+ else if (b == B_LAPIS_ORE) player_add_xp(2 + rnd(4));+ else if (b == B_REDSTONE_ORE) player_add_xp(1 + rnd(5));+ /* tools wear: 1 a block (swords 2), not for blocks that break at once */+ int k = item_kind(h);+ if (hard && k >= IK_PICKAXE && k <= IK_SHEARS && k != IK_HOE) stack_wear(held(), k == IK_SWORD ? 2 : 1);pl.breaking = 0;break_cooldown = 5;}}} else pl.breaking = 0;- if ((pressed & K_USE) && pl.hit_face >= 0) {- static const int nx[6] = {0, 0, 0, 0, -1, 1}, ny[6] = {-1, 1, 0, 0, 0, 0}, nz[6] = {0, 0, -1, 1, 0, 0};- int x = pl.hit_x + nx[pl.hit_face], y = pl.hit_y + ny[pl.hit_face], z = pl.hit_z + nz[pl.hit_face];- int b = pl.hotbar[pl.slot];- float a[6];- box_of(pl.x, pl.y, pl.z, a);- bool inside = x + 1 > a[0] && x < a[3] && y + 1 > a[1] && y < a[4] && z + 1 > a[2] && z < a[5];- int here = world_get(x, y, z);- if ((here == B_AIR || blk_model[here] == M_LIQUID) && (!inside || !(blk_flags[b] & BF_SOLID))) world_set(x, y, z, b);+ /* eating: OK held for 32 ticks */+ int k = item_kind(held()->id);+ bool edible = k == IK_FOOD || k == IK_STEW;+ if (edible && (keys & K_USE) && (pl.food < 20 || held()->id == I_GOLDEN_APPLE || pl.mode == 1) &&+ !(pl.hit_face >= 0 && it_place[held()->id - 256] != 255 &&+ world_get(pl.hit_x, pl.hit_y, pl.hit_z) == B_FARMLAND)) {+ if (++pl.using_ticks >= 32) {+ eat_done();+ pl.using_ticks = 0;+ }+ } else {+ pl.using_ticks = 0;+ use(pressed);+ }+ /* dropping the held item: xnt (one; with square root, the stack) */+ if (pressed & K_DROP && held()->id) {+ Stack *h = held();+ int n = pl.sneaking ? item_count(h) : 1;+ ent_drop(h->id, n, h->aux, pl.x, pl.y + 1.32f, pl.z, true);+ stack_take(h, n);}for (int n = 0; n < 9; n++)if (pressed & (K_SLOT1 << n)) pl.slot = n;+ prev_keys = keys;}diff --git a/games/numblocks/src/render.c b/games/numblocks/src/render.cindex 985e0556..37fb8892 100644--- a/games/numblocks/src/render.c+++ b/games/numblocks/src/render.c@@ -536,6 +536,15 @@ static void setup_light(float sun) {}void render_frame(const Camera *c, uint32_t tod) {+ if (!c) {+ /* no world: only what the screens draw */+ for (int py = 0; py < RH; py += SR) {+ memset(strip, 0, sizeof strip);+ hud_strip(strip, py * 2, SR * 2);+ plat_push(0, py * 2, SCREEN_W, SR * 2, strip);+ }+ return;+ }float yaw = c->yaw * 0.017453292f, pitch = c->pitch * 0.017453292f;float cy = cosf(yaw), sy = sinf(yaw), cp = cosf(pitch), sp = sinf(pitch);fwx = -sy * cp;diff --git a/games/numblocks/src/save.c b/games/numblocks/src/save.cnew file mode 100644index 00000000..c94b5638--- /dev/null+++ b/games/numblocks/src/save.c@@ -0,0 +1,98 @@+/* Saving: the world's record (its seed, the time, the player, chests and+ * furnaces) next to the records of its changed blocks (edits.c), and the+ * options. A world saves every 45 seconds of play, as Minecraft does, and+ * when you quit; block changes reach storage as they fill the journal. */+#include "nb.h"+#include "edits.h"++#define WORLD "nb1"+#define WORLD_REC "nb1.nbw"+#define OPTIONS_REC "numblocks.cfg"++Options opt = {2, 0, 100, 1, 1};+int64_t world_seed;++typedef struct {+ char magic[4];+ uint16_t player_size, tiles_size;+ int64_t seed;+ uint32_t time;+} Head;++extern uint32_t game_time;+void *tiles_data(uint32_t *len);++static uint8_t buf_head[sizeof(Head)];++bool save_world(void) {+ bool ok = edits_flush();+ uint32_t tl;+ void *t = tiles_data(&tl);+ Head h = {{'N', 'B', 'W', '1'}, (uint16_t)sizeof pl, (uint16_t)tl, world_seed, game_time};+ /* one record: the head, the player, the tiles (written from a buffer made in the merge scratch) */+ uint32_t n = sizeof h + sizeof pl + tl;+ uint8_t *b = (uint8_t *)edits_scratch(n);+ if (!b) return false;+ memcpy(b, &h, sizeof h);+ memcpy(b + sizeof h, &pl, sizeof pl);+ memcpy(b + sizeof h + sizeof pl, t, tl);+ ok = plat_save(WORLD_REC, b, n) && ok;+ edits_forget();+ (void)buf_head;+ return ok;+}++bool world_exists(void) {+ uint32_t len = 0;+ const uint8_t *d = plat_load(WORLD_REC, &len);+ return d && len >= sizeof(Head) && !memcmp(d, "NBW1", 4);+}++/* the saved world's game mode, or -1 */+int world_mode(void) {+ uint32_t len = 0;+ const uint8_t *d = plat_load(WORLD_REC, &len);+ if (!d || len < sizeof(Head) + sizeof pl || memcmp(d, "NBW1", 4)) return -1;+ Player p;+ memcpy(&p, d + sizeof(Head), sizeof p);+ return p.mode;+}++bool load_world(void) {+ uint32_t len = 0, tl;+ const uint8_t *d = plat_load(WORLD_REC, &len);+ void *t = tiles_data(&tl);+ Head h;+ if (!d || len < sizeof h) return false;+ memcpy(&h, d, sizeof h);+ if (memcmp(h.magic, "NBW1", 4) || h.player_size != sizeof pl || h.tiles_size != tl || len != sizeof h + sizeof pl + tl)+ return false;+ world_seed = h.seed;+ game_time = h.time;+ memcpy(&pl, d + sizeof h, sizeof pl);+ memcpy(t, d + sizeof h + sizeof pl, tl);+ memset(ents, 0, sizeof ents);+ world_new(world_seed, WORLD);+ return true;+}++void new_world(int64_t seed, int mode) {+ plat_remove_prefix(WORLD);+ uint32_t tl;+ memset(tiles_data(&tl), 0, tl);+ memset(ents, 0, sizeof ents);+ world_seed = seed;+ game_time = 0;+ world_new(seed, WORLD);+ player_spawn();+ pl.mode = (uint8_t)mode;+}++void delete_world(void) { plat_remove_prefix(WORLD); }++void load_options(void) {+ uint32_t len = 0;+ const uint8_t *d = plat_load(OPTIONS_REC, &len);+ if (d && len == sizeof opt) memcpy(&opt, d, sizeof opt);+}+void save_options(void) { plat_save(OPTIONS_REC, &opt, sizeof opt); }diff --git a/games/numblocks/src/world.c b/games/numblocks/src/world.cindex c31edcb1..fb19bc08 100644--- a/games/numblocks/src/world.c+++ b/games/numblocks/src/world.c@@ -14,7 +14,9 @@ uint8_t vmac[MCY * MCZ * MCX]; /* per column: 1 + the highest block that stint vc_x0, vc_y0, vc_z0;static bool vc_valid;-static uint8_t slab[16 * 16 * VCY]; /* one chunk of the generator's output */+/* one chunk of the generator's output; also the edit log's merge buffer */+static uint32_t slab32[16 * 16 * VCY / 4];+#define slab ((uint8_t *)slab32)static inline int floordiv(int a, int b) { return a >= 0 ? a / b : -((-a + b - 1) / b); }static inline int ifloor(float v) { int i = (int)v; return v < (float)i ? i - 1 : i; }@@ -141,6 +143,7 @@ static void fill_chunk(int cx, int cz, const bool *keep, int ox, int oy, int oz)static bool kept[VCZ * VCX]; /* columns the old cache covered (moved, not generated) */static void recenter(int nx0, int ny0, int nz0) {+ edits_forget();int dx = nx0 - vc_x0, dy = ny0 - vc_y0, dz = nz0 - vc_z0;bool any = vc_valid && dx > -VCX && dx < VCX && dz > -VCZ && dz < VCZ && dy > -VCY && dy < VCY;/* move what stays: in an order that never overwrites a cell before it is read */@@ -186,8 +189,9 @@ static void recenter(int nx0, int ny0, int nz0) {mac_box(0, 0, 0, VCX, VCY, VCZ);}-void world_new(int64_t seed) {+void world_new(int64_t seed, const char *name) {gen_init(seed);+ edits_setup(name, slab32, sizeof slab32 / 4);edits_clear();vc_valid = false;}diff --git a/games/numblocks/tests/gen/ref_terrain.h b/games/numblocks/tests/gen/ref_terrain.hnew file mode 100644index 00000000..7621b939--- /dev/null+++ b/games/numblocks/tests/gen/ref_terrain.h@@ -0,0 +1,275 @@+/* Literal double-precision transcription of ChunkProviderGenerate's terrain + surface+ * (NoiseGeneratorOctaves/Perlin, NoiseGenerator3/Handler, BiomeBase.b and overrides) used+ * as a reference to test gen.c's optimised float/fixed-point version. Include after gen.c. */+#include <math.h>+typedef struct { int d[512]; double a, b, c; } RPerlin;+static void rperlin_init(RPerlin *p, JRand *r) {+ p->a = jr_double(r) * 256.0; p->b = jr_double(r) * 256.0; p->c = jr_double(r) * 256.0;+ for (int i = 0; i < 256; i++) p->d[i] = i;+ for (int i = 0; i < 256; i++) { int j = jr_int(r, 256 - i) + i; int k = p->d[i]; p->d[i] = p->d[j]; p->d[j] = k; p->d[i + 256] = p->d[i]; }+}+static const double RE[16] = {1,-1,1,-1,1,-1,1,-1,0,0,0,0,1,0,-1,0}, RF[16] = {1,1,-1,-1,0,0,0,0,1,-1,1,-1,1,-1,1,-1}, RG[16] = {0,0,0,0,1,1,-1,-1,1,1,-1,-1,0,1,0,-1};+static double rlerp(double t, double a, double b) { return a + t * (b - a); }+static double rgrad2(int i, double x, double z) { int j = i & 15; return RE[j] * x + RG[j] * z; }+static double rgrad3(int i, double x, double y, double z) { int j = i & 15; return RE[j] * x + RF[j] * y + RG[j] * z; }+static void rperlin_arr(RPerlin *P, double *arr, double d0, double d1, double d2, int i, int j, int k, double d3, double d4, double d5, double d6) {+ const int *d = P->d;+ if (j == 1) {+ int i2 = 0; double d13 = 1.0 / d6;+ for (int k2 = 0; k2 < i; ++k2) {+ double d7 = d0 + (double)k2 * d3 + P->a; int l2 = (int)d7; if (d7 < (double)l2) --l2; int i3 = l2 & 255; d7 -= (double)l2;+ double d8 = d7 * d7 * d7 * (d7 * (d7 * 6.0 - 15.0) + 10.0);+ for (int j1 = 0; j1 < k; ++j1) {+ double d9 = d2 + (double)j1 * d5 + P->c; int k1 = (int)d9; if (d9 < (double)k1) --k1; int l1 = k1 & 255; d9 -= (double)k1;+ double d10 = d9 * d9 * d9 * (d9 * (d9 * 6.0 - 15.0) + 10.0);+ int l = d[i3] + 0, j3 = d[l] + l1, k3 = d[i3 + 1] + 0, i1 = d[k3] + l1;+ double d11 = rlerp(d8, rgrad2(d[j3], d7, d9), rgrad3(d[i1], d7 - 1.0, 0.0, d9));+ double d12 = rlerp(d8, rgrad3(d[j3 + 1], d7, 0.0, d9 - 1.0), rgrad3(d[i1 + 1], d7 - 1.0, 0.0, d9 - 1.0));+ double d14 = rlerp(d10, d11, d12);+ arr[i2++] += d14 * d13;+ }+ }+ } else {+ int l = 0; double d15 = 1.0 / d6; int i1 = -1; double d16 = 0, d7 = 0, d17 = 0, d8 = 0;+ for (int j1 = 0; j1 < i; ++j1) {+ double d9 = d0 + (double)j1 * d3 + P->a; int k1 = (int)d9; if (d9 < (double)k1) --k1; int l1 = k1 & 255; d9 -= (double)k1;+ double d10 = d9 * d9 * d9 * (d9 * (d9 * 6.0 - 15.0) + 10.0);+ for (int l3 = 0; l3 < k; ++l3) {+ double d18 = d2 + (double)l3 * d5 + P->c; int i4 = (int)d18; if (d18 < (double)i4) --i4; int j4 = i4 & 255; d18 -= (double)i4;+ double d19 = d18 * d18 * d18 * (d18 * (d18 * 6.0 - 15.0) + 10.0);+ for (int k4 = 0; k4 < j; ++k4) {+ double d20 = d1 + (double)k4 * d4 + P->b; int l4 = (int)d20; if (d20 < (double)l4) --l4; int i5 = l4 & 255; d20 -= (double)l4;+ double d21 = d20 * d20 * d20 * (d20 * (d20 * 6.0 - 15.0) + 10.0);+ if (k4 == 0 || i5 != i1) {+ i1 = i5;+ int j5 = d[l1] + i5, k5 = d[j5] + j4, l5 = d[j5 + 1] + j4, i6 = d[l1 + 1] + i5, i2 = d[i6] + j4, j6 = d[i6 + 1] + j4;+ d16 = rlerp(d10, rgrad3(d[k5], d9, d20, d18), rgrad3(d[i2], d9 - 1.0, d20, d18));+ d7 = rlerp(d10, rgrad3(d[l5], d9, d20 - 1.0, d18), rgrad3(d[j6], d9 - 1.0, d20 - 1.0, d18));+ d17 = rlerp(d10, rgrad3(d[k5 + 1], d9, d20, d18 - 1.0), rgrad3(d[i2 + 1], d9 - 1.0, d20, d18 - 1.0));+ d8 = rlerp(d10, rgrad3(d[l5 + 1], d9, d20 - 1.0, d18 - 1.0), rgrad3(d[j6 + 1], d9 - 1.0, d20 - 1.0, d18 - 1.0));+ }+ double d22 = rlerp(d21, d16, d7), d23 = rlerp(d21, d17, d8), d24 = rlerp(d19, d22, d23);+ arr[l++] += d24 * d15;+ }+ }+ }+ }+}+static long long rmh_floor_l(double d) { long long i = (long long)d; return d < (double)i ? i - 1 : i; }+static void roct(RPerlin *P, int n, double *arr, int i, int j, int k, int l, int i1, int j1, double d0, double d1, double d2) {+ for (int a = 0; a < l * i1 * j1; a++) arr[a] = 0;+ double d3 = 1.0;+ for (int l1 = 0; l1 < n; ++l1) {+ double d4 = (double)i * d3 * d0, d5 = (double)j * d3 * d1, d6 = (double)k * d3 * d2;+ long long i2 = rmh_floor_l(d4), j2 = rmh_floor_l(d6);+ d4 -= (double)i2; d6 -= (double)j2; i2 %= 16777216LL; j2 %= 16777216LL; d4 += (double)i2; d6 += (double)j2;+ rperlin_arr(&P[l1], arr, d4, d5, d6, l, i1, j1, d0 * d3, d1 * d3, d2 * d3, d3);+ d3 /= 2.0;+ }+}+typedef struct { int f[512]; double b, c, d; } RSimplex;+static void rsimplex_init(RSimplex *p, JRand *r) {+ p->b = jr_double(r) * 256.0; p->c = jr_double(r) * 256.0; p->d = jr_double(r) * 256.0;+ for (int i = 0; i < 256; i++) p->f[i] = i;+ for (int i = 0; i < 256; i++) { int j = jr_int(r, 256 - i) + i; int k = p->f[i]; p->f[i] = p->f[j]; p->f[j] = k; p->f[i + 256] = p->f[i]; }+}+static const int RSG[12][3] = {{1,1,0},{-1,1,0},{1,-1,0},{-1,-1,0},{1,0,1},{-1,0,1},{1,0,-1},{-1,0,-1},{0,1,1},{0,-1,1},{0,1,-1},{0,-1,-1}};+static int rsfl(double d) { return d > 0.0 ? (int)d : (int)d - 1; }+static double rsimplex_pt(RSimplex *p, double d0, double d1) {+ double SQ3 = sqrt(3.0), d2 = 0.5 * (SQ3 - 1.0), d3 = (d0 + d1) * d2;+ int i = rsfl(d0 + d3), j = rsfl(d1 + d3); double d4 = (3.0 - SQ3) / 6.0, d5 = (double)(i + j) * d4;+ double d6 = (double)i - d5, d7 = (double)j - d5, d8 = d0 - d6, d9 = d1 - d7; int b0, b1;+ if (d8 > d9) { b0 = 1; b1 = 0; } else { b0 = 0; b1 = 1; }+ double d10 = d8 - b0 + d4, d11 = d9 - b1 + d4, d12 = d8 - 1.0 + 2.0 * d4, d13 = d9 - 1.0 + 2.0 * d4;+ int k = i & 255, l = j & 255;+ int i1 = p->f[k + p->f[l]] % 12, j1 = p->f[k + b0 + p->f[l + b1]] % 12, k1 = p->f[k + 1 + p->f[l + 1]] % 12;+ double d15, d17, d19, d14 = 0.5 - d8 * d8 - d9 * d9;+ if (d14 < 0) d15 = 0; else { d14 *= d14; d15 = d14 * d14 * (RSG[i1][0] * d8 + RSG[i1][1] * d9); }+ double d16 = 0.5 - d10 * d10 - d11 * d11;+ if (d16 < 0) d17 = 0; else { d16 *= d16; d17 = d16 * d16 * (RSG[j1][0] * d10 + RSG[j1][1] * d11); }+ double d18 = 0.5 - d12 * d12 - d13 * d13;+ if (d18 < 0) d19 = 0; else { d18 *= d18; d19 = d18 * d18 * (RSG[k1][0] * d12 + RSG[k1][1] * d13); }+ return 70.0 * (d15 + d17 + d19);+}+static void rsimplex_arr(RSimplex *p, double *arr, double d0, double d1, int i, int j, double d2, double d3, double d4) {+ double SQ3 = sqrt(3.0), G = 0.5 * (SQ3 - 1.0), H = (3.0 - SQ3) / 6.0;+ int k = 0;+ for (int l = 0; l < j; ++l) {+ double d5 = (d1 + (double)l) * d3 + p->c;+ for (int i1 = 0; i1 < i; ++i1) {+ double d6 = (d0 + (double)i1) * d2 + p->b, d7 = (d6 + d5) * G;+ int j1 = rsfl(d6 + d7), k1 = rsfl(d5 + d7); double d8 = (double)(j1 + k1) * H, d9 = (double)j1 - d8, d10 = (double)k1 - d8, d11 = d6 - d9, d12 = d5 - d10;+ int b0, b1; if (d11 > d12) { b0 = 1; b1 = 0; } else { b0 = 0; b1 = 1; }+ double d13 = d11 - b0 + H, d14 = d12 - b1 + H, d15 = d11 - 1.0 + 2.0 * H, d16 = d12 - 1.0 + 2.0 * H;+ int l1 = j1 & 255, i2 = k1 & 255;+ int j2 = p->f[l1 + p->f[i2]] % 12, k2 = p->f[l1 + b0 + p->f[i2 + b1]] % 12, l2 = p->f[l1 + 1 + p->f[i2 + 1]] % 12;+ double d18, d20, d22, d17 = 0.5 - d11 * d11 - d12 * d12;+ if (d17 < 0) d18 = 0; else { d17 *= d17; d18 = d17 * d17 * (RSG[j2][0] * d11 + RSG[j2][1] * d12); }+ double d19 = 0.5 - d13 * d13 - d14 * d14;+ if (d19 < 0) d20 = 0; else { d19 *= d19; d20 = d19 * d19 * (RSG[k2][0] * d13 + RSG[k2][1] * d14); }+ double d21 = 0.5 - d15 * d15 - d16 * d16;+ if (d21 < 0) d22 = 0; else { d21 *= d21; d22 = d21 * d21 * (RSG[l2][0] * d15 + RSG[l2][1] * d16); }+ arr[k++] += 70.0 * (d18 + d20 + d22) * d4;+ }+ }+}+static RPerlin r_min[16], r_max[16], r_main[8], r_depth[16];+static RSimplex r_surf[4], r_ae, r_af, r_mesaH, r_mesaF[4], r_mesaG;+static int r_bands[64];+static double r_q[25];+static void ref_init(i64 seed) {+ JRand r; jr_seed(&r, seed);+ for (int i = 0; i < 16; i++) rperlin_init(&r_min[i], &r);+ for (int i = 0; i < 16; i++) rperlin_init(&r_max[i], &r);+ for (int i = 0; i < 8; i++) rperlin_init(&r_main[i], &r);+ for (int i = 0; i < 4; i++) rsimplex_init(&r_surf[i], &r);+ RPerlin dummy; for (int i = 0; i < 10; i++) rperlin_init(&dummy, &r);+ for (int i = 0; i < 16; i++) rperlin_init(&r_depth[i], &r);+ for (int j = -2; j <= 2; ++j) for (int k = -2; k <= 2; ++k) r_q[j + 2 + (k + 2) * 5] = (float)(10.0f / (float)sqrt((double)((float)(j * j + k * k) + 0.2F)));+ jr_seed(&r, 1234); rsimplex_init(&r_ae, &r);+ jr_seed(&r, 2345); rsimplex_init(&r_af, &r);+ /* mesa */+ jr_seed(&r, seed); rsimplex_init(&r_mesaH, &r);+ for (int j = 0; j < 64; j++) r_bands[j] = B_HARDENED_CLAY;+ int j;+ for (j = 0; j < 64; ++j) { j += jr_int(&r, 5) + 1; if (j < 64) r_bands[j] = B_STAINED_CLAY_ORANGE; }+ j = jr_int(&r, 4) + 2;+ for (int k = 0; k < j; ++k) { int l = jr_int(&r, 3) + 1, i1 = jr_int(&r, 64); for (int j1 = 0; i1 + j1 < 64 && j1 < l; ++j1) r_bands[i1 + j1] = B_STAINED_CLAY_YELLOW; }+ int k = jr_int(&r, 4) + 2;+ for (int l = 0; l < k; ++l) { int i1 = jr_int(&r, 3) + 2, j1 = jr_int(&r, 64); for (int k1 = 0; j1 + k1 < 64 && k1 < i1; ++k1) r_bands[j1 + k1] = B_STAINED_CLAY_BROWN; }+ int l = jr_int(&r, 4) + 2;+ for (int i1 = 0; i1 < l; ++i1) { int j1 = jr_int(&r, 3) + 1, k1 = jr_int(&r, 64); for (int l1 = 0; k1 + l1 < 64 && l1 < j1; ++l1) r_bands[k1 + l1] = B_STAINED_CLAY_RED; }+ int i1 = jr_int(&r, 3) + 3, j1 = 0;+ for (int k1 = 0; k1 < i1; ++k1) { j1 += jr_int(&r, 16) + 4; for (int i2 = 0; j1 + i2 < 64 && i2 < 1; ++i2) { r_bands[j1 + i2] = B_STAINED_CLAY_WHITE; if (j1 + i2 > 1 && jr_bool(&r)) r_bands[j1 + i2 - 1] = B_STAINED_CLAY_SILVER; if (j1 + i2 < 63 && jr_bool(&r)) r_bands[j1 + i2 + 1] = B_STAINED_CLAY_SILVER; } }+ jr_seed(&r, seed);+ for (int o = 0; o < 4; o++) rsimplex_init(&r_mesaF[o], &r);+ rsimplex_init(&r_mesaG, &r);+}+static double r_oct3_pt(RSimplex *p, int n, double x, double z) { double d2 = 0, d3 = 1; for (int i = 0; i < n; i++) { d2 += rsimplex_pt(&p[i], x * d3, z * d3) / d3; d3 /= 2.0; } return d2; }+static float r_temp(const Biome *b, int x, int y, int z) {+ if (y > 64) { float f = (float)(rsimplex_pt(&r_ae, (double)x * 1.0 / 8.0, (double)z * 1.0 / 8.0) * 4.0); return b->temp - (f + (float)y - 64.0F) * 0.05F / 30.0F; }+ return b->temp;+}+/* snapshot index (x, y, z) -> [y][z][x] in our arrays: chunk[(y*16+z)*16+x] */+#define RS(x, y, z) chunk[((y) * 16 + (z)) * 16 + (x)]+static void r_b(uint8_t *chunk, const Biome *bb, JRand *random, int i, int j, double d0, int ak, int al) {+ int k = 63; int top = ak, fill = al; int l = -1;+ int i1 = (int)(d0 / 3.0 + 3.0 + jr_double(random) * 0.25);+ int j1 = i & 15, k1 = j & 15;+ for (int l1 = 255; l1 >= 0; --l1) {+ if (l1 <= jr_int(random, 5)) { RS(k1, l1, j1) = B_BEDROCK; continue; }+ int b2 = RS(k1, l1, j1);+ if (b2 == B_AIR) l = -1;+ else if (b2 == B_STONE) {+ if (l == -1) {+ if (i1 <= 0) { top = -1; fill = B_STONE; }+ else if (l1 >= k - 4 && l1 <= k + 1) { top = ak; fill = al; }+ if (l1 < k && (top == -1 || top == B_AIR)) top = r_temp(bb, i, l1, j) < 0.15F ? B_ICE : B_WATER;+ l = i1;+ if (l1 >= k - 1) RS(k1, l1, j1) = top < 0 ? B_AIR : top;+ else if (l1 < k - 7 - i1) { top = -1; fill = B_STONE; RS(k1, l1, j1) = B_GRAVEL; }+ else RS(k1, l1, j1) = fill;+ } else if (l > 0) {+ --l; RS(k1, l1, j1) = fill;+ if (l == 0 && (fill == B_SAND || fill == B_RED_SAND)) { l = jr_int(random, 4) + (l1 - 63 > 0 ? l1 - 63 : 0); fill = fill == B_RED_SAND ? B_RED_SANDSTONE : B_SANDSTONE; }+ }+ }+ }+}+static int r_band(int i, int j) { int l = (int)llround(floor(rsimplex_pt(&r_mesaH, (double)i * 1.0 / 512.0, (double)i * 1.0 / 512.0) * 2.0 + 0.5)); return r_bands[(j + l + 64) % 64]; }+static void r_mesa(uint8_t *chunk, const Biome *bb, JRand *random, int i, int j, double d0) {+ double d1 = 0.0; int k, l;+ if (bb->mode & 1) {+ k = (i & -16) + (j & 15); l = (j & -16) + (i & 15);+ double d2 = fmin(fabs(d0), r_oct3_pt(r_mesaF, 4, (double)k * 0.25, (double)l * 0.25));+ if (d2 > 0.0) { double d3 = 0.001953125, d4 = fabs(r_oct3_pt(&r_mesaG, 1, (double)k * d3, (double)l * d3)); d1 = d2 * d2 * 2.5; double d5 = ceil(d4 * 50.0) + 14.0; if (d1 > d5) d1 = d5; d1 += 64.0; }+ }+ k = i & 15; l = j & 15; int i1 = 63; int top = B_STAINED_CLAY_WHITE, fill = bb->filler;+ int j1 = (int)(d0 / 3.0 + 3.0 + jr_double(random) * 0.25); int flag = cos(d0 / 3.0 * 3.141592653589793) > 0.0;+ int k1 = -1, flag1 = 0;+ for (int l1 = 255; l1 >= 0; --l1) {+ if (RS(l, l1, k) == B_AIR && l1 < (int)d1) RS(l, l1, k) = B_STONE;+ if (l1 <= jr_int(random, 5)) { RS(l, l1, k) = B_BEDROCK; continue; }+ int b2 = RS(l, l1, k);+ if (b2 == B_AIR) k1 = -1;+ else if (b2 == B_STONE) {+ if (k1 == -1) {+ flag1 = 0;+ if (j1 <= 0) { top = -1; fill = B_STONE; } else if (l1 >= i1 - 4 && l1 <= i1 + 1) { top = B_STAINED_CLAY_WHITE; fill = bb->filler; }+ if (l1 < i1 && (top == -1 || top == B_AIR)) top = B_WATER;+ k1 = j1 + (l1 - i1 > 0 ? l1 - i1 : 0);+ if (l1 >= i1 - 1) {+ if ((bb->mode & 2) && l1 > 86 + j1 * 2) RS(l, l1, k) = flag ? B_COARSE_DIRT : B_GRASS;+ else if (l1 > i1 + 3 + j1) RS(l, l1, k) = (l1 >= 64 && l1 <= 127) ? (flag ? B_HARDENED_CLAY : r_band(i, l1)) : B_STAINED_CLAY_ORANGE;+ else { RS(l, l1, k) = bb->top; flag1 = 1; }+ } else { RS(l, l1, k) = fill; if (fill == B_STAINED_CLAY_WHITE) RS(l, l1, k) = B_STAINED_CLAY_ORANGE; }+ } else if (k1 > 0) { --k1; RS(l, l1, k) = flag1 ? B_STAINED_CLAY_ORANGE : r_band(i, l1); }+ }+ }+}+/* full 16x256x16 chunk [y][z][x] */+static void ref_chunk(int cx, int cz, uint8_t *chunk) {+ /* biomes via gen.c layers (already verified) */+ chunk_biomes(cx, cz);+ uint8_t b4[100], b16[256]; memcpy(b4, cb4, 100); memcpy(b16, cb16, 256);+ static double g[25], dd[825], e[825], f[825], p[825];+ int i = cx * 4, k = cz * 4;+ /* depth: this.b.a(this.g, i, k, 5, 5, e, f, g) -> a(arr, i, 10, k, 5, 1, 5, 200, 1.0, 200) */+ roct(r_depth, 16, g, i, 10, k, 5, 1, 5, (double)200.0f, 1.0, (double)200.0f);+ float F = 684.412F, F1 = 684.412F;+ roct(r_main, 8, dd, i, 0, k, 5, 33, 5, (double)(F / 80.0F), (double)(F1 / 160.0F), (double)(F / 80.0F));+ roct(r_min, 16, e, i, 0, k, 5, 33, 5, (double)F, (double)F1, (double)F);+ roct(r_max, 16, f, i, 0, k, 5, 33, 5, (double)F, (double)F1, (double)F);+ int l = 0, i1 = 0;+ for (int j1 = 0; j1 < 5; ++j1) for (int k1 = 0; k1 < 5; ++k1) {+ float f2 = 0, f3 = 0, f4 = 0; const Biome *bc = bio(b4[j1 + 2 + (k1 + 2) * 10]);+ for (int l1 = -2; l1 <= 2; ++l1) for (int i2 = -2; i2 <= 2; ++i2) {+ const Biome *b1 = bio(b4[j1 + l1 + 2 + (k1 + i2 + 2) * 10]);+ float f5 = 0.0F + b1->depth * 1.0F, f6 = 0.0F + b1->scale * 1.0F;+ float f7 = (float)r_q[l1 + 2 + (i2 + 2) * 5] / (f5 + 2.0F);+ if (b1->depth > bc->depth) f7 /= 2.0F;+ f2 += f6 * f7; f3 += f5 * f7; f4 += f7;+ }+ f2 /= f4; f3 /= f4; f2 = f2 * 0.9F + 0.1F; f3 = (f3 * 4.0F - 1.0F) / 8.0F;+ double d0 = g[i1] / 8000.0; if (d0 < 0) d0 = -d0 * 0.3; d0 = d0 * 3.0 - 2.0;+ if (d0 < 0) { d0 /= 2.0; if (d0 < -1) d0 = -1; d0 /= 1.4; d0 /= 2.0; } else { if (d0 > 1) d0 = 1; d0 /= 8.0; }+ ++i1; double d1 = f3, d2 = f2; d1 += d0 * 0.2; d1 = d1 * (double)8.5F / 8.0; double d3 = (double)8.5F + d1 * 4.0;+ for (int j2 = 0; j2 < 33; ++j2) {+ double d4 = ((double)j2 - d3) * (double)12.0F * 128.0 / 256.0 / d2; if (d4 < 0) d4 *= 4.0;+ double d5 = e[l] / (double)512.0F, d6 = f[l] / (double)512.0F, d7 = (dd[l] / 10.0 + 1.0) / 2.0;+ double d8 = (d7 < 0 ? d5 : (d7 > 1 ? d6 : d5 + (d6 - d5) * d7)) - d4;+ if (j2 > 29) { double d9 = (double)((float)(j2 - 29) / 3.0F); d8 = d8 * (1.0 - d9) + -10.0 * d9; }+ p[l] = d8; ++l;+ }+ }+ memset(chunk, B_AIR, 65536);+ for (int kk = 0; kk < 4; ++kk) { int ll = kk * 5, ii1 = (kk + 1) * 5;+ for (int jj1 = 0; jj1 < 4; ++jj1) { int kk1 = (ll + jj1) * 33, ll1 = (ll + jj1 + 1) * 33, ii2 = (ii1 + jj1) * 33, jj2 = (ii1 + jj1 + 1) * 33;+ for (int k2 = 0; k2 < 32; ++k2) {+ double d0 = 0.125, d1 = p[kk1 + k2], d2 = p[ll1 + k2], d3 = p[ii2 + k2], d4 = p[jj2 + k2];+ double d5 = (p[kk1 + k2 + 1] - d1) * d0, d6 = (p[ll1 + k2 + 1] - d2) * d0, d7 = (p[ii2 + k2 + 1] - d3) * d0, d8 = (p[jj2 + k2 + 1] - d4) * d0;+ for (int l2 = 0; l2 < 8; ++l2) { double d9 = 0.25, d10 = d1, d11 = d2, d12 = (d3 - d1) * d9, d13 = (d4 - d2) * d9;+ for (int i3 = 0; i3 < 4; ++i3) { double d14 = 0.25, d15 = (d11 - d10) * d14, d16 = d10 - d15;+ for (int j3 = 0; j3 < 4; ++j3) { int y = k2 * 8 + l2; if ((d16 += d15) > 0.0) RS(kk * 4 + i3, y, jj1 * 4 + j3) = B_STONE; else if (y < 63) RS(kk * 4 + i3, y, jj1 * 4 + j3) = B_WATER; }+ d10 += d12; d11 += d13; }+ d1 += d5; d2 += d6; d3 += d7; d4 += d8; }+ } } }+ /* surface */+ static double t[256]; for (int a = 0; a < 256; a++) t[a] = 0;+ { double d0 = 0.03125; double dd6 = 1.0, dd7 = 1.0; for (int o = 0; o < 4; o++) { rsimplex_arr(&r_surf[o], t, (double)(cx * 16), (double)(cz * 16), 16, 16, d0 * 2.0 * dd7 * dd6, d0 * 2.0 * dd7 * dd6, 0.55 / dd6); dd7 *= 1.0; dd6 *= 0.5; } }+ JRand rr; jr_seed(&rr, (i64)((u64)(i64)cx * 341873128712ULL + (u64)(i64)cz * 132897987541ULL));+ for (int kk = 0; kk < 16; ++kk) for (int ll = 0; ll < 16; ++ll) {+ const Biome *bb = bio(b16[ll + kk * 16]); int ii = cx * 16 + kk, jj = cz * 16 + ll; double d0 = t[ll + kk * 16];+ int ak = bb->top, al = bb->filler;+ switch (bb->surf) {+ case S_HILLS: ak = B_GRASS; al = B_DIRT; if ((d0 < -1.0 || d0 > 2.0) && bb->mode == 2) ak = al = B_GRAVEL; else if (d0 > 1.0 && bb->mode != 1) ak = al = B_STONE; break;+ case S_TAIGA_MEGA: ak = B_GRASS; al = B_DIRT; if (d0 > 1.75) ak = B_COARSE_DIRT; else if (d0 > -0.95) ak = B_PODZOL; break;+ case S_SAVANNA_M: ak = B_GRASS; al = B_DIRT; if (d0 > 1.75) ak = al = B_STONE; else if (d0 > -0.5) ak = B_COARSE_DIRT; break;+ case S_SWAMP: { double d1 = rsimplex_pt(&r_af, (double)ii * 0.25, (double)jj * 0.25);+ if (d1 > 0.0) { int k2 = ii & 15, l2 = jj & 15; for (int y = 255; y >= 0; --y) if (RS(l2, y, k2) != B_AIR) { if (y == 62 && RS(l2, y, k2) != B_WATER) { RS(l2, y, k2) = B_WATER; if (d1 < 0.12) RS(l2, y + 1, k2) = B_LILY_PAD; } break; } }+ break; }+ case S_MESA: r_mesa(chunk, bb, &rr, ii, jj, d0); continue;+ }+ r_b(chunk, bb, &rr, ii, jj, d0, ak, al);+ }+}diff --git a/games/numblocks/tests/gen/t_init.h b/games/numblocks/tests/gen/t_init.hnew file mode 100644index 00000000..183aface--- /dev/null+++ b/games/numblocks/tests/gen/t_init.h@@ -0,0 +1,37 @@+/* test-only init of the parts of gen.c built so far (replaced by gen_init later) */+static void test_init(i64 seed) {+ jr_jump_init();+ g_seed = seed;+ memset(biome_index, 255, sizeof biome_index);+ for (int i = 0; i < NBIOMES; i++) biome_index[BIOMES[i].id] = (uint8_t)i;+ for (int i = 0; i < NLSEEDS; i++) lay_wseed[i] = layer_world(LSEEDS[i]);+ vor_c = layer_world(10);+ JRand r; jr_seed(&r, seed);+ for (int i = 0; i < 16; i++) { oc_min[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 16; i++) { oc_max[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 8; i++) { oc_main[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 4; i++) { oc_surf[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 10; i++) perm_skip(&r);+ for (int i = 0; i < 16; i++) { oc_depth[i].st = r.s; perm_skip(&r); }+ SC_LIMIT = FX(684.412f); SC_MAINXZ = FX(684.412f / 80.0f); SC_MAINY = FX(684.412f / 160.0f); SC_DEPTH = FX(200.0f);+ for (int j = -2; j <= 2; j++) for (int k = -2; k <= 2; k++) bweights[j + 2 + (k + 2) * 5] = 10.0f / (float)sqrt((double)((float)(j * j + k * k) + 0.2f));+ JRand t; jr_seed(&t, 1234); perm_build(t.s, perm_temp, 0);+ jr_seed(&t, 2345); perm_build(t.s, perm_grass, 0);+ /* mesa */+ jr_seed(&r, seed);+ oc_mesa[0].st = r.s; perm_skip(&r);+ for (int j = 0; j < 64; j++) mesa_bands[j] = B_HARDENED_CLAY;+ int j;+ for (j = 0; j < 64; ++j) { j += jr_int(&r, 5) + 1; if (j < 64) mesa_bands[j] = B_STAINED_CLAY_ORANGE; }+ j = jr_int(&r, 4) + 2;+ for (int k = 0; k < j; ++k) { int l = jr_int(&r, 3) + 1, i1 = jr_int(&r, 64); for (int j1 = 0; i1 + j1 < 64 && j1 < l; ++j1) mesa_bands[i1 + j1] = B_STAINED_CLAY_YELLOW; }+ int k = jr_int(&r, 4) + 2;+ for (int l = 0; l < k; ++l) { int i1 = jr_int(&r, 3) + 2, j1 = jr_int(&r, 64); for (int k1 = 0; j1 + k1 < 64 && k1 < i1; ++k1) mesa_bands[j1 + k1] = B_STAINED_CLAY_BROWN; }+ int l = jr_int(&r, 4) + 2;+ for (int i1 = 0; i1 < l; ++i1) { int j1 = jr_int(&r, 3) + 1, k1 = jr_int(&r, 64); for (int l1 = 0; k1 + l1 < 64 && l1 < j1; ++l1) mesa_bands[k1 + l1] = B_STAINED_CLAY_RED; }+ int i1 = jr_int(&r, 3) + 3, j1 = 0;+ for (int k1 = 0; k1 < i1; ++k1) { j1 += jr_int(&r, 16) + 4; for (int i2 = 0; j1 + i2 < 64 && i2 < 1; ++i2) { mesa_bands[j1 + i2] = B_STAINED_CLAY_WHITE; if (j1 + i2 > 1 && jr_bool(&r)) mesa_bands[j1 + i2 - 1] = B_STAINED_CLAY_SILVER; if (j1 + i2 < 63 && jr_bool(&r)) mesa_bands[j1 + i2 + 1] = B_STAINED_CLAY_SILVER; } }+ jr_seed(&r, seed);+ for (int o = 0; o < 4; o++) { oc_mesa[o].st = r.s; perm_skip(&r); }+ oc_mesa[4].st = r.s;+}diff --git a/games/numblocks/tests/gen/t_layers.c b/games/numblocks/tests/gen/t_layers.cnew file mode 100644index 00000000..fd5cd5b0--- /dev/null+++ b/games/numblocks/tests/gen/t_layers.c@@ -0,0 +1,34 @@+#include "../../src/gen.c"+#include <stdio.h>+#include <stdlib.h>+int main(int argc, char **argv) {+ i64 seed = argc > 1 ? strtoll(argv[1], 0, 10) : 12345;+ int R = argc > 2 ? atoi(argv[2]) : 512; /* half size in blocks */+ jr_jump_init();+ g_seed = seed;+ layers_init_test();+ int W = 2 * R;+ static uint8_t img[2048 * 2048 * 3];+ static i32 rm[64 * 64];+ static uint8_t bb[64 * 64];+ for (int tz = -R; tz < R; tz += 64)+ for (int tx = -R; tx < R; tx += 64) {+ int rx, rz, rw, rh;+ voronoi_rm_win(tx, tz, 64, 64, &rx, &rz, &rw, &rh);+ layers_rivermix(rx, rz, rw, rh, rm);+ voronoi(rm, rx, rz, rw, tx, tz, 64, 64, bb, 64);+ for (int j = 0; j < 64; j++)+ for (int i = 0; i < 64; i++) {+ u32 c = bio(bb[i + j * 64])->color;+ int px = tx + R + i, pz = tz + R + j;+ uint8_t *p = img + 3 * (pz * W + px);+ p[0] = c >> 16; p[1] = c >> 8; p[2] = c;+ }+ }+ printf("P6 %d %d peak lay ints %d\n", W, W, lay_peak);+ FILE *f = fopen(argc > 3 ? argv[3] : "/tmp/claude-0/-home-user-NumPlay/3af2eb1c-20d9-554a-acfb-eb19ce4fa977/scratchpad/gen/biomes.ppm", "wb");+ fprintf(f, "P6 %d %d 255\n", W, W);+ fwrite(img, 1, (size_t)W * W * 3, f);+ fclose(f);+ return 0;+}diff --git a/games/numblocks/tests/gen/t_refcmp.c b/games/numblocks/tests/gen/t_refcmp.cnew file mode 100644index 00000000..84a547b6--- /dev/null+++ b/games/numblocks/tests/gen/t_refcmp.c@@ -0,0 +1,37 @@+#include "../../src/gen.c"+#include <stdio.h>+#include <stdlib.h>+#include "ref_terrain.h"+#include "t_init.h"+int main(int argc, char **argv) {+ i64 seed = argc > 1 ? strtoll(argv[1], 0, 10) : 12345;+ int n = argc > 2 ? atoi(argv[2]) : 50;+ int X0 = argc > 3 ? atoi(argv[3]) : 0, Z0 = argc > 4 ? atoi(argv[4]) : 0;+ test_init(seed);+ ref_init(seed);+ static uint8_t ref[65536], mine[256 * 256];+ long diff = 0, tot = 0, cdiff = 0;+ JRand pick; jr_seed(&pick, 99);+ for (int c = 0; c < n; c++) {+ int cx = X0 + jr_int(&pick, 2000) - 1000, cz = Z0 + jr_int(&pick, 2000) - 1000;+ if (c < 4) { cx = X0 + c; cz = Z0; }+ if (argc > 5) { /* only chunks containing biome class argv[5] */+ int want = atoi(argv[5]), ok = 0, tries = 0;+ while (!ok && tries++ < 200000) {+ cx = X0 + jr_int(&pick, 20000) - 10000; cz = Z0 + jr_int(&pick, 20000) - 10000;+ chunk_biomes(cx, cz);+ for (int q = 0; q < 256; q++) if (want < 100 ? bio(cb16[q])->cls == want : cb16[q] == want) ok = 1;+ }+ }+ ref_chunk(cx, cz, ref);+ chunk_terrain(cx, cz, mine, 0, 256, 0);+ int d = 0;+ for (int y = 0; y < 256; y++) for (int z = 0; z < 16; z++) for (int x = 0; x < 16; x++) {+ int a = ref[(y * 16 + z) * 16 + x], b = mine[y * 256 + z * 16 + x];+ if (a != b) { if (d < 5) printf(" chunk %d,%d (%d,%d,%d): ref %d mine %d\n", cx, cz, x, y, z, a, b); d++; }+ }+ diff += d; tot += 65536; if (d) cdiff++;+ }+ printf("seed %lld: %ld / %ld blocks differ in %ld of %d chunks\n", (long long)seed, diff, tot, cdiff, n);+ return 0;+}diff --git a/games/numblocks/tests/gen/t_rm.c b/games/numblocks/tests/gen/t_rm.cnew file mode 100644index 00000000..a9f4ce2c--- /dev/null+++ b/games/numblocks/tests/gen/t_rm.c@@ -0,0 +1,26 @@+/* writes the 1:4 GenLayerRiverMix map for block window [x0,x0+w) x [z0,z0+h) as raw ids (1 byte per block) */+#include "../../src/gen.c"+#include <stdio.h>+#include <stdlib.h>+int main(int argc, char **argv) {+ i64 seed = strtoll(argv[1], 0, 10);+ int x0 = atoi(argv[2]), z0 = atoi(argv[3]), w = atoi(argv[4]), h = atoi(argv[5]);+ jr_jump_init(); g_seed = seed; layers_init_test();+ int cx0 = x0 >> 2, cz0 = z0 >> 2, cw = ((x0 + w - 1) >> 2) - cx0 + 1, ch = ((z0 + h - 1) >> 2) - cz0 + 1;+ static i32 rm[64*64];+ static uint8_t cells[1024*1024];+ for (int tz = 0; tz < ch; tz += 16) for (int tx = 0; tx < cw; tx += 16) {+ int tw = cw - tx < 16 ? cw - tx : 16, th = ch - tz < 16 ? ch - tz : 16;+ layers_rivermix(cx0 + tx, cz0 + tz, tw, th, rm);+ for (int j = 0; j < th; j++) for (int i = 0; i < tw; i++) cells[(tz + j) * cw + tx + i] = rm[i + j * tw];+ }+ FILE *f = fopen(argv[6], "wb");+ for (int z = z0; z < z0 + h; z++) for (int x = x0; x < x0 + w; x++) fputc(cells[((z >> 2) - cz0) * cw + (x >> 2) - cx0], f);+ fclose(f);+ printf("peak %d\n", lay_peak);+ /* palette dump */+ f = fopen(argv[7], "w");+ for (int i = 0; i < NBIOMES; i++) fprintf(f, "%d %u\n", BIOMES[i].id, BIOMES[i].color);+ fclose(f);+ return 0;+}diff --git a/games/numblocks/tests/gen/t_terrain.c b/games/numblocks/tests/gen/t_terrain.cnew file mode 100644index 00000000..6baba769--- /dev/null+++ b/games/numblocks/tests/gen/t_terrain.c@@ -0,0 +1,70 @@+#include "../../src/gen.c"+#include <stdio.h>+#include <stdlib.h>+#include <time.h>+#include <math.h>+static void tinit(i64 seed) {+ jr_jump_init();+ g_seed = seed;+ memset(biome_index, 255, sizeof biome_index);+ for (int i = 0; i < NBIOMES; i++) biome_index[BIOMES[i].id] = (uint8_t)i;+ for (int i = 0; i < NLSEEDS; i++) lay_wseed[i] = layer_world(LSEEDS[i]);+ vor_c = layer_world(10);+ JRand r; jr_seed(&r, seed);+ for (int i = 0; i < 16; i++) { oc_min[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 16; i++) { oc_max[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 8; i++) { oc_main[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 4; i++) { oc_surf[i].st = r.s; perm_skip(&r); }+ for (int i = 0; i < 10; i++) perm_skip(&r);+ for (int i = 0; i < 16; i++) { oc_depth[i].st = r.s; perm_skip(&r); }+ SC_LIMIT = FX(684.412f); SC_MAINXZ = FX(684.412f / 80.0f); SC_MAINY = FX(684.412f / 160.0f); SC_DEPTH = FX(200.0f);+ for (int j = -2; j <= 2; j++) for (int k = -2; k <= 2; k++) bweights[j + 2 + (k + 2) * 5] = 10.0f / (float)sqrt((double)((float)(j * j + k * k) + 0.2f));+ JRand t; jr_seed(&t, 1234); perm_build(t.s, perm_temp, 0);+ jr_seed(&t, 2345); perm_build(t.s, perm_grass, 0);+}+int main(int argc, char **argv) {+ i64 seed = argc > 1 ? strtoll(argv[1], 0, 10) : 12345;+ int R = argc > 2 ? atoi(argv[2]) : 8; /* chunks radius */+ int X0 = argc > 3 ? atoi(argv[3]) : 0, Z0 = argc > 4 ? atoi(argv[4]) : 0;+ tinit(seed);+ int W = 2 * R * 16;+ uint8_t *img = calloc((size_t)W * W, 3);+ static ColSum sum[256];+ clock_t t0 = clock();+ for (int cz = -R; cz < R; cz++) for (int cx = -R; cx < R; cx++) {+ chunk_terrain(cx + X0, cz + Z0, 0, 0, 0, sum);+ for (int z = 0; z < 16; z++) for (int x = 0; x < 16; x++) {+ ColSum *s = &sum[x + z * 16];+ int px = (cx + R) * 16 + x, pz = (cz + R) * 16 + z;+ uint8_t *p = img + 3 * (pz * W + px);+ int r = 128, g = 128, b = 128;+ switch (s->blk) {+ case B_GRASS: r = 90; g = 160; b = 60; break;+ case B_SAND: r = 220; g = 210; b = 150; break;+ case B_RED_SAND: r = 200; g = 110; b = 40; break;+ case B_WATER: case B_LILY_PAD: r = 40; g = 70; b = 200; break;+ case B_ICE: r = 160; g = 190; b = 255; break;+ case B_STONE: r = 120; g = 120; b = 120; break;+ case B_GRAVEL: r = 140; g = 130; b = 130; break;+ case B_SNOW: r = 250; g = 250; b = 250; break;+ case B_MYCELIUM: r = 120; g = 90; b = 120; break;+ case B_PODZOL: r = 110; g = 80; b = 40; break;+ case B_COARSE_DIRT: case B_DIRT: r = 130; g = 95; b = 60; break;+ default: r = 180; g = 120; b = 90; break;+ }+ int hgt = s->top;+ if (s->blk == B_WATER || s->blk == B_LILY_PAD) { float d = (63 - s->aux) / 40.0f; if (d > 1) d = 1; r *= 1 - d * 0.6f; g *= 1 - d * 0.6f; b *= 1 - d * 0.4f; }+ else { float f = 0.55f + (hgt - 50) / 100.0f; if (f > 1.3f) f = 1.3f; r *= f; g *= f; b *= f; }+ /* hillshade */+ if (x > 0) { int dh = (int)s->top - (int)sum[x - 1 + z * 16].top; float f = 1 + dh * 0.08f; if (f < 0.6f) f = 0.6f; if (f > 1.4f) f = 1.4f; r *= f; g *= f; b *= f; }+ p[0] = r > 255 ? 255 : r; p[1] = g > 255 ? 255 : g; p[2] = b > 255 ? 255 : b;+ }+ }+ double el = (double)(clock() - t0) / CLOCKS_PER_SEC;+ printf("%d chunks in %.3f s (%.3f ms/chunk)\n", 4 * R * R, el, el * 1000 / (4 * R * R));+ FILE *f = fopen("/tmp/claude-0/-home-user-NumPlay/3af2eb1c-20d9-554a-acfb-eb19ce4fa977/scratchpad/gen/terrain.ppm", "wb");+ fprintf(f, "P6 %d %d 255\n", W, W);+ fwrite(img, 1, (size_t)W * W * 3, f);+ fclose(f);+ return 0;+}diff --git a/games/numblocks/tests/play.c b/games/numblocks/tests/play.cindex 28a2529b..0ca8b332 100644--- a/games/numblocks/tests/play.c+++ b/games/numblocks/tests/play.c@@ -23,7 +23,8 @@ static uint32_t key_bit(const char *s) {static const struct { const char *n; uint32_t k; } t[] = {{"left", K_LEFT}, {"right", K_RIGHT}, {"up", K_UP}, {"down", K_DOWN}, {"fwd", K_FWD}, {"back", K_BACKW},{"sleft", K_STRAFE_L}, {"sright", K_STRAFE_R}, {"jump", K_JUMP}, {"use", K_USE}, {"attack", K_ATTACK},- {"inv", K_INV}, {"sneak", K_SNEAK}, {"sprint", K_SPRINT}, {"pause", K_PAUSE}, {"home", K_HOME}};+ {"inv", K_INV}, {"sneak", K_SNEAK}, {"sprint", K_SPRINT}, {"pause", K_PAUSE}, {"home", K_HOME},+ {"ok", K_OK | K_USE}, {"exe", K_EXE | K_USE}, {"shift", K_SHIFT}, {"esc", K_BACK | K_ATTACK}, {"drop", K_DROP}};for (unsigned i = 0; i < sizeof t / sizeof t[0]; i++)if (!strcmp(s, t[i].n)) return t[i].k;if (s[0] >= '1' && s[0] <= '9' && !s[1]) return K_SLOT1 << (s[0] - '1');@@ -32,12 +33,17 @@ static uint32_t key_bit(const char *s) {int main(int argc, char **argv) {const char *out = "build/play", *shots = "";+ int give = 0, title_screen = 0;+ float hurt = 0;int frames = 60, mspf = 50;for (int i = 1; i < argc; i++) {if (!strcmp(argv[i], "--frames") && i + 1 < argc) frames = atoi(argv[++i]);else if (!strcmp(argv[i], "--ms-per-frame") && i + 1 < argc) mspf = atoi(argv[++i]);else if (!strcmp(argv[i], "--out") && i + 1 < argc) out = argv[++i];else if (!strcmp(argv[i], "--shots") && i + 1 < argc) shots = argv[++i];+ else if (!strcmp(argv[i], "--give")) give = 1;+ else if (!strcmp(argv[i], "--title")) title_screen = 1;+ else if (!strcmp(argv[i], "--hurt") && i + 1 < argc) hurt = (float)atof(argv[++i]);else if (!strcmp(argv[i], "--keys") && i + 1 < argc) {char *s = strdup(argv[++i]);for (char *t = strtok(s, ","); t && nholds < 512; t = strtok(NULL, ",")) {@@ -50,7 +56,20 @@ int main(int argc, char **argv) {}mkdir(out, 0755);clock_t c0 = clock();+ extern bool start_in_world;+ start_in_world = !title_screen;game_init();+ if (give) {+ /* a test kit: tools, blocks, food, armour */+ static const int kit[][2] = {{I_IRON_PICKAXE, 1}, {I_DIAMOND_SWORD, 1}, {B_COBBLESTONE, 64}, {B_PLANKS_OAK, 23},+ {B_TORCH, 16}, {I_BREAD, 5}, {B_CRAFTING_TABLE, 1}, {B_FURNACE, 1}, {B_CHEST, 1},+ {B_LOG_OAK, 12}, {I_COAL, 9}, {B_IRON_ORE, 7}, {I_IRON_HELMET, 1},+ {I_IRON_CHESTPLATE, 1}, {I_STICK, 10}, {I_WHEAT_SEEDS, 3}, {I_WOODEN_HOE, 1},+ {I_BUCKET, 1}, {B_SAND, 20}, {I_APPLE, 2}};+ for (unsigned i = 0; i < sizeof kit / sizeof kit[0]; i++) inv_add(pl.inv, 36, kit[i][0], kit[i][1], 0);+ pl.inv[0].aux = 100; /* a worn pickaxe */+ }+ if (hurt > 0) pl.health -= hurt, pl.food -= 7, pl.xp_level = 7, pl.xp = 0.4f;double init_ms = (clock() - c0) * 1000.0 / CLOCKS_PER_SEC;c0 = clock();for (int f = 0; f < frames; f++) {diff --git a/games/numblocks/tests/stubs.c b/games/numblocks/tests/stubs.cnew file mode 100644index 00000000..b32e9282--- /dev/null+++ b/games/numblocks/tests/stubs.c@@ -0,0 +1,4 @@+/* What the unit test links in place of main.c. */+#include "nb.h"+uint32_t game_time;+uint32_t perf_frames;diff --git a/games/numblocks/tests/unit.c b/games/numblocks/tests/unit.cnew file mode 100644index 00000000..088fab2f--- /dev/null+++ b/games/numblocks/tests/unit.c@@ -0,0 +1,100 @@+/* Checks of the item rules: crafting, stacking, smelting, drops. */+#include <stdio.h>+#include "nb.h"+#include "edits.h"++static int fails;+#define CHECK(c) do { if (!(c)) { printf("FAIL %s:%d: %s\n", __FILE__, __LINE__, #c); fails++; } } while (0)++static int craft(const int *ids, int w) {+ Stack g[9] = {{0}};+ for (int i = 0; i < w * w; i++) g[i].id = (uint16_t)ids[i], g[i].aux = ids[i] ? 1 : 0;+ int r = craft_find(g, w);+ return r < 0 ? 0 : recipes[r].out * 100 + recipes[r].n;+}++int main(void) {+ /* planks from a log, anywhere in the grid */+ int a[4] = {0, B_LOG_BIRCH, 0, 0};+ CHECK(craft(a, 2) == B_PLANKS_BIRCH * 100 + 4);+ /* sticks from any planks */+ int b[4] = {B_PLANKS_JUNGLE, 0, B_PLANKS_OAK, 0};+ CHECK(craft(b, 2) == I_STICK * 100 + 4);+ /* crafting table */+ int c[4] = {B_PLANKS_OAK, B_PLANKS_SPRUCE, B_PLANKS_OAK, B_PLANKS_OAK};+ CHECK(craft(c, 2) == B_CRAFTING_TABLE * 100 + 1);+ /* a pickaxe needs the 3 x 3 grid */+ int p[9] = {B_COBBLESTONE, B_COBBLESTONE, B_COBBLESTONE, 0, I_STICK, 0, 0, I_STICK, 0};+ CHECK(craft(p, 3) == I_STONE_PICKAXE * 100 + 1);+ /* an axe, mirrored */+ int x1[9] = {I_IRON_INGOT, I_IRON_INGOT, 0, I_IRON_INGOT, I_STICK, 0, 0, I_STICK, 0};+ int x2[9] = {0, I_IRON_INGOT, I_IRON_INGOT, 0, I_STICK, I_IRON_INGOT, 0, I_STICK, 0};+ CHECK(craft(x1, 3) == I_IRON_AXE * 100 + 1);+ CHECK(craft(x2, 3) == I_IRON_AXE * 100 + 1);+ /* torches from coal or charcoal */+ int t1[4] = {I_COAL, 0, I_STICK, 0}, t2[4] = {0, I_CHARCOAL, 0, I_STICK};+ CHECK(craft(t1, 2) == B_TORCH * 100 + 4);+ CHECK(craft(t2, 2) == B_TORCH * 100 + 4);+ /* shapeless: stew, in any order */+ int s[9] = {I_BOWL, 0, 0, 0, B_RED_MUSHROOM, 0, 0, 0, B_BROWN_MUSHROOM};+ CHECK(craft(s, 3) == I_MUSHROOM_STEW * 100 + 1);+ /* nothing */+ int n[4] = {B_DIRT, 0, 0, 0};+ CHECK(craft(n, 2) == 0);+ /* a furnace and a chest */+ int f[9] = {B_COBBLESTONE, B_COBBLESTONE, B_COBBLESTONE, B_COBBLESTONE, 0, B_COBBLESTONE, B_COBBLESTONE,+ B_COBBLESTONE, B_COBBLESTONE};+ CHECK(craft(f, 3) == B_FURNACE * 100 + 1);+ int bed[9] = {B_WOOL_RED, B_WOOL_WHITE, B_WOOL_RED, B_PLANKS_OAK, B_PLANKS_BIRCH, B_PLANKS_OAK, 0, 0, 0};+ CHECK(craft(bed, 3) == I_BED * 100 + 1);+ /* stacking: 64 at most, the same items first */+ Stack inv[36] = {{0}};+ CHECK(inv_add(inv, 36, B_DIRT, 100, 0) == 0);+ CHECK(inv[0].id == B_DIRT && inv[0].aux == 64 && inv[1].aux == 36);+ CHECK(inv_add(inv, 36, I_IRON_PICKAXE, 1, 5) == 0 && inv[2].id == I_IRON_PICKAXE && inv[2].aux == 5);+ CHECK(inv_add(inv, 36, B_DIRT, 30, 0) == 0 && inv[1].aux == 64 && inv[3].aux == 2);+ CHECK(inv_add(inv, 36, I_EGG, 20, 0) == 0 && inv[4].aux == 16 && inv[5].aux == 4);+ /* smelting */+ CHECK(smelt_of(B_IRON_ORE) == I_IRON_INGOT);+ CHECK(smelt_of(B_LOG_ACACIA) == I_CHARCOAL);+ CHECK(smelt_of(B_DIRT) == 0);+ CHECK(item_fuel(I_COAL) == 1600 && item_fuel(B_PLANKS_OAK) == 300 && item_fuel(I_STICK) == 100);+ /* harvesting */+ CHECK(!can_harvest(B_STONE, 0) && can_harvest(B_STONE, I_WOODEN_PICKAXE));+ CHECK(!can_harvest(B_DIAMOND_ORE, I_STONE_PICKAXE) && can_harvest(B_DIAMOND_ORE, I_IRON_PICKAXE));+ CHECK(can_harvest(B_DIRT, 0) && dig_speed(B_DIRT, I_DIAMOND_SHOVEL) == 8 && dig_speed(B_DIRT, I_DIAMOND_PICKAXE) == 1);+ Stack out[2];+ CHECK(block_drops(B_STONE, I_WOODEN_PICKAXE, out) == 1 && out[0].id == B_COBBLESTONE);+ CHECK(block_drops(B_STONE, 0, out) == 0);+ CHECK(block_drops(B_GRASS, 0, out) == 1 && out[0].id == B_DIRT);+ CHECK(block_drops(B_LOG_OAK_X, 0, out) == 1 && out[0].id == B_LOG_OAK);+ CHECK(block_drops(B_COAL_ORE, I_GOLDEN_PICKAXE, out) == 1 && out[0].id == I_COAL);+ CHECK(block_drops(B_TORCH_E, 0, out) == 1 && out[0].id == B_TORCH);+ /* changes survive: through the journal, into storage, back after a reload */+ {+ extern void host_save_dir(const char *d);+ host_save_dir("build/unit-saves");+ remove("build/unit-saves/ut1r0_0.nbe");+ remove("build/unit-saves/ut1r-1_0.nbe");+ world_new(0, "ut1");+ world_follow(8, 70, 8);+ int base = world_get(5, 60, 5);+ world_set(5, 60, 5, B_GOLD_BLOCK);+ world_set(-3, 61, 7, B_GLASS);+ for (int i = 0; i < 300; i++) world_set(i % 20 - 5, 58 + i / 20, 12, B_DIAMOND_BLOCK); /* more than the journal */+ CHECK(world_get(5, 60, 5) == B_GOLD_BLOCK);+ CHECK(edits_flush());+ world_new(0, "ut1");+ world_follow(8, 70, 8);+ CHECK(world_get(5, 60, 5) == B_GOLD_BLOCK);+ CHECK(world_get(-3, 61, 7) == B_GLASS);+ CHECK(world_get(14, 72, 12) == B_DIAMOND_BLOCK && world_get(-5, 58, 12) == B_DIAMOND_BLOCK);+ world_set(5, 60, 5, base);+ CHECK(edits_flush());+ world_new(0, "ut1");+ world_follow(8, 70, 8);+ CHECK(world_get(5, 60, 5) == base);+ }+ printf("%s (%d recipes)\n", fails ? "FAILED" : "all good", N_RECIPES);+ return fails != 0;+}diff --git a/games/numblocks/tools/blocks.py b/games/numblocks/tools/blocks.pyindex 2b970b25..44ada6bd 100644--- a/games/numblocks/tools/blocks.py+++ b/games/numblocks/tools/blocks.py@@ -204,6 +204,15 @@ b('BED_FOOT', 26, 0, model='slab', tex=tsb('bed_feet_top', 'bed_feet_side'), harb('BED_HEAD', 26, 8, model='slab', tex=tsb('bed_head_top', 'bed_head_side'), hard=0.2)b('FLOWING_WATER', 8, 1, model='liquid', tex='water_flow', tint='water', hard=100)b('FLOWING_LAVA', 10, 2, model='liquid', tex='lava_flow', light=15, hard=100)+# added after the first generator port: keep new states at the end so ids stay stable+for v, (n, t) in enumerate([('OAK', 'oak'), ('SPRUCE', 'spruce'), ('BIRCH', 'birch'), ('JUNGLE', 'jungle'),+ ('ACACIA', 'acacia'), ('DARK_OAK', 'big_oak')]):+ b(f'WOOD_SLAB_{n}', 126, v, model='slab', tex=f'planks_{t}', hard=2.0, tool='axe')+# carrots and potatoes: 4 looks (Minecraft's ages 0-1, 2-3, 4-6, 7)+for st in range(4):+ b(f'CARROTS_{st}', 141, (0, 2, 4, 7)[st], model='cross', tex=f'carrots_stage_{st}', hard=0)+for st in range(4):+ b(f'POTATOES_{st}', 142, (0, 2, 4, 7)[st], model='cross', tex=f'potatoes_stage_{st}', hard=0)assert len(S) <= 255, len(S)diff --git a/games/numblocks/tools/items.py b/games/numblocks/tools/items.pynew file mode 100644index 00000000..951d4b37--- /dev/null+++ b/games/numblocks/tools/items.py@@ -0,0 +1,413 @@+#!/usr/bin/env python3+"""The items NumBlocks knows, their recipes, smelting and fuel, in one place+(Minecraft 1.8.8's values: Item.java, ItemFood, ItemArmor, ItemTool,+CraftingManager and the Recipes* classes, RecipesFurnace, TileEntityFurnace).++An item id is a block state (0 .. B_COUNT - 1, the blocks of tools/blocks.py+that can be held) or 256 + the index of an item below. tools/pack.py writes+the tables into src/data.c; `items.py --header` writes src/items.h."""+import sys+import os++sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+import blocks # noqa: E402++KINDS = ['none', 'block', 'pickaxe', 'axe', 'shovel', 'hoe', 'sword', 'shears', 'helmet', 'chestplate', 'leggings',+ 'boots', 'food', 'stew', 'bucket', 'water_bucket', 'lava_bucket', 'milk_bucket', 'placer', 'flint_and_steel',+ 'bow', 'bone_meal', 'snowball', 'egg']+# tool materials: harvest level, uses, efficiency, attack bonus (Item.EnumToolMaterial)+TOOL_MAT = {'wood': (0, 59, 2, 0), 'stone': (1, 131, 4, 1), 'iron': (2, 250, 6, 2), 'diamond': (3, 1561, 8, 3),+ 'gold': (0, 32, 12, 0)}+# armor materials: durability factor, points (helmet, chestplate, leggings, boots) (ItemArmor.EnumArmorMaterial)+ARMOR_MAT = {'leather': (5, (1, 3, 2, 1)), 'chainmail': (15, (2, 5, 4, 1)), 'iron': (15, (2, 6, 5, 2)),+ 'gold': (7, (2, 5, 3, 1)), 'diamond': (33, (3, 8, 6, 3))}+ARMOR_BASE = (11, 16, 15, 13)+TOOL_DAMAGE = {'sword': 4, 'axe': 3, 'pickaxe': 2, 'shovel': 1, 'hoe': 0}++I = []+++def item(name, label, tex, kind='none', stack=64, dur=0, tier=0, a=0, b=0, place=None, fuel=0):+ I.append(dict(name=name, label=label, tex=tex, kind=kind, stack=stack, dur=dur, tier=tier, a=a, b=b, place=place,+ fuel=fuel))+++def food(name, label, tex, hunger, sat, stack=64, kind='food', place=None):+ item(name, label, tex, kind, stack=stack, a=hunger, b=int(round(sat * 10)), place=place)+++# --- tools: tier = the material's index in TOOL_MAT; a = attack damage (half hearts, with the fist's 1)+for mat, tex in [('wood', 'wood'), ('stone', 'stone'), ('iron', 'iron'), ('diamond', 'diamond'), ('gold', 'gold')]:+ lvl, uses, eff, dmg = TOOL_MAT[mat]+ up = {'wood': 'WOODEN', 'gold': 'GOLDEN'}.get(mat, mat.upper())+ lab = {'wood': 'Wooden', 'gold': 'Golden'}.get(mat, mat.capitalize())+ for kind in ['sword', 'shovel', 'pickaxe', 'axe', 'hoe']:+ item(f'{up}_{kind.upper()}', f'{lab} {kind.capitalize()}', f'{tex}_{kind}', kind, stack=1, dur=uses,+ tier=list(TOOL_MAT).index(mat), a=1 + (TOOL_DAMAGE[kind] + dmg if kind != 'hoe' else 0),+ fuel=200 if mat == 'wood' else 0)+item('SHEARS', 'Shears', 'shears', 'shears', stack=1, dur=238)+item('FLINT_AND_STEEL', 'Flint and Steel', 'flint_and_steel', 'flint_and_steel', stack=1, dur=64)+item('BOW', 'Bow', 'bow_standby', 'bow', stack=1, dur=384, fuel=0)+item('ARROW', 'Arrow', 'arrow')+# --- armor: tier = the material's index in ARMOR_MAT; a = armor points+for mat in ARMOR_MAT:+ fac, pts = ARMOR_MAT[mat]+ tex = {'gold': 'gold'}.get(mat, mat)+ up = {'gold': 'GOLDEN'}.get(mat, mat.upper())+ lab = {'gold': 'Golden', 'leather': 'Leather', 'chainmail': 'Chain'}.get(mat, mat.capitalize())+ for k, part in enumerate(['helmet', 'chestplate', 'leggings', 'boots']):+ plab = {'chestplate': 'Chestplate' if mat != 'leather' else 'Tunic',+ 'leggings': 'Leggings' if mat != 'leather' else 'Pants',+ 'helmet': 'Helmet' if mat != 'leather' else 'Cap', 'boots': 'Boots'}[part]+ item(f'{up}_{part.upper()}', f'{lab} {plab}', f'{tex}_{part}', part, stack=1, dur=ARMOR_BASE[k] * fac,+ tier=list(ARMOR_MAT).index(mat), a=pts[k])+# --- materials+item('STICK', 'Stick', 'stick', fuel=100)+item('COAL', 'Coal', 'coal', fuel=1600)+item('CHARCOAL', 'Charcoal', 'charcoal', fuel=1600)+item('DIAMOND', 'Diamond', 'diamond')+item('IRON_INGOT', 'Iron Ingot', 'iron_ingot')+item('GOLD_INGOT', 'Gold Ingot', 'gold_ingot')+item('GOLD_NUGGET', 'Gold Nugget', 'gold_nugget')+item('EMERALD', 'Emerald', 'emerald')+item('REDSTONE', 'Redstone', 'redstone_dust')+item('FLINT', 'Flint', 'flint')+item('FEATHER', 'Feather', 'feather')+item('STRING', 'String', 'string')+item('BONE', 'Bone', 'bone')+item('GUNPOWDER', 'Gunpowder', 'gunpowder')+item('LEATHER', 'Leather', 'leather')+item('WHEAT', 'Wheat', 'wheat')+item('WHEAT_SEEDS', 'Seeds', 'seeds_wheat', 'placer', place='WHEAT_0')+item('REEDS', 'Sugar Canes', 'reeds', 'placer', place='SUGAR_CANE')+item('SUGAR', 'Sugar', 'sugar')+item('PAPER', 'Paper', 'paper')+item('BOOK', 'Book', 'book_normal')+item('CLAY_BALL', 'Clay', 'clay_ball')+item('BRICK', 'Brick', 'brick')+item('BOWL', 'Bowl', 'bowl')+item('SNOWBALL', 'Snowball', 'snowball', 'snowball', stack=16)+item('EGG', 'Egg', 'egg', 'egg', stack=16)+item('SLIME_BALL', 'Slimeball', 'slimeball')+item('GLOWSTONE_DUST', 'Glowstone Dust', 'glowstone_dust')+item('BUCKET', 'Bucket', 'bucket_empty', 'bucket', stack=16)+item('WATER_BUCKET', 'Water Bucket', 'bucket_water', 'water_bucket', stack=1)+item('LAVA_BUCKET', 'Lava Bucket', 'bucket_lava', 'lava_bucket', stack=1, fuel=20000)+item('MILK_BUCKET', 'Milk', 'bucket_milk', 'milk_bucket', stack=1)+item('WOODEN_DOOR', 'Oak Door', 'door_wood', 'placer', place='DOOR_OAK_LOWER')+item('BED', 'Bed', 'bed', 'placer', stack=1, place='BED_FOOT')+item('COMPASS', 'Compass', 'compass')+item('CLOCK', 'Clock', 'clock')+# dyes, in Minecraft's damage order (0 black (ink sac) .. 15 white (bone meal))+DYES = [('BLACK', 'Ink Sac', 'black'), ('RED', 'Rose Red', 'red'), ('GREEN', 'Cactus Green', 'green'),+ ('BROWN', 'Cocoa Beans', 'brown'), ('BLUE', 'Lapis Lazuli', 'blue'), ('PURPLE', 'Purple Dye', 'purple'),+ ('CYAN', 'Cyan Dye', 'cyan'), ('SILVER', 'Light Gray Dye', 'silver'), ('GRAY', 'Gray Dye', 'gray'),+ ('PINK', 'Pink Dye', 'pink'), ('LIME', 'Lime Dye', 'lime'), ('YELLOW', 'Dandelion Yellow', 'yellow'),+ ('LIGHT_BLUE', 'Light Blue Dye', 'light_blue'), ('MAGENTA', 'Magenta Dye', 'magenta'),+ ('ORANGE', 'Orange Dye', 'orange'), ('WHITE', 'Bone Meal', 'white')]+for n, lab, t in DYES:+ item(f'DYE_{n}', lab, f'dye_powder_{t}', 'bone_meal' if n == 'WHITE' else 'none')+# --- food: hunger (half drumsticks), saturation modifier (ItemFood)+food('APPLE', 'Apple', 'apple', 4, 0.3)+food('GOLDEN_APPLE', 'Golden Apple', 'apple_golden', 4, 1.2)+food('BREAD', 'Bread', 'bread', 5, 0.6)+food('PORKCHOP', 'Raw Porkchop', 'porkchop_raw', 3, 0.3)+food('COOKED_PORKCHOP', 'Cooked Porkchop', 'porkchop_cooked', 8, 0.8)+food('BEEF', 'Raw Beef', 'beef_raw', 3, 0.3)+food('COOKED_BEEF', 'Steak', 'beef_cooked', 8, 0.8)+food('CHICKEN', 'Raw Chicken', 'chicken_raw', 2, 0.3)+food('COOKED_CHICKEN', 'Cooked Chicken', 'chicken_cooked', 6, 0.6)+food('MUTTON', 'Raw Mutton', 'mutton_raw', 2, 0.3)+food('COOKED_MUTTON', 'Cooked Mutton', 'mutton_cooked', 6, 0.8)+food('ROTTEN_FLESH', 'Rotten Flesh', 'rotten_flesh', 4, 0.1)+food('SPIDER_EYE', 'Spider Eye', 'spider_eye', 2, 0.8)+food('MUSHROOM_STEW', 'Mushroom Stew', 'mushroom_stew', 6, 0.6, stack=1, kind='stew')+food('COOKIE', 'Cookie', 'cookie', 2, 0.1)+food('MELON_SLICE', 'Melon', 'melon', 2, 0.3)+food('CARROT', 'Carrot', 'carrot', 3, 0.6, place='CARROTS_0')+food('POTATO', 'Potato', 'potato', 1, 0.3, place='POTATOES_0')+food('BAKED_POTATO', 'Baked Potato', 'potato_baked', 5, 0.6)+food('POISONOUS_POTATO', 'Poisonous Potato', 'potato_poisonous', 2, 0.3)+food('PUMPKIN_PIE', 'Pumpkin Pie', 'pumpkin_pie', 8, 0.3)+food('RAW_FISH', 'Raw Fish', 'fish_cod_raw', 2, 0.1)+food('COOKED_FISH', 'Cooked Fish', 'fish_cod_cooked', 5, 0.6)++INAMES = [x['name'] for x in I]+assert len(set(INAMES)) == len(INAMES)++# --- the blocks you can hold: their names (en_US) and the item a block state counts as+LABELS = {+ 'STONE': 'Stone', 'GRANITE': 'Granite', 'POLISHED_GRANITE': 'Polished Granite', 'DIORITE': 'Diorite',+ 'POLISHED_DIORITE': 'Polished Diorite', 'ANDESITE': 'Andesite', 'POLISHED_ANDESITE': 'Polished Andesite',+ 'GRASS': 'Grass Block', 'DIRT': 'Dirt', 'COARSE_DIRT': 'Coarse Dirt', 'PODZOL': 'Podzol',+ 'COBBLESTONE': 'Cobblestone', 'BEDROCK': 'Bedrock', 'SAND': 'Sand', 'RED_SAND': 'Red Sand', 'GRAVEL': 'Gravel',+ 'GOLD_ORE': 'Gold Ore', 'IRON_ORE': 'Iron Ore', 'COAL_ORE': 'Coal Ore', 'SPONGE': 'Sponge', 'GLASS': 'Glass',+ 'LAPIS_ORE': 'Lapis Lazuli Ore', 'LAPIS_BLOCK': 'Lapis Lazuli Block', 'SANDSTONE': 'Sandstone',+ 'SANDSTONE_CHISELED': 'Chiseled Sandstone', 'SANDSTONE_SMOOTH': 'Smooth Sandstone', 'COBWEB': 'Cobweb',+ 'DEAD_SHRUB': 'Shrub', 'TALL_GRASS': 'Grass', 'FERN': 'Fern', 'DEAD_BUSH': 'Dead Bush', 'DANDELION': 'Dandelion',+ 'POPPY': 'Poppy', 'BLUE_ORCHID': 'Blue Orchid', 'ALLIUM': 'Allium', 'AZURE_BLUET': 'Azure Bluet',+ 'RED_TULIP': 'Red Tulip', 'ORANGE_TULIP': 'Orange Tulip', 'WHITE_TULIP': 'White Tulip', 'PINK_TULIP': 'Pink Tulip',+ 'OXEYE_DAISY': 'Oxeye Daisy', 'BROWN_MUSHROOM': 'Mushroom', 'RED_MUSHROOM': 'Mushroom',+ 'GOLD_BLOCK': 'Block of Gold', 'IRON_BLOCK': 'Block of Iron', 'STONE_SLAB_DOUBLE': 'Stone Slab',+ 'STONE_SLAB': 'Stone Slab', 'SANDSTONE_SLAB': 'Sandstone Slab', 'WOOD_SLAB_OLD': 'Wooden Slab',+ 'COBBLESTONE_SLAB': 'Cobblestone Slab', 'BRICK_SLAB': 'Bricks Slab', 'STONE_BRICK_SLAB': 'Stone Bricks Slab',+ 'BRICKS': 'Bricks', 'TNT': 'TNT', 'BOOKSHELF': 'Bookshelf', 'MOSSY_COBBLESTONE': 'Moss Stone',+ 'OBSIDIAN': 'Obsidian', 'TORCH': 'Torch', 'MOB_SPAWNER': 'Monster Spawner', 'OAK_STAIRS': 'Oak Wood Stairs',+ 'CHEST': 'Chest', 'DIAMOND_ORE': 'Diamond Ore', 'DIAMOND_BLOCK': 'Block of Diamond',+ 'CRAFTING_TABLE': 'Crafting Table', 'FARMLAND': 'Farmland', 'FURNACE': 'Furnace', 'LADDER': 'Ladder',+ 'RAIL': 'Rail', 'COBBLESTONE_STAIRS': 'Cobblestone Stairs', 'REDSTONE_ORE': 'Redstone Ore', 'SNOW_LAYER': 'Snow',+ 'ICE': 'Ice', 'SNOW': 'Snow', 'CACTUS': 'Cactus', 'CLAY': 'Clay', 'FENCE_OAK': 'Oak Fence', 'PUMPKIN': 'Pumpkin',+ 'JACK_O_LANTERN': "Jack o'Lantern", 'STONE_BRICKS': 'Stone Bricks', 'MOSSY_STONE_BRICKS': 'Mossy Stone Bricks',+ 'CRACKED_STONE_BRICKS': 'Cracked Stone Bricks', 'CHISELED_STONE_BRICKS': 'Chiseled Stone Bricks',+ 'BROWN_MUSHROOM_CAP': 'Mushroom', 'RED_MUSHROOM_CAP': 'Mushroom', 'GLASS_PANE': 'Glass Pane', 'MELON': 'Melon',+ 'VINE': 'Vines', 'MYCELIUM': 'Mycelium', 'LILY_PAD': 'Lily Pad', 'EMERALD_ORE': 'Emerald Ore',+ 'EMERALD_BLOCK': 'Block of Emerald', 'COBBLESTONE_WALL': 'Cobblestone Wall', 'HARDENED_CLAY': 'Hardened Clay',+ 'HAY_BALE': 'Hay Bale', 'COAL_BLOCK': 'Block of Coal', 'PACKED_ICE': 'Packed Ice', 'SUNFLOWER_LOWER': 'Sunflower',+ 'LILAC_LOWER': 'Lilac', 'DOUBLE_GRASS_LOWER': 'Double Tallgrass', 'LARGE_FERN_LOWER': 'Large Fern',+ 'ROSE_BUSH_LOWER': 'Rose Bush', 'PEONY_LOWER': 'Peony', 'RED_SANDSTONE': 'Red Sandstone', 'GLOWSTONE': 'Glowstone',+}+for n, t in [('OAK', 'Oak'), ('SPRUCE', 'Spruce'), ('BIRCH', 'Birch'), ('JUNGLE', 'Jungle'), ('ACACIA', 'Acacia'),+ ('DARK_OAK', 'Dark Oak')]:+ LABELS[f'PLANKS_{n}'] = f'{t} Wood Planks'+ LABELS[f'SAPLING_{n}'] = f'{t} Sapling'+ LABELS[f'LOG_{n}'] = f'{t} Wood'+ LABELS[f'LEAVES_{n}'] = f'{t} Leaves'+ LABELS[f'WOOD_SLAB_{n}'] = f'{t} Wood Slab'+COLORS = ['WHITE', 'ORANGE', 'MAGENTA', 'LIGHT_BLUE', 'YELLOW', 'LIME', 'PINK', 'GRAY', 'SILVER', 'CYAN', 'PURPLE',+ 'BLUE', 'BROWN', 'GREEN', 'RED', 'BLACK']+CLAB = ['White', 'Orange', 'Magenta', 'Light Blue', 'Yellow', 'Lime', 'Pink', 'Gray', 'Light Gray', 'Cyan', 'Purple',+ 'Blue', 'Brown', 'Green', 'Red', 'Black']+for c, l in zip(COLORS, CLAB):+ LABELS[f'WOOL_{c}'] = 'Wool' if c == 'WHITE' else f'{l} Wool'+ LABELS[f'STAINED_CLAY_{c}'] = f'{l} Stained Clay'++# block states that stand for another one in the inventory+ITEM_OF = {'GRASS_SNOWED': 'GRASS', 'FURNACE_LIT': 'FURNACE', 'TORCH_E': 'TORCH', 'TORCH_W': 'TORCH',+ 'TORCH_S': 'TORCH', 'TORCH_N': 'TORCH', 'FARMLAND_WET': 'FARMLAND', 'DOOR_OAK_LOWER': 'I:WOODEN_DOOR',+ 'DOOR_OAK_UPPER': 'I:WOODEN_DOOR', 'BED_FOOT': 'I:BED', 'BED_HEAD': 'I:BED', 'SUGAR_CANE': 'I:REEDS',+ 'BROWN_MUSHROOM_INSIDE': 'BROWN_MUSHROOM_CAP', 'BROWN_MUSHROOM_STEM': 'BROWN_MUSHROOM_CAP',+ 'RED_MUSHROOM_INSIDE': 'RED_MUSHROOM_CAP', 'RED_MUSHROOM_STEM': 'RED_MUSHROOM_CAP',+ 'MONSTER_EGG_STONE': 'STONE'}+for v in ['OAK', 'SPRUCE', 'BIRCH', 'JUNGLE', 'ACACIA', 'DARK_OAK']:+ for s in ['_X', '_Z', '_BARK']:+ ITEM_OF[f'LOG_{v}{s}'] = f'LOG_{v}'+for n in ['SUNFLOWER', 'LILAC', 'DOUBLE_GRASS', 'LARGE_FERN', 'ROSE_BUSH', 'PEONY']:+ ITEM_OF[f'{n}_UPPER'] = f'{n}_LOWER'+for st in range(8):+ ITEM_OF[f'WHEAT_{st}'] = 'I:WHEAT_SEEDS'+for st in range(4):+ ITEM_OF[f'CARROTS_{st}'] = 'I:CARROT'+ ITEM_OF[f'POTATOES_{st}'] = 'I:POTATO'+for n in ['WATER', 'LAVA', 'FLOWING_WATER', 'FLOWING_LAVA']:+ ITEM_OF[n] = None+for s in blocks.S:+ if s['name'].startswith(('FLOWING_WATER', 'FLOWING_LAVA')):+ ITEM_OF[s['name']] = None+ITEM_OF['AIR'] = None++BNAMES = [s['name'] for s in blocks.S]+++def resolve(n):+ """an item id from a name: 'I:NAME' or a known item name is an item, else a block state"""+ if n.startswith('I:'):+ return 256 + INAMES.index(n[2:])+ if n in INAMES:+ assert n not in BNAMES, n+ return 256 + INAMES.index(n)+ if n.startswith('G_'):+ return GROUPS[n]+ return BNAMES.index(n)+++def block_item(name):+ """the item a block state counts as (None: none)"""+ if name in ITEM_OF:+ t = ITEM_OF[name]+ return None if t is None else resolve(t)+ return BNAMES.index(name)+++# ingredient groups (Minecraft's "any damage" ingredients)+GROUPS = {'G_PLANKS': 0xF000, 'G_WOOL': 0xF001, 'G_LOG': 0xF002, 'G_SAPLING': 0xF003}+GROUP_OF = {+ 'G_PLANKS': [n for n in BNAMES if n.startswith('PLANKS_')],+ 'G_WOOL': [n for n in BNAMES if n.startswith('WOOL_')],+ 'G_LOG': [n for n in BNAMES if n.startswith('LOG_') and not n.endswith(('_X', '_Z', '_BARK'))],+ 'G_SAPLING': [n for n in BNAMES if n.startswith('SAPLING_')],+}++# --- crafting (CraftingManager and the Recipes* classes), only what NumBlocks has+R = [] # (out, count, rows, keys) shaped; (out, count, None, [ingredients]) shapeless+++def shaped(out, n, rows, keys):+ R.append((out, n, rows, keys))+++def shapeless(out, n, ins):+ R.append((out, n, None, ins))+++TOOL_IN = {'WOODEN': 'G_PLANKS', 'STONE': 'COBBLESTONE', 'IRON': 'IRON_INGOT', 'DIAMOND': 'DIAMOND',+ 'GOLDEN': 'GOLD_INGOT'}+for m, x in TOOL_IN.items():+ shaped(f'{m}_PICKAXE', 1, ['XXX', ' # ', ' # '], {'X': x, '#': 'STICK'})+ shaped(f'{m}_SHOVEL', 1, ['X', '#', '#'], {'X': x, '#': 'STICK'})+ shaped(f'{m}_AXE', 1, ['XX', 'X#', ' #'], {'X': x, '#': 'STICK'})+ shaped(f'{m}_HOE', 1, ['XX', ' #', ' #'], {'X': x, '#': 'STICK'})+ shaped(f'{m}_SWORD', 1, ['X', 'X', '#'], {'X': x, '#': 'STICK'})+shaped('SHEARS', 1, [' #', '# '], {'#': 'IRON_INGOT'})+shaped('BOW', 1, [' #X', '# X', ' #X'], {'X': 'STRING', '#': 'STICK'})+shaped('ARROW', 4, ['X', '#', 'Y'], {'Y': 'FEATHER', 'X': 'FLINT', '#': 'STICK'})+for m, x in [('LEATHER', 'LEATHER'), ('IRON', 'IRON_INGOT'), ('DIAMOND', 'DIAMOND'), ('GOLDEN', 'GOLD_INGOT')]:+ shaped(f'{m}_HELMET', 1, ['XXX', 'X X'], {'X': x})+ shaped(f'{m}_CHESTPLATE', 1, ['X X', 'XXX', 'XXX'], {'X': x})+ shaped(f'{m}_LEGGINGS', 1, ['XXX', 'X X', 'X X'], {'X': x})+ shaped(f'{m}_BOOTS', 1, ['X X', 'X X'], {'X': x})+for blk, it in [('GOLD_BLOCK', 'GOLD_INGOT'), ('IRON_BLOCK', 'IRON_INGOT'), ('DIAMOND_BLOCK', 'DIAMOND'),+ ('EMERALD_BLOCK', 'EMERALD'), ('LAPIS_BLOCK', 'DYE_BLUE'), ('COAL_BLOCK', 'COAL'),+ ('HAY_BALE', 'WHEAT')]:+ shaped(blk, 1, ['###', '###', '###'], {'#': it})+ shaped(it, 9, ['#'], {'#': blk})+shaped('GOLD_INGOT', 1, ['###', '###', '###'], {'#': 'GOLD_NUGGET'})+shaped('GOLD_NUGGET', 9, ['#'], {'#': 'GOLD_INGOT'})+shapeless('MUSHROOM_STEW', 1, ['BROWN_MUSHROOM', 'RED_MUSHROOM', 'BOWL'])+shaped('COOKIE', 8, ['#X#'], {'X': 'DYE_BROWN', '#': 'WHEAT'})+shaped('MELON', 1, ['MMM', 'MMM', 'MMM'], {'M': 'MELON_SLICE'})+shapeless('PUMPKIN_PIE', 1, ['PUMPKIN', 'SUGAR', 'EGG'])+shaped('CHEST', 1, ['###', '# #', '###'], {'#': 'G_PLANKS'})+shaped('FURNACE', 1, ['###', '# #', '###'], {'#': 'COBBLESTONE'})+shaped('CRAFTING_TABLE', 1, ['##', '##'], {'#': 'G_PLANKS'})+shaped('SANDSTONE', 1, ['##', '##'], {'#': 'SAND'})+shaped('RED_SANDSTONE', 1, ['##', '##'], {'#': 'RED_SAND'})+shaped('SANDSTONE_SMOOTH', 4, ['##', '##'], {'#': 'SANDSTONE'})+shaped('SANDSTONE_CHISELED', 1, ['#', '#'], {'#': 'SANDSTONE_SLAB'})+shaped('STONE_BRICKS', 4, ['##', '##'], {'#': 'STONE'})+shaped('CHISELED_STONE_BRICKS', 1, ['#', '#'], {'#': 'STONE_BRICK_SLAB'})+shapeless('MOSSY_STONE_BRICKS', 1, ['STONE_BRICKS', 'VINE'])+shapeless('MOSSY_COBBLESTONE', 1, ['COBBLESTONE', 'VINE'])+shaped('GLASS_PANE', 16, ['###', '###'], {'#': 'GLASS'})+shaped('COARSE_DIRT', 4, ['DG', 'GD'], {'D': 'DIRT', 'G': 'GRAVEL'})+shaped('POLISHED_DIORITE', 4, ['SS', 'SS'], {'S': 'DIORITE'})+shaped('POLISHED_GRANITE', 4, ['SS', 'SS'], {'S': 'GRANITE'})+shaped('POLISHED_ANDESITE', 4, ['SS', 'SS'], {'S': 'ANDESITE'})+shapeless('ANDESITE', 2, ['DIORITE', 'COBBLESTONE'])+for i, (n, lab, t) in enumerate(DYES):+ wool = 'WOOL_' + COLORS[15 - i]+ if wool != 'WOOL_WHITE':+ shapeless(wool, 1, [f'DYE_{n}', 'WOOL_WHITE'])+ shaped('STAINED_CLAY_' + COLORS[15 - i], 8, ['###', '#X#', '###'], {'#': 'HARDENED_CLAY', 'X': f'DYE_{n}'})+shapeless('DYE_YELLOW', 1, ['DANDELION'])+shapeless('DYE_RED', 1, ['POPPY'])+shapeless('DYE_WHITE', 3, ['BONE'])+shapeless('DYE_PINK', 2, ['DYE_RED', 'DYE_WHITE'])+shapeless('DYE_ORANGE', 2, ['DYE_RED', 'DYE_YELLOW'])+shapeless('DYE_LIME', 2, ['DYE_GREEN', 'DYE_WHITE'])+shapeless('DYE_GRAY', 2, ['DYE_BLACK', 'DYE_WHITE'])+shapeless('DYE_SILVER', 2, ['DYE_GRAY', 'DYE_WHITE'])+shapeless('DYE_SILVER', 3, ['DYE_BLACK', 'DYE_WHITE', 'DYE_WHITE'])+shapeless('DYE_LIGHT_BLUE', 2, ['DYE_BLUE', 'DYE_WHITE'])+shapeless('DYE_CYAN', 2, ['DYE_BLUE', 'DYE_GREEN'])+shapeless('DYE_PURPLE', 2, ['DYE_BLUE', 'DYE_RED'])+shapeless('DYE_MAGENTA', 2, ['DYE_PURPLE', 'DYE_PINK'])+shapeless('DYE_MAGENTA', 3, ['DYE_BLUE', 'DYE_RED', 'DYE_PINK'])+shapeless('DYE_MAGENTA', 4, ['DYE_BLUE', 'DYE_RED', 'DYE_RED', 'DYE_WHITE'])+shapeless('DYE_LIGHT_BLUE', 1, ['BLUE_ORCHID'])+shapeless('DYE_MAGENTA', 1, ['ALLIUM'])+shapeless('DYE_SILVER', 1, ['AZURE_BLUET'])+shapeless('DYE_RED', 1, ['RED_TULIP'])+shapeless('DYE_ORANGE', 1, ['ORANGE_TULIP'])+shapeless('DYE_SILVER', 1, ['WHITE_TULIP'])+shapeless('DYE_PINK', 1, ['PINK_TULIP'])+shapeless('DYE_SILVER', 1, ['OXEYE_DAISY'])+shapeless('DYE_YELLOW', 2, ['SUNFLOWER_LOWER'])+shapeless('DYE_MAGENTA', 2, ['LILAC_LOWER'])+shapeless('DYE_RED', 2, ['ROSE_BUSH_LOWER'])+shapeless('DYE_PINK', 2, ['PEONY_LOWER'])+shaped('PAPER', 3, ['###'], {'#': 'REEDS'})+shapeless('BOOK', 1, ['PAPER', 'PAPER', 'PAPER', 'LEATHER'])+shaped('FENCE_OAK', 3, ['W#W', 'W#W'], {'#': 'STICK', 'W': 'PLANKS_OAK'})+shaped('COBBLESTONE_WALL', 6, ['###', '###'], {'#': 'COBBLESTONE'})+shaped('BOOKSHELF', 1, ['###', 'XXX', '###'], {'#': 'G_PLANKS', 'X': 'BOOK'})+shaped('SNOW', 1, ['##', '##'], {'#': 'SNOWBALL'})+shaped('SNOW_LAYER', 6, ['###'], {'#': 'SNOW'})+shaped('CLAY', 1, ['##', '##'], {'#': 'CLAY_BALL'})+shaped('BRICKS', 1, ['##', '##'], {'#': 'BRICK'})+shaped('GLOWSTONE', 1, ['##', '##'], {'#': 'GLOWSTONE_DUST'})+shaped('WOOL_WHITE', 1, ['##', '##'], {'#': 'STRING'})+shaped('TNT', 1, ['X#X', '#X#', 'X#X'], {'X': 'GUNPOWDER', '#': 'SAND'})+shaped('COBBLESTONE_SLAB', 6, ['###'], {'#': 'COBBLESTONE'})+shaped('STONE_SLAB', 6, ['###'], {'#': 'STONE'})+shaped('SANDSTONE_SLAB', 6, ['###'], {'#': 'SANDSTONE'})+shaped('BRICK_SLAB', 6, ['###'], {'#': 'BRICKS'})+shaped('STONE_BRICK_SLAB', 6, ['###'], {'#': 'STONE_BRICKS'})+for n in ['OAK', 'SPRUCE', 'BIRCH', 'JUNGLE', 'ACACIA', 'DARK_OAK']:+ if f'WOOD_SLAB_{n}' in BNAMES:+ shaped(f'WOOD_SLAB_{n}', 6, ['###'], {'#': f'PLANKS_{n}'})+ shaped(f'PLANKS_{n}', 4, ['#'], {'#': f'LOG_{n}'})+shaped('LADDER', 3, ['# #', '###', '# #'], {'#': 'STICK'})+shaped('WOODEN_DOOR', 3, ['##', '##', '##'], {'#': 'PLANKS_OAK'})+shaped('SUGAR', 1, ['#'], {'#': 'REEDS'})+shaped('STICK', 4, ['#', '#'], {'#': 'G_PLANKS'})+shaped('TORCH', 4, ['X', '#'], {'X': 'COAL', '#': 'STICK'})+shaped('TORCH', 4, ['X', '#'], {'X': 'CHARCOAL', '#': 'STICK'})+shaped('BOWL', 4, ['# #', ' # '], {'#': 'G_PLANKS'})+shaped('RAIL', 16, ['X X', 'X#X', 'X X'], {'X': 'IRON_INGOT', '#': 'STICK'})+shaped('JACK_O_LANTERN', 1, ['A', 'B'], {'A': 'PUMPKIN', 'B': 'TORCH'})+shaped('BUCKET', 1, ['# #', ' # '], {'#': 'IRON_INGOT'})+shapeless('FLINT_AND_STEEL', 1, ['IRON_INGOT', 'FLINT'])+shaped('BREAD', 1, ['###'], {'#': 'WHEAT'})+shaped('OAK_STAIRS', 4, ['# ', '## ', '###'], {'#': 'PLANKS_OAK'})+shaped('COBBLESTONE_STAIRS', 4, ['# ', '## ', '###'], {'#': 'COBBLESTONE'})+shaped('GOLDEN_APPLE', 1, ['###', '#X#', '###'], {'#': 'GOLD_INGOT', 'X': 'APPLE'})+shaped('CLOCK', 1, [' # ', '#X#', ' # '], {'#': 'GOLD_INGOT', 'X': 'REDSTONE'})+shaped('COMPASS', 1, [' # ', '#X#', ' # '], {'#': 'IRON_INGOT', 'X': 'REDSTONE'})+shaped('BED', 1, ['###', 'XXX'], {'#': 'G_WOOL', 'X': 'G_PLANKS'})++# --- smelting (RecipesFurnace): input, output+SMELT = [('IRON_ORE', 'IRON_INGOT'), ('GOLD_ORE', 'GOLD_INGOT'), ('DIAMOND_ORE', 'DIAMOND'), ('SAND', 'GLASS'),+ ('RED_SAND', 'GLASS'), ('PORKCHOP', 'COOKED_PORKCHOP'), ('BEEF', 'COOKED_BEEF'),+ ('CHICKEN', 'COOKED_CHICKEN'), ('MUTTON', 'COOKED_MUTTON'), ('COBBLESTONE', 'STONE'),+ ('STONE_BRICKS', 'CRACKED_STONE_BRICKS'), ('CLAY_BALL', 'BRICK'), ('CLAY', 'HARDENED_CLAY'),+ ('CACTUS', 'DYE_GREEN'), ('EMERALD_ORE', 'EMERALD'), ('POTATO', 'BAKED_POTATO'), ('COAL_ORE', 'COAL'),+ ('REDSTONE_ORE', 'REDSTONE'), ('LAPIS_ORE', 'DYE_BLUE'), ('RAW_FISH', 'COOKED_FISH')]+SMELT += [(n, 'CHARCOAL') for n in GROUP_OF['G_LOG']]+++def fuel_of(iid):+ """burn time in ticks (TileEntityFurnace.fuelTime)"""+ if iid >= 256:+ return I[iid - 256]['fuel']+ n = BNAMES[iid]+ if n == 'COAL_BLOCK':+ return 16000+ if n.startswith('WOOD_SLAB'):+ return 150+ if n.startswith('SAPLING_'):+ return 100+ if n.startswith(('PLANKS_', 'LOG_')) or n in ('CRAFTING_TABLE', 'CHEST', 'BOOKSHELF', 'OAK_STAIRS', 'FENCE_OAK',+ 'DOOR_OAK_LOWER', 'BROWN_MUSHROOM_CAP', 'RED_MUSHROOM_CAP'):+ return 300+ return 0+++def header():+ out = ['/* Generated by tools/items.py: the items NumBlocks knows (ids 256 and up; below 256 a block state). */',+ '#ifndef NB_ITEMS_H', '#define NB_ITEMS_H', '#include <stdint.h>', '#include "blocks.h"', '', 'enum {']+ for k, x in enumerate(I):+ out.append(f' I_{x["name"]} = {256 + k},')+ out += [f' I_END = {256 + len(I)}', '};', f'#define N_ITEMS {len(I)}', '']+ out.append('enum { ' + ', '.join(f'IK_{k.upper()}' for k in KINDS) + ' };')+ out.append('enum { ' + ', '.join(f'G_{g[2:]} = 0x{v:X}' for g, v in GROUPS.items()) + ' };')+ out += ['', '#endif', '']+ return '\n'.join(out)+++if __name__ == '__main__':+ if '--header' in sys.argv:+ sys.stdout.write(header())+ else:+ for k, x in enumerate(I):+ print(256 + k, x['name'], x['label'])+ print(len(R), 'recipes')diff --git a/games/numblocks/tools/pack.py b/games/numblocks/tools/pack.pyindex 4e4c4712..01a60d73 100644--- a/games/numblocks/tools/pack.py+++ b/games/numblocks/tools/pack.py@@ -287,6 +287,129 @@ def pack_sprite(im):return bs, pal, alpha+import items # noqa: E402+++def rle_image(im):+ """A picture as runs: each byte is a palette index (high nibble) and a run+ length - 1 (low nibble, 0-14); 15 means 16 + the next byte. Rows start at+ the offsets given. Index 0 is see-through if the picture has see-through+ pixels."""+ idx, pal, alpha = quantize(im, 16)+ if not alpha:+ idx, pal, _ = quantize(im, 15)+ idx = [i + 1 for i in idx]+ pal = [(0, 0, 0)] + pal+ while len(pal) < 16:+ pal.append((0, 0, 0))+ w, h = im.size+ data, rows = [], []+ for y in range(h):+ rows.append(len(data))+ row = idx[y * w:(y + 1) * w]+ x = 0+ while x < w:+ n = 1+ while x + n < w and n < 271 and row[x + n] == row[x]:+ n += 1+ if n < 16:+ data.append(row[x] << 4 | (n - 1))+ else:+ data += [row[x] << 4 | 15, n - 16]+ x += n+ return data, rows, pal+++def leather(jar, part):+ """leather armour: the grey base dyed Minecraft's default leather colour, the overlay on top"""+ base = first_frame(jar.image('items/leather_' + part))+ over = first_frame(jar.image('items/leather_' + part + '_overlay'))+ out = Image.new('RGBA', (16, 16))+ px = []+ for (r, g, b, a), (r2, g2, b2, a2) in zip(pixels(base), pixels(over)):+ if a2 >= 128:+ px.append((r2, g2, b2, a2))+ else:+ px.append((r * 0xA0 // 255, g * 0x65 // 255, b * 0x40 // 255, a))+ out.putdata(px)+ return out+++def item_icon(jar, it):+ t = it['tex']+ for part in ('helmet', 'chestplate', 'leggings', 'boots'):+ if t == 'leather_' + part:+ return leather(jar, part)+ return first_frame(jar.image('items/' + t))+++def steve_front(jar):+ """the player as the inventory shows it, from the front (skin pixels scaled to 27 x 54)"""+ sk = jar.image('entity/steve')+ im = Image.new('RGBA', (16, 32), (0, 0, 0, 0))+ def put(sx, sy, w, h, dx, dy, over=False):+ part = sk.crop((sx, sy, sx + w, sy + h))+ if over:+ im.alpha_composite(part, (dx, dy))+ else:+ im.paste(part, (dx, dy))+ put(8, 8, 8, 8, 4, 0) # head+ put(40, 8, 8, 8, 4, 0, True) # hat+ put(20, 20, 8, 12, 4, 8) # body+ put(44, 20, 4, 12, 0, 8) # right arm (on the left)+ put(36, 52, 4, 12, 12, 8) # left arm+ put(4, 20, 4, 12, 4, 20) # right leg+ put(20, 52, 4, 12, 8, 20) # left leg+ return im.resize((27, 54), Image.NEAREST)+++def font_bits(jar):+ """ascii.png: 8 x 8 glyphs, a byte a row (bit 0 the left column); widths as FontRenderer measures them"""+ f = jar.image('font/ascii')+ bits, widths = [], []+ for c in range(32, 128):+ gx, gy = (c % 16) * 8, (c // 16) * 8+ rows = []+ right = -1+ for y in range(8):+ v = 0+ for x in range(8):+ if f.getpixel((gx + x, gy + y))[3] >= 128:+ v |= 1 << x+ right = max(right, x)+ rows.append(v)+ bits += rows+ widths.append(4 if c == 32 else right + 2)+ return bits, widths+++# big GUI pictures, kept as runs: name, picture+def gui_images(jar):+ inv = jar.image('gui/container/inventory').crop((0, 0, 176, 166))+ craft = jar.image('gui/container/crafting_table').crop((0, 0, 176, 166))+ furn = jar.image('gui/container/furnace').crop((0, 0, 176, 166))+ g54 = jar.image('gui/container/generic_54')+ chest = Image.new('RGBA', (176, 71 + 96))+ chest.paste(g54.crop((0, 0, 176, 71)), (0, 0))+ chest.paste(g54.crop((0, 126, 176, 222)), (0, 71))+ w = jar.image('gui/widgets')+ return [('inventory', inv), ('crafting_table', craft), ('furnace', furn), ('chest', chest),+]+++GUI_SPRITES = [+ ('flame', 'gui/container/furnace', 176, 0, 14, 14),+ ('arrow', 'gui/container/furnace', 176, 14, 24, 17),+ ('armor_full', 'gui/icons', 34, 9, 9, 9),+ ('armor_half', 'gui/icons', 25, 9, 9, 9),+ ('bubble_pop', 'gui/icons', 25, 18, 9, 9),+ ('heart_hit', 'gui/icons', 25, 0, 9, 9),+ ('button', 'gui/widgets', 0, 66, 200, 20),+ ('button_hover', 'gui/widgets', 0, 86, 200, 20),+ ('button_off', 'gui/widgets', 0, 46, 200, 20),+]++def main():jar = Jar(sys.argv[1])names, px, pals, flags = pack_textures(jar)@@ -333,6 +456,17 @@ def main():for st in blocks.S:if st['tex'] is not None:sprites.append(('icon_' + st['name'].lower(), iso_icon(jar, st, None)))+ first_item = len(sprites)+ for it in items.I:+ sprites.append(('item_' + it['name'].lower(), item_icon(jar, it)))+ first_gui = len(sprites)+ sprites += [(n, jar.image(f).crop((x, y, x + w, y + h))) for n, f, x, y, w, h in GUI_SPRITES]+ for part in ('helmet', 'chestplate', 'leggings', 'boots'):+ sprites.append(('slot_' + part, first_frame(jar.image('items/empty_armor_slot_' + part))))+ sprites.append(('steve', steve_front(jar)))+ bg = first_frame(jar.image('gui/options_background'))+ bg.putdata([(r * 0x40 // 255, g * 0x40 // 255, b * 0x40 // 255, 255) for r, g, b, a in pixels(bg)])+ sprites.append(('dirt_bg', bg))data, offs, pals, dims, flags2 = [], [], [], [], []for n, im in sprites:bs, pal, alpha = pack_sprite(im)@@ -342,6 +476,7 @@ def main():dims.append(im.size)flags2.append(1 if alpha else 0)out.append(f'const uint8_t spr_px[{len(data)}] = {{' + ','.join(str(v) for v in data) + '};')+ spr_bytes = len(data)out.append(f'const uint32_t spr_off[{len(sprites)}] = {{' + ','.join(str(v) for v in offs) + '};')out.append(f'const uint8_t spr_w[{len(sprites)}] = {{' + ','.join(str(w) for w, h in dims) + '};')out.append(f'const uint8_t spr_h[{len(sprites)}] = {{' + ','.join(str(h) for w, h in dims) + '};')@@ -359,6 +494,78 @@ def main():else:icon_of.append(0xFFFF)out.append('const uint16_t blk_icon[B_COUNT] = {' + ','.join(str(v) for v in icon_of) + '};')+ # items: the block state a block counts as, then each item's tables+ def bi(n):+ v = items.block_item(n)+ return 0xFFFF if v is None else v+ out.append('const uint16_t blk_item[B_COUNT] = {' + ','.join(str(bi(st['name'])) for st in blocks.S) + '};')+ out.append('const uint16_t blk_fuel[B_COUNT] = {' ++ ','.join(str(items.fuel_of(i)) for i in range(len(blocks.S))) + '};')+ out.append('const char *const blk_label[B_COUNT] = {' ++ ','.join('"' + items.LABELS[st['name']] + '"' if st['name'] in items.LABELS else '0'+ for st in blocks.S) + '};')+ I = items.I+ out.append('const char *const it_label[N_ITEMS] = {' + ','.join('"' + it['label'] + '"' for it in I) + '};')+ out.append('const uint16_t it_icon[N_ITEMS] = {' + ','.join(str(first_item + k) for k in range(len(I))) + '};')+ out.append('const uint8_t it_kind[N_ITEMS] = {' + ','.join(str(items.KINDS.index(it['kind'])) for it in I) + '};')+ out.append('const uint8_t it_stack[N_ITEMS] = {' + ','.join(str(it['stack']) for it in I) + '};')+ out.append('const uint16_t it_dur[N_ITEMS] = {' + ','.join(str(it['dur']) for it in I) + '};')+ out.append('const uint8_t it_tier[N_ITEMS] = {' + ','.join(str(it['tier']) for it in I) + '};')+ out.append('const uint8_t it_a[N_ITEMS] = {' + ','.join(str(it['a']) for it in I) + '};')+ out.append('const uint8_t it_b[N_ITEMS] = {' + ','.join(str(it['b']) for it in I) + '};')+ out.append('const uint8_t it_place[N_ITEMS] = {' ++ ','.join(str(items.BNAMES.index(it['place']) if it['place'] else 255) for it in I) + '};')+ out.append('const uint16_t it_fuel[N_ITEMS] = {' + ','.join(str(it['fuel']) for it in I) + '};')+ # crafting: out, count, width (0: shapeless), height (shapeless: how many), ingredients+ rec = []+ for o, n, rows, keys in items.R:+ if rows:+ w, hh = max(len(r) for r in rows), len(rows)+ ins = []+ for r in rows:+ for c in r.ljust(w):+ ins.append(0 if c == ' ' else items.resolve(keys[c]))+ else:+ w, hh = 0, len(keys)+ ins = [items.resolve(k) for k in keys]+ ins += [0] * (9 - len(ins))+ rec.append('{%d,%d,%d,%d,{%s}}' % (items.resolve(o), n, w, hh, ','.join(str(v) for v in ins)))+ out.append(f'const Recipe recipes[{len(rec)}] = {{' + ','.join(rec) + '};')+ out.append(f'const uint16_t smelting[{len(items.SMELT)}][2] = {{' ++ ','.join('{%d,%d}' % (items.resolve(a), items.resolve(b)) for a, b in items.SMELT) + '};')+ for g, members in items.GROUP_OF.items():+ out.append(f'const uint16_t group_{g[2:].lower()}[] = {{' ++ ','.join(str(items.BNAMES.index(m)) for m in members) + ',0xFFFF};')+ # the font+ fb, fw = font_bits(jar)+ out.append('const uint8_t font_bits[96 * 8] = {' + ','.join(str(v) for v in fb) + '};')+ out.append('const uint8_t font_w[96] = {' + ','.join(str(v) for v in fw) + '};')+ # GUI pictures as runs+ gi = gui_images(jar)+ allrle, offs, pals, sizes, rowoffs = [], [], [], [], []+ for n, im in gi:+ data, rows, pal = rle_image(im)+ offs.append(len(allrle))+ rowoffs.append(len(allrle))+ allrle += data+ pals.append(pal)+ sizes.append((im.size, rows))+ out.append(f'const uint8_t img_rle[{len(allrle)}] = {{' + ','.join(str(v) for v in allrle) + '};')+ rowtab, rowstart = [], []+ for (wh, rows), base in zip(sizes, offs):+ rowstart.append(len(rowtab))+ rowtab += [base + r for r in rows]+ out.append(f'const uint32_t img_rows[{len(rowtab)}] = {{' + ','.join(str(v) for v in rowtab) + '};')+ out.append(f'const uint16_t img_row0[{len(gi)}] = {{' + ','.join(str(v) for v in rowstart) + '};')+ out.append(f'const uint8_t img_w[{len(gi)}] = {{' + ','.join(str(wh[0]) for wh, r in sizes) + '};')+ out.append(f'const uint8_t img_h[{len(gi)}] = {{' + ','.join(str(wh[1]) for wh, r in sizes) + '};')+ out.append(f'const uint16_t img_pal[{len(gi)}][16] = {{')+ for pal in pals:+ out.append(' {' + ','.join(f'0x{rgb565(*c):04X}' for c in pal) + '},')+ out.append('};')+ gui_names = [n for n, im in gi]+ extra = [n for n, *_ in GUI_SPRITES] + ['slot_helmet', 'slot_chestplate', 'slot_leggings', 'slot_boots', 'steve',+ 'dirt_bg']# Minecraft's clouds: 256 x 256, 1 bit a cellcl = jar.image('environment/clouds')bits = bytearray(256 * 256 // 8)@@ -393,9 +600,31 @@ def main():'extern const uint16_t spr_pal[][16];', 'extern const uint16_t blk_icon[B_COUNT]; /* sprite of its icon */']for i, sp in enumerate(SPRITES):h.append(f'#define SP_{sp[0].upper()} {i}')+ for i, n in enumerate(extra):+ h.append(f'#define SP_{n.upper()} {first_gui + i}')+ h += ['', '#include "items.h"',+ 'extern const uint16_t blk_item[B_COUNT]; /* the item a block state counts as (0xFFFF: none) */',+ 'extern const uint16_t blk_fuel[B_COUNT]; /* ticks it burns in a furnace */',+ 'extern const char *const blk_label[B_COUNT], *const it_label[N_ITEMS];',+ 'extern const uint16_t it_icon[N_ITEMS], it_dur[N_ITEMS], it_fuel[N_ITEMS];',+ '/* it_tier: the tool or armour material; it_a: attack damage, armour points or food;'+ ' it_b: saturation x 10 */',+ 'extern const uint8_t it_kind[N_ITEMS], it_stack[N_ITEMS], it_tier[N_ITEMS], it_a[N_ITEMS], it_b[N_ITEMS];',+ 'extern const uint8_t it_place[N_ITEMS]; /* the block it places (255: none) */',+ 'typedef struct { uint16_t out; uint8_t n, w, h; uint16_t in[9]; } Recipe; /* w 0: shapeless, h of them */',+ f'#define N_RECIPES {len(items.R)}', 'extern const Recipe recipes[N_RECIPES];',+ f'#define N_SMELTING {len(items.SMELT)}', 'extern const uint16_t smelting[N_SMELTING][2];']+ for g in items.GROUP_OF:+ h.append(f'extern const uint16_t group_{g[2:].lower()}[]; /* ends with 0xFFFF */')+ h += ['extern const uint8_t font_bits[96 * 8], font_w[96]; /* characters 32-127 */',+ 'extern const uint8_t img_rle[], img_w[], img_h[];', 'extern const uint32_t img_rows[];',+ 'extern const uint16_t img_row0[], img_pal[][16];']+ for i, n in enumerate(gui_names):+ h.append(f'#define IMG_{n.upper()} {i}')h += ['', '#endif', '']open(os.path.join(ROOT, 'src', 'data.h'), 'w').write('\n'.join(h))- print(f'{len(names)} textures, {len(blocks.S)} block states')+ print(f'{len(names)} textures, {len(blocks.S)} block states, {len(items.I)} items, {len(items.R)} recipes, '+ f'{len(sprites)} sprites ({spr_bytes} bytes), GUI runs {len(allrle)} bytes')BF_OPAQUE = 8