diff --git a/.project b/.project
new file mode 100644
index 00000000..d7d73dbd
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+
+
+ Conan - Maps3
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 944c12cd..96485a3e 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,2 @@
-# companion4conan
+# Companion for conan
Companion application for Conan
diff --git a/Robots.txt b/Robots.txt
new file mode 100644
index 00000000..77470cb3
--- /dev/null
+++ b/Robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /
\ No newline at end of file
diff --git a/about/resources/css/about.css b/about/resources/css/about.css
new file mode 100644
index 00000000..62bb7e23
--- /dev/null
+++ b/about/resources/css/about.css
@@ -0,0 +1,87 @@
+.about-fullscreen:before {
+ content: "\f31e";
+ font-family: 'Font Awesome 5 Free';
+}
+.about-custom:before {
+ content: "\f49e";
+ font-family: 'Font Awesome 5 Free';
+}
+.about-preferences:before {
+ content: "\f3e0";
+ font-family: 'Font Awesome 5 Free';
+}
+.about-about:before {
+ content: "\f447";
+ font-family: 'Font Awesome 5 Free';
+}
+
+.about {
+ font-family: 'Moolbor';
+ font-size: 24px;
+}
+
+.about .about-zone-about img {
+ width: 100%;
+}
+
+.about a {
+ color: #c39f76;
+ text-decoration: none;
+}
+.about a:hover {
+ text-decoration: underline;
+}
+
+
+.about-copyright h1 {
+ margin-bottom: 0px;
+ font-size: 36px;
+}
+
+
+.custom fieldset {
+ border-width: 1px 0 0 0;
+}
+.custom fieldset select {
+ width: 100%;
+ border-width: 0 0 1px 0;
+ margin-bottom: 10px;
+ font-family: 'Moolbor';
+ font-size: 20px;
+}
+.custom fieldset legend {
+ font-size: 24px;
+}
+.custom fieldset label {
+ vertical-align: middle;
+ margin-left: 3px;
+}
+
+@media screen and (min-width: 600px) {
+ .custom fieldset {
+ vertical-align: top;
+ width: 48%;
+ float: left;
+ display: inline-block;
+ }
+}
+
+.reload {
+ position: fixed;
+ left: 50%;
+ transform: translateX(-50%);
+ border-top: 4px solid #DC7B00;
+ background-color: #fb8c00;
+ color: #FFFFFF;
+ box-shadow: 0 0 3px;
+ width: 80vW;
+ padding: 30px;
+ font-family: 'Moolbor';
+ font-size: 20px;
+ z-index: 100001;
+
+ transition-property: bottom opacity;
+ transition-duration: 0.5s;
+ transition-timing-function: ease-in-out;
+
+}
\ No newline at end of file
diff --git a/about/resources/img/logo.jpg b/about/resources/img/logo.jpg
new file mode 100644
index 00000000..8a50bc58
Binary files /dev/null and b/about/resources/img/logo.jpg differ
diff --git a/about/resources/js/about.js b/about/resources/js/about.js
new file mode 100644
index 00000000..b65bf183
--- /dev/null
+++ b/about/resources/js/about.js
@@ -0,0 +1,358 @@
+var ConanAbout = {
+ _i18n: {
+ 'fr': {
+ 'name': "Compagnon de Conan",
+ 'title': "Le compagnon de Conan",
+ 'text': "Cette application n'a aucun lien avec l'édteur du jeu Conan : Monolith. Elle a été réalisée par @cochon en s'appuyant sur les cartes statiques de lignes de vue créées par @Roolz et en reprenant l'idée du travail de @Pamplerousse pour les lignes de vues dynamiques.",
+ 'find': "Consultez le forum 'The Overlord'",
+ 'fullscreen': "Plein écran",
+ 'about': "A propos",
+ 'copyright': "Copyright",
+ 'copyright-text': "'Compagnion de Conan' est une application indépendante pour accompagner les joueurs dans le jeu 'Conan'. "
+ + "Cette application a été écrite par @cochon . "
+ + " "
+ + "'Conan' est un jeu de plateau de figurines édité par Monolith . "
+ + "Le logo Conan et les polices de caractères utilisées sont la propriété de Monolith. "
+ + "L'image du 'Compagnion de Conan' a été créée à partir du logo Conan. ",
+ 'preferences': 'Mes préferences',
+ 'preferences_text': "Sélectionnez vos préférences qui seront enregistrées sur votre appareil.",
+ 'preferences_general': "Généralités",
+ 'custom': "Mes extensions",
+ 'custom_text': "Sélectionnez vos extensions qui seront enregistrés sur votre appareil.",
+ 'custom_box': "Boîte de jeu",
+ 'custom_lang': "Français",
+ 'custom_regionalexts': "Extensions régionales",
+ 'custom_otherexts': "Autres extensions",
+ 'custom_artists': "Extensions d'artistes",
+ 'custom_decoration': "Décors",
+ 'custom_books': "Livres",
+ 'custom_reload': "La modification de votre configuration entrainera un redémarage automatique de l'application"
+ },
+ 'en': {
+ 'name': "Companion for Conan",
+ 'title': "The companion for Conan",
+ 'text': "This application has no link with the producer of the game Conan: Monolith. It was realized by @cochon based on the static maps of line of sights created by @Roolz and by taking up again the idea of the work of @Pamplerousse of the dynamic line of sights.",
+ 'find': "Consult the forum 'The Overlord'",
+ 'fullscreen': "Fullscreen",
+ 'about': "About",
+ 'copyright': "Copyright",
+ 'copyright-text': "'Companion for Conan' is an indepedant applciation to help the players in the game 'Conan'. "
+ + "This application was written by @cochon . "
+ + " "
+ + "'Conan' is a board game published by Monolith . "
+ + "The Conan logo and the fonts used are the property of Monolith. "
+ + "The image of 'Companion for Conan' was created by adapting the Conan logo. ",
+ 'preferences': 'My preferences',
+ 'preferences_text': "Select your preferences that will be stored on your device.",
+ 'preferences_general': "Generality",
+ 'custom': "My expansions",
+ 'custom_text': "Select your expansions that will be stored on your device.",
+ 'custom_box': "Game box",
+ 'custom_lang': "English",
+ 'custom_regionalexts': "Regional expansions",
+ 'custom_otherexts': "Other expansions",
+ 'custom_artists': "Artists expansions",
+ 'custom_decoration': "Decorations",
+ 'custom_books': "Books",
+ 'custom_reload': "The modification of your configuration will require an automatic application reload"
+ }
+ },
+
+ _origins: {
+ 'fr': {
+ 'corebox': "Boite de base",
+ 'stretchgoal': "Boite de base étendue \"Barbarian\"",
+ 'king': "Boite de base étendue \"King\"",
+
+ 'nordheim': "Extension Nordheim",
+ 'khitai': "Extension Khitaï",
+ 'stygie': "Extension Stygie",
+
+ 'crossbowmen': "Arbalétriers",
+ 'blackdragons': "Dragons Noirs",
+ 'blackones': "Hommes Noirs",
+ 'kushwitchhunters': "Chasseurs de sorcières Kushites",
+ 'valvan': "Valkyrie Vanir",
+ 'yoy': "Yogah de Yag",
+ 'baalpteor': "Baal-Pteor",
+ 'demonearth': "Démon de la Terre",
+ 'dragon': "Dragon",
+ 'giantwolves': "Loups géants",
+ 'sabretoothtiger': "Tigre à dents de sabre",
+
+ 'xcbox': "Xavier Colette Box",
+ 'bbox': "Brom Box",
+ 'ppbox': "Paolo Parente Box",
+
+ 'campaignbook': "Livre de Campagne",
+ 'setbook': "Livre de Set",
+
+ 'doorpack': "Pack de portes",
+ 'adventurepack': "Pack aventure"
+ },
+ 'en': {
+ 'corebox': "Core box",
+ 'stretchgoal': "\"Barbarian\" expanded core box",
+ 'king': "\"King\" expanded core box",
+
+ 'nordheim': "Nordheim expansion",
+ 'khitai': "Khitaï expansion",
+ 'stygie': "Stygie expansion",
+
+ 'crossbowmen': "Crossbowmen",
+ 'blackdragons': "Black dragons",
+ 'blackones': "Black ones",
+ 'kushwitchhunters': "Kushites witch-hunters",
+ 'valvan': "Valkyrie Vanir",
+ 'yoy': "Yogah of Yag",
+ 'baalpteor': "Baal-Pteor",
+ 'demonearth': "Demon of the earth",
+ 'dragon': "Dragon",
+ 'giantwolves': "Giant wolves",
+ 'sabretoothtiger': "Sabretooth tiger",
+
+ 'xcbox': "Xavier Colette Box",
+ 'bbox': "Brom Box",
+ 'ppbox': "Paolo Parente Box",
+
+ 'campaignbook': "Book campaign",
+ 'setbook': "Livre de Set",
+
+ 'doorpack': "Pack de portes",
+ 'adventurepack': "Pack aventure"
+ }
+ },
+
+ _copyright: "",
+
+ _toggleFullscreen: function() {
+ $("nav.menu input")[0].checked = false;
+
+ var elem = document.documentElement;
+ if (!document.fullscreenElement) {
+ document.documentElement.requestFullscreen();
+ } else {
+ if (document.exitFullscreen) {
+ document.exitFullscreen();
+ }
+ }
+ },
+
+ init: function()
+ {
+ Menu.addMenu(ConanAbout._i18n[Language].fullscreen, "about-fullscreen", "ConanAbout._toggleFullscreen()");
+
+ Menu.addMenu(ConanAbout._i18n[Language].custom, "about-custom", "ConanAbout._custom()", true);
+ Menu.addMenu(ConanAbout._i18n[Language].preferences, "about-preferences", "ConanAbout._preferences()");
+
+ Menu.addMenu(ConanAbout._i18n[Language].about, "about-about", "ConanAbout._about()", true);
+ },
+
+ _about: function()
+ {
+ $("nav.menu input")[0].checked = false;
+
+ Nav.dialog(ConanAbout._i18n[Language].about,
+ "
"
+ + "
"
+ + "
" +
+ "
" +
+ "
" + ConanAbout._i18n[Language].text +
+ "" +
+ " "
+ + "
"
+ + "
"
+ + "
" + ConanAbout._i18n[Language]['copyright-text'] + ConanAbout._copyright + "
"
+ + "
"
+ + "
"
+ );
+ },
+
+ addCopyright: function(title, text)
+ {
+ ConanAbout._copyright += "" + title + " " + text + " ";
+ },
+
+ _preferences: function()
+ {
+ $("nav.menu input")[0].checked = false;
+
+ Nav.dialog(ConanAbout._i18n[Language].custom,
+ ""
+ + "
" + ConanAbout._i18n[Language].preferences_text + "
"
+
+ + "
"
+ + "
" + ConanAbout._i18n[Language].preferences_general + " "
+ + ""
+ + "" + ConanAbout._i18n['fr'].custom_lang + " "
+ + "" + ConanAbout._i18n['en'].custom_lang + " "
+ + " "
+ + " "
+ + ""
+
+ + "
",
+
+ function()
+ {
+ var oldLanguage = Language;
+
+ // Save
+ Language = $(".custom *[name=custom-lang]")[0].value;
+ localStorage.setItem("Language", Language);
+
+ if (oldLanguage != Language)
+ {
+ window.location.reload(true);
+ }
+ }
+ );
+
+ $(".custom *[name=custom-lang]")[0].value = Language;
+
+ var display = false;
+ $(".custom input, .custom select").on('change', function() {
+ if (!display)
+ {
+ $(document.body).append("" + ConanAbout._i18n[Language].custom_reload + "
");
+ window.setTimeout(function() { $(".reload").css("bottom", "30px").css("opacity", "1"); }, 1);
+ window.setTimeout(function() { $(".reload").css("bottom", "-100px").css("opacity", "0"); }, 3000);
+ window.setTimeout(function() { $(".reload").remove(); }, 3500);
+ }
+ display = true;
+ })
+ },
+
+ _custom: function()
+ {
+ $("nav.menu input")[0].checked = false;
+
+ Nav.dialog(ConanAbout._i18n[Language].custom,
+ ""
+ + "
" + ConanAbout._i18n[Language].custom_text + "
"
+
+ + "
"
+
+ + "
",
+
+ function() {
+ var oldExtensions = Extensions;
+
+ // Save
+ Extensions = {};
+ $(".custom *").each(function (i) {
+ var $this = $(this);
+ if ($this.is('select'))
+ {
+ Extensions[this.name] = this.value;
+ }
+ else if ($this.is('input'))
+ {
+ Extensions[this.name] = this.checked ? true : false;
+ }
+ });
+
+ localStorage.setItem("Extensions", JSON.stringify(Extensions));
+
+ function _notEquals(a, b)
+ {
+ for (var i in a)
+ {
+ if (a[i] != (b[i] || false))
+ {
+ return true;
+ }
+ }
+ for (var i in b)
+ {
+ if (b[i] != (a[i] || false))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ if (_notEquals(oldExtensions, Extensions))
+ {
+ window.location.reload(true);
+ }
+ }
+ );
+
+ for (var i in Extensions)
+ {
+ $(".custom *[name=" + i + "]").each(function (i) {
+ var $this = $(this);
+ if ($this.is('select'))
+ {
+ this.value = Extensions[this.name];
+ }
+ else if ($this.is('input'))
+ {
+ this.checked = Extensions[this.name];
+ }
+ });
+ }
+
+ var display = false;
+ $(".custom input, .custom select").on('change', function() {
+ if (!display)
+ {
+ $(document.body).append("" + ConanAbout._i18n[Language].custom_reload + "
");
+ window.setTimeout(function() { $(".reload").css("bottom", "30px").css("opacity", "1"); }, 1);
+ window.setTimeout(function() { $(".reload").css("bottom", "-100px").css("opacity", "0"); }, 3000);
+ window.setTimeout(function() { $(".reload").remove(); }, 3500);
+ }
+ display = true;
+ })
+ }
+}
+
+$(document.head).append("" + ConanAbout._i18n[Language].title + " ");
+
diff --git a/index.html b/index.html
new file mode 100644
index 00000000..0189c675
--- /dev/null
+++ b/index.html
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/maps/data/Abandoned_Fort/board.png b/maps/data/Abandoned_Fort/board.png
new file mode 100644
index 00000000..d5848f77
Binary files /dev/null and b/maps/data/Abandoned_Fort/board.png differ
diff --git a/maps/data/Abandoned_Fort/data.js b/maps/data/Abandoned_Fort/data.js
new file mode 100644
index 00000000..3b93ea08
--- /dev/null
+++ b/maps/data/Abandoned_Fort/data.js
@@ -0,0 +1,287 @@
+Abandoned_Fort = {
+ description: {
+ title: {
+ 'fr': "Fortin abandonne",
+ 'en': "Abandoned fort"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'corebox',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Rempart et tour",
+ 'en': "Parapet and tower"
+ },
+ description: {
+ 'fr': "seules les zones de rempart directement adjacentes aux tours partagent une ligne de vue avec l’intérieur de la tour.",
+ 'en': "only the areas directly adjacent to the towers areas have line of sight on the tower areas"
+ },
+ coordinates: [[15,60], [42,85], [66,85], [85,60], [85,42]]
+ }, {
+ title: {
+ 'fr': "Pièces de la cour",
+ 'en': "Courtyard room"
+ },
+ description: {
+ 'fr': "les pièces dans la cour du fortin n’ont pas de toit. Depuis les remparts, il est possible de voir et de sauter à l’intérieur de ces pièces.",
+ 'en': "The areas inside the fort do not have a roof. A character in a parapet area has line of sight on these areas and may jump into these areas."
+ },
+ coordinates: [[48,65], [68,65]]
+ }, {
+ title: {
+ 'fr': "Bordure",
+ 'en': "Border"
+ },
+ description: {
+ 'fr': "les 9 zones en bordure du plateau de jeu sont adjacentes et il est possible de se déplacer normalement au travers de ces zones pour faire le tour du fortin.",
+ 'en': "the nine areas at the edge of the board are adjacent to one another. A character may move through them normally to go around the abandoned fort."
+ },
+ coordinates: [[1,15], [1,55], [1,99], [50,99], [99,99], [99,50], [99,1], [50,1], [10,1]]
+ }, {
+ title: {
+ 'fr': "Lignes de vue",
+ 'en': "Lines of sight"
+ },
+ description: {
+ 'fr': "depuis les remparts, les figurines ont une ligne de vue sur toutes les zones de la cour.",
+ 'en': "a character in a wall area has line of sight to each ground area within the fortress walls."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Saut/Escalade depuis les remparts",
+ 'en': "Leaping from Walls"
+ },
+ description: {
+ 'fr': "sauter depuis les remparts inflige {dice_red}{dice_red} sans défense possible et {dice_red} si la figurine possède la compétence Saut. Remonter sur les remparts est impossible.",
+ 'en': "a character can move across a parapet from a wall area to a ground area as though it were a border. The character rolls {dice_red}{dice_red} for falling damage. If the character has Leap, the character rolls {dice_red} instead. A character cannot move from a ground area to a wall area."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Éboulis",
+ 'en': "Rock Slide"
+ },
+ description: {
+ 'fr': "entrer dans une zone d’éboulis coûte 2 points de mouvement supplémentaires. Cependant, si la figurine possède la compétence Escalade, il n’y a pas de coût supplémentaire.",
+ 'en': "a character can move into a rock slide area from an adjacent area. The character must spend 2 extra movement points unless the character has Climbing."
+ },
+ coordinates: [[15,30], [25,15], [76,45], [95,60]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/20-core-carte-fortin-en-ruines/",
+ 'en': "https://the-overlord.net/index.php?/topic/26-core-ruined-fort/"
+ },
+ losFile: true
+ },
+ size: [1062, 910],
+ zones: {
+ "1": {
+ 'area': [[0.19, 0], [19.02, 22.97], [20.81, 20.22], [20.62, 18.9], [21.19, 18.9], [20.62, 17.69], [20.43, 16.81], [18.74, 16.26], [18.74, 14.84], [18.36, 13.08], [19.49, 12.64], [20.24, 12.86], [21, 11.65], [20.62, 10.33], [22.13, 9.56], [23.73, 8.9], [26.18, 9.67], [28.63, 8.9], [29.28, 7.91], [32.02, 7.58], [32.02, 0.11]],
+ 'centers': [[12.05, 4.73]],
+ 'links': ["1#2#1", "1#11#1", "1#15#1", "1#16#1", "1#4#1", "1#5#1", "1#10#1", "1#6#1", "1#29#1", "1#14#1", "1#19#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[32.2, 0.22], [32.11, 7.58], [71, 7.36], [74.2, 3.41], [76.93, 1.54], [85.5, 1.32], [85.5, 0.22]],
+ 'centers': [[54.71, 3.74]],
+ 'links': ["1#1#1", "1#7#1", "1#6#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[85.5, 0.22], [85.59, 1.1], [87.76, 1.65], [90.3, 2.53], [92.37, 4.29], [94.54, 6.37], [96.33, 9.01], [97.74, 11.32], [98.4, 14.29], [98.59, 16.7], [100, 16.81], [99.91, 0.11]],
+ 'centers': [[96.99, 3.19]],
+ 'links': [],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[0.47, 1.1], [18.74, 23.19], [16.76, 26.48], [15.91, 27.25], [15.73, 28.46], [14.22, 28.79], [13.18, 29.67], [12.24, 30.99], [12.24, 32.31], [12.52, 33.41], [11.68, 33.41], [12.05, 34.95], [11.58, 35.38], [11.49, 36.7], [10.73, 36.92], [10.17, 36.92], [9.42, 36.37], [8.57, 36.59], [8.38, 40.11], [0.19, 40.11]],
+ 'centers': [[6.87, 20.44]],
+ 'links': ["1#1#1", "1#11#1", "1#15#1", "1#16#1", "1#19#1", "1#32#1", "1#10#1", "1#6#1", "1#13#1", "1#24#1", "1#29#1", "1#14#1", "1#5#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[19.02, 13.74], [19.49, 13.19], [20.43, 13.52], [21.37, 13.52], [20.9, 12.42], [21.66, 12.09], [21.19, 11.1], [21.47, 10.66], [22.13, 11.1], [22.6, 10.55], [23.26, 10], [24.01, 9.45], [24.58, 10.11], [25.61, 10.11], [26.27, 9.89], [27.87, 10.22], [29.38, 9.67], [30.7, 9.89], [29.76, 10.77], [29.66, 11.98], [29.57, 12.86], [29.76, 13.74], [30.7, 13.52], [30.04, 14.07], [30.51, 14.51], [30.04, 14.95], [30.04, 15.82], [30.23, 16.37], [30.13, 17.36], [29.85, 18.57], [29.76, 19.23], [30.6, 19.56], [29.28, 19.89], [28.81, 20.11], [32.11, 22.75], [32.11, 23.52], [32.86, 23.85], [32.86, 24.95], [33.33, 25.38], [27.87, 25.6], [27.68, 24.51], [27.21, 24.18], [26.84, 23.19], [25.61, 23.41], [24.76, 22.42], [24.29, 22.86], [24.01, 20.99], [23.26, 20.99], [22.03, 20.44], [21.28, 20.44], [21.28, 19.12], [22.13, 19.23], [21.75, 17.8], [21.28, 18.24], [21, 17.8], [20.72, 15.82], [19.49, 16.15]],
+ 'centers': [[25.5, 15.88]],
+ 'links': ["1#1#1", "1#4#1", "1#11#1", "1#15#1", "1#21#1", "1#6#1", "1#29#1", "1#28#1", "1#14#1", "1#10#1"],
+ 'level': 1
+ },
+ "6": {
+ 'area': [[31.07, 9.34], [30.79, 10.66], [30.32, 11.76], [29.94, 12.97], [31.17, 13.19], [31.17, 13.85], [31.07, 14.84], [30.23, 15.16], [30.79, 16.04], [30.89, 16.59], [30.89, 17.14], [30.6, 18.13], [30.23, 19.01], [30.79, 19.34], [31.07, 20.11], [29.57, 20.22], [32.67, 22.2], [33.52, 23.96], [33.8, 25.49], [52.92, 25.82], [53.01, 9.23]],
+ 'centers': [[42.85, 17.34]],
+ 'links': ["1#1#1", "1#2#1", "1#4#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#22#1", "1#23#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#5#1", "1#10#1", "1#17#1"],
+ 'level': 2
+ },
+ "7": {
+ 'area': [[53.11, 9.45], [53.11, 25.82], [69.87, 25.71], [67.98, 22.64], [67.98, 15.16], [71.47, 10.22]],
+ 'centers': [[61.15, 17.3]],
+ 'links': ["1#2#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#22#1", "1#23#1", "1#6#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#8#1", "1#9#1", "1#17#1"],
+ 'level': 2
+ },
+ "8": {
+ 'area': [[68.46, 15.38], [72.32, 15.27], [73.92, 10.77], [76.27, 6.92], [79.66, 4.4], [84.37, 4.4], [87.38, 5.71], [91.24, 9.12], [75.61, 27.8], [74.39, 25.93], [72.98, 22.31], [71.47, 21.98], [68.46, 21.54]],
+ 'centers': [[75.14, 18.9]],
+ 'links': ["1#7#1", "1#9#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[75.8, 28.02], [91.43, 10.22], [94.35, 16.04], [95.39, 21.87], [94.54, 25.82], [92.09, 28.24], [90.3, 30.11], [88.51, 31.1], [86.53, 31.87], [82.49, 32.09], [79, 31.32], [76.74, 29.67]],
+ 'centers': [[84.09, 19.89]],
+ 'links': ["1#7#1", "1#13#1", "1#8#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[9.98, 37.36], [10.17, 37.25], [10.26, 38.68], [10.73, 39.01], [10.83, 40.11], [11.58, 40.44], [12.05, 40], [11.39, 39.34], [11.21, 38.46], [11.02, 37.8], [11.21, 37.14], [11.77, 37.03], [12.15, 36.37], [12.05, 35.6], [12.34, 35.05], [12.34, 34.4], [12.24, 33.52], [12.81, 33.41], [12.62, 32.64], [12.81, 32.31], [12.81, 31.98], [12.62, 31.43], [12.81, 30.99], [13.65, 31.21], [13.75, 30.11], [14.69, 29.01], [15.44, 28.79], [15.91, 28.68], [16.67, 27.8], [16.48, 27.14], [17.04, 26.81], [17.42, 28.46], [17.8, 28.57], [19.11, 29.12], [19.96, 29.89], [20.34, 31.32], [19.96, 31.76], [20.24, 32.64], [19.96, 33.63], [20.15, 33.63], [20.62, 34.4], [20.81, 34.95], [20.15, 35.6], [19.77, 35.82], [19.3, 36.26], [19.96, 37.36], [20.53, 38.35], [21.09, 39.34], [21.47, 39.89], [22.41, 40.22], [23.07, 40.77], [23.63, 41.43], [23.45, 42.42], [22.98, 42.64], [22.5, 42.64], [21.56, 42.75], [20.53, 41.54], [19.96, 42.64], [18.64, 42.42], [18.08, 41.65], [17.61, 41.87], [17.33, 42.31], [16.67, 42.64], [16.1, 42.2], [14.97, 41.65], [14.5, 42.09], [13.56, 42.2], [12.71, 41.65], [12.15, 41.43], [11.39, 43.63], [10.36, 43.08]],
+ 'centers': [[16.10, 35.84]],
+ 'links': ["1#1#1", "1#4#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#6#1", "1#13#1", "1#24#1", "1#14#1", "1#5#1", "1#17#1"],
+ 'level': 1
+ },
+ "11": {
+ 'area': [[17.23, 26.37], [21.09, 20.44], [23.16, 21.43], [24.01, 22.97], [24.95, 22.86], [25.33, 23.96], [26.55, 23.96], [27.12, 25.05], [27.21, 26.15], [27.87, 27.47], [35.69, 27.47], [25.24, 45.38], [25.05, 41.1], [24.29, 40.88], [23.73, 40.88], [23.16, 40.22], [22.13, 39.45], [21.56, 39.23], [20.9, 38.13], [20.24, 37.03], [20.72, 34.95], [21, 34.95], [21.09, 34.4], [20.24, 32.86], [20.43, 31.21], [19.77, 29.89], [19.77, 28.68], [18.27, 28.68]],
+ 'centers': [[24.86, 30.33]],
+ 'links': ["1#1#1", "1#4#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#5#1", "1#10#1", "1#17#1"],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[58.19, 27.47], [72.13, 28.02], [74.29, 32.09], [76.84, 33.3], [77.59, 41.98], [76.18, 40.66], [75.05, 40.66], [74.2, 40.55], [72.79, 42.09], [71.85, 42.75], [70.34, 43.41], [69.59, 44.07], [69.11, 45.27], [69.68, 46.7], [70.24, 48.13], [71.47, 48.46], [72.79, 49.78], [62.81, 49.67]],
+ 'centers': [[67.98, 38.35]],
+ 'links': ["1#11#1", "1#15#1", "1#16#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#10#1", "1#17#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[79.57, 50.11], [89.55, 50.11], [90.02, 33.41], [87.38, 33.85], [85.97, 33.85], [85.12, 32.09], [82.39, 32.09], [82.49, 33.52], [79.66, 33.08], [79.47, 44.84], [78.63, 44.51], [78.91, 48.79], [79.19, 48.57]],
+ 'centers': [[84.23, 41.72]],
+ 'links': ["1#4#1", "1#18#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#6#1", "1#7#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#22#1", "1#23#1", "1#14#1", "1#9#1", "1#10#1", "1#17#1"],
+ 'level': 2
+ },
+ "14": {
+ 'area': [[9.6, 54.07], [23.16, 54.18], [23.73, 43.19], [22.41, 43.3], [21.85, 43.3], [20.9, 43.19], [20.62, 42.64], [19.87, 43.3], [19.11, 42.97], [18.55, 43.3], [18.17, 42.53], [17.8, 42.53], [17.61, 43.08], [17.23, 43.19], [15.82, 42.75], [14.97, 42.42], [14.22, 42.53], [13.37, 42.75], [12.62, 42.09], [12.24, 41.87], [11.68, 44.07], [11.21, 44.29], [10.64, 43.96], [9.79, 43.19]],
+ 'centers': [[15.63, 47.69]],
+ 'links': ["1#1#1", "1#4#1", "1#19#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#6#1", "1#7#1", "1#13#1", "1#22#1", "1#23#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#5#1", "1#10#1", "1#17#1"],
+ 'level': 2
+ },
+ "15": {
+ 'area': [[35.88, 27.47], [42.47, 27.58], [41.53, 58.46], [38.32, 61.76], [25.14, 54.29], [25.14, 45.71]],
+ 'centers': [[35.22, 43.74]],
+ 'links': ["1#1#1", "1#4#1", "1#11#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#16#1", "1#12#1", "1#21#1", "1#5#1", "1#10#1", "1#17#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[42.84, 27.36], [41.62, 58.02], [55.65, 58.57], [62.62, 49.89], [57.91, 27.47]],
+ 'centers': [[51.32, 46.04]],
+ 'links': ["1#1#1", "1#4#1", "1#11#1", "1#15#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#12#1", "1#21#1", "1#26#1", "1#23#1", "1#10#1", "1#17#1", "1#27#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[70.15, 44.29], [70.15, 43.74], [71.09, 43.63], [72.13, 43.41], [72.5, 42.86], [73.45, 42.64], [73.63, 41.54], [74.58, 40.88], [75.33, 41.32], [75.99, 41.54], [76.55, 42.75], [77.21, 42.86], [77.4, 42.53], [77.68, 43.96], [77.97, 44.84], [78.34, 45.38], [78.34, 46.15], [78.63, 47.14], [78.63, 48.13], [78.72, 48.57], [78.06, 47.8], [77.68, 48.46], [77.31, 49.01], [76.37, 47.47], [75.8, 47.47], [75.89, 48.13], [75.89, 49.12], [75.8, 49.67], [74.48, 49.23], [73.92, 49.45], [73.07, 48.9], [72.79, 48.79], [72.69, 47.58], [72.03, 47.47], [71.66, 47.03], [71.56, 48.13], [71.19, 48.24], [70.72, 47.14], [70.72, 46.15], [70.72, 45.6], [69.87, 45.93], [69.68, 45.6], [69.96, 44.73]],
+ 'centers': [[74.96, 45.6]],
+ 'links': ["1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#20#1", "1#14#1", "1#10#1", "1#28#1", "1#29#1"],
+ 'level': 1
+ },
+ "18": {
+ 'area': [[98.96, 17.14], [100, 17.14], [99.91, 83.63], [99.53, 83.85], [98.96, 80.44], [97.83, 76.04], [96.61, 72.97], [95.1, 70.55], [94.82, 70.11], [93.22, 68.46], [93.5, 67.47], [94.26, 66.59], [94.73, 64.51], [94.92, 62.64], [94.44, 61.87], [94.07, 60.44], [92.94, 59.23], [92.47, 58.02], [92.09, 56.81], [92.28, 31.87], [95.39, 29.34], [97.08, 26.7], [98.59, 22.09]],
+ 'centers': [[95.67, 47.03]],
+ 'links': ["1#25#1", "1#13#1", "1#24#1"],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[0.28, 40.44], [8.29, 40.44], [8.1, 69.78], [6.5, 73.41], [5.37, 77.36], [4.99, 81.1], [0, 80.99]],
+ 'centers': [[4.24, 58.24]],
+ 'links': ["1#4#1", "1#32#1", "1#20#1", "1#14#1", "1#1#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[9.51, 54.07], [23.73, 53.74], [24.11, 65.05], [19.3, 63.52], [18.36, 65.49], [12.62, 66.92], [12.24, 65.71], [9.7, 68.35]],
+ 'centers': [[14.84, 58.26]],
+ 'links': ["1#19#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#14#1", "1#22#1", "1#23#1", "1#27#1", "1#17#1"],
+ 'level': 2
+ },
+ "21": {
+ 'area': [[39.27, 62.64], [39.64, 73.85], [31.17, 74.29], [29.1, 72.31], [26.27, 72.86], [22.79, 69.67], [26.93, 69.12], [27.68, 68.13], [25.52, 65.93], [25.24, 54.51]],
+ 'centers': [[31.92, 66.37]],
+ 'links': ["1#11#1", "1#15#1", "1#16#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#28#1", "1#20#1", "1#14#1", "1#5#1", "1#26#1", "1#27#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[42, 63.08], [41.71, 73.96], [59.6, 73.85], [56.31, 61.98], [44.26, 60.33]],
+ 'centers': [[47.18, 68.02]],
+ 'links': ["1#24#1", "1#29#1", "1#28#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[61.11, 52.31], [64.5, 53.08], [66.2, 50.77], [76.74, 52.2], [77.21, 66.81], [72.98, 68.57], [69.96, 71.43], [68.27, 73.63], [63.75, 73.74], [61.02, 66.7], [57.72, 66.81], [57.25, 64.29], [59.7, 64.29], [60.45, 63.63], [59.51, 59.78], [61.49, 56.37], [61.39, 55.93], [58.57, 55.71]],
+ 'centers': [[66.48, 60.55]],
+ 'links': ["1#16#1", "1#24#1", "1#29#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#28#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[79.57, 50.44], [89.36, 50.33], [89.74, 56.48], [88.79, 56.48], [88.23, 65.71], [85.22, 66.04], [84.65, 66.81], [81.73, 67.69], [81.17, 66.92], [79.85, 67.14], [79.38, 67.14]],
+ 'centers': [[83.77, 60.68]],
+ 'links': ["1#4#1", "1#18#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#23#1", "1#22#1", "1#6#1", "1#7#1", "1#13#1", "1#28#1", "1#20#1", "1#14#1", "1#30#1", "1#17#1", "1#25#1", "1#10#1"],
+ 'level': 2
+ },
+ "25": {
+ 'area': [[88.89, 57.58], [89.08, 56.59], [89.55, 56.81], [89.55, 57.47], [91.05, 57.47], [91.15, 57.14], [91.34, 57.14], [92.28, 58.57], [91.9, 59.01], [92.66, 59.67], [93.88, 61.21], [93.03, 61.21], [93.5, 62.31], [94.16, 62.2], [94.54, 62.97], [93.79, 62.97], [93.69, 63.74], [94.35, 64.18], [94.07, 64.51], [93.79, 64.51], [93.5, 65.05], [93.5, 65.6], [94.07, 65.71], [93.88, 66.37], [93.22, 66.26], [93.13, 66.92], [91.9, 66.15], [91.71, 66.7], [90.77, 66.04], [90.49, 66.81], [89.64, 66.37], [88.7, 65.49]],
+ 'centers': [[91.35, 62.46]],
+ 'links': ["1#18#1", "1#24#1"],
+ 'level': 1
+ },
+ "26": {
+ 'area': [[8.76, 73.41], [13.37, 80.11], [16.76, 83.19], [19.49, 83.41], [25.8, 91.65], [22.5, 94.29], [14.03, 92.86], [11.77, 89.78], [8.66, 84.95], [7.91, 80], [8.29, 76.81]],
+ 'centers': [[11.49, 85.82]],
+ 'links': ["1#27#1", "1#16#1", "1#21#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[10.55, 72.09], [11.49, 70.55], [10.73, 69.01], [12.81, 67.03], [17.8, 65.71], [19.87, 67.8], [22.41, 69.78], [26.65, 73.85], [27.59, 78.02], [28.34, 84.51], [26.55, 89.01], [19.21, 81.54], [16.76, 82.64], [13.75, 80.11], [16.01, 79.12]],
+ 'centers': [[18.36, 78.9]],
+ 'links': ["1#16#1", "1#21#1", "1#28#1", "1#20#1", "1#26#1"],
+ 'level': 0
+ },
+ "28": {
+ 'area': [[51.88, 75.6], [51.69, 91.21], [31.17, 89.56], [32.2, 85.27], [31.64, 84.95], [28.44, 84.18], [27.87, 78.9], [31.36, 78.79], [32.3, 78.35], [31.92, 75.6]],
+ 'centers': [[39.55, 82.15]],
+ 'links': ["1#33#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#22#1", "1#6#1", "1#7#1", "1#13#1", "1#24#1", "1#29#1", "1#14#1", "1#27#1", "1#5#1", "1#17#1", "1#23#1"],
+ 'level': 2
+ },
+ "29": {
+ 'area': [[52.07, 75.71], [52.07, 91.54], [70.62, 90.66], [68.64, 86.26], [68.83, 81.21], [68.36, 80.77], [69.68, 76.37]],
+ 'centers': [[61.8, 83.2]],
+ 'links': ["1#1#1", "1#33#1", "1#11#1", "1#15#1", "1#16#1", "1#12#1", "1#21#1", "1#23#1", "1#22#1", "1#4#1", "1#6#1", "1#7#1", "1#13#1", "1#28#1", "1#20#1", "1#14#1", "1#30#1", "1#5#1", "1#17#1"],
+ 'level': 2
+ },
+ "30": {
+ 'area': [[74.76, 90.44], [90.58, 71.54], [87.38, 68.46], [84.46, 67.47], [81.36, 67.91], [77.68, 70.44], [73.82, 70], [72.98, 69.23], [70.43, 71.43], [75.05, 72.09], [74.67, 75.49], [74.11, 77.36], [72.88, 81.54], [71.56, 81.43], [69.4, 81.21], [68.83, 85.38], [70.24, 85.49], [70.43, 84.51], [71.75, 84.29]],
+ 'centers': [[79.76, 82.09]],
+ 'links': ["1#24#1", "1#29#1", "1#31#1"],
+ 'level': 0
+ },
+ "31": {
+ 'area': [[80.32, 83.96], [82.58, 80.77], [83.8, 81.65], [86.44, 81.76], [92.47, 74.73], [94.07, 77.8], [94.63, 80.77], [95.57, 83.96], [94.73, 88.02], [92.84, 90.55], [91.81, 93.41], [89.55, 95.38], [86.06, 97.03], [82.86, 96.59], [79.19, 95.16], [77.59, 94.07], [83.43, 85.38], [82.2, 84.84], [82.49, 84.4]],
+ 'centers': [[88.04, 87.58]],
+ 'links': ["1#30#1"],
+ 'level': 0
+ },
+ "32": {
+ 'area': [[0, 81.21], [4.99, 81.32], [5.37, 84.18], [6.03, 87.69], [7.63, 90.44], [9.23, 92.64], [10.83, 94.4], [13.56, 95.93], [16.76, 97.25], [18.64, 97.25], [18.55, 99.78], [0.38, 99.89]],
+ 'centers': [[2.45, 97.8]],
+ 'links': ["1#4#1", "1#19#1", "1#33#1"],
+ 'level': 0
+ },
+ "33": {
+ 'area': [[18.64, 97.58], [18.64, 99.89], [85.5, 99.78], [85.5, 99.23], [79.19, 98.35], [76.37, 96.37], [74.67, 94.29], [28.15, 93.52], [25.52, 95.71], [22.79, 97.03]],
+ 'centers': [[51.79, 97.69]],
+ 'links': ["1#32#1", "1#29#1", "1#28#1"],
+ 'level': 0
+ },
+ "34": {
+ 'area': [[99.25, 83.74], [100, 83.85], [99.91, 99.78], [85.69, 99.89], [85.69, 99.34], [89.08, 98.24], [92.09, 97.36], [94.92, 94.73], [97.65, 89.67]],
+ 'centers': [[97.18, 96.59]],
+ 'links': [],
+ 'level': 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Abandoned_Fort/los.jpg b/maps/data/Abandoned_Fort/los.jpg
new file mode 100644
index 00000000..e0aa4208
Binary files /dev/null and b/maps/data/Abandoned_Fort/los.jpg differ
diff --git a/maps/data/Abandoned_Fort/thumb.png b/maps/data/Abandoned_Fort/thumb.png
new file mode 100644
index 00000000..8c14e564
Binary files /dev/null and b/maps/data/Abandoned_Fort/thumb.png differ
diff --git a/maps/data/Citadel/board.png b/maps/data/Citadel/board.png
new file mode 100644
index 00000000..38bb0241
Binary files /dev/null and b/maps/data/Citadel/board.png differ
diff --git a/maps/data/Citadel/data.js b/maps/data/Citadel/data.js
new file mode 100644
index 00000000..f603d8e9
--- /dev/null
+++ b/maps/data/Citadel/data.js
@@ -0,0 +1,239 @@
+Citadel = {
+ description: {
+ title: {
+ 'fr': "Citadelle",
+ 'en': "Citadel"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'stretchgoal',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Saut/Escalade depuis le balcon",
+ 'en': "Leaping From/Climbing a Balcony"
+ },
+ description: {
+ 'fr': "sauter depuis le balcon inflige {dice_yellow}{dice_yellow} sans défense possible, {dice_yellow} si la figurine possède la compétence Saut. Remonter sur le balcon coûte 1 point de mouvement supplémentaire pour un personnage ayant la compétence Escalade.",
+ 'en': "a character can move across a railing from a balcony area to a ground floor area as though it were a border. The character rolls {dice_yellow}{dice_yellow} for falling damage. If the character has Leap, the character rolls {dice_yellow} instead. A character with Climb can move across a railing from a ground floor area to a balcony area by spending 1 extra movement point."
+ },
+ coordinates: [[ 60, 62 ]]
+ }, {
+ title: {
+ 'fr': "Fosse",
+ 'en': "Pit"
+ },
+ description: {
+ 'fr': "y entrer est un mouvement normal, en sortir coûte 1 point de mouvement supplémentaire.",
+ 'en': "a character must spend 1 extra movement point to move out of the pit area"
+ },
+ coordinates: [[ 47, 64 ]]
+ }, {
+ title: {
+ 'fr': "Grilles",
+ 'en': "Cellar windows"
+ },
+ description: {
+ 'fr': "les grilles ne bloquent pas les lignes de vue.",
+ 'en': "The cellar windows do not block line of sight."
+ },
+ coordinates: [[ 60, 14 ], [ 72, 48 ], [ 72, 73 ]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/22-sg-carte-forteresse/",
+ 'en': "https://the-overlord.net/index.php?/topic/31-sg-citadel/"
+ },
+ losFile: true
+ },
+ size: [1065, 912],
+ zones: {
+ "1": {
+ 'area': [[11.36, 37.28], [0, 37.06], [0, 0], [11.55, 0.11]],
+ 'centers': [[5.7, 18.25]],
+ 'links': ["1#13#1", "1#19#1"],
+ 'level': 1
+ },
+ "2": {
+ 'area': [[16.06, 21.38], [32.58, 21.38], [32.58, 17.65], [32.86, 10.86], [32.49, 4.82], [19.44, 4.5], [18.5, 5.48], [16.06, 7.13]],
+ 'centers': [[24.15, 13.85]],
+ 'links': ["1#14#1", "1#5#1", "1#7#1", "1#3#1"],
+ 'level': 1
+ },
+ "3": {
+ 'area': [[32.96, 11.07], [34.18, 10.96], [34.65, 9.98], [34.74, 4.71], [56.24, 4.5], [56.34, 25.88], [34.55, 26.1], [34.37, 17.54], [32.96, 17.54]],
+ 'centers': [[45.40, 13.85]],
+ 'links': ["1#5#1", "1#2#1"],
+ 'level': 1
+ },
+ "5": {
+ 'area': [[62.63, 27.41], [73.05, 27.3], [73.05, 22.37], [71.55, 8.55], [70.89, 8.55], [70.42, 4.71], [59.91, 4.61], [59.72, 13.38], [60.09, 25.99]],
+ 'centers': [[65.7, 16.4]],
+ 'links': ["1#30#1", "1#24#1", "1#16#1", "1#10#1", "1#6#1", "1#2#1", "1#3#1"],
+ 'level': 3
+ },
+ "6": {
+ 'area': [[71.92, 8.33], [73.15, 6.69], [73.24, 4.5], [94.93, 4.06], [94.65, 24.89], [85.73, 24.89], [85.45, 22.26], [81.13, 22.48], [80.38, 23.79], [78.03, 23.57], [77.75, 22.04], [73.33, 22.04]],
+ 'centers': [[84.3, 6.69]],
+ 'links': ["1#12#1", "1#5#1", "1#18#1", "1#11#1"],
+ 'level': 3
+ },
+ "7": {
+ 'area': [[32.58, 21.49], [32.77, 38.93], [27.04, 38.71], [26.85, 39.47], [23.19, 39.47], [23.38, 38.93], [17.46, 38.93], [15.96, 36.4], [16.06, 21.38]],
+ 'centers': [[24.1, 30.75]],
+ 'links': ["1#14#1", "1#9#1", "1#10#1", "1#8#1", "1#2#1"],
+ 'level': 1
+ },
+ "8": {
+ 'area': [[49.77, 28.62], [49.67, 38.6], [32.96, 38.93], [32.96, 28.4]],
+ 'centers': [[41.65, 33.7]],
+ 'links': ["1#15#1", "1#21#1", "1#23#1", "1#9#1", "1#29#1", "1#10#1", "1#7#1"],
+ 'level': 1
+ },
+ "9": {
+ 'area': [[49.95, 28.4], [57.65, 28.29], [57.84, 39.36], [49.95, 38.71]],
+ 'centers': [[53.75, 33.7]],
+ 'links': ["1#8#1", "1#7#1", "1#10#1"],
+ 'level': 2
+ },
+ "10": {
+ 'area': [[64.04, 41.12], [73.05, 40.9], [72.86, 27.63], [62.63, 27.41], [62.35, 27.85], [58.12, 28.29], [58.03, 39.14], [60.66, 38.93]],
+ 'centers': [[65.8, 33.99]],
+ 'links': ["1#9#1", "1#30#1", "1#24#1", "1#16#1", "1#5#1", "1#8#1", "1#7#1"],
+ 'level': 3
+ },
+ "11": {
+ 'area': [[74.65, 23.79], [77.75, 24.12], [80.19, 24.01], [80.38, 24.45], [83, 24.78], [83.38, 35.09], [74.93, 35.2]],
+ 'centers': [[77.35, 28.95]],
+ 'links': ["1#6#1"],
+ 'level': 3
+ },
+ "12": {
+ 'area': [[85.73, 25.11], [94.65, 25.33], [93.71, 33.88], [85.82, 33.77]],
+ 'centers': [[90.55, 29.3]],
+ 'links': ["1#18#1", "1#6#1", "1#26#1", "1#32#1"],
+ 'level': 2
+ },
+ "13": {
+ 'area': [[0.09, 37.39], [11.46, 37.39], [11.46, 42.54], [13.43, 42.43], [13.43, 41.34], [15.49, 41.56], [15.59, 60.31], [11.55, 60.53], [11.55, 62.94], [7.89, 62.94], [6.48, 64.25], [6.38, 65.24], [0, 65.24]],
+ 'centers': [[2.8, 51.6]],
+ 'links': ["1#1#1", "1#14#1", "1#15#1", "1#19#1", "1#23#1"],
+ 'level': 1
+ },
+ "14": {
+ 'area': [[15.68, 41.56], [23.57, 41.78], [23.38, 39.47], [26.76, 39.47], [27.23, 41.45], [30.52, 41.89], [30.52, 61.84], [15.96, 61.84], [15.77, 60.42]],
+ 'centers': [[26.05, 51.7]],
+ 'links': ["1#13#1", "1#15#1", "1#7#1", "1#2#1", "1#29#1", "1#23#1", "1#21#1"],
+ 'level': 1
+ },
+ "15": {
+ 'area': [[30.7, 62.06], [30.7, 42], [36.62, 41.78], [50.14, 41.78], [57.56, 41.78], [57.84, 62.39], [50.52, 62.17], [50.42, 53.18], [42.82, 53.07], [42.82, 62.28]],
+ 'centers': [[42.05, 51.7]],
+ 'links': ["1#13#1", "1#14#1", "1#22#1", "1#23#1", "1#21#1", "1#8#1", "1#29#1"],
+ 'level': 1
+ },
+ "16": {
+ 'area': [[63.85, 41.12], [73.05, 41.23], [73.05, 59.32], [63.94, 59.32], [63.66, 58], [62.82, 57.57], [61.31, 57.57], [61.5, 52.08], [63.57, 51.97], [63.57, 49.78], [62.54, 49.12], [61.6, 49.23], [61.41, 44.19], [62.25, 44.41], [63.47, 44.52], [63.85, 44.52]],
+ 'centers': [[67.2, 47.4]],
+ 'links': ["1#30#1", "1#24#1", "1#10#1", "1#5#1", "1#17#1", "1#18#1"],
+ 'level': 3
+ },
+ "17": {
+ 'area': [[75.21, 38.16], [82.25, 37.94], [82.44, 45.39], [82.44, 50], [82.54, 57.89], [75.21, 57.89]],
+ 'centers': [[79.2, 48.3]],
+ 'links': ["1#16#1", "1#18#1"],
+ 'level': 1
+ },
+ "18": {
+ 'area': [[85.82, 34.1], [93.62, 34.1], [93.52, 57.46], [90.23, 57.89], [87.42, 58], [85.54, 57.89], [85.54, 50], [82.72, 49.67], [82.54, 45.72], [85.35, 45.5]],
+ 'centers': [[90.3, 48.3]],
+ 'links': ["1#12#1", "1#16#1", "1#6#1", "1#17#1", "1#32#1", "1#26#1"],
+ 'level': 1
+ },
+ "19": {
+ 'area': [[0.09, 65.46], [6.29, 65.35], [6.48, 99.89], [0.19, 99.89]],
+ 'centers': [[2.7, 83.05]],
+ 'links': ["1#1#1", "1#13#1"],
+ 'level': 1
+ },
+ "20": {
+ 'area': [[10.52, 65.35], [30.89, 65.35], [30.7, 80.59], [10.52, 80.37]],
+ 'centers': [[19.25, 74.5]],
+ 'links': ["1#21#1", "1#28#1", "1#27#1", "1#23#1"],
+ 'level': 1
+ },
+ "21": {
+ 'area': [[31.08, 62.5], [42.91, 62.39], [42.91, 73.03], [50.52, 73.14], [50.61, 62.5], [57.56, 62.61], [57.75, 82.35], [32.77, 82.13], [32.49, 74.12], [31.92, 73.36], [30.89, 73.36], [30.89, 69.52], [31.46, 69.96], [32.3, 70.07], [32.77, 64.25]],
+ 'centers': [[41.3, 71.85]],
+ 'links': ["1#14#1", "1#15#1", "1#22#1", "1#23#1", "1#20#1", "1#8#1", "1#29#1"],
+ 'level': 1
+ },
+ "22": {
+ 'area': [[43.1, 53.29], [50.42, 53.4], [50.42, 72.92], [43.1, 73.03]],
+ 'centers': [[46.7, 63.2]],
+ 'links': ["1#15#1", "1#21#1", "1#23#1", "1#29#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[57.84, 42], [61.22, 42], [61.31, 82.46], [57.84, 82.46]],
+ 'centers': [[59.5, 61.8]],
+ 'links': ["1#13#1", "1#14#1", "1#15#1", "1#20#1", "1#21#1", "1#22#1", "1#29#1", "1#8#1"],
+ 'level': 3
+ },
+ "24": {
+ 'area': [[63.94, 59.65], [72.96, 59.65], [72.96, 69.74], [73.05, 74.56], [73.05, 83.44], [63.76, 83.33], [63.66, 81.25], [61.69, 79.39], [61.41, 76.64], [62.16, 76.86], [63.47, 76.64], [63.57, 74.34], [62.63, 73.68], [61.6, 73.79], [61.6, 68.64], [62.16, 68.86], [63.47, 68.75], [63.66, 66.23], [62.63, 65.46], [61.5, 65.46], [61.41, 60.64], [62.25, 60.75], [63.57, 60.64]],
+ 'centers': [[67.65, 71.4]],
+ 'links': ["1#30#1", "1#16#1", "1#10#1", "1#5#1", "1#25#1", "1#26#1"],
+ 'level': 3
+ },
+ "25": {
+ 'area': [[74.93, 60.86], [82.63, 60.53], [82.44, 69.19], [82.63, 81.03], [75.21, 81.69]],
+ 'centers': [[79.2, 71.50]],
+ 'links': ["1#24#1", "1#26#1"],
+ 'level': 1
+ },
+ "26": {
+ 'area': [[85.63, 83.22], [93.62, 83.33], [94.08, 59.76], [92.11, 60.09], [90.42, 58.33], [87.42, 58.11], [89.58, 59.21], [89.67, 59.76], [85.35, 59.98], [85.35, 69.74], [82.63, 69.19], [82.44, 73.25], [85.16, 73.57], [85.26, 73.79]],
+ 'centers': [[89.9, 71.85]],
+ 'links': ["1#12#1", "1#24#1", "1#25#1", "1#32#1", "1#18#1"],
+ 'level': 1
+ },
+ "27": {
+ 'area': [[10.7, 80.81], [30.7, 80.92], [30.7, 85.42], [32.02, 85.42], [32.02, 94.19], [13.33, 94.3], [10.7, 92]],
+ 'centers': [[19.2, 90.05]],
+ 'links': ["1#28#1", "1#29#1", "1#20#1"],
+ 'level': 1
+ },
+ "28": {
+ 'area': [[32.11, 85.42], [38.5, 85.2], [38.69, 94.96], [32.11, 94.19]],
+ 'centers': [[35.15, 90.05]],
+ 'links': ["1#27#1", "1#29#1", "1#20#1"],
+ 'level': 2
+ },
+ "29": {
+ 'area': [[38.78, 85.31], [61.78, 85.64], [61.88, 95.94], [38.59, 95.07]],
+ 'centers': [[50.2, 90.05]],
+ 'links': ["1#14#1", "1#15#1", "1#21#1", "1#22#1", "1#23#1", "1#28#1", "1#30#1", "1#27#1", "1#8#1"],
+ 'level': 3
+ },
+ "30": {
+ 'area': [[62.07, 85.53], [63.85, 85.53], [63.85, 83.55], [72.86, 83.44], [72.86, 83.88], [75.31, 83.88], [75.21, 95.07], [61.97, 96.05]],
+ 'centers': [[68.5, 90.05]],
+ 'links': ["1#31#1", "1#29#1", "1#24#1", "1#16#1", "1#10#1", "1#5#1", "1#32#1"],
+ 'level': 3
+ },
+ "31": {
+ 'area': [[75.4, 84.1], [84.88, 83.99], [84.98, 93.97], [75.59, 94.96]],
+ 'centers': [[80.45, 89.95]],
+ 'links': ["1#32#1", "1#30#1"],
+ 'level': 2
+ },
+ "32": {
+ 'area': [[85.63, 83.44], [93.71, 83.44], [93.52, 95.61], [86.95, 95.61], [85.26, 93.97], [85.07, 84.1], [85.45, 83.88]],
+ 'centers': [[90, 90.05]],
+ 'links': ["1#31#1", "1#12#1", "1#30#1", "1#18#1", "1#26#1"],
+ 'level': 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Citadel/los.jpg b/maps/data/Citadel/los.jpg
new file mode 100644
index 00000000..becca6fc
Binary files /dev/null and b/maps/data/Citadel/los.jpg differ
diff --git a/maps/data/Citadel/thumb.png b/maps/data/Citadel/thumb.png
new file mode 100644
index 00000000..9fdf7a3b
Binary files /dev/null and b/maps/data/Citadel/thumb.png differ
diff --git a/maps/data/Forest/board.png b/maps/data/Forest/board.png
new file mode 100644
index 00000000..7bd8eac4
Binary files /dev/null and b/maps/data/Forest/board.png differ
diff --git a/maps/data/Forest/data.js b/maps/data/Forest/data.js
new file mode 100644
index 00000000..536652bc
--- /dev/null
+++ b/maps/data/Forest/data.js
@@ -0,0 +1,196 @@
+Forest = {
+ description: {
+ title: {
+ 'fr': "Foret",
+ 'en': "Forest"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'nordheim',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Forêt impénétrable",
+ 'en': "Impenetrable Forest"
+ },
+ description: {
+ 'fr': "les zones de forêt bloquent les lignes de vue. On peut tirer à partir d'une telle zone mais pas tirer dans cette zone ni au travers. Y entrer coûte 1 point de mouvement supplémentaire. En sortir ne coûte pas de point de mouvement supplémentaire.",
+ 'en': "these 3 Forest zones block Line of Sight. A character can aim from but not shoot inside or through these areas. Entering the area costs an additional movement point. Leaving the area does not cost any extra movement points."
+ },
+ coordinates: [[31,62], [57,21], [76,60]]
+ }, {
+ title: {
+ 'fr': "Eperon rocheux",
+ 'en': "Rocky Outcrop"
+ },
+ description: {
+ 'fr': "les zones de rochers bloquent les lignes de vue et octroient un bonus de surplomb. Y grimper coûte 1 point de mouvement supplémentaire. En descendre ne coûte pas de point de mouvement supplémentaire.",
+ 'en': "the 2 Rocky Outcrop areas block Line of Sight and grant the Elevation Bonus. Climb costs 1 additional movement point. Climbing down does not cost any extra movement point."
+ },
+ coordinates: [[19,12], [39,10]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/808-nordheim-carte-for%C3%AAt/",
+ 'en': "https://the-overlord.net/index.php?/topic/32-nordheim-forest/"
+ },
+ losFile: true
+ },
+ size: [1062, 910],
+ zones: {
+ "1": {
+ 'area': [[0.19, 0], [23.45, 0], [22.13, 0.33], [19.87, 0.66], [19.02, 1.32], [18.27, 1.43], [16.85, 1.76], [15.73, 2.2], [14.78, 2.53], [14.12, 3.41], [13.28, 4.29], [12.24, 4.95], [11.77, 5.82], [10.92, 6.81], [10.45, 7.69], [10.26, 8.68], [10.08, 9.89], [10.17, 11.1], [10.36, 12.2], [10.55, 13.96], [11.02, 15.27], [11.21, 16.26], [11.49, 17.8], [11.68, 19.34], [12.05, 20.88], [12.62, 22.2], [13.65, 23.85], [14.88, 25.16], [16.29, 26.04], [17.89, 26.48], [19.96, 26.37], [19.96, 33.41], [0.19, 34.4]],
+ 'centers': [[4.99, 15.93]],
+ 'links': ["1#11#1", "1#12#1", "1#17#1", "1#22#1", "1#2#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[28.44, 3.85], [28.44, 5.93], [28.91, 6.92], [29.66, 8.02], [30.13, 8.9], [29.85, 9.78], [28.81, 11.54], [28.63, 11.87], [28.72, 15.16], [28.44, 17.8], [27.78, 20.44], [26.93, 22.42], [25.99, 23.96], [24.95, 25.05], [24.2, 25.6], [23.07, 26.04], [20.34, 26.26], [18.17, 26.26], [17.23, 26.04], [16.29, 25.6], [15.44, 25.27], [14.88, 24.73], [14.22, 24.18], [13.47, 23.19], [12.9, 22.2], [12.43, 21.21], [12.05, 20.22], [11.77, 18.57], [11.39, 16.37], [10.92, 14.51], [10.55, 12.86], [10.26, 10.99], [10.26, 10], [10.55, 8.13], [11.3, 6.48], [12.05, 5.71], [13.28, 4.51], [14.31, 3.63], [14.97, 3.08], [15.82, 2.42], [16.85, 2.09], [18.17, 1.76], [19.11, 1.32], [20.53, 0.77], [21.94, 0.44], [24.2, 0.33], [25.52, 0.22], [26.37, 0.55], [27.5, 1.32], [28.25, 2.53]],
+ 'centers': [[19.87, 19.23]],
+ 'links': ["1#1#1", "1#3#1", "1#6#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#17#1", "1#19#1", "1#24#1", "1#7#1"],
+ 'level': 1
+ },
+ "3": {
+ 'area': [[25.61, 0], [63.84, 0.11], [65.07, 2.53], [65.73, 4.51], [66.38, 6.15], [67.61, 8.02], [59.04, 11.54], [57.34, 10.66], [56.5, 10.33], [55.56, 10.33], [54.71, 10.88], [54.05, 11.98], [53.67, 12.97], [53.2, 13.85], [52.64, 14.29], [52.17, 14.73], [45.57, 9.56], [45.1, 6.37], [45.1, 4.62], [45.01, 3.3], [45.01, 2.75], [43.88, 2.09], [42.84, 1.87], [42.09, 2.31], [41.62, 2.86], [41.24, 3.41], [40.02, 3.52], [39.27, 3.19], [38.61, 2.97], [38.23, 2.97], [37.19, 3.96], [36.16, 5.05], [35.59, 6.48], [35.5, 7.58], [35.31, 8.79], [34.75, 11.87], [28.91, 11.98], [29.28, 10.88], [29.66, 10], [30.04, 8.79], [29.94, 8.02], [29.19, 7.03], [28.53, 6.04], [28.44, 4.4], [28.44, 3.08], [27.97, 1.87], [27.31, 1.32], [26.65, 0.55]],
+ 'centers': [[32.3, 5.71], [54.52, 4.84]],
+ 'links': ["1#6#1", "2#9#1", "2#10#1", "1#13#1", "2#16#1", "1#2#1", "1#7#1", "2#4#1", "2#5#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[64.03, 0.11], [71.37, 0.11], [72.32, 0.55], [72.88, 1.54], [73.73, 3.3], [74.67, 5.38], [75.52, 6.59], [76.65, 7.47], [77.31, 8.02], [78.44, 8.79], [79.19, 10.44], [80.13, 11.54], [81.07, 12.75], [81.92, 13.74], [83.33, 14.07], [84.65, 14.73], [85.59, 15.82], [86.72, 16.92], [87.85, 18.68], [89.36, 19.56], [91.05, 20.11], [91.9, 20.44], [92.56, 21.54], [93.13, 22.64], [93.69, 23.74], [94.54, 24.84], [96.05, 25.93], [97.74, 27.03], [98.96, 27.58], [100, 27.8], [100, 38.9], [97.93, 38.35], [95.57, 37.47], [94.16, 36.7], [93.13, 36.04], [92.18, 35.16], [91.62, 34.95], [90.21, 32.86], [89.64, 32.42], [88.32, 30.44], [86.63, 28.79], [85.69, 27.03], [85.31, 26.37], [84.75, 25.49], [83.52, 24.95], [82.49, 24.18], [81.07, 22.86], [79.76, 21.87], [78.53, 20.55], [76.93, 19.45], [75.42, 18.13], [74.01, 17.14], [73.26, 16.15], [72.03, 14.84], [71.09, 13.3], [69.68, 11.32], [68.17, 8.9], [67.33, 7.8], [66.01, 4.95], [64.31, 0.88]],
+ 'centers': [[81.07, 17.69]],
+ 'links': ["1#3#2", "1#9#1", "1#10#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#21#1", "1#5#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[71.66, 0], [99.91, 0], [100, 27.47], [98.96, 27.25], [98.02, 26.92], [96.99, 26.37], [95.39, 25.27], [94.35, 24.51], [93.88, 24.07], [93.03, 22.2], [92.47, 20.88], [91.71, 20.44], [90.77, 20], [88.51, 19.23], [87.76, 18.24], [86.72, 17.03], [85.5, 15.49], [84.84, 14.4], [83.8, 13.96], [81.83, 13.41], [81.26, 12.97], [80.41, 11.87], [79.66, 10.99], [78.91, 9.78], [78.25, 8.57], [77.68, 8.13], [77.02, 7.8], [76.37, 6.81], [75.99, 6.81], [75.14, 5.71], [74.01, 3.74], [73.07, 2.09], [72.22, 1.21]],
+ 'centers': [[92.18, 8.9]],
+ 'links': ["1#3#2", "1#9#1", "1#10#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#21#1", "1#25#1", "1#7#1", "1#4#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[28.91, 12.09], [34.75, 12.09], [34.46, 13.96], [34.18, 15.38], [34.09, 16.92], [34.37, 18.35], [34.65, 19.67], [35.22, 19.89], [35.4, 20.55], [35.88, 21.43], [36.53, 22.42], [37.19, 23.08], [38.04, 23.41], [39.55, 23.3], [41.24, 23.3], [42.09, 22.86], [43.03, 21.87], [43.41, 20.66], [44.16, 19.67], [44.63, 19.01], [45.67, 18.02], [46.33, 16.81], [46.42, 15.16], [46.23, 13.52], [45.76, 9.78], [52.07, 15.05], [51.32, 15.71], [50.38, 16.26], [49.72, 16.92], [49.06, 17.69], [48.31, 18.57], [48.02, 19.78], [47.93, 21.32], [48.12, 22.31], [48.59, 23.19], [48.68, 24.07], [48.31, 24.84], [47.65, 25.93], [47.55, 27.03], [47.46, 28.46], [47.46, 29.89], [47.74, 31.21], [48.21, 31.76], [20.15, 33.08], [20.24, 26.48], [22.03, 26.26], [23.73, 25.82], [24.76, 25.27], [25.8, 24.51], [26.55, 23.08], [27.4, 21.32], [28.06, 19.12], [28.44, 17.36], [28.81, 15.16]],
+ 'centers': [[34.84, 26.48]],
+ 'links': ["1#3#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#24#1", "1#2#1", "1#7#1"],
+ 'level': 0
+ },
+ "7": {
+ 'area': [[34.93, 11.87], [35.59, 7.36], [36.06, 5.71], [36.72, 4.84], [37.66, 3.74], [38.42, 3.3], [39.45, 3.52], [40.68, 3.52], [41.15, 3.3], [42, 2.42], [42.75, 2.09], [43.5, 2.09], [44.92, 2.64], [45.2, 3.52], [45.2, 5.16], [45.2, 6.15], [45.29, 7.8], [45.95, 13.52], [46.23, 16.26], [46.05, 17.25], [45.39, 17.91], [44.73, 18.57], [44.44, 19.12], [42.47, 21.87], [41.81, 22.64], [40.21, 23.08], [39.27, 22.97], [38.32, 22.97], [37.48, 22.86], [36.91, 22.2], [36.44, 21.87], [35.78, 21.1], [35.4, 20], [35.03, 19.78], [34.75, 19.67], [34.27, 17.58], [34.27, 16.04], [34.56, 14.4]],
+ 'centers': [[40.58, 9.23]],
+ 'links': ["1#3#1", "1#6#1", "1#11#1", "1#12#1", "1#13#1", "1#19#1", "1#2#1", "1#5#1"],
+ 'level': 1
+ },
+ "8": {
+ 'area': [[52.92, 14.29], [53.39, 13.41], [53.77, 12.2], [54.43, 10.99], [55.27, 10.55], [56.4, 10.44], [57.53, 10.77], [58.38, 11.32], [59.32, 12.31], [59.98, 12.75], [60.55, 13.74], [60.92, 14.51], [61.02, 15.49], [61.11, 16.04], [61.39, 16.26], [62.05, 16.15], [62.43, 16.59], [62.34, 17.36], [62.81, 17.91], [63.75, 18.02], [64.31, 18.13], [64.69, 18.57], [65.25, 19.45], [65.63, 20.33], [65.73, 21.76], [65.35, 22.86], [64.88, 23.3], [64.31, 23.96], [64.12, 24.4], [64.12, 25.38], [64.22, 26.15], [64.22, 26.92], [63.94, 28.24], [63.37, 28.79], [62.62, 29.45], [61.68, 29.56], [61.11, 29.67], [61.02, 30.33], [60.55, 30.99], [59.98, 31.65], [59.13, 31.87], [58.29, 31.87], [57.63, 31.87], [56.78, 31.21], [56.21, 30.99], [55.37, 30.66], [55.18, 30.55], [54.61, 30.77], [54.05, 31.1], [53.48, 31.76], [52.73, 32.09], [51.79, 32.64], [50, 32.64], [48.78, 32.31], [47.83, 31.32], [47.46, 29.89], [47.46, 28.35], [47.55, 26.81], [48.02, 25.71], [48.31, 24.84], [48.68, 24.73], [48.68, 24.07], [48.68, 23.19], [48.31, 22.42], [48.02, 21.76], [48.02, 20.33], [48.12, 19.01], [48.78, 18.13], [49.91, 17.03]],
+ 'centers': [[56.31, 21.98]],
+ 'links': ["1#3#2", "1#6#1", "1#9#1", "1#10#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#23#1", "1#7#1", "1#4#1", "1#5#1"],
+ 'level': 0,
+ 'onewaylinks': true
+ },
+ "9": {
+ 'area': [[59.13, 11.76], [67.7, 8.46], [69.02, 10.22], [70.15, 12.31], [71, 13.3], [72.03, 14.95], [72.88, 16.26], [74.2, 17.47], [76.27, 19.01], [80.04, 39.67], [60.55, 31.65], [60.64, 30.66], [61.02, 30], [61.58, 29.67], [62.34, 29.45], [63.09, 29.01], [63.75, 28.46], [63.94, 27.36], [64.03, 25.27], [64.22, 24.4], [64.6, 23.41], [65.25, 22.31], [65.73, 21.1], [65.73, 19.89], [65.35, 18.79], [64.88, 18.35], [64.22, 18.02], [63.65, 18.02], [62.81, 17.91], [62.52, 17.8], [62.24, 16.48], [61.86, 15.93], [61.39, 15.93], [61.21, 16.15], [60.92, 15.16], [60.64, 13.63], [59.98, 12.75], [59.51, 12.42]],
+ 'centers': [[69.77, 22.64]],
+ 'links': ["1#3#2", "1#10#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#23#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[76.55, 19.12], [77.59, 20.22], [79.1, 21.43], [80.89, 23.08], [82.11, 24.29], [83.8, 25.27], [84.84, 25.82], [85.59, 26.81], [87.66, 29.89], [88.89, 31.32], [89.83, 33.08], [90.68, 34.18], [92.28, 35.6], [94.26, 36.92], [95.29, 37.47], [96.89, 38.02], [100, 39.01], [100, 53.85], [86.63, 42.31], [80.32, 39.67]],
+ 'centers': [[88.23, 37.8]],
+ 'links': ["1#3#2", "1#9#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#21#1", "1#25#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "11": {
+ 'area': [[0.09, 34.51], [8.19, 34.07], [18.46, 48.02], [17.89, 49.01], [17.33, 49.67], [16.67, 50.55], [16.29, 51.76], [16.01, 52.97], [15.91, 54.4], [0.09, 54.62]],
+ 'centers': [[7.72, 45.49]],
+ 'links': ["1#1#1", "1#6#1", "1#10#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#17#1", "1#22#1", "1#2#1", "1#7#1"],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[8.57, 33.96], [28.53, 32.97], [25.61, 47.03], [24.95, 47.47], [23.92, 47.14], [22.6, 46.7], [21.75, 46.48], [20.72, 46.59], [19.96, 46.92], [19.21, 47.36], [18.55, 47.91]],
+ 'centers': [[20.15, 39.78]],
+ 'links': ["1#1#1", "1#6#1", "1#10#1", "1#11#1", "1#13#1", "1#14#1", "1#15#1", "1#17#1", "1#19#1", "1#2#1", "1#7#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[28.81, 33.08], [41.62, 32.53], [46.05, 46.92], [36.53, 49.45], [35.59, 49.56], [35.03, 49.56], [34.18, 49.78], [33.99, 50.22], [33.33, 50.33], [32.77, 50.33], [32.2, 49.67], [31.64, 49.34], [31.36, 49.01], [30.23, 48.9], [29.38, 48.9], [28.72, 48.79], [28.06, 48.57], [27.4, 47.69], [26.74, 47.36], [25.8, 47.36]],
+ 'centers': [[34.84, 40.88]],
+ 'links': ["1#3#1", "1#6#1", "1#10#1", "1#11#1", "1#12#1", "1#14#1", "1#15#1", "1#19#1", "1#24#1", "1#2#1", "1#7#1"],
+ 'level': 0
+ },
+ "14": {
+ 'area': [[41.81, 32.31], [48.31, 32.09], [49.25, 32.64], [50.09, 32.86], [51.41, 32.86], [52.64, 32.2], [53.58, 31.87], [54.05, 31.1], [55.08, 30.55], [55.93, 30.99], [56.97, 31.54], [57.91, 31.98], [58.66, 32.2], [59.7, 31.98], [60.17, 31.76], [65.82, 34.07], [59.7, 48.79], [46.33, 46.92]],
+ 'centers': [[57.16, 40]],
+ 'links': ["1#6#1", "1#9#1", "1#10#1", "1#11#1", "1#12#1", "1#13#1", "1#15#1", "1#16#1", "1#19#1", "1#23#1", "1#2#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "15": {
+ 'area': [[66.01, 34.18], [86.35, 42.53], [84.56, 52.31], [83.43, 51.43], [82.58, 50.99], [81.83, 50.55], [80.98, 50.44], [80.32, 50.55], [79.85, 50.55], [79.57, 51.1], [79.1, 51.54], [78.81, 51.76], [78.44, 52.2], [77.87, 52.2], [77.4, 52.31], [76.46, 52.31], [75.89, 51.1], [75.33, 50.44], [74.67, 50.44], [73.92, 50.44], [73.54, 50.99], [73.35, 51.87], [73.35, 52.75], [73.16, 53.63], [72.79, 54.07], [72.22, 54.4], [71.66, 54.07], [70.72, 53.74], [69.21, 53.74], [68.46, 53.96], [59.89, 49.01]],
+ 'centers': [[73.26, 45.49]],
+ 'links': ["1#6#1", "1#9#1", "1#10#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#16#1", "1#19#1", "1#2#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[86.63, 42.75], [99.91, 54.18], [100, 63.19], [85.4, 62.86], [86.35, 60.33], [86.72, 58.79], [86.82, 57.14], [86.82, 56.15], [86.53, 54.73], [86.25, 54.29], [85.69, 53.52], [84.84, 52.42]],
+ 'centers': [[95.01, 55.49]],
+ 'links': ["1#3#2", "1#6#1", "1#9#1", "1#10#1", "1#14#1", "1#15#1", "1#24#1", "1#21#1", "1#25#1", "1#2#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[0.19, 54.84], [15.91, 54.51], [15.73, 55.16], [15.07, 56.15], [14.5, 56.92], [14.22, 58.02], [13.94, 58.57], [13.84, 60], [14.12, 61.43], [14.69, 63.19], [14.97, 63.85], [14.31, 64.62], [14.03, 66.15], [13.94, 67.25], [13.94, 68.57], [14.78, 70.88], [15.91, 72.53], [17.04, 72.97], [18.36, 72.86], [18.93, 73.3], [19.68, 73.96], [20.72, 75.82], [22.13, 76.7], [0.19, 82.75]],
+ 'centers': [[7.63, 67.47]],
+ 'links': ["1#1#1", "1#11#1", "1#12#1", "1#22#1", "1#2#1"],
+ 'level': 0
+ },
+ "18": {
+ 'area': [[25.61, 47.47], [26.65, 47.47], [27.68, 48.02], [28.63, 48.79], [29.57, 49.12], [30.41, 49.12], [31.64, 49.34], [32.2, 49.67], [32.58, 50.22], [33.43, 50.33], [34.09, 50.11], [34.84, 49.78], [36.06, 49.67], [36.91, 49.89], [37.38, 50.55], [37.66, 51.54], [37.85, 52.64], [38.04, 53.63], [38.7, 54.29], [39.27, 55.05], [39.83, 55.38], [40.3, 55.82], [40.49, 56.59], [40.4, 57.69], [40.3, 58.57], [40.4, 59.45], [40.87, 60.22], [41.53, 60.77], [42.18, 61.32], [43.13, 61.76], [43.97, 62.09], [44.44, 63.3], [44.63, 64.62], [44.63, 65.6], [45.1, 66.7], [45.01, 67.25], [45.39, 68.02], [46.14, 68.79], [46.8, 69.12], [47.27, 69.67], [47.46, 70.44], [47.74, 71.98], [47.74, 72.97], [47.55, 74.29], [46.89, 74.84], [45.76, 74.95], [45.1, 75.27], [44.63, 75.71], [44.44, 76.37], [44.35, 77.14], [44.35, 77.8], [44.26, 79.23], [43.88, 80.11], [43.22, 80.55], [42.66, 80.88], [42, 81.1], [37.38, 83.96], [36.35, 84.51], [35.5, 84.51], [35.03, 84.4], [34.56, 83.96], [33.62, 83.08], [33.05, 81.76], [32.39, 80.77], [31.92, 79.56], [31.07, 78.9], [29.94, 78.13], [28.53, 77.58], [27.02, 77.36], [24.48, 77.03], [22.32, 76.59], [21.37, 76.15], [20.43, 74.84], [19.77, 73.63], [19.02, 73.19], [18.17, 72.86], [17.23, 72.64], [16.48, 72.53], [16.01, 72.2], [15.54, 71.43], [14.22, 68.68], [14.03, 67.14], [14.41, 65.82], [14.97, 63.63], [14.6, 62.42], [14.12, 61.65], [13.84, 59.89], [14.31, 58.02], [15.44, 56.15], [16.1, 55.16], [16.2, 52.97], [16.29, 51.87], [16.76, 50.66], [17.7, 49.67], [18.27, 48.9], [19.02, 47.58], [19.96, 46.81], [21.19, 46.48], [22.88, 46.81]],
+ 'centers': [[30.13, 64.84]],
+ 'links': ["1#1#1", "1#3#1", "1#6#1", "1#9#1", "1#10#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#17#1", "1#19#1", "1#22#1", "1#23#1", "1#24#1", "1#25#1", "1#2#1", "1#7#1", "1#4#1", "1#5#1"],
+ 'level': 0,
+ 'onewaylinks': true
+ },
+ "19": {
+ 'area': [[36.63, 49.89], [46.23, 47.14], [59.6, 49.12], [68.36, 54.18], [67.89, 55.16], [67.51, 55.93], [67.23, 56.37], [67.04, 56.92], [66.76, 57.58], [66.48, 58.13], [66.1, 58.46], [65.44, 58.57], [64.97, 58.57], [64.31, 58.13], [63.65, 57.58], [63.18, 56.92], [62.9, 56.37], [62.34, 55.93], [61.96, 55.82], [61.68, 56.04], [61.21, 56.26], [60.83, 56.81], [60.08, 57.69], [59.79, 58.24], [59.42, 59.34], [58.57, 60.77], [58.57, 62.2], [59.04, 63.52], [59.7, 64.4], [60.17, 64.95], [60.83, 65.71], [61.49, 66.48], [45.39, 67.91], [44.73, 66.81], [44.44, 65.49], [44.44, 64.51], [44.16, 62.97], [43.69, 61.87], [42.56, 61.54], [41.62, 60.99], [40.96, 60.44], [40.4, 59.34], [40.11, 57.91], [40.4, 56.81], [40.4, 55.93], [40.02, 55.38], [39.45, 55.05], [38.61, 54.18], [38.23, 53.96], [37.57, 51.76]],
+ 'centers': [[51.51, 57.58]],
+ 'links': ["1#6#1", "1#9#1", "1#10#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#23#1", "1#24#1", "1#2#1", "1#7#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[72.88, 54.18], [73.26, 53.74], [73.35, 52.42], [73.63, 51.21], [74.11, 50.66], [74.76, 50.66], [75.52, 50.77], [76.27, 51.65], [76.74, 52.42], [77.87, 52.31], [78.72, 52.31], [79.38, 51.43], [80.23, 50.88], [81.26, 50.88], [82.3, 50.77], [83.15, 51.1], [83.9, 51.98], [84.65, 52.75], [85.59, 53.41], [85.97, 54.4], [86.44, 55.16], [86.72, 56.04], [86.91, 57.14], [86.91, 58.68], [86.53, 60.22], [86.16, 61.1], [85.69, 61.98], [84.93, 63.08], [84.37, 63.63], [83.71, 64.18], [83.15, 64.73], [82.67, 65.27], [82.02, 65.38], [81.83, 66.04], [81.54, 67.69], [81.17, 68.35], [80.41, 68.9], [79.38, 69.23], [78.72, 69.45], [77.31, 71.32], [76.46, 71.87], [74.29, 71.76], [73.73, 71.76], [73.16, 71.76], [70.9, 72.97], [69.49, 72.86], [68.64, 72.53], [67.33, 71.87], [66.67, 71.54], [65.63, 71.54], [64.5, 70.77], [63.56, 70], [62.52, 68.9], [61.86, 66.48], [61.21, 65.6], [59.42, 63.52], [58.85, 62.09], [58.95, 60.77], [59.42, 59.67], [60.73, 56.81], [61.58, 56.04], [62.34, 56.26], [62.99, 56.92], [63.56, 57.69], [64.41, 58.35], [65.35, 58.57], [66.29, 58.13], [67.04, 57.58], [67.14, 56.7], [67.61, 56.15], [68.36, 54.62], [69.3, 53.96], [70.81, 53.74], [71.37, 54.07], [71.94, 54.4], [72.69, 54.4]],
+ 'centers': [[73.82, 61.65]],
+ 'links': ["1#6#1", "1#9#1", "1#10#1", "1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#19#1", "1#23#1", "1#24#1", "1#21#1", "1#25#1", "1#2#1", "1#4#1", "1#5#1"],
+ 'level': 0,
+ 'onewaylinks': true
+ },
+ "21": {
+ 'area': [[78.91, 69.78], [79.28, 69.23], [80.51, 68.9], [81.45, 68.24], [81.73, 67.47], [82.11, 65.49], [82.86, 65.16], [84.09, 64.18], [85.12, 63.19], [100, 63.3], [100, 89.12]],
+ 'centers': [[92.09, 71.32]],
+ 'links': ["1#10#1", "1#16#1", "1#22#1", "1#23#1", "1#24#1", "1#25#1", "1#4#1", "1#5#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[0.09, 82.86], [22.13, 76.7], [24.76, 77.25], [26.65, 77.69], [28.44, 77.8], [30.6, 78.68], [31.83, 79.78], [32.2, 80.66], [23.16, 99.89], [0.09, 99.78]],
+ 'centers': [[13.09, 93.96]],
+ 'links': ["1#1#1", "1#11#1", "1#17#1", "1#23#1", "1#24#1", "1#21#1", "1#25#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[23.45, 99.89], [32.2, 80.55], [33.05, 82.42], [33.8, 83.63], [34.65, 84.73], [35.97, 85.05], [37.19, 84.51], [38.79, 83.63], [40.4, 82.53], [41.71, 81.65], [43.03, 81.1], [43.79, 80.33], [44.26, 79.34], [44.44, 78.35], [44.54, 76.37], [45.2, 75.38], [46.33, 75.05], [46.99, 74.84], [47.74, 74.29], [47.74, 72.42], [47.55, 70.22], [47.08, 69.34], [45.67, 68.24], [51.69, 67.58], [62.52, 99.78]],
+ 'centers': [[47.93, 89.01]],
+ 'links': ["1#9#1", "1#14#1", "1#19#1", "1#22#1", "1#24#1", "1#21#1", "1#25#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[52.07, 67.47], [61.58, 66.81], [62.05, 67.91], [62.43, 68.9], [63.09, 70.22], [64.41, 70.77], [65.82, 71.65], [66.95, 71.98], [67.89, 72.09], [68.55, 72.64], [69.49, 72.97], [70.62, 72.97], [71.28, 72.97], [72.5, 72.64], [73.63, 72.2], [74.01, 71.87], [75.05, 72.09], [76.55, 71.87], [77.5, 71.21], [78.63, 70], [85.88, 76.37], [74.11, 99.89], [62.81, 99.78]],
+ 'centers': [[69.49, 83.96]],
+ 'links': ["1#6#1", "1#13#1", "1#16#1", "1#19#1", "1#22#1", "1#23#1", "1#21#1", "1#25#1", "1#2#1"],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[86.06, 76.59], [100, 89.56], [100, 99.78], [74.29, 99.78]],
+ 'centers': [[88.23, 91.65]],
+ 'links': ["1#10#1", "1#16#1", "1#22#1", "1#23#1", "1#24#1", "1#21#1", "1#5#1"],
+ 'level': 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Forest/los.jpg b/maps/data/Forest/los.jpg
new file mode 100644
index 00000000..cf2da718
Binary files /dev/null and b/maps/data/Forest/los.jpg differ
diff --git a/maps/data/Forest/thumb.png b/maps/data/Forest/thumb.png
new file mode 100644
index 00000000..ef850512
Binary files /dev/null and b/maps/data/Forest/thumb.png differ
diff --git a/maps/data/Inn/board.png b/maps/data/Inn/board.png
new file mode 100644
index 00000000..fde5725e
Binary files /dev/null and b/maps/data/Inn/board.png differ
diff --git a/maps/data/Inn/data.js b/maps/data/Inn/data.js
new file mode 100644
index 00000000..8618d2a5
--- /dev/null
+++ b/maps/data/Inn/data.js
@@ -0,0 +1,301 @@
+Inn = {
+ description: {
+ title: {
+ 'fr': "Auberge",
+ 'en': "Inn"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'corebox',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Bar et tables",
+ 'en': "Bar and tables"
+ },
+ description: {
+ 'fr': "cette règle s’applique seulement si le scénario l’indique dans les règles spéciales. Un personnage peut monter sur le bar ou sur une table pour 1 point de mouvement supplémentaire, qu’il ait ou non la compétence Saut ou Escalade. Il gagne la compétence Allonge tant qu’il se trouve sur le bar ou sur une table et bénéficie du bonus de surplomb de {dice_yellow} pour ses attaques au Corps-à-corps et à distance. Le bar et les tables ne bloquent pas la ligne de vue. En descendre n’engendre pas de surcoût de points de mouvement.",
+ 'en': "apply this rule only if specified in the special rules section. A character with or without Leap or Climb may move onto the bar areas or a table area by spending 1 extra movement point. These areas provide an Elevation bonus of {dice_yellow}. A character in the bar’s area or in a table’s area, with or without Reach, may attack a character in an adjacent area with a Melee Attack. These areas do not block line of sight. A character may exit these areas with no movement penalty."
+ },
+ coordinates: [[20,57], [33,61], [33,85]]
+ }, {
+ title: {
+ 'fr': "Tabourets et bancs",
+ 'en': "Bar stools and benches"
+ },
+ description: {
+ 'fr': "cette règle s’applique seulement si le scénario l’indique dans les règles spéciales. Tabourets du bar: ramasser un tabouret est gratuit et doit être réalisé lors de l’action d’attaque au corps-à-corps. Le tabouret est immédiatement utilisé par l’attaquant pour bénéficier du bonus de {dice_yellow}, en plus du bonus d’attaque de son arme s’il en utilise une. Il est ensuite défaussé.",
+ 'en': "apply this rule only if specified in the special rules section. Bar Stools: A character in a chair token’s area may pick it up for free when performing a Melee Attack. The chair token is immediately returned to the box and that character benefits from the chair’s attack bonus as specified in the scenario (in addition to any weapon’s Melee Attack bonus)."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Murs",
+ 'en': "Walls"
+ },
+ description: {
+ 'fr': "tous les murs situés entre deux salles du même étage sont destructibles (par une figurine avec la compétence Défoncer les cloisons) à l’exception des murs d’enceinte de la taverne y compris ceux donnant sur la rue.",
+ 'en': "A character with Wall Wrecker cannot use it to move across an outer wall of the inn or to move between areas of different elevations."
+ },
+ coordinates: [[20,7], [40,7], [60,7], [80,7], [95,14], [95,42], [50,60], [62,51], [62,72]]
+ }, {
+ title: {
+ 'fr': "Saut/Escalade depuis la balustrade",
+ 'en': "Leaping From/Climbing a Balcony"
+ },
+ description: {
+ 'fr': "sauter de la balustrade inflige {dice_orange}{dice_orange} sans défense possible et {dice_orange} si la figurine possède la compétence Saut. Remonter sur la balustrade coûte 2 points de mouvement supplémentaires pour un personnage ayant la compétence Escalade.",
+ 'en': "a character can move across a railing from a balcony area to a ground floor area as though it were a border. The character rolls {dice_orange}{dice_orange} for falling damage. If the character has Leap, the character rolls {dice_orange} instead. A character with Climb can move across a railing from a ground floor area to a balcony area by spending 2 extra movement points."
+ },
+ coordinates: [[31,23]]
+ }, {
+ title: {
+ 'fr': "Saut/Escalade depuis un escalier",
+ 'en': "Leaping From/Climbing a Stairwell"
+ },
+ description: {
+ 'fr': "sauter des escaliers inflige {dice_yellow}{dice_yellow} sans défense possible et {dice_yellow} si la figurine possède la compétence Saut. Remonter sur la zone d’un escalier par la rambarde sur le côté coûte 1 point de mouvement supplémentaire pour un personnage ayant la compétence Escalade. Emprunter l’escalier normalement n’engendre pas de surcoût de points de mouvement.",
+ 'en': "a character can move across a banister from a stair area to a ground floor area as though it were a border. The character rolls {dice_yellow}{dice_yellow} for falling damage. If the character has Leap, the character rolls {dice_yellow} instead. A character with Climb can move across a banister from a ground floor area to a stair area by spending 1 extra movement point."
+ },
+ coordinates: [[11,30], [49,30]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/23-core-carte-taverne/",
+ 'en': "https://the-overlord.net/index.php?/topic/28-core-inn/"
+ },
+ losFile: true
+ },
+ size: [1062, 910],
+ zones: {
+ "1": {
+ 'area': [[3.48, 3.08], [19.68, 3.3], [20.06, 15.38], [15.54, 15.6], [16.38, 17.8], [13.37, 17.8], [11.96, 15.16], [3.67, 15.38]],
+ 'centers': [[10.83, 8.46]],
+ 'links': [],
+ 'level': 3
+ },
+ "2": {
+ 'area': [[21.94, 3.3], [39.74, 2.97], [39.64, 15.16], [28.15, 15.49], [29, 18.13], [25.33, 17.58], [24.86, 15.71], [21.66, 15.6]],
+ 'centers': [[29.85, 8.24]],
+ 'links': [],
+ 'level': 3
+ },
+ "3": {
+ 'area': [[41.62, 3.19], [58.1, 2.97], [58.19, 15.16], [56.59, 15.05], [56.97, 17.25], [52.73, 17.69], [52.17, 14.95], [41.15, 15.27]],
+ 'centers': [[50.19, 8.35]],
+ 'links': [],
+ 'level': 3
+ },
+ "4": {
+ 'area': [[59.6, 3.3], [77.5, 3.19], [77.4, 15.27], [76.84, 15.27], [76.27, 17.69], [72.32, 17.47], [72.6, 15.05], [60.73, 14.84]],
+ 'centers': [[69.3, 8.24]],
+ 'links': [],
+ 'level': 3
+ },
+ "5": {
+ 'area': [[79.66, 3.08], [79.76, 14.95], [80.7, 15.16], [79.76, 17.69], [83.52, 17.36], [84.75, 15.27], [97.27, 14.95], [97.18, 3.19]],
+ 'centers': [[89.27, 8.24]],
+ 'links': [],
+ 'level': 3
+ },
+ "6": {
+ 'area': [[3.67, 18.13], [20.24, 17.91], [20.53, 22.97], [9.98, 23.08], [10.17, 25.27], [3.67, 25.16]],
+ 'centers': [[11.11, 20.33]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#19#1", "1#21#1", "1#11#1", "1#14#1", "1#7#1", "1#8#1", "1#9#1", "1#10#1"],
+ 'level': 3
+ },
+ "7": {
+ 'area': [[20.62, 18.02], [40.21, 18.24], [40.11, 22.86], [20.81, 22.75]],
+ 'centers': [[29.76, 20.55]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#19#1", "1#21#1", "1#29#1", "1#11#1", "1#14#1", "1#6#1", "1#8#1", "1#9#1", "1#10#1"],
+ 'level': 3
+ },
+ "8": {
+ 'area': [[40.49, 18.02], [59.7, 18.13], [59.6, 22.86], [57.91, 22.75], [57.91, 24.84], [51.13, 24.73], [50.94, 22.75], [40.58, 22.75]],
+ 'centers': [[50.38, 20.33]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#19#1", "1#21#1", "1#29#1", "1#11#1", "1#14#1", "1#6#1", "1#7#1", "1#9#1", "1#10#1"],
+ 'level': 3
+ },
+ "9": {
+ 'area': [[59.89, 17.91], [59.89, 22.53], [78.81, 22.75], [79.28, 18.02]],
+ 'centers': [[69.21, 20.44]],
+ 'links': ["1#6#1", "1#7#1", "1#8#1", "1#10#1"],
+ 'level': 3
+ },
+ "10": {
+ 'area': [[79.47, 18.02], [86.06, 17.91], [86.06, 24.95], [80.51, 25.05], [80.51, 22.64], [79, 22.64]],
+ 'centers': [[82.58, 20.77]],
+ 'links': ["1#6#1", "1#7#1", "1#8#1", "1#9#1", "1#38#1", "1#26#1", "1#34#1"],
+ 'level': 3
+ },
+ "11": {
+ 'area': [[3.86, 25.38], [10.17, 25.49], [11.77, 39.89], [5.37, 40.11]],
+ 'centers': [[7.16, 32.31]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#14#1", "1#6#1", "1#7#1", "1#8#1", "1#19#1", "1#21#1"],
+ 'level': 2
+ },
+ "12": {
+ 'area': [[10.92, 25.38], [12.15, 37.36], [30.04, 46.81], [34.09, 25.49]],
+ 'centers': [[22.22, 32.31]],
+ 'links': ["1#17#1", "1#31#1", "1#23#1", "1#13#1", "1#11#1", "1#14#1", "1#20#1", "1#22#1", "1#30#1", "1#21#1", "1#29#1", "1#19#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 1
+ },
+ "13": {
+ 'area': [[28.53, 55.27], [34.93, 55.27], [50.38, 40], [50.19, 25.49], [34.37, 25.38]],
+ 'centers': [[40.3, 37.03]],
+ 'links': ["1#31#1", "1#23#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#20#1", "1#22#1", "1#30#1", "1#21#1", "1#29#1", "1#19#1", "1#6#1", "1#7#1", "1#8#1", "1#17#1"],
+ 'level': 1
+ },
+ "14": {
+ 'area': [[51.13, 25.38], [57.72, 25.38], [57.91, 38.9], [51.41, 39.01]],
+ 'centers': [[54.43, 31.76]],
+ 'links': ["1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#19#1", "1#21#1", "1#29#1", "1#11#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 2
+ },
+ "15": {
+ 'area': [[58.57, 26.48], [77.78, 26.37], [77.78, 39.89], [72.79, 40.11], [72.6, 41.65], [69.68, 41.65], [69.68, 39.89], [58.47, 39.89]],
+ 'centers': [[68.74, 32.09]],
+ 'links': ["1#25#1"],
+ 'level': 1
+ },
+ "16": {
+ 'area': [[88.42, 17.36], [97.27, 18.35], [97.27, 41.1], [88.14, 41.65], [88.23, 30.66], [86.35, 32.09], [86.53, 28.24], [88.23, 25.49]],
+ 'centers': [[93.22, 28.46]],
+ 'links': ["1#38#1"],
+ 'level': 3
+ },
+ "17": {
+ 'area': [[11.96, 37.25], [29.85, 47.03], [28.25, 55.27], [11.49, 55.27], [11.11, 59.56], [4.05, 59.67], [4.14, 40.11], [11.96, 40]],
+ 'centers': [[16.57, 48.57]],
+ 'links': ["1#12#1", "1#31#1", "1#23#1", "1#13#1", "1#11#1", "1#14#1", "1#20#1", "1#22#1", "1#30#1", "1#21#1", "1#19#1", "1#18#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 1
+ },
+ "18": {
+ 'area': [[57.25, 43.52], [56.69, 49.34], [71, 49.56], [71.19, 50.44], [77.97, 50.44], [78.15, 41.87], [58.76, 42.09], [58.38, 42.75]],
+ 'centers': [[68.17, 45.49]],
+ 'links': ["1#17#1"],
+ 'level': 1
+ },
+ "19": {
+ 'area': [[3.95, 60], [11.3, 60], [11.39, 60.77], [18.83, 60.77], [18.74, 65.27], [4.14, 65.27]],
+ 'centers': [[11.3, 62.75]],
+ 'links': ["1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#20#1", "1#22#1", "1#21#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 1
+ },
+ "20": {
+ 'area': [[11.58, 55.27], [25.52, 55.6], [25.42, 60.33], [11.49, 60.55]],
+ 'centers': [[20.34, 57.58]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#22#1", "1#30#1", "1#21#1", "1#19#1", "1#32#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 2
+ },
+ "21": {
+ 'area': [[19.11, 60.66], [30.23, 60.66], [30.6, 72.97], [24.58, 73.3], [24.2, 65.49], [19.21, 65.49]],
+ 'centers': [[26.55, 64.29]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#20#1", "1#22#1", "1#30#1", "1#32#1", "1#19#1", "1#29#1", "1#11#1", "1#14#1", "1#33#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 1
+ },
+ "22": {
+ 'area': [[25.61, 55.49], [34.84, 55.49], [34.75, 75.82], [30.89, 75.82], [30.7, 60.22], [25.71, 60.22]],
+ 'centers': [[32.39, 57.69]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#20#1", "1#30#1", "1#29#1", "1#21#1", "1#19#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 2
+ },
+ "23": {
+ 'area': [[35.22, 55.38], [35.12, 73.3], [49.81, 73.19], [49.81, 49.89], [56.78, 49.78], [57.25, 39.34], [51.04, 39.56]],
+ 'centers': [[42.75, 61.87]],
+ 'links': ["1#31#1", "1#13#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#20#1", "1#22#1", "1#30#1", "1#19#1", "1#21#1", "1#29#1", "1#6#1", "1#7#1", "1#8#1"],
+ 'level': 1
+ },
+ "24": {
+ 'area': [[51.88, 52.75], [68.27, 52.64], [68.64, 71.1], [51.88, 71.1]],
+ 'centers': [[60.36, 61.21]],
+ 'links': [],
+ 'level': 1
+ },
+ "25": {
+ 'area': [[71, 50.55], [78.06, 50.77], [78.06, 73.19], [70.81, 73.19], [70.9, 59.12], [68.64, 58.79], [68.74, 55.38], [70.81, 54.62]],
+ 'centers': [[74.29, 61.43]],
+ 'links': ["1#15#1", "1#33#1"],
+ 'level': 1
+ },
+ "26": {
+ 'area': [[80.13, 42.09], [85.78, 42.2], [86.16, 71.65], [80.13, 71.76]],
+ 'centers': [[82.67, 56.04]],
+ 'links': ["1#10#1", "1#38#1", "1#34#1", "1#27#1"],
+ 'level': 3
+ },
+ "27": {
+ 'area': [[88.42, 42.64], [97.27, 43.3], [97.18, 70.88], [88.61, 70.33], [88.04, 59.23], [86.25, 58.68], [86.35, 54.73], [87.85, 54.73]],
+ 'centers': [[90.68, 56.15]],
+ 'links': ["1#26#1"],
+ 'level': 3
+ },
+ "28": {
+ 'area': [[3.95, 67.03], [22.13, 67.47], [22.32, 77.8], [24.01, 76.59], [24.2, 79.56], [22.03, 81.32], [22.13, 90.11], [4.9, 88.79]],
+ 'centers': [[12.99, 77.91]],
+ 'links': [],
+ 'level': 0
+ },
+ "29": {
+ 'area': [[24.58, 73.52], [30.51, 73.52], [30.32, 89.56], [24.39, 89.34]],
+ 'centers': [[27.4, 83.3]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#22#1", "1#30#1", "1#32#1", "1#21#1", "1#14#1", "1#33#1", "1#7#1", "1#8#1", "1#34#1", "1#7#1"],
+ 'level': 1
+ },
+ "30": {
+ 'area': [[30.79, 76.26], [34.84, 76.15], [34.93, 90.22], [30.98, 90.22]],
+ 'centers': [[32.39, 81.76]],
+ 'links': ["1#31#1", "1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#11#1", "1#14#1", "1#33#1", "1#20#1", "1#22#1", "1#29#1", "1#21#1", "1#32#1", "1#6#1", "1#7#1", "1#8#1", "1#34#1"],
+ 'level': 2
+ },
+ "31": {
+ 'area': [[35.03, 73.52], [50.09, 73.52], [50.19, 88.13], [35.22, 88.46]],
+ 'centers': [[42.47, 80.33]],
+ 'links': ["1#23#1", "1#13#1", "1#12#1", "1#17#1", "1#32#1", "1#11#1", "1#33#1", "1#20#1", "1#22#1", "1#30#1", "1#21#1", "1#29#1", "1#6#1", "1#7#1", "1#8#1", "1#34#1"],
+ 'level': 1
+ },
+ "32": {
+ 'area': [[70.9, 73.63], [77.78, 73.3], [78.06, 80.66], [64.41, 79.45], [64.31, 88.13], [50.66, 87.91], [50.66, 73.85]],
+ 'centers': [[58.85, 80.88]],
+ 'links': ["1#31#1", "1#20#1", "1#30#1", "1#29#1", "1#21#1", "1#34#1", "1#33#1"],
+ 'level': 1
+ },
+ "33": {
+ 'area': [[64.6, 80.33], [77.31, 82.86], [77.5, 90.44], [64.78, 87.47]],
+ 'centers': [[70.81, 84.73]],
+ 'links': ["1#31#1", "1#30#1", "1#25#1", "1#32#1", "1#21#1", "1#29#1", "1#34#1"],
+ 'level': 2
+ },
+ "34": {
+ 'area': [[80.23, 72.09], [85.97, 71.98], [85.78, 90.88], [77.68, 90.33], [77.78, 82.75], [79.94, 83.08]],
+ 'centers': [[82.02, 84.51]],
+ 'links': ["1#31#1", "1#30#1", "1#32#1", "1#29#1", "1#35#1", "1#33#1", "1#10#1", "1#38#1", "1#26#1"],
+ 'level': 3
+ },
+ "35": {
+ 'area': [[88.7, 72.64], [94.44, 72.31], [93.22, 71.1], [97.27, 70.99], [97.36, 91.54], [88.23, 91.87], [88.14, 88.57], [86.16, 86.81], [86.25, 83.41], [88.04, 83.63]],
+ 'centers': [[90.58, 84.51]],
+ 'links': ["1#34#1"],
+ 'level': 3
+ },
+ "36": {
+ 'area': [[0.19, 95.6], [36.72, 95.82], [36.72, 99.78], [0.28, 99.67]],
+ 'centers': [[11.11, 97.8]],
+ 'links': ["1#37#1"],
+ 'level': 1
+ },
+ "37": {
+ 'area': [[36.72, 95.93], [38.7, 95.93], [38.51, 88.79], [47.36, 88.57], [46.99, 96.26], [99.81, 95.82], [99.81, 99.89], [36.82, 99.78]],
+ 'centers': [[67.14, 97.8]],
+ 'links': ["1#36#1"],
+ 'level': 1
+ },
+ "38": {
+ 'area': [[80.23, 25.27], [85.97, 25.27], [85.78, 41.87], [80.32, 41.65]],
+ 'centers': [[82.58, 28.35]],
+ 'links': ["1#10#1", "1#26#1", "1#34#1", "1#16#1"],
+ 'level': 3
+ }
+ }
+}
diff --git a/maps/data/Inn/los.jpg b/maps/data/Inn/los.jpg
new file mode 100644
index 00000000..286fcb60
Binary files /dev/null and b/maps/data/Inn/los.jpg differ
diff --git a/maps/data/Inn/thumb.png b/maps/data/Inn/thumb.png
new file mode 100644
index 00000000..0ee3dea0
Binary files /dev/null and b/maps/data/Inn/thumb.png differ
diff --git a/maps/data/Market/board.png b/maps/data/Market/board.png
new file mode 100644
index 00000000..0f8bc4c9
Binary files /dev/null and b/maps/data/Market/board.png differ
diff --git a/maps/data/Market/data.js b/maps/data/Market/data.js
new file mode 100644
index 00000000..02ecbf05
--- /dev/null
+++ b/maps/data/Market/data.js
@@ -0,0 +1,279 @@
+Market = {
+ description: {
+ title: {
+ 'fr': "Souk",
+ 'en': "Market"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'khitai',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Murs en bois",
+ 'en': "Reinforced Walls"
+ },
+ description: {
+ 'fr': "un personnage disposant de la compétence Défoncer parois ne peut pas défoncer les murs de la caserne au sud, et du fumoir au nord car ils sont renforcés avec des rondins de bois.",
+ 'en': "a character with Wall Wrecker cannot move through the reinforced walls of the barracks (south of the board) and the smoking room (north of the board)."
+ },
+ coordinates: [[57,90], [50,10]]
+ }, {
+ title: {
+ 'fr': "Pirogues",
+ 'en': "Boats"
+ },
+ description: {
+ 'fr': "les zones d'eau avec pirogues sont considérées comme des zones normales pour le mouvement.",
+ 'en': "The areas with boats are considered normal terrain for Movement."
+ },
+ coordinates: [[15,12], [15,40], [15,69]]
+ }, {
+ title: {
+ 'fr': "Natation",
+ 'en': "Swimming"
+ },
+ description: {
+ 'fr': "un personnage disposant de la compétence Natation peut traverser les zones d'eau sans pirogue.",
+ 'en': "a character with Swimming may move through the areas of water next to the cemetery."
+ },
+ coordinates: [[10,90], [81,90], [81,63], [71,44], [66,22], [63,8]]
+ }, {
+ title: {
+ 'fr': "Saut",
+ 'en': "Leap"
+ },
+ description: {
+ 'fr': "un personnage ayant la compétence Saut peut franchir les zones marquées sur le plan. Si un héros échoue dans sa tentative de saut, son mouvement est perdu et il reste sur la zone de départ du saut.",
+ 'en': "A character with Leap may leap over the areas marked with the Leap icon . If a hero fails to leap, the character remains in its area."
+ },
+ coordinates: [[67, 31], [73,52], [84,70]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/804-khitai-carte-march%C3%A9/",
+ 'en': "https://the-overlord.net/index.php?/topic/36-khitai-market/"
+ },
+ losFile: true
+ },
+ size: [1039, 910],
+ zones: {
+ "1": {
+ 'area': [[5.87, 23.41], [0, 23.3], [0.1, 0], [5.87, 0.11]],
+ 'centers': [[1.92, 10.55]],
+ 'links': ["1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#9#1", "1#22#1", "1#15#1", "1#23#1", "1#33#1", "1#31#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[6.16, 0.22], [6.16, 26.81], [21.66, 26.81], [20.69, 0.33]],
+ 'centers': [[13.67, 13.41]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#9#1", "1#22#1", "1#15#1", "1#23#1", "1#31#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[24.16, 1.98], [36.38, 2.86], [36.67, 10.44], [37.92, 10.44], [38.11, 15.16], [36.67, 15.38], [36.67, 24.84], [24.83, 24.84]],
+ 'centers': [[31.38, 19.34]],
+ 'links': ["1#22#1", "1#31#1", "1#15#1", "1#4#1", "1#23#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[38.4, 2.75], [56.88, 2.86], [56.5, 24.18], [38.59, 24.73]],
+ 'centers': [[39.75, 11.54]],
+ 'links': ["1#3#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[59.58, 0.33], [67.37, 0.33], [68.05, 19.45], [59.19, 23.08]],
+ 'centers': [[62.85, 10.22]],
+ 'links': ["1#26#1", "1#17#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[67.85, 0.11], [77.77, 0.11], [81.52, 12.53], [68.53, 18.02]],
+ 'centers': [[73.63, 9.34]],
+ 'links': ["1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#37#1", "1#27#1", "1#18#1", "1#10#2"],
+ 'level': 0
+ },
+ "7": {
+ 'area': [[78.34, 0.11], [84.5, 20.77], [99.9, 9.89], [99.81, 0.11]],
+ 'centers': [[88.64, 8.02]],
+ 'links': ["1#10#2", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "8": {
+ 'area': [[0.1, 23.52], [5.87, 23.63], [5.77, 52.75], [0.19, 52.75]],
+ 'centers': [[1.92, 37.69]],
+ 'links': ["1#1#1", "1#21#1", "1#30#1", "1#2#1", "1#9#1", "1#22#1", "1#15#1", "1#10#1", "1#23#1", "1#33#1", "1#31#1", "1#16#1", "1#13#1", "1#14#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[6.06, 27.25], [21.56, 27.25], [22.43, 56.7], [5.97, 56.59]],
+ 'centers': [[13.67, 41.43]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#22#1", "1#15#1", "1#10#1", "1#23#1", "1#33#1", "1#31#1", "1#16#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[36.09, 27.36], [35.9, 35.05], [56.79, 34.95], [56.79, 27.25]],
+ 'centers': [[37.34, 31.21], [55.15, 31.43]],
+ 'links': ["1#8#1", "1#21#1", "1#30#1", "1#9#1", "1#22#1", "1#15#1", "2#17#1", "2#7#1", "2#13#1", "2#14#1", "2#20#1", "2#29#1", "2#37#1", "2#27#1", "2#18#1", "2#12#1", "2#19#1", "2#28#1", "2#6#1"],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[59.1, 23.63], [68.14, 20], [68.72, 33.85], [63.43, 38.68], [59.19, 26.92]],
+ 'centers': [[65.83, 23.08]],
+ 'links': ["1#10#2", "1#26#1", "1#17#1", "1#5#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#19#1", "1#28#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[68.43, 18.57], [81.71, 12.97], [87.2, 31.43], [73.92, 42.42], [71.9, 37.47], [71.99, 36.59], [70.74, 35.38], [70.36, 34.73], [69.2, 33.63], [69.01, 33.63]],
+ 'centers': [[77.09, 27.8]],
+ 'links': ["1#8#1", "1#10#2", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#7#1", "1#14#1", "1#20#1", "1#29#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "14": {
+ 'area': [[84.6, 21.1], [99.9, 10.44], [99.9, 44.4], [92.78, 49.34]],
+ 'centers': [[93.74, 28.9]],
+ 'links': ["1#8#1", "1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#7#1", "1#13#1", "1#20#1", "1#29#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "15": {
+ 'area': [[22.04, 27.25], [28.1, 27.25], [29.16, 25.49], [32.24, 25.38], [31.57, 27.36], [35.42, 27.36], [35.61, 35.05], [34.65, 35.27], [34.55, 39.89], [36.38, 41.54], [36.48, 45.49], [34.46, 44.51], [33.97, 48.02], [27.24, 48.79], [27.43, 50.11], [22.52, 50.11]],
+ 'centers': [[25.02, 43.19]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#9#1", "1#22#1", "1#31#1", "1#10#1", "1#23#1", "1#3#1", "1#16#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[36.48, 47.69], [41.48, 47.47], [42.35, 64.07], [55.82, 63.19], [55.34, 38.13], [36.77, 38.13]],
+ 'centers': [[47.55, 43.19]],
+ 'links': ["1#8#1", "1#9#1", "1#15#1", "1#25#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[57.07, 27.14], [58.61, 27.14], [63.14, 39.01], [60.25, 41.43], [60.64, 42.64], [61.31, 43.08], [61.89, 43.74], [62.56, 44.84], [63.14, 45.6], [65.16, 43.52], [68.05, 51.1], [57.94, 62.86], [57.75, 35.16], [57.07, 35.05]],
+ 'centers': [[61.02, 36.7]],
+ 'links': ["1#10#2", "1#26#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "18": {
+ 'area': [[60.54, 41.54], [69.1, 33.96], [69.78, 34.73], [70.16, 35.49], [70.36, 35.38], [71.61, 36.81], [63.04, 44.73]],
+ 'centers': [[65.83, 39.34]],
+ 'links': ["1#10#2", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#37#1", "1#27#1"],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[65.26, 43.3], [71.61, 37.58], [77.86, 52.97], [71.22, 57.69]],
+ 'centers': [[71.61, 48.79]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#28#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[74.11, 42.86], [87.2, 31.87], [92.49, 49.67], [81.81, 56.92], [80.85, 56.15], [81.52, 55.27], [80.94, 54.84], [80.46, 53.41], [79.5, 52.2], [78.25, 52.75]],
+ 'centers': [[82.1, 40.22]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#29#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[0.1, 52.97], [5.77, 53.08], [5.68, 73.52], [0.19, 73.41]],
+ 'centers': [[1.83, 62.86]],
+ 'links': ["1#1#1", "1#8#1", "1#30#1", "1#2#1", "1#9#1", "1#22#1", "1#15#1", "1#10#1", "1#23#1", "1#31#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[5.97, 57.14], [22.43, 57.03], [23.1, 77.36], [6.06, 77.69]],
+ 'centers': [[15.21, 66.37]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#9#1", "1#15#1", "1#10#1", "1#23#1", "1#33#1", "1#31#1", "1#3#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[22.71, 50.66], [27.33, 50.66], [29.16, 72.31], [23.29, 72.2]],
+ 'centers': [[24.25, 64.95]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#3#1", "1#9#1", "1#22#1", "1#15#1", "1#33#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[29.26, 50.22], [39.36, 49.34], [40.81, 71.21], [30.99, 71.65]],
+ 'centers': [[31.47, 64.4]],
+ 'links': [],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[42.64, 66.59], [49.37, 66.04], [48.89, 63.96], [52.26, 63.74], [53.03, 65.82], [57.36, 65.27], [67.66, 79.01], [61.98, 79.45], [62.08, 81.54], [57.75, 81.54], [57.56, 79.45], [46.58, 79.56], [43.02, 72.42]],
+ 'centers': [[52.65, 71.54]],
+ 'links': ["1#33#1", "1#26#1", "1#16#1", "1#34#1", "1#14#1", "1#20#1", "1#29#1", "1#19#1", "1#28#1", "1#37#1", "1#27#1"],
+ 'level': 0
+ },
+ "26": {
+ 'area': [[58.13, 63.74], [68.43, 51.65], [70.84, 57.58], [69.59, 58.79], [69.97, 60.33], [70.45, 61.43], [71.03, 61.54], [71.22, 62.97], [74.4, 61.21], [76.52, 65.16], [76.52, 79.12], [68.05, 79.01], [57.94, 65.27]],
+ 'centers': [[65.35, 60.88]],
+ 'links': ["1#33#1", "1#25#1", "1#17#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[79.31, 52.42], [79.88, 52.97], [79.69, 53.52], [80.17, 54.07], [81.04, 55.05], [81.42, 55.38], [81.42, 55.71], [71.61, 62.53], [71.51, 62.2], [71.8, 61.98], [71.13, 60.77], [70.64, 60.88], [70.45, 60.55], [69.97, 59.01]],
+ 'centers': [[75.84, 57.58]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#35#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#37#1", "1#18#1"],
+ 'level': 0
+ },
+ "28": {
+ 'area': [[74.59, 60.77], [80.65, 56.48], [87.78, 63.63], [87.97, 75.27], [82.19, 75.27]],
+ 'centers': [[81.91, 65.05]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#35#1", "1#37#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "29": {
+ 'area': [[82, 57.25], [99.9, 45.27], [99.81, 63.52], [93.46, 63.74], [93.17, 62.86], [92.59, 62.75], [92.49, 63.41], [91.72, 63.3], [91.53, 62.75], [90.38, 62.97], [88.55, 63.08], [87.68, 63.08]],
+ 'centers': [[96.82, 60.88]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#37#1", "1#27#1", "1#18#1", "1#36#1"],
+ 'level': 0
+ },
+ "30": {
+ 'area': [[0.19, 73.74], [5.68, 73.74], [5.68, 99.89], [0.1, 99.89]],
+ 'centers': [[1.73, 79.67]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#2#1", "1#9#1", "1#22#1", "1#15#1", "1#10#1", "1#23#1", "1#31#1"],
+ 'level': 0
+ },
+ "31": {
+ 'area': [[6.06, 78.02], [12.51, 77.91], [12.8, 99.56], [6.16, 99.89]],
+ 'centers': [[8.66, 82.86]],
+ 'links': ["1#1#1", "1#8#1", "1#21#1", "1#30#1", "1#2#1", "1#9#1", "1#22#1", "1#15#1", "1#3#1"],
+ 'level': 0
+ },
+ "32": {
+ 'area': [[14.05, 79.23], [22.43, 79.23], [22.14, 96.37], [14.24, 96.37]],
+ 'centers': [[18.19, 89.34]],
+ 'links': [],
+ 'level': 0
+ },
+ "33": {
+ 'area': [[23.2, 72.64], [29.16, 72.97], [29.16, 73.19], [33.78, 73.3], [34.46, 71.76], [37.54, 71.76], [37.73, 73.08], [42.54, 72.75], [45.91, 79.23], [43.89, 79.89], [43.79, 95.71], [43.79, 99.89], [23.48, 99.89]],
+ 'centers': [[34.74, 86.37]],
+ 'links': ["1#1#1", "1#8#1", "1#9#1", "1#22#1", "1#23#1", "1#25#1", "1#26#1"],
+ 'level': 0
+ },
+ "34": {
+ 'area': [[46.78, 82.64], [74.11, 82.53], [74.4, 97.47], [46.78, 97.58]],
+ 'centers': [[64.39, 88.13]],
+ 'links': ["1#25#1"],
+ 'level': 0
+ },
+ "35": {
+ 'area': [[76.8, 65.38], [76.71, 99.78], [81.42, 99.78], [81.81, 75.6]],
+ 'centers': [[78.92, 80.44]],
+ 'links': ["1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#27#1", "1#18#1"],
+ 'level': 0
+ },
+ "36": {
+ 'area': [[83.83, 77.47], [88.74, 77.36], [88.64, 76.7], [93.26, 76.92], [96.25, 77.69], [96.63, 97.69], [83.93, 97.58]],
+ 'centers': [[86.33, 83.52]],
+ 'links': ["1#29#1", "1#37#1"],
+ 'level': 0
+ },
+ "37": {
+ 'area': [[87.97, 63.41], [88.64, 63.63], [89.51, 63.96], [90.18, 63.96], [90.86, 63.41], [91.24, 63.3], [91.53, 63.63], [92.4, 63.74], [92.78, 63.41], [93.07, 63.41], [93.36, 74.84], [93.17, 76.48], [92.3, 76.48], [91.53, 76.15], [91.15, 76.15], [90.09, 76.15], [89.51, 75.93], [88.84, 76.26], [88.55, 75.49], [88.26, 75.16]],
+ 'centers': [[90.57, 72.75]],
+ 'links': ["1#10#2", "1#25#1", "1#26#1", "1#17#1", "1#5#1", "1#12#1", "1#19#1", "1#28#1", "1#6#1", "1#7#1", "1#13#1", "1#14#1", "1#20#1", "1#29#1", "1#27#1", "1#18#1", "1#36#1"],
+ 'level': 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Market/los.jpg b/maps/data/Market/los.jpg
new file mode 100644
index 00000000..57ead541
Binary files /dev/null and b/maps/data/Market/los.jpg differ
diff --git a/maps/data/Market/thumb.png b/maps/data/Market/thumb.png
new file mode 100644
index 00000000..6c6432c8
Binary files /dev/null and b/maps/data/Market/thumb.png differ
diff --git a/maps/data/Mound/board.png b/maps/data/Mound/board.png
new file mode 100644
index 00000000..8939b721
Binary files /dev/null and b/maps/data/Mound/board.png differ
diff --git a/maps/data/Mound/data.js b/maps/data/Mound/data.js
new file mode 100644
index 00000000..77b9775c
--- /dev/null
+++ b/maps/data/Mound/data.js
@@ -0,0 +1,187 @@
+Mound = {
+ description: {
+ title: {
+ 'fr': "Tertre",
+ 'en': "Mound"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'nordheim',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "De la neige et du sang",
+ 'en': "Blood! Gore! Slush!"
+ },
+ description: {
+ 'fr': "a chaque fois qu’un Héros utilise des points de mouvement pour se déplacer, il doit dépenser 1 gemme en plus du coût normal, quel que soit le nombre de zones parcourues. Cette gemme est placée sur la case Mouvement mais n’octroie pas de point de mouvement au Héros. Niord, les alliés Aesirs et les unités de l’Overloard ne sont pas soumis à cette règle.",
+ 'en': "every time a hero spends movement points to move, they must add 1 additional gem to the Movement point total. This gem is placed in the hero’s Move space, but does not add a movement point. This effect occurs once per Move action regardless of how many areas the hero moves through. Niord, Aesir Warriors and the Overlord’s units are not affected."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "En pente douce",
+ 'en': "That’s Not a Mountain"
+ },
+ description: {
+ 'fr': "la colline n'affecte pas le déplacement des figurines. La zone au sommet de la colline centrale permet cependant de gagner le bonus de surplomb habituel tout comme les 3 tertres aux angles de la carte",
+ 'en': "the hill does not affect movement. The area at the top of the hill still provides the Elevation bonus, as do the cliffs at the corners of the game board."
+ },
+ coordinates: [[50,48], [6,8], [88,15], [86,97]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/809-nordheim-carte-tertre/",
+ 'en': "https://the-overlord.net/index.php?/topic/33-nordheim-mound/"
+ },
+ losFile: true
+ },
+ size: [1078, 924],
+ zones: {
+ "1": {
+ 'area': [[0.28, 24.46], [1.48, 25], [2.78, 25], [3.62, 24.03], [4.73, 23.92], [6.4, 23.38], [7.79, 22.94], [9.09, 22.29], [9.55, 21.54], [10.76, 20.67], [11.78, 19.59], [12.15, 18.72], [12.24, 17.97], [12.34, 16.67], [12.43, 15.58], [13.27, 14.5], [14.29, 13.1], [14.84, 11.8], [15.12, 10.82], [15.21, 9.74], [15.4, 8.66], [15.21, 7.58], [14.75, 6.82], [14.47, 5.95], [14.56, 4.87], [14.38, 3.79], [14.19, 2.6], [14.01, 1.73], [13.45, 1.52], [12.8, 1.52], [12.62, 1.19], [12.34, 0.11], [0.28, 0]],
+ 'centers': [[5.94, 10.39]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#21#1", "1#22#1", "1#19#1", "1#18#2", "1#17#1", "1#15#1", "1#11#1", "1#10#1", "1#7#1", "1#6#1", "1#14#1", "1#13#2", "1#8#1", "1#9#1", "1#12#1"],
+ 'level': 1
+ },
+ "2": {
+ 'area': [[12.43, 0.11], [32.1, 0.22], [34.42, 21], [32.84, 22.19], [31.17, 22.84], [29.41, 23.7], [27.55, 24.89], [26.35, 26.08], [24.21, 28.03], [23.01, 29.65], [12.24, 18.83], [12.34, 16.02], [12.99, 14.61], [13.73, 13.53], [14.47, 12.23], [15.03, 10.93], [15.12, 9.52], [15.21, 8.33], [15.03, 7.14], [14.56, 5.84], [14.29, 3.79], [14.29, 2.49], [14.01, 1.84], [13.36, 1.52], [12.71, 1.41], [12.43, 1.08]],
+ 'centers': [[23.1, 12.77]],
+ 'links': ["1#3#1", "1#4#1", "1#5#1", "1#18#2", "1#9#1", "1#17#1", "1#19#1", "1#21#1", "1#10#1", "1#11#1", "1#7#1", "1#14#1", "1#15#1", "1#13#2", "1#8#1", "1#12#1", "1#1#1", "1#6#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[32.1, 0.11], [34.42, 21.1], [36.09, 20.45], [37.76, 19.7], [39.15, 19.05], [40.54, 18.51], [41.93, 18.07], [43.23, 17.86], [44.53, 17.75], [46.01, 17.53], [47.59, 17.53], [49.26, 17.53], [50.37, 17.32], [52.04, 17.53], [52.04, 15.48], [52.04, 13.96], [52.13, 0.11]],
+ 'centers': [[42.21, 9.52]],
+ 'links': ["1#24#1", "1#17#1", "1#16#1", "1#15#1", "1#9#1", "1#2#1", "1#4#1", "1#5#1", "1#10#1", "1#12#1", "1#11#1", "1#19#1", "1#7#1", "1#14#1", "1#13#2", "1#8#1", "1#1#1", "1#6#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[52.13, 0.22], [52.23, 17.53], [53.15, 17.86], [54.82, 18.18], [56.12, 18.51], [57.33, 18.83], [58.81, 19.26], [60.2, 20.02], [61.22, 20.13], [62.24, 20.56], [63.54, 21.1], [64.94, 21.54], [65.96, 21.97], [67.63, 22.73], [68.92, 23.59], [78.85, 20.89], [78.39, 19.7], [78.29, 18.07], [78.29, 16.67], [78.57, 16.02], [78.76, 14.83], [78.94, 13.74], [79.04, 12.45], [79.5, 11.47], [80.06, 10.5], [80.98, 9.96], [81.54, 9.52], [78.01, 0.11]],
+ 'centers': [[65.96, 10.06]],
+ 'links': ["1#7#1", "1#11#1", "1#12#1", "1#16#1", "1#17#1", "1#23#1", "1#24#1", "1#2#1", "1#3#1", "1#5#1", "1#14#1", "1#15#1", "1#13#2", "1#8#1", "1#9#1", "1#1#1", "1#6#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[78.11, 0.11], [81.73, 9.31], [83.3, 8.98], [84.88, 8.77], [86.36, 8.23], [87.94, 8.44], [89.61, 8.55], [90.54, 8.55], [91.74, 9.2], [92.86, 9.96], [93.6, 10.93], [94.62, 12.55], [95.55, 14.18], [96.1, 15.69], [96.1, 16.56], [95.83, 17.21], [96.1, 18.29], [95.83, 18.51], [96.2, 19.05], [96.47, 19.81], [99.91, 20.45], [100, 0]],
+ 'centers': [[94.99, 5.95]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#1#1", "1#6#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[96.01, 16.23], [95.83, 17.42], [95.73, 18.29], [95.92, 18.94], [96.47, 19.91], [96.29, 21], [96.01, 21.75], [95.64, 21.86], [95.18, 22.19], [94.71, 22.51], [94.62, 23.38], [94.25, 24.13], [93.88, 24.89], [93.14, 25.54], [92.67, 26.08], [91.47, 26.41], [90.72, 26.73], [89.8, 26.95], [88.78, 27.16], [87.57, 27.27], [86.27, 27.06], [85.25, 26.95], [84.23, 26.41], [83.21, 25.65], [82.75, 25.32], [81.91, 24.68], [81.08, 23.81], [80.15, 22.73], [79.5, 21.65], [79.04, 21], [78.57, 20.02], [78.29, 18.51], [78.39, 17.21], [78.48, 16.45], [78.76, 15.48], [78.85, 14.72], [78.94, 13.53], [79.04, 12.77], [79.31, 11.8], [79.96, 10.71], [81.35, 9.63], [82.47, 9.2], [83.77, 8.87], [85.25, 8.66], [86.46, 8.44], [87.94, 8.44], [89.33, 8.55], [90.63, 8.66], [91.74, 9.2], [92.95, 9.96], [94.43, 12.66], [95.45, 14.29]],
+ 'centers': [[86.92, 16.99]],
+ 'links': ["1#7#1", "1#18#1", "1#20#1", "1#21#1", "1#22#1", "1#23#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#10#1", "1#17#1", "1#1#1", "1#24#1", "1#14#1", "1#15#1", "1#13#2", "1#8#1", "1#9#1", "1#16#1"],
+ 'level': 1
+ },
+ "7": {
+ 'area': [[0.19, 24.68], [0.83, 25], [1.95, 25], [2.69, 25], [3.25, 24.68], [3.99, 24.13], [5.29, 23.81], [6.59, 23.7], [7.33, 23.16], [8.63, 22.84], [9.18, 22.08], [10.2, 21.54], [11.04, 20.67], [11.69, 19.81], [12.15, 18.94], [22.91, 29.65], [22.45, 30.3], [21.8, 31.06], [21.34, 31.82], [20.69, 32.68], [19.94, 34.2], [19.29, 35.5], [18.37, 37.23], [17.72, 39.29], [16.98, 41.34], [16.51, 43.4], [16.05, 45.45], [15.49, 47.62], [0.19, 45.24]],
+ 'centers': [[9.74, 33.23]],
+ 'links': ["1#18#2", "1#24#1", "1#20#1", "1#21#1", "1#22#1", "1#23#1", "1#8#1", "1#9#1", "1#10#1", "1#6#1", "1#4#1", "1#2#1", "1#3#1", "1#19#1", "1#11#1", "1#1#1", "1#14#1", "1#13#1", "1#12#1"],
+ 'level': 0
+ },
+ "8": {
+ 'area': [[26.44, 25.97], [33.3, 35.17], [35.44, 33.98], [37.29, 33.23], [39.7, 32.58], [42.12, 32.47], [44.43, 32.36], [45.64, 31.93], [46.47, 31.39], [47.5, 31.28], [48.24, 31.82], [48.98, 32.25], [49.54, 32.68], [50.65, 32.68], [51.39, 32.79], [52.23, 33.23], [53.06, 33.01], [54.08, 32.9], [55.01, 33.55], [55.47, 33.77], [60.2, 20.02], [56.49, 18.72], [54.08, 18.18], [51.86, 17.75], [48.89, 17.53], [46.2, 17.64], [43.51, 17.97], [40.82, 18.61], [38.31, 19.37], [34.23, 21.32], [30.24, 23.27], [27.55, 24.78]],
+ 'centers': [[43.23, 25.65]],
+ 'links': ["1#11#1", "1#12#1", "1#19#1", "1#10#1", "1#15#1", "1#16#1", "1#17#1", "1#7#1", "1#2#1", "1#3#1", "1#4#1", "1#1#1", "1#6#1", "1#14#1", "1#13#2", "1#9#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[60.39, 20.02], [62.24, 20.56], [64.19, 21.32], [66.23, 22.08], [67.9, 23.05], [68.74, 23.81], [69.48, 24.68], [70.04, 25.97], [70.5, 27.38], [70.96, 27.6], [72.17, 27.92], [72.82, 28.79], [73.38, 30.3], [74.21, 31.28], [75.23, 31.71], [76.53, 32.36], [77.55, 33.66], [78.39, 34.85], [79.22, 36.58], [79.96, 38.31], [67.63, 45.02], [67.25, 44.26], [66.88, 43.07], [65.77, 41.34], [64.94, 39.94], [64.38, 39.07], [63.64, 38.42], [62.99, 37.66], [62.15, 37.12], [61.78, 36.8], [60.67, 36.58], [59.65, 36.15], [59.28, 35.71], [58.72, 35.06], [58.35, 34.52], [57.88, 34.42], [57.05, 34.52], [56.68, 34.42], [56.12, 34.42], [55.38, 33.77]],
+ 'centers': [[66.7, 32.47]],
+ 'links': ["1#18#1", "1#17#1", "1#20#1", "1#22#1", "1#23#1", "1#7#1", "1#3#1", "1#4#1", "1#10#1", "1#2#1", "1#1#1", "1#6#1", "1#24#1", "1#14#1", "1#15#1", "1#13#2", "1#8#1", "1#16#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[68.92, 23.7], [78.94, 21.1], [79.87, 22.62], [80.43, 23.27], [81.45, 24.13], [82.56, 25.32], [83.4, 26.08], [84.04, 26.41], [85.16, 26.84], [85.81, 27.16], [87.11, 27.38], [88.59, 27.16], [89.98, 26.84], [91.19, 26.73], [92.12, 26.41], [92.86, 26.08], [93.6, 25.43], [94.06, 24.78], [94.62, 24.03], [94.71, 23.05], [94.9, 22.62], [95.45, 22.19], [96.1, 21.65], [96.38, 21], [96.47, 19.91], [99.91, 20.45], [100, 49.03], [83.95, 49.13], [83.49, 47.62], [83.3, 46.32], [82.93, 45.35], [82.19, 43.61], [81.35, 42.1], [80.71, 41.02], [80.43, 39.83], [80.06, 38.42], [79.41, 37.01], [79.04, 36.15], [78.66, 35.28], [77.92, 34.2], [77.18, 33.55], [76.53, 32.36], [76.25, 32.25], [75.51, 31.71], [74.58, 31.39], [73.93, 30.84], [73.28, 30.19], [73.19, 29.33], [72.82, 28.79], [71.99, 27.71], [71.52, 27.6], [70.87, 27.49], [70.5, 27.38], [70.13, 26.3], [69.67, 24.35], [69.11, 24.13]],
+ 'centers': [[94.9, 34.96]],
+ 'links': ["1#13#2", "1#18#1", "1#19#1", "1#20#1", "1#21#1", "1#22#1", "1#23#1", "1#8#1", "1#7#1", "1#1#1", "1#2#1", "1#3#1", "1#17#1", "1#6#1", "1#24#1", "1#9#1", "1#14#1", "1#15#1", "1#16#1"],
+ 'level': 0
+ },
+ "11": {
+ 'area': [[0.09, 45.35], [15.4, 48.05], [15.31, 49.78], [15.21, 51.41], [15.4, 52.92], [15.58, 54.44], [15.86, 56.17], [16.14, 57.79], [16.42, 59.85], [17.07, 61.8], [17.44, 63.64], [18.37, 65.8], [18.65, 67.32], [0.09, 67.86]],
+ 'centers': [[7.98, 56.82]],
+ 'links': ["1#24#1", "1#23#1", "1#22#1", "1#20#1", "1#16#1", "1#17#1", "1#18#2", "1#8#1", "1#4#1", "1#3#1", "1#2#1", "1#21#1", "1#19#1", "1#7#1", "1#1#1", "1#14#1", "1#13#1", "1#12#1"],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[26.35, 26.19], [33.12, 35.28], [32.28, 35.93], [31.63, 36.47], [31.08, 37.12], [30.33, 37.88], [29.96, 38.53], [29.04, 38.96], [28.01, 39.94], [27.83, 41.34], [27.46, 42.97], [27.27, 45.02], [27.27, 46.54], [27.46, 48.7], [27.37, 49.78], [27.64, 50.87], [27.92, 52.6], [28.29, 54.33], [28.76, 56.17], [29.41, 57.79], [30.61, 59.63], [31.45, 60.61], [32.47, 61.58], [33.02, 62.77], [33.67, 63.96], [34.14, 64.61], [35.25, 64.94], [35.99, 65.37], [36.73, 66.45], [37.29, 66.99], [38.5, 67.75], [39.7, 67.42], [40.82, 67.64], [35.34, 83.77], [33.86, 83.33], [33.02, 82.9], [31.91, 82.14], [30.52, 81.39], [29.96, 80.95], [29.13, 80.52], [28.57, 79.87], [28.29, 79.33], [27.83, 78.9], [27.27, 78.46], [26.9, 77.71], [26.35, 77.06], [25.88, 76.41], [25.32, 76.41], [24.49, 76.3], [23.65, 76.19], [22.91, 75.65], [22.36, 75], [22.17, 74.46], [21.8, 73.16], [21.34, 72.19], [20.78, 71], [20.59, 70.56], [19.76, 70.35], [19.48, 69.37], [18.92, 67.21], [18.46, 65.69], [17.63, 63.31], [17.16, 61.69], [16.7, 59.85], [15.96, 57.47], [15.68, 54.98], [15.58, 52.27], [15.49, 49.89], [15.68, 47.73], [16.23, 45.02], [16.98, 42.21], [17.53, 40.15], [18.27, 38.31], [19.02, 35.82], [21.34, 32.25], [22.63, 30.3], [23.56, 28.79], [25.7, 26.62]],
+ 'centers': [[23.1, 54.33]],
+ 'links': ["1#20#1", "1#22#1", "1#23#1", "1#24#1", "1#18#2", "1#8#1", "1#4#1", "1#3#1", "1#2#1", "1#21#1", "1#19#1", "1#11#1", "1#7#1", "1#1#1", "1#14#1", "1#13#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[37.57, 52.06], [30.71, 59.52], [30.15, 58.66], [29.5, 57.79], [28.94, 56.39], [28.48, 54.65], [28.2, 52.92], [27.74, 50.76], [27.55, 48.7], [27.46, 46.75], [27.55, 45.13], [27.55, 43.61], [27.74, 42.53], [27.92, 41.45], [28.11, 40.91], [28.48, 39.94], [29.13, 39.07], [30.33, 38.2], [31.26, 37.23], [32.28, 36.04], [33.49, 35.39], [34.51, 34.85], [35.53, 34.31], [36.73, 33.66], [38.22, 33.12], [39.89, 32.68], [41.93, 32.58], [43.88, 32.47], [45.18, 32.25], [46.1, 31.6], [46.94, 31.28], [47.77, 31.49], [48.61, 32.14], [49.44, 32.68], [50.46, 32.79], [51.48, 32.9], [52.5, 33.01], [53.34, 33.12], [54.82, 33.66], [55.84, 34.52], [56.68, 34.42], [58.16, 34.63], [58.53, 35.28], [55.47, 41.77], [53.71, 41.02], [52.23, 40.26], [51.11, 39.72], [49.35, 39.29], [47.12, 39.07], [46.01, 38.85], [45.18, 38.85], [44.16, 38.53], [43.14, 38.42], [42.12, 39.18], [41.74, 39.39], [40.26, 39.94], [38.59, 40.8], [37.48, 41.99], [37.11, 42.42], [36.27, 43.51], [35.9, 44.59], [35.71, 46.21], [35.62, 47.84], [36.09, 49.35], [36.46, 50.54], [36.83, 50.87], [36.83, 51.52]],
+ 'centers': [[32.37, 48.05], [43.69, 36.04]],
+ 'links': ["1#24#1", "1#23#1", "1#22#1", "1#21#1", "1#20#1", "2#10#1", "2#2#1", "2#3#1", "2#4#1", "1#19#1", "1#11#1", "1#7#1", "2#1#1", "2#6#1", "1#14#1", "2#15#1", "1#18#2", "2#8#1", "2#9#1", "1#12#1"],
+ 'level': 0
+ },
+ "14": {
+ 'area': [[42.58, 39.39], [43.04, 38.96], [43.23, 38.64], [44.16, 38.85], [44.81, 38.85], [45.64, 39.18], [46.85, 39.39], [48.14, 39.39], [49.72, 39.61], [51.21, 40.04], [52.78, 40.69], [53.99, 41.34], [55.47, 42.32], [56.59, 43.07], [57.7, 44.16], [58.53, 45.13], [58.81, 46], [59.28, 47.19], [59.65, 48.7], [59.74, 50.54], [59.65, 51.95], [59.37, 52.71], [58.53, 53.25], [57.98, 53.68], [57.51, 54.76], [56.68, 55.19], [56.03, 55.63], [55.29, 55.84], [54.64, 56.06], [53.71, 56.71], [52.97, 57.14], [51.39, 57.36], [50.46, 57.36], [49.17, 57.36], [47.96, 57.25], [46.66, 56.93], [44.99, 56.39], [43.97, 56.28], [43.14, 56.06], [42.21, 55.63], [41.47, 54.98], [40.82, 54.65], [40.17, 54], [39.8, 53.46], [39.52, 53.14], [38.4, 53.03], [37.76, 52.06], [37.2, 51.73], [37.01, 50.87], [36.92, 50.54], [36.36, 49.68], [36.09, 48.59], [35.99, 47.62], [36.09, 46.32], [36.27, 44.91], [36.55, 44.05], [36.92, 42.86], [37.57, 41.99], [38.78, 41.23], [39.98, 40.48], [40.72, 39.94]],
+ 'centers': [[47.68, 47.29]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#10#1", "1#17#1", "1#23#1", "1#22#1", "1#21#1", "1#19#1", "1#11#1", "1#7#1", "1#1#1", "1#6#1", "1#24#1", "1#15#1", "1#18#1", "1#13#1", "1#8#1", "1#9#1", "1#16#1", "1#20#1", "1#12#1"],
+ 'level': 1
+ },
+ "15": {
+ 'area': [[55.47, 41.99], [58.72, 35.17], [59.18, 35.93], [59.65, 36.26], [60.76, 36.69], [61.87, 37.01], [62.89, 37.77], [63.64, 38.64], [64.29, 39.5], [65.4, 40.69], [65.96, 42.1], [66.88, 43.61], [67.44, 45.13], [67.63, 45.89], [68.09, 46.54], [68.92, 48.05], [68.92, 49.24], [69.2, 50.65], [69.11, 52.06], [69.11, 54.44], [68.83, 56.28], [68.18, 57.58], [67.81, 58.44], [67.53, 59.96], [67.25, 61.04], [66.42, 62.77], [65.96, 63.53], [57.61, 54.87], [58.26, 53.79], [58.81, 53.14], [59.55, 51.95], [59.74, 50.43], [59.65, 48.59], [59.28, 47.08], [59, 46], [58.53, 44.91], [58.26, 44.26], [56.96, 42.97]],
+ 'centers': [[61.32, 41.67], [63.27, 54.44]],
+ 'links': ["2#19#1", "2#20#1", "2#21#1", "2#22#1", "1#8#1", "1#3#1", "1#1#1", "1#2#1", "1#4#1", "1#10#1", "2#17#1", "2#23#1", "1#6#1", "2#24#1", "1#14#1", "2#18#1", "1#13#2", "1#9#1", "2#16#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[67.72, 45.35], [79.87, 38.85], [80.61, 40.37], [81.26, 41.99], [82.1, 43.83], [82.93, 45.24], [83.58, 47.29], [83.86, 49.35], [83.95, 51.73], [84.04, 53.14], [83.86, 54.55], [83.67, 56.39], [83.3, 58.66], [82.56, 61.9], [81.63, 65.26], [80.43, 69.16], [79.5, 71.32], [78.57, 72.84], [77.74, 74.13], [77.27, 75.11], [76.81, 76.08], [76.35, 77.38], [75.88, 78.79], [75.51, 79.76], [74.95, 80.52], [73.93, 80.95], [73.28, 81.39], [72.63, 82.25], [71.89, 83.23], [70.96, 84.09], [70.59, 84.74], [69.29, 85.82], [62.15, 67.32], [62.8, 66.34], [63.82, 65.58], [64.75, 65.04], [65.58, 63.96], [66.14, 62.88], [66.79, 61.69], [67.25, 60.71], [67.63, 59.74], [68.09, 58.01], [68.46, 57.14], [68.92, 55.74], [69.2, 54.11], [69.02, 51.3], [69.02, 49.57], [68.46, 47.19]],
+ 'centers': [[74.03, 59.63]],
+ 'links': ["1#22#1", "1#21#1", "1#19#1", "1#18#1", "1#11#1", "1#8#1", "1#4#1", "1#3#1", "1#10#1", "1#17#1", "1#23#1", "1#6#1", "1#24#1", "1#14#1", "1#15#2", "1#9#1", "1#20#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[83.95, 49.46], [99.91, 49.24], [99.91, 80.41], [78.11, 74.13], [79.31, 71.54], [80.15, 69.59], [80.89, 67.64], [81.73, 65.48], [82.28, 63.1], [82.93, 60.5], [83.58, 57.36], [83.86, 54.33], [83.95, 50.97]],
+ 'centers': [[91.74, 62.55]],
+ 'links': ["1#21#1", "1#19#1", "1#18#1", "1#20#1", "1#22#1", "1#11#1", "1#9#1", "1#8#1", "1#4#1", "1#3#1", "1#1#1", "1#10#1", "1#23#1", "1#2#1", "1#6#1", "1#24#1", "1#14#1", "1#15#2", "1#16#1"],
+ 'level': 0
+ },
+ "18": {
+ 'area': [[57.51, 55.09], [65.68, 63.64], [64.29, 65.15], [63.08, 66.13], [61.87, 67.1], [61.04, 67.64], [59.83, 68.51], [58.91, 69.16], [58.07, 69.59], [57.88, 69.81], [57.14, 69.59], [56.77, 69.48], [56.22, 69.59], [55.94, 70.24], [55.29, 70.45], [54.64, 71], [53.9, 71], [52.97, 70.89], [52.04, 70.67], [51.21, 70.35], [50.19, 70.13], [45.55, 69.7], [43.78, 69.16], [42.12, 68.29], [40.91, 67.32], [40.07, 67.1], [39.33, 66.99], [38.68, 67.42], [38.22, 67.53], [37.38, 66.77], [35.99, 65.37], [35.44, 64.83], [34.32, 64.5], [33.77, 63.96], [33.3, 62.45], [32.75, 62.01], [32.37, 61.36], [31.73, 60.5], [30.98, 59.63], [37.76, 52.27], [37.94, 52.81], [38.22, 53.14], [38.78, 53.25], [39.24, 53.25], [39.61, 53.9], [39.98, 54.22], [40.35, 54.65], [40.91, 54.98], [41.28, 55.41], [41.84, 55.84], [42.3, 55.95], [42.95, 55.95], [43.88, 56.39], [44.9, 57.03], [46.29, 57.25], [47.68, 57.47], [48.98, 57.68], [50.46, 57.68], [51.67, 57.68], [54.17, 56.6], [55.1, 55.84], [56.59, 55.52]],
+ 'centers': [[56.59, 62.88], [36.46, 58.55]],
+ 'links': ["1#16#1", "2#12#1", "1#17#1", "2#11#1", "1#10#1", "1#9#1", "2#7#1", "1#6#1", "2#1#1", "2#2#1", "1#23#1", "1#22#1", "2#21#1", "2#19#1", "1#24#1", "1#14#1", "1#15#2", "2#13#1", "1#20#1"],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[0.28, 68.29], [18.55, 67.53], [19.02, 68.94], [19.29, 70.24], [19.76, 70.78], [20.41, 70.89], [20.87, 71.54], [21.43, 72.51], [21.71, 73.81], [22.08, 74.78], [22.73, 75.87], [23.47, 76.19], [24.77, 76.41], [25.6, 76.84], [26.25, 77.06], [26.72, 77.92], [27.27, 78.79], [27.74, 79.22], [28.48, 79.55], [28.48, 80.52], [23.38, 99.78], [0.09, 99.89]],
+ 'centers': [[12.43, 83.55]],
+ 'links': ["1#20#1", "1#23#1", "1#17#1", "1#16#1", "1#15#2", "1#10#1", "1#8#1", "1#3#1", "1#22#1", "1#21#1", "1#2#1", "1#11#1", "1#7#1", "1#1#1", "1#24#1", "1#14#1", "1#18#2", "1#13#1", "1#12#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[61.87, 67.53], [69.02, 85.93], [67.72, 86.69], [66.33, 87.34], [65.31, 87.77], [64.1, 87.77], [63.17, 87.77], [61.97, 87.66], [60.85, 87.55], [59.74, 87.55], [58.91, 87.55], [58.07, 87.77], [57.24, 87.99], [56.68, 88.42], [56.12, 88.53], [55.75, 88.42], [55.01, 88.2], [54.45, 87.88], [53.99, 87.77], [53.06, 87.55], [52.5, 87.55], [51.86, 87.66], [50.93, 87.99], [50.28, 87.99], [49.44, 88.2], [48.7, 88.31], [46.94, 88.1], [45.92, 87.77], [44.99, 87.66], [43.88, 87.55], [42.49, 86.9], [39.98, 86.04], [37.85, 85.17], [35.53, 83.87], [41.09, 67.75], [42.58, 68.51], [43.97, 69.26], [45.27, 69.81], [46.85, 69.81], [48.33, 70.02], [50, 70.02], [50.93, 70.45], [51.95, 70.67], [52.97, 70.89], [53.8, 71.21], [54.64, 71], [55.84, 70.02], [56.59, 69.7], [57.05, 69.7], [57.7, 69.7], [58.72, 69.26]],
+ 'centers': [[50.74, 78.14]],
+ 'links': ["1#19#1", "1#23#1", "1#15#2", "1#17#1", "1#13#1", "1#12#1", "1#11#1", "1#10#1", "1#9#1", "1#7#1", "1#6#1", "1#22#1", "1#21#1", "1#24#1", "1#14#1", "1#18#1", "1#16#1"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[23.75, 99.68], [28.66, 80.74], [29.78, 81.49], [30.8, 82.03], [32, 82.9], [33.3, 83.01], [34.32, 83.66], [35.34, 84.2], [37.11, 85.17], [38.4, 85.93], [39.8, 86.26], [41.84, 87.01], [42.95, 87.45], [45.55, 88.1], [44.81, 99.68]],
+ 'centers': [[35.25, 91.77]],
+ 'links': ["1#23#1", "1#17#1", "1#16#1", "1#15#2", "1#13#1", "1#10#1", "1#7#1", "1#6#1", "1#22#1", "1#19#1", "1#11#1", "1#2#1", "1#1#1", "1#24#1", "1#14#1", "1#18#2", "1#20#1", "1#12#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[44.99, 99.89], [45.83, 88.2], [46.85, 88.53], [48.33, 88.64], [49.63, 88.42], [50.65, 88.31], [51.76, 87.77], [52.69, 87.66], [53.9, 87.77], [55.19, 88.53], [56.12, 88.64], [57.33, 88.42], [58.26, 88.31], [58.72, 87.77], [59.93, 87.88], [61.87, 88.1], [62.52, 99.89]],
+ 'centers': [[53.53, 93.94]],
+ 'links': ["1#17#1", "1#16#1", "1#15#2", "1#13#1", "1#12#1", "1#11#1", "1#10#1", "1#9#1", "1#7#1", "1#6#1", "1#23#1", "1#21#1", "1#19#1", "1#24#1", "1#14#1", "1#1#1", "1#18#1", "1#20#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[78.01, 74.24], [100, 80.74], [100, 86.69], [99.17, 86.69], [98.42, 86.58], [97.77, 86.9], [97.5, 87.34], [96.85, 87.99], [96.38, 87.99], [95.64, 87.88], [95.18, 87.88], [94.71, 88.1], [94.25, 88.1], [93.69, 88.1], [93.23, 87.88], [92.95, 87.77], [92.58, 87.88], [92.02, 87.77], [91.56, 88.1], [91.19, 88.31], [90.35, 88.31], [89.89, 87.99], [89.33, 87.77], [88.13, 87.77], [87.66, 87.77], [87.38, 87.77], [86.83, 87.45], [85.71, 86.8], [84.79, 86.26], [83.77, 86.04], [82.65, 85.93], [81.45, 86.04], [79.5, 86.36], [78.48, 86.58], [77.46, 87.01], [76.62, 87.45], [75.51, 88.2], [74.58, 88.85], [73.56, 89.72], [72.73, 90.69], [72.08, 91.67], [71.71, 92.53], [71.15, 93.83], [70.87, 95.56], [70.78, 96.54], [70.22, 97.08], [69.94, 97.51], [69.94, 98.48], [69.57, 99.68], [62.71, 99.89], [61.97, 87.88], [63.08, 87.55], [64.29, 87.77], [65.58, 87.66], [66.42, 87.45], [67.44, 86.69], [69.11, 85.82], [70.22, 85.06], [71.06, 84.31], [72.45, 82.47], [73.38, 81.28], [74.12, 80.74], [75.32, 80.09], [75.6, 79.65], [76.44, 77.27], [77.27, 75.65]],
+ 'centers': [[73.56, 85.93]],
+ 'links': ["1#21#1", "1#19#1", "1#20#1", "1#13#1", "1#12#1", "1#11#1", "1#10#1", "1#9#1", "1#7#1", "1#6#1", "1#4#1", "1#17#1", "1#22#1", "1#24#1", "1#14#1", "1#15#2", "1#18#1", "1#16#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[69.57, 99.78], [69.94, 98.59], [70.04, 97.29], [70.32, 96.75], [70.78, 96.32], [70.96, 94.91], [71.24, 93.4], [72.36, 91.56], [73.56, 90.15], [74.58, 88.96], [75.88, 88.1], [76.9, 87.34], [78.48, 86.69], [80.43, 86.26], [82.28, 86.04], [83.77, 86.04], [85.34, 86.58], [86.73, 87.45], [87.38, 87.77], [88.5, 87.66], [89.52, 87.88], [90.26, 88.2], [90.82, 88.42], [91.65, 88.1], [92.21, 87.88], [93.14, 87.88], [93.69, 88.1], [94.34, 88.2], [95.18, 87.88], [95.73, 88.1], [96.47, 87.99], [97.22, 87.88], [97.59, 87.23], [98.42, 86.8], [99.26, 86.8], [100, 86.9], [100, 99.78]],
+ 'centers': [[86.09, 94.59]],
+ 'links': ["1#13#1", "1#12#1", "1#11#1", "1#7#1", "1#4#1", "1#3#1", "1#10#1", "1#17#1", "1#23#1", "1#22#1", "1#21#1", "1#19#1", "1#6#1", "1#14#1", "1#15#2", "1#18#1", "1#9#1", "1#16#1", "1#20#1"],
+ 'level': 1
+ }
+ }
+}
diff --git a/maps/data/Mound/los.jpg b/maps/data/Mound/los.jpg
new file mode 100644
index 00000000..4b212e72
Binary files /dev/null and b/maps/data/Mound/los.jpg differ
diff --git a/maps/data/Mound/thumb.png b/maps/data/Mound/thumb.png
new file mode 100644
index 00000000..b2262b56
Binary files /dev/null and b/maps/data/Mound/thumb.png differ
diff --git a/maps/data/Pict_Village/board.png b/maps/data/Pict_Village/board.png
new file mode 100644
index 00000000..d7a56dc2
Binary files /dev/null and b/maps/data/Pict_Village/board.png differ
diff --git a/maps/data/Pict_Village/data.js b/maps/data/Pict_Village/data.js
new file mode 100644
index 00000000..9349e877
--- /dev/null
+++ b/maps/data/Pict_Village/data.js
@@ -0,0 +1,251 @@
+Pict_Village = {
+ description: {
+ title: {
+ 'fr': "Village Picte",
+ 'en': "Pict village"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'corebox',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Tentures",
+ 'en': "the hut flaps"
+ },
+ description: {
+ 'fr': "les tentures à l’entrée de chaque hutte (et à l'intérieur de la grande) bloquent la ligne de vue. Entrer ou sortir d’une hutte demande 1 point de mouvement supplémentaire à cause des tentures.",
+ 'en': "the hut flaps at the entrance of each hut block line of sight. A character must spend 1 extra movement point to move across a border into or out of a hut."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Défoncer les cloisons",
+ 'en': "Wall wrecker"
+ },
+ description: {
+ 'fr': "on ne peut pas défoncer les cloisons des huttes en pierre.",
+ 'en': "the huts with stone walls cannot be wrecked using Wall Wrecker"
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Murs d'enceinte",
+ 'en': "Outer walls"
+ },
+ description: {
+ 'fr': "on ne peut pas défoncer les murs d’enceinte, ni les escalader",
+ 'en': "the outer walls cannot be climbed over, or wrecked using Wall Wrecker."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Lignes de vue",
+ 'en': "Lines of sight"
+ },
+ description: {
+ 'fr': "les arbustes ne bloquent pas la ligne de vue.",
+ 'en': "the bushes do not block line of sight."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Huttes en bois",
+ 'en': "Wooden Huts"
+ },
+ description: {
+ 'fr': "les cloisons des huttes peuvent être défoncées par la compétence Défoncer les cloisons. On ne peut pas défoncer les cloisons d’une hutte saturée.",
+ 'en': "a character with Wall Wrecker can use it to move across the wall of one of the wooden huts. The walls of an occupied hut (see page 22 of the Revised Heroes’ Book) cannot be wrecked using Wall Wrecker."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Escalade",
+ 'en': "Climbing"
+ },
+ description: {
+ 'fr': "franchir les rochers demande la compétence Escalade et 2 points de mouvement supplémentaires.",
+ 'en': "a character with Climb can move across boulders as though they were a border by spending 2 extra movement points."
+ },
+ coordinates: [[66,90]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/15-core-carte-village-picte/",
+ 'en': "https://the-overlord.net/index.php?/topic/27-core-pict-village/"
+ },
+ losFile: true
+ },
+ size: [1088, 932],
+ zones: {
+ "1": {
+ 'area': [[0.37, 0.32], [13.97, 17.17], [18.11, 13.3], [21.23, 15.24], [46.05, 0.54]],
+ 'centers': [[22.33, 5.69]],
+ 'links': ["1#4#1", "1#5#1", "1#7#1", "1#8#1", "1#15#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[45.5, 22.75], [38.79, 25.11], [34.28, 8.26], [45.68, 3.86], [50.37, 9.98], [46.78, 11.59], [45.04, 16.42], [44.85, 20.17]],
+ 'centers': [[42.65, 13.52]],
+ 'links': ["1#5#1", "1#7#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[60.94, 27.15], [76.38, 25.86], [72.79, 18.03], [68.93, 8.69], [52.02, 5.04], [53.13, 9.23], [58.09, 10.62], [61.03, 12.02], [62.87, 15.77], [63.14, 17.7]],
+ 'centers': [[67.56, 16.31]],
+ 'links': ["1#9#1", "1#13#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[0.18, 0.54], [14.98, 19.85], [8.64, 25.64], [5.42, 36.37], [1.38, 43.45], [1.19, 50.32], [0, 50.32]],
+ 'centers': [[4.14, 23.93]],
+ 'links': ["1#1#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[11.67, 33.48], [38.24, 25.21], [33.82, 8.58], [10.66, 23.28]],
+ 'centers': [[26.93, 21.14]],
+ 'links': ["1#1#1", "1#2#1", "1#7#1", "1#8#1", "1#15#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[52.02, 11.91], [57.44, 12.77], [59.74, 15.34], [61.31, 18.13], [60.2, 24.03], [57.17, 26.29], [51.47, 26.29], [48.07, 21.89], [47.52, 16.85], [48.99, 13.95]],
+ 'centers': [[54.23, 19.31]],
+ 'links': [],
+ 'level': 0
+ },
+ "7": {
+ 'area': [[19.58, 32.51], [45.59, 23.28], [46.88, 25.97], [49.17, 28], [42.46, 34.66], [33, 36.16], [29.87, 45.82], [24.63, 44.1], [25.64, 40.24]],
+ 'centers': [[33.92, 33.15]],
+ 'links': ["1#1#1", "1#5#1", "1#2#1", "1#9#1"],
+ 'level': 0
+ },
+ "8": {
+ 'area': [[42.83, 35.41], [47.7, 41.09], [46.23, 46.89], [50.92, 47.96], [54.32, 37.98], [57.9, 37.77], [56.8, 29.08], [52.67, 29.51], [49.63, 28.33]],
+ 'centers': [[50.64, 36.8]],
+ 'links': ["1#1#1", "1#5#1", "1#9#1", "1#16#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[57.17, 29.08], [58.18, 37.66], [63.69, 37.02], [67.28, 42.27], [80.24, 35.09], [76.19, 26.39], [60.48, 27.58]],
+ 'centers': [[67.74, 33.15]],
+ 'links': ["1#19#1", "1#7#1", "1#3#1", "1#8#1", "1#13#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[12.41, 35.94], [18.29, 34.44], [23.07, 40.77], [20.5, 50.11], [13.88, 51.07], [9.56, 44.1]],
+ 'centers': [[16.82, 42.81]],
+ 'links': [],
+ 'level': 0
+ },
+ "11": {
+ 'area': [[34.65, 38.63], [41.18, 37.55], [44.58, 42.27], [42.74, 50.11], [35.94, 52.04], [32.35, 46.14]],
+ 'centers': [[38.33, 44.42]],
+ 'links': [],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[55.97, 40.77], [62.87, 39.81], [66.91, 46.35], [64.98, 53.65], [57.54, 54.51], [53.77, 47.96]],
+ 'centers': [[60.48, 47.42]],
+ 'links': [],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[67.56, 42.38], [80.33, 35.19], [88.33, 43.03], [89.71, 52.79], [87.04, 63.09], [85.02, 66.09], [82.54, 61.37], [83.27, 55.9], [71.78, 53.65], [68.01, 51.61], [69.3, 45.6]],
+ 'centers': [[79.78, 47.64]],
+ 'links': ["1#19#1", "1#3#1", "1#9#1"],
+ 'level': 0
+ },
+ "14": {
+ 'area': [[13.6, 53], [21.23, 51.82], [24.36, 58.69], [22.24, 65.67], [15.35, 66.95], [11.31, 59.98]],
+ 'centers': [[18.29, 58.8]],
+ 'links': [],
+ 'level': 0
+ },
+ "15": {
+ 'area': [[24.45, 44.74], [29.5, 46.03], [35.2, 54.61], [39.71, 53.54], [38.33, 62.34], [34.47, 62.12], [32.08, 62.88], [29.5, 66.52], [25.55, 63.73], [27.11, 58.48], [23.07, 50.64]],
+ 'centers': [[29.41, 55.26]],
+ 'links': ["1#1#1", "1#27#1", "1#5#1", "1#16#1", "1#17#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[45.86, 47.21], [50.74, 48.28], [56.62, 57.08], [60.29, 56.87], [59.1, 64.27], [57.44, 63.41], [50.28, 69.31], [50.46, 72.32], [45.77, 72.64], [45.04, 69.64], [43.93, 66.95], [42.28, 64.91], [38.51, 62.45], [40.17, 53.54], [44.21, 52.58]],
+ 'centers': [[49.17, 59.76]],
+ 'links': ["1#8#1", "1#15#1", "1#17#1", "1#17#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[58.92, 64.48], [60.39, 56.55], [66.82, 56.12], [67.83, 51.82], [71.69, 53.76], [69.49, 67.49], [65.53, 67.27]],
+ 'centers': [[66.45, 60.73]],
+ 'links': ["1#15#1", "1#16#1", "1#16#1"],
+ 'level': 0
+ },
+ "18": {
+ 'area': [[73.16, 55.69], [81.89, 57.3], [79.87, 68.67], [71.51, 66.63]],
+ 'centers': [[76.65, 61.7]],
+ 'links': [],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[87.32, 63.09], [90.81, 64.7], [90.17, 67.17], [99.91, 73.71], [99.72, 49.68], [93.29, 50.43], [93.29, 52.04], [90.07, 53]],
+ 'centers': [[95.13, 58.8]],
+ 'links': ["1#24#1", "1#28#1", "1#9#1", "1#13#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[0.28, 50.54], [2.48, 50.64], [11.58, 80.04], [0.18, 85.41]],
+ 'centers': [[3.4, 68.56]],
+ 'links': ["1#27#1"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[37.13, 64.81], [41.18, 66.63], [43.2, 70.49], [42.83, 75.54], [40.35, 79.29], [38.42, 80.58], [34.28, 79.94], [31.89, 76.82], [30.61, 71.35], [31.43, 67.7], [33.46, 65.56]],
+ 'centers': [[37.32, 72.85]],
+ 'links': [],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[57.44, 66.31], [63.6, 69.1], [63.6, 78.22], [57.35, 81.87], [52.3, 78.54], [52.21, 70.28]],
+ 'centers': [[57.54, 73.93]],
+ 'links': [],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[65.44, 67.6], [69.49, 67.7], [80.61, 70.71], [81.62, 68.03], [83.09, 71.14], [82.54, 74.25], [80.97, 77.68], [78.22, 80.47], [74.36, 85.3], [72.7, 86.48], [68.29, 89.27], [61.76, 82.62], [65.63, 79.61]],
+ 'centers': [[73.25, 75.86]],
+ 'links': [],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[89.89, 67.38], [99.72, 73.82], [99.82, 99.57], [96.69, 99.79], [82.26, 82.19]],
+ 'centers': [[93.47, 81.22]],
+ 'links': ["1#19#1", "1#28#1"],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[25.46, 64.16], [29.04, 66.74], [28.03, 73.71], [29.87, 79.51], [33, 82.19], [39.43, 83.37], [40.35, 83.26], [40.99, 92.81], [31.71, 91.2], [22.43, 83.48], [20.31, 80.79], [17.28, 80.36], [14.25, 78.11], [12.87, 75.86], [12.13, 71.57], [14.43, 69.53], [19.21, 68.88], [23.9, 68.03]],
+ 'centers': [[28.95, 80.26]],
+ 'links': ["1#27#1"],
+ 'level': 0
+ },
+ "26": {
+ 'area': [[40.63, 83.15], [42.83, 81.44], [44.3, 79.29], [45.31, 75.97], [45.59, 73.18], [50.46, 72.75], [50.28, 80.04], [57.26, 84.87], [61.4, 82.62], [67.65, 89.48], [57.44, 92.7], [53.58, 94.21], [48.35, 94.42], [41.08, 92.7]],
+ 'centers': [[50.37, 84.76]],
+ 'links': ["1#27#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[0.09, 85.94], [11.31, 80.58], [14.61, 82.94], [17.19, 84.01], [20.68, 83.37], [31.53, 91.85], [30.15, 96.03], [53.03, 98.71], [53.03, 99.57], [0.37, 99.79]],
+ 'centers': [[19.58, 93.99]],
+ 'links': ["1#20#1", "1#15#1", "1#25#1", "1#26#1"],
+ 'level': 0
+ },
+ "28": {
+ 'area': [[82.08, 82.51], [96.05, 99.79], [53.22, 99.79], [53.31, 98.93], [59.56, 97.85], [64.98, 96.46], [71.6, 91.74]],
+ 'centers': [[75.18, 96.35]],
+ 'links': ["1#19#1", "1#24#1"],
+ 'level': 0
+ },
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Pict_Village/los.jpg b/maps/data/Pict_Village/los.jpg
new file mode 100644
index 00000000..0437a841
Binary files /dev/null and b/maps/data/Pict_Village/los.jpg differ
diff --git a/maps/data/Pict_Village/thumb.png b/maps/data/Pict_Village/thumb.png
new file mode 100644
index 00000000..413ab7d7
Binary files /dev/null and b/maps/data/Pict_Village/thumb.png differ
diff --git a/maps/data/Port/board.png b/maps/data/Port/board.png
new file mode 100644
index 00000000..b730f71e
Binary files /dev/null and b/maps/data/Port/board.png differ
diff --git a/maps/data/Port/data.js b/maps/data/Port/data.js
new file mode 100644
index 00000000..4e393534
--- /dev/null
+++ b/maps/data/Port/data.js
@@ -0,0 +1,279 @@
+Port = {
+ description: {
+ title: {
+ 'fr': "Port",
+ 'en': "Port"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'stygie',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Sauter à l'eau",
+ 'en': "Jumping into Water"
+ },
+ description: {
+ 'fr': "un personnage dans une zone adjacente à une des zones de mer situées au sud de la ville peut se jeter à l’eau sans pénalité de mouvement. Si ce personnage ne dispose pas de la compétence Natation, il meurt immédiatement.",
+ 'en': "a character adjacent to a water area may move into that area with no movement penalty. When a character without Swimming moves into a water area, that character dies immediately."
+ },
+ coordinates: [[50,97]]
+ }, {
+ title: {
+ 'fr': "Remonter sur le quai",
+ 'en': "Moving back onto the docks"
+ },
+ description: {
+ 'fr': "un personnage dans une zone d’eau adjacente à une échelle peut remonter sur le quai pour un surcoût de 1 point de mouvement.",
+ 'en': "a character in a water area adjacent to a ladder may move back onto the docks by spending 1 extra movement point."
+ },
+ coordinates: [[3,97], [97,97]]
+ }, {
+ title: {
+ 'fr': "Toits de la ville",
+ 'en': "Roof Top"
+ },
+ description: {
+ 'fr': "les zones situées sur le toit de l’immeuble à l’ouest de la ville donnent un bonus de surplomb sur les zones situées en contrebas, y compris les escaliers menant à ces toits. Sauter depuis les toits dans la rue inflige {dice_orange}{dice_orange} sans défense possible et {dice_orange} si le personnage possède la compétence Saut. Il n’est pas possible de remonter sur les toits depuis la rue autrement que par les escaliers.",
+ 'en': "The areas located on the roof top of the building on the left side of the board provide an elevation bonus, including on the stairs areas. A character may jump from these areas to the areas of the street level. That character rolls {dice_orange}{dice_orange} for falling damage. If that character has Leap, that character rolls {dice_orange}. A character cannot move onto the roof top areas directly from the street level except when moving through the stairs areas."
+ },
+ coordinates: [[8,52], [8,70], [33,52], [33,75]]
+ }, {
+ title: {
+ 'fr': "Défoncer les cloisons",
+ 'en': "Wall Wrecker"
+ },
+ description: {
+ 'fr': "le seul mur qui peut être défoncé est celui situé dans l'entrepôt à l'est de la ville",
+ 'en': "a character with Wall Wrecker can only use this skill to move across the wall in the warehouse on the right side of the board."
+ },
+ coordinates: [[74,53]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/807-stygie-carte-port/",
+ 'en': "https://the-overlord.net/index.php?/topic/34-stygia-port/"
+ },
+ losFile: true
+ },
+ size: [1062, 910],
+ zones: {
+ "1": {
+ 'area': [[31.64, 13.19], [30.98, 3.96], [2.45, 3.74], [2.45, 12.75]],
+ 'centers': [[14.12, 10.99]],
+ 'links': [],
+ 'level': 1
+ },
+ "2": {
+ 'area': [[33.62, 2.75], [58.76, 3.19], [45.2, 14.4], [34.09, 14.51]],
+ 'centers': [[44.26, 6.81]],
+ 'links': ["1#6#1", "1#7#1"],
+ 'level': 1
+ },
+ "3": {
+ 'area': [[61.77, 0.11], [70.62, 0.22], [71.28, 10.22], [63.09, 15.49], [62.81, 13.3], [59.51, 14.29], [59.23, 8.79], [62.05, 7.14]],
+ 'centers': [[65.73, 4.95]],
+ 'links': ["1#7#1", "1#8#1", "1#14#1"],
+ 'level': 1
+ },
+ "4": {
+ 'area': [[79.47, 3.19], [88.04, 15.6], [97.83, 20.44], [97.93, 3.41]],
+ 'centers': [[84.27, 6.15]],
+ 'links': ["1#9#1", "1#10#1", "1#15#1", "1#20#1"],
+ 'level': 1
+ },
+ "5": {
+ 'area': [[2.26, 16.15], [18.93, 16.04], [18.93, 28.57], [1.88, 29.34]],
+ 'centers': [[14.12, 21.87]],
+ 'links': ["1#6#1", "1#7#1", "1#12#1", "1#17#1"],
+ 'level': 1
+ },
+ "6": {
+ 'area': [[19.11, 16.26], [23.35, 15.93], [23.26, 13.41], [29.38, 13.41], [29.66, 15.82], [32.39, 15.93], [34.09, 14.73], [45.2, 14.84], [45.95, 27.8], [19.11, 28.57]],
+ 'centers': [[31.64, 19.45]],
+ 'links': ["1#2#1", "1#5#1", "1#7#1"],
+ 'level': 1
+ },
+ "7": {
+ 'area': [[58.66, 4.18], [60.08, 28.79], [46.23, 27.58], [45.48, 14.73]],
+ 'centers': [[52.64, 17.36]],
+ 'links': ["1#2#1", "1#5#1", "1#6#1", "1#3#1"],
+ 'level': 1
+ },
+ "8": {
+ 'area': [[63.18, 15.71], [71.19, 10.66], [71.37, 16.26], [74.29, 16.04], [74.11, 20.88], [71.47, 21.1], [71.94, 30.66], [63.56, 31.1]],
+ 'centers': [[66.95, 22.97]],
+ 'links': ["1#9#1", "1#3#1", "1#14#1"],
+ 'level': 1
+ },
+ "9": {
+ 'area': [[79, 3.19], [87.76, 15.71], [74.67, 25.49], [73.73, 3.74]],
+ 'centers': [[80.32, 15.82]],
+ 'links': ["1#4#1", "1#10#1", "1#8#1"],
+ 'level': 1
+ },
+ "10": {
+ 'area': [[74.86, 25.82], [88.14, 15.93], [98.31, 20.66], [98.02, 27.03], [74.39, 27.47]],
+ 'centers': [[91.24, 21.43]],
+ 'links': ["1#9#1", "1#4#1", "1#15#1"],
+ 'level': 1
+ },
+ "11": {
+ 'area': [[0.09, 33.41], [8.95, 33.3], [10.64, 42.97], [0.19, 42.53]],
+ 'centers': [[4.05, 36.26]],
+ 'links': ["1#12#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1"],
+ 'level': 1
+ },
+ "12": {
+ 'area': [[9.32, 33.3], [11.21, 33.19], [11.49, 29.12], [17.23, 29.12], [17.7, 33.41], [37.29, 32.86], [36.44, 44.18], [24.58, 43.96], [23.63, 44.29], [17.51, 44.07], [17.23, 43.41], [10.83, 42.86]],
+ 'centers': [[17.8, 38.35]],
+ 'links': ["1#5#1", "1#11#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#17#1", "1#18#1"],
+ 'level': 1
+ },
+ "13": {
+ 'area': [[37.66, 32.86], [36.63, 44.18], [40.96, 44.51], [40.49, 56.37], [50.94, 53.08], [50.47, 43.85], [53.58, 46.15], [56.97, 44.62], [54.61, 42.09], [54.8, 41.1], [59.23, 40.77], [58.38, 32.31]],
+ 'centers': [[47.74, 37.69]],
+ 'links': ["1#19#1", "1#11#1", "1#12#1", "1#14#1", "1#15#1", "1#24#1", "1#31#1", "1#18#1"],
+ 'level': 1
+ },
+ "14": {
+ 'area': [[58.66, 32.2], [59.7, 40.55], [80.13, 40.22], [80.04, 31.32], [72.22, 31.32], [71.75, 30.88], [63.75, 31.32], [63.94, 31.76]],
+ 'centers': [[68.17, 36.15]],
+ 'links': ["1#3#1", "1#8#1", "1#11#1", "1#12#1", "1#13#1", "1#15#1"],
+ 'level': 1
+ },
+ "15": {
+ 'area': [[80.41, 30.99], [85.88, 30.88], [85.78, 27.25], [90.49, 27.25], [90.77, 30.44], [100, 30], [99.91, 39.56], [93.79, 39.78], [93.97, 44.07], [89.83, 44.51], [89.74, 40], [80.41, 40.22]],
+ 'centers': [[88.14, 34.84]],
+ 'links': ["1#4#1", "1#10#1", "1#20#1", "1#11#1", "1#12#1", "1#13#1", "1#14#1"],
+ 'level': 1
+ },
+ "16": {
+ 'area': [[0.09, 43.96], [16.48, 44.95], [16.76, 54.95], [17.89, 54.73], [17.8, 53.74], [23.82, 54.07], [23.63, 55.16], [24.39, 55.38], [24.01, 60.22], [0.28, 62.09]],
+ 'centers': [[8.1, 50]],
+ 'links': ["1#21#1", "1#23#1", "1#22#1", "1#11#1", "1#12#1", "1#17#1", "1#18#1"],
+ 'level': 3
+ },
+ "17": {
+ 'area': [[17.61, 44.29], [24.01, 44.4], [23.54, 54.07], [17.8, 53.74]],
+ 'centers': [[20.9, 48.79]],
+ 'links': ["1#5#1", "1#21#1", "1#23#1", "1#12#1", "1#16#1", "1#18#1", "1#22#1"],
+ 'level': 2
+ },
+ "18": {
+ 'area': [[23.92, 63.63], [25.52, 45.82], [40.21, 46.15], [39.64, 67.14]],
+ 'centers': [[32.02, 51.87]],
+ 'links': ["1#21#1", "1#23#1", "1#22#1", "1#13#1", "1#12#1", "1#17#1", "1#16#1", "1#24#1"],
+ 'level': 3
+ },
+ "19": {
+ 'area': [[53.39, 46.59], [57.06, 44.95], [72.5, 44.51], [72.98, 60.66], [53.48, 62.97]],
+ 'centers': [[56.59, 50.22]],
+ 'links': ["1#25#1", "1#13#1", "1#33#1"],
+ 'level': 1
+ },
+ "20": {
+ 'area': [[74.58, 45.05], [89.64, 44.84], [94.07, 44.4], [97.36, 44.18], [98.12, 61.98], [74.86, 56.81]],
+ 'centers': [[93.22, 48.68]],
+ 'links': ["1#25#1", "1#26#1", "1#15#1", "1#4#1"],
+ 'level': 1
+ },
+ "21": {
+ 'area': [[0, 62.31], [23.92, 60.55], [22.79, 71.65], [22.13, 71.98], [21.94, 73.19], [16.2, 72.97], [16.01, 71.43], [14.97, 71.32], [14.31, 81.32], [0.38, 80.88]],
+ 'centers': [[11.86, 70.99]],
+ 'links': ["1#16#1", "1#18#1", "1#17#1", "1#22#1", "1#23#1", "1#27#1", "1#29#1"],
+ 'level': 3
+ },
+ "22": {
+ 'area': [[15.91, 73.41], [22.03, 73.74], [21.37, 81.98], [15.82, 81.87]],
+ 'centers': [[18.74, 77.25]],
+ 'links': ["1#16#1", "1#18#1", "1#29#1", "1#17#1", "1#21#1", "1#23#1"],
+ 'level': 2
+ },
+ "23": {
+ 'area': [[23.92, 63.96], [39.17, 67.58], [38.7, 82.53], [23.16, 81.76], [23.16, 71.76]],
+ 'centers': [[31.17, 74.51]],
+ 'links': ["1#16#1", "1#18#1", "1#17#1", "1#21#1", "1#22#1", "1#24#1", "1#29#1", "1#31#1", "1#33#1"],
+ 'level': 3
+ },
+ "24": {
+ 'area': [[40.49, 56.81], [50.75, 53.41], [51.6, 82.2], [39.45, 81.1]],
+ 'centers': [[45.48, 71.65]],
+ 'links': ["1#13#1", "1#31#1", "1#18#1", "1#23#1"],
+ 'level': 1
+ },
+ "25": {
+ 'area': [[53.58, 63.52], [73.26, 61.1], [73.26, 61.87], [74.95, 61.21], [75.99, 78.79], [64.03, 78.24], [59.13, 78.79], [54.14, 78.57]],
+ 'centers': [[60.92, 74.29]],
+ 'links': ["1#19#1", "1#20#1", "1#26#1", "1#33#1"],
+ 'level': 1
+ },
+ "26": {
+ 'area': [[74.86, 57.36], [98.68, 62.75], [98.78, 78.68], [76.27, 79.78]],
+ 'centers': [[86.35, 63.3]],
+ 'links': ["1#25#1", "1#20#1"],
+ 'level': 1
+ },
+ "27": {
+ 'area': [[0.19, 81.87], [10.92, 82.31], [12.43, 95.05], [0.28, 94.73]],
+ 'centers': [[8, 88.68]],
+ 'links': ["1#29#1", "1#31#1", "1#33#1", "1#35#1", "1#28#1", "1#21#1"],
+ 'level': 1
+ },
+ "28": {
+ 'area': [[24.11, 95.27], [23.82, 99.89], [0.09, 99.89], [0.19, 95.38]],
+ 'centers': [[12.34, 97.47]],
+ 'links': ["1#27#1", "1#29#1", "1#30#1", "1#32#1", "1#34#1", "1#36#1"],
+ 'level': 0
+ },
+ "29": {
+ 'area': [[11.21, 82.42], [15.44, 82.53], [15.54, 81.87], [21.19, 82.31], [22.22, 82.86], [30.51, 83.19], [30.51, 94.84], [12.52, 94.84]],
+ 'centers': [[19.96, 88.79]],
+ 'links': ["1#27#1", "1#22#1", "1#31#1", "1#33#1", "1#35#1", "1#28#1", "1#30#1", "1#21#1", "1#23#1"],
+ 'level': 1
+ },
+ "30": {
+ 'area': [[24.11, 99.67], [24.29, 95.38], [40.3, 95.27], [39.83, 99.89]],
+ 'centers': [[28.91, 97.47]],
+ 'links': ["1#29#1", "1#31#1", "1#28#1", "1#32#1", "1#34#1", "1#36#1"],
+ 'level': 0
+ },
+ "31": {
+ 'area': [[30.7, 95.05], [30.79, 83.41], [39.27, 83.52], [39.55, 81.54], [52.35, 82.53], [52.45, 94.95]],
+ 'centers': [[41.71, 88.57]],
+ 'links': ["1#13#1", "1#24#1", "1#27#1", "1#29#1", "1#33#1", "1#35#1", "1#30#1", "1#32#1", "1#23#1"],
+ 'level': 1
+ },
+ "32": {
+ 'area': [[39.92, 99.78], [40.49, 95.38], [66.76, 95.49], [63.65, 99.78]],
+ 'centers': [[47.55, 97.47]],
+ 'links': ["1#31#1", "1#28#1", "1#30#1", "1#34#1", "1#36#1"],
+ 'level': 0
+ },
+ "33": {
+ 'area': [[52.73, 94.84], [52.64, 82.42], [58.95, 81.87], [59.23, 79.56], [63.94, 78.35], [63.94, 82.2], [75.24, 81.43], [77.4, 94.95]],
+ 'centers': [[62.62, 88.24]],
+ 'links': ["1#19#1", "1#25#1", "1#27#1", "1#29#1", "1#31#1", "1#35#1", "1#34#1", "1#23#1"],
+ 'level': 1
+ },
+ "34": {
+ 'area': [[64.22, 99.89], [67.04, 95.6], [84.46, 95.6], [85.78, 99.78]],
+ 'centers': [[73.45, 97.36]],
+ 'links': ["1#33#1","1#35#1", "1#28#1", "1#30#1", "1#32#1", "1#36#1"],
+ 'level': 0
+ },
+ "35": {
+ 'area': [[75.61, 81.43], [77.78, 95.05], [100, 95.05], [99.72, 79.67]],
+ 'centers': [[88.89, 87.91]],
+ 'links': ["1#27#1", "1#29#1", "1#31#1", "1#33#1", "1#34#1", "1#36#1"],
+ 'level': 1
+ },
+ "36": {
+ 'area': [[84.75, 95.49], [85.97, 99.78], [100, 99.89], [100, 95.38]],
+ 'centers': [[94.44, 97.47]],
+ 'links': ["1#35#1", "1#28#1", "1#30#1", "1#32#1", "1#34#1"],
+ 'level': 0
+ }
+ }
+}
diff --git a/maps/data/Port/los.jpg b/maps/data/Port/los.jpg
new file mode 100644
index 00000000..49b8377a
Binary files /dev/null and b/maps/data/Port/los.jpg differ
diff --git a/maps/data/Port/thumb.png b/maps/data/Port/thumb.png
new file mode 100644
index 00000000..274e78c0
Binary files /dev/null and b/maps/data/Port/thumb.png differ
diff --git a/maps/data/Ships/board.png b/maps/data/Ships/board.png
new file mode 100644
index 00000000..f1112732
Binary files /dev/null and b/maps/data/Ships/board.png differ
diff --git a/maps/data/Ships/data.js b/maps/data/Ships/data.js
new file mode 100644
index 00000000..25900852
--- /dev/null
+++ b/maps/data/Ships/data.js
@@ -0,0 +1,341 @@
+Ships = {
+ description: {
+ title: {
+ 'fr': "Bateaux",
+ 'en': "Ships"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'corebox',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Soute",
+ 'en': "Hold"
+ },
+ description: {
+ 'fr': "la sortie de la soute doit se faire par la zone directement en face des escaliers.",
+ 'en': "A character coming out of the hold must move in the area in front of its exit."
+ },
+ coordinates: [[40,25], [48,70]]
+ }, {
+ title: {
+ 'fr': "Mât",
+ 'en': "Masts"
+ },
+ description: {
+ 'fr': "Il existe toujours une ligne de vue vers la zone d’un mât même si celui-ci bloque normalement la ligne de vue.",
+ 'en': "All the areas of the game board have line of sight on the masts’areas."
+ },
+ coordinates: [[27,27], [69,22], [30,72], [70,67]]
+ }, {
+ title: {
+ 'fr': "Ligne de vue",
+ 'en': "Line of sight"
+ },
+ description: {
+ 'fr': "il existe une ligne de vue depuis une zone de navire vers une zone d’eau, si la ligne de vue ne passe pas au travers de plus d’une zone de navire (en comptant la zone de départ de la ligne de vue), et permet de bénéficier du bonus de surplomb de {dice_yellow}. Il existe une ligne de vue depuis une zone d’eau vers une zone de navire, si la ligne de vue ne passe pas au travers de plus d’une zone de navire (en comptant la zone d’arriveé de la ligne de vue).",
+ 'en': " There is a line of sight from a ship area to a water area if the line of sight does not cross more than one ship area, including the line of sight starting area. The ship areas provide an Elevation bonus of {dice_yellow} on the water areas. There is a line of sight from a water area to a ship area if the line of sight does not cross more than one ship area, including the line of sight finishing area."
+ },
+ coordinates: []
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/21-core-carte-bateaux/",
+ 'en': "https://the-overlord.net/index.php?/topic/29-core-ships/"
+ },
+ losFile: true
+ },
+ size: [1062, 910],
+ zones: {
+ "1": {
+ 'area': [[1.69, 0], [13.75, 14.4], [23.26, 11.98], [23.73, 0.11]],
+ 'centers': [[15.91, 5.49]],
+ 'links': ["1#48#1", "1#2#1", "1#4#1", "1#3#1", "1#6#1", "1#7#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[23.92, 0.11], [23.63, 11.98], [31.64, 10.11], [38.98, 9.01], [39.92, 0]],
+ 'centers': [[31.45, 4.51]],
+ 'links': ["1#48#1", "1#1#1", "1#3#1", "1#4#1", "1#7#1", "1#8#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[40.02, 0.22], [39.08, 9.01], [51.13, 7.8], [59.6, 7.03], [63.75, 0.33], [63.94, 0.11]],
+ 'centers': [[50.28, 3.52]],
+ 'links': ["1#48#1", "1#1#1", "1#2#1", "1#4#1", "1#5#1", "1#8#1", "1#9#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[64.03, 0.11], [59.89, 6.81], [69.3, 5.93], [73.26, 5.93], [77.31, 6.15], [80.6, 6.81], [84.37, 8.02], [88.7, 10.44], [85.88, 0]],
+ 'centers': [[74.67, 2.53]],
+ 'links': ["1#48#1", "1#1#1", "1#2#1", "1#3#1", "1#5#1", "1#9#1", "1#10#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[85.97, 0.11], [89.08, 10.44], [92.37, 13.3], [95.76, 15.71], [98.78, 19.34], [100, 19.12], [100, 0.22]],
+ 'centers': [[94.63, 7.03]],
+ 'links': ["1#3#1", "1#4#1", "1#10#1", "1#11#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[4.24, 23.41], [5.46, 19.89], [17.61, 16.15], [18.64, 39.56], [7.44, 38.13], [5.65, 35.71], [4.8, 31.76]],
+ 'centers': [[10.55, 28.13]],
+ 'links': ["1#48#1", "1#1#1", "1#9#1", "1#40#1", "1#21#1", "1#22#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#33#1", "1#18#1"],
+ 'level': 1
+ },
+ "7": {
+ 'area': [[17.89, 16.81], [28.25, 14.29], [28.91, 21.87], [27.78, 22.42], [26.74, 22.86], [25.89, 24.29], [25.24, 25.6], [25.05, 27.14], [18.17, 27.8]],
+ 'centers': [[22.98, 20.99]],
+ 'links': ["1#1#1", "1#2#1", "1#6#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#32#1", "1#33#1", "1#16#1", "1#12#1", "1#8#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1"],
+ 'level': 1
+ },
+ "8": {
+ 'area': [[28.53, 14.18], [28.91, 21.87], [30.23, 22.09], [31.64, 22.42], [32.67, 23.41], [33.62, 24.95], [34.09, 26.59], [39.74, 25.6], [39.36, 23.19], [46.14, 22.31], [45.57, 11.87]],
+ 'centers': [[37.29, 18.68]],
+ 'links': ["1#2#1", "1#3#1", "1#6#1", "1#7#1", "1#12#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1"],
+ 'level': 1
+ },
+ "9": {
+ 'area': [[45.57, 11.65], [46.23, 22.31], [50, 21.98], [64.31, 18.46], [65.16, 17.8], [66.57, 17.47], [66.01, 9.67]],
+ 'centers': [[56.21, 15.05]],
+ 'links': ["1#3#1", "1#4#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#11#1"],
+ 'level': 1
+ },
+ "10": {
+ 'area': [[66.2, 9.45], [66.76, 17.69], [67.98, 17.69], [69.11, 18.24], [70.24, 19.12], [70.9, 20.11], [71.37, 21.1], [71.66, 22.42], [73.26, 22.42], [75.05, 22.2], [76.74, 22.09], [78.25, 21.98], [87.19, 20.99], [86.63, 12.75], [84.37, 11.65], [82.2, 10.77], [80.04, 9.89], [77.87, 9.34], [75.33, 8.9], [73.54, 8.79]],
+ 'centers': [[75.99, 14.62]],
+ 'links': ["1#4#1", "1#5#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#15#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#19#1", "1#11#1"],
+ 'level': 1
+ },
+ "11": {
+ 'area': [[86.72, 12.42], [88.32, 29.34], [92.18, 24.4], [95.2, 20.22], [92.09, 16.7]],
+ 'centers': [[91.05, 20.22]],
+ 'links': ["1#5#1", "1#20#1", "1#27#1", "1#16#1", "1#8#1", "1#17#1", "1#9#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "12": {
+ 'area': [[28.91, 22.09], [30.23, 22.09], [31.92, 22.53], [33.05, 23.96], [33.9, 26.15], [33.99, 27.91], [33.62, 29.78], [32.96, 30.99], [32.11, 32.09], [31.07, 32.75], [30.23, 32.97], [28.81, 32.97], [27.5, 32.42], [26.65, 31.87], [25.99, 30.99], [25.52, 30.11], [25.14, 28.9], [25.05, 27.36], [25.24, 25.93], [25.61, 24.73], [26.27, 23.41], [27.5, 22.42]],
+ 'centers': [[29.19, 27.58]],
+ 'links': ["1#6#1", "1#7#1", "1#16#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1"],
+ 'level': 1
+ },
+ "13": {
+ 'area': [[39.55, 23.19], [39.83, 28.35], [50.28, 27.36], [50, 22.2]],
+ 'centers': [[44.54, 25.38]],
+ 'links': ["1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1"],
+ 'level': 1
+ },
+ "14": {
+ 'area': [[50.19, 22.09], [50.47, 27.25], [64.6, 28.35], [63.37, 27.03], [62.34, 25.93], [62.15, 24.4], [62.05, 23.19], [62.15, 21.98], [62.52, 20.44], [63.47, 19.23], [64.12, 18.68]],
+ 'centers': [[57.06, 23.74]],
+ 'links': ["1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1"],
+ 'level': 1
+ },
+ "15": {
+ 'area': [[66.67, 17.58], [68.08, 17.8], [69.49, 18.68], [70.62, 19.78], [71.37, 21.98], [71.66, 23.74], [71.28, 25.38], [70.53, 27.03], [69.3, 28.13], [68.46, 28.68], [67.51, 28.79], [66.76, 28.9], [65.63, 28.68], [64.88, 28.13], [63.94, 27.58], [62.81, 26.37], [62.43, 24.73], [62.05, 23.41], [62.34, 21.87], [62.71, 20.66], [63.28, 19.67], [64.12, 18.46]],
+ 'centers': [[66.95, 23.19]],
+ 'links': ["1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#10#1", "1#19#1", "1#11#1"],
+ 'level': 1
+ },
+ "16": {
+ 'area': [[18.17, 28.02], [24.95, 27.47], [25.24, 29.56], [25.99, 31.32], [27.21, 32.42], [28.44, 33.08], [29.66, 33.19], [30.04, 39.56], [24.76, 39.56], [21, 39.23], [19.11, 39.34]],
+ 'centers': [[23.45, 33.85]],
+ 'links': ["1#23#1", "1#6#1", "1#7#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#12#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#23#1"],
+ 'level': 1
+ },
+ "17": {
+ 'area': [[34.18, 26.37], [39.64, 25.82], [39.74, 28.57], [46.61, 27.8], [47.27, 38.46], [30.13, 39.67], [29.66, 32.97], [30.79, 32.64], [32.02, 31.98], [32.96, 30.88], [33.8, 28.57]],
+ 'centers': [[37.76, 32.97]],
+ 'links': ["1#23#1", "1#24#1", "1#6#1", "1#16#1", "1#12#1", "1#8#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1"],
+ 'level': 1
+ },
+ "18": {
+ 'area': [[46.7, 27.8], [50.38, 27.47], [64.6, 28.46], [65.82, 29.01], [67.33, 28.79], [67.7, 36.59], [57.72, 37.8], [52.35, 38.68], [47.46, 38.79]],
+ 'centers': [[56.59, 32.97]],
+ 'links': ["1#24#1", "1#25#1", "1#26#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#28#1", "1#29#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1", "1#15#1", "1#19#1", "1#11#1"],
+ 'level': 1
+ },
+ "19": {
+ 'area': [[71.66, 22.64], [87.29, 20.99], [87.85, 29.78], [86.16, 31.21], [83.62, 32.2], [80.89, 33.63], [76.65, 35.05], [72.88, 36.04], [67.98, 36.81], [67.33, 28.9], [68.74, 28.35], [70.15, 27.25], [70.81, 26.04], [71.37, 24.73]],
+ 'centers': [[77.68, 28.57]],
+ 'links': ["1#26#1", "1#20#1", "1#27#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1", "1#11#1"],
+ 'level': 1
+ },
+ "20": {
+ 'area': [[84.27, 35.49], [82.11, 40.66], [99.91, 36.48], [100, 19.23], [98.68, 19.56], [96.52, 23.52], [92.84, 28.24], [89.55, 31.54]],
+ 'centers': [[94.44, 31.76]],
+ 'links': ["1#26#1", "1#27#1", "1#19#1", "1#11#1", "1#33#1"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[0.19, 31.98], [2.26, 30.88], [2.64, 36.26], [5.37, 40.44], [8.1, 41.1], [13.09, 41.87], [16.76, 42.09], [20.34, 42.42], [20.15, 47.36], [0.19, 49.78]],
+ 'centers': [[8.38, 43.96]],
+ 'links': ["1#22#1", "1#23#1", "1#24#1", "1#25#1", "1#26#1", "1#27#1", "1#6#1", "1#28#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[0.19, 50.11], [20.24, 47.58], [20.06, 53.41], [16.95, 53.96], [16.67, 52.09], [8, 53.85], [8.29, 55.6], [6.31, 57.03], [4.43, 58.57], [3.01, 60.22], [2.17, 62.09], [1.41, 64.18], [0.75, 67.25], [1.13, 74.18], [0.19, 74.29]],
+ 'centers': [[7.82, 52.75]],
+ 'links': ["1#25#1", "1#26#1", "1#21#1", "1#23#1", "1#24#1", "1#6#1", "1#28#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[20.62, 42.42], [20.15, 53.19], [27.59, 51.98], [27.4, 48.57], [30.6, 48.13], [29.47, 42.86]],
+ 'centers': [[25.05, 47.03]],
+ 'links': ["1#21#1", "1#22#1", "1#24#1", "1#25#1", "1#26#1", "1#27#1", "1#16#1", "1#17#1", "1#30#1", "1#29#1", "1#16#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[29.76, 42.86], [30.7, 47.8], [41.05, 46.7], [41.43, 49.23], [51.79, 48.46], [51.13, 41.54], [43.79, 41.87], [42.75, 42.2], [33.71, 42.75]],
+ 'centers': [[40.49, 45.38]],
+ 'links': ["1#21#1", "1#22#1", "1#23#1", "1#25#1", "1#26#1", "1#27#1", "1#17#1", "1#18#1", "1#30#1", "1#31#1"],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[51.22, 41.43], [51.6, 48.57], [67.89, 46.59], [66.95, 39.89]],
+ 'centers': [[59.7, 43.96]],
+ 'links': ["1#22#1", "1#21#1", "1#23#1", "1#24#1", "1#26#1", "1#27#1", "1#18#1", "1#31#1"],
+ 'level': 0
+ },
+ "26": {
+ 'area': [[67.23, 39.89], [68.08, 46.48], [80.04, 45.49], [84.09, 35.82], [79.85, 37.36], [75.14, 38.9]],
+ 'centers': [[74.39, 42.09]],
+ 'links': ["1#22#1", "1#21#1", "1#23#1", "1#24#1", "1#25#1", "1#20#1", "1#27#1", "1#18#1", "1#19#1", "1#32#1", "1#33#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[80.04, 45.6], [82.11, 40.77], [99.91, 36.7], [99.91, 67.03], [96.89, 67.14], [99.53, 61.65], [98.4, 59.45], [93.5, 54.62], [88.98, 48.46], [86.72, 46.37], [84.46, 45.6]],
+ 'centers': [[95.29, 44.07]],
+ 'links': ["1#21#1", "1#23#1", "1#24#1", "1#25#1", "1#26#1", "1#20#1", "1#19#1", "1#11#1", "1#33#1"],
+ 'level': 0
+ },
+ "28": {
+ 'area': [[18.93, 55.82], [21.85, 87.8], [16.2, 87.58], [12.24, 87.69], [9.79, 87.03], [7.63, 85.93], [6.4, 84.62], [5.27, 82.86], [4.33, 80.99], [4.14, 79.45], [4.05, 77.91], [3.86, 75.93], [3.77, 74.51], [3.48, 72.64], [3.48, 70.33], [3.39, 69.12], [3.2, 67.25], [3.39, 65.6], [3.77, 64.07], [4.43, 62.53], [5.27, 60.77], [7.16, 59.01], [9.79, 57.8], [14.31, 56.7]],
+ 'centers': [[11.86, 72.31]],
+ 'links': ["1#21#1", "1#22#1", "1#42#1", "1#43#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#31#1", "1#32#1"],
+ 'level': 1
+ },
+ "29": {
+ 'area': [[18.93, 55.71], [23.82, 55.27], [28.63, 54.62], [29.94, 65.93], [28.91, 66.48], [27.78, 67.03], [26.93, 68.35], [26.37, 69.45], [26.18, 71.21], [20.43, 71.76]],
+ 'centers': [[24.67, 62.09]],
+ 'links': ["1#23#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#19#1", "1#11#1", "1#28#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "30": {
+ 'area': [[29, 54.4], [30.04, 65.82], [31.17, 65.93], [32.3, 66.37], [33.33, 67.03], [34.18, 68.35], [34.84, 70], [38.23, 69.45], [46.52, 68.46], [46.42, 66.04], [50.09, 65.38], [48.78, 51.65]],
+ 'centers': [[39.45, 60.55]],
+ 'links': ["1#23#1", "1#24#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#19#1", "1#11#1", "1#28#1", "1#29#1", "1#34#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "31": {
+ 'area': [[48.96, 51.65], [67.42, 49.45], [68.46, 60.55], [67.23, 60.88], [66.67, 61.32], [52.54, 65.05], [50.28, 65.27]],
+ 'centers': [[58.85, 56.04]],
+ 'links': ["1#24#1", "1#25#1", "1#6#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1"],
+ 'level': 1
+ },
+ "32": {
+ 'area': [[67.51, 49.45], [76.65, 48.35], [78.34, 64.29], [73.35, 64.95], [72.69, 63.19], [71.85, 61.76], [70.72, 61.21], [69.49, 60.55], [68.46, 60.44]],
+ 'centers': [[73.54, 55.49]],
+ 'links': ["1#26#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#28#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#37#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "33": {
+ 'area': [[77.12, 47.36], [80.23, 81.43], [84.75, 80.44], [88.14, 79.23], [89.74, 77.25], [90.87, 74.84], [91.53, 71.65], [91.53, 67.8], [91.43, 64.84], [90.87, 60.22], [90.11, 56.15], [89.55, 53.3], [88.98, 51.1], [87.29, 49.67], [84.93, 48.13], [81.92, 47.36]],
+ 'centers': [[86.06, 62.42]],
+ 'links': ["1#26#1", "1#20#1", "1#27#1", "1#46#1", "1#47#1", "1#6#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#30#1", "1#31#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "34": {
+ 'area': [[30.04, 65.93], [31.07, 65.93], [32.3, 66.37], [33.43, 67.25], [34.18, 68.24], [34.65, 69.89], [34.75, 71.87], [34.27, 73.3], [33.62, 74.4], [32.67, 75.27], [31.83, 75.71], [31.17, 75.93], [30.04, 75.93], [29.19, 75.71], [28.53, 75.38], [27.87, 74.95], [27.31, 74.29], [26.65, 72.97], [26.18, 71.1], [26.37, 69.45], [26.84, 68.02], [28.44, 66.48]],
+ 'centers': [[30.23, 70.66]],
+ 'links': ["1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#19#1", "1#11#1", "1#28#1", "1#29#1", "1#38#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "35": {
+ 'area': [[46.52, 65.93], [52.45, 65.27], [53.01, 70.44], [46.99, 71.54]],
+ 'centers': [[49.53, 68.02]],
+ 'links': ["1#6#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "36": {
+ 'area': [[52.64, 65.16], [66.38, 61.54], [65.35, 62.53], [64.88, 63.96], [64.6, 66.04], [65.16, 67.58], [65.63, 68.9], [66.67, 69.78], [67.51, 70.55], [53.3, 70.55]],
+ 'centers': [[60.36, 66.48]],
+ 'links': ["1#6#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "37": {
+ 'area': [[68.46, 60.77], [69.68, 60.88], [71.19, 61.32], [72.5, 62.75], [73.26, 64.29], [73.26, 66.92], [72.5, 68.46], [71.94, 69.67], [70.81, 70.33], [69.49, 70.66], [68.08, 70.44], [66.76, 69.78], [66.01, 69.01], [65.35, 67.91], [64.97, 67.25], [64.69, 65.27], [65.07, 63.19], [66.67, 61.43]],
+ 'centers': [[68.74, 65.49]],
+ 'links': ["1#6#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#32#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "38": {
+ 'area': [[20.53, 71.87], [25.99, 71.21], [26.46, 72.86], [27.5, 74.51], [28.63, 75.49], [29.76, 75.93], [31.07, 75.93], [32.11, 87.03], [27.68, 87.14], [25.42, 87.36], [22.03, 87.25]],
+ 'centers': [[26.18, 79.12]],
+ 'links': ["1#43#1", "1#6#1", "1#7#1", "1#16#1", "1#19#1", "1#11#1", "1#28#1", "1#29#1", "1#34#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "39": {
+ 'area': [[34.75, 70], [46.52, 68.46], [46.89, 71.43], [50.66, 71.21], [51.98, 84.51], [32.11, 87.25], [30.89, 75.82], [32.3, 75.16], [33.52, 74.07], [34.37, 72.75], [34.65, 71.43]],
+ 'centers': [[40.77, 77.25]],
+ 'links': ["1#44#1", "1#6#1", "1#7#1", "1#16#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#35#1", "1#31#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#41#1"],
+ 'level': 1
+ },
+ "40": {
+ 'area': [[50.85, 71.1], [53.01, 70.77], [69.4, 70.88], [70.43, 81.98], [52.07, 84.51]],
+ 'centers': [[61.21, 76.92]],
+ 'links': ["1#44#1", "1#45#1", "1#16#1", "1#6#1", "1#12#1", "1#8#1", "1#17#1", "1#13#1", "1#9#1", "1#14#1", "1#18#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#31#1", "1#36#1", "1#37#1", "1#41#1", "1#33#1"],
+ 'level': 1
+ },
+ "41": {
+ 'area': [[73.35, 65.05], [78.25, 64.4], [79.94, 81.87], [70.53, 83.41], [69.49, 70.88], [70.9, 70], [72.13, 69.12], [73.16, 67.14]],
+ 'centers': [[75.14, 73.52]],
+ 'links': ["1#46#1", "1#6#1", "1#16#1", "1#9#1", "1#14#1", "1#15#1", "1#10#1", "1#19#1", "1#11#1", "1#29#1", "1#38#1", "1#34#1", "1#30#1", "1#39#1", "1#35#1", "1#36#1", "1#40#1", "1#37#1", "1#32#1", "1#33#1"],
+ 'level': 1
+ },
+ "42": {
+ 'area': [[0.09, 74.51], [1.04, 74.18], [1.41, 79.45], [2.92, 84.07], [5.08, 87.47], [7.25, 89.01], [9.6, 90.22], [12.9, 90.66], [15.07, 90.22], [11.77, 99.78], [0.09, 99.78]],
+ 'centers': [[4.43, 92.53]],
+ 'links': ["1#43#1", "1#44#1", "1#45#1", "1#46#1", "1#28#1"],
+ 'level': 0
+ },
+ "43": {
+ 'area': [[15.25, 90.11], [11.96, 99.78], [38.89, 99.78], [31.83, 89.67], [23.26, 90]],
+ 'centers': [[23.73, 94.29]],
+ 'links': ["1#42#1", "1#44#1", "1#45#1", "1#46#1", "1#28#1", "1#38#1"],
+ 'level': 0
+ },
+ "44": {
+ 'area': [[32.11, 89.78], [39.36, 99.89], [60.73, 99.78], [55.08, 87.14]],
+ 'centers': [[46.89, 93.85]],
+ 'links': ["1#42#1", "1#43#1", "1#45#1", "1#46#1", "1#47#1", "1#39#1", "1#40#1"],
+ 'level': 0
+ },
+ "45": {
+ 'area': [[55.27, 87.03], [61.02, 99.67], [81.07, 99.78], [70.06, 85.16]],
+ 'centers': [[66.85, 92.42]],
+ 'links': ["1#42#1", "1#43#1", "1#44#1", "1#46#1", "1#47#1", "1#40#1"],
+ 'level': 0
+ },
+ "46": {
+ 'area': [[70.24, 84.95], [81.54, 99.89], [100, 99.89], [100, 96.37], [83.05, 83.08]],
+ 'centers': [[84.18, 91.98]],
+ 'links': ["1#42#1", "1#43#1", "1#44#1", "1#45#1", "1#47#1", "1#41#1", "1#33#1"],
+ 'level': 0
+ },
+ "47": {
+ 'area': [[83.62, 83.08], [100, 95.82], [99.91, 67.47], [96.99, 67.58], [94.07, 71.65], [92.84, 75.27], [90.77, 78.57], [88.98, 80.88], [88.04, 81.65]],
+ 'centers': [[96.42, 80.11]],
+ 'links': ["1#44#1", "1#45#1", "1#46#1", "1#33#1"],
+ 'level': 0
+ },
+ "48": {
+ 'area': [[0.38, 0.22], [1.51, 0.22], [13.37, 14.73], [4.52, 17.36], [2.07, 22.53], [2.26, 30.66], [0.19, 31.87]],
+ 'centers': [[3.67, 12.2]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#6#1", "1#4#1"],
+ 'level': 0
+ }
+ }
+};
diff --git a/maps/data/Ships/los.jpg b/maps/data/Ships/los.jpg
new file mode 100644
index 00000000..66d6d833
Binary files /dev/null and b/maps/data/Ships/los.jpg differ
diff --git a/maps/data/Ships/thumb.png b/maps/data/Ships/thumb.png
new file mode 100644
index 00000000..090941c7
Binary files /dev/null and b/maps/data/Ships/thumb.png differ
diff --git a/maps/data/Swamp/board.png b/maps/data/Swamp/board.png
new file mode 100644
index 00000000..b1111161
Binary files /dev/null and b/maps/data/Swamp/board.png differ
diff --git a/maps/data/Swamp/data.js b/maps/data/Swamp/data.js
new file mode 100644
index 00000000..5786c2ad
--- /dev/null
+++ b/maps/data/Swamp/data.js
@@ -0,0 +1,389 @@
+Swamp = {
+ description: {
+ title: {
+ 'fr': "Marais",
+ 'en': "Swamp"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'stretchgoal',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Sortir de l'eau",
+ 'en': "Water areas"
+ },
+ description: {
+ 'fr': "quitter une zone d’eau coûte 1 point de mouvement supplémentaire. Quitter une zone d’eau pour monter directement sur une zone de bois coûte 2 points de mouvement supplémentaires.",
+ 'en': "a character must spend 1 extra movement point to move out of a water area. A character can move from a water area to an adjacent wood area by spending 2 extra movement points."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Saut",
+ 'en': "Leap"
+ },
+ description: {
+ 'fr': "il n’est pas possible de sauter la zone d’eau centrale autour de l’autel en un seul saut. Un arrêt intermédiaire sur l’autel est obligatoire",
+ 'en': "leaping over the water area around the altar in a single movement is not possible. The character must stop in the altar area before performing a second leap."
+ },
+ coordinates: [[45,55]]
+ }, {
+ title: {
+ 'fr': "Huttes en bois",
+ 'en': "Wooden Huts"
+ },
+ description: {
+ 'fr': "les cloisons des huttes peuvent être défoncées par la compétence Défoncer les cloisons.",
+ 'en': "a character with Wall Wrecker can use it to move across the wall of one of the wooden huts."
+ },
+ coordinates: [[15,45], [27,40], [67,40], [15,85], [45,85], [87,85]]
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/24-sg-carte-marais/",
+ 'en': "https://the-overlord.net/index.php?/topic/30-sg-swamp/"
+ },
+ losFile: true
+ },
+ size: [1061, 910],
+ zones: {
+ "1": {
+ 'area': [[5.56, 0], [6.79, 16.92], [24.69, 31.43], [24.98, 21.32], [20.45, 20.99], [19.79, 14.07], [25.16, 13.74], [19.32, 0.11]],
+ 'centers': [[15.55, 11.21]],
+ 'links': ["1#6#1", "1#2#1", "1#43#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#44#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#49#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#25#1", "1#32#1", "1#34#1", "1#41#1"],
+ 'level': 0
+ },
+ "2": {
+ 'area': [[24.79, 12.64], [25.07, 8.68], [25.92, 8.79], [26.3, 9.56], [26.96, 9.56], [27.14, 9.45], [27.52, 8.68], [27.9, 8.68], [28.46, 8.13], [28.84, 8.13], [29.5, 8.24], [30.25, 8.57], [30.63, 9.56], [30.91, 10.22], [30.63, 12.64], [34.4, 12.09], [34.21, 4.51], [35.06, 4.4], [35.16, 5.05], [35.63, 5.16], [35.72, 4.18], [35.91, 4.18], [36.76, 4.95], [36.76, 4.07], [37.61, 4.07], [37.89, 4.29], [38.45, 4.51], [38.93, 4.73], [38.93, 3.85], [40.15, 3.96], [40.53, 5.16], [40.81, 5.27], [42.04, 5.49], [42.7, 5.38], [42.6, 0.33], [19.7, 0.22]],
+ 'centers': [[31.76, 4.18]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#28#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#22#1", "1#25#1", "1#47#1", "1#33a#1", "1#34#1", "1#41#1"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[42.51, 0], [42.98, 5.27], [44.02, 5.71], [45.05, 5.71], [45.43, 6.26], [45.71, 6.04], [45.71, 5.38], [46.47, 5.27], [46.65, 6.04], [47.31, 6.04], [47.6, 6.04], [47.6, 5.38], [48.16, 5.38], [48.54, 5.93], [48.63, 6.15], [48.82, 5.38], [49.48, 5.38], [50.05, 7.47], [52.5, 7.8], [52.5, 7.36], [54.57, 7.47], [55.14, 10.66], [56.17, 11.43], [62.39, 12.09], [62.02, 0.11]],
+ 'centers': [[53.35, 3.63]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#28#1", "1#31#1", "1#40#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#46#1", "1#42#1", "1#21#1", "1#47#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[62.3, 0.22], [62.11, 11.98], [63.43, 11.87], [64, 11.98], [64.75, 12.42], [65.41, 11.76], [65.79, 11.87], [66.35, 12.2], [67.58, 12.31], [67.58, 11.98], [68.05, 11.87], [74.46, 11.76], [75.31, 11.65], [75.4, 8.35], [76.81, 7.36], [77.95, 6.15], [76.63, 0]],
+ 'centers': [[68.99, 5.16]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#31#1", "1#40#1", "1#38#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#46#1", "1#32#1", "1#33a#1", "1#41#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[76.63, 0.22], [77.95, 5.71], [78.42, 5.27], [80.87, 5.05], [81.81, 3.63], [83.03, 3.74], [83.22, 5.38], [84.07, 5.27], [84.54, 4.95], [84.73, 4.95], [84.92, 4.95], [88.31, 5.38], [89.16, 6.26], [92.18, 11.1], [93.12, 12.53], [93.59, 20.88], [99.72, 20.88], [99.81, 0]],
+ 'centers': [[94.82, 5.05]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#16#1", "1#14#1", "1#23#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[0.09, 0], [5.56, 0], [6.6, 17.03], [24.88, 31.32], [20.17, 36.15], [11.12, 36.48], [8.11, 41.32], [8.01, 51.54], [0, 51.43]],
+ 'centers': [[6.6, 21.65]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#29#1", "1#39#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#16#1", "1#14#1", "1#25#1"],
+ 'level': 0
+ },
+ "7": {
+ 'area': [[20.08, 14.07], [20.92, 20.99], [25.07, 21.43], [29.97, 20.66], [34.68, 20.11], [34.21, 12.53], [30.25, 12.97], [30.44, 8.68], [28.65, 7.91], [28.09, 8.57], [27.43, 8.9], [27.43, 9.45], [26.39, 9.56], [26.3, 9.12], [25.45, 8.79], [24.79, 13.3]],
+ 'centers': [[28.09, 16.26]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#44#1", "1#54#1", "1#48#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#19#1", "1#34#1", "1#33a#1", "1#22#1", "1#25#1"],
+ 'level': 0
+ },
+ "8": {
+ 'area': [[35.06, 25.27], [34.4, 4.73], [35.34, 5.6], [35.63, 4.18], [36, 4.18], [36.76, 5.71], [36.95, 3.85], [37.32, 3.96], [38.93, 5.27], [38.93, 4.18], [40.15, 4.4], [40.9, 5.82], [43.26, 6.48], [44.2, 5.82], [45.24, 6.04], [45.81, 7.14], [45.81, 5.49], [46.47, 5.6], [46.84, 6.59], [47.69, 7.25], [47.88, 5.6], [48.44, 5.6], [48.73, 6.81], [49.1, 5.6], [49.39, 6.92], [52.31, 7.8], [54.67, 8.24], [54.67, 11.65], [55.61, 11.87], [55.7, 19.67], [54.85, 22.64], [49.58, 28.35], [41.09, 27.14], [37.13, 26.81], [37.04, 25.71]],
+ 'centers': [[44.67, 15.16]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#28#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#46#1", "1#42#1", "1#34#1", "1#32#1", "1#33a#1", "1#41#1", "1#21#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[55.8, 12.09], [55.61, 19.67], [66.07, 19.78], [66.07, 12.31], [65.22, 11.76], [64.56, 12.53], [63.62, 11.98], [62.77, 11.87], [62.39, 12.2], [61.17, 12.2], [61.07, 11.76]],
+ 'centers': [[60.79, 15.6]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#28#1", "1#31#1", "1#40#1", "1#38#1", "1#7#1", "1#12#1", "1#8#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#46#1", "1#42#1", "1#34#1", "1#32#1", "1#33a#1", "1#41#1", "1#47#1"],
+ 'level': 0
+ },
+ "10": {
+ 'area': [[66.54, 12.42], [66.26, 19.78], [75.4, 20], [75.59, 12.53], [74.18, 12.31], [72.86, 11.98], [71.54, 12.09], [71.07, 11.87], [67.58, 11.98]],
+ 'centers': [[70.69, 15.6]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#31#1", "1#38#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#32#1"],
+ 'level': 0
+ },
+ "11": {
+ 'area': [[75.68, 8.35], [75.78, 20.77], [76.15, 21.54], [76.44, 22.86], [80.87, 24.62], [88.78, 24.51], [89.92, 23.85], [90.1, 22.2], [90.86, 22.31], [91.14, 23.41], [92.55, 22.64], [93.12, 20.33], [92.84, 12.2], [89.07, 6.37], [88.22, 6.7], [87.28, 5.6], [85.96, 5.16], [84.45, 4.95], [83.03, 5.49], [82.85, 3.63], [81.72, 3.52], [81.62, 4.4], [79.36, 5.27], [78.98, 6.26], [78.89, 7.47], [78.51, 6.48], [77.85, 6.48], [77.66, 7.03], [77.1, 7.47], [75.87, 7.58]],
+ 'centers': [[84.45, 13.74]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#16#1", "1#14#1", "1#23#1"],
+ 'level': 0
+ },
+ "12": {
+ 'area': [[25.07, 21.43], [30.35, 20.88], [30.54, 33.96], [25.64, 33.85], [25.07, 32.86]],
+ 'centers': [[27.71, 26.92]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#18#1", "1#20#1", "1#44#1", "1#7#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#34#1", "1#32#1", "1#22#1", "1#25#1", "1#47#1", "1#37#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[30.73, 20.88], [34.78, 20.55], [34.78, 25.38], [36.19, 25.93], [37.13, 25.93], [37.23, 27.03], [40.81, 27.47], [40.9, 36.48], [34.78, 36.48], [31.67, 32.2], [30.63, 32.2]],
+ 'centers': [[36.1, 30.55]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#15#1", "1#17#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#25#1", "1#47#1", "1#46#1", "1#40#1", "1#37#1"],
+ 'level': 0
+ },
+ "14": {
+ 'area': [[41.56, 27.03], [49.2, 28.68], [49.58, 36.7], [41, 36.59]],
+ 'centers': [[44.86, 31.98]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#31#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#24#1", "1#23#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "15": {
+ 'area': [[49.58, 28.79], [55.23, 34.84], [54.57, 36.92], [49.67, 36.81]],
+ 'centers': [[51.56, 34.18]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#17#1", "1#39#1", "1#31#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[49.76, 28.68], [54.85, 22.97], [60.7, 29.34], [55.33, 34.73]],
+ 'centers': [[54.95, 28.68]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#20#1", "1#31#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#49#1", "1#43#1", "1#35#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[55.89, 22.86], [61.83, 29.67], [68.52, 30.22], [68.05, 29.34], [68.52, 28.79], [69.37, 29.78], [71.54, 20.66], [56.27, 20.33], [55.98, 21.1], [55.23, 21.1], [55.04, 21.87], [55.61, 21.87]],
+ 'centers': [[64, 24.73]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#18#1", "1#20#1", "1#28#1", "1#39#1", "1#31#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#32#1"],
+ 'level': 0
+ },
+ "18": {
+ 'area': [[69.75, 30.11], [71.82, 20.11], [75.49, 20], [75.78, 21.32], [76.06, 21.54], [76.53, 22.64], [80.68, 25.27], [81.15, 35.6], [74.55, 35.38]],
+ 'centers': [[75.68, 28.68]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#17#1", "1#20#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1"],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[81.06, 24.51], [88.69, 24.29], [88.5, 34.4], [88.22, 35.6], [87.94, 36.26], [87.84, 37.25], [87.65, 39.67], [81.24, 39.78], [81.43, 38.02], [81.43, 37.36], [81.53, 35.27], [80.96, 33.52], [81.24, 32.2], [81.15, 30.44], [81.06, 29.01]],
+ 'centers': [[84.83, 30.66]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1"],
+ 'level': 0
+ },
+ "20": {
+ 'area': [[93.12, 20.99], [99.91, 21.1], [99.81, 35.38], [88.6, 35.49], [88.78, 35.05], [88.88, 25.38], [89.73, 25.38], [90.1, 22.75], [91.05, 22.53], [91.05, 23.19], [92.18, 23.3], [92.46, 22.31], [92.93, 22.2]],
+ 'centers': [[94.63, 28.57]],
+ 'links': ["1#6#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#17#1", "1#18#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#42#1", "1#47#1"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[8.86, 40], [10.65, 37.14], [21.49, 37.58], [24.22, 46.92], [18, 54.29], [12.91, 54.62], [9.05, 50.66]],
+ 'centers': [[15.55, 45.05]],
+ 'links': ["1#3#1", "1#15#1", "1#8#1", "1#24#1", "1#23#1", "1#30#1", "1#34#1", "1#22#1", "1#25#1", "1#45#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[21.49, 37.47], [24.51, 46.92], [30.73, 47.8], [32.14, 47.8], [32.14, 46.92], [33.08, 46.81], [33.18, 45.93], [35.63, 44.29], [35.34, 37.91], [34.12, 37.91], [31.1, 33.96], [25.45, 33.96]],
+ 'centers': [[28.09, 40.11]],
+ 'links': ["1#33b#1", "1#2#1", "1#15#1", "1#36#1", "1#44#1", "1#48#1", "1#7#1", "1#12#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#24#1", "1#23#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#25#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[45.52, 36.81], [45.71, 45.05], [45.71, 45.82], [44.49, 45.93], [43.92, 45.05], [38.45, 45.05], [35.82, 45.6], [35.16, 37.58], [36.66, 37.69], [36.85, 36.92], [37.42, 37.03], [37.98, 37.91], [38.74, 37.91], [38.83, 36.81], [40.43, 36.59], [40.62, 37.8], [41.28, 36.92]],
+ 'centers': [[40.34, 40.66]],
+ 'links': ["1#33b#1", "1#30#1", "1#1#1", "1#2#1", "1#36#1", "1#3#1", "1#4#1", "1#5#1", "1#13#1", "1#15#1", "1#17#1", "1#31#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[45.9, 36.92], [54.38, 37.03], [54.57, 44.73], [54.01, 45.16], [53.16, 45.49], [53.06, 44.51], [52.21, 45.05], [51.37, 44.84], [47.97, 44.84], [47.97, 45.38], [47.5, 45.38], [45.71, 45.05]],
+ 'centers': [[49.95, 40.44]],
+ 'links': ["1#33b#1", "1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#13#1", "1#15#1", "1#17#1", "1#39#1", "1#31#1", "1#40#1", "1#44#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#22#1", "1#25#1", "1#47#1", "1#37#1"],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[54.76, 38.02], [54.95, 44.07], [56.55, 45.82], [58.34, 46.81], [59.1, 47.8], [60.51, 47.91], [60.7, 48.9], [61.26, 49.67], [61.55, 51.65], [67.2, 51.98], [71.54, 45.6], [72.01, 36.7], [69.09, 32.64], [60.98, 29.56], [55.61, 34.95], [54.76, 36.59]],
+ 'centers': [[63.43, 40.55]],
+ 'links': ["1#33b#1", "1#6#1", "1#1#1", "1#2#1", "1#13#1", "1#15#1", "1#39#1", "1#31#1", "1#40#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#22#1", "1#47#1"],
+ 'level': 0
+ },
+ "26": {
+ 'area': [[74.55, 35.49], [81.43, 35.71], [82.47, 48.68], [71.72, 48.46], [74.18, 45.49], [74.18, 44.4], [74.08, 35.93]],
+ 'centers': [[77.47, 41.54]],
+ 'links': ["1#4#1", "1#5#1", "1#18#1", "1#20#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[81.24, 39.78], [81.72, 42.09], [82.09, 43.3], [82.28, 45.27], [82.47, 47.47], [82.66, 49.56], [82.94, 52.64], [83.03, 55.82], [86.9, 55.38], [87.18, 51.98], [87.37, 50.11], [87.46, 48.13], [87.65, 39.56]],
+ 'centers': [[84.83, 47.14]],
+ 'links': ["1#3#1", "1#4#1", "1#5#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#40#1", "1#47#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#42#1", "1#41#1"],
+ 'level': 0
+ },
+ "28": {
+ 'area': [[88.5, 35.71], [99.81, 35.6], [99.91, 48.46], [87.56, 48.46], [87.65, 43.63], [87.94, 40.11]],
+ 'centers': [[93.87, 41.43]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#5#1", "1#17#1", "1#18#1", "1#20#1", "1#26#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#8#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#42#1", "1#41#1", "1#47#1", "1#50#1"],
+ 'level': 0
+ },
+ "29": {
+ 'area': [[0.09, 51.65], [7.92, 51.76], [11.5, 55.71], [11.4, 67.14], [0.09, 67.14]],
+ 'centers': [[2.54, 59.78]],
+ 'links': ["1#33b#1", "1#49#1", "1#6#1", "1#37#1", "1#43#1", "1#35#1", "1#30#1", "1#42#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#34#1", "1#33a#1", "1#41#1", "1#53#1"],
+ 'level': 0
+ },
+ "30": {
+ 'area': [[18.1, 54.73], [11.59, 55.05], [11.69, 58.68], [11.31, 58.79], [11.31, 59.56], [11.5, 60.44], [11.4, 65.05], [11.69, 66.81], [11.78, 69.45], [11.12, 69.89], [11.03, 72.86], [11.88, 73.08], [12.06, 75.27], [17.91, 73.96], [17.62, 71.76], [18.38, 70.66], [18.47, 69.78], [19.04, 69.12], [19.13, 68.13], [18, 67.36], [18.1, 66.59], [18.47, 66.26], [18.38, 64.95], [17.91, 64.84], [18.19, 60.44], [18.28, 59.01], [17.91, 56.92], [18.1, 56.7]],
+ 'centers': [[14.7, 63.41]],
+ 'links': ["1#33b#1", "1#23#1", "1#49#1", "1#15#1", "1#17#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#53#1", "1#10#1", "1#37#1", "1#43#1", "1#35#1", "1#16#1", "1#24#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#21#1", "1#25#1", "1#45#1"],
+ 'level': 0
+ },
+ "31": {
+ 'area': [[22.43, 74.18], [35.63, 59.67], [31.01, 49.01], [24.69, 48.79], [19.04, 53.74], [19.04, 54.62], [18.47, 55.16], [18.38, 56.7], [18.1, 56.81], [18.38, 60], [18.19, 60.22], [18.28, 61.65], [18.47, 63.41], [18.47, 64.4], [18.57, 65.82], [18.57, 66.26], [18.66, 67.91], [19.32, 67.91], [19.42, 69.34], [18.85, 69.45], [18.85, 70.33]],
+ 'centers': [[26.01, 59.89]],
+ 'links': ["1#33b#1", "1#3#1", "1#4#1", "1#15#1", "1#17#1", "1#29#1", "1#39#1", "1#9#1", "1#10#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#32#1", "1#34#1", "1#33a#1", "1#41#1", "1#25#1"],
+ 'level': 0
+ },
+ "32": {
+ 'area': [[30.82, 47.91], [32.23, 47.91], [32.33, 47.03], [33.18, 47.03], [33.27, 46.04], [33.74, 46.04], [34.12, 45.38], [35.16, 46.04], [36.57, 46.37], [37.61, 46.81], [38.36, 46.81], [39.21, 47.25], [39.49, 47.58], [39.3, 47.91], [39.68, 48.79], [39.3, 49.23], [39.21, 50.22], [38.55, 50.66], [38.27, 51.21], [37.42, 51.65], [37.13, 52.2], [36.85, 52.75], [36.57, 53.3], [35.91, 53.41], [32.52, 49.89], [31.48, 49.01], [30.82, 48.57]],
+ 'centers': [[35.44, 49.01]],
+ 'links': ["1#33b#1", "1#1#1", "1#3#1", "1#4#1", "1#13#1", "1#15#1", "1#17#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#12#1", "1#8#1", "1#9#1", "1#10#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#34#1", "1#33a#1", "1#41#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "33a": {
+ 'area': [[31.86, 49.67], [41, 72.2], [41.85, 72.2], [41.94, 65.93], [47.97, 65.93], [47.88, 72.2], [49.58, 72.31], [52.78, 67.91], [52.78, 67.14], [51.84, 66.37], [52.59, 65.05], [52.12, 64.62], [52.78, 63.19], [53.82, 64.07], [54.29, 63.52], [54.48, 62.97], [54.85, 62.31], [54.38, 61.54], [55.14, 60.44], [56.55, 61.54], [57.49, 61.54], [59.47, 59.01], [60.79, 60.11], [60.7, 50], [60.13, 50.22], [59.57, 50.66], [59.38, 51.1], [59.19, 51.76], [58.72, 52.53], [58.15, 53.19], [57.87, 53.74], [57.59, 54.4], [57.12, 54.4], [56.55, 54.51], [56.27, 55.27], [55.23, 55.38], [54.48, 54.51], [54.01, 54.18], [53.63, 53.52], [53.35, 53.08], [52.5, 52.09], [51.65, 50.99], [51.65, 50.33], [52.03, 49.78], [52.69, 49.12], [53.16, 47.91], [54.19, 47.14], [55.23, 46.59], [56.17, 45.49], [54.76, 45.49], [53.44, 45.71], [52.5, 45.6], [48.07, 45.38], [47.5, 45.71], [46.56, 45.82], [46.47, 45.16], [45.71, 45.38], [45.71, 46.04], [44.39, 46.04], [44.2, 45.49], [39.59, 45.49], [37.13, 46.04], [35.53, 46.15], [36.95, 46.26], [37.89, 46.59], [38.74, 47.03], [39.4, 47.36], [39.49, 48.46], [39.49, 49.23], [39.4, 50.22], [39.02, 50.44], [38.36, 50.99], [38.27, 51.21], [37.89, 51.76], [37.32, 52.09], [36.85, 52.97], [36.38, 53.63], [35.63, 53.52], [34.68, 52.42], [34.31, 51.65], [41.66, 57.14]],
+ 'centers': [[45.43, 56.59]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#7#1", "1#8#1", "1#9#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#22#1", "1#23#1", "1#24#1", "1#25#1", "1#29#1", "1#30#1", "1#31#1", "1#32#1", "1#33b#1", "1#34#1", "1#35#1", "1#36#1", "1#37#1", "1#38#1", "1#39#1", "1#40#1", "1#41#1", "1#42#1", "1#43#1", "1#44#1", "1#46#1", "1#47#1", "1#48#1", "1#49#1", "1#54#1"],
+ 'level': 0
+ },
+ "33b": {
+ 'area': [[45.99, 52.86], [46.84, 53.08], [47.6, 53.96], [48.16, 54.95], [48.44, 55.38], [49.1, 55.82], [48.92, 56.48], [48.73, 57.47], [48.16, 58.24], [47.88, 59.01], [47.5, 59.78], [47.22, 60.11], [46.65, 59.78], [46.18, 59.78], [45.81, 59.89], [45.43, 59.67], [44.77, 59.67], [44.3, 60.11], [43.83, 60.11], [43.45, 60.11], [43.17, 59.78], [42.79, 59.01], [42.22, 58.35], [42.04, 57.8], [42.04, 57.36], [42.51, 56.37], [43.26, 55.38], [44.02, 54.51], [44.49, 53.96], [45.15, 52.97], [45.52, 52.75]],
+ 'centers': [[45.43, 56.59]],
+ 'links': ["1#2#1", "1#3#1", "1#4#1", "1#7#1", "1#8#1", "1#9#1", "1#13#1", "1#14#1", "1#15#1", "1#16#1", "1#22#1", "1#23#1", "1#24#1", "1#25#1", "1#29#1", "1#30#1", "1#31#1", "1#32#1", "1#33a#1", "1#34#1", "1#35#1", "1#36#1", "1#37#1", "1#38#1", "1#39#1", "1#40#1", "1#41#1", "1#42#1", "1#43#1", "1#44#1", "1#46#1", "1#47#1", "1#48#1", "1#49#1", "1#54#1"],
+ 'level': 0
+ },
+ "34": {
+ 'area': [[51.93, 50.55], [52.21, 50.22], [52.21, 49.89], [52.87, 49.23], [53.25, 48.46], [53.63, 47.69], [54.19, 47.47], [55.04, 47.14], [55.51, 46.59], [56.17, 46.04], [56.64, 45.82], [57.3, 46.37], [58.06, 46.92], [58.53, 47.25], [59.19, 48.02], [60.04, 48.24], [60.32, 48.02], [60.41, 49.01], [60.7, 49.45], [60.23, 49.78], [59.85, 50.55], [59.38, 50.77], [59.1, 51.21], [59.19, 51.87], [58.81, 52.53], [58.34, 53.3], [57.96, 53.63], [57.78, 54.07], [57.49, 54.07], [57.21, 54.29], [56.46, 54.62], [56.08, 55.27], [55.61, 55.38], [54.95, 54.62], [54.29, 53.96], [53.82, 53.63], [53.25, 53.3], [52.12, 51.76], [51.84, 50.99]],
+ 'centers': [[55.14, 51.21]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#13#1", "1#15#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#9#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#33a#1", "1#33b#1", "1#41#1", "1#21#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "35": {
+ 'area': [[57.49, 62.2], [59.66, 59.34], [60.79, 60.44], [61.07, 51.76], [67.2, 52.2], [67.3, 64.62], [65.22, 64.18], [65.22, 69.89]],
+ 'centers': [[63.24, 58.35]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#13#1", "1#15#1", "1#20#1", "1#28#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "36": {
+ 'area': [[67.2, 61.32], [80.77, 64.29], [80.96, 63.52], [80.96, 62.64], [80.96, 61.21], [81.15, 57.69], [82.56, 55.6], [83.41, 53.63], [82.75, 51.32], [82.19, 48.57], [71.25, 48.57], [68.14, 51.65], [68.05, 52.53], [67.39, 52.75]],
+ 'centers': [[75.31, 55.16]],
+ 'links': ["1#5#1", "1#18#1", "1#20#1", "1#23#1", "1#26#1", "1#28#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#30#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#47#1"],
+ 'level': 0
+ },
+ "37": {
+ 'area': [[83.03, 55.82], [86.99, 55.82], [86.8, 57.47], [86.52, 59.12], [88.03, 68.13], [89.35, 66.7], [90.29, 68.24], [88.12, 69.89], [88.03, 72.75], [85.11, 74.4], [84.73, 72.53], [81.9, 73.63], [81.62, 72.09], [81.15, 70.66], [80.77, 70], [80.68, 69.12], [81.34, 68.79], [80.87, 68.46], [81.06, 67.91], [81.53, 67.47], [81.15, 66.59], [81.06, 63.96], [81.72, 63.52], [81.43, 63.3], [81.34, 62.86], [81.06, 62.31], [80.96, 61.76], [81.43, 61.32], [81.43, 60.44], [81.34, 57.69], [82.75, 55.93]],
+ 'centers': [[84.35, 62.86]],
+ 'links': ["1#4#1", "1#24#1", "1#5#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#49#1", "1#43#1", "1#35#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#12#1", "1#13#1"],
+ 'level': 0
+ },
+ "38": {
+ 'area': [[87.65, 48.68], [99.91, 48.57], [99.91, 68.9], [93.31, 71.21], [92.08, 69.01], [90.76, 68.35], [89.63, 66.48], [87.84, 67.8], [87.46, 62.64], [87.18, 60.55], [86.9, 58.79], [87.28, 56.81], [87.56, 55.49], [87.37, 51.76], [87.65, 50.99], [87.75, 49.34]],
+ 'centers': [[93.59, 57.91]],
+ 'links': ["1#3#1", "1#4#1", "1#5#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#48#1", "1#9#1", "1#10#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1"],
+ 'level': 0
+ },
+ "39": {
+ 'area': [[0, 67.36], [11.59, 67.36], [11.59, 69.56], [10.84, 69.67], [11.03, 72.86], [2.73, 74.07], [2.92, 75.05], [2.36, 75.27], [2.26, 77.69], [3.49, 77.36], [3.77, 82.97], [0.09, 83.08]],
+ 'centers': [[2.54, 71.1]],
+ 'links': ["1#6#1", "1#15#1", "1#17#1", "1#29#1", "1#37#1", "1#35#1", "1#24#1", "1#30#1", "1#31#1", "1#36#1", "1#38#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#25#1"],
+ 'level': 0
+ },
+ "40": {
+ 'area': [[35.63, 60.11], [22.53, 74.07], [25.35, 76.92], [25.07, 77.36], [27.24, 77.69], [27.52, 78.57], [27.99, 78.57], [28.28, 77.69], [30.35, 77.58], [30.54, 78.24], [31.29, 78.24], [31.39, 77.69], [35.06, 77.8], [35.06, 76.04], [36.1, 77.03], [40.81, 72.53]],
+ 'centers': [[32.7, 70.99]],
+ 'links': ["1#3#1", "1#4#1", "1#13#1", "1#15#1", "1#28#1", "1#29#1", "1#31#1", "1#8#1", "1#9#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#36#1", "1#44#1", "1#38#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#25#1"],
+ 'level': 0
+ },
+ "41": {
+ 'area': [[42.13, 72.42], [43.36, 72.42], [44.2, 72.42], [45.52, 72.53], [47.6, 72.53], [47.79, 71.76], [47.79, 71.1], [47.69, 69.78], [47.6, 68.79], [47.69, 67.91], [47.79, 66.15], [47.31, 66.04], [46.94, 66.59], [46.47, 66.26], [45.81, 66.15], [45.33, 66.48], [44.77, 66.48], [44.49, 66.15], [43.92, 66.04], [43.64, 66.15], [43.07, 66.15], [42.51, 66.26], [41.94, 66.48], [42.04, 67.69], [42.13, 69.56]],
+ 'centers': [[44.86, 68.57]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#4#1", "1#13#1", "1#15#1", "1#28#1", "1#29#1", "1#39#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#8#1", "1#9#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "42": {
+ 'area': [[48.92, 74.18], [52.03, 77.25], [55.61, 73.08], [57.49, 72.09], [53.25, 67.47]],
+ 'centers': [[52.12, 71.1]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#13#1", "1#15#1", "1#20#1", "1#28#1", "1#29#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#8#1", "1#9#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "43": {
+ 'area': [[68.14, 73.08], [64.66, 77.8], [52.5, 66.37], [53.16, 65.27], [52.59, 64.62], [52.78, 63.74], [54.48, 64.73], [54.48, 64.18], [54.67, 63.52], [55.33, 62.53], [54.76, 61.87], [55.23, 60.88], [62.58, 67.58]],
+ 'centers': [[59.94, 69.12]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#13#1", "1#15#1", "1#20#1", "1#46#1", "1#26#1", "1#28#1", "1#29#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#25#1", "1#47#1"],
+ 'level': 0
+ },
+ "44": {
+ 'area': [[67.2, 61.43], [80.58, 64.51], [80.77, 70.22], [81.43, 70.77], [81.43, 71.87], [80.96, 72.31], [80.58, 72.64], [80.21, 73.08], [79.64, 73.63], [79.74, 74.4], [79.26, 74.95], [78.98, 74.4], [77.76, 74.95], [78.13, 76.26], [77.47, 76.37], [76.91, 76.04], [76.34, 76.26], [76.25, 77.36], [73.23, 78.46], [64.94, 70], [65.32, 64.62], [66.82, 64.62]],
+ 'centers': [[73.23, 69.23]],
+ 'links': ["1#1#1", "1#2#1", "1#5#1", "1#13#1", "1#15#1", "1#18#1", "1#20#1", "1#26#1", "1#28#1", "1#29#1", "1#31#1", "1#40#1", "1#36#1", "1#38#1", "1#48#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#7#1", "1#12#1", "1#8#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1"],
+ 'level': 0
+ },
+ "45": {
+ 'area': [[5.37, 76.26], [19.13, 73.96], [23.85, 78.35], [24.51, 90.77], [6.69, 93.52]],
+ 'centers': [[14.33, 83.08]],
+ 'links': ["1#53#1", "1#30#1", "1#46#1", "1#21#1", "1#47#1"],
+ 'level': 0
+ },
+ "46": {
+ 'area': [[24.32, 78.46], [24.51, 88.13], [25.26, 87.8], [25.35, 86.92], [25.82, 87.69], [26.39, 87.69], [26.67, 87.03], [27.05, 86.92], [27.62, 87.58], [28.28, 87.69], [28.75, 86.92], [29.31, 86.92], [29.88, 87.47], [30.73, 87.69], [31.1, 87.03], [31.57, 87.03], [32.05, 87.47], [32.99, 87.25], [34.12, 86.7], [36, 86.7], [36, 78.46], [34.4, 77.8], [31.48, 77.91], [31.39, 78.35], [30.35, 78.35], [30.35, 77.69], [29.31, 77.58], [28.28, 77.47], [28.18, 78.24], [27.14, 78.35], [27.05, 77.91], [25.07, 77.8]],
+ 'centers': [[29.88, 81.87]],
+ 'links': ["1#3#1", "1#4#1", "1#15#1", "1#13#1", "1#43#1", "1#31#1", "1#40#1", "1#44#1", "1#38#1", "1#53#1", "1#8#1", "1#9#1", "1#37#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#30#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#25#1", "1#45#1", "1#47#1"],
+ 'level': 0
+ },
+ "47": {
+ 'area': [[36.1, 79.01], [36.57, 86.7], [42.7, 90.77], [48.44, 90.88], [51.93, 86.81], [52.21, 77.58], [48.92, 74.4], [41.09, 74.07]],
+ 'centers': [[44.11, 81.32]],
+ 'links': ["1#2#1", "1#3#1", "1#13#1", "1#15#1", "1#20#1", "1#28#1", "1#27#1", "1#36#1", "1#12#1", "1#8#1", "1#9#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#46#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#25#1", "1#45#1"],
+ 'level': 0
+ },
+ "48": {
+ 'area': [[53.44, 86.59], [68.33, 86.37], [67.2, 84.29], [65.98, 83.85], [66.73, 83.3], [66.64, 82.64], [68.05, 81.98], [60.13, 73.63], [53.82, 76.81]],
+ 'centers': [[60.23, 81.54]],
+ 'links': ["1#1#1", "1#2#1", "1#3#1", "1#5#1", "1#13#1", "1#15#1", "1#20#1", "1#26#1", "1#28#1", "1#36#1", "1#44#1", "1#38#1", "1#54#1", "1#7#1", "1#8#1", "1#19#1", "1#27#1", "1#37#1", "1#49#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#25#1"],
+ 'level': 0
+ },
+ "49": {
+ 'area': [[68.14, 73.19], [64.66, 77.8], [68.52, 81.54], [68.8, 81.87], [71.63, 82.75], [74.18, 81.21], [72.67, 80.11], [72.38, 79.12], [73.14, 78.79]],
+ 'centers': [[69.37, 78.46]],
+ 'links': ["1#1#1", "1#2#1", "1#5#1", "1#13#1", "1#15#1", "1#20#1", "1#26#1", "1#28#1", "1#31#1", "1#40#1", "1#36#1", "1#44#1", "1#38#1", "1#48#1", "1#7#1", "1#12#1", "1#8#1", "1#11#1", "1#19#1", "1#27#1", "1#37#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#32#1", "1#34#1", "1#33a#1", "1#33b#1", "1#41#1", "1#22#1", "1#25#1", "1#30#1", "1#29#1"],
+ 'level': 0
+ },
+ "50": {
+ 'area': [[69.46, 84.73], [91.05, 70.99], [95.95, 81.98], [75.97, 95.71]],
+ 'centers': [[83.03, 82.86]],
+ 'links': ["1#28#1"],
+ 'level': 0
+ },
+ "51": {
+ 'area': [[0, 83.41], [4.15, 83.3], [4.71, 96.92], [13.2, 95.71], [13.38, 99.78], [0, 99.78]],
+ 'centers': [[2.54, 97.14]],
+ 'links': ["1#52#1", "1#53#1", "1#54#1"],
+ 'level': 0
+ },
+ "52": {
+ 'area': [[13.57, 95.6], [13.95, 99.89], [30.16, 99.67], [30.25, 88.02], [29.69, 87.69], [29.41, 87.14], [28.56, 87.36], [28.56, 87.69], [27.8, 87.8], [27.52, 87.36], [26.77, 87.47], [26.67, 87.8], [26.3, 88.02], [24.79, 88.24], [25.16, 92.09], [25.73, 92.53], [25.73, 93.74]],
+ 'centers': [[22.53, 95.82]],
+ 'links': ["1#51#1", "1#53#1", "1#54#1"],
+ 'level': 0
+ },
+ "53": {
+ 'area': [[30.35, 87.58], [30.35, 99.89], [52.12, 99.78], [50.14, 92.31], [42.98, 92.31], [42.7, 93.08], [42.13, 93.08], [42.41, 92.31], [36.66, 87.91], [35.82, 88.24], [35.16, 87.69], [35.16, 87.25], [34.31, 87.14], [32.99, 87.36], [31.86, 87.36], [30.91, 86.92]],
+ 'centers': [[40.53, 95.38]],
+ 'links': ["1#51#1", "1#52#1", "1#54#1", "1#30#1", "1#46#1", "1#45#1", "1#29#1"],
+ 'level': 0
+ },
+ "54": {
+ 'area': [[50.14, 91.76], [52.5, 99.89], [74.84, 99.78], [75.21, 99.45], [68.52, 86.92], [53.91, 86.81], [49.86, 90.88]],
+ 'centers': [[61.36, 93.41]],
+ 'links': ["1#2#1", "1#3#1", "1#5#1", "1#13#1", "1#15#1", "1#26#1", "1#36#1", "1#51#1", "1#52#1", "1#53#1", "1#48#1", "1#7#1", "1#8#1", "1#11#1", "1#19#1", "1#43#1", "1#35#1", "1#16#1", "1#14#1", "1#24#1", "1#23#1", "1#42#1", "1#34#1", "1#33a#1", "1#33b#1", "1#25#1"],
+ 'level': 0
+ },
+ "55": {
+ 'area': [[75.21, 99.01], [75.21, 99.67], [99.72, 99.89], [99.91, 69.12], [93.59, 71.32], [98.49, 83.08], [92.55, 87.25], [91.71, 85.16], [88.5, 87.14], [89.54, 90]],
+ 'centers': [[92.55, 94.62]],
+ 'links': [],
+ 'level': 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Swamp/los.jpg b/maps/data/Swamp/los.jpg
new file mode 100644
index 00000000..04e5221f
Binary files /dev/null and b/maps/data/Swamp/los.jpg differ
diff --git a/maps/data/Swamp/thumb.png b/maps/data/Swamp/thumb.png
new file mode 100644
index 00000000..2cd39bce
Binary files /dev/null and b/maps/data/Swamp/thumb.png differ
diff --git a/maps/data/Tower/board.png b/maps/data/Tower/board.png
new file mode 100644
index 00000000..4d2dda40
Binary files /dev/null and b/maps/data/Tower/board.png differ
diff --git a/maps/data/Tower/data.js b/maps/data/Tower/data.js
new file mode 100644
index 00000000..8a990c0c
--- /dev/null
+++ b/maps/data/Tower/data.js
@@ -0,0 +1,320 @@
+Tower = {
+ description: {
+ title: {
+ 'fr': "Tour",
+ 'en': "Tower"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'khitai',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Grand plongeon",
+ 'en': "Dive"
+ },
+ description: {
+ 'fr': "un Héros présent dans les zones peut essayer de sauter dans l’étang en contrebas. Pour cela, il doit se déplacer hors de la case et dépenser 1 point de mouvement supplémentaire pour plonger. Sauter dans l’étang inflige {dice_orange}{dice_orange} sans défense possible et {dice_orange} si la figurine possède la compétence saut.",
+ 'en': "a character in an area marked with the Leap icon may leap in the pond's area of level 1 by spending 1 extra movement point. The character rolls {dice_orange}{dice_orange} for falling damage with no possible defense. If the character has Leap, the character rolls {dice_orange} instead."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Mur de pierre",
+ 'en': "Stone wall"
+ },
+ description: {
+ 'fr': "un personnage disposant de la compétence « Défoncer Parois » ne peut pas défoncer les parois extérieures de la tour et les murs en pierres.",
+ 'en': "a character with Wall Wrecker cannot use it to move across an outer wall of the tower or a stone wall."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Fenêtres",
+ 'en': "Windows"
+ },
+ description: {
+ 'fr': "Les fenêtres au niveau « 2 » et « 3 » donnent une ligne de vue sur les zones à l’extérieur de la tour du niveau « 1 » directement placées à la verticale de celles-ci.",
+ 'en': "The windows on level « 2 » and « 3 » have a line of sight on the areas of level « 1 » directly below them"
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Escalade",
+ 'en': "Climbing"
+ },
+ description: {
+ 'fr': "un personnage ayant la compétence Escalade peut : • passer du niveau « 1 » au niveau « 2 » (et inversement) en grimpant par l’arbre pour 1 point de mouvement supplémentaire, • passer du niveau « 2 » à « 3 » (et inversement) ou du niveau « 3 » à « 4 » (et inversement) en grimpant par l’extérieur de la tour pour 2 points de mouvement supplémentaires.",
+ 'en': "a character with Climb may: • Move from level « 1 » to level « 2 » (and the other way) by climbing the tree and spending 1 extra movement point • Move from level « 2 » to level « 3 » (and the other way) ou from level « 3 » to level « 4 » (and the other way) by climbing the outside walls of the tower and spending 2 extra movement points."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Table et escaliers",
+ 'en': "Table and stairs"
+ },
+ description: {
+ 'fr': "les escaliers donnent un bonus de surplomb sur les zones situées en contrebas. Il est possible de monter sur la table située au niveau « 2 » avec ou sans les compétences Saut ou Escalade pour 1 point de mouvement supplémentaire. Un personnage sur la zone de la table bénéficie du bonus de surplomb pour ses attaques à distance et au corps-à-corps. Il est possible d’attaquer les zones adjacentes au corps-à-corps depuis cette zone avec ou sans la compétence Allonge. La zone de la table ne bloque pas la ligne de vue.",
+ 'en': "the stairs provide an Elevation bonus for Ranged Attacks against an enemy on a lower area. A character with or without Leap or Climb may move onto the table on level"
+ },
+ coordinates: []
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/805-khitai-carte-tour/",
+ 'en': "https://the-overlord.net/index.php?/topic/37-khitai-tower/"
+ },
+ losFile: true
+ },
+ size: [1617, 923],
+ zones: {
+ "1": {
+ 'area': [[10.95, 63.92], [9.34, 61], [12.55, 55.47], [21.95, 55.8], [24.92, 61.11], [23.38, 63.71], [20.9, 59.37], [13.61, 59.37]],
+ 'centers': [[13.05, 57.42], [21.03, 57.42]],
+ 'links': ["2#4#1", "1#3#2"],
+ 'level': 0
+ },
+ "3": {
+ 'area': [[10.82, 86.02], [9.15, 88.84], [6.06, 83.32], [5.88, 66.96], [9.15, 61.43], [10.76, 64.25], [8.29, 68.26], [8.16, 81.37]],
+ 'centers': [[7.24, 81.8], [7.24, 68.04]],
+ 'links': ["1#11#1", "2#1#1", "2#9#1", "1#5#1"],
+ 'level': 0
+ },
+ "4": {
+ 'area': [[25.17, 61.21], [23.5, 64.14], [26.04, 68.69], [26.1, 81.8], [23.69, 86.02], [25.17, 88.73], [28.14, 83.42], [28.32, 66.96]],
+ 'centers': [[26.9, 68.15], [26.96, 81.69]],
+ 'links': ["1#1#2", "2#11#2", "2#7#1", "1#9#1"],
+ 'level': 0
+ },
+ "5": {
+ 'area': [[9.83, 80.39], [17.5, 76.27], [17.87, 75.73], [17.87, 74.97], [17.56, 74.54], [17.32, 74.21], [17.07, 74.21], [16.51, 74.54], [14.35, 74.76], [14.53, 73.56], [14.66, 72.26], [14.97, 71.4], [15.52, 70.64], [16.14, 70.31], [16.82, 69.99], [17.19, 70.1], [17.19, 61.54], [14.22, 61.65], [9.89, 70.42]],
+ 'centers': [[11.56, 74.43]],
+ 'links': ["1#3#1", "1#7#1", "1#9#1", "1#6#1"],
+ 'level': 0
+ },
+ "6": {
+ 'area': [[16.57, 74.32], [17.01, 73.89], [17.44, 73.89], [17.69, 74.21], [17.93, 74.76], [18, 75.41], [17.87, 76.06], [17.69, 76.27], [18.61, 79.52], [18.99, 79.09], [19.36, 78.55], [19.6, 77.68], [19.85, 77.36], [19.91, 76.16], [20.1, 74.86], [19.91, 74.21], [19.79, 73.13], [19.6, 72.37], [19.23, 71.72], [18.74, 71.29], [18.31, 70.53], [17.69, 70.42], [17.01, 70.21], [16.26, 70.53], [15.65, 71.07], [15.15, 71.94], [14.84, 72.81], [14.53, 74.43]],
+ 'centers': [[18.12, 72.48]],
+ 'links': ["1#7#1", "1#9#1", "1#5#1"],
+ 'level': 0
+ },
+ "7": {
+ 'area': [[17.32, 61.65], [17.25, 70.21], [18.06, 70.31], [18.8, 70.75], [19.29, 71.29], [19.67, 72.26], [19.98, 73.24], [20.1, 74.11], [20.16, 75.19], [20.22, 76.49], [19.85, 77.25], [19.67, 78.44], [19.17, 79.09], [18.68, 79.85], [24.61, 80.72], [24.61, 69.88], [20.53, 61.86]],
+ 'centers': [[23.01, 74.32]],
+ 'links': ["1#4#2", "1#9#1", "1#5#1", "1#6#1"],
+ 'level': 0
+ },
+ "9": {
+ 'area': [[17.63, 76.49], [18.37, 79.85], [24.37, 80.5], [20.41, 87.76], [14.16, 87.97], [10.02, 80.72]],
+ 'centers': [[17.07, 82.45]],
+ 'links': ["1#4#1", "1#3#2", "1#7#1", "1#5#1", "1#6#1"],
+ 'level': 0
+ },
+ "11": {
+ 'area': [[23.44, 86.35], [24.98, 89.17], [21.77, 94.91], [12.49, 94.69], [9.34, 89.06], [10.95, 86.35], [13.36, 90.57], [20.84, 90.68]],
+ 'centers': [[13.11, 92.63], [21.03, 92.63]],
+ 'links': ["2#4#2", "1#3#1"],
+ 'level': 0
+ },
+ "13": {
+ 'area': [[11.5, 3.58], [13.61, 6.93], [7.36, 17.77], [7.05, 19.72], [7.73, 22.1], [7.79, 23.84], [5.81, 23.84], [5.75, 18.53]],
+ 'centers': [[9.09, 11.92]],
+ 'links': [],
+ 'level': 1
+ },
+ "14": {
+ 'area': [[13.73, 9.97], [13.85, 7.26], [13.17, 6.07], [21.46, 6.5], [22.7, 8.56], [11.94, 27.41], [8.1, 20.37]],
+ 'centers': [[14.04, 13.43]],
+ 'links': ["1#16#1"],
+ 'level': 0
+ },
+ "15": {
+ 'area': [[23.62, 9.75], [27.89, 17.77], [27.83, 33.8], [18.8, 17.88]],
+ 'centers': [[23.38, 17.23]],
+ 'links': ["1#17#2"],
+ 'level': 0
+ },
+ "16": {
+ 'area': [[11.32, 28.6], [6.99, 36.29], [5.5, 33.69], [5.01, 17.44], [5.63, 18.85], [5.63, 23.84], [7.85, 24.05], [7.92, 21.99]],
+ 'centers': [[7.17, 24.81]],
+ 'links': ["1#17#1", "1#14#1"],
+ 'level': 0
+ },
+ "17": {
+ 'area': [[18.18, 19.07], [22.02, 25.79], [11.5, 43.99], [8.04, 36.94]],
+ 'centers': [[12.62, 34.45], [17.19, 27.74]],
+ 'links': ["2#15#1", "2#19#1", "1#16#1"],
+ 'level': 0
+ },
+ "19": {
+ 'area': [[22.76, 27.41], [27.15, 35.1], [21.15, 44.85], [12.68, 44.75]],
+ 'centers': [[20.04, 38.57]],
+ 'links': ["1#17#2"],
+ 'level': 0
+ },
+ "21": {
+ 'area': [[50.22, 0.11], [50.22, 1.84], [44.65, 1.73], [36.8, 15.06], [36.86, 31.64], [33.4, 31.85], [33.46, 0.11]],
+ 'centers': [[35.13, 30.44], [43.29, 0.98]],
+ 'links': ["1#33#1", "1#31#1", "1#34#1", "1#35#2", "2#22#1"],
+ 'level': 0
+ },
+ "22": {
+ 'area': [[50.4, 0], [50.53, 1.84], [55.47, 1.73], [63.27, 15.28], [63.33, 31.64], [66.6, 31.74], [66.54, 0]],
+ 'centers': [[55.97, 0.87], [64.81, 30.23]],
+ 'links': ["1#21#2", "2#32#1", "2#35#1", "2#34#1"],
+ 'level': 0
+ },
+ "23": {
+ 'area': [[44.96, 6.83], [46.63, 9.75], [43.6, 14.95], [42.24, 12.46]],
+ 'centers': [[44.03, 11.05]],
+ 'links': ["1#26#1", "1#24#1", "1#27#1"],
+ 'level': 0
+ },
+ "24": {
+ 'area': [[45.02, 6.5], [45.64, 5.74], [49.78, 5.74], [49.85, 8.56], [48.11, 10.51], [48.61, 12.13], [46.26, 14.73], [45.7, 13.22], [43.85, 15.17], [46.75, 9.53]],
+ 'centers': [[48.98, 7.48]],
+ 'links': ["1#23#1"],
+ 'level': 0
+ },
+ "25": {
+ 'area': [[41.56, 12.46], [44.22, 16.79], [50.34, 10.4], [50.22, 31.74], [38.9, 31.74], [38.96, 17.33]],
+ 'centers': [[40.94, 22.54]],
+ 'links': ["1#35#1", "1#29#1", "1#26#1", "1#27#1"],
+ 'level': 0
+ },
+ "26": {
+ 'area': [[50.53, 5.74], [54.79, 5.85], [58.44, 11.92], [57.2, 13.98], [57.33, 16.79], [57.88, 17.98], [58.26, 19.07], [58.44, 20.8], [58.38, 31.74], [50.4, 31.74]],
+ 'centers': [[54.36, 22.54]],
+ 'links': ["1#33#1", "1#34#1", "1#29#1", "1#25#1", "1#27#1", "1#23#1"],
+ 'level': 0
+ },
+ "27": {
+ 'area': [[59.31, 11.05], [61.84, 15.93], [61.9, 18.96], [61.29, 27.84], [61.16, 31.74], [58.44, 31.64], [58.87, 21.34], [59, 17.98], [58.69, 17.33], [57.27, 14.3]],
+ 'centers': [[60.17, 22.64]],
+ 'links': ["1#29#1", "1#25#1", "1#26#1", "1#23#1", "1#33#1"],
+ 'level': 1
+ },
+ "29": {
+ 'area': [[39.02, 32.07], [61.1, 32.18], [60.98, 32.83], [54.79, 44.42], [45.21, 44.31], [39.21, 33.8]],
+ 'centers': [[50.22, 37.81]],
+ 'links': ["1#33#1", "1#35#1", "1#34#1", "1#25#1", "1#26#1", "1#27#1"],
+ 'level': 0
+ },
+ "31": {
+ 'area': [[33.46, 32.07], [36.86, 32.18], [36.86, 34.56], [44.53, 48.21], [45.83, 48.21], [45.7, 65.76], [33.46, 65.76]],
+ 'centers': [[39.02, 56.12]],
+ 'links': ["1#33#1", "1#21#1", "1#32#1", "1#35#1", "1#34#1"],
+ 'level': 0
+ },
+ "32": {
+ 'area': [[63.27, 32.07], [66.54, 31.96], [66.54, 65.76], [54.36, 65.66], [54.3, 48], [55.47, 48], [63.14, 34.67]],
+ 'centers': [[60.67, 53.95]],
+ 'links': ["1#33#1", "1#31#1", "1#22#2", "1#35#1", "1#34#1"],
+ 'level': 0
+ },
+ "33": {
+ 'area': [[33.4, 66.09], [45.7, 66.31], [45.76, 99.89], [33.46, 99.78]],
+ 'centers': [[39.02, 82.23]],
+ 'links': ["1#31#1", "1#21#1", "1#32#1", "1#35#1", "1#34#1", "1#36#1", "1#29#1", "1#26#1", "1#27#1"],
+ 'level': 0
+ },
+ "34": {
+ 'area': [[46.13, 44.75], [46.07, 46.59], [45.95, 48.1], [45.89, 99.78], [54.17, 99.89], [54.11, 48.1], [53.93, 45.83], [53.68, 44.64]],
+ 'centers': [[49.97, 84.62]],
+ 'links': ["1#33#1", "1#31#1", "1#21#1", "1#22#2", "1#32#1", "1#35#1", "1#36#1", "1#29#1", "1#26#1"],
+ 'level': 0
+ },
+ "35": {
+ 'area': [[66.6, 66.09], [54.3, 66.2], [54.3, 99.78], [66.36, 99.78], [66.23, 94.04], [56.15, 93.5], [56.15, 75.84], [66.42, 75.84]],
+ 'centers': [[58.38, 71.72], [57.02, 96.97]],
+ 'links': ["1#33#1", "1#31#1", "1#22#2", "1#32#1", "1#34#1", "1#29#1", "1#25#1", "2#21#1"],
+ 'level': 0
+ },
+ "36": {
+ 'area': [[57.51, 90.47], [57.82, 78.76], [64.94, 78.87], [64.94, 90.9]],
+ 'centers': [[61.1, 84.83]],
+ 'links': ["1#33#1", "1#34#1"],
+ 'level': 0
+ },
+ "38": {
+ 'area': [[84.11, 3.14], [84.91, 3.25], [86.21, 3.36], [87.07, 3.79], [88, 4.23], [88.31, 4.88], [88.74, 5.96], [89.42, 8.02], [90.17, 8.99], [90.35, 9.64], [88.31, 12.89], [86.89, 9.64], [86.27, 8.99], [85.9, 8.67], [84.04, 8.67]],
+ 'centers': [[87.26, 6.83]],
+ 'links': ["1#43#1", "1#44#1", "1#40#1", "1#39#1", "1#42#1", "1#41#1"],
+ 'level': 2
+ },
+ "39": {
+ 'area': [[78.85, 5.53], [82.19, 20.15], [80.71, 21.13], [79.84, 21.89], [79.41, 22.97], [79.1, 23.84], [79.16, 25.57], [79.28, 26.65], [79.78, 27.84], [80.21, 28.28], [73.28, 34.78], [72.29, 32.94], [71.92, 17.12]],
+ 'centers': [[76.75, 19.93]],
+ 'links': ["1#43#1", "1#44#1", "1#40#1", "1#42#1", "1#38#1", "1#41#1", "1#21#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "40": {
+ 'area': [[79.22, 5.85], [83.86, 5.53], [83.92, 8.99], [85.9, 9.1], [86.95, 9.86], [88.31, 13.22], [90.35, 10.08], [91.47, 12.24], [89.55, 15.49], [91.9, 19.83], [92.83, 19.72], [93.32, 19.39], [93.88, 18.42], [93.88, 16.9], [93.88, 16.14], [94.19, 17.01], [94.37, 18.09], [94.31, 19.18], [87.26, 22.86], [85.96, 21.34], [84.85, 20.59], [83.92, 20.26], [82.93, 20.26], [82.44, 20.26]],
+ 'centers': [[86.46, 15.17]],
+ 'links': ["1#43#1", "1#44#1", "1#39#1", "1#42#1", "1#38#1", "1#41#1", "1#22#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "41": {
+ 'area': [[91.71, 12.46], [93.57, 16.03], [93.82, 17.12], [93.57, 18.53], [93.26, 19.28], [92.95, 19.5], [92.27, 19.5], [91.84, 19.39], [89.86, 15.71]],
+ 'centers': [[91.9, 16.36]],
+ 'links': ["1#43#1", "1#44#1", "1#40#1", "1#39#1", "1#42#1", "1#38#1"],
+ 'level': 1
+ },
+ "42": {
+ 'area': [[82.31, 20.59], [83.18, 20.59], [84.11, 20.69], [85.03, 21.13], [85.96, 21.78], [86.7, 22.43], [87.32, 23.62], [87.76, 25.24], [87.82, 26.76], [87.51, 27.84], [86.95, 28.6], [86.15, 29.36], [85.16, 29.79], [84.42, 30.12], [83.36, 29.9], [82.56, 29.69], [81.51, 29.25], [80.83, 28.6], [80.15, 27.74], [79.65, 26.54], [79.28, 25.14], [79.34, 23.84], [79.9, 22.64], [80.33, 21.56], [81.26, 20.91]],
+ 'centers': [[83.43, 25.35]],
+ 'links': ["1#43#1", "1#44#1", "1#40#1", "1#39#1", "1#38#1", "1#41#1"],
+ 'level': 2
+ },
+ "43": {
+ 'area': [[73.47, 34.89], [80.27, 28.39], [80.95, 29.14], [81.63, 29.58], [82.62, 30.23], [83.3, 30.23], [84.42, 30.34], [84.66, 30.34], [88.31, 43.01], [87.94, 44.2], [78.6, 43.88]],
+ 'centers': [[81.08, 36.4]],
+ 'links': ["1#44#1", "1#40#1", "1#39#1", "1#42#1", "1#38#1", "1#41#1", "1#31#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "44": {
+ 'area': [[85.03, 30.34], [85.71, 30.01], [86.52, 29.58], [87.07, 28.82], [87.88, 27.41], [88, 26.33], [88.06, 25.03], [87.94, 24.38], [87.45, 23.19], [94.43, 19.5], [93.82, 33.04], [88.5, 42.8]],
+ 'centers': [[89.98, 30.34]],
+ 'links': ["1#43#1", "1#40#1", "1#39#1", "1#42#1", "1#38#1", "1#41#1", "1#32#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "45": {
+ 'area': [[84.17, 55.9], [84.23, 60.35], [87.2, 60.35], [87.69, 59.7], [87.88, 58.72], [87.88, 57.64], [87.69, 56.88], [87.26, 56.23], [87.01, 55.8], [86.7, 55.69]],
+ 'centers': [[85.9, 58.18]],
+ 'links': ["1#47#1"],
+ 'level': 1
+ },
+ "46": {
+ 'area': [[79.72, 55.25], [79.72, 72.48], [79.59, 74.32], [79.59, 75.62], [74.71, 77.03], [72.11, 81.47], [71.99, 66.63], [78.23, 55.58]],
+ 'centers': [[76.5, 69.99]],
+ 'links': ["1#48#1", "1#21#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "47": {
+ 'area': [[94.5, 82.34], [94.81, 66.41], [88.19, 55.47], [86.89, 55.58], [87.51, 56.23], [87.88, 56.99], [88.06, 58.4], [88.06, 59.26], [87.69, 60.13], [87.32, 60.67], [84.11, 60.56], [84.04, 55.69], [80.64, 55.69], [80.4, 70.86], [81.14, 69.77], [81.94, 68.91], [82.62, 68.58], [83.61, 68.58], [84.66, 69.01], [85.96, 70.86], [86.52, 72.16], [86.83, 73.56], [86.89, 75.08], [86.83, 75.84]],
+ 'centers': [[91.09, 75.19]],
+ 'links': ["1#48#1", "1#45#1", "1#22#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "48": {
+ 'area': [[79.72, 76.92], [79.96, 77.79], [80.27, 78.66], [80.52, 79.52], [81.14, 80.07], [81.82, 81.04], [82.44, 81.26], [83.18, 81.37], [83.92, 81.58], [84.54, 81.15], [85.47, 80.61], [85.96, 79.74], [86.27, 78.76], [86.83, 76.92], [94.37, 83.53], [92.27, 86.78], [89.73, 90.57], [87.82, 94.04], [78.66, 94.15], [72.67, 83.64], [76, 78.01]],
+ 'centers': [[83.24, 88.84]],
+ 'links': ["1#46#1", "1#47#1", "1#31#1", "1#32#1"],
+ 'level': 1,
+ 'onewaylinks': true
+ },
+ "49": {
+ 'area': [[80.77, 70.96], [80.95, 71.18], [80.71, 71.72], [80.52, 72.26], [80.4, 73.13], [80.21, 74.11], [80.21, 74.76], [80.27, 75.95], [80.46, 77.03], [80.71, 77.79], [80.95, 78.44], [81.45, 78.98], [81.88, 79.63], [82.5, 80.07], [82.93, 80.28], [83.43, 80.28], [84.29, 80.17], [84.97, 79.63], [85.71, 78.66], [86.15, 77.46], [86.39, 76.06], [86.46, 75.08], [86.46, 73.78], [86.15, 72.91], [85.9, 71.83], [85.47, 70.96], [84.97, 70.42], [84.48, 69.88], [83.86, 69.66], [83.12, 69.56], [82.93, 68.91], [82.19, 69.12], [81.57, 69.77], [81.14, 69.99]],
+ 'centers': [[83.24, 74.76]],
+ 'links': [],
+ 'level': 1
+ }
+ }
+}
diff --git a/maps/data/Tower/los.jpg b/maps/data/Tower/los.jpg
new file mode 100644
index 00000000..1ddb4190
Binary files /dev/null and b/maps/data/Tower/los.jpg differ
diff --git a/maps/data/Tower/thumb.png b/maps/data/Tower/thumb.png
new file mode 100644
index 00000000..317e6bb3
Binary files /dev/null and b/maps/data/Tower/thumb.png differ
diff --git a/maps/data/Underground/board.png b/maps/data/Underground/board.png
new file mode 100644
index 00000000..c5b10020
Binary files /dev/null and b/maps/data/Underground/board.png differ
diff --git a/maps/data/Underground/data.js b/maps/data/Underground/data.js
new file mode 100644
index 00000000..044db875
--- /dev/null
+++ b/maps/data/Underground/data.js
@@ -0,0 +1,308 @@
+Underground = {
+ description: {
+ title: {
+ 'fr': "Grotte",
+ 'en': "Underground"
+ },
+ version: '1.0',
+ format: '1.0',
+ origin: 'stygie',
+ copyright: 'Monolith',
+ rules: [
+ {
+ title: {
+ 'fr': "Emprunter un puits",
+ 'en': "Moving Through a Well"
+ },
+ description: {
+ 'fr': "le plateau est composé de deux niveaux dont le niveau « 1 » est exactement superposé au niveau « 0 ». Le niveau est indiqué par un pictogramme en bas à gauche de chaque niveau. Un personnage, avec ou sans la compétence Escalade, présent dans la zone d’un puits peut l’emprunter pour se déplacer du niveau « 1 » au niveau « 0 » (et inversement) pour un surcoût de 2 points de mouvement. Emprunter un puits permet de se déplacer dans la zone du puits trouvant exactement à sa verticale (au niveau supérieur ou inférieur). Les Scorpions géants peuvent emprunter les puits sans pénalité de mouvement.",
+ 'en': "The game board represents 2 levels of a Stygian temple with level « 1 » being exactly on top of level « 0 ». The level is indicated by an icon on the lower-left corner of each level. A character with or without Climb in the opened well's area may move from level « 1 » to level « 0 » (and the other way) by spending 2 extra movement points. Moving through a well takes a character's model to the area with a well token directly above or below. The Giant Scorpions may move through all the wells, opened or not, with no movement penalty."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Passages secrets",
+ 'en': "Moving Through Secret Passages"
+ },
+ description: {
+ 'fr': "chaque niveau est parcouru par un réseau de passages secrets dont les entrées sont représentées par un pion. Un personnage dans la zone d’un passage secret peut se déplacer vers une autre zone avec un passage secret du même niveau en dépensant 2 points de mouvement supplémentaires. Les unités de l’Overlord et Ikhmet connaissent les recoins du temple et ignorent cette pénalité. Les zones de départ et d’arrivée doivent être vides d’ennemis.",
+ 'en': "each level is traversed by a network of secret passages which entrances are represented by secret passage tokens. A character in an area with a secret passage may move to another area with a secret passage of the same level by spending 2 extra movement points. To move through a secret passage, both areas with the entrance and the exit must be clear of enemies. The Overlord's units and Ikhmet know the nooks of the temple and may move through a secret passage with no movement penalty."
+ },
+ coordinates: []
+ }, {
+ title: {
+ 'fr': "Obscurité",
+ 'en': "Darkness"
+ },
+ description: {
+ 'fr': "le dédale des tunnels est plongé dans une obscurité impénétrable. Il n’existe pas de ligne de vue entre deux zones différentes sur tout le plateau. Toute action nécessitant une ligne de vue ne peut être réalisée que dans une même zone.",
+ 'en': "the maze of tunnels is plunged into an impenetrable darkness. There is no line of sight between two different areas of the whole board. Each action that requires a line of sight can only be performed within a single area."
+ },
+ coordinates: []
+ }
+ ],
+ totopic: {
+ 'fr': "https://the-overlord.com/index.php?/topic/806-stygie-carte-souterrains/",
+ 'en': "https://the-overlord.net/index.php?/topic/35-stygia-underground/"
+ },
+ losFile: true
+ },
+ size: [1078, 924],
+ zones: {
+ "1": {
+ 'area': [[69.76, 7.25], [71.52, 6.93], [72.36, 7.68], [73.93, 6.6], [79.68, 6.49], [79.04, 18.83], [72.63, 19.16], [72.36, 14.94], [71.52, 14.5], [70.22, 13.96]],
+ 'centers': [[74.95, 12.55]],
+ 'links': [/*"1#50#1", "1#36#1", "1#14#1", "1#3#1", "1#47#1"*/]
+ },
+ "2": {
+ 'area': [[65.96, 6.82], [69.57, 7.25], [69.94, 13.96], [69.29, 14.07], [68.74, 14.5], [68.46, 15.48], [68.55, 17.42], [68.65, 18.51], [69.76, 19.7], [69.57, 21.1], [69.67, 22.73], [69.48, 25.11], [53.9, 25.65], [53.99, 23.38], [54.45, 21.54], [54.92, 19.05], [55.01, 16.77], [61.22, 12.99]],
+ 'centers': [[63.64, 17.42]],
+ 'links': [/*"1#50#1", "1#30#1"*/]
+ },
+ "3": {
+ 'area': [[71.15, 55.41], [77.92, 53.35], [77.27, 54.65], [77.18, 55.95], [77.92, 57.79], [78.66, 59.52], [79.41, 60.28], [80.61, 61.04], [83.3, 61.69], [85.44, 62.01], [87.29, 62.45], [84.42, 75.43], [77.37, 74.57], [78.11, 68.4], [70.13, 64.39], [70.78, 60.93], [70.87, 59.42], [70.78, 58.33], [70.87, 56.28]],
+ 'centers': [[76.53, 65.69]],
+ 'links': [/*"1#1#1", "1#36#1", "1#14#1", "1#47#1", "1#8#1"*/]
+ },
+ "4": {
+ 'area': [[67.35, 78.25], [66.98, 97.29], [66.14, 97.51], [65.21, 97.84], [64.56, 98.16], [63.91, 98.59], [62.62, 98.59], [60.02, 97.19], [58.91, 97.62], [57.42, 97.29], [55.84, 97.29], [54.55, 96.97], [53.8, 96.43], [53.34, 94.26], [53.34, 92.32], [53.15, 89.29], [53.34, 85.39], [53.8, 83.87], [55.47, 82.79], [58.72, 81.28], [60.58, 80.3], [63.17, 79], [64.47, 78.68]],
+ 'centers': [[60.39, 88.1]],
+ 'links': [/*"1#45#1", "1#35#1", "1#5#1"*/]
+ },
+ "5": {
+ 'area': [[82.28, 81.06], [82, 96.65], [80.8, 97.08], [79.59, 97.29], [78.85, 97.29], [78.39, 96.97], [77.27, 97.29], [76.35, 97.29], [75.97, 97.08], [74.58, 96.86], [73.56, 97.08], [73.38, 97.4], [71.52, 97.94], [69.29, 97.94], [67.9, 97.94], [67.44, 97.51], [67.81, 78.14], [68.65, 78.57], [70.04, 79.33], [71.06, 80.63], [72.63, 81.17], [74.3, 81.49], [75.32, 81.6], [77.09, 81.6], [79.13, 81.49], [80.43, 81.6], [81.26, 81.6]],
+ 'centers': [[74.86, 88.2]],
+ 'links': [/*"1#45#1", "1#35#1", "1#4#1"*/]
+ },
+ "6": {
+ 'area': [[37.29, 51.08], [46.38, 51.19], [46.66, 67.21], [36.92, 66.77], [37.48, 65.15], [37.85, 63.64]],
+ 'centers': [[42.02, 59.31]],
+ 'links': [/*"1#12#1", "1#19#1", "1#33#1", "1#29#1", "1#13#1"*/]
+ },
+ "7": {
+ 'area': [[16.7, 83.33], [31.26, 77.38], [31.45, 81.82], [32, 85.93], [31.91, 88.96], [28.29, 90.04], [27.92, 89.83], [26.99, 89.72], [26.9, 91.77], [21.99, 91.99], [21.71, 90.04], [20.96, 90.48], [16.51, 90.8], [16.7, 87.88], [16.14, 86.9]],
+ 'centers': [[24.21, 84.74]],
+ 'links': [/*"1#13#1", "1#42#1", "1#26#1", "1#40#1", "1#39#1"*/]
+ },
+ "8": {
+ 'area': [[87.57, 62.45], [88.96, 62.88], [90.45, 62.88], [92.21, 62.88], [94.16, 62.77], [94.99, 62.66], [95.45, 67.42], [95.83, 73.16], [96.38, 74.78], [96.1, 83.77], [84.79, 79.65], [84.97, 78.25], [85.34, 76.19], [84.69, 75.43]],
+ 'centers': [[91.09, 71.75]],
+ 'links': [/*"1#3#1", "1#47#1", "1#45#1", "1#35#1"*/]
+ },
+ "9": {
+ 'area': [[8.72, 45.67], [18.37, 51.52], [18.55, 52.71], [10.3, 65.8], [2.97, 65.48], [3.25, 53.14], [6.59, 52.49]],
+ 'centers': [[9.93, 56.28]],
+ 'links': [/*"1#22#1", "1#10#1", "1#37#1", "1#16#1", "1#49#1"*/]
+ },
+ "10": {
+ 'area': [[2.88, 19.81], [11.78, 22.94], [12.15, 34.42], [11.6, 34.63], [12.06, 37.88], [7.33, 40.15], [6.77, 37.77], [1.76, 37.77], [2.04, 21.43], [2.69, 20.78]],
+ 'centers': [[7.33, 30.74]],
+ 'links': [/*"1#22#1", "1#44#1", "1#37#1", "1#9#1", "1#49#1"*/]
+ },
+ "11": {
+ 'area': [[60.2, 47.29], [65.96, 52.16], [65.68, 53.46], [67.07, 54.55], [68.18, 54.87], [67.9, 57.36], [67.72, 58.87], [67.35, 59.96], [67.25, 60.82], [67.16, 61.9], [66.23, 64.72], [65.58, 66.34], [65.21, 67.21], [65.12, 68.61], [65.03, 69.81], [64.19, 71.65], [63.64, 71.86], [58.44, 53.25]],
+ 'centers': [[63.17, 56.17]],
+ 'links': [/*"1#20#1", "1#17#1", "1#27#1"*/]
+ },
+ "12": {
+ 'area': [[21.43, 23.92], [42.21, 23.92], [42.3, 24.68], [49.26, 25.11], [49.35, 30.63], [21.06, 31.39]],
+ 'centers': [[44.9, 27.38], [24.68, 27.38]],
+ 'links': [/*"2#38#1", "2#32#1", "2#34#1", "2#25#1", "2#51#1", "2#23#1", "2#46#1", "1#19#1", "1#6#1", "1#29#1", "1#13#1"*/]
+ },
+ "13": {
+ 'area': [[40.82, 81.49], [45.73, 80.95], [45.55, 88.96], [40.07, 88.74]],
+ 'centers': [[43.23, 84.74]],
+ 'links': [/*"1#12#1", "1#19#1", "1#33#1", "1#6#1", "1#29#1", "1#7#1"*/]
+ },
+ "14": {
+ 'area': [[73.01, 36.26], [79.96, 36.69], [79.78, 38.1], [79.22, 39.94], [79.04, 41.45], [78.76, 43.29], [78.39, 45.56], [77.74, 47.51], [77.55, 49.46], [77.74, 51.95], [78.01, 53.14], [70.96, 55.09], [70.69, 54.33], [70.04, 52.92], [69.67, 51.52], [69.39, 51.19], [68.55, 50.97], [68, 43.61], [69.29, 42.75], [70.69, 41.77], [71.61, 40.58], [72.45, 38.96]],
+ 'centers': [[76.72, 44.91]],
+ 'links': [/*"1#1#1", "1#36#1", "1#20#1", "1#17#1", "1#3#1", "1#47#1"*/]
+ },
+ "15": {
+ 'area': [[90.07, 43.07], [94.62, 42.97], [94.9, 43.83], [96.29, 45.13], [95.27, 54.76], [88.87, 54.65]],
+ 'centers': [[91.93, 50.76]],
+ 'links': [/*"1#31#1", "1#28#1", "1#21#1", "1#48#1"*/]
+ },
+ "16": {
+ 'area': [[2.69, 41.02], [6.68, 40.8], [8.53, 45.35], [6.59, 52.38], [3.15, 52.92]],
+ 'centers': [[3.62, 46]],
+ 'links': [/*"1#37#1", "1#9#1", "1#49#1"*/]
+ },
+ "17": {
+ 'area': [[55.47, 41.02], [58.26, 41.88], [59.74, 46.86], [58.26, 53.03], [54.27, 56.71], [54.36, 52.6], [54.64, 49.89], [54.55, 48.27], [54.82, 45.45], [55.19, 43.29]],
+ 'centers': [[56.68, 47.62]],
+ 'links': [/*"1#14#1", "1#20#1", "1#11#1", "1#27#1"*/]
+ },
+ "18": {
+ 'area': [[9.65, 69.7], [9.46, 78.57], [3.8, 79.33], [3.34, 70.45]],
+ 'centers': [[6.59, 74.89]],
+ 'links': [/*"1#42#1", "1#26#1", "1#40#1", "1#41#1"*/]
+ },
+ "19": {
+ 'area': [[41.37, 30.95], [48.89, 31.06], [46.66, 50.87], [37.29, 50.76], [36.83, 42.1], [42.02, 40.69], [42.02, 35.5], [41, 33.87], [41.28, 32.25]],
+ 'centers': [[43.78, 41.13]],
+ 'links': [/*"1#12#1", "1#33#1", "1#6#1", "1#29#1", "1#13#1"*/]
+ },
+ "20": {
+ 'area': [[58.91, 41.45], [60.11, 42.32], [61.32, 43.07], [62.71, 44.05], [63.73, 44.37], [64.94, 44.16], [65.77, 44.05], [67.44, 43.72], [68.37, 50.97], [67.07, 50.76], [65.86, 51.41], [66.05, 51.95], [60.3, 46.97]],
+ 'centers': [[64.1, 46.43]],
+ 'links': [/*"1#14#1", "1#17#1", "1#11#1", "1#27#1"*/]
+ },
+ "21": {
+ 'area': [[88.13, 30.95], [94.43, 30.95], [94.53, 33.98], [94.71, 35.17], [94.99, 36.58], [94.99, 38.96], [94.71, 41.13], [94.71, 42.75], [83.86, 42.97], [83.49, 40.8], [83.95, 38.74], [84.51, 37.34], [84.88, 36.47], [84.88, 35.06], [85.25, 34.42], [86.55, 33.66], [87.29, 33.33], [88.13, 32.68]],
+ 'centers': [[90.17, 38.64]],
+ 'links': [/*"1#31#1", "1#28#1", "1#48#1", "1#15#1"*/]
+ },
+ "22": {
+ 'area': [[2.32, 3.68], [19.39, 3.03], [19.94, 12.99], [18.55, 20.02], [11.69, 22.84], [2.97, 19.48]],
+ 'centers': [[13.27, 6.82]],
+ 'links': [/*"1#10#1", "1#44#1", "1#9#1"*/]
+ },
+ "23": {
+ 'area': [[20.78, 46.32], [29.22, 47.51], [32.37, 55.63], [34.42, 56.82], [34.88, 63.74], [29.59, 64.07], [28.39, 54.33], [21.43, 53.03]],
+ 'centers': [[29.68, 53.35]],
+ 'links': [/*"1#38#1", "1#12#2", "1#25#1", "1#51#1", "1#46#1"*/]
+ },
+ "24": {
+ 'area': [[31.08, 93.72], [39.7, 92.86], [40.91, 93.72], [42.49, 94.26], [42.49, 95.67], [43.88, 96.1], [45.27, 96.97], [46.94, 97.19], [48.14, 97.94], [48.89, 98.38], [49.91, 99.03], [50.83, 99.35], [51.58, 99.78], [51.86, 99.78], [0.28, 99.89], [0.46, 92.42], [3.43, 92.64], [5.19, 92.64], [6.49, 92.32], [8.16, 92.86], [9.65, 93.94], [10.48, 94.59], [12.34, 95.24], [14.84, 95.89], [16.33, 95.45], [17.81, 94.59], [18.74, 94.05], [18.55, 95.24], [19.67, 95.45], [19.67, 96.21], [20.5, 96.21], [20.59, 97.08], [21.52, 97.08], [21.89, 96.43], [26.81, 96.21], [26.81, 97.08], [27.74, 96.97], [27.92, 96.32], [30.06, 96.1], [30.33, 95.02], [30.71, 94.7]],
+ 'centers': [[36.83, 96.43], [12.62, 96.86]],
+ 'links': ["1#39#1", "2#39#1"]
+ },
+ "25": {
+ 'area': [[21.15, 31.71], [29.04, 31.6], [29.41, 34.09], [33.58, 34.31], [33.86, 41.02], [29.41, 47.19], [21.06, 46.21]],
+ 'centers': [[24.4, 40.15]],
+ 'links': [/*"1#38#1", "1#32#1", "1#12#2", "1#51#1", "1#23#1", "1#46#1"*/]
+ },
+ "26": {
+ 'area': [[16.42, 69.81], [23.01, 69.59], [23.56, 79.87], [16.79, 82.9], [16.7, 82.36], [16.98, 80.3], [16.88, 78.68], [16.33, 78.57]],
+ 'centers': [[20.04, 72.08]],
+ 'links': [/*"1#7#1", "1#42#1", "1#40#1", "1#18#1", "1#41#1"*/]
+ },
+ "27": {
+ 'area': [[58.26, 53.46], [63.45, 71.97], [62.15, 72.19], [60.39, 72.84], [59.55, 73.38], [58.26, 74.03], [55.75, 75], [52.97, 75.43], [52.13, 75.22], [53.99, 57.03]],
+ 'centers': [[57.14, 65.04]],
+ 'links': [/*"1#20#1", "1#17#1", "1#11#1"*/]
+ },
+ "28": {
+ 'area': [[83.77, 19.37], [94.71, 19.37], [94.53, 30.52], [88.03, 30.63], [86.64, 27.06], [85.34, 26.84]],
+ 'centers': [[90.63, 24.24]],
+ 'links': [/*"1#31#1", "1#36#1", "1#21#1", "1#48#1", "1#15#1"*/]
+ },
+ "29": {
+ 'area': [[33.21, 67.75], [34.42, 67.86], [36.92, 67.53], [46.38, 67.53], [45.73, 80.52], [40.45, 81.39], [39.7, 88.64], [34.42, 88.74], [33.95, 85.93], [32.37, 85.93], [31.82, 81.82], [33.3, 81.6], [33.49, 79.98], [33.77, 78.79]],
+ 'centers': [[38.78, 74.68]],
+ 'links': [/*"1#12#1", "1#19#1", "1#33#1", "1#6#1", "1#13#1"*/]
+ },
+ "30": {
+ 'area': [[54.17, 25.76], [69.29, 25.11], [68.83, 28.57], [68.18, 32.9], [67.81, 34.52], [67.07, 36.47], [66.7, 37.01], [65.96, 37.23], [64.56, 37.23], [63.17, 37.01], [62.34, 36.04], [61.6, 35.17], [59.18, 34.74], [52.69, 33.23]],
+ 'centers': [[61.13, 30.09]],
+ 'links': [/*"1#50#1", "1#2#1"*/]
+ },
+ "31": {
+ 'area': [[87.94, 5.74], [95.83, 5.41], [96.29, 8.01], [94.34, 9.74], [94.81, 19.05], [86.83, 18.83], [87.94, 17.64]],
+ 'centers': [[92.21, 7.14]],
+ 'links': [/*"1#43#1", "1#28#1", "1#21#1", "1#48#1", "1#15#1"*/]
+ },
+ "32": {
+ 'area': [[35.34, 2.27], [39.52, 2.38], [42.49, 20.89], [42.3, 20.89], [42.21, 23.38], [21.24, 23.48], [21.24, 17.32], [20.13, 17.21], [19.11, 18.51], [20.13, 13.42], [20.87, 13.31], [22.17, 11.47]],
+ 'centers': [[32.19, 15.48]],
+ 'links': [/*"1#38#1", "1#34#1", "1#12#2", "1#25#1"*/]
+ },
+ "33": {
+ 'area': [[36.64, 34.09], [40.72, 34.09], [42.12, 35.28], [42.02, 40.37], [36.73, 41.67]],
+ 'centers': [[38.31, 34.96]],
+ 'links': [/*"1#19#1", "1#6#1", "1#29#1", "1#13#1"*/]
+ },
+ "34": {
+ 'area': [[39.8, 2.38], [48.98, 2.27], [49.72, 20.45], [42.67, 20.67]],
+ 'centers': [[44.81, 10.5]],
+ 'links': [/*"1#38#1", "1#32#1", "1#12#2"*/]
+ },
+ "35": {
+ 'area': [[89.24, 97.51], [90.07, 90.15], [96.2, 89.5], [96.2, 95.89], [95.55, 96.75], [94.9, 97.29], [93.23, 97.94], [92.3, 97.73], [91.19, 97.84]],
+ 'centers': [[93.14, 93.94]],
+ 'links': [/*"1#8#1", "1#45#1", "1#5#1", "1#4#1"*/]
+ },
+ "36": {
+ 'area': [[73.1, 19.7], [73.65, 22.29], [73.93, 24.57], [73.84, 26.19], [73.65, 26.52], [73.75, 28.03], [73.75, 30.09], [73.47, 33.23], [73.01, 35.93], [80.15, 36.15], [80.71, 33.55], [81.35, 32.68], [81.82, 30.74], [82.1, 29.55], [82.93, 28.46], [83.77, 27.06], [84.79, 26.19], [83.49, 19.16], [79.41, 19.37], [78.94, 18.94]],
+ 'centers': [[78.39, 26.95]],
+ 'links': [/*"1#1#1", "1#28#1", "1#14#1", "1#3#1", "1#47#1"*/]
+ },
+ "37": {
+ 'area': [[6.86, 40.69], [12.34, 38.2], [18, 38.31], [18.09, 50.87], [8.81, 45.24]],
+ 'centers': [[14.01, 43.94]],
+ 'links': [/*"1#10#1", "1#16#1", "1#9#1", "1#49#1"*/]
+ },
+ "38": {
+ 'area': [[35.34, 1.73], [22.45, 11.36], [22.82, 1.84]],
+ 'centers': [[26.16, 5.19]],
+ 'links': [/*"1#32#1", "1#34#1", "1#12#2", "1#25#1", "1#23#1", "1#46#1"*/]
+ },
+ "39": {
+ 'area': [[19.02, 94.59], [20.78, 94.37], [21.15, 91.13], [21.43, 91.13], [21.61, 92.42], [27.09, 92.32], [27.27, 90.15], [27.64, 89.94], [27.83, 93.51], [30.8, 93.72], [30.61, 94.7], [28.76, 94.7], [28.76, 95.45], [30.06, 95.35], [30.06, 96.1], [27.74, 96.1], [27.55, 96.86], [27.18, 96.86], [26.9, 95.78], [21.71, 96], [21.71, 96.86], [21.15, 96.75], [20.96, 95.67], [20.22, 95.89], [20.13, 95.35], [19.2, 95.24]],
+ 'centers': [[24.21, 93.83]],
+ 'links': [/*"1#7#1",*/ "1#24#1", "1#24#2"]
+ },
+ "40": {
+ 'area': [[10.02, 69.7], [16.23, 69.48], [15.96, 78.68], [15.31, 79], [14.56, 80.52], [14.75, 85.93], [9.83, 78.9]],
+ 'centers': [[13.82, 71.1]],
+ 'links': [/*"1#7#1", "1#42#1", "1#26#1", "1#18#1", "1#41#1"*/]
+ },
+ "41": {
+ 'area': [[3.71, 79.87], [9.55, 79.22], [14.66, 86.58], [14.75, 91.13], [11.32, 90.15], [4.92, 89.5], [4.92, 86.9], [4.36, 86.26], [3.53, 86.15]],
+ 'centers': [[8.07, 83.55]],
+ 'links': [/*"1#26#1", "1#40#1", "1#18#1"*/]
+ },
+ "42": {
+ 'area': [[23.28, 69.59], [23.84, 80.09], [31.08, 76.73], [30.98, 68.18]],
+ 'centers': [[27.18, 73.92]],
+ 'links': [/*"1#7#1", "1#26#1", "1#40#1", "1#18#1"*/]
+ },
+ "43": {
+ 'area': [[81.91, 6.28], [87.66, 5.74], [87.57, 15.58], [82, 15.69]],
+ 'centers': [[84.6, 10.71]],
+ 'links': [/*"1#31#1"*/]
+ },
+ "44": {
+ 'area': [[11.97, 22.84], [18.74, 20.24], [19.11, 34.31], [12.34, 34.31]],
+ 'centers': [[17.9, 28.57]],
+ 'links': [/*"1#22#1", "1#10#1"*/]
+ },
+ "45": {
+ 'area': [[84.51, 80.09], [95.92, 84.09], [96.29, 89.39], [89.8, 89.83], [88.96, 97.51], [87.11, 96.65], [83.77, 96.21], [82.1, 96.54], [82.56, 81.17]],
+ 'centers': [[86.73, 88.31]],
+ 'links': [/*"1#8#1", "1#35#1", "1#5#1", "1#4#1"*/]
+ },
+ "46": {
+ 'area': [[21.43, 53.14], [28.11, 54.76], [29.5, 63.96], [21.99, 64.07]],
+ 'centers': [[25.32, 58.77]],
+ 'links': [/*"1#38#1", "1#12#2", "1#25#1", "1#51#1", "1#23#1"*/]
+ },
+ "47": {
+ 'area': [[69.67, 65.04], [77.74, 68.72], [76.9, 74.35], [74.03, 73.7], [73.38, 73.38], [71.8, 72.84], [71.15, 72.73], [68.74, 72.29], [67.72, 71.97]],
+ 'centers': [[71.24, 70.56]],
+ 'links': [/*"1#1#1", "1#36#1", "1#14#1", "1#3#1", "1#8#1"*/]
+ },
+ "48": {
+ 'area': [[83.67, 43.18], [89.61, 42.97], [88.5, 54.76], [86.83, 54.87], [86.27, 54.65], [85.34, 54.76], [84.23, 55.3], [82.19, 54.87], [81.63, 54.55], [82, 51.41], [81.91, 50.32], [82.19, 49.03], [82.93, 48.38], [83.21, 47.4], [83.49, 46.43]],
+ 'centers': [[85.81, 50.76]],
+ 'links': [/*"1#31#1", "1#28#1", "1#21#1", "1#15#1"*/]
+ },
+ "49": {
+ 'area': [[18.65, 53.14], [10.76, 65.58], [18.83, 64.61]],
+ 'centers': [[16.33, 60.93]],
+ 'links': [/*"1#10#1", "1#37#1", "1#16#1", "1#9#1"*/]
+ },
+ "50": {
+ 'area': [[65.77, 6.71], [61.32, 12.88], [54.73, 16.67], [55.19, 6.28], [59.37, 5.84], [63.08, 5.95]],
+ 'centers': [[58.72, 9.42]],
+ 'links': [/*"1#2#1", "1#30#1", "1#1#1"*/]
+ },
+ "51": {
+ 'area': [[33.77, 41.77], [29.68, 47.4], [32.75, 55.19], [34.51, 56.39]],
+ 'centers': [[32, 48.48]],
+ 'links': [/*"1#12#2", "1#25#1", "1#23#1", "1#46#1"*/]
+ }
+ }
+}
\ No newline at end of file
diff --git a/maps/data/Underground/los.jpg b/maps/data/Underground/los.jpg
new file mode 100644
index 00000000..8821ca1d
Binary files /dev/null and b/maps/data/Underground/los.jpg differ
diff --git a/maps/data/Underground/thumb.png b/maps/data/Underground/thumb.png
new file mode 100644
index 00000000..d6985667
Binary files /dev/null and b/maps/data/Underground/thumb.png differ
diff --git a/maps/resources/css/maps.css b/maps/resources/css/maps.css
new file mode 100644
index 00000000..b9294d43
--- /dev/null
+++ b/maps/resources/css/maps.css
@@ -0,0 +1,394 @@
+.maps-icon:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f279";
+}
+.maps-icon-index:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f00a";
+}
+.maps-icon-forum:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f086";
+}
+.maps-icon-losfile:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f56d";
+}
+.maps-icon-rotate:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f2f1";
+}
+.maps-icon-legend:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f129";
+}
+
+
+
+.map {
+ height: 100%;
+ background-color: white;
+ overflow: auto;
+}
+
+.map-index {
+ padding: 10px;
+}
+
+.map-index > ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ text-align: center;
+}
+.map-index > ul > li {
+ display: inline-block;
+ vertical-align: middle;
+ padding: 5px;
+ box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
+ margin: 5px;
+}
+.map-index > ul > li > a {
+ display: block;
+ position: relative;
+ vertical-align: middle;
+}
+.map-index > ul > li > a > .map-index-board-image {
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: cover;
+ background-position: top;
+}
+.map-index > ul > li > a > .map-index-board-legend {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ color: #FFF;
+ text-align: left;
+ font-family: 'Crom';
+ padding: 10px 5px 10px 10px;
+ background-color: rgba(0,0,0,0.3);
+}
+
+.map-card a, .map-card a:link, .map-card a:hover, .map-card a:visited {
+ color: black;
+ text-decoration: none;
+}
+.map-index a:hover {
+ color: #FFFFFF;
+ background-color: #000000;
+}
+
+.map-index > ul > li > a > .map-index-board-image {
+ width: 121px;
+ height: 100px;
+ padding: 5px 5px 5px 5px;
+}
+.map-index > ul > li > a > .map-index-board-legend {
+ font-size: 13px;
+}
+@media screen and (min-width: 380px) {
+ .map-index > ul > li > a > .map-index-board-image {
+ width: 150px;
+ height: 125px;
+ padding: 5px 5px 5px 5px;
+ }
+ .map-index > ul > li > a > .map-index-board-legend {
+ font-size: 13px;
+ }
+}
+@media screen and (min-width: 640px) {
+ .map-index > ul > li > a > .map-index-board-image {
+ width: 135px;
+ height: 125px;
+ padding: 5px 5px 5px 5px;
+ }
+ .map-index > ul > li > a > .map-index-board-legend {
+ font-size: 13px;
+ }
+}
+@media screen and (min-width: 768px) {
+ .map-index > ul > li > a > .map-index-board-image {
+ width: 345px;
+ height: 126px;
+ padding: 5px 5px 5px 5px;
+ }
+ .map-index > ul > li > a > .map-index-board-legend {
+ font-size: 15px;
+ }
+}
+@media screen and (min-width: 1024px) {
+ .map-index > ul > li > a > .map-index-board-image {
+ width: 230px;
+ height: 188px;
+ padding: 5px 5px 5px 5px;
+ }
+ .map-index > ul > li > a > .map-index-board-legend {
+ font-size: 22px;
+ }
+}
+
+
+
+
+
+.map-map {
+ height: 100%;
+ overflow: hidden;
+ position: relative;
+}
+
+.map-map .map-map-wrapper,
+.map-map .map-map-help {
+ height: 100%;
+ box-sizing: border-box;
+ overflow: auto;
+ position: relative;
+ width: 50% !important;
+}
+
+.map-map .map-map-wrapper {
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: contain;
+}
+
+.map-map .map-map-wrapper .map-bg {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+}
+
+.line1, .line2, .line3, .line4 {
+ text-indent: -30px;
+ padding-left: 30px;
+}
+
+.line1:before {
+ content: " ";
+ display: inline-block;
+ vertical-align: middle;
+ width: 18px;
+ height: 12px;
+ border: 1px solid #FFFFFF;
+ background-color: rgba(0,0,255,0.5);
+ margin-right: 10px;
+}
+.line3:before {
+ content: " ";
+ display: inline-block;
+ vertical-align: text-top;
+ width: 18px;
+ height: 18px;
+ border: 2px solid #00FF00;
+ border-radius: 100%;
+ margin-right: 10px;
+}
+.line2:before {
+ content: " ";
+ display: inline-block;
+ vertical-align: middle;
+ width: 18px;
+ height: 12px;
+ border: 1px solid #FFFFFF;
+ background-color: rgba(0,255,0,0.5);
+ margin-right: 10px;
+}
+.line4:before {
+ content: " ";
+ display: inline-block;
+ vertical-align: middle;
+ width: 18px;
+ height: 12px;
+ border: 1px solid #FFFFFF;
+ background-color: rgba(127,255,0,0.5);
+ margin-right: 10px;
+}
+
+.map-map .map-map-wrapper.map-map-wrapper-display-help:before {
+ content: attr(data-help);
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%,-50%);
+ background-color: rgba(255,255,255,0.5);
+ display: block;
+ padding: 40px;
+ border-radius: 40px;
+ z-index: 10;
+ pointer-events: none;
+ font-family: "Crom";
+}
+
+.map-map-help {
+ padding: 10px;
+ font-size: 24px;
+}
+
+.map-map-help h1 {
+ text-align: center;
+ margin: 0 0 20px 0;
+}
+
+.map-map-help {
+ height: 30vh;
+}
+
+@media (orientation: portrait) {
+ .map-map-help .map-help-thumb {
+ text-align: center;
+ margin-bottom: 20px;
+ }
+ .map-map-help .map-help-thumb img {
+ height: 30vh;
+ }
+
+ .map-map-help .map-help-thumb div {
+ display: inline-block;
+ position: relative;
+ }
+
+ .map-map-help ul {
+ height: calc(100% - 30vh - 20px);
+ vertical-align: top;
+ }
+}
+@media (orientation: landscape) {
+ .map-map-help .map-help-thumb {
+ text-align: center;
+ display: inline-block;
+ margin-right: 20px;
+ height: 100%;
+ }
+ .map-map-help .map-help-thumb img {
+ width: 30vw;
+ }
+
+ .map-map-help .map-help-thumb div {
+ display: inline-block;
+ position: relative;
+ }
+ .map-map-help ul {
+ height: 100%;
+ width: calc(100% - 30vw - 20px);
+ display: inline-block;
+ vertical-align: top;
+ }
+}
+
+.map-help-legend {
+ position: absolute;
+ background-color: #000000;
+ color: #FFFFFF;
+ border: 1px solid #FFFFFF;
+ border-radius: 30px;
+ width: 20px;
+ height: 20px;
+ font-size: 16px;
+ z-index: 1;
+}
+
+.map-map-help ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ overflow: auto;
+}
+
+.map-help-rule-title, .map-help-rule-description {
+ font-family: 'Moolbor';
+ display: block;
+}
+
+.map-help-rule-title:before {
+ content: attr(data-num);
+ border: 1px solid #000;
+ border-radius: 20px;
+ margin-right: 10px;
+ display: inline-block;
+ width: 20px;
+ height: 20px;
+ text-align: center;
+ line-height: 30px;
+}
+.map-help-rule-title {
+ font-weight: bold;
+ font-size: 26px;
+ line-height: 22px;
+}
+
+.map-help-rule-description {
+ padding-left: 33px;
+ font-size: 22px;
+ line-height: 19px;
+}
+
+.map-map-help .map-help-character {
+ width: 25px;
+ height: 25px;
+ vertical-align: sub;
+ display: inline;
+}
+
+.map-map-area {
+ width: 100%;
+ height: 100%;
+}
+.map-map-area svg {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+
+.map-map-area svg circle.center1 {
+ fill: #FFFFFF;
+ pointer-events: none;
+}
+.map-map-area svg circle.center2 {
+ fill: none;
+ stroke: #FFFFFF;
+ pointer-events: none;
+}
+.map-map-area svg circle.level {
+ fill: none;
+ stroke: #00FF00;
+ pointer-events: none;
+}
+.map-map-area svg line {
+ stroke: rgba(127,62,127,0.6);
+ stroke-width: 2px;
+ stroke-dasharray: 4,2;
+ pointer-events: none;
+}
+
+.map-map-area-zone {
+ fill-opacity: 0;
+ stroke-opacity: 0;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ fill: #0000FF;
+}
+.map-map-area-zone:hover {
+ fill-opacity: 0.1;
+}
+.map-map-area-zone-active {
+ fill-opacity: 0.2;
+}
+.map-map-area-zone-active:hover {
+ fill-opacity: 0.3;
+}
+.map-map-area-zone-target {
+ fill: #00FF00;
+ fill-opacity: 0.3;
+}
+.map-map-area-zone-target-upper {
+ fill: #7fFF00;
+}
+.map-map-area-zone-target-lower {
+ fill: #00FF7f;
+}
+.map-map-area-zone-target:hover {
+ fill-opacity: 0.4;
+}
diff --git a/maps/resources/js/maps.js b/maps/resources/js/maps.js
new file mode 100644
index 00000000..2dda19e3
--- /dev/null
+++ b/maps/resources/js/maps.js
@@ -0,0 +1,580 @@
+var ConanMaps = {
+ _i18n: {
+ 'fr': {
+ 'menu': "Cartes",
+ 'back': "Retour au choix des cartes",
+ 'los': "Lignes de vue",
+ 'help': "Aide de jeu",
+ 'rotate': "Tourner le plateau",
+ 'forum': "Une question sur la carte ? Demandez sur le forum !",
+ 'losfile': "Télécharger la carte statique des lignes de vue",
+ 'start': "Cliquez sur une zone pour voir les lignes de vue",
+ 'legend': "Legende",
+ 'clickhelp1': "La zone actuellement selectionnée est en bleu.",
+ 'clickhelp2': "Toutes les zones colorées sont visibles depuis la zone choisie.",
+ 'clickhelp3': "Les cercles verts indique le niveau d'élévation d'une zone",
+ 'clickhelp4': "Les zones colorées en jaune sont en contrebas et donnent le bonus d'élévation d'un dé jaune.",
+ 'copyright': "Les textes d'aide des cartes sont issus des textes proposés par leurs créateurs respectifs. Certains sont retouchés. "
+ + "Certaines cartes proposent de télécharger une vue statique des lignes de vue. Ces vues ont été réalisées par @Roolz . "
+ + "Le principe des lignes de vues dynamiques est une idée de @Pamplerousse . "
+ + "La carte :",
+ 'copyright_prop': "est la propriété de"
+ },
+ 'en': {
+ 'menu': "Maps",
+ 'back': "Back to the maps choice",
+ 'los': "Line of sight",
+ 'help': "Game help",
+ 'rotate': "Turn the board",
+ 'forum': "A question on this map? Ask the forum!",
+ 'losfile': "Download the static lines of sight map",
+ 'start': "Click in an area to see the lines of sight",
+ 'legend': "Legend",
+ 'clickhelp1': "The currently selected area is in blue.",
+ 'clickhelp2': "All colored areas are visible from the selected area.",
+ 'clickhelp3': "The green circles display the elevation level of an area",
+ 'clickhelp4': "The yellow areas are below and offer the bonus of overhanging a yellow dice.",
+ 'copyright': "The help text of the boards are proposed by their respective creators. Some of them were modified. "
+ + "Some card allow to download a static ligne of sight view. This views were realized by @Roolz . "
+ + "The principal of the dynamic line of sights is based on a idea of @Pamplerousse . "
+ + "The card:" ,
+ 'copyright_prop': "is the property of"
+ }
+ },
+
+ init: function(config)
+ {
+ Nav.addIcon(ConanMaps._i18n[Language].menu, "maps-icon", "maps");
+
+ Nav.addAction("maps", ConanMaps._i18n[Language].back, "maps-icon-index", "index", ConanMaps._displayIndex);
+ Nav.addAction("maps", ConanMaps._i18n[Language].forum, "maps-icon-forum", "forum", ConanMaps._openForum);
+ Nav.addAction("maps", ConanMaps._i18n[Language].losfile, "maps-icon-losfile", "losfile", ConanMaps._losFile);
+ Nav.addAction("maps", ConanMaps._i18n[Language].losfile, "maps-icon-rotate", "rotate", function() { ConanMaps._rotate(-1); } );
+ Nav.addAction("maps", ConanMaps._i18n[Language].legend, "maps-icon-legend", "legend", ConanMaps._legend );
+
+ ConanMaps._rotation = window.screen.width / window.screen.height > 1.2 ? 0 : 3;
+
+ var maps = [
+ "Pict_Village",
+ "Inn",
+ "Ships",
+ "Abandoned_Fort",
+ "Citadel",
+ "Swamp",
+ "Forest",
+ "Mound",
+ "Market",
+ "Tower",
+ "Underground",
+ "Port"
+ ];
+
+ ConanMaps._files = { };
+ ConanMaps._filesCount = maps.length;
+ for (var i = 0; i < ConanMaps._filesCount; i++)
+ {
+ ConanMaps._files[maps[i]] = null;
+ }
+
+ console.info("Loading " + ConanMaps._filesCount + " map(s)");
+
+ for (var i in ConanMaps._files)
+ {
+ jQuery.getScript("maps/data/" + i + "/data.js")
+ .done(ConanMaps._fileLoaded)
+ .fail(ConanMaps._fileLoaded);
+ }
+ },
+ _init2: function()
+ {
+ var toRemove = [];
+ for (var i in ConanMaps._files)
+ {
+ try
+ {
+ var map = eval(i);
+ ConanMaps._files[i] = map;
+
+ if (ConanMaps._files[i].description.origin == "stretchgoal" && Extensions["custom-box"] == "corebox"
+ || ConanMaps._files[i].description.origin != "stretchgoal" && ConanMaps._files[i].description.origin != "corebox" && !Extensions[ConanMaps._files[i].description.origin])
+ {
+ console.info("Discarding map '" + i + "' ");
+ toRemove.push(i);
+ }
+ else
+ {
+ console.info("Map '" + i + "' loaded");
+
+ ConanMaps._check(map);
+ }
+ }
+ catch(e)
+ {
+ toRemove.push(i);
+ console.error("Map '" + i + "' not loaded, " + e);
+ }
+ }
+
+ for (var i in toRemove)
+ {
+ ConanMaps._filesCount--;
+ delete ConanMaps._files[toRemove[i]];
+ }
+
+ $(window).resize(ConanMaps._onResize);
+ ConanMaps._displayIndex();
+
+ ConanAbout.addCopyright(ConanMaps._i18n[Language].menu, ConanMaps._i18n[Language].copyright + ConanMaps._copyright());
+ },
+
+ _filesLoaded: 0,
+ _fileLoaded: function()
+ {
+ ConanMaps._filesLoaded++;
+ if (ConanMaps._filesLoaded === ConanMaps._filesCount)
+ {
+ ConanMaps._init2();
+ }
+ },
+
+ _hideAll: function()
+ {
+ $("#maps > .map-card").hide();
+ },
+
+ _check: function(map)
+ {
+ for (var z in map.zones)
+ {
+ var zone = map.zones[z];
+ var nbZCenters = zone.centers.length;
+ for (var l=0; l < zone.links.length; l++)
+ {
+ var link = zone.links[l];
+ var result = /^([0-9]+)#(.+)#([0-9]+)$/.exec(link)
+ if (!result)
+ {
+ console.error(" Error in zone '" + z + "', the link n°" + l + " is not readable: " + link);
+ }
+ else
+ {
+ var centerOfZ = parseInt(result[1]);
+ var targetZoneName = result[2];
+ var centerOfTarget = parseInt(result[3]);
+
+ if (centerOfZ < 1 || centerOfZ > nbZCenters)
+ {
+ console.error(" Error in zone '" + z + "', the link n°" + l + " starts from an unexisting center: " + link);
+ }
+
+ var targetZone = map.zones[targetZoneName];
+ if (!targetZone)
+ {
+ console.error(" Error in zone '" + z + "', the link n°" + l + " links to an unexisting zone: " + link);
+ }
+ else
+ {
+ var nbTargetZoneCenters = targetZone.centers.length;
+ if (centerOfTarget < 1 || centerOfTarget > nbTargetZoneCenters)
+ {
+ console.error(" Error in zone '" + z + "', the link n°" + l + " leads to an unexisting center: " + link);
+ }
+ else if (!zone.onewaylinks)
+ {
+ var reverseLink = centerOfTarget + "#" + z + "#" + centerOfZ;
+ if (!targetZone.links.includes(reverseLink))
+ {
+ console.error(" Error in zone '" + z + "', the link n°" + l + " has no reverse link: " + link);
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+
+ _displayIndex: function()
+ {
+ ConanMaps._hideAll();
+ Nav.hideAction("maps", "index");
+ Nav.hideAction("maps", "forum");
+ Nav.hideAction("maps", "losfile");
+ Nav.hideAction("maps", "rotate");
+ Nav.hideAction("maps", "legend");
+
+ var id = "maps-index";
+
+ var index = $('#' + id);
+
+ $('#maps').attr('title', ConanMaps._i18n[Language].menu);
+ Nav.updateTitle();
+
+ if (index.length == 0)
+ {
+ var code = "";
+ for (var i in ConanMaps._files)
+ {
+ var imgCode = "
"
+ var titleCode = "" + ConanMaps._files[i].description.title[Language] + "
";
+ code += "" + imgCode + titleCode + " ";
+ }
+
+ $('#maps').append("");
+ index = $('#' + id);
+ }
+
+ index.show();
+ },
+
+ _onSetPosition: function(event, slick)
+ {
+ if ($('#maps-index').is(':visible'))
+ {
+ return;
+ }
+
+ if (ConanMaps.onresize)
+ {
+ ConanMaps.onresize = false;
+ ConanMaps._rotate();
+ }
+
+ if ((slick.currentSlide || 0) == 0)
+ {
+ Nav.hideAction("maps", "forum");
+ Nav.hideAction("maps", "losfile");
+ Nav.showAction("maps", "rotate");
+ Nav.showAction("maps", "legend");
+ }
+ else
+ {
+ if (ConanMaps._files[ConanMaps._currentMap].description.totopic)
+ {
+ Nav.showAction("maps", "forum");
+ }
+ if (ConanMaps._files[ConanMaps._currentMap].description.losFile === true)
+ {
+ Nav.showAction("maps", "losfile");
+ }
+ Nav.hideAction("maps", "rotate");
+ Nav.hideAction("maps", "legend");
+ }
+ Nav.updateTitle();
+ },
+
+ _onResize: function()
+ {
+ ConanMaps.onresize = true;
+ },
+
+ _displayMap: function(map)
+ {
+ console.info('Display map ' + map)
+
+ ConanMaps._lastSelectedZone = null;
+ ConanMaps._hideAll();
+ ConanMaps._currentMap = map;
+
+ Nav.showAction("maps", "index");
+ ConanMaps._onSetPosition(null, 0);
+
+ $('#maps').attr('title', ConanMaps._files[ConanMaps._currentMap].description.title[Language]);
+ Nav.updateTitle();
+
+ var id = "maps-map";
+
+ var mapC = $('#' + id);
+ if (mapC.length == 0)
+ {
+ $('#maps').append("
");
+ }
+ mapC = $('#' + id);
+ mapC.html("");
+ mapC.show();
+
+ Nav.createTabs(id, [
+ {label: ConanMaps._i18n[Language]['los'], id: "map-map-map"},
+ {label: ConanMaps._i18n[Language]['help'], id: "map-map-help"}
+ ],
+ ConanMaps._onSetPosition);
+
+ $("#map-map-help")
+ .addClass("map-map-help");
+ $("#map-map-map")
+ .addClass("map-map-wrapper map-map-wrapper-display-help")
+ .attr("data-help", ConanMaps._i18n[Language]['start'])
+ .html(" " + "
");
+
+ ConanMaps._rotate();
+ },
+
+ _helpPoints: function()
+ {
+ var rules = ConanMaps._files[ConanMaps._currentMap].description.rules;
+
+ var helpImageSize = $(document.body).height() * .3; // Css says 30vh
+ var bbSize = 10 / helpImageSize * 100; // 1 legend is 20px. so center is 10px at left/top
+
+ function _applyRotate(a, n1, n2)
+ {
+ switch (ConanMaps._rotation)
+ {
+ case 0: return a ? n1 - bbSize : n2 - bbSize;
+ case 1: return a ? n2 - bbSize : 100 - n1 - bbSize;
+ case 2: return a ? 100 - n1 - bbSize : 100 - n2 - bbSize;
+ case 3: return a ? 100 - n2 - bbSize : n1 - bbSize;
+ }
+ }
+
+ var aide = "";
+ // aide += "" + ConanMaps._files[ConanMaps._currentMap].description.title[Language] + " ";
+ aide += "";
+ aide += "
";
+ if (rules)
+ {
+ for (var i=0; i < rules.length; i++) {
+ if (rules[i].coordinates)
+ {
+ for (var j=0; j < rules[i].coordinates.length; j++)
+ {
+ var coo = rules[i].coordinates[j];
+ aide += "
" + (i+1) + " ";
+ }
+ }
+ }
+ }
+ aide += "
";
+ aide += "
";
+
+
+ if (rules)
+ {
+ aide += "";
+ for (var i=0; i < rules.length; i++) {
+ aide += ""
+ + "" + rules[i].title[Language] + " "
+ + "" + ConanMaps._replace(rules[i].description[Language]) + " "
+ + " ";
+ }
+ aide += " "
+ }
+
+ var id = "maps-map";
+ var mapC = $('#' + id + " .map-map-help");
+ mapC.html(aide);
+ },
+
+ _replace: function(text)
+ {
+ text = text.replace(/\{(.*?)\}/g, " ");
+ return text;
+ },
+
+ _rotate: function(direction)
+ {
+ direction = isNaN(direction) ? 0 : direction;
+
+ ConanMaps._rotation = (ConanMaps._rotation + direction) % 4;
+ ConanMaps._rotation = (ConanMaps._rotation + 4) % 4;
+
+ ConanMaps._helpPoints();
+ ConanMaps._mapArea();
+ ConanMaps._click();
+ },
+
+ _mapArea: function()
+ {
+ var mapArea = $(".map-map-area");
+
+ var availWidth = mapArea.parent().width();
+ var availHeight = mapArea.parent().height();
+ var availRatio = availWidth / availHeight;
+
+ var size = ConanMaps._files[ConanMaps._currentMap].size;
+ var x = (0 + ConanMaps._rotation) % 2;
+ var y = (1 + ConanMaps._rotation) % 2;
+ var mapRatio = size[x] / size[y];
+
+ var svgWidth, svgHeight;
+ if (availRatio >= mapRatio)
+ {
+ // Height 100%
+ svgWidth = availHeight * mapRatio;
+ svgHeight = availHeight;
+ }
+ else
+ {
+ // Width 100%
+ svgWidth = availWidth;
+ svgHeight = availWidth / mapRatio;
+ }
+
+ $('#maps .map-map-wrapper img.map-bg').css({'width': ConanMaps._rotation % 2 == 0 ? svgWidth : svgHeight,
+ 'height': ConanMaps._rotation % 2 == 1 ? svgWidth : svgHeight,
+ 'transform': 'translate(-50%,-50%) rotate(' + (-90 * ConanMaps._rotation) + 'deg)' });
+ var code = "";
+
+ function _applyRotate(a, n)
+ {
+ var n1 = n[0], n2 = n[1];
+ switch (ConanMaps._rotation)
+ {
+ case 0: return a ? n1 *svgWidth/100.0 : n2 *svgHeight/100.0;
+ case 1: return a ? n2 *svgWidth/100.0 : svgHeight - n1 *svgHeight/100.0;
+ case 2: return a ? svgWidth - n1 *svgWidth/100.0 : svgHeight - n2 *svgHeight/100.0;
+ case 3: return a ? svgWidth - n2 *svgWidth/100.0 : n1 *svgHeight/100.0;
+ }
+ }
+
+ var zNames = [];
+ for (var z in ConanMaps._files[ConanMaps._currentMap].zones)
+ {
+ zNames.push(z);
+ }
+ zNames = zNames.sort();
+
+ for (var kz=0; kz < zNames.length; kz++)
+ {
+ var z = zNames[kz];
+ var zone = ConanMaps._files[ConanMaps._currentMap].zones[z];
+
+ var line = "";
+ for (var i=0; i < zone.area.length; i++)
+ {
+ line += (i == 0 ? "M" : "L") + _applyRotate(true, zone.area[i]) + "," + _applyRotate(false, zone.area[i]);
+ }
+ code += "" +
+ " ";
+
+ // Display level around centers
+ for (var i=0; i < zone.centers.length; i++)
+ {
+ code += " ";
+ code += " ";
+ code += " ";
+ for (var lev=0; lev < zone.level; lev++)
+ {
+ code += " ";
+ }
+ }
+
+ }
+ code += " ";
+
+ mapArea.html(code);
+ },
+
+ _click: function(i)
+ {
+ var svg = $(".map-map-area svg");
+ var svgWidth = svg.width();
+ var svgHeight = svg.height();
+ function _applyRotate(a, n)
+ {
+ var n1 = n[0], n2 = n[1];
+ switch (ConanMaps._rotation)
+ {
+ case 0: return a ? n1 *svgWidth/100.0 : n2 *svgHeight/100.0;
+ case 1: return a ? n2 *svgWidth/100.0 : svgHeight - n1 *svgHeight/100.0;
+ case 2: return a ? svgWidth - n1 *svgWidth/100.0 : svgHeight - n2 *svgHeight/100.0;
+ case 3: return a ? svgWidth - n2 *svgWidth/100.0 : n1 *svgHeight/100.0;
+ }
+ }
+
+ if (i)
+ {
+ ConanMaps._lastSelectedZone = $(i).attr('data-zone');
+ }
+ else if (ConanMaps._lastSelectedZone)
+ {
+ i = $(".map-map-area svg path[data-zone=" + ConanMaps._lastSelectedZone + "]");
+ }
+ else
+ {
+ return;
+ }
+
+ var mapArea = $(".map-map-area svg path").removeClass("map-map-area-zone-active").removeClass("map-map-area-zone-target").removeClass("map-map-area-zone-target-upper").removeClass("map-map-area-zone-target-lower");
+ $(i).addClass("map-map-area-zone-active");
+
+ var mapArea = $(".map-map-area svg line").remove();
+
+ var id = "maps-map";
+ var mapC = $('#' + id + ' .map-map-wrapper').removeClass("map-map-wrapper-display-help");
+
+ var zoneId = $(i).attr('data-zone');
+ var zone = ConanMaps._files[ConanMaps._currentMap].zones[zoneId];
+
+ for (var a=0; a < zone.links.length; a++)
+ {
+ var link = zone.links[a];
+ /^([0-9]+)#(.+)#([0-9]+)$/.exec(link);
+
+ var center1 = parseInt(RegExp.$1) - 1; // 0 based
+ var target = RegExp.$2;
+ var center2 = parseInt(RegExp.$3) - 1; // 0 based
+
+
+ var okp = $(".map-map-area svg path[data-zone=" + target + "]");
+ okp.addClass("map-map-area-zone-target");
+
+ var zoneTarget = ConanMaps._files[ConanMaps._currentMap].zones[target];
+ if (zone.level > zoneTarget.level)
+ {
+ okp.addClass("map-map-area-zone-target-upper");
+ }
+ else if (zone.level < zoneTarget.level)
+ {
+ okp.addClass("map-map-area-zone-target-lower");
+ }
+
+ $(".map-map-area svg").append(" ");
+ }
+
+ // SVG fix
+ $(".map-map-area").html($(".map-map-area").html());
+ },
+
+ _copyright: function()
+ {
+ var c = "";
+
+ for (var i in ConanMaps._files)
+ {
+ c += ""
+ + "" + ConanMaps._files[i].description.title[Language] + " "
+ + " " + ConanMaps._i18n[Language].copyright_prop
+ + " " + ConanMaps._files[i].description.copyright + " "
+ + " (" + ConanAbout._origins[Language][ConanMaps._files[i].description.origin] + ")"
+ + " "
+ }
+
+ c += " ";
+ return c;
+ },
+
+ _openForum: function()
+ {
+ window.open(ConanMaps._files[ConanMaps._currentMap].description.totopic[Language] + "#elContent");
+ },
+
+ _losFile: function()
+ {
+ window.open("maps/data/" + ConanMaps._currentMap + "/los.jpg");
+ },
+
+ _legend: function()
+ {
+ Nav.dialog(ConanMaps._i18n[Language].legend,
+
+ "" + ConanMaps._i18n[Language]['clickhelp1'] + "
"
+ + "" + ConanMaps._i18n[Language]['clickhelp2'] + "
"
+ + "" + ConanMaps._i18n[Language]['clickhelp3'] + "
"
+ + "" + ConanMaps._i18n[Language]['clickhelp4'] + "
"
+ );
+ }
+}
diff --git a/resources/css/body.css b/resources/css/body.css
new file mode 100644
index 00000000..fe7e83cb
--- /dev/null
+++ b/resources/css/body.css
@@ -0,0 +1,11 @@
+html, body {
+ padding: 0;
+ margin: 0;
+ height: 100%;
+ min-width: 320px;
+}
+
+*
+{
+ box-sizing: border-box;
+}
\ No newline at end of file
diff --git a/resources/css/menu.css b/resources/css/menu.css
new file mode 100644
index 00000000..029bb17c
--- /dev/null
+++ b/resources/css/menu.css
@@ -0,0 +1,208 @@
+.menu > div
+{
+ display: block;
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ z-index: 1;
+
+ user-select: none;
+}
+
+.menu > div input
+{
+ display: block;
+ width: 40px;
+ height: 32px;
+ margin: -5px -4px;
+ position: absolute;
+
+ cursor: pointer;
+
+ opacity: 0; /* hide this */
+ z-index: 2; /* and place it over the hamburger */
+
+ -webkit-touch-callout: none;
+}
+
+.menu > div span
+{
+ display: block;
+ width: 33px;
+ height: 4px;
+ margin-bottom: 5px;
+ position: relative;
+
+ background: #FFF;
+ border-radius: 3px;
+
+ z-index: 1;
+
+ transform-origin: 4px 0px;
+
+ transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
+ background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
+ opacity 0.55s ease;
+}
+
+.menu > div span:first-child
+{
+ transform-origin: 0% 0%;
+}
+
+.menu > div span:nth-last-child(3)
+{
+ transform-origin: 0% 100%;
+}
+
+.menu > div input:checked ~ span
+{
+ opacity: 1;
+ transform: rotate(45deg) translate(-2px, -1px);
+ background: #232323;
+}
+
+.menu > div input:checked ~ span:nth-last-child(4)
+{
+ opacity: 0;
+ transform: rotate(0deg) scale(0.2, 0.2);
+}
+
+.menu > div input:checked ~ span:nth-last-child(3)
+{
+ transform: rotate(-45deg) translate(0, -1px);
+}
+
+.menu > div label {
+ display: none;
+}
+
+.menu > div input:checked ~ label {
+ position: absolute;
+ display: block;
+ top: 0;
+ height: 100vh;
+ left: 0;
+ width: 100vw;
+ z-index: 0;
+}
+
+.menu > div input,
+.menu > div span
+{
+ top: 20px;
+ left: 20px;
+}
+
+/* -------------------------------- */
+/* -------------------------------- */
+/* -------------------------------- */
+
+.menu > div > ul
+{
+ position: absolute;
+ margin: 0;
+ top: 0;
+ left: 0;
+ box-sizing: border-box;
+
+ background: #ededed;
+ list-style-type: none;
+ -webkit-font-smoothing: antialiased;
+ /* to stop flickering of text in safari */
+
+ transform-origin: 0% 0%;
+
+ transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
+}
+
+.menu > div > ul > li
+{
+ margin-bottom: 5px;
+}
+.menu > div > ul > li.line {
+ margin-top: 15px;
+ border-top: 1px solid #232323;
+ padding-top: 15px;
+}
+
+.menu > div > ul > li > a
+{
+ font-size: 22px;
+ display: block;
+ text-decoration: none;
+ color: #232323;
+
+ transition: color 0.3s ease;
+}
+.menu > div > ul > li > a:before
+{
+ padding-right: 10px;
+ width: 24px;
+ display: inline-block;
+ text-align: center;
+}
+.menu > div > ul > li > a:hover
+{
+ color: tomato;
+}
+
+
+.menu > div > ul
+{
+ width: 300px;
+ height: 100vh;
+ padding: 125px 20px 50px 20px;
+ transform: translate(-100%, 0);
+}
+
+.menu > div input:checked ~ ul
+{
+ transform: none;
+}
+
+/* -------------------------------- */
+/* -------------------------------- */
+/* -------------------------------- */
+
+.menu > ul
+{
+ list-style-type: none;
+ background-color: #000000;
+ margin: 0;
+ display: flex;
+}
+.menu > ul > li
+{
+ text-align: center;
+ flex: 1;
+ position: relative;
+}
+.menu > ul > li > a
+{
+ color: #FFF;
+ font-size: 12px;
+ text-decoration: none;
+ display: block;
+}
+.menu > ul > li > a:before
+{
+ color: #FFF;
+ font-size: 26px;
+ text-decoration: none;
+ display: block;
+}
+
+.menu > ul
+{
+ padding: 5px 10px 5px 70px;
+ width: 100%;
+ height: 60px;
+}
+.menu > ul > li
+{
+ display: inline-block;
+ height: 100%;
+ padding: 5px 10px;
+}
diff --git a/resources/css/nav.css b/resources/css/nav.css
new file mode 100644
index 00000000..23d5abee
--- /dev/null
+++ b/resources/css/nav.css
@@ -0,0 +1,235 @@
+.header {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
+ height: 64px;
+ background-color: #e64443;
+ padding: 10px 10px 10px 70px;
+ display: flex;
+}
+
+.header .title {
+ color: #FFF;
+ display: inline-block;
+ vertical-align: top;
+ min-height: 100%;
+ font-family: 'Crom';
+ font-size: 35px;
+ line-height: 38px;
+ overflow: hidden;
+ flex: 1;
+}
+.header .title div {
+ display: inline;
+}
+.header .title .smaller {
+ font-size: 30px;
+}
+.header .title .smallest {
+ font-size: 22px;
+}
+.header .title .smallest.twolines {
+ line-height: 19px;
+}
+
+.header .toolbar {
+ display: inline-block;
+ vertical-align: top;
+}
+.header .toolbar ul {
+ display: none;
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+.header .toolbar ul.active {
+ display: block;
+}
+.header .toolbar ul li.hidden {
+ display: none;
+}
+.header .toolbar ul li {
+ display: inline-block;
+}
+.header .toolbar a {
+ color: #FFFFFF;
+ font-size: 24px;
+ line-height: 44px;
+ text-decoration: none;
+ display: block;
+ text-align: center;
+ width: 40px;
+}
+
+.nav {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ box-shadow: 0 3px 14px 2px rgba(0,0,0,.12);
+ height: 56px;
+ font-family: 'Crom';
+}
+.nav ul {
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ display: flex;
+ justify-content: center;
+}
+
+.nav li {
+ max-width: 168px;
+ min-width: 64px;
+ width: 100%;
+ flex-shrink: 1;
+}
+
+.nav li a {
+ display: block;
+ height: 100%;
+ text-align: center;
+ padding: 6px 6px 10px 6px;
+ text-decoration: none;
+ color: rgba(0,0,0,.54);
+ font-size: 11px;
+}
+
+@media screen and (min-width: 380px) {
+ .nav li a {
+ padding: 6px 12px 10px 12px;
+ font-size: 12px;
+ }
+}
+@media screen and (min-width: 400px) {
+ .nav li a {
+ font-size: 13px;
+ }
+}
+@media screen and (min-width: 430px) {
+ .nav li a {
+ font-size: 14px;
+ }
+}
+@media screen and (min-width: 450px) {
+ .nav li a {
+ font-size: 15px;
+ }
+}
+@media screen and (min-width: 480px) {
+ .nav li a {
+ font-size: 16px;
+ }
+}
+
+.nav li a.active {
+ color: #e64443;
+}
+
+.nav li a:before {
+ display: block;
+ font-size: 22px;
+ line-height: 24px;
+}
+
+.contents {
+ position: absolute;
+ overflow: hidden;
+ top: 64px;
+ bottom: 56px;
+ left: 0;
+ right: 0;
+}
+.contents > div {
+ display: block;
+ opacity: 0;
+ overflow: auto;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+.contents > div.active {
+ z-index: 1;
+ opacity: 1;
+ transition-property: opacity;
+ transition-duration: 0.5s;
+ transition-timing-function: linear;
+}
+
+
+.dialog {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ z-index: 100000;
+ background-color: #CFCFCF;
+}
+.dialog-header {
+ box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
+ height: 64px;
+ display: flex;
+}
+.dialog-back {
+ width: 64px;
+ text-decoration: none;
+ color: #000000;
+ line-height: 64px;
+ font-size: 24px;
+ text-align: center;
+}
+.dialog-back:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f060";
+}
+.dialog-title {
+ line-height: 64px;
+ font-size: 20px;
+ flex: 1;
+ font-family: 'Crom';
+}
+.dialog-content {
+ padding: 20px;
+ font-family: 'Moolbor';
+ font-size: 20px;
+ height: calc(100vh - 64px);
+ overflow: auto;
+ background-color: #FFFFFF;
+}
+
+
+
+
+.nav-menu {
+ border-bottom: 1px solid #cfcfcf;
+}
+.nav-wrapper {
+ height: calc(100% - 40px);
+}
+
+.nav-menu a {
+ text-decoration: none;
+ color: #000000;
+ font-family: 'Crom';
+
+ display: block;
+ text-align: center;
+ height: 39px;
+ line-height: 39px;
+ border-bottom: 3px solid transparent;
+
+ overflow: hidden;
+}
+.nav-menu a.slick-current {
+ border-bottom-color: red;
+}
+
+.slick-slide {
+ outline: none;
+}
\ No newline at end of file
diff --git a/resources/favico/android-chrome-192x192.png b/resources/favico/android-chrome-192x192.png
new file mode 100644
index 00000000..2a4b8241
Binary files /dev/null and b/resources/favico/android-chrome-192x192.png differ
diff --git a/resources/favico/android-chrome-256x256.png b/resources/favico/android-chrome-256x256.png
new file mode 100644
index 00000000..9725af54
Binary files /dev/null and b/resources/favico/android-chrome-256x256.png differ
diff --git a/resources/favico/apple-touch-icon.png b/resources/favico/apple-touch-icon.png
new file mode 100644
index 00000000..22d45015
Binary files /dev/null and b/resources/favico/apple-touch-icon.png differ
diff --git a/resources/favico/browserconfig.xml b/resources/favico/browserconfig.xml
new file mode 100644
index 00000000..4f3ce313
--- /dev/null
+++ b/resources/favico/browserconfig.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+ #e64443
+
+
+
diff --git a/resources/favico/favicon-16x16.png b/resources/favico/favicon-16x16.png
new file mode 100644
index 00000000..732bd06d
Binary files /dev/null and b/resources/favico/favicon-16x16.png differ
diff --git a/resources/favico/favicon-32x32.png b/resources/favico/favicon-32x32.png
new file mode 100644
index 00000000..0dcbc6a9
Binary files /dev/null and b/resources/favico/favicon-32x32.png differ
diff --git a/resources/favico/favicon.ico b/resources/favico/favicon.ico
new file mode 100644
index 00000000..a8837290
Binary files /dev/null and b/resources/favico/favicon.ico differ
diff --git a/resources/favico/mstile-150x150.png b/resources/favico/mstile-150x150.png
new file mode 100644
index 00000000..7441ca07
Binary files /dev/null and b/resources/favico/mstile-150x150.png differ
diff --git a/resources/favico/original.png b/resources/favico/original.png
new file mode 100644
index 00000000..035a8077
Binary files /dev/null and b/resources/favico/original.png differ
diff --git a/resources/favico/safari-pinned-tab.svg b/resources/favico/safari-pinned-tab.svg
new file mode 100644
index 00000000..8403e6b4
--- /dev/null
+++ b/resources/favico/safari-pinned-tab.svg
@@ -0,0 +1,30 @@
+
+
+
+
+Created by potrace 1.11, written by Peter Selinger 2001-2013
+
+
+
+
+
diff --git a/resources/favico/site.webmanifest b/resources/favico/site.webmanifest
new file mode 100644
index 00000000..f132e64c
--- /dev/null
+++ b/resources/favico/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "Companion for Conan",
+ "short_name": "Conan",
+ "icons": [
+ {
+ "src": "android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "android-chrome-256x256.png",
+ "sizes": "256x256",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#e64443",
+ "background_color": "#e64443",
+ "display": "standalone"
+}
diff --git a/resources/img/dice_orange.png b/resources/img/dice_orange.png
new file mode 100644
index 00000000..1ed13cc0
Binary files /dev/null and b/resources/img/dice_orange.png differ
diff --git a/resources/img/dice_red.png b/resources/img/dice_red.png
new file mode 100644
index 00000000..c8295760
Binary files /dev/null and b/resources/img/dice_red.png differ
diff --git a/resources/img/dice_yellow.png b/resources/img/dice_yellow.png
new file mode 100644
index 00000000..00f7031c
Binary files /dev/null and b/resources/img/dice_yellow.png differ
diff --git a/resources/img/skills/attack/ambidextrous.png b/resources/img/skills/attack/ambidextrous.png
new file mode 100644
index 00000000..ed5d343f
Binary files /dev/null and b/resources/img/skills/attack/ambidextrous.png differ
diff --git a/resources/img/skills/attack/attack_from_beyond.png b/resources/img/skills/attack/attack_from_beyond.png
new file mode 100644
index 00000000..8a911945
Binary files /dev/null and b/resources/img/skills/attack/attack_from_beyond.png differ
diff --git a/resources/img/skills/attack/circular_strike.png b/resources/img/skills/attack/circular_strike.png
new file mode 100644
index 00000000..69a12aad
Binary files /dev/null and b/resources/img/skills/attack/circular_strike.png differ
diff --git a/resources/img/skills/attack/constriction.png b/resources/img/skills/attack/constriction.png
new file mode 100644
index 00000000..daed2ebf
Binary files /dev/null and b/resources/img/skills/attack/constriction.png differ
diff --git a/resources/img/skills/attack/counterattack.png b/resources/img/skills/attack/counterattack.png
new file mode 100644
index 00000000..3d0c2f46
Binary files /dev/null and b/resources/img/skills/attack/counterattack.png differ
diff --git a/resources/img/skills/attack/elite_shooter.png b/resources/img/skills/attack/elite_shooter.png
new file mode 100644
index 00000000..70b8d216
Binary files /dev/null and b/resources/img/skills/attack/elite_shooter.png differ
diff --git a/resources/img/skills/attack/precision_shot.png b/resources/img/skills/attack/precision_shot.png
new file mode 100644
index 00000000..8adc1d47
Binary files /dev/null and b/resources/img/skills/attack/precision_shot.png differ
diff --git a/resources/img/skills/attack/precision_strike.png b/resources/img/skills/attack/precision_strike.png
new file mode 100644
index 00000000..b59cc173
Binary files /dev/null and b/resources/img/skills/attack/precision_strike.png differ
diff --git a/resources/img/skills/attack/reach.png b/resources/img/skills/attack/reach.png
new file mode 100644
index 00000000..9a3bebe1
Binary files /dev/null and b/resources/img/skills/attack/reach.png differ
diff --git a/resources/img/skills/defense/bodyguard.png b/resources/img/skills/defense/bodyguard.png
new file mode 100644
index 00000000..92a677be
Binary files /dev/null and b/resources/img/skills/defense/bodyguard.png differ
diff --git a/resources/img/skills/defense/protected.png b/resources/img/skills/defense/protected.png
new file mode 100644
index 00000000..1db70218
Binary files /dev/null and b/resources/img/skills/defense/protected.png differ
diff --git a/resources/img/skills/defense/sacrifice.png b/resources/img/skills/defense/sacrifice.png
new file mode 100644
index 00000000..79a7fe2d
Binary files /dev/null and b/resources/img/skills/defense/sacrifice.png differ
diff --git a/resources/img/skills/defense/untouchable.png b/resources/img/skills/defense/untouchable.png
new file mode 100644
index 00000000..202113c6
Binary files /dev/null and b/resources/img/skills/defense/untouchable.png differ
diff --git a/resources/img/skills/magic/spell_caster.png b/resources/img/skills/magic/spell_caster.png
new file mode 100644
index 00000000..7f6154c3
Binary files /dev/null and b/resources/img/skills/magic/spell_caster.png differ
diff --git a/resources/img/skills/magic/teleportation.png b/resources/img/skills/magic/teleportation.png
new file mode 100644
index 00000000..35539ea7
Binary files /dev/null and b/resources/img/skills/magic/teleportation.png differ
diff --git a/resources/img/skills/miscellaneous/alchemy.png b/resources/img/skills/miscellaneous/alchemy.png
new file mode 100644
index 00000000..ec7bb53f
Binary files /dev/null and b/resources/img/skills/miscellaneous/alchemy.png differ
diff --git a/resources/img/skills/miscellaneous/concentration.png b/resources/img/skills/miscellaneous/concentration.png
new file mode 100644
index 00000000..7b37a6aa
Binary files /dev/null and b/resources/img/skills/miscellaneous/concentration.png differ
diff --git a/resources/img/skills/miscellaneous/fascination.png b/resources/img/skills/miscellaneous/fascination.png
new file mode 100644
index 00000000..beb565db
Binary files /dev/null and b/resources/img/skills/miscellaneous/fascination.png differ
diff --git a/resources/img/skills/miscellaneous/horror.png b/resources/img/skills/miscellaneous/horror.png
new file mode 100644
index 00000000..beb6d4be
Binary files /dev/null and b/resources/img/skills/miscellaneous/horror.png differ
diff --git a/resources/img/skills/miscellaneous/jinx.png b/resources/img/skills/miscellaneous/jinx.png
new file mode 100644
index 00000000..c23a0565
Binary files /dev/null and b/resources/img/skills/miscellaneous/jinx.png differ
diff --git a/resources/img/skills/miscellaneous/leadership.png b/resources/img/skills/miscellaneous/leadership.png
new file mode 100644
index 00000000..b864a287
Binary files /dev/null and b/resources/img/skills/miscellaneous/leadership.png differ
diff --git a/resources/img/skills/miscellaneous/lock_picking.png b/resources/img/skills/miscellaneous/lock_picking.png
new file mode 100644
index 00000000..cff373aa
Binary files /dev/null and b/resources/img/skills/miscellaneous/lock_picking.png differ
diff --git a/resources/img/skills/miscellaneous/poison.png b/resources/img/skills/miscellaneous/poison.png
new file mode 100644
index 00000000..6db7729d
Binary files /dev/null and b/resources/img/skills/miscellaneous/poison.png differ
diff --git a/resources/img/skills/miscellaneous/support.png b/resources/img/skills/miscellaneous/support.png
new file mode 100644
index 00000000..5c0b40f8
Binary files /dev/null and b/resources/img/skills/miscellaneous/support.png differ
diff --git a/resources/img/skills/movement/blocking.png b/resources/img/skills/movement/blocking.png
new file mode 100644
index 00000000..69ab1e39
Binary files /dev/null and b/resources/img/skills/movement/blocking.png differ
diff --git a/resources/img/skills/movement/climb.png b/resources/img/skills/movement/climb.png
new file mode 100644
index 00000000..fc573d73
Binary files /dev/null and b/resources/img/skills/movement/climb.png differ
diff --git a/resources/img/skills/movement/evasive.png b/resources/img/skills/movement/evasive.png
new file mode 100644
index 00000000..58d19918
Binary files /dev/null and b/resources/img/skills/movement/evasive.png differ
diff --git a/resources/img/skills/movement/feline_grace.png b/resources/img/skills/movement/feline_grace.png
new file mode 100644
index 00000000..05ce1e8b
Binary files /dev/null and b/resources/img/skills/movement/feline_grace.png differ
diff --git a/resources/img/skills/movement/flying.png b/resources/img/skills/movement/flying.png
new file mode 100644
index 00000000..a3a85e46
Binary files /dev/null and b/resources/img/skills/movement/flying.png differ
diff --git a/resources/img/skills/movement/intangible.png b/resources/img/skills/movement/intangible.png
new file mode 100644
index 00000000..af719102
Binary files /dev/null and b/resources/img/skills/movement/intangible.png differ
diff --git a/resources/img/skills/movement/leap.png b/resources/img/skills/movement/leap.png
new file mode 100644
index 00000000..dd019ea6
Binary files /dev/null and b/resources/img/skills/movement/leap.png differ
diff --git a/resources/img/skills/movement/swimming.png b/resources/img/skills/movement/swimming.png
new file mode 100644
index 00000000..e6420be0
Binary files /dev/null and b/resources/img/skills/movement/swimming.png differ
diff --git a/resources/img/skills/movement/wall_wrecker.png b/resources/img/skills/movement/wall_wrecker.png
new file mode 100644
index 00000000..77cab67b
Binary files /dev/null and b/resources/img/skills/movement/wall_wrecker.png differ
diff --git a/resources/img/skills/movement/web_projection.png b/resources/img/skills/movement/web_projection.png
new file mode 100644
index 00000000..0bc3e873
Binary files /dev/null and b/resources/img/skills/movement/web_projection.png differ
diff --git a/resources/js/menu.js b/resources/js/menu.js
new file mode 100644
index 00000000..6b5b6fe1
--- /dev/null
+++ b/resources/js/menu.js
@@ -0,0 +1,52 @@
+Menu = {
+ _id: null,
+ _items: [],
+
+ addMenu: function(label, icon, action, line)
+ {
+ var item = {
+ label: label,
+ icon: icon,
+ action: action,
+ line: line
+ };
+ this._items.push(item);
+
+ if (this._id)
+ {
+ var code = this._drawItem(item);
+ $("#" + this._id).find("ul").append(code);
+ }
+ },
+
+ _drawItems: function ()
+ {
+ var s = "";
+ for (var i in this._items)
+ {
+ s += this._drawItem(this._items[i]);
+ }
+ return s;
+ },
+
+ _drawItem: function (item)
+ {
+ return "" + item.label + " "
+ },
+
+ initialize: function()
+ {
+ this._id = "menu-" + parseInt(Math.random() * 1000);
+ var code = "";
+ $(document.body).prepend(code);
+ }
+}
diff --git a/resources/js/nav.js b/resources/js/nav.js
new file mode 100644
index 00000000..5bfbf764
--- /dev/null
+++ b/resources/js/nav.js
@@ -0,0 +1,292 @@
+Nav = {
+ _id: null,
+ _icons: [],
+ _actions: {},
+
+ addIcon: function(label, icon, id)
+ {
+ var item = {
+ label: label,
+ icon: icon,
+ id: id
+ };
+ this._icons.push(item);
+ this._actions[id] = [];
+
+ if (this._id)
+ {
+ var code = this._drawIcon(item);
+ $("#" + this._id).children("ul").append(code);
+ code = this._drawContent(item);
+ $("#" + this._id + "-contents").append(code);
+ code = "";
+ $("#" + this._id + "-toolbar").append(code);
+ }
+ },
+
+ _drawIcons: function ()
+ {
+ var s = "";
+ for (var i in this._icons)
+ {
+ s += this._drawIcon(this._icons[i]);
+ }
+ return s;
+ },
+
+ _drawIcon: function (item)
+ {
+ return "" + item.label + " "
+ },
+
+ _drawContents: function ()
+ {
+ var s = "";
+ for (var i in this._icons)
+ {
+ s += this._drawContent(this._icons[i]);
+ }
+ return s;
+ },
+
+ _drawContent: function (item)
+ {
+ return "
"
+ },
+
+ addAction: function(iconId, label, icon, id, fn)
+ {
+ var item = {
+ label: label,
+ icon: icon,
+ id: id,
+ fn: fn,
+ hidden: false
+ };
+ this._actions[iconId].push(item);
+
+ if (this._id)
+ {
+ var code = this._drawAction(iconId, item);
+ $("#" + this._id + "-toolbar").children("ul[for='" + iconId + "']").append(code);
+ }
+ },
+
+ showAction: function(iconId, id)
+ {
+ for (var i in this._actions[iconId])
+ {
+ if (this._actions[iconId][i].id == id && this._actions[iconId][i].hidden)
+ {
+ this._actions[iconId][i].hidden = false;
+ anychange = true;
+ $('#actions-' + iconId + "-" + this._actions[iconId][i].id).show();
+ this.updateTitle();
+ return;
+ }
+ }
+ },
+
+ hideAction: function(iconId, id)
+ {
+ for (var i in this._actions[iconId])
+ {
+ if (this._actions[iconId][i].id == id && !this._actions[iconId][i].hidden)
+ {
+ this._actions[iconId][i].hidden = true;
+ $('#actions-' + iconId + "-" + this._actions[iconId][i].id).hide();
+ this.updateTitle();
+ return;
+ }
+ }
+ },
+
+ _drawActions: function ()
+ {
+ var s = "";
+
+ for (var i in this._icons)
+ {
+ s = "";
+ s += this._drawAction(i, this._actions[this._icons[i]]);
+ s += " ";
+ }
+
+ return s ;
+ },
+
+ _drawAction: function (iconId, item)
+ {
+ return " ";
+ },
+
+ switchTo: function(elt)
+ {
+ var id = elt.getAttribute("for");
+
+ var toSelect = $('#' + id);
+ if (toSelect.is(".active"))
+ {
+ return;
+ }
+
+ $("#" + this._id + "-toolbar ul.active").removeClass("active");
+ $("#" + this._id + "-toolbar ul[for='" + id + "']").addClass("active");
+
+ $("#" + this._id + "-contents > .active").removeClass("active");
+ toSelect.addClass("active");
+ toSelect.trigger("show");
+
+ $("#" + this._id + " ul li a.active").removeClass("active");
+ $("#" + this._id + " ul li a[for=" + id + "]").addClass("active");
+
+ Nav.updateTitle();
+ },
+
+ act: function(elt)
+ {
+ var id = elt.getAttribute("id").substring("actions-".length);
+ var iconId = elt.parentNode.parentNode.getAttribute("for");
+ id = id.substring(iconId.length + 1);
+
+ for (var i in this._actions[iconId])
+ {
+ if (this._actions[iconId][i].id == id)
+ {
+ this._actions[iconId][i].fn();
+ }
+ }
+ },
+
+ updateTitle: function()
+ {
+ var id = $("#" + this._id + " ul li a.active").attr("for");
+ var toSelect = $("#" + id);
+
+ var t = $(".header .title div")
+ t.removeClass("small smaller smallest twolines").html(toSelect.attr('title') || "Conan");
+
+ var tb = $(".header .toolbar")
+
+ var width = $(".header").width() - tb.width();
+ var height = $(".header").height();
+
+ if (t.width() > width || t.height() > height)
+ {
+ t.addClass("small");
+ }
+ if (t.width() > width || t.height() > height)
+ {
+ t.addClass("smaller");
+ }
+ if (t.width() > width || t.height() > height)
+ {
+ t.addClass("smallest");
+ if (t.height() > height)
+ {
+ t.addClass("twolines");
+ }
+ }
+ },
+
+ initialize: function()
+ {
+
+ this._id = "nav-" + parseInt(Math.random() * 1000);
+ var code = ""
+ + ""
+ + ""
+ + this._drawIcons()
+ + " "
+ + " "
+ + ""
+ + this._drawContents()
+ + "
";
+ $(document.body).prepend(code);
+
+ $(window).resize(function() { Nav.updateTitle(); });
+ },
+
+ dialog: function(title, code, callback)
+ {
+ code = ""
+ + ""
+ + "
"
+ + code
+ + "
"
+ + "
";
+ $(document.body).append(code);
+ Nav._cb = callback;
+ },
+
+ closeDialog: function()
+ {
+ if (Nav._cb)
+ {
+ Nav._cb();
+ }
+ Nav._cb = null;
+ $("#dialog").remove();
+ },
+
+ createTabs: function(id, tabs, onSetPosition)
+ {
+ var subcode = "";
+ var subzone = "";
+ for (var i in tabs)
+ {
+ subcode += "" + tabs[i].label + " ";
+ subzone += "
";
+ }
+
+ var code = ""
+ + ""
+ + subzone
+ + "
";
+
+ $("#" + id).append(code);
+
+ var m = "#" + id + " .nav-menu";
+ var w = "#" + id + " .nav-wrapper";
+
+ var $m = $(m);
+ var $w = $(w);
+
+ $m.slick({
+ slidesToShow: tabs.length + 0.5,
+ slidesToScroll: 1,
+ arrows: true,
+ infinite: false,
+ swipeToSlide: true,
+ focusOnSelect: true,
+ touchThreshold: 10,
+ asNavFor: w
+ });
+ $w.slick({
+ slidesToShow: 1,
+ slidesToScroll: 1,
+ arrows: false,
+ infinite: false,
+ swipeToSlide: true,
+ touchThreshold: 10,
+ asNavFor: m
+ });
+
+ if (onSetPosition)
+ {
+ $(w).on('setPosition', onSetPosition);
+ }
+ }
+}
diff --git a/resources/js/utils.js b/resources/js/utils.js
new file mode 100644
index 00000000..54776858
--- /dev/null
+++ b/resources/js/utils.js
@@ -0,0 +1,48 @@
+Utils = {
+ Language: navigator.language == 'fr' ? navigator.language : 'en',
+
+ load: (function() {
+ // Function which returns a function: https://davidwalsh.name/javascript-functions
+ function _load(tag) {
+ return function(url) {
+ url += '?_=' + new Date().getTime();
+ // This promise will be used by Promise.all to determine success or failure
+ return new Promise(function(resolve, reject) {
+ var element = document.createElement(tag);
+ var parent = 'body';
+ var attr = 'src';
+
+ // Important success and error for the promise
+ element.onload = function() {
+ resolve(url);
+ };
+ element.onerror = function() {
+ reject(url);
+ };
+
+ // Need to set different attributes depending on tag type
+ switch(tag) {
+ case 'script':
+ element.async = true;
+ break;
+ case 'link':
+ element.type = 'text/css';
+ element.rel = 'stylesheet';
+ attr = 'href';
+ parent = 'head';
+ }
+
+ // Inject into document to kick off loading
+ element[attr] = url;
+ document[parent].appendChild(element);
+ });
+ };
+ }
+
+ return {
+ css: _load('link'),
+ js: _load('script'),
+ img: _load('img')
+ }
+ })()
+}
\ No newline at end of file
diff --git a/rules/resources/css/rules.css b/rules/resources/css/rules.css
new file mode 100644
index 00000000..6a4556fe
--- /dev/null
+++ b/rules/resources/css/rules.css
@@ -0,0 +1,68 @@
+.rules-icon:before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f545";
+}
+
+#rules {
+ height: 100%;
+}
+
+#rules #skills {
+ overflow: auto;
+ box-sizing: border-box;
+ padding: 10px;
+ font-family: 'Crom';
+}
+
+#rules .skills-skill {
+ margin-bottom: 10px;
+ width: 50%;
+ padding-right: 5px;
+ display: inline-block;
+ vertical-align: top;
+}
+
+.skill-tab h2 {
+ margin-top: 0.4em;
+ background-color: #000;
+ color: #fff;
+ text-align: center;
+ padding: 5px 0;
+}
+
+#rules .skills-skill .clear {
+ clear: both;
+}
+#rules .skills-skill > img {
+ float: left;
+ margin-right: 12px;
+ margin-bottom: 4px;
+ width: 80px;
+}
+#rules .skills-title {
+ margin-bottom: 5px;
+}
+#rules .skills-text {
+ font-family: 'Moolbor';
+ font-size: 22px;
+ line-height: 20px;
+}
+#rules .rules-character {
+ margin: 0;
+ width: 14px;
+ height: 14px;
+ vertical-align: middle;
+ display: inline;
+}
+
+@media screen and (max-width: 536px) {
+ #rules .skills-skill {
+ width: 100%;
+ padding-right: 0;
+ }
+}
+@media screen and (min-width: 1024px) {
+ #rules .skills-skill {
+ width: 33.3%;
+ }
+}
diff --git a/rules/resources/js/rules.js b/rules/resources/js/rules.js
new file mode 100644
index 00000000..413d43e0
--- /dev/null
+++ b/rules/resources/js/rules.js
@@ -0,0 +1,277 @@
+var ConanRules = {
+ _i18n: {
+ 'fr': {
+ 'menu': "Regles",
+ 'skills': "Competences",
+
+ 'skills_attack': "Attaque",
+ 'skills_attack_reach_title': "Allonge",
+ 'skills_attack_reach_text': "Le personnage peut attaquer au corps-à-corps sur une zone adjacente avec ligne de vue et s’il n’y a pas d’obstacle (mur, porte, barreaux, tentures…) entre sa cible et lui.",
+ 'skills_attack_ambidextrous_title': "Ambidextrie",
+ 'skills_attack_ambidextrous_text': "S’il dispose de deux armes à une main, le personnage peut cumuler leur bonus lors de chacune de ses attaques au corps-à-corps (ne fonctionne pas en défense).",
+ 'skills_attack_constriction_title': "Constriction",
+ 'skills_attack_constriction_text': "Si, lors de son attaque, la créature obtient au moins une face avec 2 symboles sur l’un de ses dés, sa cible est « saisie », en plus des blessures éventuelles. La figurine du personnage saisi est ramenée au contact de la figurine de la créature et est considérée comme bloquée. Un personnage ayant la compétence Insaisissable ignore le blocage dû à Constriction, pas les dégâts associés à l’attaque.",
+ 'skills_attack_circular_strike_title': "Coup circulaire",
+ 'skills_attack_circular_strike_text': "Avec toute arme de corps-à-corps à deux main (dont l’encombrement est supérieur ou égal à 3), le personnage peut donner un coup circulaire. Si l’attaque, résolue normalement, tue le premier adversaire désigné, le reliquat de dégâts est reporté sur le suivant (choisit par l'attaquant) et ainsi de suite jusqu’à ce qu’il n’y ait plus de reliquat.",
+ 'skills_attack_precision_strike_title': "Coup precis",
+ 'skills_attack_precision_strike_text': "Lorsqu’il réalise une attaque au corps-à-corps, le personnage ignore systématiquement le premier point de défense de sa cible.",
+ 'skills_attack_attack_from_beyond_title': "Retour de l’Au-dela",
+ 'skills_attack_attack_from_beyond_text': "Juste après sa mort, le personnage peut porter une ultime attaque au corps-à-corps d’une puissance de {dice_red}{dice_red}{dice_red}, sans bonus d’arme et sans malus d’attaque à mains nues.",
+ 'skills_attack_counterattack_title': "Riposte",
+ 'skills_attack_counterattack_text': "Chaque fois que le personnage est attaqué au corps-à-corps (que l’attaque ait causé des dégâts ou non), il peut gratuitement riposter (s’il survit à l’attaque) de {dice_red}, sans bonus d’arme et sans malus d’attaque à mains nues.",
+ 'skills_attack_elite_shooter_title': "Tireur d’elite",
+ 'skills_attack_elite_shooter_text': "Le personnage ignore les effets du phénomène de gêne lorsqu’il réalise une attaque à distance. De plus, il ignore la compétence Sous protection de sa cible.",
+ 'skills_attack_precision_shot_title': "Tir precis",
+ 'skills_attack_precision_shot_text': "Lorsqu’il réalise une attaque à distance, le personnage ignore systématiquement le premier point de défense passive de sa cible.",
+
+ 'skills_movement': "Mouvement",
+ 'skills_movement_blocking_title': "Bloqueur",
+ 'skills_movement_blocking_text': "Le personnage bloque tout mouvement des adversaires présents sur sa zone, à l'exception de ceux possédant la compétence Insaisissable.",
+ 'skills_movement_wall_wrecker_title': "Defoncer les cloisons",
+ 'skills_movement_wall_wrecker_text': "Le personnage peut traverser les cloisons et les portes en bois, au cours de son mouvement, pour un surcout de 2 points de mouvement. Il laisse derrière lui une ouverture (symbolisée par un pion) : le personnage se déplace de l'autre côté de la cloison qu'il vient de défoncer. Les deux zones deviennent adjascentes sans pénalité de mouvement pour passer de l'une à l'autre et l'ouverture donne une ligne de vue entre ces deux zones.",
+ 'skills_movement_evasive_title': "Insaisissable",
+ 'skills_movement_evasive_text': "Le personnage ignore toute pénalité de mouvement liée à la présence d'adversaires dans sa zone, quand bien même ceux-ci auraient la compétence Bloqueur.",
+ 'skills_movement_swimming_title': "Natation",
+ 'skills_movement_swimming_text': "Le personnage est capable de se déplacer à travers les zones liquides. Le surcoût pour quitter une zone liquide est de 1 point de mouvement.",
+ 'skills_movement_intangible_title': "Intangible",
+ 'skills_movement_intangible_text': "Le personnage peut traverser un obstacle normalement infranchissable en dépensant ses points de mouvement comme s'il s'agissait d'une limite normale. Le personnage n'est jamais affecté par le phénomène de gêne.",
+ 'skills_movement_web_projection_title': "Projection de toile",
+ 'skills_movement_web_projection_text': "Plutôt que de réaliser une attaque classique, le personnage peut projeter une toile sur un adversaire. Pour cela il réalise une attaque à distance avec {dice_orange}{dice_orange}{dice_orange}. Si l'attaque dépasse la défense, elle n'engendre pas de blessure mais la victime est immobilisée (on place le pion Toile contre son socle). Pour s'en extraire il lui en coûtera 4 points de mouvements en un seul tour.",
+ 'skills_movement_leap_title': "Saut",
+ 'skills_movement_leap_text': "Le personnage peut sauter par-dessus les endroits prévus à cet effet. Pour ce faire, il lance {dice_red} et doit égaler ou dépasser l'indice de difficulté. Le saut n'est pas soumis au phénomène de gène. Sauter coûte 1 point de mouvement par zone traversée. Par exemple, sauter d'un bateau à l'autre coûte 2 points de mouvements.",
+ 'skills_movement_feline_grace_title': "Souplesse feline",
+ 'skills_movement_feline_grace_text': "Dans chaque zone empruntée, le personnage ignore un point de malus lié au phénomène de gêne.",
+ 'skills_movement_flying_title': "Vol",
+ 'skills_movement_flying_text': "Le personnage peut voler par-dessus les éléments du décor. Il ignore les contraintes de déplacement liés au décor. Le vol n'est pas soumis au phénomène de gène.",
+ 'skills_movement_climb_title': "Escalade",
+ 'skills_movement_climb_text': "Le personnage est capable de franchir les limites de zone qui requièrent cette compétence, en payant le surcoût de mouvement lié à la difficulté du franchissement comme décrit dans le scénario.",
+
+ 'skills_miscellaneous': "Diverses",
+ 'skills_miscellaneous_alchemy_title': "Alchimie",
+ 'skills_miscellaneous_alchemy_text': "Alchimie est une compétence générique pouvant être utilisée dans certains scénarios.",
+ 'skills_miscellaneous_leadership_title': "Commandement",
+ 'skills_miscellaneous_leadership_text': "Pour chaque gemme dépensée, le héros peut activer un de ses Alliés. Un Allié activé peut se déplacer et attaquer comme une unité. Il ne peut activer qu'une fois par tour chacun de ses Alliés.",
+ 'skills_miscellaneous_concentration_title': "Concentration",
+ 'skills_miscellaneous_concentration_text': "Le personnage ignore toutes les pénalités liées au phénomène de gêne pour toutes les actions nécessitant un lancer de dé.",
+ 'skills_miscellaneous_lock_picking_title': "Crochetage",
+ 'skills_miscellaneous_lock_picking_text': "Chaque fois qu'il tente une manipulation complexe pour crocheter une serrure, le personnage dispose d'un bonus de {dice_red}.",
+ 'skills_miscellaneous_fascination_title': "Fascination",
+ 'skills_miscellaneous_fascination_text': "Le personnage ne peut pas être attaqué par un autre personnage qu’il n’a pas luimême attaqué au préalable pendant la partie.",
+ 'skills_miscellaneous_horror_title': "Horreur",
+ 'skills_miscellaneous_horror_text': "Le personnage a une apparence si hideuse qu'elle provoque la terreur chez ses adversaires. Chaque adversaire qui se trouve dans sa zone voit le niveau de saturation de ses caractéristiques limité à 2 (sauf pour la défense et la relance).",
+ 'skills_miscellaneous_jinx_title': "Malchance",
+ 'skills_miscellaneous_jinx_text': "Aucune relance d’aucune sorte (payante ou gratuite) n’est autorisée dans la zone d’un adversaire ayant cette compétence.",
+ 'skills_miscellaneous_poison_title': "Poison",
+ 'skills_miscellaneous_poison_text': "Poison est une compétence générique pouvant être utilisée dans certains scénarios.",
+ 'skills_miscellaneous_support_title': "Soutien",
+ 'skills_miscellaneous_support_text': "Les figurines amies du personnage présentes sur sa zone bénéficient d'une relance gratuite à chaque fois qu'elles réalisent une action. Soutien permet la relance gratuite d’un seul dé, y compris sur un dé déjà relancé gratuitement (exception à la règle page 22).",
+
+ 'skills_defense': "Defense",
+ 'skills_defense_sacrifice_title': "Sacrfice",
+ 'skills_defense_sacrifice_text': "Le personnage peut décider, avant le lancé de dés, de subir une attaque à la place de la cible initiale. Il ne peut par contre ni la parer ni l'esquiver. Il ne peut utiliser que sa défense passive pour se défendre. Ce personnage encaisse donc la totalité des dégâts causés par l’attaque à la place de la cible initiale.",
+ 'skills_defense_untouchable_title': "Intouchable",
+ 'skills_defense_untouchable_text': "Le personnage ayant cette compétence ignore le premier succès d’une attaque à distance portée contre lui.",
+ 'skills_defense_bodyguard_title': "Garde du corps",
+ 'skills_defense_bodyguard_text': "Le personnage peut parer (c’est-à-dire utiliser un équipement pour défendre comme un bouclier par exemple) à leur place, les attaques portées contre ses amis présents sur sa zone. Il ne peut pas simplement esquiver. L'usage de la compétence remplace la défense active de la cible mais pas sa défense passive. C’est la cible initiale de l’attaque qui en subit les éventuelles blessures.",
+ 'skills_defense_protected_title': "Sous protection",
+ 'skills_defense_protected_text': "Le personnage ne peut être attaqué tant que demeure sur sa zone au moins l'un de ses amis dépourvu de cette compétence. Les attaques de zone ne sont pas soumises à l'effet de cette compétence.",
+
+ 'skills_magic': "Magie",
+ 'skills_magic_spell_caster_title': "Lanceur de sort",
+ 'skills_magic_spell_caster_text': "Le personnage est capable d'utiliser les cartes Sorts à sa disposition, en leur allouant les gemmes d'énergie requises. Lorsqu'un personnage perd la compétence (du fait de son encombrement par exemple), les sorts déjà actifs le restent jusqu'à ce qu'ils s'épuisent comme décrit par le sort.",
+ 'skills_magic_teleportation_title': "Teleportation",
+ 'skills_magic_teleportation_text': "Le lanceur de sort n'est pas soumis au phénomène de gêne ni à la compétence Bloqueur.",
+
+ 'copyright': "Les règles proposés sont basées sur les règles officielles et leurs compléments mais ont été en partie reformulées."
+ },
+ 'en': {
+ 'menu': "Rules",
+
+ 'skills': "Skills",
+ 'skills_attack': "Attack",
+ 'skills_attack_reach_title': "Reach",
+ 'skills_attack_reach_text': "This character can attack a character in an adjacent area with a line of sight, with a Melee Attack if there is no obstacle (wall, door, bar, flap, etc.) between the characters’ areas.",
+ 'skills_attack_ambidextrous_title': "Ambidextrous",
+ 'skills_attack_ambidextrous_text': "When this character performs a Melee Attack (do not work for defense), the character can choose 2 of their 1-handed weapon cards to attack with.",
+ 'skills_attack_constriction_title': "Constriction",
+ 'skills_attack_constriction_text': "When this character's attack power is determined, if any die shows 2 or more symbols, move the attacker’s model close to the defender’s one so their bases touch. As long as they remain in the same area, the defender treats the attacker as thought the attacker has Blocking. A character with Evasive ignores Constriction’s Blocking effect, but not the damage from the attack.",
+ 'skills_attack_circular_strike_title': "Circular Strike",
+ 'skills_attack_circular_strike_text': "When this character kills an enemy character with a 2-handed Melee Attack, another enemy character in the same area suffers the excess damage from the attack (if that character is killed, repeat the process). The attacker decides the order in which damage is dealt to defending enemies. Resolve the attack normally (determining attack power, defense power, etc.) on one enemy before proceeding with the next one if there is still damage left to be dealt.",
+ 'skills_attack_precision_strike_title': "Precision strike",
+ 'skills_attack_precision_strike_text': "When a character with this skill performs a Melee Attack, they automatically reduce the defender’s defense power by 1.",
+ 'skills_attack_attack_from_beyond_title': "Attack from Beyond",
+ 'skills_attack_attack_from_beyond_text': "When his character dies, before the model is removed from the board, the character may perform a free unarmed Melee Attack, rolling {dice_red}{dice_red}{dice_red} instead of their normal dice (the character ignores penalties from unarmed attacks and cannot benefit from Melee Attack bonuses from weapons).",
+ 'skills_attack_counterattack_title': "Counterattack",
+ 'skills_attack_counterattack_text': "When a character attacks this character with a Melee Attack, after the attack is resolved (whether damage was dealt or not), this character (if this alive) may immediatly counterattack that character with a free unarmed Melee Attack, rolling {dice_red} instead of their normal die (the character ignores penalties from unarmed attacks and cannot benefit from Melee Attack bonuses from weapons).",
+ 'skills_attack_elite_shooter_title': "Elite Shooter",
+ 'skills_attack_elite_shooter_text': "This character’s Ranged Attacks are not affecter by hindering and ignore Protected.",
+ 'skills_attack_precision_shot_title': "Precision Shot",
+ 'skills_attack_precision_shot_text': "When this character performs a Ranged Attack, the defender’s armor value is reduced by 1 for that attack.",
+
+ 'skills_movement': "Movement",
+ 'skills_movement_blocking_title': "Blocking",
+ 'skills_movement_blocking_text': "Enemy characters without Evasive cannot move out of this character's area.",
+ 'skills_movement_wall_wrecker_title': "Wall Wrecker",
+ 'skills_movement_wall_wrecker_text': "This character can spend 2 movement points to move across a wooden wall or door from 1 area to an adjacent area and place an opening toket on that obstacle: they immediatly move to the other side of the wall they just wrecked. From now on, the two areas are ajacent and there is no penality for moving from one to the other and there is a line of sight between those two zones.",
+ 'skills_movement_evasive_title': "Evasive",
+ 'skills_movement_evasive_text': "This character can move as if there were no enemy characters in the character's area.",
+ 'skills_movement_swimming_title': "Swimming",
+ 'skills_movement_swimming_text': "This character can move into water areas. Moving out of a water area cost 1 extra movement point.",
+ 'skills_movement_intangible_title': "Intangible",
+ 'skills_movement_intangible_text': "This character can spend 1 movement point to move across an obstacle from 1 area to an adjacent area. This character's movement is not affected by hindering.",
+ 'skills_movement_web_projection_title': "Web Projection",
+ 'skills_movement_web_projection_text': "Instead of their normal attack, this character can perform a Ranged Attack, rolling {dice_orange}{dice_orange}{dice_orange} instead of their normal die. If the attack power is higher than the defense power, the defender places a web token on their model and suffers no damage. A character with a web token cannot move, but can spend 4 movement points to discard the token.",
+ 'skills_movement_leap_title': "Leap",
+ 'skills_movement_leap_text': "The character can jump over the places provided for this purpose. To do this, it rolls {dice_red} and must equal or exceed the difficulty index. Leaping is not affected by hindering. Jumping costs 1 movement point per crossing zone. For example, jumping from one boat to another costs 2 movement points.",
+ 'skills_movement_feline_grace_title': "Feline Grace",
+ 'skills_movement_feline_grace_text': "Moving cost this character 1 fewer movement point if the movement is affected by hindering.",
+ 'skills_movement_flying_title': "Flying",
+ 'skills_movement_flying_text': "The character can fly over the elements of the scenery. It ignores the constraints of displacement related to the decor. The flight is not affected by hindering.",
+ 'skills_movement_climb_title': "Climb",
+ 'skills_movement_climb_text': "The character is able to cross the zone limits that require this skill, paying the extra movement cost related to the difficulty of the crossing as described in the scenario.",
+
+ 'skills_miscellaneous': "Miscellaneous",
+ 'skills_miscellaneous_alchemy_title': "Alchemy",
+ 'skills_miscellaneous_alchemy_text': "This skill's effect is defined by the scenario.",
+ 'skills_miscellaneous_leadership_title': "Leadership",
+ 'skills_miscellaneous_leadership_text': "This hero can move 1 gem from their Reserve zone to their Fatigue zone to activate an ally. Activated allies move and attack like units. Each ally can be activated only once per turn.",
+ 'skills_miscellaneous_concentration_title': "Concentration",
+ 'skills_miscellaneous_concentration_text': "This character's die roll are not affected by hindering.",
+ 'skills_miscellaneous_lock_picking_title': "Lock-picking",
+ 'skills_miscellaneous_lock_picking_text': "This character can rolls an extra {dice_red} when picking a lock.",
+ 'skills_miscellaneous_fascination_title': "Fascination",
+ 'skills_miscellaneous_fascination_text': "A character with this skill cannot be attacked by another character unless that character has been previously attacked by the character with Fascination.",
+ 'skills_miscellaneous_horror_title': "Horror",
+ 'skills_miscellaneous_horror_text': "The exertion limit of Melee Attack, Ranged Attack, Move and Manipulation action of enemy character in this character's area is 2.",
+ 'skills_miscellaneous_jinx_title': "Jinx",
+ 'skills_miscellaneous_jinx_text': "Reroll actions and free rerolls are not allowed in the area occupied by an enemy with this skill.",
+ 'skills_miscellaneous_poison_title': "Poison",
+ 'skills_miscellaneous_poison_text': "This skill's effect is defined by the scenario.",
+ 'skills_miscellaneous_support_title': "Support",
+ 'skills_miscellaneous_support_text': "This skill allows friendly characters in the same zone as this character to reroll a single die for free, each time they realize an action, even if that die has already rerolled (exception to the rule on page 22).",
+
+ 'skills_defense': "Defense",
+ 'skills_defense_sacrifice_title': "Sacrifice",
+ 'skills_defense_sacrifice_text': "When a friendly character in this's area is attacked, before the die are rolled, this character may choose to be attacked instead. This character cannot Guard for that defense and can only use their Armor. That character suffers any damage from the attack to prevent the character who was initially attacked from suffering damage.",
+ 'skills_defense_untouchable_title': "Untouchable",
+ 'skills_defense_untouchable_text': "A character with this skill ignores the first rolled symbol when defending against a Ranged Attack.",
+ 'skills_defense_bodyguard_title': "Bodyguard",
+ 'skills_defense_bodyguard_text': "When a friendly character in this character's area defends, this character can parry (i.e. use an equipment card to defend against that attack, like a shield) instead of that character's Guard action, adding the symbols shown on the die to the character defense power. They cannot dodge (see page 11) to defend a friendly character. Any damage is dealt to the character who was initially attacked, not the character using Bodyguard.",
+ 'skills_defense_protected_title': "Protected",
+ 'skills_defense_protected_text': "This character can be attacked only with area attacks if there is a friendly character without Protected in their area.",
+
+ 'skills_magic': "Magic",
+ 'skills_magic_spell_caster_title': "Spell Caster",
+ 'skills_magic_spell_caster_text': "This character can have and cast spells. Whenever the character loose the skill (because of encumbrance for example), any active spell remain active for their specified duration.",
+ 'skills_magic_teleportation_title': "Teleportation",
+ 'skills_magic_teleportation_text': "A character who casts this spell is not affected by hindering or by Blocking to move.",
+
+ 'copyright': "The proposed rules are based upon the official rules and their complements but were partially rewriten."
+ }
+ },
+
+ init: function()
+ {
+ Nav.addIcon(ConanRules._i18n[Language].menu, "rules-icon", "rules");
+
+ Nav.createTabs('rules', [{label: ConanRules._i18n[Language].skills, id: "skills"}])
+
+ ConanRules._initSkills();
+
+ ConanAbout.addCopyright(ConanRules._i18n[Language].menu, ConanRules._i18n[Language].copyright);
+ },
+
+ _initSkills: function()
+ {
+ ConanRules._addAttackSkills();
+ ConanRules._addMovementSkills();
+ ConanRules._addMiscellaneousSkills();
+ ConanRules._addDefenseSkills();
+ ConanRules._addMagicSkills();
+ },
+
+ _addSkillsMenu: function(label, id)
+ {
+ $('#skills .rules-skills-menu ul').append("" + label + " ")
+ },
+
+ _addAttackSkills: function()
+ {
+ $('#skills').append("
" + ConanRules._i18n[Language].skills_attack + " ");
+
+ ConanRules._addSkill('attack', 'reach');
+ ConanRules._addSkill('attack', 'ambidextrous');
+ ConanRules._addSkill('attack', 'constriction');
+ ConanRules._addSkill('attack', 'circular_strike');
+ ConanRules._addSkill('attack', 'precision_strike');
+ ConanRules._addSkill('attack', 'attack_from_beyond');
+ ConanRules._addSkill('attack', 'counterattack');
+ ConanRules._addSkill('attack', 'elite_shooter');
+ ConanRules._addSkill('attack', 'precision_shot');
+ },
+
+ _addMovementSkills: function()
+ {
+ $('#skills').append("
" + ConanRules._i18n[Language].skills_movement + " ");
+
+ ConanRules._addSkill('movement', 'blocking');
+ ConanRules._addSkill('movement', 'evasive');
+ ConanRules._addSkill('movement', 'swimming');
+ ConanRules._addSkill('movement', 'intangible');
+ ConanRules._addSkill('movement', 'wall_wrecker');
+ ConanRules._addSkill('movement', 'web_projection');
+ ConanRules._addSkill('movement', 'leap');
+ ConanRules._addSkill('movement', 'feline_grace');
+ ConanRules._addSkill('movement', 'flying');
+ ConanRules._addSkill('movement', 'climb');
+ },
+
+ _addMiscellaneousSkills: function()
+ {
+ $('#skills').append("
" + ConanRules._i18n[Language].skills_miscellaneous + " ");
+
+ ConanRules._addSkill('miscellaneous', 'alchemy');
+ ConanRules._addSkill('miscellaneous', 'concentration');
+ ConanRules._addSkill('miscellaneous', 'lock_picking');
+ ConanRules._addSkill('miscellaneous', 'fascination');
+ ConanRules._addSkill('miscellaneous', 'leadership');
+ ConanRules._addSkill('miscellaneous', 'horror');
+ ConanRules._addSkill('miscellaneous', 'jinx');
+ ConanRules._addSkill('miscellaneous', 'poison');
+ ConanRules._addSkill('miscellaneous', 'support');
+ },
+
+ _addDefenseSkills: function()
+ {
+ $('#skills').append("
" + ConanRules._i18n[Language].skills_defense + " ");
+
+ ConanRules._addSkill('defense', 'sacrifice');
+ ConanRules._addSkill('defense', 'bodyguard');
+ ConanRules._addSkill('defense', 'untouchable');
+ ConanRules._addSkill('defense', 'protected');
+ },
+
+ _addMagicSkills: function()
+ {
+ $('#skills').append("
" + ConanRules._i18n[Language].skills_magic + " ");
+
+ ConanRules._addSkill('magic', 'spell_caster');
+ ConanRules._addSkill('magic', 'teleportation');
+ },
+
+ _addSkill: function(type, id)
+ {
+ $('#skills_' + type).append(""
+ + "
"
+ + "
" + ConanRules._i18n[Language]['skills_' + type + '_' + id + '_title'] + "
"
+ + "
" + ConanRules._replace(ConanRules._i18n[Language]['skills_' + type + '_' + id + '_text']) + "
"
+ + "
"
+ + "
");
+ },
+
+ _replace: function(text)
+ {
+ text = text.replace(/\{(.*?)\}/g, " ");
+ return text;
+ }
+}
diff --git a/vendors/css/ajax-loader.gif b/vendors/css/ajax-loader.gif
new file mode 100644
index 00000000..e0e6e976
Binary files /dev/null and b/vendors/css/ajax-loader.gif differ
diff --git a/vendors/css/fonts-1.0.0.css b/vendors/css/fonts-1.0.0.css
new file mode 100644
index 00000000..3ddb5572
--- /dev/null
+++ b/vendors/css/fonts-1.0.0.css
@@ -0,0 +1,28 @@
+@font-face {
+ font-family: 'Crom';
+ src: url('../fonts/Crom.eot');
+ src: url('../fonts/Crom.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Crom.woff2') format('woff2'),
+ url('../fonts/Crom.woff') format('woff'),
+ url('../fonts/Crom.ttf') format('truetype'),
+ url('../fonts/Crom.svg#Crom') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'Moolbor';
+ font-style: normal;
+ font-weight: 400;
+ font-display: auto;
+ src: url("../fonts/moolbor.woff");
+}
+
+@font-face {
+ font-family: 'Font Awesome 5 Free';
+ font-style: normal;
+ font-weight: 400;
+ font-display: auto;
+ src: url("../fonts/fa-solid-900.eot");
+ src: url("../fonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("../fonts/fa-solid-900.woff2") format("woff2"), url("../fonts/fa-solid-900.woff") format("woff"), url("../fonts/fa-solid-900.ttf") format("truetype"), url("../fonts/fa-solid-900.svg#fontawesome") format("svg");
+}
diff --git a/vendors/css/fonts/slick.woff b/vendors/css/fonts/slick.woff
new file mode 100644
index 00000000..8ee99721
Binary files /dev/null and b/vendors/css/fonts/slick.woff differ
diff --git a/vendors/css/slick-1.8.0.css b/vendors/css/slick-1.8.0.css
new file mode 100644
index 00000000..57477e84
--- /dev/null
+++ b/vendors/css/slick-1.8.0.css
@@ -0,0 +1,119 @@
+/* Slider */
+.slick-slider
+{
+ position: relative;
+
+ display: block;
+ box-sizing: border-box;
+
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+
+ -webkit-touch-callout: none;
+ -khtml-user-select: none;
+ -ms-touch-action: pan-y;
+ touch-action: pan-y;
+ -webkit-tap-highlight-color: transparent;
+}
+
+.slick-list
+{
+ position: relative;
+
+ display: block;
+ overflow: hidden;
+
+ margin: 0;
+ padding: 0;
+}
+.slick-list:focus
+{
+ outline: none;
+}
+.slick-list.dragging
+{
+ cursor: pointer;
+ cursor: hand;
+}
+
+.slick-slider .slick-track,
+.slick-slider .slick-list
+{
+ -webkit-transform: translate3d(0, 0, 0);
+ -moz-transform: translate3d(0, 0, 0);
+ -ms-transform: translate3d(0, 0, 0);
+ -o-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0);
+}
+
+.slick-track
+{
+ position: relative;
+ top: 0;
+ left: 0;
+
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+.slick-track:before,
+.slick-track:after
+{
+ display: table;
+
+ content: '';
+}
+.slick-track:after
+{
+ clear: both;
+}
+.slick-loading .slick-track
+{
+ visibility: hidden;
+}
+
+.slick-slide
+{
+ display: none;
+ float: left;
+
+ height: 100%;
+ min-height: 1px;
+}
+[dir='rtl'] .slick-slide
+{
+ float: right;
+}
+.slick-slide img
+{
+ display: block;
+}
+.slick-slide.slick-loading img
+{
+ display: none;
+}
+.slick-slide.dragging img
+{
+ pointer-events: none;
+}
+.slick-initialized .slick-slide
+{
+ display: block;
+}
+.slick-loading .slick-slide
+{
+ visibility: hidden;
+}
+.slick-vertical .slick-slide
+{
+ display: block;
+
+ height: auto;
+
+ border: 1px solid transparent;
+}
+.slick-arrow.slick-hidden {
+ display: none;
+}
diff --git a/vendors/css/slick-theme-1.8.0.css b/vendors/css/slick-theme-1.8.0.css
new file mode 100644
index 00000000..1232fcab
--- /dev/null
+++ b/vendors/css/slick-theme-1.8.0.css
@@ -0,0 +1,204 @@
+@charset 'UTF-8';
+/* Slider */
+.slick-loading .slick-list
+{
+ background: #fff url('./ajax-loader.gif') center center no-repeat;
+}
+
+/* Icons */
+@font-face
+{
+ font-family: 'slick';
+ font-weight: normal;
+ font-style: normal;
+
+ src: url('./fonts/slick.eot');
+ src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');
+}
+/* Arrows */
+.slick-prev,
+.slick-next
+{
+ font-size: 0;
+ line-height: 0;
+
+ position: absolute;
+ top: 50%;
+
+ display: block;
+
+ width: 20px;
+ height: 20px;
+ padding: 0;
+ -webkit-transform: translate(0, -50%);
+ -ms-transform: translate(0, -50%);
+ transform: translate(0, -50%);
+
+ cursor: pointer;
+
+ color: transparent;
+ border: none;
+ outline: none;
+ background: transparent;
+}
+.slick-prev:hover,
+.slick-prev:focus,
+.slick-next:hover,
+.slick-next:focus
+{
+ color: transparent;
+ outline: none;
+ background: transparent;
+}
+.slick-prev:hover:before,
+.slick-prev:focus:before,
+.slick-next:hover:before,
+.slick-next:focus:before
+{
+ opacity: 1;
+}
+.slick-prev.slick-disabled:before,
+.slick-next.slick-disabled:before
+{
+ opacity: .25;
+}
+
+.slick-prev:before,
+.slick-next:before
+{
+ font-family: 'slick';
+ font-size: 20px;
+ line-height: 1;
+
+ opacity: .75;
+ color: white;
+
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.slick-prev
+{
+ left: -25px;
+}
+[dir='rtl'] .slick-prev
+{
+ right: -25px;
+ left: auto;
+}
+.slick-prev:before
+{
+ content: '←';
+}
+[dir='rtl'] .slick-prev:before
+{
+ content: '→';
+}
+
+.slick-next
+{
+ right: -25px;
+}
+[dir='rtl'] .slick-next
+{
+ right: auto;
+ left: -25px;
+}
+.slick-next:before
+{
+ content: '→';
+}
+[dir='rtl'] .slick-next:before
+{
+ content: '←';
+}
+
+/* Dots */
+.slick-dotted.slick-slider
+{
+ margin-bottom: 30px;
+}
+
+.slick-dots
+{
+ position: absolute;
+ bottom: -25px;
+
+ display: block;
+
+ width: 100%;
+ padding: 0;
+ margin: 0;
+
+ list-style: none;
+
+ text-align: center;
+}
+.slick-dots li
+{
+ position: relative;
+
+ display: inline-block;
+
+ width: 20px;
+ height: 20px;
+ margin: 0 5px;
+ padding: 0;
+
+ cursor: pointer;
+}
+.slick-dots li button
+{
+ font-size: 0;
+ line-height: 0;
+
+ display: block;
+
+ width: 20px;
+ height: 20px;
+ padding: 5px;
+
+ cursor: pointer;
+
+ color: transparent;
+ border: 0;
+ outline: none;
+ background: transparent;
+}
+.slick-dots li button:hover,
+.slick-dots li button:focus
+{
+ outline: none;
+}
+.slick-dots li button:hover:before,
+.slick-dots li button:focus:before
+{
+ opacity: 1;
+}
+.slick-dots li button:before
+{
+ font-family: 'slick';
+ font-size: 6px;
+ line-height: 20px;
+
+ position: absolute;
+ top: 0;
+ left: 0;
+
+ width: 20px;
+ height: 20px;
+
+ content: '•';
+ text-align: center;
+
+ opacity: .25;
+ color: black;
+
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+.slick-dots li.slick-active button:before
+{
+ opacity: .75;
+ color: black;
+}
diff --git a/vendors/fonts/Crom.eot b/vendors/fonts/Crom.eot
new file mode 100644
index 00000000..7b2f2c26
Binary files /dev/null and b/vendors/fonts/Crom.eot differ
diff --git a/vendors/fonts/Crom.svg b/vendors/fonts/Crom.svg
new file mode 100644
index 00000000..5f17f53a
--- /dev/null
+++ b/vendors/fonts/Crom.svg
@@ -0,0 +1,1371 @@
+
+
+
+
+Created by FontForge 20161013 at Thu Dec 7 22:12:21 2006
+ By ,,,
+Typeface (c) Dragonfang - 2006. All Rights Reserved
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendors/fonts/Crom.ttf b/vendors/fonts/Crom.ttf
new file mode 100644
index 00000000..e9f2d105
Binary files /dev/null and b/vendors/fonts/Crom.ttf differ
diff --git a/vendors/fonts/Crom.woff b/vendors/fonts/Crom.woff
new file mode 100644
index 00000000..95141859
Binary files /dev/null and b/vendors/fonts/Crom.woff differ
diff --git a/vendors/fonts/Crom.woff2 b/vendors/fonts/Crom.woff2
new file mode 100644
index 00000000..112c6269
Binary files /dev/null and b/vendors/fonts/Crom.woff2 differ
diff --git a/vendors/fonts/fa-brands-400.eot b/vendors/fonts/fa-brands-400.eot
new file mode 100644
index 00000000..02a5ecb9
Binary files /dev/null and b/vendors/fonts/fa-brands-400.eot differ
diff --git a/vendors/fonts/fa-brands-400.svg b/vendors/fonts/fa-brands-400.svg
new file mode 100644
index 00000000..1b168ee9
--- /dev/null
+++ b/vendors/fonts/fa-brands-400.svg
@@ -0,0 +1,3459 @@
+
+
+
+
+
+Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
+ By Robert Madole
+Copyright (c) Font Awesome
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendors/fonts/fa-brands-400.ttf b/vendors/fonts/fa-brands-400.ttf
new file mode 100644
index 00000000..3926cb17
Binary files /dev/null and b/vendors/fonts/fa-brands-400.ttf differ
diff --git a/vendors/fonts/fa-brands-400.woff b/vendors/fonts/fa-brands-400.woff
new file mode 100644
index 00000000..7bcc97ea
Binary files /dev/null and b/vendors/fonts/fa-brands-400.woff differ
diff --git a/vendors/fonts/fa-brands-400.woff2 b/vendors/fonts/fa-brands-400.woff2
new file mode 100644
index 00000000..2abc94a5
Binary files /dev/null and b/vendors/fonts/fa-brands-400.woff2 differ
diff --git a/vendors/fonts/fa-regular-400.eot b/vendors/fonts/fa-regular-400.eot
new file mode 100644
index 00000000..7b7a1d70
Binary files /dev/null and b/vendors/fonts/fa-regular-400.eot differ
diff --git a/vendors/fonts/fa-regular-400.svg b/vendors/fonts/fa-regular-400.svg
new file mode 100644
index 00000000..80cf2b29
--- /dev/null
+++ b/vendors/fonts/fa-regular-400.svg
@@ -0,0 +1,803 @@
+
+
+
+
+
+Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
+ By Robert Madole
+Copyright (c) Font Awesome
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendors/fonts/fa-regular-400.ttf b/vendors/fonts/fa-regular-400.ttf
new file mode 100644
index 00000000..17b86c2f
Binary files /dev/null and b/vendors/fonts/fa-regular-400.ttf differ
diff --git a/vendors/fonts/fa-regular-400.woff b/vendors/fonts/fa-regular-400.woff
new file mode 100644
index 00000000..822243e2
Binary files /dev/null and b/vendors/fonts/fa-regular-400.woff differ
diff --git a/vendors/fonts/fa-regular-400.woff2 b/vendors/fonts/fa-regular-400.woff2
new file mode 100644
index 00000000..c446ff7a
Binary files /dev/null and b/vendors/fonts/fa-regular-400.woff2 differ
diff --git a/vendors/fonts/fa-solid-900.eot b/vendors/fonts/fa-solid-900.eot
new file mode 100644
index 00000000..dfc8921a
Binary files /dev/null and b/vendors/fonts/fa-solid-900.eot differ
diff --git a/vendors/fonts/fa-solid-900.svg b/vendors/fonts/fa-solid-900.svg
new file mode 100644
index 00000000..132373b3
--- /dev/null
+++ b/vendors/fonts/fa-solid-900.svg
@@ -0,0 +1,4527 @@
+
+
+
+
+
+Created by FontForge 20190112 at Thu Mar 21 16:19:01 2019
+ By Robert Madole
+Copyright (c) Font Awesome
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendors/fonts/fa-solid-900.ttf b/vendors/fonts/fa-solid-900.ttf
new file mode 100644
index 00000000..97ae69b9
Binary files /dev/null and b/vendors/fonts/fa-solid-900.ttf differ
diff --git a/vendors/fonts/fa-solid-900.woff b/vendors/fonts/fa-solid-900.woff
new file mode 100644
index 00000000..86d9b32b
Binary files /dev/null and b/vendors/fonts/fa-solid-900.woff differ
diff --git a/vendors/fonts/fa-solid-900.woff2 b/vendors/fonts/fa-solid-900.woff2
new file mode 100644
index 00000000..67f67dc1
Binary files /dev/null and b/vendors/fonts/fa-solid-900.woff2 differ
diff --git a/vendors/fonts/moolbor.woff b/vendors/fonts/moolbor.woff
new file mode 100644
index 00000000..a5be5461
Binary files /dev/null and b/vendors/fonts/moolbor.woff differ
diff --git a/vendors/js/jquery-3.1.1.js b/vendors/js/jquery-3.1.1.js
new file mode 100644
index 00000000..072e3081
--- /dev/null
+++ b/vendors/js/jquery-3.1.1.js
@@ -0,0 +1,10220 @@
+/*!
+ * jQuery JavaScript Library v3.1.1
+ * https://jquery.com/
+ *
+ * Includes Sizzle.js
+ * https://sizzlejs.com/
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2016-09-22T22:30Z
+ */
+( function( global, factory ) {
+
+ "use strict";
+
+ if ( typeof module === "object" && typeof module.exports === "object" ) {
+
+ // For CommonJS and CommonJS-like environments where a proper `window`
+ // is present, execute the factory and get jQuery.
+ // For environments that do not have a `window` with a `document`
+ // (such as Node.js), expose a factory as module.exports.
+ // This accentuates the need for the creation of a real `window`.
+ // e.g. var jQuery = require("jquery")(window);
+ // See ticket #14549 for more info.
+ module.exports = global.document ?
+ factory( global, true ) :
+ function( w ) {
+ if ( !w.document ) {
+ throw new Error( "jQuery requires a window with a document" );
+ }
+ return factory( w );
+ };
+ } else {
+ factory( global );
+ }
+
+// Pass this if window is not defined yet
+} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
+
+// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
+// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
+// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
+// enough that all such attempts are guarded in a try block.
+"use strict";
+
+var arr = [];
+
+var document = window.document;
+
+var getProto = Object.getPrototypeOf;
+
+var slice = arr.slice;
+
+var concat = arr.concat;
+
+var push = arr.push;
+
+var indexOf = arr.indexOf;
+
+var class2type = {};
+
+var toString = class2type.toString;
+
+var hasOwn = class2type.hasOwnProperty;
+
+var fnToString = hasOwn.toString;
+
+var ObjectFunctionString = fnToString.call( Object );
+
+var support = {};
+
+
+
+ function DOMEval( code, doc ) {
+ doc = doc || document;
+
+ var script = doc.createElement( "script" );
+
+ script.text = code;
+ doc.head.appendChild( script ).parentNode.removeChild( script );
+ }
+/* global Symbol */
+// Defining this global in .eslintrc.json would create a danger of using the global
+// unguarded in another place, it seems safer to define global only for this module
+
+
+
+var
+ version = "3.1.1",
+
+ // Define a local copy of jQuery
+ jQuery = function( selector, context ) {
+
+ // The jQuery object is actually just the init constructor 'enhanced'
+ // Need init if jQuery is called (just allow error to be thrown if not included)
+ return new jQuery.fn.init( selector, context );
+ },
+
+ // Support: Android <=4.0 only
+ // Make sure we trim BOM and NBSP
+ rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
+
+ // Matches dashed string for camelizing
+ rmsPrefix = /^-ms-/,
+ rdashAlpha = /-([a-z])/g,
+
+ // Used by jQuery.camelCase as callback to replace()
+ fcamelCase = function( all, letter ) {
+ return letter.toUpperCase();
+ };
+
+jQuery.fn = jQuery.prototype = {
+
+ // The current version of jQuery being used
+ jquery: version,
+
+ constructor: jQuery,
+
+ // The default length of a jQuery object is 0
+ length: 0,
+
+ toArray: function() {
+ return slice.call( this );
+ },
+
+ // Get the Nth element in the matched element set OR
+ // Get the whole matched element set as a clean array
+ get: function( num ) {
+
+ // Return all the elements in a clean array
+ if ( num == null ) {
+ return slice.call( this );
+ }
+
+ // Return just the one element from the set
+ return num < 0 ? this[ num + this.length ] : this[ num ];
+ },
+
+ // Take an array of elements and push it onto the stack
+ // (returning the new matched element set)
+ pushStack: function( elems ) {
+
+ // Build a new jQuery matched element set
+ var ret = jQuery.merge( this.constructor(), elems );
+
+ // Add the old object onto the stack (as a reference)
+ ret.prevObject = this;
+
+ // Return the newly-formed element set
+ return ret;
+ },
+
+ // Execute a callback for every element in the matched set.
+ each: function( callback ) {
+ return jQuery.each( this, callback );
+ },
+
+ map: function( callback ) {
+ return this.pushStack( jQuery.map( this, function( elem, i ) {
+ return callback.call( elem, i, elem );
+ } ) );
+ },
+
+ slice: function() {
+ return this.pushStack( slice.apply( this, arguments ) );
+ },
+
+ first: function() {
+ return this.eq( 0 );
+ },
+
+ last: function() {
+ return this.eq( -1 );
+ },
+
+ eq: function( i ) {
+ var len = this.length,
+ j = +i + ( i < 0 ? len : 0 );
+ return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
+ },
+
+ end: function() {
+ return this.prevObject || this.constructor();
+ },
+
+ // For internal use only.
+ // Behaves like an Array's method, not like a jQuery method.
+ push: push,
+ sort: arr.sort,
+ splice: arr.splice
+};
+
+jQuery.extend = jQuery.fn.extend = function() {
+ var options, name, src, copy, copyIsArray, clone,
+ target = arguments[ 0 ] || {},
+ i = 1,
+ length = arguments.length,
+ deep = false;
+
+ // Handle a deep copy situation
+ if ( typeof target === "boolean" ) {
+ deep = target;
+
+ // Skip the boolean and the target
+ target = arguments[ i ] || {};
+ i++;
+ }
+
+ // Handle case when target is a string or something (possible in deep copy)
+ if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
+ target = {};
+ }
+
+ // Extend jQuery itself if only one argument is passed
+ if ( i === length ) {
+ target = this;
+ i--;
+ }
+
+ for ( ; i < length; i++ ) {
+
+ // Only deal with non-null/undefined values
+ if ( ( options = arguments[ i ] ) != null ) {
+
+ // Extend the base object
+ for ( name in options ) {
+ src = target[ name ];
+ copy = options[ name ];
+
+ // Prevent never-ending loop
+ if ( target === copy ) {
+ continue;
+ }
+
+ // Recurse if we're merging plain objects or arrays
+ if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
+ ( copyIsArray = jQuery.isArray( copy ) ) ) ) {
+
+ if ( copyIsArray ) {
+ copyIsArray = false;
+ clone = src && jQuery.isArray( src ) ? src : [];
+
+ } else {
+ clone = src && jQuery.isPlainObject( src ) ? src : {};
+ }
+
+ // Never move original objects, clone them
+ target[ name ] = jQuery.extend( deep, clone, copy );
+
+ // Don't bring in undefined values
+ } else if ( copy !== undefined ) {
+ target[ name ] = copy;
+ }
+ }
+ }
+ }
+
+ // Return the modified object
+ return target;
+};
+
+jQuery.extend( {
+
+ // Unique for each copy of jQuery on the page
+ expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
+
+ // Assume jQuery is ready without the ready module
+ isReady: true,
+
+ error: function( msg ) {
+ throw new Error( msg );
+ },
+
+ noop: function() {},
+
+ isFunction: function( obj ) {
+ return jQuery.type( obj ) === "function";
+ },
+
+ isArray: Array.isArray,
+
+ isWindow: function( obj ) {
+ return obj != null && obj === obj.window;
+ },
+
+ isNumeric: function( obj ) {
+
+ // As of jQuery 3.0, isNumeric is limited to
+ // strings and numbers (primitives or objects)
+ // that can be coerced to finite numbers (gh-2662)
+ var type = jQuery.type( obj );
+ return ( type === "number" || type === "string" ) &&
+
+ // parseFloat NaNs numeric-cast false positives ("")
+ // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
+ // subtraction forces infinities to NaN
+ !isNaN( obj - parseFloat( obj ) );
+ },
+
+ isPlainObject: function( obj ) {
+ var proto, Ctor;
+
+ // Detect obvious negatives
+ // Use toString instead of jQuery.type to catch host objects
+ if ( !obj || toString.call( obj ) !== "[object Object]" ) {
+ return false;
+ }
+
+ proto = getProto( obj );
+
+ // Objects with no prototype (e.g., `Object.create( null )`) are plain
+ if ( !proto ) {
+ return true;
+ }
+
+ // Objects with prototype are plain iff they were constructed by a global Object function
+ Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
+ return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
+ },
+
+ isEmptyObject: function( obj ) {
+
+ /* eslint-disable no-unused-vars */
+ // See https://github.com/eslint/eslint/issues/6125
+ var name;
+
+ for ( name in obj ) {
+ return false;
+ }
+ return true;
+ },
+
+ type: function( obj ) {
+ if ( obj == null ) {
+ return obj + "";
+ }
+
+ // Support: Android <=2.3 only (functionish RegExp)
+ return typeof obj === "object" || typeof obj === "function" ?
+ class2type[ toString.call( obj ) ] || "object" :
+ typeof obj;
+ },
+
+ // Evaluates a script in a global context
+ globalEval: function( code ) {
+ DOMEval( code );
+ },
+
+ // Convert dashed to camelCase; used by the css and data modules
+ // Support: IE <=9 - 11, Edge 12 - 13
+ // Microsoft forgot to hump their vendor prefix (#9572)
+ camelCase: function( string ) {
+ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+ },
+
+ nodeName: function( elem, name ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+ },
+
+ each: function( obj, callback ) {
+ var length, i = 0;
+
+ if ( isArrayLike( obj ) ) {
+ length = obj.length;
+ for ( ; i < length; i++ ) {
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( i in obj ) {
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+ break;
+ }
+ }
+ }
+
+ return obj;
+ },
+
+ // Support: Android <=4.0 only
+ trim: function( text ) {
+ return text == null ?
+ "" :
+ ( text + "" ).replace( rtrim, "" );
+ },
+
+ // results is for internal usage only
+ makeArray: function( arr, results ) {
+ var ret = results || [];
+
+ if ( arr != null ) {
+ if ( isArrayLike( Object( arr ) ) ) {
+ jQuery.merge( ret,
+ typeof arr === "string" ?
+ [ arr ] : arr
+ );
+ } else {
+ push.call( ret, arr );
+ }
+ }
+
+ return ret;
+ },
+
+ inArray: function( elem, arr, i ) {
+ return arr == null ? -1 : indexOf.call( arr, elem, i );
+ },
+
+ // Support: Android <=4.0 only, PhantomJS 1 only
+ // push.apply(_, arraylike) throws on ancient WebKit
+ merge: function( first, second ) {
+ var len = +second.length,
+ j = 0,
+ i = first.length;
+
+ for ( ; j < len; j++ ) {
+ first[ i++ ] = second[ j ];
+ }
+
+ first.length = i;
+
+ return first;
+ },
+
+ grep: function( elems, callback, invert ) {
+ var callbackInverse,
+ matches = [],
+ i = 0,
+ length = elems.length,
+ callbackExpect = !invert;
+
+ // Go through the array, only saving the items
+ // that pass the validator function
+ for ( ; i < length; i++ ) {
+ callbackInverse = !callback( elems[ i ], i );
+ if ( callbackInverse !== callbackExpect ) {
+ matches.push( elems[ i ] );
+ }
+ }
+
+ return matches;
+ },
+
+ // arg is for internal usage only
+ map: function( elems, callback, arg ) {
+ var length, value,
+ i = 0,
+ ret = [];
+
+ // Go through the array, translating each of the items to their new values
+ if ( isArrayLike( elems ) ) {
+ length = elems.length;
+ for ( ; i < length; i++ ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret.push( value );
+ }
+ }
+
+ // Go through every key on the object,
+ } else {
+ for ( i in elems ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret.push( value );
+ }
+ }
+ }
+
+ // Flatten any nested arrays
+ return concat.apply( [], ret );
+ },
+
+ // A global GUID counter for objects
+ guid: 1,
+
+ // Bind a function to a context, optionally partially applying any
+ // arguments.
+ proxy: function( fn, context ) {
+ var tmp, args, proxy;
+
+ if ( typeof context === "string" ) {
+ tmp = fn[ context ];
+ context = fn;
+ fn = tmp;
+ }
+
+ // Quick check to determine if target is callable, in the spec
+ // this throws a TypeError, but we will just return undefined.
+ if ( !jQuery.isFunction( fn ) ) {
+ return undefined;
+ }
+
+ // Simulated bind
+ args = slice.call( arguments, 2 );
+ proxy = function() {
+ return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
+ };
+
+ // Set the guid of unique handler to the same of original handler, so it can be removed
+ proxy.guid = fn.guid = fn.guid || jQuery.guid++;
+
+ return proxy;
+ },
+
+ now: Date.now,
+
+ // jQuery.support is not used in Core but other projects attach their
+ // properties to it so it needs to exist.
+ support: support
+} );
+
+if ( typeof Symbol === "function" ) {
+ jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
+}
+
+// Populate the class2type map
+jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
+function( i, name ) {
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
+} );
+
+function isArrayLike( obj ) {
+
+ // Support: real iOS 8.2 only (not reproducible in simulator)
+ // `in` check used to prevent JIT error (gh-2145)
+ // hasOwn isn't used here due to false negatives
+ // regarding Nodelist length in IE
+ var length = !!obj && "length" in obj && obj.length,
+ type = jQuery.type( obj );
+
+ if ( type === "function" || jQuery.isWindow( obj ) ) {
+ return false;
+ }
+
+ return type === "array" || length === 0 ||
+ typeof length === "number" && length > 0 && ( length - 1 ) in obj;
+}
+var Sizzle =
+/*!
+ * Sizzle CSS Selector Engine v2.3.3
+ * https://sizzlejs.com/
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: 2016-08-08
+ */
+(function( window ) {
+
+var i,
+ support,
+ Expr,
+ getText,
+ isXML,
+ tokenize,
+ compile,
+ select,
+ outermostContext,
+ sortInput,
+ hasDuplicate,
+
+ // Local document vars
+ setDocument,
+ document,
+ docElem,
+ documentIsHTML,
+ rbuggyQSA,
+ rbuggyMatches,
+ matches,
+ contains,
+
+ // Instance-specific data
+ expando = "sizzle" + 1 * new Date(),
+ preferredDoc = window.document,
+ dirruns = 0,
+ done = 0,
+ classCache = createCache(),
+ tokenCache = createCache(),
+ compilerCache = createCache(),
+ sortOrder = function( a, b ) {
+ if ( a === b ) {
+ hasDuplicate = true;
+ }
+ return 0;
+ },
+
+ // Instance methods
+ hasOwn = ({}).hasOwnProperty,
+ arr = [],
+ pop = arr.pop,
+ push_native = arr.push,
+ push = arr.push,
+ slice = arr.slice,
+ // Use a stripped-down indexOf as it's faster than native
+ // https://jsperf.com/thor-indexof-vs-for/5
+ indexOf = function( list, elem ) {
+ var i = 0,
+ len = list.length;
+ for ( ; i < len; i++ ) {
+ if ( list[i] === elem ) {
+ return i;
+ }
+ }
+ return -1;
+ },
+
+ booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
+
+ // Regular expressions
+
+ // http://www.w3.org/TR/css3-selectors/#whitespace
+ whitespace = "[\\x20\\t\\r\\n\\f]",
+
+ // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
+ identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
+
+ // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
+ attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
+ // Operator (capture 2)
+ "*([*^$|!~]?=)" + whitespace +
+ // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
+ "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
+ "*\\]",
+
+ pseudos = ":(" + identifier + ")(?:\\((" +
+ // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
+ // 1. quoted (capture 3; capture 4 or capture 5)
+ "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
+ // 2. simple (capture 6)
+ "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
+ // 3. anything else (capture 2)
+ ".*" +
+ ")\\)|)",
+
+ // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
+ rwhitespace = new RegExp( whitespace + "+", "g" ),
+ rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
+
+ rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
+ rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
+
+ rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
+
+ rpseudo = new RegExp( pseudos ),
+ ridentifier = new RegExp( "^" + identifier + "$" ),
+
+ matchExpr = {
+ "ID": new RegExp( "^#(" + identifier + ")" ),
+ "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
+ "TAG": new RegExp( "^(" + identifier + "|[*])" ),
+ "ATTR": new RegExp( "^" + attributes ),
+ "PSEUDO": new RegExp( "^" + pseudos ),
+ "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
+ "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
+ "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+ "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
+ // For use in libraries implementing .is()
+ // We use this for POS matching in `select`
+ "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
+ whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
+ },
+
+ rinputs = /^(?:input|select|textarea|button)$/i,
+ rheader = /^h\d$/i,
+
+ rnative = /^[^{]+\{\s*\[native \w/,
+
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
+ rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
+
+ rsibling = /[+~]/,
+
+ // CSS escapes
+ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
+ runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
+ funescape = function( _, escaped, escapedWhitespace ) {
+ var high = "0x" + escaped - 0x10000;
+ // NaN means non-codepoint
+ // Support: Firefox<24
+ // Workaround erroneous numeric interpretation of +"0x"
+ return high !== high || escapedWhitespace ?
+ escaped :
+ high < 0 ?
+ // BMP codepoint
+ String.fromCharCode( high + 0x10000 ) :
+ // Supplemental Plane codepoint (surrogate pair)
+ String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
+ },
+
+ // CSS string/identifier serialization
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
+ fcssescape = function( ch, asCodePoint ) {
+ if ( asCodePoint ) {
+
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
+ if ( ch === "\0" ) {
+ return "\uFFFD";
+ }
+
+ // Control characters and (dependent upon position) numbers get escaped as code points
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
+ }
+
+ // Other potentially-special ASCII characters get backslash-escaped
+ return "\\" + ch;
+ },
+
+ // Used for iframes
+ // See setDocument()
+ // Removing the function wrapper causes a "Permission Denied"
+ // error in IE
+ unloadHandler = function() {
+ setDocument();
+ },
+
+ disabledAncestor = addCombinator(
+ function( elem ) {
+ return elem.disabled === true && ("form" in elem || "label" in elem);
+ },
+ { dir: "parentNode", next: "legend" }
+ );
+
+// Optimize for push.apply( _, NodeList )
+try {
+ push.apply(
+ (arr = slice.call( preferredDoc.childNodes )),
+ preferredDoc.childNodes
+ );
+ // Support: Android<4.0
+ // Detect silently failing push.apply
+ arr[ preferredDoc.childNodes.length ].nodeType;
+} catch ( e ) {
+ push = { apply: arr.length ?
+
+ // Leverage slice if possible
+ function( target, els ) {
+ push_native.apply( target, slice.call(els) );
+ } :
+
+ // Support: IE<9
+ // Otherwise append directly
+ function( target, els ) {
+ var j = target.length,
+ i = 0;
+ // Can't trust NodeList.length
+ while ( (target[j++] = els[i++]) ) {}
+ target.length = j - 1;
+ }
+ };
+}
+
+function Sizzle( selector, context, results, seed ) {
+ var m, i, elem, nid, match, groups, newSelector,
+ newContext = context && context.ownerDocument,
+
+ // nodeType defaults to 9, since context defaults to document
+ nodeType = context ? context.nodeType : 9;
+
+ results = results || [];
+
+ // Return early from calls with invalid selector or context
+ if ( typeof selector !== "string" || !selector ||
+ nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
+
+ return results;
+ }
+
+ // Try to shortcut find operations (as opposed to filters) in HTML documents
+ if ( !seed ) {
+
+ if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
+ setDocument( context );
+ }
+ context = context || document;
+
+ if ( documentIsHTML ) {
+
+ // If the selector is sufficiently simple, try using a "get*By*" DOM method
+ // (excepting DocumentFragment context, where the methods don't exist)
+ if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
+
+ // ID selector
+ if ( (m = match[1]) ) {
+
+ // Document context
+ if ( nodeType === 9 ) {
+ if ( (elem = context.getElementById( m )) ) {
+
+ // Support: IE, Opera, Webkit
+ // TODO: identify versions
+ // getElementById can match elements by name instead of ID
+ if ( elem.id === m ) {
+ results.push( elem );
+ return results;
+ }
+ } else {
+ return results;
+ }
+
+ // Element context
+ } else {
+
+ // Support: IE, Opera, Webkit
+ // TODO: identify versions
+ // getElementById can match elements by name instead of ID
+ if ( newContext && (elem = newContext.getElementById( m )) &&
+ contains( context, elem ) &&
+ elem.id === m ) {
+
+ results.push( elem );
+ return results;
+ }
+ }
+
+ // Type selector
+ } else if ( match[2] ) {
+ push.apply( results, context.getElementsByTagName( selector ) );
+ return results;
+
+ // Class selector
+ } else if ( (m = match[3]) && support.getElementsByClassName &&
+ context.getElementsByClassName ) {
+
+ push.apply( results, context.getElementsByClassName( m ) );
+ return results;
+ }
+ }
+
+ // Take advantage of querySelectorAll
+ if ( support.qsa &&
+ !compilerCache[ selector + " " ] &&
+ (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
+
+ if ( nodeType !== 1 ) {
+ newContext = context;
+ newSelector = selector;
+
+ // qSA looks outside Element context, which is not what we want
+ // Thanks to Andrew Dupont for this workaround technique
+ // Support: IE <=8
+ // Exclude object elements
+ } else if ( context.nodeName.toLowerCase() !== "object" ) {
+
+ // Capture the context ID, setting it first if necessary
+ if ( (nid = context.getAttribute( "id" )) ) {
+ nid = nid.replace( rcssescape, fcssescape );
+ } else {
+ context.setAttribute( "id", (nid = expando) );
+ }
+
+ // Prefix every selector in the list
+ groups = tokenize( selector );
+ i = groups.length;
+ while ( i-- ) {
+ groups[i] = "#" + nid + " " + toSelector( groups[i] );
+ }
+ newSelector = groups.join( "," );
+
+ // Expand context for sibling selectors
+ newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
+ context;
+ }
+
+ if ( newSelector ) {
+ try {
+ push.apply( results,
+ newContext.querySelectorAll( newSelector )
+ );
+ return results;
+ } catch ( qsaError ) {
+ } finally {
+ if ( nid === expando ) {
+ context.removeAttribute( "id" );
+ }
+ }
+ }
+ }
+ }
+ }
+
+ // All others
+ return select( selector.replace( rtrim, "$1" ), context, results, seed );
+}
+
+/**
+ * Create key-value caches of limited size
+ * @returns {function(string, object)} Returns the Object data after storing it on itself with
+ * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
+ * deleting the oldest entry
+ */
+function createCache() {
+ var keys = [];
+
+ function cache( key, value ) {
+ // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+ if ( keys.push( key + " " ) > Expr.cacheLength ) {
+ // Only keep the most recent entries
+ delete cache[ keys.shift() ];
+ }
+ return (cache[ key + " " ] = value);
+ }
+ return cache;
+}
+
+/**
+ * Mark a function for special use by Sizzle
+ * @param {Function} fn The function to mark
+ */
+function markFunction( fn ) {
+ fn[ expando ] = true;
+ return fn;
+}
+
+/**
+ * Support testing using an element
+ * @param {Function} fn Passed the created element and returns a boolean result
+ */
+function assert( fn ) {
+ var el = document.createElement("fieldset");
+
+ try {
+ return !!fn( el );
+ } catch (e) {
+ return false;
+ } finally {
+ // Remove from its parent by default
+ if ( el.parentNode ) {
+ el.parentNode.removeChild( el );
+ }
+ // release memory in IE
+ el = null;
+ }
+}
+
+/**
+ * Adds the same handler for all of the specified attrs
+ * @param {String} attrs Pipe-separated list of attributes
+ * @param {Function} handler The method that will be applied
+ */
+function addHandle( attrs, handler ) {
+ var arr = attrs.split("|"),
+ i = arr.length;
+
+ while ( i-- ) {
+ Expr.attrHandle[ arr[i] ] = handler;
+ }
+}
+
+/**
+ * Checks document order of two siblings
+ * @param {Element} a
+ * @param {Element} b
+ * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
+ */
+function siblingCheck( a, b ) {
+ var cur = b && a,
+ diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
+ a.sourceIndex - b.sourceIndex;
+
+ // Use IE sourceIndex if available on both nodes
+ if ( diff ) {
+ return diff;
+ }
+
+ // Check if b follows a
+ if ( cur ) {
+ while ( (cur = cur.nextSibling) ) {
+ if ( cur === b ) {
+ return -1;
+ }
+ }
+ }
+
+ return a ? 1 : -1;
+}
+
+/**
+ * Returns a function to use in pseudos for input types
+ * @param {String} type
+ */
+function createInputPseudo( type ) {
+ return function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && elem.type === type;
+ };
+}
+
+/**
+ * Returns a function to use in pseudos for buttons
+ * @param {String} type
+ */
+function createButtonPseudo( type ) {
+ return function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && elem.type === type;
+ };
+}
+
+/**
+ * Returns a function to use in pseudos for :enabled/:disabled
+ * @param {Boolean} disabled true for :disabled; false for :enabled
+ */
+function createDisabledPseudo( disabled ) {
+
+ // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
+ return function( elem ) {
+
+ // Only certain elements can match :enabled or :disabled
+ // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
+ // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
+ if ( "form" in elem ) {
+
+ // Check for inherited disabledness on relevant non-disabled elements:
+ // * listed form-associated elements in a disabled fieldset
+ // https://html.spec.whatwg.org/multipage/forms.html#category-listed
+ // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
+ // * option elements in a disabled optgroup
+ // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
+ // All such elements have a "form" property.
+ if ( elem.parentNode && elem.disabled === false ) {
+
+ // Option elements defer to a parent optgroup if present
+ if ( "label" in elem ) {
+ if ( "label" in elem.parentNode ) {
+ return elem.parentNode.disabled === disabled;
+ } else {
+ return elem.disabled === disabled;
+ }
+ }
+
+ // Support: IE 6 - 11
+ // Use the isDisabled shortcut property to check for disabled fieldset ancestors
+ return elem.isDisabled === disabled ||
+
+ // Where there is no isDisabled, check manually
+ /* jshint -W018 */
+ elem.isDisabled !== !disabled &&
+ disabledAncestor( elem ) === disabled;
+ }
+
+ return elem.disabled === disabled;
+
+ // Try to winnow out elements that can't be disabled before trusting the disabled property.
+ // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
+ // even exist on them, let alone have a boolean value.
+ } else if ( "label" in elem ) {
+ return elem.disabled === disabled;
+ }
+
+ // Remaining elements are neither :enabled nor :disabled
+ return false;
+ };
+}
+
+/**
+ * Returns a function to use in pseudos for positionals
+ * @param {Function} fn
+ */
+function createPositionalPseudo( fn ) {
+ return markFunction(function( argument ) {
+ argument = +argument;
+ return markFunction(function( seed, matches ) {
+ var j,
+ matchIndexes = fn( [], seed.length, argument ),
+ i = matchIndexes.length;
+
+ // Match elements found at the specified indexes
+ while ( i-- ) {
+ if ( seed[ (j = matchIndexes[i]) ] ) {
+ seed[j] = !(matches[j] = seed[j]);
+ }
+ }
+ });
+ });
+}
+
+/**
+ * Checks a node for validity as a Sizzle context
+ * @param {Element|Object=} context
+ * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
+ */
+function testContext( context ) {
+ return context && typeof context.getElementsByTagName !== "undefined" && context;
+}
+
+// Expose support vars for convenience
+support = Sizzle.support = {};
+
+/**
+ * Detects XML nodes
+ * @param {Element|Object} elem An element or a document
+ * @returns {Boolean} True iff elem is a non-HTML XML node
+ */
+isXML = Sizzle.isXML = function( elem ) {
+ // documentElement is verified for cases where it doesn't yet exist
+ // (such as loading iframes in IE - #4833)
+ var documentElement = elem && (elem.ownerDocument || elem).documentElement;
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+/**
+ * Sets document-related variables once based on the current document
+ * @param {Element|Object} [doc] An element or document object to use to set the document
+ * @returns {Object} Returns the current document
+ */
+setDocument = Sizzle.setDocument = function( node ) {
+ var hasCompare, subWindow,
+ doc = node ? node.ownerDocument || node : preferredDoc;
+
+ // Return early if doc is invalid or already selected
+ if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
+ return document;
+ }
+
+ // Update global variables
+ document = doc;
+ docElem = document.documentElement;
+ documentIsHTML = !isXML( document );
+
+ // Support: IE 9-11, Edge
+ // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
+ if ( preferredDoc !== document &&
+ (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
+
+ // Support: IE 11, Edge
+ if ( subWindow.addEventListener ) {
+ subWindow.addEventListener( "unload", unloadHandler, false );
+
+ // Support: IE 9 - 10 only
+ } else if ( subWindow.attachEvent ) {
+ subWindow.attachEvent( "onunload", unloadHandler );
+ }
+ }
+
+ /* Attributes
+ ---------------------------------------------------------------------- */
+
+ // Support: IE<8
+ // Verify that getAttribute really returns attributes and not properties
+ // (excepting IE8 booleans)
+ support.attributes = assert(function( el ) {
+ el.className = "i";
+ return !el.getAttribute("className");
+ });
+
+ /* getElement(s)By*
+ ---------------------------------------------------------------------- */
+
+ // Check if getElementsByTagName("*") returns only elements
+ support.getElementsByTagName = assert(function( el ) {
+ el.appendChild( document.createComment("") );
+ return !el.getElementsByTagName("*").length;
+ });
+
+ // Support: IE<9
+ support.getElementsByClassName = rnative.test( document.getElementsByClassName );
+
+ // Support: IE<10
+ // Check if getElementById returns elements by name
+ // The broken getElementById methods don't pick up programmatically-set names,
+ // so use a roundabout getElementsByName test
+ support.getById = assert(function( el ) {
+ docElem.appendChild( el ).id = expando;
+ return !document.getElementsByName || !document.getElementsByName( expando ).length;
+ });
+
+ // ID filter and find
+ if ( support.getById ) {
+ Expr.filter["ID"] = function( id ) {
+ var attrId = id.replace( runescape, funescape );
+ return function( elem ) {
+ return elem.getAttribute("id") === attrId;
+ };
+ };
+ Expr.find["ID"] = function( id, context ) {
+ if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
+ var elem = context.getElementById( id );
+ return elem ? [ elem ] : [];
+ }
+ };
+ } else {
+ Expr.filter["ID"] = function( id ) {
+ var attrId = id.replace( runescape, funescape );
+ return function( elem ) {
+ var node = typeof elem.getAttributeNode !== "undefined" &&
+ elem.getAttributeNode("id");
+ return node && node.value === attrId;
+ };
+ };
+
+ // Support: IE 6 - 7 only
+ // getElementById is not reliable as a find shortcut
+ Expr.find["ID"] = function( id, context ) {
+ if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
+ var node, i, elems,
+ elem = context.getElementById( id );
+
+ if ( elem ) {
+
+ // Verify the id attribute
+ node = elem.getAttributeNode("id");
+ if ( node && node.value === id ) {
+ return [ elem ];
+ }
+
+ // Fall back on getElementsByName
+ elems = context.getElementsByName( id );
+ i = 0;
+ while ( (elem = elems[i++]) ) {
+ node = elem.getAttributeNode("id");
+ if ( node && node.value === id ) {
+ return [ elem ];
+ }
+ }
+ }
+
+ return [];
+ }
+ };
+ }
+
+ // Tag
+ Expr.find["TAG"] = support.getElementsByTagName ?
+ function( tag, context ) {
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ return context.getElementsByTagName( tag );
+
+ // DocumentFragment nodes don't have gEBTN
+ } else if ( support.qsa ) {
+ return context.querySelectorAll( tag );
+ }
+ } :
+
+ function( tag, context ) {
+ var elem,
+ tmp = [],
+ i = 0,
+ // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
+ results = context.getElementsByTagName( tag );
+
+ // Filter out possible comments
+ if ( tag === "*" ) {
+ while ( (elem = results[i++]) ) {
+ if ( elem.nodeType === 1 ) {
+ tmp.push( elem );
+ }
+ }
+
+ return tmp;
+ }
+ return results;
+ };
+
+ // Class
+ Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
+ if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
+ return context.getElementsByClassName( className );
+ }
+ };
+
+ /* QSA/matchesSelector
+ ---------------------------------------------------------------------- */
+
+ // QSA and matchesSelector support
+
+ // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+ rbuggyMatches = [];
+
+ // qSa(:focus) reports false when true (Chrome 21)
+ // We allow this because of a bug in IE8/9 that throws an error
+ // whenever `document.activeElement` is accessed on an iframe
+ // So, we allow :focus to pass through QSA all the time to avoid the IE error
+ // See https://bugs.jquery.com/ticket/13378
+ rbuggyQSA = [];
+
+ if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
+ // Build QSA regex
+ // Regex strategy adopted from Diego Perini
+ assert(function( el ) {
+ // Select is set to empty string on purpose
+ // This is to test IE's treatment of not explicitly
+ // setting a boolean content attribute,
+ // since its presence should be enough
+ // https://bugs.jquery.com/ticket/12359
+ docElem.appendChild( el ).innerHTML = " " +
+ "" +
+ " ";
+
+ // Support: IE8, Opera 11-12.16
+ // Nothing should be selected when empty strings follow ^= or $= or *=
+ // The test attribute must be unknown in Opera but "safe" for WinRT
+ // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
+ if ( el.querySelectorAll("[msallowcapture^='']").length ) {
+ rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
+ }
+
+ // Support: IE8
+ // Boolean attributes and "value" are not treated correctly
+ if ( !el.querySelectorAll("[selected]").length ) {
+ rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
+ }
+
+ // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
+ if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
+ rbuggyQSA.push("~=");
+ }
+
+ // Webkit/Opera - :checked should return selected option elements
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+ // IE8 throws error here and will not see later tests
+ if ( !el.querySelectorAll(":checked").length ) {
+ rbuggyQSA.push(":checked");
+ }
+
+ // Support: Safari 8+, iOS 8+
+ // https://bugs.webkit.org/show_bug.cgi?id=136851
+ // In-page `selector#id sibling-combinator selector` fails
+ if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
+ rbuggyQSA.push(".#.+[+~]");
+ }
+ });
+
+ assert(function( el ) {
+ el.innerHTML = " " +
+ " ";
+
+ // Support: Windows 8 Native Apps
+ // The type and name attributes are restricted during .innerHTML assignment
+ var input = document.createElement("input");
+ input.setAttribute( "type", "hidden" );
+ el.appendChild( input ).setAttribute( "name", "D" );
+
+ // Support: IE8
+ // Enforce case-sensitivity of name attribute
+ if ( el.querySelectorAll("[name=d]").length ) {
+ rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
+ }
+
+ // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+ // IE8 throws error here and will not see later tests
+ if ( el.querySelectorAll(":enabled").length !== 2 ) {
+ rbuggyQSA.push( ":enabled", ":disabled" );
+ }
+
+ // Support: IE9-11+
+ // IE's :disabled selector does not pick up the children of disabled fieldsets
+ docElem.appendChild( el ).disabled = true;
+ if ( el.querySelectorAll(":disabled").length !== 2 ) {
+ rbuggyQSA.push( ":enabled", ":disabled" );
+ }
+
+ // Opera 10-11 does not throw on post-comma invalid pseudos
+ el.querySelectorAll("*,:x");
+ rbuggyQSA.push(",.*:");
+ });
+ }
+
+ if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
+ docElem.webkitMatchesSelector ||
+ docElem.mozMatchesSelector ||
+ docElem.oMatchesSelector ||
+ docElem.msMatchesSelector) )) ) {
+
+ assert(function( el ) {
+ // Check to see if it's possible to do matchesSelector
+ // on a disconnected node (IE 9)
+ support.disconnectedMatch = matches.call( el, "*" );
+
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ matches.call( el, "[s!='']:x" );
+ rbuggyMatches.push( "!=", pseudos );
+ });
+ }
+
+ rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
+ rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
+
+ /* Contains
+ ---------------------------------------------------------------------- */
+ hasCompare = rnative.test( docElem.compareDocumentPosition );
+
+ // Element contains another
+ // Purposefully self-exclusive
+ // As in, an element does not contain itself
+ contains = hasCompare || rnative.test( docElem.contains ) ?
+ function( a, b ) {
+ var adown = a.nodeType === 9 ? a.documentElement : a,
+ bup = b && b.parentNode;
+ return a === bup || !!( bup && bup.nodeType === 1 && (
+ adown.contains ?
+ adown.contains( bup ) :
+ a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
+ ));
+ } :
+ function( a, b ) {
+ if ( b ) {
+ while ( (b = b.parentNode) ) {
+ if ( b === a ) {
+ return true;
+ }
+ }
+ }
+ return false;
+ };
+
+ /* Sorting
+ ---------------------------------------------------------------------- */
+
+ // Document order sorting
+ sortOrder = hasCompare ?
+ function( a, b ) {
+
+ // Flag for duplicate removal
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ // Sort on method existence if only one input has compareDocumentPosition
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
+ if ( compare ) {
+ return compare;
+ }
+
+ // Calculate position if both inputs belong to the same document
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
+ a.compareDocumentPosition( b ) :
+
+ // Otherwise we know they are disconnected
+ 1;
+
+ // Disconnected nodes
+ if ( compare & 1 ||
+ (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
+
+ // Choose the first element that is related to our preferred document
+ if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
+ return -1;
+ }
+ if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
+ return 1;
+ }
+
+ // Maintain original order
+ return sortInput ?
+ ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+ 0;
+ }
+
+ return compare & 4 ? -1 : 1;
+ } :
+ function( a, b ) {
+ // Exit early if the nodes are identical
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ var cur,
+ i = 0,
+ aup = a.parentNode,
+ bup = b.parentNode,
+ ap = [ a ],
+ bp = [ b ];
+
+ // Parentless nodes are either documents or disconnected
+ if ( !aup || !bup ) {
+ return a === document ? -1 :
+ b === document ? 1 :
+ aup ? -1 :
+ bup ? 1 :
+ sortInput ?
+ ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+ 0;
+
+ // If the nodes are siblings, we can do a quick check
+ } else if ( aup === bup ) {
+ return siblingCheck( a, b );
+ }
+
+ // Otherwise we need full lists of their ancestors for comparison
+ cur = a;
+ while ( (cur = cur.parentNode) ) {
+ ap.unshift( cur );
+ }
+ cur = b;
+ while ( (cur = cur.parentNode) ) {
+ bp.unshift( cur );
+ }
+
+ // Walk down the tree looking for a discrepancy
+ while ( ap[i] === bp[i] ) {
+ i++;
+ }
+
+ return i ?
+ // Do a sibling check if the nodes have a common ancestor
+ siblingCheck( ap[i], bp[i] ) :
+
+ // Otherwise nodes in our document sort first
+ ap[i] === preferredDoc ? -1 :
+ bp[i] === preferredDoc ? 1 :
+ 0;
+ };
+
+ return document;
+};
+
+Sizzle.matches = function( expr, elements ) {
+ return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+ // Set document vars if needed
+ if ( ( elem.ownerDocument || elem ) !== document ) {
+ setDocument( elem );
+ }
+
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace( rattributeQuotes, "='$1']" );
+
+ if ( support.matchesSelector && documentIsHTML &&
+ !compilerCache[ expr + " " ] &&
+ ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
+ ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
+
+ try {
+ var ret = matches.call( elem, expr );
+
+ // IE 9's matchesSelector returns false on disconnected nodes
+ if ( ret || support.disconnectedMatch ||
+ // As well, disconnected nodes are said to be in a document
+ // fragment in IE 9
+ elem.document && elem.document.nodeType !== 11 ) {
+ return ret;
+ }
+ } catch (e) {}
+ }
+
+ return Sizzle( expr, document, null, [ elem ] ).length > 0;
+};
+
+Sizzle.contains = function( context, elem ) {
+ // Set document vars if needed
+ if ( ( context.ownerDocument || context ) !== document ) {
+ setDocument( context );
+ }
+ return contains( context, elem );
+};
+
+Sizzle.attr = function( elem, name ) {
+ // Set document vars if needed
+ if ( ( elem.ownerDocument || elem ) !== document ) {
+ setDocument( elem );
+ }
+
+ var fn = Expr.attrHandle[ name.toLowerCase() ],
+ // Don't get fooled by Object.prototype properties (jQuery #13807)
+ val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
+ fn( elem, name, !documentIsHTML ) :
+ undefined;
+
+ return val !== undefined ?
+ val :
+ support.attributes || !documentIsHTML ?
+ elem.getAttribute( name ) :
+ (val = elem.getAttributeNode(name)) && val.specified ?
+ val.value :
+ null;
+};
+
+Sizzle.escape = function( sel ) {
+ return (sel + "").replace( rcssescape, fcssescape );
+};
+
+Sizzle.error = function( msg ) {
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Document sorting and removing duplicates
+ * @param {ArrayLike} results
+ */
+Sizzle.uniqueSort = function( results ) {
+ var elem,
+ duplicates = [],
+ j = 0,
+ i = 0;
+
+ // Unless we *know* we can detect duplicates, assume their presence
+ hasDuplicate = !support.detectDuplicates;
+ sortInput = !support.sortStable && results.slice( 0 );
+ results.sort( sortOrder );
+
+ if ( hasDuplicate ) {
+ while ( (elem = results[i++]) ) {
+ if ( elem === results[ i ] ) {
+ j = duplicates.push( i );
+ }
+ }
+ while ( j-- ) {
+ results.splice( duplicates[ j ], 1 );
+ }
+ }
+
+ // Clear input after sorting to release objects
+ // See https://github.com/jquery/sizzle/pull/225
+ sortInput = null;
+
+ return results;
+};
+
+/**
+ * Utility function for retrieving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+getText = Sizzle.getText = function( elem ) {
+ var node,
+ ret = "",
+ i = 0,
+ nodeType = elem.nodeType;
+
+ if ( !nodeType ) {
+ // If no nodeType, this is expected to be an array
+ while ( (node = elem[i++]) ) {
+ // Do not traverse comment nodes
+ ret += getText( node );
+ }
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+ // Use textContent for elements
+ // innerText usage removed for consistency of new lines (jQuery #11153)
+ if ( typeof elem.textContent === "string" ) {
+ return elem.textContent;
+ } else {
+ // Traverse its children
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+ ret += getText( elem );
+ }
+ }
+ } else if ( nodeType === 3 || nodeType === 4 ) {
+ return elem.nodeValue;
+ }
+ // Do not include comment or processing instruction nodes
+
+ return ret;
+};
+
+Expr = Sizzle.selectors = {
+
+ // Can be adjusted by the user
+ cacheLength: 50,
+
+ createPseudo: markFunction,
+
+ match: matchExpr,
+
+ attrHandle: {},
+
+ find: {},
+
+ relative: {
+ ">": { dir: "parentNode", first: true },
+ " ": { dir: "parentNode" },
+ "+": { dir: "previousSibling", first: true },
+ "~": { dir: "previousSibling" }
+ },
+
+ preFilter: {
+ "ATTR": function( match ) {
+ match[1] = match[1].replace( runescape, funescape );
+
+ // Move the given value to match[3] whether quoted or unquoted
+ match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
+
+ if ( match[2] === "~=" ) {
+ match[3] = " " + match[3] + " ";
+ }
+
+ return match.slice( 0, 4 );
+ },
+
+ "CHILD": function( match ) {
+ /* matches from matchExpr["CHILD"]
+ 1 type (only|nth|...)
+ 2 what (child|of-type)
+ 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+ 4 xn-component of xn+y argument ([+-]?\d*n|)
+ 5 sign of xn-component
+ 6 x of xn-component
+ 7 sign of y-component
+ 8 y of y-component
+ */
+ match[1] = match[1].toLowerCase();
+
+ if ( match[1].slice( 0, 3 ) === "nth" ) {
+ // nth-* requires argument
+ if ( !match[3] ) {
+ Sizzle.error( match[0] );
+ }
+
+ // numeric x and y parameters for Expr.filter.CHILD
+ // remember that false/true cast respectively to 0/1
+ match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
+ match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
+
+ // other types prohibit arguments
+ } else if ( match[3] ) {
+ Sizzle.error( match[0] );
+ }
+
+ return match;
+ },
+
+ "PSEUDO": function( match ) {
+ var excess,
+ unquoted = !match[6] && match[2];
+
+ if ( matchExpr["CHILD"].test( match[0] ) ) {
+ return null;
+ }
+
+ // Accept quoted arguments as-is
+ if ( match[3] ) {
+ match[2] = match[4] || match[5] || "";
+
+ // Strip excess characters from unquoted arguments
+ } else if ( unquoted && rpseudo.test( unquoted ) &&
+ // Get excess from tokenize (recursively)
+ (excess = tokenize( unquoted, true )) &&
+ // advance to the next closing parenthesis
+ (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
+
+ // excess is a negative index
+ match[0] = match[0].slice( 0, excess );
+ match[2] = unquoted.slice( 0, excess );
+ }
+
+ // Return only captures needed by the pseudo filter method (type and argument)
+ return match.slice( 0, 3 );
+ }
+ },
+
+ filter: {
+
+ "TAG": function( nodeNameSelector ) {
+ var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
+ return nodeNameSelector === "*" ?
+ function() { return true; } :
+ function( elem ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+ };
+ },
+
+ "CLASS": function( className ) {
+ var pattern = classCache[ className + " " ];
+
+ return pattern ||
+ (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
+ classCache( className, function( elem ) {
+ return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
+ });
+ },
+
+ "ATTR": function( name, operator, check ) {
+ return function( elem ) {
+ var result = Sizzle.attr( elem, name );
+
+ if ( result == null ) {
+ return operator === "!=";
+ }
+ if ( !operator ) {
+ return true;
+ }
+
+ result += "";
+
+ return operator === "=" ? result === check :
+ operator === "!=" ? result !== check :
+ operator === "^=" ? check && result.indexOf( check ) === 0 :
+ operator === "*=" ? check && result.indexOf( check ) > -1 :
+ operator === "$=" ? check && result.slice( -check.length ) === check :
+ operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
+ operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
+ false;
+ };
+ },
+
+ "CHILD": function( type, what, argument, first, last ) {
+ var simple = type.slice( 0, 3 ) !== "nth",
+ forward = type.slice( -4 ) !== "last",
+ ofType = what === "of-type";
+
+ return first === 1 && last === 0 ?
+
+ // Shortcut for :nth-*(n)
+ function( elem ) {
+ return !!elem.parentNode;
+ } :
+
+ function( elem, context, xml ) {
+ var cache, uniqueCache, outerCache, node, nodeIndex, start,
+ dir = simple !== forward ? "nextSibling" : "previousSibling",
+ parent = elem.parentNode,
+ name = ofType && elem.nodeName.toLowerCase(),
+ useCache = !xml && !ofType,
+ diff = false;
+
+ if ( parent ) {
+
+ // :(first|last|only)-(child|of-type)
+ if ( simple ) {
+ while ( dir ) {
+ node = elem;
+ while ( (node = node[ dir ]) ) {
+ if ( ofType ?
+ node.nodeName.toLowerCase() === name :
+ node.nodeType === 1 ) {
+
+ return false;
+ }
+ }
+ // Reverse direction for :only-* (if we haven't yet done so)
+ start = dir = type === "only" && !start && "nextSibling";
+ }
+ return true;
+ }
+
+ start = [ forward ? parent.firstChild : parent.lastChild ];
+
+ // non-xml :nth-child(...) stores cache data on `parent`
+ if ( forward && useCache ) {
+
+ // Seek `elem` from a previously-cached index
+
+ // ...in a gzip-friendly way
+ node = parent;
+ outerCache = node[ expando ] || (node[ expando ] = {});
+
+ // Support: IE <9 only
+ // Defend against cloned attroperties (jQuery gh-1709)
+ uniqueCache = outerCache[ node.uniqueID ] ||
+ (outerCache[ node.uniqueID ] = {});
+
+ cache = uniqueCache[ type ] || [];
+ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+ diff = nodeIndex && cache[ 2 ];
+ node = nodeIndex && parent.childNodes[ nodeIndex ];
+
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
+
+ // Fallback to seeking `elem` from the start
+ (diff = nodeIndex = 0) || start.pop()) ) {
+
+ // When found, cache indexes on `parent` and break
+ if ( node.nodeType === 1 && ++diff && node === elem ) {
+ uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
+ break;
+ }
+ }
+
+ } else {
+ // Use previously-cached element index if available
+ if ( useCache ) {
+ // ...in a gzip-friendly way
+ node = elem;
+ outerCache = node[ expando ] || (node[ expando ] = {});
+
+ // Support: IE <9 only
+ // Defend against cloned attroperties (jQuery gh-1709)
+ uniqueCache = outerCache[ node.uniqueID ] ||
+ (outerCache[ node.uniqueID ] = {});
+
+ cache = uniqueCache[ type ] || [];
+ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+ diff = nodeIndex;
+ }
+
+ // xml :nth-child(...)
+ // or :nth-last-child(...) or :nth(-last)?-of-type(...)
+ if ( diff === false ) {
+ // Use the same loop as above to seek `elem` from the start
+ while ( (node = ++nodeIndex && node && node[ dir ] ||
+ (diff = nodeIndex = 0) || start.pop()) ) {
+
+ if ( ( ofType ?
+ node.nodeName.toLowerCase() === name :
+ node.nodeType === 1 ) &&
+ ++diff ) {
+
+ // Cache the index of each encountered element
+ if ( useCache ) {
+ outerCache = node[ expando ] || (node[ expando ] = {});
+
+ // Support: IE <9 only
+ // Defend against cloned attroperties (jQuery gh-1709)
+ uniqueCache = outerCache[ node.uniqueID ] ||
+ (outerCache[ node.uniqueID ] = {});
+
+ uniqueCache[ type ] = [ dirruns, diff ];
+ }
+
+ if ( node === elem ) {
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ // Incorporate the offset, then check against cycle size
+ diff -= last;
+ return diff === first || ( diff % first === 0 && diff / first >= 0 );
+ }
+ };
+ },
+
+ "PSEUDO": function( pseudo, argument ) {
+ // pseudo-class names are case-insensitive
+ // http://www.w3.org/TR/selectors/#pseudo-classes
+ // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
+ // Remember that setFilters inherits from pseudos
+ var args,
+ fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
+ Sizzle.error( "unsupported pseudo: " + pseudo );
+
+ // The user may use createPseudo to indicate that
+ // arguments are needed to create the filter function
+ // just as Sizzle does
+ if ( fn[ expando ] ) {
+ return fn( argument );
+ }
+
+ // But maintain support for old signatures
+ if ( fn.length > 1 ) {
+ args = [ pseudo, pseudo, "", argument ];
+ return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
+ markFunction(function( seed, matches ) {
+ var idx,
+ matched = fn( seed, argument ),
+ i = matched.length;
+ while ( i-- ) {
+ idx = indexOf( seed, matched[i] );
+ seed[ idx ] = !( matches[ idx ] = matched[i] );
+ }
+ }) :
+ function( elem ) {
+ return fn( elem, 0, args );
+ };
+ }
+
+ return fn;
+ }
+ },
+
+ pseudos: {
+ // Potentially complex pseudos
+ "not": markFunction(function( selector ) {
+ // Trim the selector passed to compile
+ // to avoid treating leading and trailing
+ // spaces as combinators
+ var input = [],
+ results = [],
+ matcher = compile( selector.replace( rtrim, "$1" ) );
+
+ return matcher[ expando ] ?
+ markFunction(function( seed, matches, context, xml ) {
+ var elem,
+ unmatched = matcher( seed, null, xml, [] ),
+ i = seed.length;
+
+ // Match elements unmatched by `matcher`
+ while ( i-- ) {
+ if ( (elem = unmatched[i]) ) {
+ seed[i] = !(matches[i] = elem);
+ }
+ }
+ }) :
+ function( elem, context, xml ) {
+ input[0] = elem;
+ matcher( input, null, xml, results );
+ // Don't keep the element (issue #299)
+ input[0] = null;
+ return !results.pop();
+ };
+ }),
+
+ "has": markFunction(function( selector ) {
+ return function( elem ) {
+ return Sizzle( selector, elem ).length > 0;
+ };
+ }),
+
+ "contains": markFunction(function( text ) {
+ text = text.replace( runescape, funescape );
+ return function( elem ) {
+ return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
+ };
+ }),
+
+ // "Whether an element is represented by a :lang() selector
+ // is based solely on the element's language value
+ // being equal to the identifier C,
+ // or beginning with the identifier C immediately followed by "-".
+ // The matching of C against the element's language value is performed case-insensitively.
+ // The identifier C does not have to be a valid language name."
+ // http://www.w3.org/TR/selectors/#lang-pseudo
+ "lang": markFunction( function( lang ) {
+ // lang value must be a valid identifier
+ if ( !ridentifier.test(lang || "") ) {
+ Sizzle.error( "unsupported lang: " + lang );
+ }
+ lang = lang.replace( runescape, funescape ).toLowerCase();
+ return function( elem ) {
+ var elemLang;
+ do {
+ if ( (elemLang = documentIsHTML ?
+ elem.lang :
+ elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
+
+ elemLang = elemLang.toLowerCase();
+ return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
+ }
+ } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
+ return false;
+ };
+ }),
+
+ // Miscellaneous
+ "target": function( elem ) {
+ var hash = window.location && window.location.hash;
+ return hash && hash.slice( 1 ) === elem.id;
+ },
+
+ "root": function( elem ) {
+ return elem === docElem;
+ },
+
+ "focus": function( elem ) {
+ return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
+ },
+
+ // Boolean properties
+ "enabled": createDisabledPseudo( false ),
+ "disabled": createDisabledPseudo( true ),
+
+ "checked": function( elem ) {
+ // In CSS3, :checked should return both checked and selected elements
+ // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+ var nodeName = elem.nodeName.toLowerCase();
+ return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
+ },
+
+ "selected": function( elem ) {
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ if ( elem.parentNode ) {
+ elem.parentNode.selectedIndex;
+ }
+
+ return elem.selected === true;
+ },
+
+ // Contents
+ "empty": function( elem ) {
+ // http://www.w3.org/TR/selectors/#empty-pseudo
+ // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
+ // but not by others (comment: 8; processing instruction: 7; etc.)
+ // nodeType < 6 works because attributes (2) do not appear as children
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+ if ( elem.nodeType < 6 ) {
+ return false;
+ }
+ }
+ return true;
+ },
+
+ "parent": function( elem ) {
+ return !Expr.pseudos["empty"]( elem );
+ },
+
+ // Element/input types
+ "header": function( elem ) {
+ return rheader.test( elem.nodeName );
+ },
+
+ "input": function( elem ) {
+ return rinputs.test( elem.nodeName );
+ },
+
+ "button": function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && elem.type === "button" || name === "button";
+ },
+
+ "text": function( elem ) {
+ var attr;
+ return elem.nodeName.toLowerCase() === "input" &&
+ elem.type === "text" &&
+
+ // Support: IE<8
+ // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
+ ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
+ },
+
+ // Position-in-collection
+ "first": createPositionalPseudo(function() {
+ return [ 0 ];
+ }),
+
+ "last": createPositionalPseudo(function( matchIndexes, length ) {
+ return [ length - 1 ];
+ }),
+
+ "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ return [ argument < 0 ? argument + length : argument ];
+ }),
+
+ "even": createPositionalPseudo(function( matchIndexes, length ) {
+ var i = 0;
+ for ( ; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "odd": createPositionalPseudo(function( matchIndexes, length ) {
+ var i = 1;
+ for ( ; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ var i = argument < 0 ? argument + length : argument;
+ for ( ; --i >= 0; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ var i = argument < 0 ? argument + length : argument;
+ for ( ; ++i < length; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ })
+ }
+};
+
+Expr.pseudos["nth"] = Expr.pseudos["eq"];
+
+// Add button/input type pseudos
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
+ Expr.pseudos[ i ] = createInputPseudo( i );
+}
+for ( i in { submit: true, reset: true } ) {
+ Expr.pseudos[ i ] = createButtonPseudo( i );
+}
+
+// Easy API for creating new setFilters
+function setFilters() {}
+setFilters.prototype = Expr.filters = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
+ var matched, match, tokens, type,
+ soFar, groups, preFilters,
+ cached = tokenCache[ selector + " " ];
+
+ if ( cached ) {
+ return parseOnly ? 0 : cached.slice( 0 );
+ }
+
+ soFar = selector;
+ groups = [];
+ preFilters = Expr.preFilter;
+
+ while ( soFar ) {
+
+ // Comma and first run
+ if ( !matched || (match = rcomma.exec( soFar )) ) {
+ if ( match ) {
+ // Don't consume trailing commas as valid
+ soFar = soFar.slice( match[0].length ) || soFar;
+ }
+ groups.push( (tokens = []) );
+ }
+
+ matched = false;
+
+ // Combinators
+ if ( (match = rcombinators.exec( soFar )) ) {
+ matched = match.shift();
+ tokens.push({
+ value: matched,
+ // Cast descendant combinators to space
+ type: match[0].replace( rtrim, " " )
+ });
+ soFar = soFar.slice( matched.length );
+ }
+
+ // Filters
+ for ( type in Expr.filter ) {
+ if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
+ (match = preFilters[ type ]( match ))) ) {
+ matched = match.shift();
+ tokens.push({
+ value: matched,
+ type: type,
+ matches: match
+ });
+ soFar = soFar.slice( matched.length );
+ }
+ }
+
+ if ( !matched ) {
+ break;
+ }
+ }
+
+ // Return the length of the invalid excess
+ // if we're just parsing
+ // Otherwise, throw an error or return tokens
+ return parseOnly ?
+ soFar.length :
+ soFar ?
+ Sizzle.error( selector ) :
+ // Cache the tokens
+ tokenCache( selector, groups ).slice( 0 );
+};
+
+function toSelector( tokens ) {
+ var i = 0,
+ len = tokens.length,
+ selector = "";
+ for ( ; i < len; i++ ) {
+ selector += tokens[i].value;
+ }
+ return selector;
+}
+
+function addCombinator( matcher, combinator, base ) {
+ var dir = combinator.dir,
+ skip = combinator.next,
+ key = skip || dir,
+ checkNonElements = base && key === "parentNode",
+ doneName = done++;
+
+ return combinator.first ?
+ // Check against closest ancestor/preceding element
+ function( elem, context, xml ) {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ return matcher( elem, context, xml );
+ }
+ }
+ return false;
+ } :
+
+ // Check against all ancestor/preceding elements
+ function( elem, context, xml ) {
+ var oldCache, uniqueCache, outerCache,
+ newCache = [ dirruns, doneName ];
+
+ // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
+ if ( xml ) {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ if ( matcher( elem, context, xml ) ) {
+ return true;
+ }
+ }
+ }
+ } else {
+ while ( (elem = elem[ dir ]) ) {
+ if ( elem.nodeType === 1 || checkNonElements ) {
+ outerCache = elem[ expando ] || (elem[ expando ] = {});
+
+ // Support: IE <9 only
+ // Defend against cloned attroperties (jQuery gh-1709)
+ uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
+
+ if ( skip && skip === elem.nodeName.toLowerCase() ) {
+ elem = elem[ dir ] || elem;
+ } else if ( (oldCache = uniqueCache[ key ]) &&
+ oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
+
+ // Assign to newCache so results back-propagate to previous elements
+ return (newCache[ 2 ] = oldCache[ 2 ]);
+ } else {
+ // Reuse newcache so results back-propagate to previous elements
+ uniqueCache[ key ] = newCache;
+
+ // A match means we're done; a fail means we have to keep checking
+ if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
+ return true;
+ }
+ }
+ }
+ }
+ }
+ return false;
+ };
+}
+
+function elementMatcher( matchers ) {
+ return matchers.length > 1 ?
+ function( elem, context, xml ) {
+ var i = matchers.length;
+ while ( i-- ) {
+ if ( !matchers[i]( elem, context, xml ) ) {
+ return false;
+ }
+ }
+ return true;
+ } :
+ matchers[0];
+}
+
+function multipleContexts( selector, contexts, results ) {
+ var i = 0,
+ len = contexts.length;
+ for ( ; i < len; i++ ) {
+ Sizzle( selector, contexts[i], results );
+ }
+ return results;
+}
+
+function condense( unmatched, map, filter, context, xml ) {
+ var elem,
+ newUnmatched = [],
+ i = 0,
+ len = unmatched.length,
+ mapped = map != null;
+
+ for ( ; i < len; i++ ) {
+ if ( (elem = unmatched[i]) ) {
+ if ( !filter || filter( elem, context, xml ) ) {
+ newUnmatched.push( elem );
+ if ( mapped ) {
+ map.push( i );
+ }
+ }
+ }
+ }
+
+ return newUnmatched;
+}
+
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
+ if ( postFilter && !postFilter[ expando ] ) {
+ postFilter = setMatcher( postFilter );
+ }
+ if ( postFinder && !postFinder[ expando ] ) {
+ postFinder = setMatcher( postFinder, postSelector );
+ }
+ return markFunction(function( seed, results, context, xml ) {
+ var temp, i, elem,
+ preMap = [],
+ postMap = [],
+ preexisting = results.length,
+
+ // Get initial elements from seed or context
+ elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
+
+ // Prefilter to get matcher input, preserving a map for seed-results synchronization
+ matcherIn = preFilter && ( seed || !selector ) ?
+ condense( elems, preMap, preFilter, context, xml ) :
+ elems,
+
+ matcherOut = matcher ?
+ // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
+ postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
+
+ // ...intermediate processing is necessary
+ [] :
+
+ // ...otherwise use results directly
+ results :
+ matcherIn;
+
+ // Find primary matches
+ if ( matcher ) {
+ matcher( matcherIn, matcherOut, context, xml );
+ }
+
+ // Apply postFilter
+ if ( postFilter ) {
+ temp = condense( matcherOut, postMap );
+ postFilter( temp, [], context, xml );
+
+ // Un-match failing elements by moving them back to matcherIn
+ i = temp.length;
+ while ( i-- ) {
+ if ( (elem = temp[i]) ) {
+ matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
+ }
+ }
+ }
+
+ if ( seed ) {
+ if ( postFinder || preFilter ) {
+ if ( postFinder ) {
+ // Get the final matcherOut by condensing this intermediate into postFinder contexts
+ temp = [];
+ i = matcherOut.length;
+ while ( i-- ) {
+ if ( (elem = matcherOut[i]) ) {
+ // Restore matcherIn since elem is not yet a final match
+ temp.push( (matcherIn[i] = elem) );
+ }
+ }
+ postFinder( null, (matcherOut = []), temp, xml );
+ }
+
+ // Move matched elements from seed to results to keep them synchronized
+ i = matcherOut.length;
+ while ( i-- ) {
+ if ( (elem = matcherOut[i]) &&
+ (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
+
+ seed[temp] = !(results[temp] = elem);
+ }
+ }
+ }
+
+ // Add elements to results, through postFinder if defined
+ } else {
+ matcherOut = condense(
+ matcherOut === results ?
+ matcherOut.splice( preexisting, matcherOut.length ) :
+ matcherOut
+ );
+ if ( postFinder ) {
+ postFinder( null, results, matcherOut, xml );
+ } else {
+ push.apply( results, matcherOut );
+ }
+ }
+ });
+}
+
+function matcherFromTokens( tokens ) {
+ var checkContext, matcher, j,
+ len = tokens.length,
+ leadingRelative = Expr.relative[ tokens[0].type ],
+ implicitRelative = leadingRelative || Expr.relative[" "],
+ i = leadingRelative ? 1 : 0,
+
+ // The foundational matcher ensures that elements are reachable from top-level context(s)
+ matchContext = addCombinator( function( elem ) {
+ return elem === checkContext;
+ }, implicitRelative, true ),
+ matchAnyContext = addCombinator( function( elem ) {
+ return indexOf( checkContext, elem ) > -1;
+ }, implicitRelative, true ),
+ matchers = [ function( elem, context, xml ) {
+ var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
+ (checkContext = context).nodeType ?
+ matchContext( elem, context, xml ) :
+ matchAnyContext( elem, context, xml ) );
+ // Avoid hanging onto element (issue #299)
+ checkContext = null;
+ return ret;
+ } ];
+
+ for ( ; i < len; i++ ) {
+ if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
+ matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
+ } else {
+ matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
+
+ // Return special upon seeing a positional matcher
+ if ( matcher[ expando ] ) {
+ // Find the next relative operator (if any) for proper handling
+ j = ++i;
+ for ( ; j < len; j++ ) {
+ if ( Expr.relative[ tokens[j].type ] ) {
+ break;
+ }
+ }
+ return setMatcher(
+ i > 1 && elementMatcher( matchers ),
+ i > 1 && toSelector(
+ // If the preceding token was a descendant combinator, insert an implicit any-element `*`
+ tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
+ ).replace( rtrim, "$1" ),
+ matcher,
+ i < j && matcherFromTokens( tokens.slice( i, j ) ),
+ j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
+ j < len && toSelector( tokens )
+ );
+ }
+ matchers.push( matcher );
+ }
+ }
+
+ return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+ var bySet = setMatchers.length > 0,
+ byElement = elementMatchers.length > 0,
+ superMatcher = function( seed, context, xml, results, outermost ) {
+ var elem, j, matcher,
+ matchedCount = 0,
+ i = "0",
+ unmatched = seed && [],
+ setMatched = [],
+ contextBackup = outermostContext,
+ // We must always have either seed elements or outermost context
+ elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
+ // Use integer dirruns iff this is the outermost matcher
+ dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
+ len = elems.length;
+
+ if ( outermost ) {
+ outermostContext = context === document || context || outermost;
+ }
+
+ // Add elements passing elementMatchers directly to results
+ // Support: IE<9, Safari
+ // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id
+ for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
+ if ( byElement && elem ) {
+ j = 0;
+ if ( !context && elem.ownerDocument !== document ) {
+ setDocument( elem );
+ xml = !documentIsHTML;
+ }
+ while ( (matcher = elementMatchers[j++]) ) {
+ if ( matcher( elem, context || document, xml) ) {
+ results.push( elem );
+ break;
+ }
+ }
+ if ( outermost ) {
+ dirruns = dirrunsUnique;
+ }
+ }
+
+ // Track unmatched elements for set filters
+ if ( bySet ) {
+ // They will have gone through all possible matchers
+ if ( (elem = !matcher && elem) ) {
+ matchedCount--;
+ }
+
+ // Lengthen the array for every element, matched or not
+ if ( seed ) {
+ unmatched.push( elem );
+ }
+ }
+ }
+
+ // `i` is now the count of elements visited above, and adding it to `matchedCount`
+ // makes the latter nonnegative.
+ matchedCount += i;
+
+ // Apply set filters to unmatched elements
+ // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
+ // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
+ // no element matchers and no seed.
+ // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
+ // case, which will result in a "00" `matchedCount` that differs from `i` but is also
+ // numerically zero.
+ if ( bySet && i !== matchedCount ) {
+ j = 0;
+ while ( (matcher = setMatchers[j++]) ) {
+ matcher( unmatched, setMatched, context, xml );
+ }
+
+ if ( seed ) {
+ // Reintegrate element matches to eliminate the need for sorting
+ if ( matchedCount > 0 ) {
+ while ( i-- ) {
+ if ( !(unmatched[i] || setMatched[i]) ) {
+ setMatched[i] = pop.call( results );
+ }
+ }
+ }
+
+ // Discard index placeholder values to get only actual matches
+ setMatched = condense( setMatched );
+ }
+
+ // Add matches to results
+ push.apply( results, setMatched );
+
+ // Seedless set matches succeeding multiple successful matchers stipulate sorting
+ if ( outermost && !seed && setMatched.length > 0 &&
+ ( matchedCount + setMatchers.length ) > 1 ) {
+
+ Sizzle.uniqueSort( results );
+ }
+ }
+
+ // Override manipulation of globals by nested matchers
+ if ( outermost ) {
+ dirruns = dirrunsUnique;
+ outermostContext = contextBackup;
+ }
+
+ return unmatched;
+ };
+
+ return bySet ?
+ markFunction( superMatcher ) :
+ superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
+ var i,
+ setMatchers = [],
+ elementMatchers = [],
+ cached = compilerCache[ selector + " " ];
+
+ if ( !cached ) {
+ // Generate a function of recursive functions that can be used to check each element
+ if ( !match ) {
+ match = tokenize( selector );
+ }
+ i = match.length;
+ while ( i-- ) {
+ cached = matcherFromTokens( match[i] );
+ if ( cached[ expando ] ) {
+ setMatchers.push( cached );
+ } else {
+ elementMatchers.push( cached );
+ }
+ }
+
+ // Cache the compiled function
+ cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
+
+ // Save selector and tokenization
+ cached.selector = selector;
+ }
+ return cached;
+};
+
+/**
+ * A low-level selection function that works with Sizzle's compiled
+ * selector functions
+ * @param {String|Function} selector A selector or a pre-compiled
+ * selector function built with Sizzle.compile
+ * @param {Element} context
+ * @param {Array} [results]
+ * @param {Array} [seed] A set of elements to match against
+ */
+select = Sizzle.select = function( selector, context, results, seed ) {
+ var i, tokens, token, type, find,
+ compiled = typeof selector === "function" && selector,
+ match = !seed && tokenize( (selector = compiled.selector || selector) );
+
+ results = results || [];
+
+ // Try to minimize operations if there is only one selector in the list and no seed
+ // (the latter of which guarantees us context)
+ if ( match.length === 1 ) {
+
+ // Reduce context if the leading compound selector is an ID
+ tokens = match[0] = match[0].slice( 0 );
+ if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
+ context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
+
+ context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
+ if ( !context ) {
+ return results;
+
+ // Precompiled matchers will still verify ancestry, so step up a level
+ } else if ( compiled ) {
+ context = context.parentNode;
+ }
+
+ selector = selector.slice( tokens.shift().value.length );
+ }
+
+ // Fetch a seed set for right-to-left matching
+ i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
+ while ( i-- ) {
+ token = tokens[i];
+
+ // Abort if we hit a combinator
+ if ( Expr.relative[ (type = token.type) ] ) {
+ break;
+ }
+ if ( (find = Expr.find[ type ]) ) {
+ // Search, expanding context for leading sibling combinators
+ if ( (seed = find(
+ token.matches[0].replace( runescape, funescape ),
+ rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
+ )) ) {
+
+ // If seed is empty or no tokens remain, we can return early
+ tokens.splice( i, 1 );
+ selector = seed.length && toSelector( tokens );
+ if ( !selector ) {
+ push.apply( results, seed );
+ return results;
+ }
+
+ break;
+ }
+ }
+ }
+ }
+
+ // Compile and execute a filtering function if one is not provided
+ // Provide `match` to avoid retokenization if we modified the selector above
+ ( compiled || compile( selector, match ) )(
+ seed,
+ context,
+ !documentIsHTML,
+ results,
+ !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
+ );
+ return results;
+};
+
+// One-time assignments
+
+// Sort stability
+support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
+
+// Support: Chrome 14-35+
+// Always assume duplicates if they aren't passed to the comparison function
+support.detectDuplicates = !!hasDuplicate;
+
+// Initialize against the default document
+setDocument();
+
+// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
+// Detached nodes confoundingly follow *each other*
+support.sortDetached = assert(function( el ) {
+ // Should return 1, but returns 4 (following)
+ return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
+});
+
+// Support: IE<8
+// Prevent attribute/property "interpolation"
+// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
+if ( !assert(function( el ) {
+ el.innerHTML = " ";
+ return el.firstChild.getAttribute("href") === "#" ;
+}) ) {
+ addHandle( "type|href|height|width", function( elem, name, isXML ) {
+ if ( !isXML ) {
+ return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
+ }
+ });
+}
+
+// Support: IE<9
+// Use defaultValue in place of getAttribute("value")
+if ( !support.attributes || !assert(function( el ) {
+ el.innerHTML = " ";
+ el.firstChild.setAttribute( "value", "" );
+ return el.firstChild.getAttribute( "value" ) === "";
+}) ) {
+ addHandle( "value", function( elem, name, isXML ) {
+ if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
+ return elem.defaultValue;
+ }
+ });
+}
+
+// Support: IE<9
+// Use getAttributeNode to fetch booleans when getAttribute lies
+if ( !assert(function( el ) {
+ return el.getAttribute("disabled") == null;
+}) ) {
+ addHandle( booleans, function( elem, name, isXML ) {
+ var val;
+ if ( !isXML ) {
+ return elem[ name ] === true ? name.toLowerCase() :
+ (val = elem.getAttributeNode( name )) && val.specified ?
+ val.value :
+ null;
+ }
+ });
+}
+
+return Sizzle;
+
+})( window );
+
+
+
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+
+// Deprecated
+jQuery.expr[ ":" ] = jQuery.expr.pseudos;
+jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+jQuery.escapeSelector = Sizzle.escape;
+
+
+
+
+var dir = function( elem, dir, until ) {
+ var matched = [],
+ truncate = until !== undefined;
+
+ while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
+ if ( elem.nodeType === 1 ) {
+ if ( truncate && jQuery( elem ).is( until ) ) {
+ break;
+ }
+ matched.push( elem );
+ }
+ }
+ return matched;
+};
+
+
+var siblings = function( n, elem ) {
+ var matched = [];
+
+ for ( ; n; n = n.nextSibling ) {
+ if ( n.nodeType === 1 && n !== elem ) {
+ matched.push( n );
+ }
+ }
+
+ return matched;
+};
+
+
+var rneedsContext = jQuery.expr.match.needsContext;
+
+var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
+
+
+
+var risSimple = /^.[^:#\[\.,]*$/;
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, not ) {
+ if ( jQuery.isFunction( qualifier ) ) {
+ return jQuery.grep( elements, function( elem, i ) {
+ return !!qualifier.call( elem, i, elem ) !== not;
+ } );
+ }
+
+ // Single element
+ if ( qualifier.nodeType ) {
+ return jQuery.grep( elements, function( elem ) {
+ return ( elem === qualifier ) !== not;
+ } );
+ }
+
+ // Arraylike of elements (jQuery, arguments, Array)
+ if ( typeof qualifier !== "string" ) {
+ return jQuery.grep( elements, function( elem ) {
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
+ } );
+ }
+
+ // Simple selector that can be filtered directly, removing non-Elements
+ if ( risSimple.test( qualifier ) ) {
+ return jQuery.filter( qualifier, elements, not );
+ }
+
+ // Complex selector, compare the two sets, removing non-Elements
+ qualifier = jQuery.filter( qualifier, elements );
+ return jQuery.grep( elements, function( elem ) {
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
+ } );
+}
+
+jQuery.filter = function( expr, elems, not ) {
+ var elem = elems[ 0 ];
+
+ if ( not ) {
+ expr = ":not(" + expr + ")";
+ }
+
+ if ( elems.length === 1 && elem.nodeType === 1 ) {
+ return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
+ }
+
+ return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
+ return elem.nodeType === 1;
+ } ) );
+};
+
+jQuery.fn.extend( {
+ find: function( selector ) {
+ var i, ret,
+ len = this.length,
+ self = this;
+
+ if ( typeof selector !== "string" ) {
+ return this.pushStack( jQuery( selector ).filter( function() {
+ for ( i = 0; i < len; i++ ) {
+ if ( jQuery.contains( self[ i ], this ) ) {
+ return true;
+ }
+ }
+ } ) );
+ }
+
+ ret = this.pushStack( [] );
+
+ for ( i = 0; i < len; i++ ) {
+ jQuery.find( selector, self[ i ], ret );
+ }
+
+ return len > 1 ? jQuery.uniqueSort( ret ) : ret;
+ },
+ filter: function( selector ) {
+ return this.pushStack( winnow( this, selector || [], false ) );
+ },
+ not: function( selector ) {
+ return this.pushStack( winnow( this, selector || [], true ) );
+ },
+ is: function( selector ) {
+ return !!winnow(
+ this,
+
+ // If this is a positional/relative selector, check membership in the returned set
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
+ typeof selector === "string" && rneedsContext.test( selector ) ?
+ jQuery( selector ) :
+ selector || [],
+ false
+ ).length;
+ }
+} );
+
+
+// Initialize a jQuery object
+
+
+// A central reference to the root jQuery(document)
+var rootjQuery,
+
+ // A simple way to check for HTML strings
+ // Prioritize #id over to avoid XSS via location.hash (#9521)
+ // Strict HTML recognition (#11290: must start with <)
+ // Shortcut simple #id case for speed
+ rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
+
+ init = jQuery.fn.init = function( selector, context, root ) {
+ var match, elem;
+
+ // HANDLE: $(""), $(null), $(undefined), $(false)
+ if ( !selector ) {
+ return this;
+ }
+
+ // Method init() accepts an alternate rootjQuery
+ // so migrate can support jQuery.sub (gh-2101)
+ root = root || rootjQuery;
+
+ // Handle HTML strings
+ if ( typeof selector === "string" ) {
+ if ( selector[ 0 ] === "<" &&
+ selector[ selector.length - 1 ] === ">" &&
+ selector.length >= 3 ) {
+
+ // Assume that strings that start and end with <> are HTML and skip the regex check
+ match = [ null, selector, null ];
+
+ } else {
+ match = rquickExpr.exec( selector );
+ }
+
+ // Match html or make sure no context is specified for #id
+ if ( match && ( match[ 1 ] || !context ) ) {
+
+ // HANDLE: $(html) -> $(array)
+ if ( match[ 1 ] ) {
+ context = context instanceof jQuery ? context[ 0 ] : context;
+
+ // Option to run scripts is true for back-compat
+ // Intentionally let the error be thrown if parseHTML is not present
+ jQuery.merge( this, jQuery.parseHTML(
+ match[ 1 ],
+ context && context.nodeType ? context.ownerDocument || context : document,
+ true
+ ) );
+
+ // HANDLE: $(html, props)
+ if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
+ for ( match in context ) {
+
+ // Properties of context are called as methods if possible
+ if ( jQuery.isFunction( this[ match ] ) ) {
+ this[ match ]( context[ match ] );
+
+ // ...and otherwise set as attributes
+ } else {
+ this.attr( match, context[ match ] );
+ }
+ }
+ }
+
+ return this;
+
+ // HANDLE: $(#id)
+ } else {
+ elem = document.getElementById( match[ 2 ] );
+
+ if ( elem ) {
+
+ // Inject the element directly into the jQuery object
+ this[ 0 ] = elem;
+ this.length = 1;
+ }
+ return this;
+ }
+
+ // HANDLE: $(expr, $(...))
+ } else if ( !context || context.jquery ) {
+ return ( context || root ).find( selector );
+
+ // HANDLE: $(expr, context)
+ // (which is just equivalent to: $(context).find(expr)
+ } else {
+ return this.constructor( context ).find( selector );
+ }
+
+ // HANDLE: $(DOMElement)
+ } else if ( selector.nodeType ) {
+ this[ 0 ] = selector;
+ this.length = 1;
+ return this;
+
+ // HANDLE: $(function)
+ // Shortcut for document ready
+ } else if ( jQuery.isFunction( selector ) ) {
+ return root.ready !== undefined ?
+ root.ready( selector ) :
+
+ // Execute immediately if ready is not present
+ selector( jQuery );
+ }
+
+ return jQuery.makeArray( selector, this );
+ };
+
+// Give the init function the jQuery prototype for later instantiation
+init.prototype = jQuery.fn;
+
+// Initialize central reference
+rootjQuery = jQuery( document );
+
+
+var rparentsprev = /^(?:parents|prev(?:Until|All))/,
+
+ // Methods guaranteed to produce a unique set when starting from a unique set
+ guaranteedUnique = {
+ children: true,
+ contents: true,
+ next: true,
+ prev: true
+ };
+
+jQuery.fn.extend( {
+ has: function( target ) {
+ var targets = jQuery( target, this ),
+ l = targets.length;
+
+ return this.filter( function() {
+ var i = 0;
+ for ( ; i < l; i++ ) {
+ if ( jQuery.contains( this, targets[ i ] ) ) {
+ return true;
+ }
+ }
+ } );
+ },
+
+ closest: function( selectors, context ) {
+ var cur,
+ i = 0,
+ l = this.length,
+ matched = [],
+ targets = typeof selectors !== "string" && jQuery( selectors );
+
+ // Positional selectors never match, since there's no _selection_ context
+ if ( !rneedsContext.test( selectors ) ) {
+ for ( ; i < l; i++ ) {
+ for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
+
+ // Always skip document fragments
+ if ( cur.nodeType < 11 && ( targets ?
+ targets.index( cur ) > -1 :
+
+ // Don't pass non-elements to Sizzle
+ cur.nodeType === 1 &&
+ jQuery.find.matchesSelector( cur, selectors ) ) ) {
+
+ matched.push( cur );
+ break;
+ }
+ }
+ }
+ }
+
+ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
+ },
+
+ // Determine the position of an element within the set
+ index: function( elem ) {
+
+ // No argument, return index in parent
+ if ( !elem ) {
+ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
+ }
+
+ // Index in selector
+ if ( typeof elem === "string" ) {
+ return indexOf.call( jQuery( elem ), this[ 0 ] );
+ }
+
+ // Locate the position of the desired element
+ return indexOf.call( this,
+
+ // If it receives a jQuery object, the first element is used
+ elem.jquery ? elem[ 0 ] : elem
+ );
+ },
+
+ add: function( selector, context ) {
+ return this.pushStack(
+ jQuery.uniqueSort(
+ jQuery.merge( this.get(), jQuery( selector, context ) )
+ )
+ );
+ },
+
+ addBack: function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ }
+} );
+
+function sibling( cur, dir ) {
+ while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
+ return cur;
+}
+
+jQuery.each( {
+ parent: function( elem ) {
+ var parent = elem.parentNode;
+ return parent && parent.nodeType !== 11 ? parent : null;
+ },
+ parents: function( elem ) {
+ return dir( elem, "parentNode" );
+ },
+ parentsUntil: function( elem, i, until ) {
+ return dir( elem, "parentNode", until );
+ },
+ next: function( elem ) {
+ return sibling( elem, "nextSibling" );
+ },
+ prev: function( elem ) {
+ return sibling( elem, "previousSibling" );
+ },
+ nextAll: function( elem ) {
+ return dir( elem, "nextSibling" );
+ },
+ prevAll: function( elem ) {
+ return dir( elem, "previousSibling" );
+ },
+ nextUntil: function( elem, i, until ) {
+ return dir( elem, "nextSibling", until );
+ },
+ prevUntil: function( elem, i, until ) {
+ return dir( elem, "previousSibling", until );
+ },
+ siblings: function( elem ) {
+ return siblings( ( elem.parentNode || {} ).firstChild, elem );
+ },
+ children: function( elem ) {
+ return siblings( elem.firstChild );
+ },
+ contents: function( elem ) {
+ return elem.contentDocument || jQuery.merge( [], elem.childNodes );
+ }
+}, function( name, fn ) {
+ jQuery.fn[ name ] = function( until, selector ) {
+ var matched = jQuery.map( this, fn, until );
+
+ if ( name.slice( -5 ) !== "Until" ) {
+ selector = until;
+ }
+
+ if ( selector && typeof selector === "string" ) {
+ matched = jQuery.filter( selector, matched );
+ }
+
+ if ( this.length > 1 ) {
+
+ // Remove duplicates
+ if ( !guaranteedUnique[ name ] ) {
+ jQuery.uniqueSort( matched );
+ }
+
+ // Reverse order for parents* and prev-derivatives
+ if ( rparentsprev.test( name ) ) {
+ matched.reverse();
+ }
+ }
+
+ return this.pushStack( matched );
+ };
+} );
+var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
+
+
+
+// Convert String-formatted options into Object-formatted ones
+function createOptions( options ) {
+ var object = {};
+ jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
+ object[ flag ] = true;
+ } );
+ return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ * options: an optional list of space-separated options that will change how
+ * the callback list behaves or a more traditional option object
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible options:
+ *
+ * once: will ensure the callback list can only be fired once (like a Deferred)
+ *
+ * memory: will keep track of previous values and will call any callback added
+ * after the list has been fired right away with the latest "memorized"
+ * values (like a Deferred)
+ *
+ * unique: will ensure a callback can only be added once (no duplicate in the list)
+ *
+ * stopOnFalse: interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( options ) {
+
+ // Convert options from String-formatted to Object-formatted if needed
+ // (we check in cache first)
+ options = typeof options === "string" ?
+ createOptions( options ) :
+ jQuery.extend( {}, options );
+
+ var // Flag to know if list is currently firing
+ firing,
+
+ // Last fire value for non-forgettable lists
+ memory,
+
+ // Flag to know if list was already fired
+ fired,
+
+ // Flag to prevent firing
+ locked,
+
+ // Actual callback list
+ list = [],
+
+ // Queue of execution data for repeatable lists
+ queue = [],
+
+ // Index of currently firing callback (modified by add/remove as needed)
+ firingIndex = -1,
+
+ // Fire callbacks
+ fire = function() {
+
+ // Enforce single-firing
+ locked = options.once;
+
+ // Execute callbacks for all pending executions,
+ // respecting firingIndex overrides and runtime changes
+ fired = firing = true;
+ for ( ; queue.length; firingIndex = -1 ) {
+ memory = queue.shift();
+ while ( ++firingIndex < list.length ) {
+
+ // Run callback and check for early termination
+ if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
+ options.stopOnFalse ) {
+
+ // Jump to end and forget the data so .add doesn't re-fire
+ firingIndex = list.length;
+ memory = false;
+ }
+ }
+ }
+
+ // Forget the data if we're done with it
+ if ( !options.memory ) {
+ memory = false;
+ }
+
+ firing = false;
+
+ // Clean up if we're done firing for good
+ if ( locked ) {
+
+ // Keep an empty list if we have data for future add calls
+ if ( memory ) {
+ list = [];
+
+ // Otherwise, this object is spent
+ } else {
+ list = "";
+ }
+ }
+ },
+
+ // Actual Callbacks object
+ self = {
+
+ // Add a callback or a collection of callbacks to the list
+ add: function() {
+ if ( list ) {
+
+ // If we have memory from a past run, we should fire after adding
+ if ( memory && !firing ) {
+ firingIndex = list.length - 1;
+ queue.push( memory );
+ }
+
+ ( function add( args ) {
+ jQuery.each( args, function( _, arg ) {
+ if ( jQuery.isFunction( arg ) ) {
+ if ( !options.unique || !self.has( arg ) ) {
+ list.push( arg );
+ }
+ } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
+
+ // Inspect recursively
+ add( arg );
+ }
+ } );
+ } )( arguments );
+
+ if ( memory && !firing ) {
+ fire();
+ }
+ }
+ return this;
+ },
+
+ // Remove a callback from the list
+ remove: function() {
+ jQuery.each( arguments, function( _, arg ) {
+ var index;
+ while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
+ list.splice( index, 1 );
+
+ // Handle firing indexes
+ if ( index <= firingIndex ) {
+ firingIndex--;
+ }
+ }
+ } );
+ return this;
+ },
+
+ // Check if a given callback is in the list.
+ // If no argument is given, return whether or not list has callbacks attached.
+ has: function( fn ) {
+ return fn ?
+ jQuery.inArray( fn, list ) > -1 :
+ list.length > 0;
+ },
+
+ // Remove all callbacks from the list
+ empty: function() {
+ if ( list ) {
+ list = [];
+ }
+ return this;
+ },
+
+ // Disable .fire and .add
+ // Abort any current/pending executions
+ // Clear all callbacks and values
+ disable: function() {
+ locked = queue = [];
+ list = memory = "";
+ return this;
+ },
+ disabled: function() {
+ return !list;
+ },
+
+ // Disable .fire
+ // Also disable .add unless we have memory (since it would have no effect)
+ // Abort any pending executions
+ lock: function() {
+ locked = queue = [];
+ if ( !memory && !firing ) {
+ list = memory = "";
+ }
+ return this;
+ },
+ locked: function() {
+ return !!locked;
+ },
+
+ // Call all callbacks with the given context and arguments
+ fireWith: function( context, args ) {
+ if ( !locked ) {
+ args = args || [];
+ args = [ context, args.slice ? args.slice() : args ];
+ queue.push( args );
+ if ( !firing ) {
+ fire();
+ }
+ }
+ return this;
+ },
+
+ // Call all the callbacks with the given arguments
+ fire: function() {
+ self.fireWith( this, arguments );
+ return this;
+ },
+
+ // To know if the callbacks have already been called at least once
+ fired: function() {
+ return !!fired;
+ }
+ };
+
+ return self;
+};
+
+
+function Identity( v ) {
+ return v;
+}
+function Thrower( ex ) {
+ throw ex;
+}
+
+function adoptValue( value, resolve, reject ) {
+ var method;
+
+ try {
+
+ // Check for promise aspect first to privilege synchronous behavior
+ if ( value && jQuery.isFunction( ( method = value.promise ) ) ) {
+ method.call( value ).done( resolve ).fail( reject );
+
+ // Other thenables
+ } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {
+ method.call( value, resolve, reject );
+
+ // Other non-thenables
+ } else {
+
+ // Support: Android 4.0 only
+ // Strict mode functions invoked without .call/.apply get global-object context
+ resolve.call( undefined, value );
+ }
+
+ // For Promises/A+, convert exceptions into rejections
+ // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
+ // Deferred#then to conditionally suppress rejection.
+ } catch ( value ) {
+
+ // Support: Android 4.0 only
+ // Strict mode functions invoked without .call/.apply get global-object context
+ reject.call( undefined, value );
+ }
+}
+
+jQuery.extend( {
+
+ Deferred: function( func ) {
+ var tuples = [
+
+ // action, add listener, callbacks,
+ // ... .then handlers, argument index, [final state]
+ [ "notify", "progress", jQuery.Callbacks( "memory" ),
+ jQuery.Callbacks( "memory" ), 2 ],
+ [ "resolve", "done", jQuery.Callbacks( "once memory" ),
+ jQuery.Callbacks( "once memory" ), 0, "resolved" ],
+ [ "reject", "fail", jQuery.Callbacks( "once memory" ),
+ jQuery.Callbacks( "once memory" ), 1, "rejected" ]
+ ],
+ state = "pending",
+ promise = {
+ state: function() {
+ return state;
+ },
+ always: function() {
+ deferred.done( arguments ).fail( arguments );
+ return this;
+ },
+ "catch": function( fn ) {
+ return promise.then( null, fn );
+ },
+
+ // Keep pipe for back-compat
+ pipe: function( /* fnDone, fnFail, fnProgress */ ) {
+ var fns = arguments;
+
+ return jQuery.Deferred( function( newDefer ) {
+ jQuery.each( tuples, function( i, tuple ) {
+
+ // Map tuples (progress, done, fail) to arguments (done, fail, progress)
+ var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
+
+ // deferred.progress(function() { bind to newDefer or newDefer.notify })
+ // deferred.done(function() { bind to newDefer or newDefer.resolve })
+ // deferred.fail(function() { bind to newDefer or newDefer.reject })
+ deferred[ tuple[ 1 ] ]( function() {
+ var returned = fn && fn.apply( this, arguments );
+ if ( returned && jQuery.isFunction( returned.promise ) ) {
+ returned.promise()
+ .progress( newDefer.notify )
+ .done( newDefer.resolve )
+ .fail( newDefer.reject );
+ } else {
+ newDefer[ tuple[ 0 ] + "With" ](
+ this,
+ fn ? [ returned ] : arguments
+ );
+ }
+ } );
+ } );
+ fns = null;
+ } ).promise();
+ },
+ then: function( onFulfilled, onRejected, onProgress ) {
+ var maxDepth = 0;
+ function resolve( depth, deferred, handler, special ) {
+ return function() {
+ var that = this,
+ args = arguments,
+ mightThrow = function() {
+ var returned, then;
+
+ // Support: Promises/A+ section 2.3.3.3.3
+ // https://promisesaplus.com/#point-59
+ // Ignore double-resolution attempts
+ if ( depth < maxDepth ) {
+ return;
+ }
+
+ returned = handler.apply( that, args );
+
+ // Support: Promises/A+ section 2.3.1
+ // https://promisesaplus.com/#point-48
+ if ( returned === deferred.promise() ) {
+ throw new TypeError( "Thenable self-resolution" );
+ }
+
+ // Support: Promises/A+ sections 2.3.3.1, 3.5
+ // https://promisesaplus.com/#point-54
+ // https://promisesaplus.com/#point-75
+ // Retrieve `then` only once
+ then = returned &&
+
+ // Support: Promises/A+ section 2.3.4
+ // https://promisesaplus.com/#point-64
+ // Only check objects and functions for thenability
+ ( typeof returned === "object" ||
+ typeof returned === "function" ) &&
+ returned.then;
+
+ // Handle a returned thenable
+ if ( jQuery.isFunction( then ) ) {
+
+ // Special processors (notify) just wait for resolution
+ if ( special ) {
+ then.call(
+ returned,
+ resolve( maxDepth, deferred, Identity, special ),
+ resolve( maxDepth, deferred, Thrower, special )
+ );
+
+ // Normal processors (resolve) also hook into progress
+ } else {
+
+ // ...and disregard older resolution values
+ maxDepth++;
+
+ then.call(
+ returned,
+ resolve( maxDepth, deferred, Identity, special ),
+ resolve( maxDepth, deferred, Thrower, special ),
+ resolve( maxDepth, deferred, Identity,
+ deferred.notifyWith )
+ );
+ }
+
+ // Handle all other returned values
+ } else {
+
+ // Only substitute handlers pass on context
+ // and multiple values (non-spec behavior)
+ if ( handler !== Identity ) {
+ that = undefined;
+ args = [ returned ];
+ }
+
+ // Process the value(s)
+ // Default process is resolve
+ ( special || deferred.resolveWith )( that, args );
+ }
+ },
+
+ // Only normal processors (resolve) catch and reject exceptions
+ process = special ?
+ mightThrow :
+ function() {
+ try {
+ mightThrow();
+ } catch ( e ) {
+
+ if ( jQuery.Deferred.exceptionHook ) {
+ jQuery.Deferred.exceptionHook( e,
+ process.stackTrace );
+ }
+
+ // Support: Promises/A+ section 2.3.3.3.4.1
+ // https://promisesaplus.com/#point-61
+ // Ignore post-resolution exceptions
+ if ( depth + 1 >= maxDepth ) {
+
+ // Only substitute handlers pass on context
+ // and multiple values (non-spec behavior)
+ if ( handler !== Thrower ) {
+ that = undefined;
+ args = [ e ];
+ }
+
+ deferred.rejectWith( that, args );
+ }
+ }
+ };
+
+ // Support: Promises/A+ section 2.3.3.3.1
+ // https://promisesaplus.com/#point-57
+ // Re-resolve promises immediately to dodge false rejection from
+ // subsequent errors
+ if ( depth ) {
+ process();
+ } else {
+
+ // Call an optional hook to record the stack, in case of exception
+ // since it's otherwise lost when execution goes async
+ if ( jQuery.Deferred.getStackHook ) {
+ process.stackTrace = jQuery.Deferred.getStackHook();
+ }
+ window.setTimeout( process );
+ }
+ };
+ }
+
+ return jQuery.Deferred( function( newDefer ) {
+
+ // progress_handlers.add( ... )
+ tuples[ 0 ][ 3 ].add(
+ resolve(
+ 0,
+ newDefer,
+ jQuery.isFunction( onProgress ) ?
+ onProgress :
+ Identity,
+ newDefer.notifyWith
+ )
+ );
+
+ // fulfilled_handlers.add( ... )
+ tuples[ 1 ][ 3 ].add(
+ resolve(
+ 0,
+ newDefer,
+ jQuery.isFunction( onFulfilled ) ?
+ onFulfilled :
+ Identity
+ )
+ );
+
+ // rejected_handlers.add( ... )
+ tuples[ 2 ][ 3 ].add(
+ resolve(
+ 0,
+ newDefer,
+ jQuery.isFunction( onRejected ) ?
+ onRejected :
+ Thrower
+ )
+ );
+ } ).promise();
+ },
+
+ // Get a promise for this deferred
+ // If obj is provided, the promise aspect is added to the object
+ promise: function( obj ) {
+ return obj != null ? jQuery.extend( obj, promise ) : promise;
+ }
+ },
+ deferred = {};
+
+ // Add list-specific methods
+ jQuery.each( tuples, function( i, tuple ) {
+ var list = tuple[ 2 ],
+ stateString = tuple[ 5 ];
+
+ // promise.progress = list.add
+ // promise.done = list.add
+ // promise.fail = list.add
+ promise[ tuple[ 1 ] ] = list.add;
+
+ // Handle state
+ if ( stateString ) {
+ list.add(
+ function() {
+
+ // state = "resolved" (i.e., fulfilled)
+ // state = "rejected"
+ state = stateString;
+ },
+
+ // rejected_callbacks.disable
+ // fulfilled_callbacks.disable
+ tuples[ 3 - i ][ 2 ].disable,
+
+ // progress_callbacks.lock
+ tuples[ 0 ][ 2 ].lock
+ );
+ }
+
+ // progress_handlers.fire
+ // fulfilled_handlers.fire
+ // rejected_handlers.fire
+ list.add( tuple[ 3 ].fire );
+
+ // deferred.notify = function() { deferred.notifyWith(...) }
+ // deferred.resolve = function() { deferred.resolveWith(...) }
+ // deferred.reject = function() { deferred.rejectWith(...) }
+ deferred[ tuple[ 0 ] ] = function() {
+ deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
+ return this;
+ };
+
+ // deferred.notifyWith = list.fireWith
+ // deferred.resolveWith = list.fireWith
+ // deferred.rejectWith = list.fireWith
+ deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
+ } );
+
+ // Make the deferred a promise
+ promise.promise( deferred );
+
+ // Call given func if any
+ if ( func ) {
+ func.call( deferred, deferred );
+ }
+
+ // All done!
+ return deferred;
+ },
+
+ // Deferred helper
+ when: function( singleValue ) {
+ var
+
+ // count of uncompleted subordinates
+ remaining = arguments.length,
+
+ // count of unprocessed arguments
+ i = remaining,
+
+ // subordinate fulfillment data
+ resolveContexts = Array( i ),
+ resolveValues = slice.call( arguments ),
+
+ // the master Deferred
+ master = jQuery.Deferred(),
+
+ // subordinate callback factory
+ updateFunc = function( i ) {
+ return function( value ) {
+ resolveContexts[ i ] = this;
+ resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
+ if ( !( --remaining ) ) {
+ master.resolveWith( resolveContexts, resolveValues );
+ }
+ };
+ };
+
+ // Single- and empty arguments are adopted like Promise.resolve
+ if ( remaining <= 1 ) {
+ adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );
+
+ // Use .then() to unwrap secondary thenables (cf. gh-3000)
+ if ( master.state() === "pending" ||
+ jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
+
+ return master.then();
+ }
+ }
+
+ // Multiple arguments are aggregated like Promise.all array elements
+ while ( i-- ) {
+ adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
+ }
+
+ return master.promise();
+ }
+} );
+
+
+// These usually indicate a programmer mistake during development,
+// warn about them ASAP rather than swallowing them by default.
+var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
+
+jQuery.Deferred.exceptionHook = function( error, stack ) {
+
+ // Support: IE 8 - 9 only
+ // Console exists when dev tools are open, which can happen at any time
+ if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
+ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
+ }
+};
+
+
+
+
+jQuery.readyException = function( error ) {
+ window.setTimeout( function() {
+ throw error;
+ } );
+};
+
+
+
+
+// The deferred used on DOM ready
+var readyList = jQuery.Deferred();
+
+jQuery.fn.ready = function( fn ) {
+
+ readyList
+ .then( fn )
+
+ // Wrap jQuery.readyException in a function so that the lookup
+ // happens at the time of error handling instead of callback
+ // registration.
+ .catch( function( error ) {
+ jQuery.readyException( error );
+ } );
+
+ return this;
+};
+
+jQuery.extend( {
+
+ // Is the DOM ready to be used? Set to true once it occurs.
+ isReady: false,
+
+ // A counter to track how many items to wait for before
+ // the ready event fires. See #6781
+ readyWait: 1,
+
+ // Hold (or release) the ready event
+ holdReady: function( hold ) {
+ if ( hold ) {
+ jQuery.readyWait++;
+ } else {
+ jQuery.ready( true );
+ }
+ },
+
+ // Handle when the DOM is ready
+ ready: function( wait ) {
+
+ // Abort if there are pending holds or we're already ready
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
+ return;
+ }
+
+ // Remember that the DOM is ready
+ jQuery.isReady = true;
+
+ // If a normal DOM Ready event fired, decrement, and wait if need be
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
+ return;
+ }
+
+ // If there are functions bound, to execute
+ readyList.resolveWith( document, [ jQuery ] );
+ }
+} );
+
+jQuery.ready.then = readyList.then;
+
+// The ready event handler and self cleanup method
+function completed() {
+ document.removeEventListener( "DOMContentLoaded", completed );
+ window.removeEventListener( "load", completed );
+ jQuery.ready();
+}
+
+// Catch cases where $(document).ready() is called
+// after the browser event has already occurred.
+// Support: IE <=9 - 10 only
+// Older IE sometimes signals "interactive" too soon
+if ( document.readyState === "complete" ||
+ ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
+
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
+ window.setTimeout( jQuery.ready );
+
+} else {
+
+ // Use the handy event callback
+ document.addEventListener( "DOMContentLoaded", completed );
+
+ // A fallback to window.onload, that will always work
+ window.addEventListener( "load", completed );
+}
+
+
+
+
+// Multifunctional method to get and set values of a collection
+// The value/s can optionally be executed if it's a function
+var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
+ var i = 0,
+ len = elems.length,
+ bulk = key == null;
+
+ // Sets many values
+ if ( jQuery.type( key ) === "object" ) {
+ chainable = true;
+ for ( i in key ) {
+ access( elems, fn, i, key[ i ], true, emptyGet, raw );
+ }
+
+ // Sets one value
+ } else if ( value !== undefined ) {
+ chainable = true;
+
+ if ( !jQuery.isFunction( value ) ) {
+ raw = true;
+ }
+
+ if ( bulk ) {
+
+ // Bulk operations run against the entire set
+ if ( raw ) {
+ fn.call( elems, value );
+ fn = null;
+
+ // ...except when executing function values
+ } else {
+ bulk = fn;
+ fn = function( elem, key, value ) {
+ return bulk.call( jQuery( elem ), value );
+ };
+ }
+ }
+
+ if ( fn ) {
+ for ( ; i < len; i++ ) {
+ fn(
+ elems[ i ], key, raw ?
+ value :
+ value.call( elems[ i ], i, fn( elems[ i ], key ) )
+ );
+ }
+ }
+ }
+
+ if ( chainable ) {
+ return elems;
+ }
+
+ // Gets
+ if ( bulk ) {
+ return fn.call( elems );
+ }
+
+ return len ? fn( elems[ 0 ], key ) : emptyGet;
+};
+var acceptData = function( owner ) {
+
+ // Accepts only:
+ // - Node
+ // - Node.ELEMENT_NODE
+ // - Node.DOCUMENT_NODE
+ // - Object
+ // - Any
+ return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
+};
+
+
+
+
+function Data() {
+ this.expando = jQuery.expando + Data.uid++;
+}
+
+Data.uid = 1;
+
+Data.prototype = {
+
+ cache: function( owner ) {
+
+ // Check if the owner object already has a cache
+ var value = owner[ this.expando ];
+
+ // If not, create one
+ if ( !value ) {
+ value = {};
+
+ // We can accept data for non-element nodes in modern browsers,
+ // but we should not, see #8335.
+ // Always return an empty object.
+ if ( acceptData( owner ) ) {
+
+ // If it is a node unlikely to be stringify-ed or looped over
+ // use plain assignment
+ if ( owner.nodeType ) {
+ owner[ this.expando ] = value;
+
+ // Otherwise secure it in a non-enumerable property
+ // configurable must be true to allow the property to be
+ // deleted when data is removed
+ } else {
+ Object.defineProperty( owner, this.expando, {
+ value: value,
+ configurable: true
+ } );
+ }
+ }
+ }
+
+ return value;
+ },
+ set: function( owner, data, value ) {
+ var prop,
+ cache = this.cache( owner );
+
+ // Handle: [ owner, key, value ] args
+ // Always use camelCase key (gh-2257)
+ if ( typeof data === "string" ) {
+ cache[ jQuery.camelCase( data ) ] = value;
+
+ // Handle: [ owner, { properties } ] args
+ } else {
+
+ // Copy the properties one-by-one to the cache object
+ for ( prop in data ) {
+ cache[ jQuery.camelCase( prop ) ] = data[ prop ];
+ }
+ }
+ return cache;
+ },
+ get: function( owner, key ) {
+ return key === undefined ?
+ this.cache( owner ) :
+
+ // Always use camelCase key (gh-2257)
+ owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
+ },
+ access: function( owner, key, value ) {
+
+ // In cases where either:
+ //
+ // 1. No key was specified
+ // 2. A string key was specified, but no value provided
+ //
+ // Take the "read" path and allow the get method to determine
+ // which value to return, respectively either:
+ //
+ // 1. The entire cache object
+ // 2. The data stored at the key
+ //
+ if ( key === undefined ||
+ ( ( key && typeof key === "string" ) && value === undefined ) ) {
+
+ return this.get( owner, key );
+ }
+
+ // When the key is not a string, or both a key and value
+ // are specified, set or extend (existing objects) with either:
+ //
+ // 1. An object of properties
+ // 2. A key and value
+ //
+ this.set( owner, key, value );
+
+ // Since the "set" path can have two possible entry points
+ // return the expected data based on which path was taken[*]
+ return value !== undefined ? value : key;
+ },
+ remove: function( owner, key ) {
+ var i,
+ cache = owner[ this.expando ];
+
+ if ( cache === undefined ) {
+ return;
+ }
+
+ if ( key !== undefined ) {
+
+ // Support array or space separated string of keys
+ if ( jQuery.isArray( key ) ) {
+
+ // If key is an array of keys...
+ // We always set camelCase keys, so remove that.
+ key = key.map( jQuery.camelCase );
+ } else {
+ key = jQuery.camelCase( key );
+
+ // If a key with the spaces exists, use it.
+ // Otherwise, create an array by matching non-whitespace
+ key = key in cache ?
+ [ key ] :
+ ( key.match( rnothtmlwhite ) || [] );
+ }
+
+ i = key.length;
+
+ while ( i-- ) {
+ delete cache[ key[ i ] ];
+ }
+ }
+
+ // Remove the expando if there's no more data
+ if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
+
+ // Support: Chrome <=35 - 45
+ // Webkit & Blink performance suffers when deleting properties
+ // from DOM nodes, so set to undefined instead
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
+ if ( owner.nodeType ) {
+ owner[ this.expando ] = undefined;
+ } else {
+ delete owner[ this.expando ];
+ }
+ }
+ },
+ hasData: function( owner ) {
+ var cache = owner[ this.expando ];
+ return cache !== undefined && !jQuery.isEmptyObject( cache );
+ }
+};
+var dataPriv = new Data();
+
+var dataUser = new Data();
+
+
+
+// Implementation Summary
+//
+// 1. Enforce API surface and semantic compatibility with 1.9.x branch
+// 2. Improve the module's maintainability by reducing the storage
+// paths to a single mechanism.
+// 3. Use the same single mechanism to support "private" and "user" data.
+// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
+// 5. Avoid exposing implementation details on user objects (eg. expando properties)
+// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
+
+var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
+ rmultiDash = /[A-Z]/g;
+
+function getData( data ) {
+ if ( data === "true" ) {
+ return true;
+ }
+
+ if ( data === "false" ) {
+ return false;
+ }
+
+ if ( data === "null" ) {
+ return null;
+ }
+
+ // Only convert to a number if it doesn't change the string
+ if ( data === +data + "" ) {
+ return +data;
+ }
+
+ if ( rbrace.test( data ) ) {
+ return JSON.parse( data );
+ }
+
+ return data;
+}
+
+function dataAttr( elem, key, data ) {
+ var name;
+
+ // If nothing was found internally, try to fetch any
+ // data from the HTML5 data-* attribute
+ if ( data === undefined && elem.nodeType === 1 ) {
+ name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
+ data = elem.getAttribute( name );
+
+ if ( typeof data === "string" ) {
+ try {
+ data = getData( data );
+ } catch ( e ) {}
+
+ // Make sure we set the data so it isn't changed later
+ dataUser.set( elem, key, data );
+ } else {
+ data = undefined;
+ }
+ }
+ return data;
+}
+
+jQuery.extend( {
+ hasData: function( elem ) {
+ return dataUser.hasData( elem ) || dataPriv.hasData( elem );
+ },
+
+ data: function( elem, name, data ) {
+ return dataUser.access( elem, name, data );
+ },
+
+ removeData: function( elem, name ) {
+ dataUser.remove( elem, name );
+ },
+
+ // TODO: Now that all calls to _data and _removeData have been replaced
+ // with direct calls to dataPriv methods, these can be deprecated.
+ _data: function( elem, name, data ) {
+ return dataPriv.access( elem, name, data );
+ },
+
+ _removeData: function( elem, name ) {
+ dataPriv.remove( elem, name );
+ }
+} );
+
+jQuery.fn.extend( {
+ data: function( key, value ) {
+ var i, name, data,
+ elem = this[ 0 ],
+ attrs = elem && elem.attributes;
+
+ // Gets all values
+ if ( key === undefined ) {
+ if ( this.length ) {
+ data = dataUser.get( elem );
+
+ if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
+ i = attrs.length;
+ while ( i-- ) {
+
+ // Support: IE 11 only
+ // The attrs elements can be null (#14894)
+ if ( attrs[ i ] ) {
+ name = attrs[ i ].name;
+ if ( name.indexOf( "data-" ) === 0 ) {
+ name = jQuery.camelCase( name.slice( 5 ) );
+ dataAttr( elem, name, data[ name ] );
+ }
+ }
+ }
+ dataPriv.set( elem, "hasDataAttrs", true );
+ }
+ }
+
+ return data;
+ }
+
+ // Sets multiple values
+ if ( typeof key === "object" ) {
+ return this.each( function() {
+ dataUser.set( this, key );
+ } );
+ }
+
+ return access( this, function( value ) {
+ var data;
+
+ // The calling jQuery object (element matches) is not empty
+ // (and therefore has an element appears at this[ 0 ]) and the
+ // `value` parameter was not undefined. An empty jQuery object
+ // will result in `undefined` for elem = this[ 0 ] which will
+ // throw an exception if an attempt to read a data cache is made.
+ if ( elem && value === undefined ) {
+
+ // Attempt to get data from the cache
+ // The key will always be camelCased in Data
+ data = dataUser.get( elem, key );
+ if ( data !== undefined ) {
+ return data;
+ }
+
+ // Attempt to "discover" the data in
+ // HTML5 custom data-* attrs
+ data = dataAttr( elem, key );
+ if ( data !== undefined ) {
+ return data;
+ }
+
+ // We tried really hard, but the data doesn't exist.
+ return;
+ }
+
+ // Set the data...
+ this.each( function() {
+
+ // We always store the camelCased key
+ dataUser.set( this, key, value );
+ } );
+ }, null, value, arguments.length > 1, null, true );
+ },
+
+ removeData: function( key ) {
+ return this.each( function() {
+ dataUser.remove( this, key );
+ } );
+ }
+} );
+
+
+jQuery.extend( {
+ queue: function( elem, type, data ) {
+ var queue;
+
+ if ( elem ) {
+ type = ( type || "fx" ) + "queue";
+ queue = dataPriv.get( elem, type );
+
+ // Speed up dequeue by getting out quickly if this is just a lookup
+ if ( data ) {
+ if ( !queue || jQuery.isArray( data ) ) {
+ queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
+ } else {
+ queue.push( data );
+ }
+ }
+ return queue || [];
+ }
+ },
+
+ dequeue: function( elem, type ) {
+ type = type || "fx";
+
+ var queue = jQuery.queue( elem, type ),
+ startLength = queue.length,
+ fn = queue.shift(),
+ hooks = jQuery._queueHooks( elem, type ),
+ next = function() {
+ jQuery.dequeue( elem, type );
+ };
+
+ // If the fx queue is dequeued, always remove the progress sentinel
+ if ( fn === "inprogress" ) {
+ fn = queue.shift();
+ startLength--;
+ }
+
+ if ( fn ) {
+
+ // Add a progress sentinel to prevent the fx queue from being
+ // automatically dequeued
+ if ( type === "fx" ) {
+ queue.unshift( "inprogress" );
+ }
+
+ // Clear up the last queue stop function
+ delete hooks.stop;
+ fn.call( elem, next, hooks );
+ }
+
+ if ( !startLength && hooks ) {
+ hooks.empty.fire();
+ }
+ },
+
+ // Not public - generate a queueHooks object, or return the current one
+ _queueHooks: function( elem, type ) {
+ var key = type + "queueHooks";
+ return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
+ empty: jQuery.Callbacks( "once memory" ).add( function() {
+ dataPriv.remove( elem, [ type + "queue", key ] );
+ } )
+ } );
+ }
+} );
+
+jQuery.fn.extend( {
+ queue: function( type, data ) {
+ var setter = 2;
+
+ if ( typeof type !== "string" ) {
+ data = type;
+ type = "fx";
+ setter--;
+ }
+
+ if ( arguments.length < setter ) {
+ return jQuery.queue( this[ 0 ], type );
+ }
+
+ return data === undefined ?
+ this :
+ this.each( function() {
+ var queue = jQuery.queue( this, type, data );
+
+ // Ensure a hooks for this queue
+ jQuery._queueHooks( this, type );
+
+ if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
+ jQuery.dequeue( this, type );
+ }
+ } );
+ },
+ dequeue: function( type ) {
+ return this.each( function() {
+ jQuery.dequeue( this, type );
+ } );
+ },
+ clearQueue: function( type ) {
+ return this.queue( type || "fx", [] );
+ },
+
+ // Get a promise resolved when queues of a certain type
+ // are emptied (fx is the type by default)
+ promise: function( type, obj ) {
+ var tmp,
+ count = 1,
+ defer = jQuery.Deferred(),
+ elements = this,
+ i = this.length,
+ resolve = function() {
+ if ( !( --count ) ) {
+ defer.resolveWith( elements, [ elements ] );
+ }
+ };
+
+ if ( typeof type !== "string" ) {
+ obj = type;
+ type = undefined;
+ }
+ type = type || "fx";
+
+ while ( i-- ) {
+ tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
+ if ( tmp && tmp.empty ) {
+ count++;
+ tmp.empty.add( resolve );
+ }
+ }
+ resolve();
+ return defer.promise( obj );
+ }
+} );
+var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
+
+var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
+
+
+var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
+
+var isHiddenWithinTree = function( elem, el ) {
+
+ // isHiddenWithinTree might be called from jQuery#filter function;
+ // in that case, element will be second argument
+ elem = el || elem;
+
+ // Inline style trumps all
+ return elem.style.display === "none" ||
+ elem.style.display === "" &&
+
+ // Otherwise, check computed style
+ // Support: Firefox <=43 - 45
+ // Disconnected elements can have computed display: none, so first confirm that elem is
+ // in the document.
+ jQuery.contains( elem.ownerDocument, elem ) &&
+
+ jQuery.css( elem, "display" ) === "none";
+ };
+
+var swap = function( elem, options, callback, args ) {
+ var ret, name,
+ old = {};
+
+ // Remember the old values, and insert the new ones
+ for ( name in options ) {
+ old[ name ] = elem.style[ name ];
+ elem.style[ name ] = options[ name ];
+ }
+
+ ret = callback.apply( elem, args || [] );
+
+ // Revert the old values
+ for ( name in options ) {
+ elem.style[ name ] = old[ name ];
+ }
+
+ return ret;
+};
+
+
+
+
+function adjustCSS( elem, prop, valueParts, tween ) {
+ var adjusted,
+ scale = 1,
+ maxIterations = 20,
+ currentValue = tween ?
+ function() {
+ return tween.cur();
+ } :
+ function() {
+ return jQuery.css( elem, prop, "" );
+ },
+ initial = currentValue(),
+ unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
+
+ // Starting value computation is required for potential unit mismatches
+ initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
+ rcssNum.exec( jQuery.css( elem, prop ) );
+
+ if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
+
+ // Trust units reported by jQuery.css
+ unit = unit || initialInUnit[ 3 ];
+
+ // Make sure we update the tween properties later on
+ valueParts = valueParts || [];
+
+ // Iteratively approximate from a nonzero starting point
+ initialInUnit = +initial || 1;
+
+ do {
+
+ // If previous iteration zeroed out, double until we get *something*.
+ // Use string for doubling so we don't accidentally see scale as unchanged below
+ scale = scale || ".5";
+
+ // Adjust and apply
+ initialInUnit = initialInUnit / scale;
+ jQuery.style( elem, prop, initialInUnit + unit );
+
+ // Update scale, tolerating zero or NaN from tween.cur()
+ // Break the loop if scale is unchanged or perfect, or if we've just had enough.
+ } while (
+ scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
+ );
+ }
+
+ if ( valueParts ) {
+ initialInUnit = +initialInUnit || +initial || 0;
+
+ // Apply relative offset (+=/-=) if specified
+ adjusted = valueParts[ 1 ] ?
+ initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
+ +valueParts[ 2 ];
+ if ( tween ) {
+ tween.unit = unit;
+ tween.start = initialInUnit;
+ tween.end = adjusted;
+ }
+ }
+ return adjusted;
+}
+
+
+var defaultDisplayMap = {};
+
+function getDefaultDisplay( elem ) {
+ var temp,
+ doc = elem.ownerDocument,
+ nodeName = elem.nodeName,
+ display = defaultDisplayMap[ nodeName ];
+
+ if ( display ) {
+ return display;
+ }
+
+ temp = doc.body.appendChild( doc.createElement( nodeName ) );
+ display = jQuery.css( temp, "display" );
+
+ temp.parentNode.removeChild( temp );
+
+ if ( display === "none" ) {
+ display = "block";
+ }
+ defaultDisplayMap[ nodeName ] = display;
+
+ return display;
+}
+
+function showHide( elements, show ) {
+ var display, elem,
+ values = [],
+ index = 0,
+ length = elements.length;
+
+ // Determine new display value for elements that need to change
+ for ( ; index < length; index++ ) {
+ elem = elements[ index ];
+ if ( !elem.style ) {
+ continue;
+ }
+
+ display = elem.style.display;
+ if ( show ) {
+
+ // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
+ // check is required in this first loop unless we have a nonempty display value (either
+ // inline or about-to-be-restored)
+ if ( display === "none" ) {
+ values[ index ] = dataPriv.get( elem, "display" ) || null;
+ if ( !values[ index ] ) {
+ elem.style.display = "";
+ }
+ }
+ if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
+ values[ index ] = getDefaultDisplay( elem );
+ }
+ } else {
+ if ( display !== "none" ) {
+ values[ index ] = "none";
+
+ // Remember what we're overwriting
+ dataPriv.set( elem, "display", display );
+ }
+ }
+ }
+
+ // Set the display of the elements in a second loop to avoid constant reflow
+ for ( index = 0; index < length; index++ ) {
+ if ( values[ index ] != null ) {
+ elements[ index ].style.display = values[ index ];
+ }
+ }
+
+ return elements;
+}
+
+jQuery.fn.extend( {
+ show: function() {
+ return showHide( this, true );
+ },
+ hide: function() {
+ return showHide( this );
+ },
+ toggle: function( state ) {
+ if ( typeof state === "boolean" ) {
+ return state ? this.show() : this.hide();
+ }
+
+ return this.each( function() {
+ if ( isHiddenWithinTree( this ) ) {
+ jQuery( this ).show();
+ } else {
+ jQuery( this ).hide();
+ }
+ } );
+ }
+} );
+var rcheckableType = ( /^(?:checkbox|radio)$/i );
+
+var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
+
+var rscriptType = ( /^$|\/(?:java|ecma)script/i );
+
+
+
+// We have to close these tags to support XHTML (#13200)
+var wrapMap = {
+
+ // Support: IE <=9 only
+ option: [ 1, "", " " ],
+
+ // XHTML parsers do not magically insert elements in the
+ // same way that tag soup parsers do. So we cannot shorten
+ // this by omitting or other required elements.
+ thead: [ 1, "" ],
+ col: [ 2, "" ],
+ tr: [ 2, "" ],
+ td: [ 3, "" ],
+
+ _default: [ 0, "", "" ]
+};
+
+// Support: IE <=9 only
+wrapMap.optgroup = wrapMap.option;
+
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+
+function getAll( context, tag ) {
+
+ // Support: IE <=9 - 11 only
+ // Use typeof to avoid zero-argument method invocation on host objects (#15151)
+ var ret;
+
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ ret = context.getElementsByTagName( tag || "*" );
+
+ } else if ( typeof context.querySelectorAll !== "undefined" ) {
+ ret = context.querySelectorAll( tag || "*" );
+
+ } else {
+ ret = [];
+ }
+
+ if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {
+ return jQuery.merge( [ context ], ret );
+ }
+
+ return ret;
+}
+
+
+// Mark scripts as having already been evaluated
+function setGlobalEval( elems, refElements ) {
+ var i = 0,
+ l = elems.length;
+
+ for ( ; i < l; i++ ) {
+ dataPriv.set(
+ elems[ i ],
+ "globalEval",
+ !refElements || dataPriv.get( refElements[ i ], "globalEval" )
+ );
+ }
+}
+
+
+var rhtml = /<|?\w+;/;
+
+function buildFragment( elems, context, scripts, selection, ignored ) {
+ var elem, tmp, tag, wrap, contains, j,
+ fragment = context.createDocumentFragment(),
+ nodes = [],
+ i = 0,
+ l = elems.length;
+
+ for ( ; i < l; i++ ) {
+ elem = elems[ i ];
+
+ if ( elem || elem === 0 ) {
+
+ // Add nodes directly
+ if ( jQuery.type( elem ) === "object" ) {
+
+ // Support: Android <=4.0 only, PhantomJS 1 only
+ // push.apply(_, arraylike) throws on ancient WebKit
+ jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
+
+ // Convert non-html into a text node
+ } else if ( !rhtml.test( elem ) ) {
+ nodes.push( context.createTextNode( elem ) );
+
+ // Convert html into DOM nodes
+ } else {
+ tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
+
+ // Deserialize a standard representation
+ tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
+ wrap = wrapMap[ tag ] || wrapMap._default;
+ tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
+
+ // Descend through wrappers to the right content
+ j = wrap[ 0 ];
+ while ( j-- ) {
+ tmp = tmp.lastChild;
+ }
+
+ // Support: Android <=4.0 only, PhantomJS 1 only
+ // push.apply(_, arraylike) throws on ancient WebKit
+ jQuery.merge( nodes, tmp.childNodes );
+
+ // Remember the top-level container
+ tmp = fragment.firstChild;
+
+ // Ensure the created nodes are orphaned (#12392)
+ tmp.textContent = "";
+ }
+ }
+ }
+
+ // Remove wrapper from fragment
+ fragment.textContent = "";
+
+ i = 0;
+ while ( ( elem = nodes[ i++ ] ) ) {
+
+ // Skip elements already in the context collection (trac-4087)
+ if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
+ if ( ignored ) {
+ ignored.push( elem );
+ }
+ continue;
+ }
+
+ contains = jQuery.contains( elem.ownerDocument, elem );
+
+ // Append to fragment
+ tmp = getAll( fragment.appendChild( elem ), "script" );
+
+ // Preserve script evaluation history
+ if ( contains ) {
+ setGlobalEval( tmp );
+ }
+
+ // Capture executables
+ if ( scripts ) {
+ j = 0;
+ while ( ( elem = tmp[ j++ ] ) ) {
+ if ( rscriptType.test( elem.type || "" ) ) {
+ scripts.push( elem );
+ }
+ }
+ }
+ }
+
+ return fragment;
+}
+
+
+( function() {
+ var fragment = document.createDocumentFragment(),
+ div = fragment.appendChild( document.createElement( "div" ) ),
+ input = document.createElement( "input" );
+
+ // Support: Android 4.0 - 4.3 only
+ // Check state lost if the name is set (#11217)
+ // Support: Windows Web Apps (WWA)
+ // `name` and `type` must use .setAttribute for WWA (#14901)
+ input.setAttribute( "type", "radio" );
+ input.setAttribute( "checked", "checked" );
+ input.setAttribute( "name", "t" );
+
+ div.appendChild( input );
+
+ // Support: Android <=4.1 only
+ // Older WebKit doesn't clone checked state correctly in fragments
+ support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+ // Support: IE <=11 only
+ // Make sure textarea (and checkbox) defaultValue is properly cloned
+ div.innerHTML = "";
+ support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
+} )();
+var documentElement = document.documentElement;
+
+
+
+var
+ rkeyEvent = /^key/,
+ rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
+ rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
+
+function returnTrue() {
+ return true;
+}
+
+function returnFalse() {
+ return false;
+}
+
+// Support: IE <=9 only
+// See #13393 for more info
+function safeActiveElement() {
+ try {
+ return document.activeElement;
+ } catch ( err ) { }
+}
+
+function on( elem, types, selector, data, fn, one ) {
+ var origFn, type;
+
+ // Types can be a map of types/handlers
+ if ( typeof types === "object" ) {
+
+ // ( types-Object, selector, data )
+ if ( typeof selector !== "string" ) {
+
+ // ( types-Object, data )
+ data = data || selector;
+ selector = undefined;
+ }
+ for ( type in types ) {
+ on( elem, type, selector, data, types[ type ], one );
+ }
+ return elem;
+ }
+
+ if ( data == null && fn == null ) {
+
+ // ( types, fn )
+ fn = selector;
+ data = selector = undefined;
+ } else if ( fn == null ) {
+ if ( typeof selector === "string" ) {
+
+ // ( types, selector, fn )
+ fn = data;
+ data = undefined;
+ } else {
+
+ // ( types, data, fn )
+ fn = data;
+ data = selector;
+ selector = undefined;
+ }
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ } else if ( !fn ) {
+ return elem;
+ }
+
+ if ( one === 1 ) {
+ origFn = fn;
+ fn = function( event ) {
+
+ // Can use an empty set, since event contains the info
+ jQuery().off( event );
+ return origFn.apply( this, arguments );
+ };
+
+ // Use same guid so caller can remove using origFn
+ fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+ }
+ return elem.each( function() {
+ jQuery.event.add( this, types, fn, data, selector );
+ } );
+}
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+ global: {},
+
+ add: function( elem, types, handler, data, selector ) {
+
+ var handleObjIn, eventHandle, tmp,
+ events, t, handleObj,
+ special, handlers, type, namespaces, origType,
+ elemData = dataPriv.get( elem );
+
+ // Don't attach events to noData or text/comment nodes (but allow plain objects)
+ if ( !elemData ) {
+ return;
+ }
+
+ // Caller can pass in an object of custom data in lieu of the handler
+ if ( handler.handler ) {
+ handleObjIn = handler;
+ handler = handleObjIn.handler;
+ selector = handleObjIn.selector;
+ }
+
+ // Ensure that invalid selectors throw exceptions at attach time
+ // Evaluate against documentElement in case elem is a non-element node (e.g., document)
+ if ( selector ) {
+ jQuery.find.matchesSelector( documentElement, selector );
+ }
+
+ // Make sure that the handler has a unique ID, used to find/remove it later
+ if ( !handler.guid ) {
+ handler.guid = jQuery.guid++;
+ }
+
+ // Init the element's event structure and main handler, if this is the first
+ if ( !( events = elemData.events ) ) {
+ events = elemData.events = {};
+ }
+ if ( !( eventHandle = elemData.handle ) ) {
+ eventHandle = elemData.handle = function( e ) {
+
+ // Discard the second event of a jQuery.event.trigger() and
+ // when an event is called after a page has unloaded
+ return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
+ jQuery.event.dispatch.apply( elem, arguments ) : undefined;
+ };
+ }
+
+ // Handle multiple events separated by a space
+ types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
+ t = types.length;
+ while ( t-- ) {
+ tmp = rtypenamespace.exec( types[ t ] ) || [];
+ type = origType = tmp[ 1 ];
+ namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+ // There *must* be a type, no attaching namespace-only handlers
+ if ( !type ) {
+ continue;
+ }
+
+ // If event changes its type, use the special event handlers for the changed type
+ special = jQuery.event.special[ type ] || {};
+
+ // If selector defined, determine special event api type, otherwise given type
+ type = ( selector ? special.delegateType : special.bindType ) || type;
+
+ // Update special based on newly reset type
+ special = jQuery.event.special[ type ] || {};
+
+ // handleObj is passed to all event handlers
+ handleObj = jQuery.extend( {
+ type: type,
+ origType: origType,
+ data: data,
+ handler: handler,
+ guid: handler.guid,
+ selector: selector,
+ needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
+ namespace: namespaces.join( "." )
+ }, handleObjIn );
+
+ // Init the event handler queue if we're the first
+ if ( !( handlers = events[ type ] ) ) {
+ handlers = events[ type ] = [];
+ handlers.delegateCount = 0;
+
+ // Only use addEventListener if the special events handler returns false
+ if ( !special.setup ||
+ special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+
+ if ( elem.addEventListener ) {
+ elem.addEventListener( type, eventHandle );
+ }
+ }
+ }
+
+ if ( special.add ) {
+ special.add.call( elem, handleObj );
+
+ if ( !handleObj.handler.guid ) {
+ handleObj.handler.guid = handler.guid;
+ }
+ }
+
+ // Add to the element's handler list, delegates in front
+ if ( selector ) {
+ handlers.splice( handlers.delegateCount++, 0, handleObj );
+ } else {
+ handlers.push( handleObj );
+ }
+
+ // Keep track of which events have ever been used, for event optimization
+ jQuery.event.global[ type ] = true;
+ }
+
+ },
+
+ // Detach an event or set of events from an element
+ remove: function( elem, types, handler, selector, mappedTypes ) {
+
+ var j, origCount, tmp,
+ events, t, handleObj,
+ special, handlers, type, namespaces, origType,
+ elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
+
+ if ( !elemData || !( events = elemData.events ) ) {
+ return;
+ }
+
+ // Once for each type.namespace in types; type may be omitted
+ types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
+ t = types.length;
+ while ( t-- ) {
+ tmp = rtypenamespace.exec( types[ t ] ) || [];
+ type = origType = tmp[ 1 ];
+ namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+ // Unbind all events (on this namespace, if provided) for the element
+ if ( !type ) {
+ for ( type in events ) {
+ jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+ }
+ continue;
+ }
+
+ special = jQuery.event.special[ type ] || {};
+ type = ( selector ? special.delegateType : special.bindType ) || type;
+ handlers = events[ type ] || [];
+ tmp = tmp[ 2 ] &&
+ new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
+
+ // Remove matching events
+ origCount = j = handlers.length;
+ while ( j-- ) {
+ handleObj = handlers[ j ];
+
+ if ( ( mappedTypes || origType === handleObj.origType ) &&
+ ( !handler || handler.guid === handleObj.guid ) &&
+ ( !tmp || tmp.test( handleObj.namespace ) ) &&
+ ( !selector || selector === handleObj.selector ||
+ selector === "**" && handleObj.selector ) ) {
+ handlers.splice( j, 1 );
+
+ if ( handleObj.selector ) {
+ handlers.delegateCount--;
+ }
+ if ( special.remove ) {
+ special.remove.call( elem, handleObj );
+ }
+ }
+ }
+
+ // Remove generic event handler if we removed something and no more handlers exist
+ // (avoids potential for endless recursion during removal of special event handlers)
+ if ( origCount && !handlers.length ) {
+ if ( !special.teardown ||
+ special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
+
+ jQuery.removeEvent( elem, type, elemData.handle );
+ }
+
+ delete events[ type ];
+ }
+ }
+
+ // Remove data and the expando if it's no longer used
+ if ( jQuery.isEmptyObject( events ) ) {
+ dataPriv.remove( elem, "handle events" );
+ }
+ },
+
+ dispatch: function( nativeEvent ) {
+
+ // Make a writable jQuery.Event from the native event object
+ var event = jQuery.event.fix( nativeEvent );
+
+ var i, j, ret, matched, handleObj, handlerQueue,
+ args = new Array( arguments.length ),
+ handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
+ special = jQuery.event.special[ event.type ] || {};
+
+ // Use the fix-ed jQuery.Event rather than the (read-only) native event
+ args[ 0 ] = event;
+
+ for ( i = 1; i < arguments.length; i++ ) {
+ args[ i ] = arguments[ i ];
+ }
+
+ event.delegateTarget = this;
+
+ // Call the preDispatch hook for the mapped type, and let it bail if desired
+ if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
+ return;
+ }
+
+ // Determine handlers
+ handlerQueue = jQuery.event.handlers.call( this, event, handlers );
+
+ // Run delegates first; they may want to stop propagation beneath us
+ i = 0;
+ while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
+ event.currentTarget = matched.elem;
+
+ j = 0;
+ while ( ( handleObj = matched.handlers[ j++ ] ) &&
+ !event.isImmediatePropagationStopped() ) {
+
+ // Triggered event must either 1) have no namespace, or 2) have namespace(s)
+ // a subset or equal to those in the bound event (both can have no namespace).
+ if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
+
+ event.handleObj = handleObj;
+ event.data = handleObj.data;
+
+ ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
+ handleObj.handler ).apply( matched.elem, args );
+
+ if ( ret !== undefined ) {
+ if ( ( event.result = ret ) === false ) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+ }
+ }
+ }
+
+ // Call the postDispatch hook for the mapped type
+ if ( special.postDispatch ) {
+ special.postDispatch.call( this, event );
+ }
+
+ return event.result;
+ },
+
+ handlers: function( event, handlers ) {
+ var i, handleObj, sel, matchedHandlers, matchedSelectors,
+ handlerQueue = [],
+ delegateCount = handlers.delegateCount,
+ cur = event.target;
+
+ // Find delegate handlers
+ if ( delegateCount &&
+
+ // Support: IE <=9
+ // Black-hole SVG instance trees (trac-13180)
+ cur.nodeType &&
+
+ // Support: Firefox <=42
+ // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
+ // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
+ // Support: IE 11 only
+ // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
+ !( event.type === "click" && event.button >= 1 ) ) {
+
+ for ( ; cur !== this; cur = cur.parentNode || this ) {
+
+ // Don't check non-elements (#13208)
+ // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
+ if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
+ matchedHandlers = [];
+ matchedSelectors = {};
+ for ( i = 0; i < delegateCount; i++ ) {
+ handleObj = handlers[ i ];
+
+ // Don't conflict with Object.prototype properties (#13203)
+ sel = handleObj.selector + " ";
+
+ if ( matchedSelectors[ sel ] === undefined ) {
+ matchedSelectors[ sel ] = handleObj.needsContext ?
+ jQuery( sel, this ).index( cur ) > -1 :
+ jQuery.find( sel, this, null, [ cur ] ).length;
+ }
+ if ( matchedSelectors[ sel ] ) {
+ matchedHandlers.push( handleObj );
+ }
+ }
+ if ( matchedHandlers.length ) {
+ handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
+ }
+ }
+ }
+ }
+
+ // Add the remaining (directly-bound) handlers
+ cur = this;
+ if ( delegateCount < handlers.length ) {
+ handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
+ }
+
+ return handlerQueue;
+ },
+
+ addProp: function( name, hook ) {
+ Object.defineProperty( jQuery.Event.prototype, name, {
+ enumerable: true,
+ configurable: true,
+
+ get: jQuery.isFunction( hook ) ?
+ function() {
+ if ( this.originalEvent ) {
+ return hook( this.originalEvent );
+ }
+ } :
+ function() {
+ if ( this.originalEvent ) {
+ return this.originalEvent[ name ];
+ }
+ },
+
+ set: function( value ) {
+ Object.defineProperty( this, name, {
+ enumerable: true,
+ configurable: true,
+ writable: true,
+ value: value
+ } );
+ }
+ } );
+ },
+
+ fix: function( originalEvent ) {
+ return originalEvent[ jQuery.expando ] ?
+ originalEvent :
+ new jQuery.Event( originalEvent );
+ },
+
+ special: {
+ load: {
+
+ // Prevent triggered image.load events from bubbling to window.load
+ noBubble: true
+ },
+ focus: {
+
+ // Fire native event if possible so blur/focus sequence is correct
+ trigger: function() {
+ if ( this !== safeActiveElement() && this.focus ) {
+ this.focus();
+ return false;
+ }
+ },
+ delegateType: "focusin"
+ },
+ blur: {
+ trigger: function() {
+ if ( this === safeActiveElement() && this.blur ) {
+ this.blur();
+ return false;
+ }
+ },
+ delegateType: "focusout"
+ },
+ click: {
+
+ // For checkbox, fire native event so checked state will be right
+ trigger: function() {
+ if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
+ this.click();
+ return false;
+ }
+ },
+
+ // For cross-browser consistency, don't fire native .click() on links
+ _default: function( event ) {
+ return jQuery.nodeName( event.target, "a" );
+ }
+ },
+
+ beforeunload: {
+ postDispatch: function( event ) {
+
+ // Support: Firefox 20+
+ // Firefox doesn't alert if the returnValue field is not set.
+ if ( event.result !== undefined && event.originalEvent ) {
+ event.originalEvent.returnValue = event.result;
+ }
+ }
+ }
+ }
+};
+
+jQuery.removeEvent = function( elem, type, handle ) {
+
+ // This "if" is needed for plain objects
+ if ( elem.removeEventListener ) {
+ elem.removeEventListener( type, handle );
+ }
+};
+
+jQuery.Event = function( src, props ) {
+
+ // Allow instantiation without the 'new' keyword
+ if ( !( this instanceof jQuery.Event ) ) {
+ return new jQuery.Event( src, props );
+ }
+
+ // Event object
+ if ( src && src.type ) {
+ this.originalEvent = src;
+ this.type = src.type;
+
+ // Events bubbling up the document may have been marked as prevented
+ // by a handler lower down the tree; reflect the correct value.
+ this.isDefaultPrevented = src.defaultPrevented ||
+ src.defaultPrevented === undefined &&
+
+ // Support: Android <=2.3 only
+ src.returnValue === false ?
+ returnTrue :
+ returnFalse;
+
+ // Create target properties
+ // Support: Safari <=6 - 7 only
+ // Target should not be a text node (#504, #13143)
+ this.target = ( src.target && src.target.nodeType === 3 ) ?
+ src.target.parentNode :
+ src.target;
+
+ this.currentTarget = src.currentTarget;
+ this.relatedTarget = src.relatedTarget;
+
+ // Event type
+ } else {
+ this.type = src;
+ }
+
+ // Put explicitly provided properties onto the event object
+ if ( props ) {
+ jQuery.extend( this, props );
+ }
+
+ // Create a timestamp if incoming event doesn't have one
+ this.timeStamp = src && src.timeStamp || jQuery.now();
+
+ // Mark it as fixed
+ this[ jQuery.expando ] = true;
+};
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+ constructor: jQuery.Event,
+ isDefaultPrevented: returnFalse,
+ isPropagationStopped: returnFalse,
+ isImmediatePropagationStopped: returnFalse,
+ isSimulated: false,
+
+ preventDefault: function() {
+ var e = this.originalEvent;
+
+ this.isDefaultPrevented = returnTrue;
+
+ if ( e && !this.isSimulated ) {
+ e.preventDefault();
+ }
+ },
+ stopPropagation: function() {
+ var e = this.originalEvent;
+
+ this.isPropagationStopped = returnTrue;
+
+ if ( e && !this.isSimulated ) {
+ e.stopPropagation();
+ }
+ },
+ stopImmediatePropagation: function() {
+ var e = this.originalEvent;
+
+ this.isImmediatePropagationStopped = returnTrue;
+
+ if ( e && !this.isSimulated ) {
+ e.stopImmediatePropagation();
+ }
+
+ this.stopPropagation();
+ }
+};
+
+// Includes all common event props including KeyEvent and MouseEvent specific props
+jQuery.each( {
+ altKey: true,
+ bubbles: true,
+ cancelable: true,
+ changedTouches: true,
+ ctrlKey: true,
+ detail: true,
+ eventPhase: true,
+ metaKey: true,
+ pageX: true,
+ pageY: true,
+ shiftKey: true,
+ view: true,
+ "char": true,
+ charCode: true,
+ key: true,
+ keyCode: true,
+ button: true,
+ buttons: true,
+ clientX: true,
+ clientY: true,
+ offsetX: true,
+ offsetY: true,
+ pointerId: true,
+ pointerType: true,
+ screenX: true,
+ screenY: true,
+ targetTouches: true,
+ toElement: true,
+ touches: true,
+
+ which: function( event ) {
+ var button = event.button;
+
+ // Add which for key events
+ if ( event.which == null && rkeyEvent.test( event.type ) ) {
+ return event.charCode != null ? event.charCode : event.keyCode;
+ }
+
+ // Add which for click: 1 === left; 2 === middle; 3 === right
+ if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
+ if ( button & 1 ) {
+ return 1;
+ }
+
+ if ( button & 2 ) {
+ return 3;
+ }
+
+ if ( button & 4 ) {
+ return 2;
+ }
+
+ return 0;
+ }
+
+ return event.which;
+ }
+}, jQuery.event.addProp );
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+// so that event delegation works in jQuery.
+// Do the same for pointerenter/pointerleave and pointerover/pointerout
+//
+// Support: Safari 7 only
+// Safari sends mouseenter too often; see:
+// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
+// for the description of the bug (it existed in older Chrome versions as well).
+jQuery.each( {
+ mouseenter: "mouseover",
+ mouseleave: "mouseout",
+ pointerenter: "pointerover",
+ pointerleave: "pointerout"
+}, function( orig, fix ) {
+ jQuery.event.special[ orig ] = {
+ delegateType: fix,
+ bindType: fix,
+
+ handle: function( event ) {
+ var ret,
+ target = this,
+ related = event.relatedTarget,
+ handleObj = event.handleObj;
+
+ // For mouseenter/leave call the handler if related is outside the target.
+ // NB: No relatedTarget if the mouse left/entered the browser window
+ if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
+ event.type = handleObj.origType;
+ ret = handleObj.handler.apply( this, arguments );
+ event.type = fix;
+ }
+ return ret;
+ }
+ };
+} );
+
+jQuery.fn.extend( {
+
+ on: function( types, selector, data, fn ) {
+ return on( this, types, selector, data, fn );
+ },
+ one: function( types, selector, data, fn ) {
+ return on( this, types, selector, data, fn, 1 );
+ },
+ off: function( types, selector, fn ) {
+ var handleObj, type;
+ if ( types && types.preventDefault && types.handleObj ) {
+
+ // ( event ) dispatched jQuery.Event
+ handleObj = types.handleObj;
+ jQuery( types.delegateTarget ).off(
+ handleObj.namespace ?
+ handleObj.origType + "." + handleObj.namespace :
+ handleObj.origType,
+ handleObj.selector,
+ handleObj.handler
+ );
+ return this;
+ }
+ if ( typeof types === "object" ) {
+
+ // ( types-object [, selector] )
+ for ( type in types ) {
+ this.off( type, selector, types[ type ] );
+ }
+ return this;
+ }
+ if ( selector === false || typeof selector === "function" ) {
+
+ // ( types [, fn] )
+ fn = selector;
+ selector = undefined;
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ }
+ return this.each( function() {
+ jQuery.event.remove( this, types, fn, selector );
+ } );
+ }
+} );
+
+
+var
+
+ /* eslint-disable max-len */
+
+ // See https://github.com/eslint/eslint/issues/3229
+ rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
+
+ /* eslint-enable */
+
+ // Support: IE <=10 - 11, Edge 12 - 13
+ // In IE/Edge using regex groups here causes severe slowdowns.
+ // See https://connect.microsoft.com/IE/feedback/details/1736512/
+ rnoInnerhtml = /