mousehunt-improved 0.99.7 → 0.99.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const mhImprovedVersion = '0.99.7';
1
+ const mhImprovedVersion = '0.99.9';
2
2
  const mhImprovedPlatform = 'userscript';
3
3
  var mhui = (() => {
4
4
  var __create = Object.create;
@@ -37343,20 +37343,25 @@ var mhui = (() => {
37343
37343
  items7.push(itemData);
37344
37344
  }
37345
37345
  }
37346
- const buttons = document.querySelector(".jsDialogContainer .suffix");
37347
- if (!buttons) {
37346
+ let buttons;
37347
+ if (document.querySelector(".treasureMapDialogView-overlay.active")) {
37348
+ buttons = yield waitForElement(".treasureMapDialogView.wide.acknowledge .treasureMapDialogView-actions");
37349
+ } else {
37350
+ buttons = document.querySelector(".jsDialogContainer .suffix");
37351
+ }
37352
+ if (!buttons || buttons.querySelector(".mh-improved-flrt-button")) {
37348
37353
  return;
37349
37354
  }
37350
- makeMhButton({
37355
+ const flrtButton = makeMhButton({
37351
37356
  element: "button",
37352
37357
  text: "Return to Maptain",
37353
37358
  size: "small",
37354
- className: ["button"],
37359
+ className: ["button", "mh-improved-flrt-button"],
37355
37360
  callback: () => {
37356
37361
  flrtPopup(items7);
37357
- },
37358
- prependTo: buttons
37362
+ }
37359
37363
  });
37364
+ buttons.prepend(flrtButton);
37360
37365
  });
37361
37366
  flrtPopup = (items7) => __async(null, null, function* () {
37362
37367
  const lastMaptain = yield getLastMaptain();
@@ -53071,7 +53076,7 @@ var mhui = (() => {
53071
53076
  var skyport_raids_default;
53072
53077
  var init_skyport_raids = __esm({
53073
53078
  "dist/data/skyport-raids.json"() {
53074
- skyport_raids_default = { raids: [{ id: "tribal_isles_raid", name: "Tribal Isles", mice: [{ type: "alchemist", name: "Alchemist", cheese: "sps-srr" }, { type: "scout", name: "Scout", cheese: "sps-srr" }, { type: "taleweaver", name: "Taleweaver", cheese: "abc" }, { type: "healer", name: "Healer", cheese: "sps-srr" }, { type: "trailblazer", name: "Trailblazer", cheese: "sps-srr" }, { type: "wordsmith", name: "Wordsmith", cheese: "sps-srr" }, { type: "caretaker", name: "Caretaker", cheese: "abc" }, { type: "pathfinder", name: "Pathfinder", cheese: "sps-srr" }, { type: "narrator", name: "Narrator", cheese: "sps-srr" }] }, { id: "fiery_warpath_raid", name: "Fiery Warpath", mice: [{ type: "desert_archer_weak", name: "Desert Archer", cheese: "sps-srr" }, { type: "desert_warrior_weak", name: "Desert Soldier", cheese: "sps-srr" }, { type: "desert_scout_weak", name: "Vanguard", cheese: "sps-srr" }, { type: "desert_archer", name: "Flame Archer", cheese: "sps-srr" }, { type: "desert_warrior", name: "Flame Warrior", cheese: "sps-srr" }, { type: "desert_scout", name: "Sentinel", cheese: "sps-srr" }, { type: "desert_archer_epic", name: "Crimson Ranger", cheese: "sps-srr" }, { type: "desert_warrior_epic", name: "Crimson Titan", cheese: "sps-srr" }, { type: "desert_scout_epic", name: "Crimson Watch", cheese: "abc" }] }, { id: "living_garden_raid", name: "Living Garden", mice: [{ type: "shroom", name: "Shroom", cheese: "sps-srr" }, { type: "calalilly", name: "Calalilly", cheese: "sps-srr" }, { type: "camoflower", name: "Camoflower", cheese: "sps-srr" }, { type: "strawberry_hotcakes", name: "Strawberry Hotcakes", cheese: "abc" }, { type: "bark", name: "Bark", cheese: "sps-srr" }, { type: "thistle", name: "Thistle", cheese: "sps-srr" }, { type: "fungal_spore", name: "Fungal Spore", cheese: "abc" }, { type: "twisted_lilly", name: "Twisted Lilly", cheese: "abc" }, { type: "camofusion", name: "Camofusion", cheese: "abc" }, { type: "twisted_hotcakes", name: "Twisted Hotcakes", cheese: "abc" }, { type: "barkshell", name: "Barkshell", cheese: "abc" }, { type: "thorn", name: "Thorn", cheese: "sps-srr" }] }, { id: "fort_rox_raid", name: "Fort Rox", mice: [{ type: "moonstone_snacker", name: "Meteorite Snacker", cheese: "sps-srr" }, { type: "good_supply_day", name: "Mining Materials Manager", cheese: "sps-srr" }, { type: "hardworking_hauler", name: "Hardworking Hauler", cheese: "sps-srr" }, { type: "moonstone_miner", name: "Meteorite Miner", cheese: "sps-srr" }, { type: "mischievous_moonstone_miner", name: "Mischievous Meteorite Miner", cheese: "sps-srr" }, { type: "good_supply_night", name: "Night Shift Materials Manager", cheese: "sps-srr" }, { type: "werehauler", name: "Werehauler", cheese: "sps-srr" }, { type: "wealthy_werewarrior", name: "Wealthy Werewarrior", cheese: "sps-srr" }, { type: "mischievous_wereminer", name: "Mischievous Wereminer", cheese: "sps-srr" }, { type: "were_alpha", name: "Alpha Weremouse", cheese: "sps-srr" }, { type: "reveling_lycanthrope", name: "Reveling Lycanthrope", cheese: "sps-srr" }, { type: "wereminer", name: "Wereminer", cheese: "sps-srr" }] }, { id: "queso_geyser_raid", name: "Queso Geyser", mice: [{ type: "geyser_cork_dropper_bland", name: "Fuzzy Drake", cheese: "sps-srr" }, { type: "geyser_cork_dropper_mild", name: "Cork Defender", cheese: "sps-srr" }, { type: "geyser_cork_dropper_medium", name: "Burly Bruiser", cheese: "sps-srr" }, { type: "geyser_cork_dropper_rare", name: "Corky the Collector", cheese: "abc" }, { type: "geyser_cork_dropper_hot", name: "Horned Cork Hoarder", cheese: "abc" }, { type: "geyser_pressure_builder_mild", name: "Steam Sailor", cheese: "sps-srr" }, { type: "geyser_pressure_builder_medium", name: "Warming Wyvern", cheese: "abc" }, { type: "geyser_pressure_builder_hot", name: "Vaporior", cheese: "abc" }, { type: "geyser_eruption_dragon_mild", name: "Mild Spicekin", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_medium_spice", name: "Smoldersnap", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_hot", name: "Ignatia", cheese: "abc" }, { type: "geyser_eruption_dragon_small", name: "Sizzle Pup", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_large", name: "Cinderstorm", cheese: "abc" }] }, { id: "zokor_raid", name: "Zokor", mice: [{ type: "summoning_scholar", name: "Summoning Scholar", cheese: "sps-srr" }, { type: "sanguinarian", name: "Sanguinarian", cheese: "sps-srr" }, { type: "mystic_guardian", name: "Mystic Guardian", cheese: "sps-srr" }, { type: "ethereal_guardian", name: "Ethereal Guardian", cheese: "abc" }, { type: "rr_8", name: "RR-8", cheese: "sps-srr" }, { type: "ash_golem", name: "Ash Golem", cheese: "sps-srr" }, { type: "tech_golem", name: "Tech Golem", cheese: "sps-srr" }, { type: "exo_tech", name: "Exo-Tech", cheese: "abc" }, { type: "drudge", name: "Drudge", cheese: "sps-srr" }, { type: "masked_pikeman", name: "Masked Pikeman", cheese: "sps-srr" }, { type: "solemn_soldier", name: "Solemn Soldier", cheese: "sps-srr" }, { type: "battle_cleric", name: "Battle Cleric", cheese: "abc" }] }, { id: "moussu_picchu_raid", name: "Moussu Picchu", mice: [{ type: "nightshade_maiden", name: "Nightshade Maiden", cheese: "sps-srr" }, { type: "spore_salesman", name: "Spore Salesman", cheese: "sps-srr" }, { type: "nightshade_flower_girl", name: "Nightshade Flower Girl", cheese: "sps-srr" }, { type: "wind_gatherer", name: "Breeze Borrower", cheese: "sps-srr" }, { type: "wind_harvester", name: "Windy Farmer", cheese: "sps-srr" }, { type: "cloud_collector", name: "Cloud Collector", cheese: "sps-srr" }, { type: "rain_purifier", name: "Rainwater Purifier", cheese: "sps-srr" }, { type: "homeopathic_apothecary", name: "Homeopathic Apothecary", cheese: "sps-srr" }, { type: "wind_watcher", name: "Wind Watcher", cheese: "abc" }, { type: "charming_chimer", name: "Charming Chimer", cheese: "abc" }, { type: "fluttering_flutist", name: "Fluttering Flutist", cheese: "abc" }, { type: "cycloness", name: "Cycloness", cheese: "abc" }, { type: "wind_warrior", name: "Wind Warrior", cheese: "abc" }] }, { id: "floating_islands_raid", name: "Floating Islands", mice: [{ type: "suave_pirate", name: "Suave Pirate", cheese: "sps-srr" }, { type: "cutthroat_pirate", name: "Cutthroat Pirate", cheese: "sps-srr" }, { type: "cutthroat_cannoneer", name: "Cutthroat Cannoneer", cheese: "sps-srr" }, { type: "scarlet_revenger", name: "Scarlet Revenger", cheese: "sps-srr" }, { type: "mairitime_pirate", name: "Mairitime Pirate", cheese: "sps-srr" }] }, { id: "table_of_contents_raid", name: "Table of Contents", mice: [{ type: "hans_cheesetian_squeakersen", name: "Hans Cheesetian Squeakersen", cheese: "sps-srr" }, { type: "brothers_grimmaus", name: "Brothers Grimmaus", cheese: "sps-srr" }, { type: "madame_dormouse", name: "Madame d'Ormouse", cheese: "sps-srr" }, { type: "humphrey_dumphrey", name: "Humphrey Dumphrey", cheese: "sps-srr" }, { type: "little_bo_squeak", name: "Little Bo Squeak", cheese: "sps-srr" }, { type: "little_miss_fluffet", name: "Little Miss Fluffet", cheese: "sps-srr" }, { type: "princess_and_the_olive", name: "Princess and the Olive", cheese: "abc" }, { type: "pinkielina", name: "Pinkielina", cheese: "sps-srr" }, { type: "fibbocchio", name: "Fibbocchio", cheese: "sps-srr" }] }], cheeses: { "sps-srr": { label: "SPS/SRR", name: "Sky Pirate Swiss / Sky Raider Romano" }, abc: { label: "ABC", name: "Aurora Bocconcini" } } };
53079
+ skyport_raids_default = { raids: [{ id: "tribal_isles_raid", name: "Tribal Isles", mice: [{ type: "alchemist", name: "Alchemist", cheese: "sps-srr" }, { type: "scout", name: "Scout", cheese: "sps-srr" }, { type: "taleweaver", name: "Taleweaver", cheese: "abc" }, { type: "healer", name: "Healer", cheese: "sps-srr" }, { type: "trailblazer", name: "Trailblazer", cheese: "sps-srr" }, { type: "wordsmith", name: "Wordsmith", cheese: "abc" }, { type: "caretaker", name: "Caretaker", cheese: "sps-srr" }, { type: "pathfinder", name: "Pathfinder", cheese: "abc" }, { type: "narrator", name: "Narrator", cheese: "sps-srr" }] }, { id: "fiery_warpath_raid", name: "Fiery Warpath", mice: [{ type: "desert_archer_weak", name: "Desert Archer", cheese: "sps-srr" }, { type: "desert_warrior_weak", name: "Desert Soldier", cheese: "sps-srr" }, { type: "desert_scout_weak", name: "Vanguard", cheese: "sps-srr" }, { type: "desert_archer", name: "Flame Archer", cheese: "sps-srr" }, { type: "desert_warrior", name: "Flame Warrior", cheese: "sps-srr" }, { type: "desert_scout", name: "Sentinel", cheese: "sps-srr" }, { type: "desert_archer_epic", name: "Crimson Ranger", cheese: "abc" }, { type: "desert_warrior_epic", name: "Crimson Titan", cheese: "abc" }, { type: "desert_scout_epic", name: "Crimson Watch", cheese: "abc" }] }, { id: "living_garden_raid", name: "Living Garden", mice: [{ type: "shroom", name: "Shroom", cheese: "sps-srr" }, { type: "calalilly", name: "Calalilly", cheese: "sps-srr" }, { type: "camoflower", name: "Camoflower", cheese: "sps-srr" }, { type: "strawberry_hotcakes", name: "Strawberry Hotcakes", cheese: "sps-srr" }, { type: "bark", name: "Bark", cheese: "sps-srr" }, { type: "thistle", name: "Thistle", cheese: "sps-srr" }, { type: "fungal_spore", name: "Fungal Spore", cheese: "abc" }, { type: "twisted_lilly", name: "Twisted Lilly", cheese: "abc" }, { type: "camofusion", name: "Camofusion", cheese: "abc" }, { type: "twisted_hotcakes", name: "Twisted Hotcakes", cheese: "abc" }, { type: "barkshell", name: "Barkshell", cheese: "abc" }, { type: "thorn", name: "Thorn", cheese: "abc" }] }, { id: "fort_rox_raid", name: "Fort Rox", mice: [{ type: "moonstone_snacker", name: "Meteorite Snacker", cheese: "sps-srr" }, { type: "good_supply_day", name: "Mining Materials Manager", cheese: "sps-srr" }, { type: "hardworking_hauler", name: "Hardworking Hauler", cheese: "sps-srr" }, { type: "moonstone_miner", name: "Meteorite Miner", cheese: "sps-srr" }, { type: "mischievous_moonstone_miner", name: "Mischievous Meteorite Miner", cheese: "sps-srr" }, { type: "good_supply_night", name: "Night Shift Materials Manager", cheese: "abc" }, { type: "werehauler", name: "Werehauler", cheese: "abc" }, { type: "wealthy_werewarrior", name: "Wealthy Werewarrior", cheese: "abc" }, { type: "mischievous_wereminer", name: "Mischievous Wereminer", cheese: "abc" }, { type: "were_alpha", name: "Alpha Weremouse", cheese: "abc" }, { type: "reveling_lycanthrope", name: "Reveling Lycanthrope", cheese: "abc" }, { type: "wereminer", name: "Wereminer", cheese: "abc" }] }, { id: "queso_geyser_raid", name: "Queso Geyser", mice: [{ type: "geyser_cork_dropper_bland", name: "Fuzzy Drake", cheese: "sps-srr" }, { type: "geyser_cork_dropper_mild", name: "Cork Defender", cheese: "sps-srr" }, { type: "geyser_cork_dropper_medium", name: "Burly Bruiser", cheese: "sps-srr" }, { type: "geyser_cork_dropper_rare", name: "Corky the Collector", cheese: "abc" }, { type: "geyser_cork_dropper_hot", name: "Horned Cork Hoarder", cheese: "abc" }, { type: "geyser_pressure_builder_mild", name: "Steam Sailor", cheese: "sps-srr" }, { type: "geyser_pressure_builder_medium", name: "Warming Wyvern", cheese: "sps-srr" }, { type: "geyser_pressure_builder_hot", name: "Vaporior", cheese: "abc" }, { type: "geyser_eruption_dragon_mild", name: "Mild Spicekin", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_medium_spice", name: "Smoldersnap", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_hot", name: "Ignatia", cheese: "abc" }, { type: "geyser_eruption_dragon_small", name: "Sizzle Pup", cheese: "sps-srr" }, { type: "geyser_eruption_dragon_large", name: "Cinderstorm", cheese: "abc" }] }, { id: "zokor_raid", name: "Zokor", mice: [{ type: "summoning_scholar", name: "Summoning Scholar", cheese: "sps-srr" }, { type: "sanguinarian", name: "Sanguinarian", cheese: "sps-srr" }, { type: "mystic_guardian", name: "Mystic Guardian", cheese: "sps-srr" }, { type: "ethereal_guardian", name: "Ethereal Guardian", cheese: "abc" }, { type: "rr_8", name: "RR-8", cheese: "sps-srr" }, { type: "ash_golem", name: "Ash Golem", cheese: "sps-srr" }, { type: "tech_golem", name: "Tech Golem", cheese: "sps-srr" }, { type: "exo_tech", name: "Exo-Tech", cheese: "abc" }, { type: "drudge", name: "Drudge", cheese: "sps-srr" }, { type: "masked_pikeman", name: "Masked Pikeman", cheese: "sps-srr" }, { type: "solemn_soldier", name: "Solemn Soldier", cheese: "sps-srr" }, { type: "battle_cleric", name: "Battle Cleric", cheese: "abc" }] }, { id: "moussu_picchu_raid", name: "Moussu Picchu", mice: [{ type: "nightshade_maiden", name: "Nightshade Maiden", cheese: "sps-srr" }, { type: "spore_salesman", name: "Spore Salesman", cheese: "sps-srr" }, { type: "nightshade_flower_girl", name: "Nightshade Flower Girl", cheese: "sps-srr" }, { type: "wind_gatherer", name: "Breeze Borrower", cheese: "sps-srr" }, { type: "wind_harvester", name: "Windy Farmer", cheese: "sps-srr" }, { type: "cloud_collector", name: "Cloud Collector", cheese: "sps-srr" }, { type: "rain_purifier", name: "Rainwater Purifier", cheese: "sps-srr" }, { type: "homeopathic_apothecary", name: "Homeopathic Apothecary", cheese: "sps-srr" }, { type: "wind_watcher", name: "Wind Watcher", cheese: "abc" }, { type: "charming_chimer", name: "Charming Chimer", cheese: "abc" }, { type: "fluttering_flutist", name: "Fluttering Flutist", cheese: "abc" }, { type: "cycloness", name: "Cycloness", cheese: "abc" }, { type: "wind_warrior", name: "Wind Warrior", cheese: "abc" }] }, { id: "floating_islands_raid", name: "Floating Islands", mice: [{ type: "suave_pirate", name: "Suave Pirate", cheese: "sps-srr" }, { type: "cutthroat_pirate", name: "Cutthroat Pirate", cheese: "sps-srr" }, { type: "cutthroat_cannoneer", name: "Cutthroat Cannoneer", cheese: "sps-srr" }, { type: "scarlet_revenger", name: "Scarlet Revenger", cheese: "abc" }, { type: "mairitime_pirate", name: "Mairitime Pirate", cheese: "abc" }] }, { id: "table_of_contents_raid", name: "Table of Contents", mice: [{ type: "hans_cheesetian_squeakersen", name: "Hans Cheesetian Squeakersen", cheese: "sps-srr" }, { type: "brothers_grimmaus", name: "Brothers Grimmaus", cheese: "sps-srr" }, { type: "madame_dormouse", name: "Madame d'Ormouse", cheese: "sps-srr" }, { type: "humphrey_dumphrey", name: "Humphrey Dumphrey", cheese: "sps-srr" }, { type: "little_bo_squeak", name: "Little Bo Squeak", cheese: "sps-srr" }, { type: "little_miss_fluffet", name: "Little Miss Fluffet", cheese: "sps-srr" }, { type: "princess_and_the_olive", name: "Princess and the Olive", cheese: "abc" }, { type: "pinkielina", name: "Pinkielina", cheese: "abc" }, { type: "fibbocchio", name: "Fibbocchio", cheese: "abc" }] }], cheeses: { "sps-srr": { label: "SPS/SRR", name: "Sky Pirate Swiss / Sky Raider Romano" }, abc: { label: "ABC", name: "Aurora Bocconcini" } } };
53075
53080
  }
53076
53081
  });
53077
53082
 
@@ -53095,12 +53100,12 @@ var mhui = (() => {
53095
53100
  var styles_default135;
53096
53101
  var init_styles136 = __esm({
53097
53102
  "src/modules/skyport-star-tracker/styles.css"() {
53098
- styles_default135 = "/* src/modules/skyport-star-tracker/styles.css */\n#custom-submenu-item-skyport-star-tracker .icon {\n filter: saturate(0.1) sepia(1);\n}\n#mh-skyport-star-tracker {\n position: absolute;\n z-index: 150;\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .mh-skyport-star-tracker-wrapper {\n transition: none;\n }\n}\n.mh-skyport-star-tracker-wrapper {\n width: 275px;\n background: #f6f3eb;\n border: 1px solid #534022;\n box-shadow: 1px 1px 1px 0 #9d917f, 1px 3px 5px 0 #6a6969;\n transition: box-shadow 0.25s;\n}\n.mh-dark .mh-skyport-star-tracker-wrapper {\n background: var(--d-bg);\n border-color: var(--d-border);\n box-shadow: 1px 1px 1px var(--d-transparent-50), 1px 3px 5px #6a6969;\n}\n.mh-is-dragging .mh-skyport-star-tracker-wrapper {\n box-shadow: 1px 1px 1px 0 #9d917f, 0 7px 9px 2px #6a6969;\n}\n.mh-skyport-star-tracker-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px;\n color: #f6f3eb;\n background-color: #8e6642;\n border-bottom: 1px solid #ceb7a6;\n}\n.mh-dark .mh-skyport-star-tracker-header {\n background-color: var(--d-alt);\n border-color: var(--d-border);\n}\n.mh-skyport-star-tracker-header:hover {\n cursor: grab;\n}\n.mh-skyport-star-tracker-header:active {\n cursor: grabbing;\n}\n.mh-skyport-star-tracker-header h1 {\n color: #f6f3eb;\n}\n.mh-skyport-star-tracker-buttons {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n.mh-skyport-star-tracker-close {\n cursor: pointer;\n}\n.mh-skyport-star-tracker-close:hover,\n.mh-skyport-star-tracker-close:focus {\n color: #8e6642;\n background-color: #eee;\n border-radius: 50%;\n outline: 1px solid #ccc;\n}\n.mh-dark .mh-skyport-star-tracker-close:hover,\n.mh-dark .mh-skyport-star-tracker-close:focus {\n color: var(--d-text);\n background-color: var(--d-action);\n outline-color: var(--d-border);\n}\n.mh-skyport-star-tracker-body {\n max-height: 85vh;\n overflow: hidden auto;\n}\n.mh-skyport-star-tracker-progress {\n padding: 6px 10px;\n font-size: 11px;\n}\n.mh-dark .mh-skyport-star-tracker-progress {\n color: var(--d-text);\n}\n.mh-skyport-star-tracker-raid-header {\n display: flex;\n gap: 6px;\n align-items: center;\n padding: 4px 10px 4px 6px;\n font-size: 12px;\n color: #f6f3eb;\n cursor: pointer;\n user-select: none;\n background: #a58160;\n}\n.mh-skyport-star-tracker-raid-header:hover,\n.mh-skyport-star-tracker-raid-header:focus {\n color: #f6f3eb;\n text-decoration: none;\n background: #8e6642;\n}\n.mh-dark .mh-skyport-star-tracker-raid-header {\n color: var(--d-text);\n background: var(--d-alt);\n}\n.mh-dark .mh-skyport-star-tracker-raid-header:hover,\n.mh-dark .mh-skyport-star-tracker-raid-header:focus {\n color: var(--d-text);\n background: var(--d-action);\n}\n.mh-skyport-star-tracker-raid-collapse-icon {\n flex-shrink: 0;\n width: 0;\n height: 0;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-left: 5px solid currentcolor;\n transition: transform 0.15s ease;\n transform: rotate(90deg);\n}\n.mh-skyport-star-tracker-raid-section.collapsed .mh-skyport-star-tracker-raid-collapse-icon {\n transform: rotate(0deg);\n}\n.mh-skyport-star-tracker-raid-section.collapsed .mh-skyport-star-tracker-raid-mice {\n display: none;\n}\n.mh-skyport-star-tracker-raid-title {\n flex-grow: 1;\n font-weight: 700;\n}\n.mh-skyport-star-tracker-raid-progress {\n flex-shrink: 0;\n font-size: 11px;\n}\n.mh-skyport-star-tracker-raid-complete .mh-skyport-star-tracker-raid-progress {\n padding-right: 15px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat right center;\n background-size: 11px;\n}\n.mh-skyport-star-tracker-mouse {\n display: flex;\n gap: 6px;\n align-items: center;\n padding: 5px 10px;\n color: #000;\n}\n.mh-skyport-star-tracker-mouse.odd {\n background-color: #e8e3d7;\n}\n.mh-dark .mh-skyport-star-tracker-mouse {\n color: var(--d-text-link);\n background-color: var(--d-bg);\n}\n.mh-dark .mh-skyport-star-tracker-mouse.odd {\n background-color: var(--d-bg-alt);\n}\n.mh-skyport-star-tracker-mouse:hover,\n.mh-skyport-star-tracker-mouse:focus {\n text-decoration: none;\n outline: 1px solid #646464;\n}\n.mh-dark .mh-skyport-star-tracker-mouse:hover,\n.mh-dark .mh-skyport-star-tracker-mouse:focus {\n color: var(--d-text);\n background-color: var(--d-action);\n outline-color: var(--d-border);\n}\n.mh-skyport-star-tracker-mouse-image {\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n background-color: #ddd6c5;\n background-position: center;\n background-size: cover;\n border-radius: 3px;\n}\n.mh-skyport-star-tracker-mouse-name {\n flex-grow: 1;\n overflow: hidden;\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mh-skyport-star-tracker-mouse-cheese {\n flex-shrink: 0;\n padding: 1px 4px;\n font-size: 9px;\n font-weight: 700;\n color: #222;\n border-radius: 3px;\n}\n.mh-skyport-star-tracker-mouse-cheese-abc {\n background: #40e2c9;\n}\n.mh-skyport-star-tracker-mouse-catches {\n flex-shrink: 0;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n.mh-skyport-star-tracker-mouse-complete {\n opacity: 0.55;\n}\n.mh-skyport-star-tracker-mouse-complete:hover,\n.mh-skyport-star-tracker-mouse-complete:focus {\n opacity: 1;\n}\n.mh-skyport-star-tracker-mouse-check {\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat center;\n background-size: 12px;\n}\n.ceruleanSkyportRaidChoiceDialogView__raidBlock {\n position: relative;\n}\n.mh-skyport-star-tracker-raid-intel {\n position: absolute;\n top: 53px;\n right: 0;\n z-index: 2;\n padding: 3px;\n font-size: 10px;\n font-weight: 700;\n color: #000;\n pointer-events: auto;\n background: #fff;\n border-radius: 0 0 0 4px;\n}\n.mh-skyport-star-tracker-raid-intel.mh-skyport-star-tracker-raid-complete {\n padding-left: 18px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat left 4px center / 10px, #fff;\n}\n";
53103
+ styles_default135 = "/* src/modules/skyport-star-tracker/styles.css */\n#custom-submenu-item-skyport-star-tracker .icon {\n filter: saturate(0.1) sepia(1);\n}\n#mh-skyport-star-tracker {\n position: absolute;\n z-index: 150;\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .mh-skyport-star-tracker-wrapper {\n transition: none;\n }\n}\n.mh-skyport-star-tracker-wrapper {\n width: 275px;\n background: #f6f3eb;\n border: 1px solid #534022;\n box-shadow: 1px 1px 1px 0 #9d917f, 1px 3px 5px 0 #6a6969;\n transition: box-shadow 0.25s;\n}\n.mh-dark .mh-skyport-star-tracker-wrapper {\n background: var(--d-bg);\n border-color: var(--d-border);\n box-shadow: 1px 1px 1px var(--d-transparent-50), 1px 3px 5px #6a6969;\n}\n.mh-is-dragging .mh-skyport-star-tracker-wrapper {\n box-shadow: 1px 1px 1px 0 #9d917f, 0 7px 9px 2px #6a6969;\n}\n.mh-skyport-star-tracker-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px;\n color: #f6f3eb;\n background-color: #8e6642;\n border-bottom: 1px solid #ceb7a6;\n}\n.mh-dark .mh-skyport-star-tracker-header {\n background-color: var(--d-alt);\n border-color: var(--d-border);\n}\n.mh-skyport-star-tracker-header:hover {\n cursor: grab;\n}\n.mh-skyport-star-tracker-header:active {\n cursor: grabbing;\n}\n.mh-skyport-star-tracker-header h1 {\n color: #f6f3eb;\n}\n.mh-skyport-star-tracker-buttons {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n.mh-skyport-star-tracker-close,\n.mh-skyport-star-tracker-refresh {\n cursor: pointer;\n}\n.mh-skyport-star-tracker-close:hover,\n.mh-skyport-star-tracker-close:focus,\n.mh-skyport-star-tracker-refresh:hover,\n.mh-skyport-star-tracker-refresh:focus {\n color: #8e6642;\n background-color: #eee;\n border-radius: 50%;\n outline: 1px solid #ccc;\n}\n.mh-dark .mh-skyport-star-tracker-close:hover,\n.mh-dark .mh-skyport-star-tracker-close:focus,\n.mh-dark .mh-skyport-star-tracker-refresh:hover,\n.mh-dark .mh-skyport-star-tracker-refresh:focus {\n color: var(--d-text);\n background-color: var(--d-action);\n outline-color: var(--d-border);\n}\n.mh-skyport-star-tracker-refreshing {\n pointer-events: none;\n animation: mh-skyport-star-tracker-spin 1s linear infinite;\n}\n@keyframes mh-skyport-star-tracker-spin {\n to {\n transform: rotate(360deg);\n }\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .mh-skyport-star-tracker-refreshing {\n opacity: 0.5;\n animation: none;\n }\n}\n.mh-skyport-star-tracker-body {\n max-height: 85vh;\n overflow: hidden auto;\n}\n.mh-skyport-star-tracker-progress {\n padding: 6px 10px;\n font-size: 11px;\n}\n.mh-dark .mh-skyport-star-tracker-progress {\n color: var(--d-text);\n}\n.mh-skyport-star-tracker-raid-header {\n display: flex;\n gap: 6px;\n align-items: center;\n padding: 4px 10px 4px 6px;\n font-size: 12px;\n color: #f6f3eb;\n cursor: pointer;\n user-select: none;\n background: #a58160;\n}\n.mh-skyport-star-tracker-raid-header:hover,\n.mh-skyport-star-tracker-raid-header:focus {\n color: #f6f3eb;\n text-decoration: none;\n background: #8e6642;\n}\n.mh-dark .mh-skyport-star-tracker-raid-header {\n color: var(--d-text);\n background: var(--d-alt);\n}\n.mh-dark .mh-skyport-star-tracker-raid-header:hover,\n.mh-dark .mh-skyport-star-tracker-raid-header:focus {\n color: var(--d-text);\n background: var(--d-action);\n}\n.mh-skyport-star-tracker-raid-collapse-icon {\n flex-shrink: 0;\n width: 0;\n height: 0;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-left: 5px solid currentcolor;\n transition: transform 0.15s ease;\n transform: rotate(90deg);\n}\n.mh-skyport-star-tracker-raid-section.collapsed .mh-skyport-star-tracker-raid-collapse-icon {\n transform: rotate(0deg);\n}\n.mh-skyport-star-tracker-raid-section.collapsed .mh-skyport-star-tracker-raid-mice {\n display: none;\n}\n.mh-skyport-star-tracker-raid-title {\n flex-grow: 1;\n font-weight: 700;\n}\n.mh-skyport-star-tracker-raid-progress {\n flex-shrink: 0;\n font-size: 11px;\n}\n.mh-skyport-star-tracker-raid-complete .mh-skyport-star-tracker-raid-progress {\n padding-right: 15px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat right center;\n background-size: 11px;\n}\n.mh-skyport-star-tracker-mouse {\n display: flex;\n gap: 6px;\n align-items: center;\n padding: 5px 10px;\n color: #000;\n}\n.mh-skyport-star-tracker-mouse.odd {\n background-color: #e8e3d7;\n}\n.mh-dark .mh-skyport-star-tracker-mouse {\n color: var(--d-text-link);\n background-color: var(--d-bg);\n}\n.mh-dark .mh-skyport-star-tracker-mouse.odd {\n background-color: var(--d-bg-alt);\n}\n.mh-skyport-star-tracker-mouse:hover,\n.mh-skyport-star-tracker-mouse:focus {\n text-decoration: none;\n outline: 1px solid #646464;\n}\n.mh-dark .mh-skyport-star-tracker-mouse:hover,\n.mh-dark .mh-skyport-star-tracker-mouse:focus {\n color: var(--d-text);\n background-color: var(--d-action);\n outline-color: var(--d-border);\n}\n.mh-skyport-star-tracker-mouse-image {\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n background-color: #ddd6c5;\n background-position: center;\n background-size: cover;\n border-radius: 3px;\n}\n.mh-skyport-star-tracker-mouse-name {\n flex-grow: 1;\n overflow: hidden;\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.mh-skyport-star-tracker-mouse-cheese {\n flex-shrink: 0;\n padding: 1px 4px;\n font-size: 9px;\n font-weight: 700;\n color: #222;\n border-radius: 3px;\n}\n.mh-skyport-star-tracker-mouse-cheese-abc {\n background: #40e2c9;\n}\n.mh-skyport-star-tracker-mouse-catches {\n flex-shrink: 0;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n.mh-skyport-star-tracker-mouse-complete {\n opacity: 0.55;\n}\n.mh-skyport-star-tracker-mouse-complete:hover,\n.mh-skyport-star-tracker-mouse-complete:focus {\n opacity: 1;\n}\n.mh-skyport-star-tracker-mouse-check {\n flex-shrink: 0;\n width: 12px;\n height: 12px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat center;\n background-size: 12px;\n}\n.ceruleanSkyportRaidChoiceDialogView__raidBlock {\n position: relative;\n}\n.mh-skyport-star-tracker-raid-intel {\n position: absolute;\n top: 53px;\n right: 0;\n z-index: 2;\n padding: 3px;\n font-size: 10px;\n font-weight: 700;\n color: #000;\n pointer-events: auto;\n background: #fff;\n border-radius: 0 0 0 4px;\n}\n.mh-skyport-star-tracker-raid-intel.mh-skyport-star-tracker-raid-complete {\n padding-left: 18px;\n background: url(https://www.mousehuntgame.com/images/icons/checkmark_greenplain.png) no-repeat left 4px center / 10px, #fff;\n}\n";
53099
53104
  }
53100
53105
  });
53101
53106
 
53102
53107
  // src/modules/skyport-star-tracker/index.js
53103
- var skyportLocation, catches, catchesFetchedAt, thumbnails, panel2, isFetching, wantsOpen, getThreshold, isAtSkyport, fetchCatches, getCatches, getNeededMice, makeMouseRow, getCurrentRaid, makeRaidHeader, makeRaidSection, render, isPanelVisible, closePanel, buildPanel2, showPanel, togglePanel, addRaidIntel, processCatchEntry, refreshAfterTurn, updateForLocation, init85, skyport_star_tracker_default;
53108
+ var skyportLocation, catches, catchesFetchedAt, thumbnails, panel2, isFetching, wantsOpen, getThreshold, isAtSkyport, fetchCatches, getCatches, getNeededMice, makeMouseRow, getCurrentRaid, makeRaidHeader, makeRaidSection, render, isPanelVisible, closePanel, makeHeaderIcon, refreshCatches, buildPanel2, showPanel, togglePanel, addRaidIntel, processCatchEntry, refreshAfterTurn, updateForLocation, init85, skyport_star_tracker_default;
53104
53109
  var init_skyport_star_tracker = __esm({
53105
53110
  "src/modules/skyport-star-tracker/index.js"() {
53106
53111
  init_utils2();
@@ -53142,6 +53147,8 @@ var mhui = (() => {
53142
53147
  thumbnails = new Map(mice2.filter((mouse) => mouse.image).map((mouse) => [mouse.type, mouse.image]));
53143
53148
  catchesFetchedAt = Date.now();
53144
53149
  }
53150
+ } catch (error2) {
53151
+ debuglog("skyport-star-tracker", "Failed to fetch catch data", error2);
53145
53152
  } finally {
53146
53153
  isFetching = false;
53147
53154
  }
@@ -53245,7 +53252,7 @@ var mhui = (() => {
53245
53252
  }
53246
53253
  list.innerHTML = "";
53247
53254
  if (!catches) {
53248
- progress.textContent = "No catch data yet.";
53255
+ progress.textContent = "Couldn't load catch data \u2014 tap \u27F3 to retry.";
53249
53256
  return;
53250
53257
  }
53251
53258
  const allMice = skyport_raids_default.raids.flatMap((raid) => raid.mice);
@@ -53269,6 +53276,40 @@ var mhui = (() => {
53269
53276
  }
53270
53277
  wantsOpen = false;
53271
53278
  };
53279
+ makeHeaderIcon = (className, pathData, label) => {
53280
+ const icon = document.createElementNS("http://www.w3.org/2000/svg", "svg");
53281
+ icon.classList.add(className);
53282
+ icon.setAttribute("viewBox", "0 0 24 24");
53283
+ icon.setAttribute("width", "18");
53284
+ icon.setAttribute("height", "18");
53285
+ icon.setAttribute("fill", "none");
53286
+ icon.setAttribute("stroke", "currentColor");
53287
+ icon.setAttribute("stroke-width", "1.5");
53288
+ icon.setAttribute("role", "button");
53289
+ icon.setAttribute("aria-label", label);
53290
+ const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
53291
+ path.setAttribute("d", pathData);
53292
+ icon.append(path);
53293
+ return icon;
53294
+ };
53295
+ refreshCatches = () => __async(null, null, function* () {
53296
+ if (isFetching || !panel2) {
53297
+ return;
53298
+ }
53299
+ const icon = panel2.querySelector(".mh-skyport-star-tracker-refresh");
53300
+ if (icon) {
53301
+ icon.classList.add("mh-skyport-star-tracker-refreshing");
53302
+ }
53303
+ const progress = panel2.querySelector(".mh-skyport-star-tracker-progress");
53304
+ if (progress) {
53305
+ progress.textContent = "Refreshing\u2026";
53306
+ }
53307
+ yield fetchCatches(true);
53308
+ if (icon) {
53309
+ icon.classList.remove("mh-skyport-star-tracker-refreshing");
53310
+ }
53311
+ render();
53312
+ });
53272
53313
  buildPanel2 = () => {
53273
53314
  const outer = document.createElement("div");
53274
53315
  outer.id = "mh-skyport-star-tracker";
@@ -53278,17 +53319,10 @@ var mhui = (() => {
53278
53319
  title.textContent = "Skyport Star Tracker";
53279
53320
  header.append(title);
53280
53321
  const buttons = makeElement("div", "mh-skyport-star-tracker-buttons");
53281
- const closeIcon = document.createElementNS("http://www.w3.org/2000/svg", "svg");
53282
- closeIcon.classList.add("mh-skyport-star-tracker-close");
53283
- closeIcon.setAttribute("viewBox", "0 0 24 24");
53284
- closeIcon.setAttribute("width", "18");
53285
- closeIcon.setAttribute("height", "18");
53286
- closeIcon.setAttribute("fill", "none");
53287
- closeIcon.setAttribute("stroke", "currentColor");
53288
- closeIcon.setAttribute("stroke-width", "1.5");
53289
- const closePath = document.createElementNS("http://www.w3.org/2000/svg", "path");
53290
- closePath.setAttribute("d", "M18 6L6 18M6 6l12 12");
53291
- closeIcon.append(closePath);
53322
+ const refreshIcon = makeHeaderIcon("mh-skyport-star-tracker-refresh", "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", "Refresh catch data");
53323
+ refreshIcon.addEventListener("click", refreshCatches);
53324
+ buttons.append(refreshIcon);
53325
+ const closeIcon = makeHeaderIcon("mh-skyport-star-tracker-close", "M18 6L6 18M6 6l12 12", "Close");
53292
53326
  closeIcon.addEventListener("click", closePanel);
53293
53327
  buttons.append(closeIcon);
53294
53328
  header.append(buttons);
@@ -54038,6 +54072,22 @@ var mhui = (() => {
54038
54072
  }
54039
54073
  });
54040
54074
 
54075
+ // src/data/update-summaries/0.99.8.json
54076
+ var __default18;
54077
+ var init__18 = __esm({
54078
+ "src/data/update-summaries/0.99.8.json"() {
54079
+ __default18 = { version: "0.99.8", summary: "", details: [{ title: "", items: ["Skyport Star Tracker: Corrected which raid mice require Aurora Bocconcini"] }] };
54080
+ }
54081
+ });
54082
+
54083
+ // src/data/update-summaries/0.99.9.json
54084
+ var __default19;
54085
+ var init__19 = __esm({
54086
+ "src/data/update-summaries/0.99.9.json"() {
54087
+ __default19 = { version: "0.99.9", summary: "", details: [{ title: "", items: ["FLRT Helper: Fixed the Return to Maptain button not appearing when opening a chest from the map screen", "Skyport Star Tracker: Added a refresh button to the tracker panel"] }] };
54088
+ }
54089
+ });
54090
+
54041
54091
  // src/modules/update-notifications/index.js
54042
54092
  var imported10, updateSummaries, compareVersions, getSummariesSince, makeDetailsList, makeVersionMarkup, showUpdateSummary, init91, update_notifications_default;
54043
54093
  var init_update_notifications = __esm({
@@ -54056,7 +54106,9 @@ var mhui = (() => {
54056
54106
  init__15();
54057
54107
  init__16();
54058
54108
  init__17();
54059
- imported10 = [__default6, __default7, __default8, __default9, __default10, __default11, __default12, __default13, __default14, __default15, __default16, __default17];
54109
+ init__18();
54110
+ init__19();
54111
+ imported10 = [__default6, __default7, __default8, __default9, __default10, __default11, __default12, __default13, __default14, __default15, __default16, __default17, __default18, __default19];
54060
54112
  updateSummaries = imported10;
54061
54113
  compareVersions = (a, b) => {
54062
54114
  const aParts = "".concat(a).split(".");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mousehunt-improved",
3
- "version": "0.99.7",
3
+ "version": "0.99.9",
4
4
  "description": "Improve your MouseHunt experience.",
5
5
  "author": "Brad Parbs <brad@bradparbs.com> (https://bradparbs.com/)",
6
6
  "license": "MIT",