diff --git a/aurorastation.dme b/aurorastation.dme
index 2197ce10a3e..5c685084c04 100644
--- a/aurorastation.dme
+++ b/aurorastation.dme
@@ -1898,6 +1898,7 @@
#include "code\modules\mob\living\simple_animal\constructs\soulstone.dm"
#include "code\modules\mob\living\simple_animal\familiars\familiars.dm"
#include "code\modules\mob\living\simple_animal\friendly\adhomai.dm"
+#include "code\modules\mob\living\simple_animal\friendly\carp.dm"
#include "code\modules\mob\living\simple_animal\friendly\cat.dm"
#include "code\modules\mob\living\simple_animal\friendly\corgi.dm"
#include "code\modules\mob\living\simple_animal\friendly\crab.dm"
@@ -2273,7 +2274,6 @@
#include "code\modules\research\stockparts.dm"
#include "code\modules\research\designs\AI_modules_designs.dm"
#include "code\modules\research\designs\circuit_designs.dm"
-#include "code\modules\research\designs\mechfab_designs.dm"
#include "code\modules\research\designs\medical_designs.dm"
#include "code\modules\research\designs\mining_designs.dm"
#include "code\modules\research\designs\modular_computer_designs.dm"
@@ -2281,6 +2281,20 @@
#include "code\modules\research\designs\stock_parts_designs.dm"
#include "code\modules\research\designs\tcom_designs.dm"
#include "code\modules\research\designs\weapon_designs.dm"
+#include "code\modules\research\designs\mechfab\hardsuit\modules.dm"
+#include "code\modules\research\designs\mechfab\hardsuit\rigs.dm"
+#include "code\modules\research\designs\mechfab\mechs\durand.dm"
+#include "code\modules\research\designs\mechfab\mechs\gygax.dm"
+#include "code\modules\research\designs\mechfab\mechs\hermes.dm"
+#include "code\modules\research\designs\mechfab\mechs\odysseus.dm"
+#include "code\modules\research\designs\mechfab\mechs\ripley.dm"
+#include "code\modules\research\designs\mechfab\mechs\mech_equipment\_equipment.dm"
+#include "code\modules\research\designs\mechfab\mechs\mech_equipment\tools.dm"
+#include "code\modules\research\designs\mechfab\mechs\mech_equipment\weaponry.dm"
+#include "code\modules\research\designs\mechfab\prosthetics\external.dm"
+#include "code\modules\research\designs\mechfab\prosthetics\internal.dm"
+#include "code\modules\research\designs\mechfab\robot\robot.dm"
+#include "code\modules\research\designs\mechfab\robot\robot_upgrades.dm"
#include "code\modules\research\xenoarchaeology\chemistry.dm"
#include "code\modules\research\xenoarchaeology\geosample.dm"
#include "code\modules\research\xenoarchaeology\manuals.dm"
diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm
index 84ecca94610..e1b5aaa6bbf 100644
--- a/code/__defines/misc.dm
+++ b/code/__defines/misc.dm
@@ -1,20 +1,5 @@
#define DEBUG
-//These get to go at the top, because they're special
-//You can use these defines to get the typepath of the currently running proc/verb (yes procs + verbs are objects)
-/* eg:
-/mob/living/carbon/human/death()
- world << THIS_PROC_TYPE_STR //You can only output the string versions
-Will print: "/mob/living/carbon/human/death" (you can optionally embed it in a string with () (eg: the _WITH_ARGS defines) to make it look nicer)
-*/
-#define THIS_PROC_TYPE .....
-#define THIS_PROC_TYPE_STR "[THIS_PROC_TYPE]" //Because you can only obtain a string of THIS_PROC_TYPE using "[]", and it's nice to just +/+= strings
-#define THIS_PROC_TYPE_STR_WITH_ARGS "[THIS_PROC_TYPE]([args.Join(",")])"
-#define THIS_PROC_TYPE_WEIRD ...... //This one is WEIRD, in some cases (When used in certain defines? (eg: ASSERT)) THIS_PROC_TYPE will fail to work, but THIS_PROC_TYPE_WEIRD will work instead
-#define THIS_PROC_TYPE_WEIRD_STR "[THIS_PROC_TYPE_WEIRD]" //Included for completeness
-#define THIS_PROC_TYPE_WEIRD_STR_WITH_ARGS "[THIS_PROC_TYPE_WEIRD]([args.Join(",")])" //Ditto
-
-
// Turf-only flags.
#define NOJAUNT 1 // This is used in literally one place, turf.dm, to block ethereal jaunt.
#define MIMIC_BELOW 2 // If this turf should mimic the turf on the Z below.
@@ -300,11 +285,6 @@ Will print: "/mob/living/carbon/human/death" (you can optionally embed it in a s
#define DEBUG_REF(D) (D ? "\ref[D]|[D] ([D.type])" : "NULL")
-// These defines write to log_debug, prefixing the path to the current proc.
-// When using them, try PROCLOG first. If it does not compile, try PROCLOG_WEIRD.
-#define PROCLOG(thing) log_debug("[THIS_PROC_TYPE]: [thing]")
-#define PROCLOG_WEIRD(thing) log_debug("[THIS_PROC_TYPE_WEIRD]: [thing]")
-
//Recipe type defines. Used to determine what machine makes them
#define MICROWAVE 0x1
#define FRYER 0x2
diff --git a/code/_helpers/icons.dm b/code/_helpers/icons.dm
index 7d45d399186..7f372cf1fd8 100644
--- a/code/_helpers/icons.dm
+++ b/code/_helpers/icons.dm
@@ -737,9 +737,15 @@ as a single icon. Useful for when you want to manipulate an icon via the above a
var/icon/add // Icon of overlay being added
// Current dimensions of flattened icon
- var/{flatX1=1;flatX2=flat.Width();flatY1=1;flatY2=flat.Height()}
+ var/flatX1 = 1
+ var/flatX2 = flat.Width()
+ var/flatY1 = 1
+ var/flatY2=flat.Height()
// Dimensions of overlay being added
- var/{addX1;addX2;addY1;addY2}
+ var/addX1
+ var/addX2
+ var/addY1
+ var/addY2
for(var/I in layers)
diff --git a/code/controllers/subsystems/air.dm b/code/controllers/subsystems/air.dm
index 4d3a93b99cc..eaa85a25d08 100644
--- a/code/controllers/subsystems/air.dm
+++ b/code/controllers/subsystems/air.dm
@@ -91,7 +91,7 @@ Class Procs:
/datum/controller/subsystem/air/proc/reboot()
set waitfor = FALSE
-
+
// Stop processing while we rebuild.
can_fire = FALSE
@@ -152,7 +152,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
"}, R_DEBUG)
admin_notice(span("danger", "Geometry processing completed in [(REALTIMEOFDAY - starttime)/10] seconds!"), R_DEBUG)
-
+
if (simulate)
admin_notice(span("danger", "Settling air..."), R_DEBUG)
@@ -168,7 +168,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
processing_edges = active_edges.Copy()
processing_fires = active_fire_zones.Copy()
processing_hotspots = active_hotspots.Copy()
-
+
var/list/curr_tiles = tiles_to_update
var/list/curr_defer = deferred
var/list/curr_edges = processing_edges
@@ -189,7 +189,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
continue
//check if the turf is self-zone-blocked
- var/c_airblock
+ var/c_airblock
ATMOS_CANPASS_TURF(c_airblock, T, T)
if(c_airblock & ZONE_BLOCKED)
deferred += T
@@ -239,9 +239,9 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
else if (MC_TICK_CHECK)
return
continue
-
+
edge.tick()
-
+
if (no_mc_tick)
CHECK_TICK
else if (MC_TICK_CHECK)
@@ -257,7 +257,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
CHECK_TICK
else if (MC_TICK_CHECK)
return
-
+
while (curr_hotspot.len)
var/obj/fire/F = curr_hotspot[curr_hotspot.len]
curr_hotspot.len--
@@ -299,7 +299,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
#endif
var/ablock
ATMOS_CANPASS_TURF(ablock, A, B)
- if(ablock == BLOCKED)
+ if(ablock == BLOCKED)
return BLOCKED
ATMOS_CANPASS_TURF(., B, A)
return ablock | .
@@ -340,16 +340,15 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
merge(A.zone,B.zone)
return
- var
- a_to_b = get_dir(A,B)
- b_to_a = get_dir(B,A)
+ var/a_to_b = get_dir(A,B)
+ var/b_to_a = get_dir(B,A)
if(!A.connections) A.connections = new
if(!B.connections) B.connections = new
- if(A.connections.get(a_to_b))
+ if(A.connections.get(a_to_b))
return
- if(B.connections.get(b_to_a))
+ if(B.connections.get(b_to_a))
return
if(!space)
if(A.zone == B.zone) return
@@ -366,7 +365,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
#ifdef ZASDBG
ASSERT(isturf(T))
#endif
- if(T.needs_air_update)
+ if(T.needs_air_update)
return
tiles_to_update += T
#ifdef ZASDBG
@@ -378,7 +377,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
#ifdef ZASDBG
ASSERT(istype(Z))
#endif
- if(Z.needs_update)
+ if(Z.needs_update)
return
zones_to_update += Z
Z.needs_update = 1
@@ -387,7 +386,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
#ifdef ZASDBG
ASSERT(istype(E))
#endif
- if(E.sleeping)
+ if(E.sleeping)
return
active_edges -= E
E.sleeping = 1
@@ -396,7 +395,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
#ifdef ZASDBG
ASSERT(istype(E))
#endif
- if(!E.sleeping)
+ if(!E.sleeping)
return
active_edges += E
E.sleeping = 0
@@ -407,7 +406,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
/datum/controller/subsystem/air/proc/get_edge(zone/A, zone/B)
if(istype(B))
for(var/connection_edge/zone/edge in A.edges)
- if(edge.contains_zone(B))
+ if(edge.contains_zone(B))
return edge
var/connection_edge/edge = new/connection_edge/zone(A,B)
edges += edge
@@ -415,7 +414,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
return edge
else
for(var/connection_edge/unsimulated/edge in A.edges)
- if(has_same_air(edge.B,B))
+ if(has_same_air(edge.B,B))
return edge
var/connection_edge/edge = new/connection_edge/unsimulated(A,B)
edges += edge
@@ -423,11 +422,11 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
return edge
/datum/controller/subsystem/air/proc/has_same_air(turf/A, turf/B)
- if(A.oxygen != B.oxygen)
+ if(A.oxygen != B.oxygen)
return 0
- if(A.nitrogen != B.nitrogen)
+ if(A.nitrogen != B.nitrogen)
return 0
- if(A.phoron != B.phoron)
+ if(A.phoron != B.phoron)
return 0
if(A.carbon_dioxide != B.carbon_dioxide)
return 0
diff --git a/code/datums/position_point_vector.dm b/code/datums/position_point_vector.dm
index b4fc96e85ba..baae16b1fc4 100644
--- a/code/datums/position_point_vector.dm
+++ b/code/datums/position_point_vector.dm
@@ -6,8 +6,8 @@
#define RETURN_PRECISE_POSITION(A) new /datum/position(A)
#define RETURN_PRECISE_POINT(A) new /datum/point(A)
-#define RETURN_POINT_VECTOR(ATOM, ANGLE, SPEED) {new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED)}
-#define RETURN_POINT_VECTOR_INCREMENT(ATOM, ANGLE, SPEED, AMT) {new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED, AMT)}
+#define RETURN_POINT_VECTOR(ATOM, ANGLE, SPEED) new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED)
+#define RETURN_POINT_VECTOR_INCREMENT(ATOM, ANGLE, SPEED, AMT) new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED, AMT)
/datum/position //For positions with map x/y/z and pixel x/y so you don't have to return lists. Could use addition/subtraction in the future I guess.
var/x = 0
@@ -224,4 +224,4 @@
var/needed_time = world.time - last_move
last_process = world.time
last_move = world.time
- increment(needed_time / SSprojectiles.wait)
\ No newline at end of file
+ increment(needed_time / SSprojectiles.wait)
diff --git a/code/game/gamemodes/events/holidays/Christmas.dm b/code/game/gamemodes/events/holidays/Christmas.dm
index 5045065cef2..f6bc893e432 100644
--- a/code/game/gamemodes/events/holidays/Christmas.dm
+++ b/code/game/gamemodes/events/holidays/Christmas.dm
@@ -36,8 +36,8 @@
"Where do you find chili beans?\n\nThe north pole.",
"What do you get from eating tree decorations?\n\nTinsilitis!",
"What do snowmen wear on their heads?\n\nIce caps!",
- "Why is Christmas just like life on ss13?\n\nYou do all the work and the fat guy gets all the credit.",
- "Why doesn�t Santa have any children?\n\nBecause he only comes down the chimney.")
+ "Why is Christmas just like life in Nanotrasen?\n\nYou do all the work and the fat guy gets all the credit.",
+ "Why doesn't Santa have any children?\n\nBecause he only comes down the chimney.")
Joke.set_content_unsafe(title, content)
new /obj/item/clothing/head/festive(target.loc)
user.update_icons()
diff --git a/code/game/gamemodes/vampire/modular_vampire.dm b/code/game/gamemodes/vampire/modular_vampire.dm
index 312e4f27d72..6f3e21cc69d 100644
--- a/code/game/gamemodes/vampire/modular_vampire.dm
+++ b/code/game/gamemodes/vampire/modular_vampire.dm
@@ -4,6 +4,13 @@ var/list/datum/power/vampire/vampirepowers = list()
/datum/power/vampire
var/blood_cost = 0
+/datum/power/vampire/alertness
+ name = "Alertness"
+ desc = "Toggle whether you wish for your victims to get paralyzed and forget your deeds."
+ helptext = "If active, victims will become paralyzed and forget that you fed on them, instead remembering only a pleasant encounter."
+ blood_cost = 0
+ verbpath = /mob/living/carbon/human/proc/vampire_alertness
+
/datum/power/vampire/drain_blood
name = "Drain Blood"
desc = "Feed on the blood of a humanoid creature in order to gain further power."
@@ -37,6 +44,12 @@ var/list/datum/power/vampire/vampirepowers = list()
blood_cost = 50
verbpath = /mob/living/carbon/human/proc/vampire_presence
+/datum/power/vampire/touch_of_life
+ name = "Touch of Life"
+ desc = "You touch the target, transferring healing chemicals to them."
+ blood_cost = 50
+ verbpath = /mob/living/carbon/human/proc/vampire_touch_of_life
+
/datum/power/vampire/veil_step
name = "Veil Step"
desc = "Enter the Veil for a moment, and skip to a shadow of your choosing."
diff --git a/code/game/gamemodes/vampire/vampire_datum.dm b/code/game/gamemodes/vampire/vampire_datum.dm
index 5b6cd202562..9e9845632bb 100644
--- a/code/game/gamemodes/vampire/vampire_datum.dm
+++ b/code/game/gamemodes/vampire/vampire_datum.dm
@@ -8,6 +8,7 @@
var/frenzy = 0 // A vampire's frenzy meter.
var/last_frenzy_message = 0 // Keeps track of when the last frenzy alert was sent.
var/status = 0 // Bitfield including different statuses.
+ var/stealth = TRUE // Do you want your victims to know of your sucking?
var/list/datum/power/vampire/purchased_powers = list() // List of power datums available for use.
var/obj/effect/dummy/veil_walk/holder = null // The veil_walk dummy.
var/mob/living/carbon/human/master = null // The vampire/thrall's master.
@@ -18,7 +19,6 @@
/datum/vampire/proc/add_power(var/datum/mind/vampire, var/datum/power/vampire/power, var/announce = 0)
if (!vampire || !power)
return
-
if (power in purchased_powers)
return
@@ -26,11 +26,9 @@
if (power.isVerb && power.verbpath)
vampire.current.verbs += power.verbpath
-
if (announce)
to_chat(vampire.current, "You have unlocked a new power: [power.name].")
to_chat(vampire.current, "[power.desc]")
-
if (power.helptext)
to_chat(vampire.current, "[power.helptext]")
diff --git a/code/game/gamemodes/vampire/vampire_helpers.dm b/code/game/gamemodes/vampire/vampire_helpers.dm
index d61c2264f4d..1c5b918e137 100644
--- a/code/game/gamemodes/vampire/vampire_helpers.dm
+++ b/code/game/gamemodes/vampire/vampire_helpers.dm
@@ -2,10 +2,8 @@
/mob/proc/make_vampire()
if (!mind)
return
-
if (!mind.vampire)
mind.vampire = new /datum/vampire()
-
// No powers to thralls. Ew.
if (mind.vampire.status & VAMP_ISTHRALL)
return
@@ -21,7 +19,7 @@
else if(P.isVerb && P.verbpath)
verbs += P.verbpath
- return 1
+ return TRUE
// Checks the vampire's bloodlevel and unlocks new powers based on that.
/mob/proc/check_vampire_upgrade()
@@ -43,7 +41,6 @@
/mob/proc/vampire_power(var/required_blood = 0, var/max_stat = 0, var/ignore_holder = 0, var/disrupt_healing = 1, var/required_vampire_blood = 0)
if (!mind)
return
-
if (!ishuman(src))
return
@@ -51,15 +48,12 @@
if (!vampire)
log_debug("[src] has a vampire power but is not a vampire.")
return
-
if (vampire.holder && !ignore_holder)
to_chat(src, "You cannot use this power while walking through the Veil.")
return
-
if (stat > max_stat)
to_chat(src, "You are incapacitated.")
return
-
if (required_blood > vampire.blood_usable)
to_chat(src, "You do not have enough usable blood. [required_blood] needed.")
return
@@ -72,66 +66,57 @@
// Checks whether or not the target can be affected by a vampire's abilities.
/mob/proc/vampire_can_affect_target(var/mob/living/carbon/human/T, var/notify = 1, var/account_loyalty_implant = 0, var/ignore_thrall = FALSE)
if (!T || !istype(T))
- return 0
-
+ return FALSE
// How did you even get here?
if (!mind.vampire)
- return 0
-
+ return FALSE
if ((mind.vampire.status & VAMP_FULLPOWER) && !(T.mind && T.mind.vampire && (T.mind.vampire.status & VAMP_FULLPOWER)))
- return 1
-
+ return TRUE
if (T.mind)
if (T.mind.assigned_role == "Chaplain")
if (notify)
to_chat(src, "Your connection with the Veil is not strong enough to affect a man as devout as them.")
- return 0
+ return FALSE
else if (T.mind.vampire && (!(T.mind.vampire.status & VAMP_ISTHRALL) || ((T.mind.vampire.status & VAMP_ISTHRALL) && !ignore_thrall)))
if (notify)
to_chat(src, "You lack the power required to affect another creature of the Veil.")
- return 0
+ return FALSE
if (isipc(T))
if (notify)
to_chat(src, "You lack the power interact with mechanical constructs.")
- return 0
-
+ return FALSE
if(is_special_character(T) && (!(T.mind.vampire.status & VAMP_ISTHRALL)))
if (notify)
to_chat(src, "\The [T]'s mind is too strong to be affected by our powers!")
- return 0
-
+ return FALSE
if (account_loyalty_implant)
for (var/obj/item/weapon/implant/loyalty/I in T)
if (I.implanted)
if (notify)
to_chat(src, "You feel that [T]'s mind is unreachable due to forced loyalty.")
- return 0
+ return FALSE
- return 1
+ return TRUE
// Plays the vampire phase in animation.
/mob/proc/vampire_phase_in(var/turf/T = null)
if (!T)
return
-
anim(T, src, 'icons/mob/mob.dmi', , "bloodify_in", , dir)
// Plays the vampire phase out animation.
/mob/proc/vampire_phase_out(var/turf/T = null)
if (!T)
return
-
anim(T, src, 'icons/mob/mob.dmi', , "bloodify_out", , dir)
// Make a vampire thrall
/mob/proc/vampire_make_thrall()
-
if (!mind)
return
var/datum/vampire/thrall/thrall = new()
-
mind.vampire = thrall
/mob/proc/vampire_check_frenzy(var/force_frenzy = 0)
@@ -139,7 +124,6 @@
return
var/datum/vampire/vampire = mind.vampire
-
// Thralls don't frenzy.
if (vampire.status & VAMP_ISTHRALL)
return
@@ -218,7 +202,7 @@
sight &= ~SEE_MOBS
- visible_message("[src.name]'s eyes no longer glow with violent rage, their form reverting to resemble that of a normal human's.", "The beast within you retreats. You gain control over your body once more.")
+ visible_message("[src.name]'s eyes no longer glow with violent rage, their form reverting to resemble that of a normal person's.", "The beast within you retreats. You gain control over your body once more.")
verbs -= /mob/living/carbon/human/proc/grapple
regenerate_icons()
@@ -254,8 +238,6 @@
/mob/living/carbon/human/proc/finish_vamp_timeout(vamp_flags = 0)
if (!mind || !mind.vampire)
return FALSE
-
if (vamp_flags && !(mind.vampire.status & vamp_flags))
return FALSE
-
return TRUE
diff --git a/code/game/gamemodes/vampire/vampire_powers.dm b/code/game/gamemodes/vampire/vampire_powers.dm
index b70e6447dbb..303edf113ce 100644
--- a/code/game/gamemodes/vampire/vampire_powers.dm
+++ b/code/game/gamemodes/vampire/vampire_powers.dm
@@ -1,5 +1,18 @@
// Contains all /mob/procs that relate to vampire.
+// Makes vampire's victim not get paralyzed, and remember the suckings
+/mob/living/carbon/human/proc/vampire_alertness()
+ set category = "Vampire"
+ set name = "Victim Alertness"
+ set desc = "Toggle whether you wish for your victims to get paralyzed and forget your deeds."
+
+ var/datum/vampire/vampire = vampire_power(0, 0)
+ vampire.stealth = !vampire.stealth
+ if(vampire.stealth)
+ to_chat(src, span("notice", "Your victims will now forget your interactions, and get paralyzed when you do them."))
+ else
+ to_chat(src, span("notice", "Your victims will now remember your interactions, and stay completely mobile during them."))
+
// Drains the target's blood.
/mob/living/carbon/human/proc/vampire_drain_blood()
set category = "Vampire"
@@ -12,11 +25,10 @@
var/obj/item/weapon/grab/G = get_active_hand()
if (!istype(G))
- to_chat(src, "You must be grabbing a victim in your active hand to drain their blood.")
+ to_chat(src, span("warning", "You must be grabbing a victim in your active hand to drain their blood."))
return
-
if (G.state == GRAB_PASSIVE || G.state == GRAB_UPGRADING)
- to_chat(src, "You must have the victim pinned to the ground to drain their blood.")
+ to_chat(src, span("warning", "You must have the victim pinned to the ground to drain their blood."))
return
var/mob/living/carbon/human/T = G.affecting
@@ -24,15 +36,13 @@
//Added this to prevent vampires draining diona and IPCs
//Diona have 'blood' but its really green sap and shouldn't help vampires
//IPCs leak oil
- to_chat(src, "[T] is not a creature you can drain useful blood from.")
+ to_chat(src, span("warning", "[T] is not a creature you can drain useful blood from."))
return
-
if(T.head && (T.head.item_flags & AIRTIGHT))
- to_chat(src, "[T]'s headgear is blocking the way to the neck.")
+ to_chat(src, span("warning", "[T]'s headgear is blocking the way to the neck."))
return
-
if (vampire.status & VAMP_DRAINING)
- to_chat(src, "Your fangs are already sunk into a victim's neck!")
+ to_chat(src, span("warning", "Your fangs are already sunk into a victim's neck!"))
return
var/datum/vampire/draining_vamp = null
@@ -46,24 +56,33 @@
vampire.status |= VAMP_DRAINING
visible_message("[src.name] bites [T.name]'s neck!", "You bite [T.name]'s neck and begin to drain their blood.", "You hear a soft puncture and a wet sucking noise")
- admin_attack_log(src, T, "drained blood from [key_name(T)]", "was drained blood from by [key_name(src)]", "is draining blood from")
+ var/remembrance
+ if(vampire.stealth)
+ remembrance = "forgot"
+ else
+ remembrance = "remembered"
+ admin_attack_log(src, T, "drained blood from [key_name(T)], who [remembrance] the encounter.", "had their blood drained by [key_name(src)] and [remembrance] the encounter.", "is draining blood from")
- to_chat(T, "You are unable to resist or even move. Your mind blanks as you're being fed upon.")
+ if(vampire.stealth)
+ to_chat(T, span("warning", "You are unable to resist or even move. Your mind blanks as you're being fed upon."))
+ T.paralysis = 3400
+ else
+ to_chat(T, span("warning", "You are unable to resist or even move. Your mind is acutely aware of what's occuring."))
+ T.paralysis = 3400
playsound(src.loc, 'sound/effects/drain_blood_new.ogg', 50, 1)
- T.paralysis = 3400
while (do_mob(src, T, 50))
if (!mind.vampire)
- to_chat(src, "Your fangs have disappeared!")
+ to_chat(src, span("danger", "Your fangs have disappeared!"))
return
blood_total = vampire.blood_total
blood_usable = vampire.blood_usable
if (!T.vessel.get_reagent_amount("blood"))
- to_chat(src, "[T] has no more blood left to give.")
+ to_chat(src, span("danger", "[T] has no more blood left to give."))
break
if (!T.stunned)
@@ -100,18 +119,27 @@
vampire.frenzy--
if (blood_total != vampire.blood_total)
- var/update_msg = "You have accumulated [vampire.blood_total] [vampire.blood_total > 1 ? "units" : "unit"] of blood."
+ var/update_msg = "You have accumulated [vampire.blood_total] [vampire.blood_total > 1 ? "units" : "unit"] of blood"
if (blood_usable != vampire.blood_usable)
- update_msg += " And have [vampire.blood_usable] left to use."
+ update_msg += " and have [vampire.blood_usable] left to use."
+ else
+ update_msg += "."
to_chat(src, update_msg)
check_vampire_upgrade()
T.vessel.remove_reagent("blood", 25)
vampire.status &= ~VAMP_DRAINING
- visible_message("[src.name] stops biting [T.name]'s neck!", "You extract your fangs from [T.name]'s neck and stop draining them of blood. They will remember nothing of this occurance. Provided they survived.")
- if (T.stat != 2)
- to_chat(T, "You remember nothing about being fed upon. Instead, you simply remember having a pleasant encounter with [src.name].")
+
+ var/endsuckmsg = "You extract your fangs from [T.name]'s neck and stop draining them of blood."
+ if(vampire.stealth)
+ endsuckmsg += "They will remember nothing of this occurance, provided they survived."
+ visible_message("[src.name] stops biting [T.name]'s neck!", "[endsuckmsg]")
+ if(T.stat != 2 && vampire.stealth)
+ to_chat(T, span("warning", "You remember nothing about being fed upon. Instead, you simply remember having a pleasant encounter with [src.name]."))
+ T.paralysis = 0
+ else if(T.stat != 2)
+ to_chat(T, span("warning", "You remember everything about being fed upon. How you react to [src.name]'s actions is up to you."))
T.paralysis = 0
// Small area of effect stun.
@@ -122,11 +150,9 @@
if (!vampire_power(0, 1))
return
-
if (!has_eyes())
to_chat(src, "You don't have eyes!")
return
-
if (istype(glasses, /obj/item/clothing/glasses/sunglasses/blindfold))
to_chat(src, "You're blindfolded!")
return
@@ -136,7 +162,6 @@
for (var/mob/living/carbon/human/H in view(2))
if (H == src)
continue
-
if (!vampire_can_affect_target(H, 0))
continue
@@ -160,7 +185,6 @@
var/datum/vampire/vampire = vampire_power(10, 1)
if (!vampire)
return
-
if (!has_eyes())
to_chat(src, "You don't have eyes!")
return
@@ -170,7 +194,6 @@
if (H == src)
continue
victims += H
-
if (!victims.len)
to_chat(src, "No suitable targets.")
return
@@ -210,15 +233,12 @@
var/datum/vampire/vampire = vampire_power(20, 1)
if (!vampire)
return
-
if (!istype(loc, /turf))
to_chat(src, "You cannot teleport out of your current location.")
return
-
if (T.z != src.z || get_dist(T, get_turf(src)) > world.view)
to_chat(src, "Your powers are not capable of taking you that far.")
return
-
if (T.get_lumcount() > 0.1)
// Too bright, cannot jump into.
to_chat(src, "The destination is too bright.")
@@ -307,10 +327,8 @@
for (var/mob/living/carbon/human/T in hearers(4, src))
if (T == src)
continue
-
- if (istype(T) && (T:l_ear || T:r_ear) && istype((T:l_ear || T:r_ear), /obj/item/clothing/ears/earmuffs))
+ if (istype(T) && (T.l_ear || T.r_ear) && istype((T.l_ear || T.r_ear), /obj/item/clothing/ears/earmuffs))
continue
-
if (!vampire_can_affect_target(T, 0))
continue
@@ -369,10 +387,10 @@
desc = "A red, shimmering presence."
icon = 'icons/mob/mob.dmi'
icon_state = "blank"
- density = 0
+ density = FALSE
var/last_valid_turf = null
- var/can_move = 1
+ var/can_move = TRUE
var/mob/owner_mob = null
var/datum/vampire/owner_vampire = null
var/warning_level = 0
@@ -673,7 +691,6 @@
if (!istype(G))
to_chat(src, "You must be grabbing a victim in your active hand to enthrall them.")
return
-
if (G.state == GRAB_PASSIVE || G.state == GRAB_UPGRADING)
to_chat(src, "You must have the victim pinned to the ground to enthrall them.")
return
@@ -682,18 +699,14 @@
if(isipc(T))
to_chat(src, "[T] is not a creature you can enthrall.")
return
-
if (!istype(T))
to_chat(src, "[T] is not a creature you can enthrall.")
return
-
if (!vampire_can_affect_target(T, 1, 1))
return
-
if (!T.client || !T.mind)
to_chat(src, "[T]'s mind is empty and useless. They cannot be forced into a blood bond.")
return
-
if (vampire.status & VAMP_DRAINING)
to_chat(src, "Your fangs are already sunk into a victim's neck!")
return
@@ -733,7 +746,6 @@
if (H == src)
continue
victims += H
-
if (!victims.len)
to_chat(src, "No suitable targets.")
return
@@ -805,10 +817,8 @@
for (var/mob/living/carbon/human/T in view(5))
if (T == src)
continue
-
if (!vampire_can_affect_target(T, 0, 1))
continue
-
if (!T.client)
continue
@@ -827,6 +837,32 @@
to_chat(src, "You are no longer influencing those weak of mind.")
break
+/mob/living/carbon/human/proc/vampire_touch_of_life()
+ set category = "Vampire"
+ set name = "Touch of Life (50)"
+ set desc = "You lay your hands on the target, transferring healing chemicals to them."
+
+ var/datum/vampire/vampire = vampire_power(50, 0)
+ if (!vampire)
+ return
+
+ var/obj/item/weapon/grab/G = get_active_hand()
+ if (!istype(G))
+ to_chat(src, "You must be grabbing a victim in your active hand to touch them.")
+ return
+
+ var/mob/living/carbon/human/T = G.affecting
+ if (T.species.flags & NO_BLOOD)
+ to_chat(src, "[T] has no blood and can not be affected by your powers!")
+ return
+
+ visible_message("[src] gently touches [T].")
+ to_chat(T, span("notice", "You feel pure bliss as [src] touches you."))
+ vampire.use_blood(50)
+
+ T.reagents.add_reagent("rezadone", 3)
+ T.reagents.add_reagent("oxycodone", 0.15) //enough to get back onto their feet
+
// Convert a human into a vampire.
/mob/living/carbon/human/proc/vampire_embrace()
set category = "Vampire"
@@ -842,7 +878,6 @@
if (!istype(G))
to_chat(src, "You must be grabbing a victim in your active hand to drain their blood.")
return
-
if (G.state == GRAB_PASSIVE || G.state == GRAB_UPGRADING)
to_chat(src, "You must have the victim pinned to the ground to drain their blood.")
return
@@ -850,19 +885,15 @@
var/mob/living/carbon/human/T = G.affecting
if (!vampire_can_affect_target(T, ignore_thrall = TRUE))
return
-
if (!T.client)
to_chat(src, "[T] is a mindless husk. The Veil has no purpose for them.")
return
-
if (T.stat == 2)
to_chat(src, "[T]'s body is broken and damaged beyond salvation. You have no use for them.")
return
-
if (T.species.flags & NO_BLOOD)
to_chat(src, "[T] has no blood and can not be affected by your powers!")
return
-
if (vampire.status & VAMP_DRAINING)
to_chat(src, "Your fangs are already sunk into a victim's neck!")
return
@@ -901,7 +932,6 @@
if (!mind.vampire)
to_chat(src, "Your fangs have disappeared!")
return
-
if (!T.vessel.get_reagent_amount("blood"))
to_chat(src, "[T] is now drained of blood. You begin forcing your own blood into their body, spreading the corruption of the Veil to their body.")
break
@@ -941,7 +971,6 @@
if (status_flags & LEAPING)
return
-
if (stat || paralysis || stunned || weakened || lying || restrained() || buckled)
to_chat(src, "You cannot lean in your current state.")
return
@@ -967,7 +996,6 @@
if (status_flags & LEAPING)
status_flags &= ~LEAPING
-
if (!src.Adjacent(T))
to_chat(src, "You miss!")
return
diff --git a/code/game/jobs/job/engineering.dm b/code/game/jobs/job/engineering.dm
index 2ac11ee9aab..f67fc60184a 100644
--- a/code/game/jobs/job/engineering.dm
+++ b/code/game/jobs/job/engineering.dm
@@ -33,7 +33,7 @@
uniform = /obj/item/clothing/under/rank/chief_engineer
head = /obj/item/clothing/head/hardhat/white
- belt = /obj/item/weapon/storage/belt/utility/full
+ belt = /obj/item/weapon/storage/belt/utility
pda = /obj/item/device/pda/heads/ce
id = /obj/item/weapon/card/id/navy
shoes = /obj/item/clothing/shoes/workboots
@@ -44,6 +44,16 @@
dufflebag = /obj/item/weapon/storage/backpack/duffel/eng
messengerbag = /obj/item/weapon/storage/backpack/messenger/engi
+ belt_contents = list(
+ /obj/item/weapon/screwdriver = 1,
+ /obj/item/weapon/wrench = 1,
+ /obj/item/weapon/weldingtool = 1,
+ /obj/item/weapon/crowbar = 1,
+ /obj/item/weapon/wirecutters = 1,
+ /obj/item/stack/cable_coil/random = 1,
+ /obj/item/weapon/powerdrill = 1
+ )
+
/datum/outfit/job/chief_engineer/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
. = ..()
if(istajara(H))
@@ -78,7 +88,7 @@
uniform = /obj/item/clothing/under/rank/engineer
head = /obj/item/clothing/head/hardhat
- belt = /obj/item/weapon/storage/belt/utility/full
+ belt = /obj/item/weapon/storage/belt/utility
pda = /obj/item/device/pda/engineering
id = /obj/item/weapon/card/id/silver
shoes = /obj/item/clothing/shoes/workboots
@@ -90,6 +100,16 @@
dufflebag = /obj/item/weapon/storage/backpack/duffel/eng
messengerbag = /obj/item/weapon/storage/backpack/messenger/engi
+ belt_contents = list(
+ /obj/item/weapon/screwdriver = 1,
+ /obj/item/weapon/wrench = 1,
+ /obj/item/weapon/weldingtool = 1,
+ /obj/item/weapon/crowbar = 1,
+ /obj/item/weapon/wirecutters = 1,
+ /obj/item/stack/cable_coil/random = 1,
+ /obj/item/weapon/powerdrill = 1
+ )
+
/datum/job/atmos
title = "Atmospheric Technician"
flag = ATMOSTECH
@@ -124,6 +144,15 @@
dufflebag = /obj/item/weapon/storage/backpack/duffel/eng
messengerbag = /obj/item/weapon/storage/backpack/messenger/engi
+ belt_contents = list(
+ /obj/item/weapon/screwdriver = 1,
+ /obj/item/weapon/wrench = 1,
+ /obj/item/weapon/weldingtool = 1,
+ /obj/item/weapon/crowbar = 1,
+ /obj/item/weapon/wirecutters = 1,
+ /obj/item/device/t_scanner = 1
+ )
+
/datum/job/intern_eng
title = "Engineering Apprentice"
flag = INTERN_ENG
diff --git a/code/game/jobs/job/job.dm b/code/game/jobs/job/job.dm
index 2e00b8baf85..e4bd4b83579 100644
--- a/code/game/jobs/job/job.dm
+++ b/code/game/jobs/job/job.dm
@@ -89,7 +89,6 @@
if (!species_modifier)
var/datum/species/human_species = global.all_species["Human"]
species_modifier = human_species.economic_modifier
- PROCLOG_WEIRD("species [H.species || "NULL"] did not have a set economic_modifier!")
var/money_amount = (rand(5,50) + rand(5, 50)) * loyalty * economic_modifier * species_modifier
var/datum/money_account/M = SSeconomy.create_account(H.real_name, money_amount, null)
diff --git a/code/game/jobs/job/science.dm b/code/game/jobs/job/science.dm
index cdefe3a2614..c6f90f8ee5d 100644
--- a/code/game/jobs/job/science.dm
+++ b/code/game/jobs/job/science.dm
@@ -83,7 +83,6 @@
/datum/outfit/job/scientist/xenoarcheologist
name = "Xenoarcheologist"
-
uniform = /obj/item/clothing/under/rank/xenoarcheologist
/datum/job/xenobiologist
@@ -107,12 +106,17 @@
minimal_player_age = 14
outfit = /datum/outfit/job/scientist/xenobiologist
+ alt_outfits = list("Xenobotanist"=/datum/outfit/job/scientist/xenobiologist/xenobotanist)
/datum/outfit/job/scientist/xenobiologist
name = "Xenobiologist"
jobtype = /datum/job/xenobiologist
pda = /obj/item/device/pda/xenobio
+/datum/outfit/job/scientist/xenobiologist/xenobotanist
+ name = "Xenobotanist"
+ uniform = /obj/item/clothing/under/rank/scientist/botany
+
/datum/job/roboticist
title = "Roboticist"
flag = ROBOTICIST
@@ -145,13 +149,23 @@
l_ear = /obj/item/device/radio/headset/headset_sci
pda = /obj/item/device/pda/roboticist
id = /obj/item/weapon/card/id/white
- belt = /obj/item/weapon/storage/belt/utility/full
+ belt = /obj/item/weapon/storage/belt/utility
backpack = /obj/item/weapon/storage/backpack/toxins
satchel = /obj/item/weapon/storage/backpack/satchel_tox
dufflebag = /obj/item/weapon/storage/backpack/duffel/tox
messengerbag = /obj/item/weapon/storage/backpack/messenger/tox
+ belt_contents = list(
+ /obj/item/weapon/screwdriver = 1,
+ /obj/item/weapon/wrench = 1,
+ /obj/item/weapon/weldingtool = 1,
+ /obj/item/weapon/crowbar = 1,
+ /obj/item/weapon/wirecutters = 1,
+ /obj/item/stack/cable_coil/random = 1,
+ /obj/item/weapon/powerdrill = 1
+ )
+
/datum/job/intern_sci
title = "Lab Assistant"
flag = INTERN_SCI
diff --git a/code/game/machinery/kitchen/cooking_machines/cereal.dm b/code/game/machinery/kitchen/cooking_machines/cereal.dm
index 10ef105a7a3..693814f0677 100644
--- a/code/game/machinery/kitchen/cooking_machines/cereal.dm
+++ b/code/game/machinery/kitchen/cooking_machines/cereal.dm
@@ -41,7 +41,7 @@
var/list/images = list()
var/num = 0
- for (var/obj/item/I in CI.container).
+ for (var/obj/item/I in CI.container)
if (istype(I, /obj/item/weapon/reagent_containers/food/snacks/variable/cereal))
//Images of cereal boxes on cereal boxes is dumb
continue
diff --git a/code/game/machinery/kitchen/microwave.dm b/code/game/machinery/kitchen/microwave.dm
index 28d5c5d6164..1ce5253a154 100644
--- a/code/game/machinery/kitchen/microwave.dm
+++ b/code/game/machinery/kitchen/microwave.dm
@@ -1,6 +1,6 @@
-
/obj/machinery/microwave
- name = "Microwave"
+ name = "microwave"
+ desc = "A Getmore-brand microwave. It's seen better days. Below the oven door, a faded label warns to keep non-food items out, and to beware of choking."
icon = 'icons/obj/kitchen.dmi'
icon_state = "mw"
layer = 2.9
@@ -10,22 +10,39 @@
idle_power_usage = 5
active_power_usage = 2000
flags = OPENCONTAINER | NOREACT
- var/operating = 0 // Is it on?
+ var/operating = FALSE // Is it on?
var/dirty = 0 // = {0..100} Does it need cleaning?
var/broken = 0 // ={0,1,2} How broken is it???
var/global/list/acceptable_items // List of the items you can put in
var/global/list/acceptable_reagents // List of the reagents you can put in
var/global/max_n_of_items = 20
+ var/list/acceptable_containers = list(
+ /obj/item/weapon/reagent_containers/glass,
+ /obj/item/weapon/reagent_containers/food/drinks,
+ /obj/item/weapon/reagent_containers/food/condiment
+ )
var/appliancetype = MICROWAVE
var/datum/looping_sound/microwave/soundloop
+ var/datum/recipe/recipe
+
+ // These determine if the current cooking process failed, the vars above determine if the microwave is broken
+ var/cook_break = FALSE
+ var/cook_dirty = FALSE
+ var/abort = FALSE
+ var/failed = FALSE // pretty much exclusively for sending the fail state across to the UI, using recipe elsewhere is preferred
component_types = list(
- /obj/item/weapon/circuitboard/microwave,
+ /obj/item/weapon/circuitboard/microwave = 1,
/obj/item/weapon/stock_parts/capacitor = 3,
- /obj/item/weapon/stock_parts/scanning_module,
+ /obj/item/weapon/stock_parts/micro_laser = 1,
/obj/item/weapon/stock_parts/matter_bin = 2
)
+ var/cook_time = 400
+ var/start_time = 0
+ var/end_time = 0
+ var/cooking_power = 1
+
// see code/modules/food/recipes_microwave.dm for recipes
/*******************
@@ -42,6 +59,20 @@
else
setup_recipes()
+ if(component_parts)
+ component_parts.Cut()
+ else
+ component_parts = list()
+
+ for (var/type in component_types)
+ var/count = component_types[type]
+ for (var/i in 1 to count)
+ var/obj/t = new type
+ component_parts += t
+ t.forceMove(null)
+
+ RefreshParts()
+
/obj/machinery/microwave/proc/setup_recipes()
if (!LAZYLEN(acceptable_items))
acceptable_items = list()
@@ -63,9 +94,16 @@
* Item Adding
********************/
+/obj/machinery/microwave/proc/add_item(var/obj/item/I as obj, var/mob/user as mob)
+ user.drop_from_inventory(I, src)
+ user.visible_message( \
+ "\The [user] has added one of [I] to \the [src].", \
+ "You add one of [I] to \the [src].")
+ SSvueui.check_uis_for_change(src)
+
/obj/machinery/microwave/attackby(var/obj/item/O as obj, var/mob/user as mob)
- if(src.broken > 0)
- if(src.broken == 2 && O.isscrewdriver()) // If it's broken and they're using a screwdriver
+ if(broken > 0)
+ if(broken == 2 && O.isscrewdriver()) // If it's broken and they're using a screwdriver
user.visible_message( \
"\The [user] starts to fix part of the microwave.", \
"You start to fix part of the microwave." \
@@ -75,8 +113,8 @@
"\The [user] fixes part of the microwave.", \
"You have fixed part of the microwave." \
)
- src.broken = 1 // Fix it a bit
- else if(src.broken == 1 && O.iswrench()) // If it's broken and they're doing the wrench
+ broken = 1 // Fix it a bit
+ else if(broken == 1 && O.iswrench()) // If it's broken and they're doing the wrench
user.visible_message( \
"\The [user] starts to fix part of the microwave.", \
"You start to fix part of the microwave." \
@@ -86,15 +124,15 @@
"\The [user] fixes the microwave.", \
"You have fixed the microwave." \
)
- src.icon_state = "mw"
- src.broken = 0 // Fix it!
- src.dirty = 0 // just to be sure
- src.flags = OPENCONTAINER | NOREACT
+ icon_state = "mw"
+ broken = 0 // Fix it!
+ dirty = 0 // just to be sure
+ flags = OPENCONTAINER | NOREACT
else
to_chat(user, "It's broken!")
return 1
- else if(src.dirty==100) // The microwave is all dirty so can't be used!
- if(istype(O, /obj/item/weapon/reagent_containers/spray/cleaner) || istype(O, /obj/item/weapon/soap)) // If they're trying to clean it then let them
+ else if(dirty >= 100) // The microwave is all dirty so can't be used!
+ if(istype(O, /obj/item/weapon/reagent_containers/spray/cleaner) || istype(O, /obj/item/weapon/soap) || istype(O, /obj/item/weapon/reagent_containers/glass/rag)) // If they're trying to clean it then let them
user.visible_message( \
"\The [user] starts to clean the microwave.", \
"You start to clean the microwave." \
@@ -104,43 +142,21 @@
"\The [user] has cleaned the microwave.", \
"You have cleaned the microwave." \
)
- src.dirty = 0 // It's clean!
- src.broken = 0 // just to be sure
- src.icon_state = "mw"
- src.flags = OPENCONTAINER | NOREACT
+ dirty = 0 // It's clean!
+ broken = 0 // just to be sure
+ icon_state = "mw"
+ flags = OPENCONTAINER | NOREACT
else //Otherwise bad luck!!
to_chat(user, "It's dirty!")
return 1
- else if(is_type_in_list(O,acceptable_items))
- if (contents.len>=max_n_of_items)
- to_chat(user, "This [src] is full of ingredients, you cannot put more.")
- return 1
- if(istype(O, /obj/item/stack) && O:get_amount() > 1) // This is bad, but I can't think of how to change it
- var/obj/item/stack/S = O
- new O.type (src)
- S.use(1)
- user.visible_message( \
- "\The [user] has added one of [O] to \the [src].", \
- "You add one of [O] to \the [src].")
- return
- else
- // user.remove_from_mob(O) //This just causes problems so far as I can tell. -Pete
- user.drop_from_inventory(O,src)
- user.visible_message( \
- "\The [user] has added \the [O] to \the [src].", \
- "You add \the [O] to \the [src].")
- return
- else if(istype(O,/obj/item/weapon/reagent_containers/glass) || \
- istype(O,/obj/item/weapon/reagent_containers/food/drinks) || \
- istype(O,/obj/item/weapon/reagent_containers/food/condiment) \
- )
+ else if(is_type_in_list(O, acceptable_containers))
if (!O.reagents)
return 1
for (var/datum/reagent/R in O.reagents.reagent_list)
if (!(R.id in acceptable_reagents))
to_chat(user, "Your [O] contains components unsuitable for cookery.")
return 1
- return
+ return // Note to the future: reagents are added after this in the container's afterattack().
else if(istype(O,/obj/item/weapon/grab))
var/obj/item/weapon/grab/G = O
to_chat(user, "This is ridiculous. You can not fit \the [G.affecting] in this [src].")
@@ -167,10 +183,30 @@
else if(default_part_replacement(user, O))
return
else
-
- to_chat(user, "You have no idea what you can cook with this [O].")
+ if (contents.len>=max_n_of_items)
+ to_chat(user, "This [src] is full of ingredients, you can't fit any more!")
+ return 1
+ if(istype(O, /obj/item/stack))
+ var/obj/item/stack/S = O
+ if(S.get_amount() > 1)
+ new O.type (src)
+ S.use(1)
+ user.visible_message( \
+ "\The [user] has added one of [O] to \the [src].", \
+ "You add one of [O] to \the [src].")
+ SSvueui.check_uis_for_change(src)
+ return
+ else
+ add_item(O, user)
+ else
+ add_item(O, user)
+ return
+ SSvueui.check_uis_for_change(src)
..()
- src.updateUsrDialog()
+
+/obj/machinery/microwave/AltClick()
+ if(!operating)
+ cook()
/obj/machinery/microwave/attack_ai(mob/user as mob)
if(istype(user, /mob/living/silicon/robot) && Adjacent(user))
@@ -178,75 +214,67 @@
/obj/machinery/microwave/attack_hand(mob/user as mob)
user.set_machine(src)
- interact(user)
+ if(broken > 0)
+ to_chat(user, "\The [name] is broken! You'll need to fix it before using it.")
+ else if(dirty >= 100)
+ to_chat(user, "\The [name] is dirty! You'll need to clean it before using it.")
+ else
+ ui_interact(user)
+
+/obj/machinery/microwave/examine(var/mob/user)
+ ..()
+ if(broken > 0)
+ to_chat(user, "It's broken!")
+ else if(dirty >= 100)
+ to_chat(user, "The insides are completely filthy!")
+ else if(dirty > 75)
+ to_chat(user, "It's covered in stains.")
+ else if(dirty > 50)
+ to_chat(user, "It's pretty messy.")
+ else if(dirty > 25)
+ to_chat(user, "It's a bit dirty.")
/*******************
* Microwave Menu
********************/
-/obj/machinery/microwave/interact(mob/user as mob) // The microwave Menu
- var/dat = ""
- if(src.broken > 0)
- dat = {"Bzzzzttttt"}
- else if(src.operating)
- dat = {"Microwaving in progress! Please wait...!"}
- else if(src.dirty==100)
- dat = {"This microwave is dirty! Please clean it before use!"}
- else
- var/list/items_counts = new
- var/list/items_measures = new
- var/list/items_measures_p = new
+VUEUI_MONITOR_VARS(/obj/machinery/microwave, microwavemonitor)
+ watch_var("operating", "on", CALLBACK(null, .proc/transform_to_boolean, FALSE))
+ watch_var("failed", "failed")
+ watch_var("cook_time", "cook_time")
+ watch_var("start_time", "start_time")
+
+/obj/machinery/microwave/vueui_data_change(var/list/data, var/mob/user, var/datum/vueui/ui)
+ var/monitordata = ..()
+ if(monitordata)
+ . = data = monitordata
+
+ // init data objects if they aren't already
+ LAZYINITLIST(data["cookingobjs"])
+ LAZYINITLIST(data["cookingreas"])
+
+ // if BYOND lists are smaller than UI, then something (or everything) was removed - wipe the list
+ if(LAZYLEN(contents) < LAZYLEN(data["cookingobjs"]))
+ VUEUI_SET_CHECK(data["cookingobjs"], list(), ., data)
+ if(LAZYLEN(reagents.reagent_list) < LAZYLEN(data["cookingreas"]))
+ VUEUI_SET_CHECK(data["cookingreas"], list(), ., data)
+
+ // build the list of objs and reagents
+ if (LAZYLEN(contents))
+ var/list/cook_count = list()
for (var/obj/O in contents)
- var/display_name = O.name
- if (istype(O,/obj/item/weapon/reagent_containers/food/snacks/egg))
- items_measures[display_name] = "egg"
- items_measures_p[display_name] = "eggs"
- if (istype(O,/obj/item/weapon/reagent_containers/food/snacks/tofu))
- items_measures[display_name] = "tofu chunk"
- items_measures_p[display_name] = "tofu chunks"
- if (istype(O,/obj/item/weapon/reagent_containers/food/snacks/meat)) //any meat
- items_measures[display_name] = "slab of meat"
- items_measures_p[display_name] = "slabs of meat"
- if (istype(O,/obj/item/weapon/reagent_containers/food/snacks/donkpocket))
- display_name = "Turnovers"
- items_measures[display_name] = "turnover"
- items_measures_p[display_name] = "turnovers"
- if (istype(O,/obj/item/weapon/reagent_containers/food/snacks/carpmeat))
- items_measures[display_name] = "fillet of meat"
- items_measures_p[display_name] = "fillets of meat"
- items_counts[display_name]++
- for (var/O in items_counts)
- var/N = items_counts[O]
- if (!(O in items_measures))
- dat += {"[capitalize(O)]: [N] [lowertext(O)]\s "}
- else
- if (N==1)
- dat += {"[capitalize(O)]: [N] [items_measures[O]] "}
- else
- dat += {"[capitalize(O)]: [N] [items_measures_p[O]] "}
-
+ cook_count[O.name]++
+ for (var/C in cook_count)
+ VUEUI_SET_CHECK(data["cookingobjs"][C], cook_count[C], ., data)
+ if (LAZYLEN(reagents.reagent_list))
for (var/datum/reagent/R in reagents.reagent_list)
- var/display_name = R.name
- if (R.id == "capsaicin")
- display_name = "Hotsauce"
- if (R.id == "frostoil")
- display_name = "Coldsauce"
- dat += {"[display_name]: [R.volume] unit\s "}
-
- if (items_counts.len==0 && reagents.reagent_list.len==0)
- dat = {"The microwave is empty "}
- else
- dat = {"Ingredients: [dat]"}
- dat += {"
\
-Turn on! \
-Eject ingredients! \
-"}
-
- user << browse("Microwave Controls[dat]", "window=microwave")
- onclose(user, "microwave")
- return
-
+ VUEUI_SET_CHECK(data["cookingreas"][R], R.volume, ., data)
+/obj/machinery/microwave/ui_interact(mob/user)
+ var/datum/vueui/ui = SSvueui.get_open_ui(user, src)
+ if (!ui)
+ ui = new(user, src, "cooking-microwave", 300, 300, capitalize(name))
+ ui.open()
/***********************************
* Microwave Menu Handling/Cooking
@@ -255,102 +283,91 @@
/obj/machinery/microwave/proc/cook()
if(stat & (NOPOWER|BROKEN))
return
- start()
- if (reagents.total_volume==0 && !(locate(/obj) in contents)) //dry run
- if (!wzhzhzh(16))
- abort()
- return
- stop()
+
+ if (!reagents.reagent_list.len && !(locate(/obj) in contents)) //dry run
+ start()
return
- var/datum/recipe/recipe = select_recipe(RECIPE_LIST(appliancetype),src)
- var/obj/cooked
+ recipe = select_recipe(RECIPE_LIST(appliancetype),src)
+
+ if (reagents.reagent_list.len && prob(50)) // 50% chance a liquid recipe gets messy
+ dirty += Ceiling(reagents.total_volume / 10)
+
if (!recipe)
- dirty += 1
- if (prob(max(10,dirty*5)))
- if (!wzhzhzh(16))
- abort()
- return
- muck_start()
- wzhzhzh(16)
- muck_finish()
- cooked = fail()
- cooked.forceMove(src.loc)
- return
+ failed = TRUE
+ cook_time = update_cook_time()
+ dirty += 5
+ if (prob(max(10, dirty*5)))
+ // It's dirty enough to mess up the microwave
+ cook_dirty = TRUE
else if (has_extra_item())
- if (!wzhzhzh(16))
- abort()
- return
- broke()
- cooked = fail()
- cooked.forceMove(src.loc)
- return
- else
- if (!wzhzhzh(40))
- abort()
- return
- stop()
- cooked = fail()
- cooked.forceMove(src.loc)
- return
+ // Something's in the microwave that shouldn't be! Time to break!
+ cook_break = TRUE
else
- var/halftime = round((recipe.time*4)/10/2)
- if (!wzhzhzh(halftime))
- abort()
- return
- if (!wzhzhzh(halftime))
- abort()
- cooked = fail()
- cooked.forceMove(src.loc)
- return
+ failed = FALSE
+ cook_time = update_cook_time(round(recipe.time * 2))
+ start()
- //Making multiple copies of a recipe
- var/result = recipe.result
- var/valid = 1
- var/list/cooked_items = list()
- var/obj/temp = new /obj(src) //To prevent infinite loops, all results will be moved into a temporary location so they're not considered as inputs for other recipes
- while(valid)
- var/list/things = list()
- things.Add(recipe.make_food(src))
- cooked_items += things
- //Move cooked things to the buffer so they're not considered as ingredients
- for (var/atom/movable/AM in things)
- AM.forceMove(temp)
+/obj/machinery/microwave/proc/update_cook_time(var/ct = 200)
+ RefreshParts()
+ return (ct / cooking_power)
- valid = 0
- recipe = select_recipe(RECIPE_LIST(appliancetype),src)
- if (recipe && recipe.result == result)
- sleep(2)
- valid = 1
+/obj/machinery/microwave/proc/finish_cooking()
+ var/result = recipe.result
+ var/valid = TRUE
+ var/list/cooked_items = list()
+ var/obj/temp = new /obj(src) //To prevent infinite loops, all results will be moved into a temporary location so they're not considered as inputs for other recipes
+ while(valid)
+ var/list/things = list()
+ things.Add(recipe.make_food(src))
+ cooked_items += things
+ //Move cooked things to the buffer so they're not considered as ingredients
+ for (var/atom/movable/AM in things)
+ AM.forceMove(temp)
- for (var/r in cooked_items)
- var/atom/movable/R = r
- R.forceMove(src) //Move everything from the buffer back to the container
+ valid = FALSE
+ recipe = select_recipe(RECIPE_LIST(appliancetype),src)
+ if (recipe && recipe.result == result)
+ sleep(2)
+ valid = TRUE
- qdel(temp)//Delete buffer object
- temp = null
+ for (var/r in cooked_items)
+ var/atom/movable/R = r
+ R.forceMove(src) //Move everything from the buffer back to the container
- //Any leftover reagents are divided amongst the foods
- var/total = reagents.total_volume
- for (var/obj/item/weapon/reagent_containers/food/snacks/S in cooked_items)
- reagents.trans_to_holder(S.reagents, total/cooked_items.len)
+ QDEL_NULL(temp)//Delete buffer object
- for (var/obj/item/weapon/reagent_containers/food/snacks/S in contents)
- S.cook()
+ //Any leftover reagents are divided amongst the foods
+ var/total = reagents.total_volume
+ for (var/obj/item/weapon/reagent_containers/food/snacks/S in cooked_items)
+ reagents.trans_to_holder(S.reagents, total/cooked_items.len)
- dispose(0) //clear out anything left
+ for (var/obj/item/weapon/reagent_containers/food/snacks/S in contents)
+ S.cook()
+
+ eject(0) //clear out anything left
+
+ return
+
+/obj/machinery/microwave/process() // What you see here are the remains of proc/wzhzhzh, 2010 - 2019. RIP.
+ if (stat & (NOPOWER|BROKEN))
stop()
-
return
-/obj/machinery/microwave/proc/wzhzhzh(var/seconds as num) // Whoever named this proc is fucking literally Satan. ~ Z
- for (var/i=1 to seconds)
- if (stat & (NOPOWER|BROKEN))
- return 0
- use_power(active_power_usage)
- sleep(10)
- return 1
+ use_power(active_power_usage)
+
+ if(world.time > end_time)
+ stop()
+
+/obj/machinery/microwave/proc/half_time_process()
+ if (stat & (NOPOWER|BROKEN))
+ return
+
+ playsound(src, 'sound/machines/click.ogg', 20, 1)
+
+ if(failed)
+ visible_message(span("warning", "\The [src] begins to leak an acrid smoke..."))
/obj/machinery/microwave/proc/has_extra_item()
for (var/obj/O in contents)
@@ -358,64 +375,57 @@
!istype(O,/obj/item/weapon/reagent_containers/food) && \
!istype(O, /obj/item/weapon/grown) \
)
- return 1
- return 0
+ return TRUE
+ return FALSE
/obj/machinery/microwave/proc/start()
- src.visible_message("The microwave turns on.", "You hear a microwave.")
- src.operating = 1
- src.icon_state = "mw1"
- src.updateUsrDialog()
+ start_time = world.time
+ end_time = cook_time + start_time
+ operating = TRUE
+
+ START_PROCESSING(SSprocessing, src)
+ addtimer(CALLBACK(src, .proc/half_time_process), cook_time / 2)
+ visible_message("The microwave turns on.", "You hear a microwave.")
+
+ if(cook_dirty)
+ playsound(loc, 'sound/effects/splat.ogg', 50, 1) // Play a splat sound
+ icon_state = "mwbloody1" // Make it look dirty!!
+ else
+ icon_state = "mw1"
+
set_light(1.5)
soundloop.start()
-
-/obj/machinery/microwave/proc/abort()
- after_finish_loop()
- src.operating = 0 // Turn it off again aferwards
- src.icon_state = "mw"
- src.updateUsrDialog()
+ SSvueui.check_uis_for_change(src)
/obj/machinery/microwave/proc/stop()
+ STOP_PROCESSING(SSprocessing, src)
after_finish_loop()
- src.operating = 0 // Turn it off again aferwards
- src.icon_state = "mw"
- src.updateUsrDialog()
-/obj/machinery/microwave/proc/dispose(var/message = 1)
- for (var/atom/movable/A in contents)
- A.forceMove(loc)
- if (src.reagents.total_volume)
- src.dirty++
- src.reagents.clear_reagents()
- if (message)
- to_chat(usr, "You dispose of the microwave contents.")
- src.updateUsrDialog()
+ operating = FALSE // Turn it off again aferwards
+ if(cook_dirty || cook_break)
+ flags = null //So you can't add condiments
+ if(cook_dirty)
+ visible_message(span("warning", "The insides of the microwave get covered in muck!"))
+ dirty = 100 // Make it dirty so it can't be used util cleaned
+ icon_state = "mwbloody" // Make it look dirty too
+ else if(cook_break)
+ spark(src, 2, alldirs)
+ icon_state = "mwb" // Make it look all busted up and shit
+ visible_message(span("warning", "The microwave sprays out a shower of sparks - it's broken!")) //Let them know they're stupid
+ broken = 2 // Make it broken so it can't be used util
+ else
+ icon_state = "mw"
-/obj/machinery/microwave/proc/muck_start()
- playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) // Play a splat sound
- src.icon_state = "mwbloody1" // Make it look dirty!!
+ if(failed)
+ fail()
+ failed = FALSE
+ else if(!failed && !abort)
+ finish_cooking()
-/obj/machinery/microwave/proc/muck_finish()
- after_finish_loop()
- src.visible_message("The microwave gets covered in muck!")
- src.dirty = 100 // Make it dirty so it can't be used util cleaned
- src.flags = null //So you can't add condiments
- src.icon_state = "mwbloody" // Make it look dirty too
- src.operating = 0 // Turn it off again aferwards
- src.updateUsrDialog()
-
-/obj/machinery/microwave/proc/broke()
- after_finish_loop()
- spark(src, 2, alldirs)
- src.icon_state = "mwb" // Make it look all busted up and shit
- src.visible_message("The microwave breaks!") //Let them know they're stupid
- src.broken = 2 // Make it broken so it can't be used util fixed
- src.flags = null //So you can't add condiments
- src.operating = 0 // Turn it off again aferwards
- src.updateUsrDialog()
+ abort = FALSE
+ SSvueui.check_uis_for_change(src)
/obj/machinery/microwave/proc/fail()
- after_finish_loop()
var/obj/item/weapon/reagent_containers/food/snacks/badrecipe/ffuu = new(src)
var/amount = 0
for (var/obj/O in contents-ffuu)
@@ -425,45 +435,90 @@
if (id)
amount+=O.reagents.get_reagent_amount(id)
qdel(O)
- src.reagents.clear_reagents()
+ reagents.clear_reagents()
+ SSvueui.check_uis_for_change(src)
ffuu.reagents.add_reagent("carbon", amount)
ffuu.reagents.add_reagent("toxin", amount/10)
+
+ if(!abort)
+ visible_message("\The [src] belches out foul-smelling smoke!")
+ var/datum/effect/effect/system/smoke_spread/bad/smoke = new /datum/effect/effect/system/smoke_spread/bad
+ smoke.attach(src)
+ smoke.set_up(10, 0, get_turf(src), 300)
+ smoke.start()
+
+ ffuu.forceMove(loc)
return ffuu
/obj/machinery/microwave/Topic(href, href_list)
+ SSvueui.check_uis_for_change(src)
if(..())
return
- usr.set_machine(src)
- if(src.operating)
- src.updateUsrDialog()
+ if(dirty >= 100)
+ to_chat(usr, "\The [name] is dirty! You'll need to clean it before using it.")
return
- switch(href_list["action"])
- if ("cook")
- cook()
+ if(broken > 0)
+ to_chat(usr, "\The [name] is broken! You'll need to fix it before using it.")
+ return
+
+ usr.set_machine(src)
+
+ if(operating)
+ if(href_list["abort"])
+ abort = TRUE
+ stop()
+ SSvueui.check_uis_for_change(src)
+ return
+
+ if(href_list["cook"])
+ cook()
+ SSvueui.check_uis_for_change(src)
+ else if(href_list["eject_all"])
+ eject()
+ else if(href_list["eject"])
+ for (var/datum/reagent/R in reagents.reagent_list)
+ if(R.name == href_list["eject"])
+ eject_reagent(R, usr)
+ break
+ for (var/obj/O in contents)
+ if(O.name == href_list["eject"])
+ eject(0, O)
+ break
- if ("dispose")
- dispose()
return
-/obj/machinery/microwave/verb/Eject()
- set src in oview(1)
- set category = "Object"
- set name = "Eject content"
- usr.visible_message(
- "[usr] is trying to open [src] to take out its content." ,
- "You are trying to open [src] to take out its content"
- )
+/obj/machinery/microwave/proc/eject_reagent(datum/reagent/R, mob/user)
+ if(istype(user.l_hand, /obj/item/weapon/reagent_containers) || istype(user.r_hand, /obj/item/weapon/reagent_containers))
+ var/obj/item/weapon/reagent_containers/RC = user.l_hand || user.r_hand
+ var/free_space = RC.reagents.get_free_space()
+ if(free_space > R.volume)
+ to_chat(user, "You empty [R.volume] units of [R.name] into your [RC.name].")
+ RC.reagents.add_reagent(R.id, R.volume)
+ reagents.remove_reagent(R.id, R.volume)
+ else if(free_space <= 0)
+ to_chat(user, "[RC.name] is full!")
+ else
+ to_chat(user, "You empty [free_space] units of [R.name] into your [RC.name].")
+ RC.reagents.add_reagent(R.id, free_space)
+ reagents.remove_reagent(R.id, free_space)
+ SSvueui.check_uis_for_change(src)
+ else
+ to_chat(user, "You need to be holding a valid container to empty [R.name]!")
- if (!do_after(usr, 1 SECONDS, act_target = src))
- return
-
- usr.visible_message(
- "[usr] opened [src] and has taken out [english_list(contents)]." ,
- "You have opened [src] and taken out [english_list(contents)]."
- )
- dispose()
+/obj/machinery/microwave/proc/eject(var/message = 1, var/obj/EJ = null)
+ if (EJ)
+ EJ.forceMove(loc)
+ else
+ for (var/atom/movable/A in contents)
+ A.forceMove(loc)
+ if (reagents.total_volume)
+ dirty += round(reagents.total_volume / 10)
+ reagents.clear_reagents()
+ if (message)
+ to_chat(usr, "You dispose of the microwave contents.")
+ SSvueui.check_uis_for_change(src)
/obj/machinery/microwave/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
if (!mover)
@@ -476,4 +531,23 @@
/obj/machinery/microwave/proc/after_finish_loop()
set_light(0)
soundloop.stop()
- update_icon()
\ No newline at end of file
+ update_icon()
+
+/obj/machinery/microwave/RefreshParts()
+ ..()
+ var/bin_rating = 0 // 2
+ var/cap_rating = 0 // 3
+ var/las_rating = 0 // 1
+
+ for (var/obj/item/weapon/stock_parts/P in component_parts)
+ if(ismatterbin(P))
+ bin_rating += (P.rating - 1)
+ else if(iscapacitor(P))
+ cap_rating += (P.rating - 1)
+ else if(ismicrolaser(P))
+ las_rating += (P.rating - 1)
+
+ active_power_usage = initial(active_power_usage) - (cap_rating * 25)
+ max_n_of_items = initial(max_n_of_items) + Floor(bin_rating)
+ cooking_power = initial(cooking_power) + (las_rating / 3)
+
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 0411352c549..709dccbe46d 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -175,7 +175,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
if(FC.is_admin_channel)
dat+="[FC.channel_name] "
else
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+=" Refresh"
dat+=" Back"
if(2)
@@ -279,7 +279,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
else
for(var/channel in SSnews.network_channels)
var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel)
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+=" Cancel"
if(11)
dat+="[current_map.company_name] D-Notice Handler"
@@ -291,7 +291,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
else
for(var/channel in SSnews.network_channels)
var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel)
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+=" Back"
if(12)
diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm
index b3eb06e2273..96d4db6c861 100644
--- a/code/game/machinery/transformer.dm
+++ b/code/game/machinery/transformer.dm
@@ -20,7 +20,6 @@
/obj/machinery/transformer/proc/MakeConveyor()
if (!loc)
- PROCLOG_WEIRD("Trying to spawn conveyor in null space.")
return
new /obj/machinery/conveyor(loc, WEST, 1)
var/turf/T = get_turf(src)
diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm
index ca039570e25..8f9e658744b 100644
--- a/code/game/mecha/equipment/tools/tools.dm
+++ b/code/game/mecha/equipment/tools/tools.dm
@@ -815,7 +815,7 @@
/obj/item/mecha_parts/mecha_equipment/generator
name = "phoron generator"
- desc = "Generates power using solid phoron as fuel. Pollutes the environment."
+ desc = "Generates power using solid phoron as fuel."
icon_state = "tesla"
origin_tech = list(TECH_PHORON = 2, TECH_POWER = 2, TECH_ENGINEERING = 1)
equip_cooldown = 10
@@ -892,29 +892,13 @@
/obj/item/mecha_parts/mecha_equipment/generator/attackby(weapon,mob/user)
var/result = load_fuel(weapon)
if(isnull(result))
- user.visible_message("[user] tries to shove [weapon] into [src]. What a dumb-ass.","[fuel] traces minimal. [weapon] cannot be used as fuel.")
+ user.visible_message("[user] tries to shove [weapon] into [src].","[fuel] traces minimal. [weapon] cannot be used as fuel.")
else if(!result)
to_chat(user, "Unit is full.")
else
user.visible_message("[user] loads [src] with [fuel].","[result] unit\s of [fuel] successfully loaded.")
return
-/obj/item/mecha_parts/mecha_equipment/generator/critfail()
- ..()
- var/turf/simulated/T = get_turf(src)
- if(!T)
- return
- var/datum/gas_mixture/GM = new
- if(prob(10))
- T.assume_gas("phoron", 100, 1500+T0C)
- T.visible_message("The [src] suddenly disgorges a cloud of heated phoron.")
- destroy()
- else
- T.assume_gas("phoron", 5, istype(T) ? T.air.temperature : T20C)
- T.visible_message("The [src] suddenly disgorges a cloud of phoron.")
- T.assume_air(GM)
- return
-
/obj/item/mecha_parts/mecha_equipment/generator/process()
// Process every 10 ds.
if ((last_tick + 10) > world.time)
@@ -957,9 +941,6 @@
fuel_type = /obj/item/stack/material/uranium
var/rad_per_cycle = 0.3
-/obj/item/mecha_parts/mecha_equipment/generator/nuclear/critfail()
- return
-
/obj/item/mecha_parts/mecha_equipment/generator/nuclear/process()
. = ..()
if(. != PROCESS_KILL)
diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm
index 043b4e1edc1..0b6994bd66b 100644
--- a/code/game/mecha/equipment/weapons/weapons.dm
+++ b/code/game/mecha/equipment/weapons/weapons.dm
@@ -64,7 +64,7 @@
def_zone = H.zone_sel.selecting
H.setMoveCooldown(fire_time)
P.launch_projectile(target, def_zone, user, params)
- playsound(chassis, fire_sound, fire_volume, 1, 5, 0.9, 1)
+ playsound(chassis, fire_sound, fire_volume, 1, 3, 0.5, 1)
/obj/item/mecha_parts/mecha_equipment/weapon/proc/reset_fire()
set_ready_state(1)
diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm
index fb00cbe1b93..9b4ba2f7e74 100644
--- a/code/game/mecha/mech_fabricator.dm
+++ b/code/game/mecha/mech_fabricator.dm
@@ -1,8 +1,8 @@
/obj/machinery/mecha_part_fabricator
icon = 'icons/obj/robotics.dmi'
icon_state = "fab-idle"
- name = "Exosuit Fabricator"
- desc = "A machine used for construction of robotcs and mechas."
+ name = "Mechatronic Fabricator"
+ desc = "A general purpose fabricator that can be used to fabricate robotic equipment."
density = 1
anchored = 1
use_power = 1
diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm
index f16ecb6c535..f3ca7ab58af 100644
--- a/code/game/objects/effects/decals/contraband.dm
+++ b/code/game/objects/effects/decals/contraband.dm
@@ -12,6 +12,7 @@
name = "rolled-up poster"
desc = "The poster comes with its own automatic adhesive mechanism, for easy pinning to any vertical surface."
icon_state = "rolled_poster"
+ drop_sound = 'sound/items/drop/wrapper.ogg'
var/serial_number = 0
@@ -60,7 +61,7 @@
var/obj/structure/sign/poster/P = new(user.loc, get_dir(user, W), serial_number)
flick("poster_being_set", P)
- //playsound(W, 'sound/items/poster_being_created.ogg', 100, 1) //why the hell does placing a poster make printer sounds?
+ playsound(W, 'sound/items/package_wrap.ogg', 100, 1)
addtimer(CALLBACK(src, .proc/place_on_wall, P, user, W), 28, TIMER_CLIENT_TIME)
@@ -84,7 +85,7 @@
anchored = 1
var/serial_number //Will hold the value of src.loc if nobody initialises it
var/poster_type //So mappers can specify a desired poster
- var/ruined = 0
+ var/ruined = FALSE
/obj/structure/sign/poster/Initialize(mapload, placement_dir = null, serial = null)
. = ..()
@@ -136,18 +137,17 @@
/obj/structure/sign/poster/attack_hand(mob/user as mob)
-
if(ruined)
return
-
+ if(user.a_intent == I_HELP)
+ user.examinate(src)
+ return
if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
-
if(ruined || !user.Adjacent(src))
return
-
visible_message("\The [user] rips \the [src] in a single, decisive motion!" )
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
- ruined = 1
+ ruined = TRUE
icon_state = "poster_ripped"
name = "ripped poster"
desc = "You can't make out anything from the poster's original print. It's ruined."
diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm
index 8b74ad0e16f..5cfb6cc73c1 100644
--- a/code/game/objects/items/devices/PDA/PDA.dm
+++ b/code/game/objects/items/devices/PDA/PDA.dm
@@ -978,7 +978,6 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/proc/remove_pen(mob/user)
if (!istype(user))
- PROCLOG_WEIRD("user variable was insane, aborting!")
return
if (!has_pen)
to_chat(user, "[src] does not have a pen slot.")
diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm
index 9f57890c05e..3777b06cd8c 100644
--- a/code/game/objects/items/devices/scanners.dm
+++ b/code/game/objects/items/devices/scanners.dm
@@ -213,7 +213,7 @@ BREATH ANALYZER
user.show_message(text("Internal bleeding detected. Advanced scanner required for location."), 1)
if(M:vessel)
var/blood_volume = round(M:vessel.get_reagent_amount("blood"))
- var/blood_percent = blood_volume / 560
+ var/blood_percent = blood_volume / 560
var/blood_type = M.dna.b_type
blood_percent *= 100
if(blood_volume <= 500 && blood_volume > 336)
diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm
index cc1e8a91055..3600a5e0444 100644
--- a/code/game/objects/items/devices/whistle.dm
+++ b/code/game/objects/items/devices/whistle.dm
@@ -26,8 +26,8 @@
use_message = capitalize(copytext(sanitize(new_message), 1, MAX_MESSAGE_LEN))
to_chat(usr, "You configure the hailer to shout \"[use_message]\".")
-/
-obj/item/device/hailer/attack_self(mob/living/carbon/user as mob)
+
+/obj/item/device/hailer/attack_self(mob/living/carbon/user as mob)
if (spamcheck)
return
diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm
index 6779bf19b5e..20e8b7dbc4e 100644
--- a/code/game/objects/items/stacks/stack.dm
+++ b/code/game/objects/items/stacks/stack.dm
@@ -89,7 +89,7 @@
if (istype(E, /datum/stack_recipe))
var/datum/stack_recipe/R = E
var/max_multiplier = round(src.get_amount() / R.req_amount)
- var/title as text
+ var/title
var/can_build = 1
can_build = can_build && (max_multiplier>0)
if (R.res_amount>1)
diff --git a/code/game/objects/items/trash.dm b/code/game/objects/items/trash.dm
index d9eab69e270..35c4635fde9 100644
--- a/code/game/objects/items/trash.dm
+++ b/code/game/objects/items/trash.dm
@@ -55,6 +55,9 @@
name = "plate"
icon_state = "plate"
+/obj/item/trash/plate/steak
+ icon_state = "steak"
+
/obj/item/trash/snack_bowl
name = "snack bowl"
icon_state = "snack_bowl"
@@ -76,6 +79,7 @@
name = "candle"
icon = 'icons/obj/candle.dmi'
icon_state = "candle4"
+ drop_sound = 'sound/items/drop/gloves.ogg'
/obj/item/trash/liquidfood
name = "\improper \"LiquidFood\" ration"
diff --git a/code/game/objects/items/weapons/candle.dm b/code/game/objects/items/weapons/candle.dm
index a9a3f4131d0..841fbcfb85a 100644
--- a/code/game/objects/items/weapons/candle.dm
+++ b/code/game/objects/items/weapons/candle.dm
@@ -4,13 +4,14 @@
icon = 'icons/obj/candle.dmi'
icon_state = "candle1"
item_state = "candle1"
+ drop_sound = 'sound/items/drop/gloves.ogg'
w_class = 1
light_color = "#E09D37"
var/wax = 2000
-/obj/item/weapon/flame/candle/New()
+/obj/item/weapon/flame/candle/Initialize()
+ . = ..()
wax = rand(800, 1000) // Enough for 27-33 minutes. 30 minutes on average.
- ..()
/obj/item/weapon/flame/candle/update_icon()
var/i
@@ -27,33 +28,37 @@
if(W.iswelder())
var/obj/item/weapon/weldingtool/WT = W
if(WT.isOn()) //Badasses dont get blinded by lighting their candle with a welding tool
- light("\The [user] casually lights the [name] with [W].")
+ light()
+ to_chat(user, span("notice", "\The [user] casually lights \the [name] with [W]."))
else if(isflamesource(W))
light()
+ to_chat(user, span("notice", "\The [user] lights \the [name]."))
else if(istype(W, /obj/item/weapon/flame/candle))
var/obj/item/weapon/flame/candle/C = W
if(C.lit)
light()
+ to_chat(user, span("notice", "\The [user] lights \the [name]."))
-
-/obj/item/weapon/flame/candle/proc/light(var/flavor_text = "\The [usr] lights the [name].")
+/obj/item/weapon/flame/candle/proc/light()
if(!src.lit)
src.lit = 1
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_light.ogg', 50, 1)
//src.damtype = "fire"
- for(var/mob/O in viewers(usr, null))
- O.show_message(flavor_text, 1)
set_light(CANDLE_LUM)
+ update_icon()
START_PROCESSING(SSprocessing, src)
-/obj/item/weapon/flame/candle/process()
+/obj/item/weapon/flame/candle/process(mob/user)
if(!lit)
return
+ update_icon()
wax--
if(!wax)
- new/obj/item/trash/candle(src.loc)
+ new /obj/item/trash/candle(src.loc)
if(istype(src.loc, /mob))
src.dropped()
-
+ to_chat(user, span("notice", "The candle burns out."))
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
STOP_PROCESSING(SSprocessing, src)
qdel(src)
update_icon()
@@ -64,5 +69,7 @@
/obj/item/weapon/flame/candle/attack_self(mob/user as mob)
if(lit)
lit = 0
+ to_chat(user, span("notice", "You snuff out the flame."))
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
update_icon()
- set_light(0)
+ set_light(0)
\ No newline at end of file
diff --git a/code/game/objects/items/weapons/circuitboards/machinery/miscboards.dm b/code/game/objects/items/weapons/circuitboards/machinery/miscboards.dm
index 9054cb4c835..ad05899abb3 100644
--- a/code/game/objects/items/weapons/circuitboards/machinery/miscboards.dm
+++ b/code/game/objects/items/weapons/circuitboards/machinery/miscboards.dm
@@ -117,7 +117,7 @@
board_type = "machine"
req_components = list(
"/obj/item/weapon/stock_parts/capacitor" = 3,
- "/obj/item/weapon/stock_parts/scanning_module" = 1,
+ "/obj/item/weapon/stock_parts/micro_laser" = 1,
"/obj/item/weapon/stock_parts/matter_bin" = 2)
/obj/item/weapon/circuitboard/oven
diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm
index 6b681f01289..459be3d8085 100644
--- a/code/game/objects/items/weapons/grenades/flashbang.dm
+++ b/code/game/objects/items/weapons/grenades/flashbang.dm
@@ -32,7 +32,7 @@
S.icon_state = "shield0"
to_chat(M, "BANG")
- playsound(src.loc, 'sound/weapons/flashbang.ogg', 50, 1, 5, 0.9, 1)
+ playsound(src.loc, 'sound/weapons/flashbang.ogg', 50, 1, 3, 0.5, 1)
//Checking for protections
var/eye_safety = 0
diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm
index 330fe116ebd..39128e1ce8c 100644
--- a/code/game/objects/items/weapons/storage/fancy.dm
+++ b/code/game/objects/items/weapons/storage/fancy.dm
@@ -13,12 +13,15 @@
* Cigarette Box
*/
-/obj/item/weapon/storage/fancy/
+/obj/item/weapon/storage/fancy
+ name = "donut box"
+ desc = "A box of half-a-dozen donuts."
icon = 'icons/obj/food.dmi'
icon_state = "donutbox6"
- name = "donut box"
var/icon_type = "donut"
var/storage_type = "box"
+ drop_sound = 'sound/items/drop/box.ogg'
+ use_sound = 'sound/items/storage/box.ogg'
/obj/item/weapon/storage/fancy/update_icon(var/itemremoved = 0)
var/total_contents = src.contents.len - itemremoved
@@ -43,11 +46,12 @@
*/
/obj/item/weapon/storage/fancy/egg_box
+ name = "egg box"
+ desc = "A carton of eggs."
icon = 'icons/obj/food.dmi'
icon_state = "eggbox"
- center_of_mass = list("x" = 16,"y" = 7)
icon_type = "egg"
- name = "egg box"
+ center_of_mass = list("x" = 16,"y" = 7)
storage_slots = 12
can_hold = list(
/obj/item/weapon/reagent_containers/food/snacks/egg,
@@ -79,8 +83,9 @@
desc = "A box of crayons for all your rune drawing needs."
icon = 'icons/obj/crayons.dmi'
icon_state = "crayonbox"
- w_class = 2.0
icon_type = "crayon"
+ drop_sound = 'sound/items/drop/box.ogg'
+ w_class = 2.0
can_hold = list(
/obj/item/weapon/pen/crayon
)
@@ -123,6 +128,8 @@
icon = 'icons/obj/cigs_lighters.dmi'
icon_state = "cigpacket"
item_state = "cigpacket"
+ drop_sound = 'sound/items/drop/gloves.ogg'
+ use_sound = 'sound/items/drop/paper.ogg'
w_class = 1
throwforce = 2
slot_flags = SLOT_BELT
@@ -204,6 +211,8 @@
icon_state = "cigarcase"
item_state = "cigarcase"
icon = 'icons/obj/cigs_lighters.dmi'
+ drop_sound = 'sound/items/drop/gloves.ogg'
+ use_sound = 'sound/items/drop/paper.ogg'
w_class = 1
throwforce = 2
slot_flags = SLOT_BELT
@@ -251,10 +260,11 @@
*/
/obj/item/weapon/storage/fancy/vials
+ name = "vial storage box"
icon = 'icons/obj/vialbox.dmi'
icon_state = "vialbox6"
icon_type = "vial"
- name = "vial storage box"
+ drop_sound = 'sound/items/drop/metalboots.ogg'
storage_slots = 6
can_hold = list(/obj/item/weapon/reagent_containers/glass/beaker/vial)
starts_with = list(/obj/item/weapon/reagent_containers/glass/beaker/vial = 6)
@@ -265,6 +275,7 @@
icon = 'icons/obj/vialbox.dmi'
icon_state = "vialbox0"
item_state = "syringe_kit"
+ drop_sound = 'sound/items/drop/metalboots.ogg'
max_w_class = 2
can_hold = list(/obj/item/weapon/reagent_containers/glass/beaker/vial)
max_storage_space = 12 //The sum of the w_classes of all the items in this storage item.
diff --git a/code/game/objects/random/random.dm b/code/game/objects/random/random.dm
index c74f40c7d3c..c896e793788 100644
--- a/code/game/objects/random/random.dm
+++ b/code/game/objects/random/random.dm
@@ -691,7 +691,7 @@
/obj/item/clothing/head/kitty = 0.2,
/obj/item/clothing/head/pirate = 0.2,
/obj/item/clothing/head/plaguedoctorhat = 0.3,
- /obj/item/clothing/head/pumpkinhead = 0.4,
+ /obj/item/clothing/head/pumpkin/lantern = 0.4,
/obj/item/clothing/head/redcoat = 0.2,
/obj/item/clothing/head/richard = 0.3,
/obj/item/clothing/head/soft/rainbow = 0.7,
@@ -715,6 +715,7 @@
/obj/item/clothing/mask/pig = 0.3,
/obj/item/clothing/mask/smokable/cigarette/cigar/cohiba = 0.7,
/obj/item/clothing/mask/smokable/pipe/cobpipe = 0.5,
+ /obj/item/clothing/shoes/carp = 0.5,
/obj/item/clothing/shoes/clown_shoes = 0.1,
/obj/item/clothing/shoes/combat = 0.2,
/obj/item/clothing/shoes/cyborg = 0.4,
@@ -1081,6 +1082,7 @@
/obj/item/clothing/mask/fakemoustache = 11,
/obj/item/clothing/mask/gas/clown_hat = 11,
/obj/item/clothing/mask/gas/mime = 11,
+ /obj/item/clothing/shoes/carp = 9,
/obj/item/weapon/gun/energy/wand/toy = 5,
/obj/item/device/binoculars = 11,
/obj/item/device/megaphone = 11,
diff --git a/code/game/turfs/simulated/wall_attacks.dm b/code/game/turfs/simulated/wall_attacks.dm
index c91f17133b9..e026c83d77f 100644
--- a/code/game/turfs/simulated/wall_attacks.dm
+++ b/code/game/turfs/simulated/wall_attacks.dm
@@ -105,7 +105,7 @@
/turf/simulated/wall/attackby(obj/item/weapon/W as obj, mob/user as mob)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
- if (!user.)
+ if (!user)
to_chat(user, "You don't have the dexterity to do this!")
return
diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm
index bd9fae3270a..3d9a18ef579 100644
--- a/code/game/turfs/turf.dm
+++ b/code/game/turfs/turf.dm
@@ -409,7 +409,7 @@ var/const/enterloopsanity = 100
L.Add(t)
return L
-
+// CRAWLING + MOVING STUFF
/turf/MouseDrop_T(atom/movable/O as mob|obj, mob/user as mob)
var/turf/T = get_turf(user)
var/area/A = T.loc
@@ -417,7 +417,7 @@ var/const/enterloopsanity = 100
return
if(istype(O, /obj/screen))
return
- if(user.restrained() || user.stat || user.stunned || user.paralysis || !user.lying)
+ if(user.restrained() || user.stat || user.incapacitated(INCAPACITATION_KNOCKOUT) || !user.lying)
return
if((!(istype(O, /atom/movable)) || O.anchored || !Adjacent(user) || !Adjacent(O) || !user.Adjacent(O)))
return
@@ -425,15 +425,40 @@ var/const/enterloopsanity = 100
return
if(isanimal(user) && O != user)
return
+
+ var/tally = 0
+
if(ishuman(user))
var/mob/living/carbon/human/H = user
- var/has_right_hand = TRUE
+
var/obj/item/organ/external/rhand = H.organs_by_name["r_hand"]
- if(!rhand || rhand.is_stump())
- has_right_hand = FALSE
+ tally += limbCheck(rhand)
+
var/obj/item/organ/external/lhand = H.organs_by_name["l_hand"]
- if(!lhand || lhand.is_stump())
- if(!has_right_hand)
- return
- if (do_after(user, 25 + (5 * user.weakened)) && !(user.stat))
+ tally += limbCheck(lhand)
+
+ var/obj/item/organ/external/rfoot = H.organs_by_name["r_foot"]
+ tally += limbCheck(rfoot)
+
+ var/obj/item/organ/external/lfoot = H.organs_by_name["l_foot"]
+ tally += limbCheck(lfoot)
+
+ if(tally >= 120)
+ to_chat(user, span("notice", "You're too injured to do this!"))
+ return
+
+ var/finaltime = 25 + (5 * (user.weakened * 1.5))
+ if(tally >= 45) // If you have this much missing, you'll crawl slower.
+ finaltime += tally
+
+ if(do_after(user, finaltime) && !user.stat)
step_towards(O, src)
+
+// Checks status of limb, returns an amount to
+/turf/proc/limbCheck(var/obj/item/organ/external/limb)
+ if(!limb) // Limb is null, thus missing. Add 3 seconds.
+ return 30
+ else if(!limb.is_usable() || limb.is_broken()) // You can't use the limb, but it's still there to manoevre yourself
+ return 15
+ else
+ return 0
\ No newline at end of file
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 919b2f39cff..ceb29e69ca5 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -369,7 +369,7 @@ proc/admin_notice(var/message, var/rights)
if(FC.is_admin_channel)
dat+="[FC.channel_name] "
else
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+={" Refresh Back
"}
@@ -456,7 +456,7 @@ proc/admin_notice(var/message, var/rights)
else
for(var/channel in SSnews.network_channels)
var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel)
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+=" Cancel"
if(11)
dat+={"
@@ -470,7 +470,7 @@ proc/admin_notice(var/message, var/rights)
else
for(var/channel in SSnews.network_channels)
var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel)
- dat+="[FC.channel_name] [(FC.censored) ? ("***") : ()] "
+ dat+="[FC.channel_name] [(FC.censored) ? ("***") : null] "
dat+=" Back"
if(12)
@@ -1126,7 +1126,7 @@ proc/admin_notice(var/message, var/rights)
out += "Autotraitor disabled. "
out += "All antag ids:"
- if(LAZYLEN(SSticker.mode.antag_templates)).
+ if(LAZYLEN(SSticker.mode.antag_templates))
for(var/datum/antagonist/antag in SSticker.mode.antag_templates)
antag.update_current_antag_max()
out += " [antag.id]"
@@ -1374,8 +1374,8 @@ proc/admin_notice(var/message, var/rights)
return
if(!check_rights(R_SERVER,0))
message = sanitize(message, 500, extra = 0)
-
-
+
+
var/list/sounds = file2list("sound/serversound_list.txt");
sounds += "--CANCEL--"
sounds += "--LOCAL--"
@@ -1389,7 +1389,7 @@ proc/admin_notice(var/message, var/rights)
melody = input("Select a sound to play", "Sound select") as sound
if(!melody)
return
-
+
command_announcement.Announce(message, title, new_sound = melody)
log_and_message_admins("made custom announcement with custom sound", usr)
feedback_add_details("admin_verb","ACS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
diff --git a/code/modules/admin/admin_secrets.dm b/code/modules/admin/admin_secrets.dm
index 50e9d93c9e5..b26c4722159 100644
--- a/code/modules/admin/admin_secrets.dm
+++ b/code/modules/admin/admin_secrets.dm
@@ -27,11 +27,7 @@ var/datum/admin_secrets/admin_secrets = new()
/datum/admin_secret_category
var/name = ""
var/desc = ""
- var/list/datum/admin_secret_item/items
-
-/datum/admin_secret_category
- ..()
- items = list()
+ var/list/datum/admin_secret_item/items = list()
/datum/admin_secret_category/proc/can_view(var/mob/user)
for(var/datum/admin_secret_item/item in items)
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index 745c6422adc..8675455e2bd 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -403,7 +403,7 @@
if (!check_rights(R_MOD|R_ADMIN))
return
- var/ckey = ckey(input("Please specify the ckey you want to search for:", "ckey")) as text
+ var/ckey = ckey(input("Please specify the ckey you want to search for:", "ckey") as text)
if (!ckey)
to_chat(usr, "Cancelled.")
return
diff --git a/code/modules/background/citizenship/vaurca.dm b/code/modules/background/citizenship/vaurca.dm
index 8b6ebffffea..71671aad560 100644
--- a/code/modules/background/citizenship/vaurca.dm
+++ b/code/modules/background/citizenship/vaurca.dm
@@ -13,7 +13,7 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
rep_objectives = pick("Collect evidence of Nanotrasen being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
- "Begin the TCFL enlistment process for an individual, completing an Enlistment form to be turned in by the individual,"
+ "Begin the TCFL enlistment process for an individual, completing an Enlistment form to be turned in by the individual",
"Develop a metric to grade the performance of different Vaurca broods that share a job")
if(REPRESENTATIVE_MISSION_MEDIUM)
diff --git a/code/modules/cargo/bounties/special.dm b/code/modules/cargo/bounties/special.dm
index 49d7d727188..e9c4143e966 100644
--- a/code/modules/cargo/bounties/special.dm
+++ b/code/modules/cargo/bounties/special.dm
@@ -1,27 +1,4 @@
-/*
-/datum/bounty/item/alien_organs
- name = "Alien Organs"
- description = "Nanotrasen is interested in studying Xenomorph biology. Ship a set of organs to be thoroughly compensated."
- reward = 25000
- required_count = 3
- wanted_types = list(/obj/item/organ/brain/alien, /obj/item/organ/alien, /obj/item/organ/body_egg/alien_embryo)
-
-/datum/bounty/item/syndicate_documents
- name = "Syndicate Documents"
- description = "Intel regarding the syndicate is highly prized at CentCom. If you find syndicate documents, ship them. You could save lives."
- reward = 10000
- wanted_types = list(/obj/item/documents/syndicate, /obj/item/documents/photocopy)
-
-/datum/bounty/item/syndicate_documents/applies_to(obj/O)
- if(!..())
- return FALSE
- if(istype(O, /obj/item/documents/photocopy))
- var/obj/item/documents/photocopy/Copy = O
- return (Copy.copy_type && ispath(Copy.copy_type, /obj/item/documents/syndicate))
- return TRUE
-*/
-/datum/bounty/more_bounties/
- ..()
+/datum/bounty/more_bounties
name = "More Bounties"
description = "Complete enough bounties and %BOSSSHORT will issue new ones!"
reward = 3 // number of bounties
diff --git a/code/modules/cargo/randomstock.dm b/code/modules/cargo/randomstock.dm
index ff2f630be2a..23a399ede50 100644
--- a/code/modules/cargo/randomstock.dm
+++ b/code/modules/cargo/randomstock.dm
@@ -136,7 +136,7 @@ var/list/global/random_stock_large = list()
var/cratespawn = 0
var/obj/structure/closet/crate/emptiest
if (prob(70))//We'll usually put items in crates
- var/minweight = 99999999999//We will distribute items somewhat evenly among crates
+ var/minweight = 1000000000 //We will distribute items somewhat evenly among crates
//by selecting the least-filled one for each spawn
for (var/obj/structure/closet/crate/C in containers)
@@ -247,4 +247,4 @@ var/list/global/random_stock_large = list()
name = "Large Stock Marker"
desc = "This marks a place where a large object could spawn in cargo"
icon = 'icons/mob/screen/generic.dmi'
- icon_state = "x3"
\ No newline at end of file
+ icon_state = "x3"
diff --git a/code/modules/client/preference_setup/loadout/loadout_utility.dm b/code/modules/client/preference_setup/loadout/loadout_utility.dm
index 01acba65c99..419d05afae0 100644
--- a/code/modules/client/preference_setup/loadout/loadout_utility.dm
+++ b/code/modules/client/preference_setup/loadout/loadout_utility.dm
@@ -93,6 +93,6 @@
/datum/gear/utility/toolbelt_alt
display_name = "tool-belt, alt"
- cost = 2
+ cost = 0
path = /obj/item/weapon/storage/belt/utility/alt
allowed_roles = list("Station Engineer", "Atmospheric Technician", "Chief Engineer", "Engineering Apprentice", "Roboticist")
\ No newline at end of file
diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm
index 93b9bfa2fde..6fe7937b485 100644
--- a/code/modules/clothing/head/hardhat.dm
+++ b/code/modules/clothing/head/hardhat.dm
@@ -1,7 +1,7 @@
/obj/item/clothing/head/hardhat
name = "hard hat"
desc = "A piece of headgear used in dangerous working conditions to protect the head. Comes with a built-in flashlight."
- icon_state = "hardhat0_yellow"
+ icon_state = "hardhat_yellow"
action_button_name = "Toggle Headlamp"
brightness_on = 4 //luminosity when on
light_overlay = "hardhat_light"
@@ -12,23 +12,23 @@
drop_sound = 'sound/items/drop/helm.ogg'
/obj/item/clothing/head/hardhat/orange
- icon_state = "hardhat0_orange"
+ icon_state = "hardhat_orange"
/obj/item/clothing/head/hardhat/red
- icon_state = "hardhat0_red"
name = "firefighter helmet"
+ icon_state = "hardhat_red"
heat_protection = HEAD
max_heat_protection_temperature = FIRE_HELMET_MAX_HEAT_PROTECTION_TEMPERATURE
/obj/item/clothing/head/hardhat/white
- icon_state = "hardhat0_white"
desc = "A piece of headgear used in dangerous working conditions to protect the head. Comes with a built-in flashlight. This one looks heat-resistant."
+ icon_state = "hardhat_white"
heat_protection = HEAD
max_heat_protection_temperature = FIRE_HELMET_MAX_HEAT_PROTECTION_TEMPERATURE
/obj/item/clothing/head/hardhat/dblue
- icon_state = "hardhat0_dblue"
- item_state = "hardhat0_dblue"
+ icon_state = "hardhat_dblue"
+ item_state = "hardhat_dblue"
/obj/item/clothing/head/hardhat/red/atmos
name = "atmospheric firefighter helmet"
diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm
index b1439f53492..3c54afafdad 100644
--- a/code/modules/clothing/head/misc_special.dm
+++ b/code/modules/clothing/head/misc_special.dm
@@ -139,16 +139,99 @@
/*
* Pumpkin head
*/
-/obj/item/clothing/head/pumpkinhead
+
+/obj/item/clothing/head/pumpkin
name = "carved pumpkin"
- desc = "A jack o' lantern! Believed to ward off evil spirits."
- icon_state = "hardhat0_pumpkin"//Could stand to be renamed
+ desc = "A pumpkin with a spooky face carved on it. Looks like it needs a candle."
+ icon_state = "pumpkin_carved"
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|BLOCKHAIR
body_parts_covered = HEAD|FACE|EYES
- brightness_on = 2
- light_overlay = "helmet_light"
- w_class = 3
drop_sound = 'sound/items/drop/herb.ogg'
+ w_class = 3
+ throwforce = 1
+ throw_speed = 0.5
+
+/obj/item/clothing/head/pumpkin/attackby(var/obj/O, mob/user as mob)
+ if(istype(O, /obj/item/weapon/flame/candle))
+ var/obj/item/weapon/flame/candle/c = O
+ var/candle_wax = c.wax
+ if(c.lit)
+ to_chat(user, span("notice", "You should extinguish \the [O] first!"))
+ return
+ to_chat(user, "You add \the [O] to \the [src].")
+ playsound(src.loc, 'sound/items/drop/gloves.ogg', 50, 1)
+ qdel(O)
+ var/obj/item/clothing/head/pumpkin/lantern/L = new /obj/item/clothing/head/pumpkin/lantern(user.loc)
+ L.wax = candle_wax
+ user.put_in_hands(L)
+ qdel(src)
+ return
+
+/obj/item/clothing/head/pumpkin/lantern
+ name = "jack o' lantern"
+ desc = "A pumpkin with a spooky face carved on it, with a candle inside. Believed to ward off evil spirits."
+ light_color = "#E09D37"
+ var/wax = 900
+ var/lit = 0
+
+/obj/item/clothing/head/pumpkin/lantern/update_icon()
+ icon_state = "pumpkin_carved[lit ? "_lit" : ""]"
+ if(ismob(loc))
+ var/mob/living/M = loc
+ M.update_inv_head(0)
+ M.update_inv_l_hand(0)
+ M.update_inv_r_hand(1)
+
+/obj/item/clothing/head/pumpkin/lantern/attackby(obj/item/weapon/W as obj, mob/user as mob)
+ ..()
+ if(W.iswelder())
+ var/obj/item/weapon/weldingtool/WT = W
+ if(WT.isOn()) //Badasses dont get blinded by lighting their candle with a welding tool
+ light()
+ to_chat(user, span("notice", "\The [user] casually lights \the [name] with [W]."))
+ else if(isflamesource(W))
+ light()
+ to_chat(user, span("notice", "\The [user] lights \the [name]."))
+ else if(istype(W, /obj/item/weapon/flame/candle))
+ var/obj/item/weapon/flame/candle/C = W
+ if(C.lit)
+ light()
+ to_chat(user, span("notice", "\The [user] lights \the [name]."))
+
+/obj/item/clothing/head/pumpkin/lantern/proc/light()
+ if(!src.lit)
+ src.lit = 1
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_light.ogg', 50, 1)
+ //src.damtype = "fire"
+ set_light(CANDLE_LUM)
+ update_icon()
+ START_PROCESSING(SSprocessing, src)
+
+/obj/item/clothing/head/pumpkin/lantern/process(mob/user)
+ if(!lit)
+ return
+ wax--
+ if(!wax)
+ new /obj/item/clothing/head/pumpkin(src.loc)
+ new /obj/item/trash/candle(src.loc)
+ if(istype(src.loc, /mob))
+ src.dropped()
+ to_chat(user, span("notice", "The candle burns out."))
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
+ STOP_PROCESSING(SSprocessing, src)
+ qdel(src)
+ update_icon()
+ if(istype(loc, /turf)) //start a fire if possible
+ var/turf/T = loc
+ T.hotspot_expose(700, 5)
+
+/obj/item/clothing/head/pumpkin/lantern/attack_self(mob/user as mob)
+ if(lit)
+ lit = 0
+ to_chat(user, span("notice", "You snuff out the flame."))
+ playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1)
+ update_icon()
+ set_light(0)
/*
* Kitty ears
diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm
index 850042c8a2b..5ea4792ed0f 100644
--- a/code/modules/clothing/shoes/miscellaneous.dm
+++ b/code/modules/clothing/shoes/miscellaneous.dm
@@ -248,3 +248,14 @@
icon_state = "eelcaligae"
armor = list(melee = 40, bullet = 0, laser = 0, energy = 15, bomb = 20, bio = 0, rad = 20)
siemens_coefficient = 0.75
+
+/obj/item/clothing/shoes/carp
+ name = "carp slippers"
+ desc = "Slippers made to look like baby carp, but on your feet! Squeeeeeee!!"
+ item_state = "carpslippers"
+ icon_state = "carpslippers"
+ species_restricted = null
+ silent = TRUE
+
+ cold_protection = FEET
+ min_cold_protection_temperature = SHOE_MIN_COLD_PROTECTION_TEMPERATURE
\ No newline at end of file
diff --git a/code/modules/clothing/spacesuits/rig/rig_wiring.dm b/code/modules/clothing/spacesuits/rig/rig_wiring.dm
index d27c86500d5..9b47832cfba 100644
--- a/code/modules/clothing/spacesuits/rig/rig_wiring.dm
+++ b/code/modules/clothing/spacesuits/rig/rig_wiring.dm
@@ -32,7 +32,7 @@
rig.malfunction_delay = 0
else
rig.malfunctioning += 10
- rig.malfunction_delay = 99999999999999999999
+ rig.malfunction_delay = 10000000000
/datum/wires/rig/UpdatePulsed(var/index)
@@ -61,4 +61,4 @@
var/obj/item/weapon/rig/rig = holder
if(rig.open)
return 1
- return 0
\ No newline at end of file
+ return 0
diff --git a/code/modules/flufftext/TextFilters.dm b/code/modules/flufftext/TextFilters.dm
index 3767a49896c..3efde0cf272 100644
--- a/code/modules/flufftext/TextFilters.dm
+++ b/code/modules/flufftext/TextFilters.dm
@@ -85,9 +85,8 @@ proc/Ellipsis(original_msg, chance = 50)
if(chance <= 0) return "..."
if(chance >= 100) return original_msg
- var/list
- words = text2list(original_msg," ")
- new_words = list()
+ var/list/words = text2list(original_msg," ")
+ var/list/new_words = list()
var/new_msg = ""
diff --git a/code/modules/food/recipe.dm b/code/modules/food/recipe.dm
index b54606f278e..cdc6d46932e 100644
--- a/code/modules/food/recipe.dm
+++ b/code/modules/food/recipe.dm
@@ -182,7 +182,7 @@
//We will not touch things which are not required for this recipe. They will be left behind for the caller
//to decide what to do. They may be used again to make another recipe or discarded, or merged into the results,
//thats no longer the concern of this proc
- var/datum/reagents/buffer = new /datum/reagents(999999999999, null)//
+ var/datum/reagents/buffer = new /datum/reagents(1000000000000, null)//
//Find items we need
@@ -228,7 +228,7 @@
If, as in the most common case, there is only a single result, then it will just be a reference to
the single-result's reagents
*/
- var/datum/reagents/holder = new/datum/reagents(9999999999)
+ var/datum/reagents/holder = new/datum/reagents(10000000000)
var/list/results = list()
while (tally < result_quantity)
var/obj/result_obj = new result(container)
diff --git a/code/modules/ghostroles/spawner/base.dm b/code/modules/ghostroles/spawner/base.dm
index 55a7e7e5ef8..d8aaac49572 100644
--- a/code/modules/ghostroles/spawner/base.dm
+++ b/code/modules/ghostroles/spawner/base.dm
@@ -27,7 +27,7 @@
var/mob_name_pick_message = "Pick a name."
var/mob_name_prefix = null //The prefix that should be applied to the mob (i.e. CCIAA, Tpr., Cmdr.)
var/mob_name_suffix = null //The suffix that should be applied to the mob name
-
+
/datum/ghostspawner/New()
. = ..()
if(!jobban_job)
@@ -45,13 +45,13 @@
if(req_head_whitelist && !check_whitelist(user))
return "Missing Head of Staff Whitelist"
-
+
if(req_species_whitelist && !is_alien_whitelisted(user, req_species_whitelist))
return "Missing Species Whitelist"
if(jobban_job && jobban_isbanned(user,jobban_job))
return "Job Banned"
-
+
if(!enabled && !can_edit(user)) //If its not enabled and the user cant edit it, dont show it
return "Currently Disabled"
@@ -83,10 +83,10 @@
return FALSE
//Proc executed before someone is spawned in
-/datum/ghostspawner/proc/pre_spawn(mob/user)
+/datum/ghostspawner/proc/pre_spawn(mob/user)
count++ //Increment the spawned in mob count
if(max_count && count >= max_count)
- disable()
+ enabled = FALSE
return TRUE
//This proc selects the spawnpoint to use.
@@ -114,6 +114,8 @@
//Proc executed after someone is spawned in
/datum/ghostspawner/proc/post_spawn(mob/user)
+ if(max_count && count >= max_count)
+ disable()
if(welcome_message)
to_chat(user, span("notice", welcome_message))
return TRUE
diff --git a/code/modules/ghostroles/spawner/human/human.dm b/code/modules/ghostroles/spawner/human/human.dm
index 7f72e5ecb7f..c664d3a2f66 100644
--- a/code/modules/ghostroles/spawner/human/human.dm
+++ b/code/modules/ghostroles/spawner/human/human.dm
@@ -64,7 +64,7 @@
var/picked_species = input(user,"Select your species") as null|anything in species_selection
if(!picked_species)
- picked_species = "Human"
+ picked_species = possible_species[1]
//Get the name / age from them first
var/mname = get_mob_name(user, picked_species)
diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm
index 7bd5ba9e50b..ac54d12eb09 100644
--- a/code/modules/hydroponics/grown.dm
+++ b/code/modules/hydroponics/grown.dm
@@ -189,7 +189,7 @@
else if(W.sharp && !W.noslice)
if(seed.kitchen_tag == "pumpkin") // Ugggh these checks are awful.
user.show_message("You carve a face into [src]!", 1)
- new /obj/item/clothing/head/pumpkinhead (user.loc)
+ user.put_in_hands(new /obj/item/clothing/head/pumpkin)
qdel(src)
return
else if(seed.chems)
diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm
index 7325d8ffaaa..7da830f53d9 100644
--- a/code/modules/hydroponics/trays/tray.dm
+++ b/code/modules/hydroponics/trays/tray.dm
@@ -372,7 +372,7 @@
return
// Check if we should even bother working on the current seed datum.
- if(seed.mutants. && seed.mutants.len && severity > 1)
+ if(seed.mutants?.len && severity > 1)
mutate_species()
return
diff --git a/code/modules/lighting/lighting_source.dm b/code/modules/lighting/lighting_source.dm
index 70a83c6a0ea..3a20c3a3d84 100644
--- a/code/modules/lighting/lighting_source.dm
+++ b/code/modules/lighting/lighting_source.dm
@@ -459,7 +459,5 @@
UNSETEMPTY(effect_str)
UNSETEMPTY(affecting_turfs)
-#undef QUEUE_UPDATE
-#undef DO_UPDATE
#undef INTELLIGENT_UPDATE
#undef PSEUDO_WEDGE
diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm
index 7cbdcc19477..b16507fb3b6 100644
--- a/code/modules/mob/holder.dm
+++ b/code/modules/mob/holder.dm
@@ -430,6 +430,15 @@ var/list/holder_mob_icon_cache = list()
item_state = "penny"
contained_sprite = 1
+/obj/item/weapon/holder/carp/baby
+ name = "baby space carp"
+ desc = "Awfully cute! Looks friendly!"
+ icon_state = "babycarp"
+ item_state = "babycarp"
+ slot_flags = SLOT_HEAD
+ flags_inv = HIDEEARS|BLOCKHEADHAIR // carp wings blocks stuff - geeves
+ w_class = 1
+ contained_sprite = TRUE
/obj/item/weapon/holder/borer
name = "cortical borer"
diff --git a/code/modules/mob/living/carbon/diona_base.dm b/code/modules/mob/living/carbon/diona_base.dm
index 8173a9951c9..c580d1480c9 100644
--- a/code/modules/mob/living/carbon/diona_base.dm
+++ b/code/modules/mob/living/carbon/diona_base.dm
@@ -73,7 +73,7 @@ var/list/diona_banned_languages = list(
apply_radiation(-2)
DS.stored_energy += 2
-
+
apply_radiation(-0.5) //Radiation is gradually wasted if its not used for something
if(total_radiation < 0)
total_radiation = null
@@ -90,7 +90,7 @@ var/list/diona_banned_languages = list(
if (DS.nutrient_organ)
if (DS.nutrient_organ.is_broken())
return 0
-
+
if (consume_nutrition_from_air && (nutrition / max_nutrition > 0.25))
to_chat(src, span("notice", "You feel like you have replanished enough of nutrition to stay alive. Consuming more makes you feel gross."))
consume_nutrition_from_air = !consume_nutrition_from_air
@@ -324,13 +324,13 @@ var/list/diona_banned_languages = list(
return
DS.regen_limb_progress = 0
diona_regen_progress(DS)
-
+
visible_message("[src] begins to shift and quiver.",
"You begin to shift and quiver, feeling a stirring within your trunk")
DS.regening_organ = TRUE
to_chat(src, "You are trying to regrow a lost limb, this is a long and complicated process!")
-
+
var/list/special_case = list(
/obj/item/organ/external/arm/diona = /obj/item/organ/external/hand/diona,
/obj/item/organ/external/arm/right/diona = /obj/item/organ/external/hand/right/diona,
@@ -660,9 +660,6 @@ var/list/diona_banned_languages = list(
nutrient_organ = null
return ..()
-#undef FLASHLIGHT_STRENGTH
-#undef PDALIGHT_STRENGTH
-#undef DIONA_MAX_LIGHT
#undef TEMP_REGEN_STOP
#undef TEMP_REGEN_NORMAL
#undef TEMP_INCREASE_REGEN_DOUBLE
diff --git a/code/modules/mob/living/carbon/human/human_powers.dm b/code/modules/mob/living/carbon/human/human_powers.dm
index a2f5dbf7b2f..3af9587374d 100644
--- a/code/modules/mob/living/carbon/human/human_powers.dm
+++ b/code/modules/mob/living/carbon/human/human_powers.dm
@@ -1122,3 +1122,55 @@ mob/living/carbon/human/proc/change_monitor()
to_chat(src, span("notice", "You sense " + jointext(feedback, " ") + " towards the [dir2text(text2num(d))]."))
if(!length(dirs))
to_chat(src, span("notice", "You detect no psionic signatures but your own."))
+
+// flick tongue out to read gasses
+/mob/living/carbon/human/proc/tongue_flick()
+ set name = "Tongue-flick"
+ set desc = "Flick out your tongue to sense the gas in the room."
+ set category = "IC"
+
+ if(stat == DEAD)
+ return
+
+ if(last_special > world.time)
+ return
+
+ if(head && (head.body_parts_covered & FACE))
+ to_chat(src, span("notice", "You can't flick your tongue out with something covering your face."))
+ return
+ else
+ custom_emote(1, "flicks their tongue out.")
+
+ var/datum/gas_mixture/mixture = src.loc.return_air()
+ var/total_moles = mixture.total_moles
+
+ var/list/airInfo = list()
+ if(total_moles>0)
+ for(var/mix in mixture.gas)
+ var/composition = "Non-existant"
+ switch(round((mixture.gas[mix] / total_moles) * 100))
+ if(0)
+ composition = "Non-existent"
+ if(0 to 5)
+ composition = "Trace-amounts"
+ if(5 to 15)
+ composition = "Low-volume"
+ if(15 to 60)
+ composition = "Present"
+ if(60 to 80) //nitrogen is usually at 78%
+ composition = "High-volume"
+ if(80 to INFINITY)
+ composition = "Overwhelming"
+
+ airInfo += span("notice", "[gas_data.name[mix]]: [composition]")
+ airInfo += span("notice", "Temperature: [round(mixture.temperature-T0C)]°C")
+ else
+ airInfo += span("notice", "There is no air around to sample!")
+
+ last_special = world.time + 20
+
+ if(airInfo?.len)
+ to_chat(src, span("notice", "You sense the following in the air:"))
+ for(var/line in airInfo)
+ to_chat(src, span("notice", "[line]"))
+ return
diff --git a/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm b/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm
index 3ab9a543869..0d3de917197 100644
--- a/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm
+++ b/code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm
@@ -56,7 +56,8 @@
inherent_verbs = list(
/mob/living/proc/devour,
- /mob/living/carbon/human/proc/regurgitate
+ /mob/living/carbon/human/proc/regurgitate,
+ /mob/living/carbon/human/proc/tongue_flick
)
diff --git a/code/modules/mob/living/carbon/human/species/station/unathi/unathi_subspecies.dm b/code/modules/mob/living/carbon/human/species/station/unathi/unathi_subspecies.dm
index 44e09c368e3..3cf8ffca43a 100644
--- a/code/modules/mob/living/carbon/human/species/station/unathi/unathi_subspecies.dm
+++ b/code/modules/mob/living/carbon/human/species/station/unathi/unathi_subspecies.dm
@@ -56,7 +56,8 @@
/mob/living/carbon/human/proc/regurgitate,
/mob/living/carbon/human/proc/detach_limb,
/mob/living/carbon/human/proc/attach_limb,
- /mob/living/carbon/human/proc/self_diagnostics
+ /mob/living/carbon/human/proc/self_diagnostics,
+ /mob/living/carbon/human/proc/tongue_flick
)
has_organ = list(
diff --git a/code/modules/mob/living/carbon/taste.dm b/code/modules/mob/living/carbon/taste.dm
index 728e47c7e0d..b448cf0ab9c 100644
--- a/code/modules/mob/living/carbon/taste.dm
+++ b/code/modules/mob/living/carbon/taste.dm
@@ -41,7 +41,7 @@ calculate text size per text.
tastes[taste_desc] += taste_amount
else
tastes[taste_desc] = taste_amount
- if(!(R.default_temperature in (T0C + 15 to T0C + 25)))
+ if(R.default_temperature >= (T0C + 15) && R.default_temperature <= (T0C + 25))
lukewarm = 1
//deal with percentages
diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm
index 3567cde9770..d462dd61086 100644
--- a/code/modules/mob/living/living_defense.dm
+++ b/code/modules/mob/living/living_defense.dm
@@ -65,7 +65,7 @@
/mob/living/bullet_act(var/obj/item/projectile/P, var/def_zone)
//Being hit while using a cloaking device
- var/obj/item/weapon/cloaking_device/C = locate((/obj/item/weapon/cloaking_device) in src)
+ var/obj/item/weapon/cloaking_device/C = locate(/obj/item/weapon/cloaking_device) in src
if(C && C.active)
C.attack_self(src)//Should shut it off
update_icons()
@@ -401,4 +401,4 @@
client.screen += hud_used.hide_actions_toggle
#undef MOB_FIRE_LIGHT_RANGE //These control the intensity and range of light given off by a mob which is on fire
-#undef MOB_FIRE_LIGHT_POWER
\ No newline at end of file
+#undef MOB_FIRE_LIGHT_POWER
diff --git a/code/modules/mob/living/silicon/robot/gripper.dm b/code/modules/mob/living/silicon/robot/gripper.dm
index 42d30055616..090b17a298e 100644
--- a/code/modules/mob/living/silicon/robot/gripper.dm
+++ b/code/modules/mob/living/silicon/robot/gripper.dm
@@ -270,7 +270,8 @@
/obj/item/seeds,
/obj/item/weapon/grown,
/obj/item/trash,
- /obj/item/weapon/reagent_containers/cooking_container
+ /obj/item/weapon/reagent_containers/cooking_container,
+ /obj/item/weapon/material/kitchen
)
/obj/item/weapon/gripper/no_use //Used when you want to hold and put items in other things, but not able to 'use' the item
diff --git a/code/modules/mob/living/simple_animal/friendly/carp.dm b/code/modules/mob/living/simple_animal/friendly/carp.dm
new file mode 100644
index 00000000000..f65c8c35b7b
--- /dev/null
+++ b/code/modules/mob/living/simple_animal/friendly/carp.dm
@@ -0,0 +1,153 @@
+/mob/living/simple_animal/carp
+ name = "space carp"
+ desc = "A domesticated, floating space carp. Careful around the teeth."
+ icon = 'icons/mob/npc/animal.dmi'
+ icon_state = "carp"
+ item_state = "carp"
+ icon_living = "carp"
+ icon_dead = "carp_dead"
+ icon_gib = "carp_gib"
+ icon_rest = "carp_rest"
+ can_nap = TRUE
+ speak = list("Glub!")
+ speak_emote = list("glubs", "glibs")
+ emote_hear = list("glubs","glibs")
+ emote_see = list("floats steadily", "inflates its gills")
+ speak_chance = 1
+ turns_per_move = 5
+ see_in_dark = 6
+ meat_type = /obj/item/weapon/reagent_containers/food/snacks/carpmeat
+ response_help = "brushes"
+ response_disarm = "attempts to push"
+ response_harm = "injures"
+ gender = NEUTER
+
+ //Space carp aren't affected by atmos.
+ min_oxy = 0
+ max_oxy = 0
+ min_tox = 0
+ max_tox = 0
+ min_co2 = 0
+ max_co2 = 0
+ min_n2 = 0
+ max_n2 = 0
+ minbodytemp = 0
+
+ mob_size = 4
+ metabolic_factor = 0 // NEVER EAT HA HA HA - geeves
+
+ density = TRUE
+ pass_flags = PASSTABLE
+
+ possession_candidate = TRUE
+
+/mob/living/simple_animal/carp/fall_impact()
+ src.visible_message(span("notice","\The [src] gently floats to a stop."))
+ return FALSE
+
+//Basic friend AI
+/mob/living/simple_animal/carp/fluff
+ var/mob/living/carbon/human/friend
+ var/befriend_job = null
+
+/mob/living/simple_animal/carp/fluff/think()
+ ..()
+ if(!stat && !buckled && (turns_since_move > 5))
+ walk_to(src,0)
+ turns_since_move = 0
+ handle_movement_target()
+ if(!movement_target && (turns_since_move > 5))
+ walk_to(src,0)
+
+/mob/living/simple_animal/carp/fluff/proc/handle_movement_target()
+ if(!QDELETED(friend))
+ var/follow_dist = 5
+ if(friend.stat >= DEAD || friend.health <= config.health_threshold_softcrit) //danger
+ follow_dist = 1
+ else if(friend.stat || friend.health <= 50) //danger or just sleeping
+ follow_dist = 2
+ var/near_dist = max(follow_dist - 2, 1)
+ var/current_dist = get_dist(src, friend)
+
+ if(movement_target != friend)
+ if(current_dist > follow_dist && friend in oview(src))
+ //stop existing movement
+ walk_to(src,0)
+ turns_since_scan = 0
+
+ //walk to friend
+ stop_automated_movement = 1
+ movement_target = friend
+ walk_to(src, movement_target, near_dist, DS2TICKS(seek_move_delay))
+
+ //already following and close enough, stop
+ else if(current_dist <= near_dist)
+ walk_to(src,0)
+ movement_target = null
+ stop_automated_movement = 0
+ if(prob(10))
+ say("Glub!")
+
+ if(!friend || movement_target != friend)
+ ..()
+
+/mob/living/simple_animal/carp/fluff/verb/friend(var/mob/user)
+ set name = "Become Friends"
+ set category = "IC"
+ set src in view(1)
+
+ if(friend && usr == friend)
+ set_dir(get_dir(src, friend))
+ say("Glubglub!")
+ return
+
+ if(!(ishuman(usr) && befriend_job && usr.job == befriend_job))
+ to_chat(user, "[src] ignores you.")
+ return
+
+ friend = user
+
+ set_dir(get_dir(src, friend))
+ say("Glubglub!")
+
+// ENGINEERING HAS AN ACTUAL PET, WHAAAAAAAAAAAAAT? - geeves
+/mob/living/simple_animal/carp/fluff/ginny
+ name = "Ginny"
+ desc = "Rough scales adorn the body of this baby space carp. She looks ready to fire up an emitter!"
+ icon_state = "babycarp"
+ item_state = "babycarp"
+ icon_living = "babycarp"
+ icon_dead = "babycarp_dead"
+ icon_rest = "babycarp_rest"
+ icon_gib = null
+
+ gender = FEMALE
+
+ emote_see = list("floats steadily", "inflates her gills")
+
+ can_nap = TRUE
+ mob_size = 3.5
+
+ befriend_job = "Chief Engineer"
+ holder_type = /obj/item/weapon/holder/carp/baby
+
+/mob/living/simple_animal/carp/fluff/ginny/death()
+ .=..()
+ desc = "WHO KILLED GINNY?!"
+
+/mob/living/simple_animal/carp/baby
+ name = "baby space carp"
+ desc = "Awfully cute! Looks friendly!"
+ icon_state = "babycarp"
+ item_state = "babycarp"
+ icon_living = "babycarp"
+ icon_dead = "babycarp_dead"
+ icon_gib = null
+ can_nap = TRUE
+ gender = NEUTER
+ mob_size = 3.5
+ holder_type = /obj/item/weapon/holder/carp/baby
+
+/mob/living/simple_animal/carp/baby/death()
+ .=..()
+ desc = "A dead baby space carp, what a tragedy!"
\ No newline at end of file
diff --git a/code/modules/multiz/movement.dm b/code/modules/multiz/movement.dm
index 2b0f5dbc2f4..743a9f911dc 100644
--- a/code/modules/multiz/movement.dm
+++ b/code/modules/multiz/movement.dm
@@ -303,7 +303,7 @@
/obj/item/pipe/can_fall(turf/below, turf/simulated/open/dest = src.loc)
. = ..()
- if((locate(/obj/structure/disposalpipe/up) in below) || locate(/obj/machinery/atmospherics/pipe/zpipe/up in below))
+ if((locate(/obj/structure/disposalpipe/up) in below) || (locate(/obj/machinery/atmospherics/pipe/zpipe/up) in below))
return FALSE
// Only things that stop mechas are atoms that, well, stop them.
diff --git a/code/modules/multiz/turfs/open_space.dm b/code/modules/multiz/turfs/open_space.dm
index 86f6eb172e2..c4dc7f73302 100644
--- a/code/modules/multiz/turfs/open_space.dm
+++ b/code/modules/multiz/turfs/open_space.dm
@@ -71,7 +71,6 @@
*/
/turf/simulated/open/proc/add_climber(atom/climber, flags = CLIMBER_DEFAULT)
if (!flags)
- PROCLOG_WEIRD("Attempted to add climber [climber] without flags.")
return FALSE
if (LAZYACCESS(climbers, climber))
diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm
index 924e94d894d..d117e44630a 100644
--- a/code/modules/paperwork/paper.dm
+++ b/code/modules/paperwork/paper.dm
@@ -493,7 +493,8 @@
stamps += (stamps=="" ? "" : " ") + "This paper has been stamped with the [P.name]."
var/image/stampoverlay = image('icons/obj/bureaucracy.dmi')
- var/{x; y;}
+ var/x
+ var/y
if(istype(P, /obj/item/weapon/stamp/captain) || istype(P, /obj/item/weapon/stamp/centcomm))
x = rand(-2, 0)
y = rand(-1, 2)
diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm
index d07567d7200..249937c7311 100644
--- a/code/modules/paperwork/paper_bundle.dm
+++ b/code/modules/paperwork/paper_bundle.dm
@@ -12,7 +12,7 @@
attack_verb = list("bapped")
var/page = 1 // current page
var/list/pages = list() // Ordered list of pages as they are to be displayed. Can be different order than src.contents.
- var amount = 0 // How many sheet
+ var/amount = 0 // How many sheet
drop_sound = 'sound/items/drop/paper.ogg'
/obj/item/weapon/paper_bundle/attackby(obj/item/weapon/W as obj, mob/user as mob)
@@ -126,7 +126,7 @@
else if(istype(pages[page], /obj/item/weapon/photo))
var/obj/item/weapon/photo/P = W
to_chat(user, browse_rsc(P.img, "tmp_photo.png"))
- user << browse(dat + "[P.name]" + "" + "
Written on the back: [P.scribble]" : ]" + "", "window=[name]")
+ user << browse(dat + "[P.name]" + "" + "
Written on the back: [P.scribble]" : null]" + "", "window=[name]")
/obj/item/weapon/paper_bundle/attack_self(mob/user as mob)
src.show_content(user)
diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm
index 8926979805f..e59a3f35040 100644
--- a/code/modules/power/singularity/emitter.dm
+++ b/code/modules/power/singularity/emitter.dm
@@ -141,7 +141,7 @@
var/burst_time = (min_burst_delay + max_burst_delay)/2 + 2*(burst_shots-1)
var/power_per_shot = active_power_usage * (burst_time/10) / burst_shots
- playsound(src.loc, 'sound/weapons/emitter.ogg', 25, 1)
+ playsound(src.loc, 'sound/weapons/emitter.ogg', 25, 1, 3, 0.5, 1)
if(prob(35))
spark_system.queue()
diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm
index 301839802dd..93e4d7fa86b 100644
--- a/code/modules/projectiles/gun.dm
+++ b/code/modules/projectiles/gun.dm
@@ -335,7 +335,7 @@
if(silenced)
playsound(src, fire_sound, 10, 1)
else
- playsound(src, fire_sound, 75, 1, 5, 0.9, 1)
+ playsound(src, fire_sound, 75, 1, 3, 0.5, 1)
if (muzzle_flash)
set_light(muzzle_flash)
@@ -378,7 +378,7 @@
if(silenced)
playsound(user, fire_sound, 10, 1)
else
- playsound(user, fire_sound, 75, 1, 5, 0.9, 1)
+ playsound(user, fire_sound, 75, 1, 3, 0.5, 1)
if (playemote)
if(reflex)
@@ -490,7 +490,7 @@
if(silenced)
playsound(user, fire_sound, 10, 1)
else
- playsound(user, fire_sound, 75, 1, 5, 0.9, 1)
+ playsound(user, fire_sound, 75, 1, 3, 0.5, 1)
in_chamber.on_hit(M)
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index 31e411264a9..9586ef55c0a 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -459,7 +459,8 @@
/obj/item/projectile/proc/process_hitscan()
var/safety = range * 3
- record_hitscan_start(RETURN_POINT_VECTOR_INCREMENT(src, Angle, MUZZLE_EFFECT_PIXEL_INCREMENT, 1))
+ var/return_vector = RETURN_POINT_VECTOR_INCREMENT(src, Angle, MUZZLE_EFFECT_PIXEL_INCREMENT, 1)
+ record_hitscan_start(return_vector)
while(loc && !QDELETED(src))
if(paused)
stoplag(1)
diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm
index f06bca66a27..f45da8a891b 100644
--- a/code/modules/reagents/reagent_containers.dm
+++ b/code/modules/reagents/reagent_containers.dm
@@ -70,6 +70,7 @@
if(standard_splash_mob(user, target))
return
if(standard_pour_into(user, target))
+ SSvueui.check_uis_for_change(target)
return
if(standard_splash_obj(user, target))
return
diff --git a/code/modules/reagents/reagent_containers/food/snacks.dm b/code/modules/reagents/reagent_containers/food/snacks.dm
index c18f1343bb5..ddeacf96992 100644
--- a/code/modules/reagents/reagent_containers/food/snacks.dm
+++ b/code/modules/reagents/reagent_containers/food/snacks.dm
@@ -428,6 +428,10 @@
if (reagents)
on_consume(user)
+/obj/item/weapon/reagent_containers/food/snacks/on_reagent_change()
+ update_icon()
+ return
+
//////////////////////////////////////////////////
////////////////////////////////////////////Snacks
//////////////////////////////////////////////////
@@ -1701,8 +1705,8 @@
/obj/item/weapon/reagent_containers/food/snacks/meatsteak
name = "meat steak"
desc = "A piece of hot spicy meat."
- icon_state = "meatstake"
- trash = /obj/item/trash/plate
+ icon_state = "steak"
+ trash = /obj/item/trash/plate/steak
filling_color = "#7A3D11"
center_of_mass = list("x"=16, "y"=13)
bitesize = 2
@@ -1714,6 +1718,22 @@
reagents.add_reagent("sodiumchloride", 1)
reagents.add_reagent("blackpepper", 1)
+/obj/item/weapon/reagent_containers/food/snacks/meatsteak/update_icon()
+ var/percent = round((reagents.total_volume / 10) * 100)
+ switch(percent)
+ if(0 to 10)
+ icon_state = "steak_10"
+ if(11 to 25)
+ icon_state = "steak_25"
+ if(26 to 40)
+ icon_state = "steak_40"
+ if(41 to 60)
+ icon_state = "steak_60"
+ if(61 to 75)
+ icon_state = "steak_75"
+ if(76 to INFINITY)
+ icon_state = "steak"
+
/obj/item/weapon/reagent_containers/food/snacks/spacylibertyduff
name = "spacy liberty duff"
desc = "Jello gelatin, from Alfred Hubbard's cookbook."
@@ -2234,7 +2254,7 @@
/obj/item/weapon/reagent_containers/food/snacks/jelliedtoast/cherry
/obj/item/weapon/reagent_containers/food/snacks/jelliedtoast/cherry/Initialize()
- . ..()
+ . = ..()
reagents.add_reagent("cherryjelly", 5)
/obj/item/weapon/reagent_containers/food/snacks/jelliedtoast/slime
diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm
index 63ba98e1494..e7b9c77d445 100644
--- a/code/modules/recycling/conveyor2.dm
+++ b/code/modules/recycling/conveyor2.dm
@@ -76,7 +76,6 @@
return
if (!loc)
- PROCLOG_WEIRD("loc is null, breaking self.")
stat |= BROKEN
return
diff --git a/code/modules/research/designs/mechfab/hardsuit/modules.dm b/code/modules/research/designs/mechfab/hardsuit/modules.dm
new file mode 100644
index 00000000000..7e7fec2c0fa
--- /dev/null
+++ b/code/modules/research/designs/mechfab/hardsuit/modules.dm
@@ -0,0 +1,132 @@
+/datum/design/hardsuitmodules
+ build_type = MECHFAB
+ category = "Hardsuit (Modules)"
+ time = 10
+
+/datum/design/hardsuitmodules/iss_module
+ name = "IIS module"
+ desc = "An integrated intelligence system module suitable for most hardsuits."
+ id = "iis_module"
+ req_tech = list(TECH_DATA = 4, TECH_MATERIAL = 3)
+ materials = list("glass" = 7500, DEFAULT_WALL_MATERIAL = 5000)
+ build_path = /obj/item/rig_module/ai_container
+
+/datum/design/hardsuitmodules/sink_module
+ name = "hardsuit power sink"
+ desc = "An heavy-duty power sink suitable for hardsuits."
+ id = "power_sink_module"
+ req_tech = list(TECH_POWER = 4, TECH_MATERIAL = 3, TECH_ENGINEERING = 4, TECH_ILLEGAL = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold"= 2000, "silver"= 3000, "glass"= 2000)
+ build_path = /obj/item/rig_module/power_sink
+
+/datum/design/hardsuitmodules/meson_module
+ name = "hardsuit meson scanner"
+ desc = "A layered, translucent visor system for a hardsuit."
+ id = "meson_module"
+ req_tech = list(TECH_MAGNET = 4, TECH_MATERIAL = 2, TECH_ENGINEERING = 3)
+ materials = list("glass"= 5000, DEFAULT_WALL_MATERIAL= 1500)
+ build_path = /obj/item/rig_module/vision/meson
+
+/datum/design/hardsuitmodules/sechud_module
+ name = "hardsuit security hud"
+ desc = "A simple tactical information system for a hardsuit."
+ id = "sechud_module"
+ req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 2, TECH_MAGNET = 3)
+ materials = list("glass" = 5000, DEFAULT_WALL_MATERIAL =1500)
+ build_path = /obj/item/rig_module/vision/sechud
+
+/datum/design/hardsuitmodules/medhud_module
+ name = "hardsuit medical hud"
+ desc = "A simple medical status indicator for a hardsuit."
+ id = "medhu_module"
+ req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 2, TECH_MAGNET = 3)
+ materials = list("glass"= 5000, DEFAULT_WALL_MATERIAL =1500)
+ build_path = /obj/item/rig_module/vision/medhud
+
+/datum/design/hardsuitmodules/nvg_module
+ name = "hardsuit night vision interface"
+ desc = "A multi input night vision system for a hardsuit."
+ id = "nvg_module"
+ req_tech = list(TECH_BIO = 4, TECH_MATERIAL = 3, TECH_MAGNET = 4)
+ materials = list("glass" = 5000, DEFAULT_WALL_MATERIAL = 1500, "uranium" = 5000)
+ build_path = /obj/item/rig_module/vision/nvg
+
+/datum/design/hardsuitmodules/healthscanner_module
+ name = "hardsuit health scanner"
+ desc = "A hardsuit-mounted health scanner."
+ id = "healthscanner_module"
+ req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 3, TECH_MAGNET = 2)
+ materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 2500)
+ build_path = /obj/item/rig_module/device/healthscanner
+
+/datum/design/hardsuitmodules/chem_module
+ name = "mounted chemical injector"
+ desc = "A complex web of tubing and a large needle suitable for hardsuit use."
+ id = "chem_module"
+ req_tech = list(TECH_BIO = 5, TECH_MATERIAL = 4, TECH_DATA = 3, TECH_PHORON = 2)
+ materials = list("glass" = 9250, DEFAULT_WALL_MATERIAL = 10000, "gold" = 2500, "silver" = 4250, "phoron" = 5500)
+ build_path = /obj/item/rig_module/chem_dispenser/injector
+
+/datum/design/hardsuitmodules/plasmacutter_module
+ name = "hardsuit plasma cutter"
+ desc = "A self-sustaining plasma arc capable of cutting through walls."
+ id = "plasmacutter_module"
+ req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 3, TECH_PHORON = 4)
+ materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 30000, "silver" = 5250, "phoron" = 7250)
+ build_path = /obj/item/rig_module/mounted/plasmacutter
+
+/datum/design/hardsuitmodules/jet_module
+ name = "hardsuit maneuvering jets"
+ desc = "A compact gas thruster system for a hardsuit."
+ id = "jet_module"
+ req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 3, TECH_POWER = 2)
+ materials = list("glass" = 4250, DEFAULT_WALL_MATERIAL = 15000, "silver" = 4250,"uranium" = 5250)
+ build_path = /obj/item/rig_module/maneuvering_jets
+
+/datum/design/hardsuitmodules/drill_module
+ name = "hardsuit drill mount"
+ desc = "A very heavy diamond-tipped drill."
+ id = "drill_module"
+ req_tech = list(TECH_ENGINEERING = 5, TECH_MATERIAL = 5, TECH_POWER = 4, TECH_MAGNET = 4)
+ materials = list("glass" = 2250, DEFAULT_WALL_MATERIAL = 55000, "silver" = 5250, "diamond" = 3750)
+ build_path = /obj/item/rig_module/device/drill
+
+/datum/design/hardsuitmodules/rfd_c_module
+ name = "RFD-C mount"
+ desc = "A cell-powered Rapid-Fabrication-Device C-Class for a hardsuit."
+ id = "rcd_module"
+ req_tech = list(TECH_ENGINEERING = 6, TECH_MATERIAL = 5, TECH_POWER = 5, TECH_BLUESPACE = 4)
+ materials = list(DEFAULT_WALL_MATERIAL= 30000, "phoron" = 12500, "silver" = 10000, "gold" = 10000)
+ build_path = /obj/item/rig_module/device/rfd_c
+
+/datum/design/hardsuitmodules/actuators_module
+ name = "leg actuators"
+ desc = "A set of electromechanical actuators, for safe traversal of multilevelled areas."
+ id = "actuators_module"
+ req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 4, TECH_POWER = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 85000, "glass" = 1250, "silver" = 5250, "gold" = 2750)
+ build_path = /obj/item/rig_module/actuators
+
+/datum/design/hardsuitmodules/taser_module
+ name = "mounted taser"
+ desc = "A palm-mounted nonlethal energy projector."
+ id = "taser_module"
+ req_tech = list(TECH_MATERIAL = 2, TECH_POWER = 3, TECH_COMBAT = 3, TECH_MAGNET = 2)
+ materials = list(DEFAULT_WALL_MATERIAL = 7000, "glass" = 5250)
+ build_path = /obj/item/rig_module/mounted/taser
+
+/datum/design/hardsuitmodules/egun_module
+ name = "mounted energy gun"
+ desc = "A forearm-mounted energy projector."
+ id = "egun_module"
+ req_tech = list(TECH_MATERIAL = 3, TECH_POWER = 4, TECH_COMBAT = 4, TECH_MAGNET = 3)
+ materials = list(DEFAULT_WALL_MATERIAL= 7000, "glass"= 2250, "uranium"= 3250, "gold"= 2500)
+ build_path = /obj/item/rig_module/mounted/egun
+
+/datum/design/hardsuitmodules/cooling_module
+ name = "mounted cooling unit"
+ desc = "A heat sink with liquid cooled radiator."
+ id = "cooling_module"
+ req_tech = list(TECH_MATERIAL = 2, TECH_POWER = 3, TECH_ENGINEERING = 3)
+ materials = list(DEFAULT_WALL_MATERIAL= 7000, "glass"= 5500)
+ build_path = /obj/item/rig_module/cooling_unit
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/hardsuit/rigs.dm b/code/modules/research/designs/mechfab/hardsuit/rigs.dm
new file mode 100644
index 00000000000..033dcfa060b
--- /dev/null
+++ b/code/modules/research/designs/mechfab/hardsuit/rigs.dm
@@ -0,0 +1,64 @@
+/datum/design/rig
+ build_type = MECHFAB
+ category = "Hardsuit (Assemblies)"
+ materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500)
+ req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 2, TECH_MAGNET = 3, TECH_POWER = 3)
+ time = 20
+
+/datum/design/rig/ce
+ name = "advanced voidsuit control module assembly"
+ desc = "An assembly frame for an advanced voidsuit that protects against hazardous, low pressure environments."
+ id = "rig_ce"
+ build_path = /obj/item/rig_assembly/ce
+ req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_POWER = 4)
+ materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "silver" = 5500, "gold" = 5500, "phoron" = 7550)
+
+/datum/design/rig/eva
+ name = "EVA suit control module assembly"
+ desc = "An assembly for light rig that is desiged for repairs and maintenance to the outside of habitats and vessels."
+ id = "rig_eva"
+ build_path = /obj/item/rig_assembly/eva
+
+/datum/design/rig/industrial
+ name = "industrial suit control module assembly"
+ desc = "An assembly for a heavy, powerful rig used by construction crews and mining corporations."
+ id = "rig_industrial"
+ build_path = /obj/item/rig_assembly/industrial
+
+/datum/design/rig/hazmat
+ name = "AMI control module assembly"
+ desc = "An assembly for Anomalous Material Interaction hardsuit that protects against the strangest energies the universe can throw at it."
+ id = "rig_hazmat"
+ build_path = /obj/item/rig_assembly/hazmat
+ materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 25000, "silver" = 5500, "gold" = 5500, "phoron" = 7550)
+
+/datum/design/rig/medical
+ name = "rescue suit control module assembly"
+ desc = "An assembly for a durable suit designed for medical rescue in high risk areas."
+ id = "rig_medical"
+ build_path = /obj/item/rig_assembly/medical
+ materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "silver" = 5500, "gold" = 3500, "phoron" = 7550)
+
+/datum/design/rig/hazard
+ name = "hazard hardsuit control module"
+ desc = "An assembly for a security hardsuit designed for prolonged EVA in dangerous environments."
+ id = "rig_hazard"
+ build_path = /obj/item/rig_assembly/combat/hazard
+ req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_POWER = 3, TECH_COMBAT = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500, "silver" = 3500, "gold" = 5500)
+
+/datum/design/rig/combat
+ name = "combat hardsuit control module assembly"
+ desc = "An assembly frame for a sleek and dangerous hardsuit for active combat."
+ id = "rig_combat"
+ build_path = /obj/item/rig_assembly/combat/combat
+ req_tech = list(TECH_MATERIAL = 5, TECH_ENGINEERING = 4, TECH_MAGNET = 3, TECH_POWER = 3, TECH_COMBAT = 5)
+ materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500, "silver" = 3500, "gold" = 3500, "uranium" = 5550, "diamond" = 7500)
+
+/datum/design/rig/hacker
+ name = "cybersuit control module assembly"
+ desc = "An assembly for an advanced powered armour suit with many cyberwarfare enhancements. Comes with built-in insulated gloves for safely tampering with electronics."
+ id = "rig_hacker"
+ build_path = /obj/item/rig_assembly/combat/illegal/hacker
+ req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 2, TECH_POWER = 3, TECH_COMBAT = 3, TECH_ILLEGAL = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "gold" = 2500, "silver" = 3500, "uranium" = 5550)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/durand.dm b/code/modules/research/designs/mechfab/mechs/durand.dm
new file mode 100644
index 00000000000..a3874440973
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/durand.dm
@@ -0,0 +1,58 @@
+/datum/design/item/mechfab/durand
+ category = "Durand"
+
+/datum/design/item/mechfab/durand/chassis
+ name = "Durand chassis"
+ id = "durand_chassis"
+ build_path = /obj/item/mecha_parts/chassis/durand
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/durand/torso
+ name = "Durand torso"
+ id = "durand_torso"
+ build_path = /obj/item/mecha_parts/part/durand_torso
+ time = 30
+ materials = list(DEFAULT_WALL_MATERIAL = 55000, "glass" = 20000, "silver" = 10000)
+
+/datum/design/item/mechfab/durand/head
+ name = "Durand head"
+ id = "durand_head"
+ build_path = /obj/item/mecha_parts/part/durand_head
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 10000, "silver" = 3000)
+
+/datum/design/item/mechfab/durand/left_arm
+ name = "Durand left arm"
+ id = "durand_left_arm"
+ build_path = /obj/item/mecha_parts/part/durand_left_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 35000, "silver" = 3000)
+
+/datum/design/item/mechfab/durand/right_arm
+ name = "Durand right arm"
+ id = "durand_right_arm"
+ build_path = /obj/item/mecha_parts/part/durand_right_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 35000, "silver" = 3000)
+
+/datum/design/item/mechfab/durand/left_leg
+ name = "Durand left leg"
+ id = "durand_left_leg"
+ build_path = /obj/item/mecha_parts/part/durand_left_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 40000, "silver" = 3000)
+
+/datum/design/item/mechfab/durand/right_leg
+ name = "Durand right leg"
+ id = "durand_right_leg"
+ build_path = /obj/item/mecha_parts/part/durand_right_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 40000, "silver" = 3000)
+
+/datum/design/item/mechfab/durand/armour
+ name = "Durand armour plates"
+ id = "durand_armour"
+ build_path = /obj/item/mecha_parts/part/durand_armour
+ time = 60
+ materials = list(DEFAULT_WALL_MATERIAL = 50000, "uranium" = 10000)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/gygax.dm b/code/modules/research/designs/mechfab/mechs/gygax.dm
new file mode 100644
index 00000000000..35d77da0f16
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/gygax.dm
@@ -0,0 +1,58 @@
+/datum/design/item/mechfab/gygax
+ category = "Gygax"
+
+/datum/design/item/mechfab/gygax/chassis
+ name = "Gygax chassis"
+ id = "gygax_chassis"
+ build_path = /obj/item/mecha_parts/chassis/gygax
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/gygax/torso
+ name = "Gygax torso"
+ id = "gygax_torso"
+ build_path = /obj/item/mecha_parts/part/gygax_torso
+ time = 30
+ materials = list(DEFAULT_WALL_MATERIAL = 50000, "glass" = 20000)
+
+/datum/design/item/mechfab/gygax/head
+ name = "Gygax head"
+ id = "gygax_head"
+ build_path = /obj/item/mecha_parts/part/gygax_head
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "glass" = 10000)
+
+/datum/design/item/mechfab/gygax/left_arm
+ name = "Gygax left arm"
+ id = "gygax_left_arm"
+ build_path = /obj/item/mecha_parts/part/gygax_left_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 30000)
+
+/datum/design/item/mechfab/gygax/right_arm
+ name = "Gygax right arm"
+ id = "gygax_right_arm"
+ build_path = /obj/item/mecha_parts/part/gygax_right_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 30000)
+
+/datum/design/item/mechfab/gygax/left_leg
+ name = "Gygax left leg"
+ id = "gygax_left_leg"
+ build_path = /obj/item/mecha_parts/part/gygax_left_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 35000)
+
+/datum/design/item/mechfab/gygax/right_leg
+ name = "Gygax right leg"
+ id = "gygax_right_leg"
+ build_path = /obj/item/mecha_parts/part/gygax_right_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 35000)
+
+/datum/design/item/mechfab/gygax/armour
+ name = "Gygax armour plates"
+ id = "gygax_armour"
+ build_path = /obj/item/mecha_parts/part/gygax_armour
+ time = 60
+ materials = list(DEFAULT_WALL_MATERIAL = 50000, "diamond" = 10000)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/hermes.dm b/code/modules/research/designs/mechfab/mechs/hermes.dm
new file mode 100644
index 00000000000..df4ef362241
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/hermes.dm
@@ -0,0 +1,51 @@
+/datum/design/item/mechfab/hermes
+ category = "Hermes"
+
+/datum/design/item/mechfab/hermes/chassis
+ name = "Hermes chassis"
+ id = "hermes_chassis"
+ build_path = /obj/item/mecha_parts/chassis/hermes
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 20000)
+
+/datum/design/item/mechfab/hermes/torso
+ name = "Hermes torso"
+ id = "hermes_torso"
+ build_path = /obj/item/mecha_parts/part/hermes_torso
+ time = 18
+ materials = list(DEFAULT_WALL_MATERIAL = 21000)
+
+/datum/design/item/mechfab/hermes/head
+ name = "Hermes head"
+ id = "hermes_head"
+ build_path = /obj/item/mecha_parts/part/hermes_head
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 1000, "glass" = 1000)
+
+/datum/design/item/mechfab/hermes/left_arm
+ name = "Hermes left arm"
+ id = "hermes_left_arm"
+ build_path = /obj/item/mecha_parts/part/hermes_left_arm
+ time = 12
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mechfab/hermes/right_arm
+ name = "Hermes right arm"
+ id = "hermes_right_arm"
+ build_path = /obj/item/mecha_parts/part/hermes_right_arm
+ time = 12
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mechfab/hermes/left_leg
+ name = "Hermes left leg"
+ id = "hermes_left_leg"
+ build_path = /obj/item/mecha_parts/part/hermes_left_leg
+ time = 13
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mechfab/hermes/right_leg
+ name = "Hermes right leg"
+ id = "hermes_right_leg"
+ build_path = /obj/item/mecha_parts/part/hermes_right_leg
+ time = 13
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/mech_equipment/_equipment.dm b/code/modules/research/designs/mechfab/mechs/mech_equipment/_equipment.dm
new file mode 100644
index 00000000000..139959946d9
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/mech_equipment/_equipment.dm
@@ -0,0 +1,24 @@
+/datum/design/item/mecha
+ build_type = MECHFAB
+ category = "Exosuit Equipment"
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mecha/AssembleDesignDesc()
+ if(!desc)
+ desc = "Allows for the construction of \a '[item_name]' exosuit module."
+
+/datum/design/item/mecha/tracking
+ name = "Exosuit tracking beacon"
+ id = "exotrack"
+ build_type = MECHFAB
+ time = 5
+ materials = list(DEFAULT_WALL_MATERIAL = 500)
+ build_path = /obj/item/mecha_parts/mecha_tracking
+
+/datum/design/item/mecha/tracking/control
+ name = "Exosuit control beacon"
+ id = "exocontrol"
+ time = 30
+ materials = list(DEFAULT_WALL_MATERIAL = 3000)
+ build_path = /obj/item/mecha_parts/mecha_tracking/control
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/mech_equipment/tools.dm b/code/modules/research/designs/mechfab/mechs/mech_equipment/tools.dm
new file mode 100644
index 00000000000..d8fedf9421b
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/mech_equipment/tools.dm
@@ -0,0 +1,144 @@
+/datum/design/item/mecha/tool
+ build_type = MECHFAB
+ category = "Exosuit Equipment (Tools)"
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mecha/tool/hydraulic_clamp
+ name = "Hydraulic clamp"
+ id = "hydraulic_clamp"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/hydraulic_clamp
+
+/datum/design/item/mecha/tool/drill
+ name = "Drill"
+ id = "drill"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/drill
+
+/datum/design/item/mecha/tool/kinetic_accelerator
+ name = "Burst kinetic accelerator"
+ id = "kinetic_accelerator"
+ req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_PHORON = 3)
+ materials = list("glass" = 2250, DEFAULT_WALL_MATERIAL = 55000, "silver" = 5250)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/kin_accelerator
+
+/datum/design/item/mecha/tool/kinetic_accelerator/burst
+ name = "Kinetic accelerator"
+ id = "kinetic_accelerator_burst"
+ req_tech = list(TECH_MATERIAL = 5, TECH_ENGINEERING = 4, TECH_MAGNET = 4, TECH_PHORON = 4)
+ materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 60000, "silver" = 7250)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/kin_accelerator/burst
+
+/datum/design/item/mecha/tool/extinguisher
+ name = "Extinguisher"
+ id = "extinguisher"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/extinguisher
+
+/datum/design/item/mecha/tool/cable_layer
+ name = "Cable layer"
+ id = "mech_cable_layer"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/cable_layer
+
+/datum/design/item/mecha/tool/sleeper
+ name = "Sleeper"
+ id = "mech_sleeper"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/sleeper
+ materials = list(DEFAULT_WALL_MATERIAL = 5000, "glass" = 10000)
+
+/datum/design/item/mecha/tool/syringe_gun
+ name = "Syringe gun"
+ id = "mech_syringe_gun"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/syringe_gun
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 3000, "glass" = 2000)
+
+/datum/design/item/mecha/tool/passenger
+ name = "Passenger compartment"
+ id = "mech_passenger"
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/passenger
+ materials = list(DEFAULT_WALL_MATERIAL = 5000, "glass" = 5000)
+
+/datum/design/item/mecha/tool/wormhole_gen
+ name = "Wormhole generator"
+ desc = "An exosuit module that can generate small quasi-stable wormholes."
+ id = "mech_wormhole_gen"
+ req_tech = list(TECH_BLUESPACE = 3, TECH_MAGNET = 2)
+ build_path = /obj/item/mecha_parts/mecha_equipment/wormhole_generator
+
+/datum/design/item/mecha/tool/teleporter
+ name = "Teleporter"
+ desc = "An exosuit module that allows teleportation to any position in view."
+ id = "mech_teleporter"
+ req_tech = list(TECH_BLUESPACE = 6, TECH_MAGNET = 5)
+ build_path = /obj/item/mecha_parts/mecha_equipment/teleporter
+
+/datum/design/item/mecha/tool/rfd_c
+ name = "RFD-C"
+ desc = "An exosuit-mounted Rapid-Fabrication-Device C-Class."
+ id = "mech_rfd_c"
+ time = 120
+ materials = list(DEFAULT_WALL_MATERIAL = 30000, "phoron" = 25000, "silver" = 20000, "gold" = 20000)
+ req_tech = list(TECH_MATERIAL = 4, TECH_BLUESPACE = 3, TECH_MAGNET = 4, TECH_POWER = 4, TECH_ENGINEERING = 4)
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/rfd_c
+
+/datum/design/item/mecha/tool/gravcatapult
+ name = "Gravitational catapult"
+ desc = "An exosuit-mounted gravitational catapult."
+ id = "mech_gravcatapult"
+ req_tech = list(TECH_BLUESPACE = 2, TECH_MAGNET = 3, TECH_ENGINEERING = 3)
+ build_path = /obj/item/mecha_parts/mecha_equipment/gravcatapult
+
+/datum/design/item/mecha/tool/repair_droid
+ name = "Repair droid"
+ desc = "Automated repair droid, exosuits' best companion. BEEP BOOP"
+ id = "mech_repair_droid"
+ req_tech = list(TECH_MAGNET = 3, TECH_DATA = 3, TECH_ENGINEERING = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold" = 1000, "silver" = 2000, "glass" = 5000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/repair_droid
+
+/datum/design/item/mecha/tool/phoron_generator
+ name = "Phoron generator"
+ desc = "Converts sheets of phoron into energy."
+ id = "mech_phoron_generator"
+ req_tech = list(TECH_PHORON = 2, TECH_POWER= 2, TECH_ENGINEERING = 2)
+ build_path = /obj/item/mecha_parts/mecha_equipment/generator
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "silver" = 500, "glass" = 1000)
+
+/datum/design/item/mecha/tool/energy_relay
+ name = "Energy relay"
+ desc = "Saps power from APCs in range to power on-board energy cell."
+ id = "mech_energy_relay"
+ req_tech = list(TECH_MAGNET = 4, TECH_POWER = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold" = 2000, "silver" = 3000, "glass" = 2000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/tesla_energy_relay
+
+/datum/design/item/mecha/tool/ccw_armor
+ name = "CQC armor booster"
+ desc = "Exosuit close-combat armor booster. Anti-melee."
+ id = "mech_cqc_armor"
+ req_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 4)
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 5000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/armor_booster/anticcw_armor_booster
+
+/datum/design/item/mecha/tool/proj_armor
+ name = "Ranged-combat armor booster"
+ desc = "Exosuit projectile armor booster. Anti-firearm."
+ id = "mech_proj_armor"
+ req_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 5, TECH_ENGINEERING = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 5000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/armor_booster/antiproj_armor_booster
+
+/datum/design/item/mecha/tool/diamond_drill
+ name = "Diamond drill"
+ desc = "A diamond version of the exosuit drill. It's harder, better, faster, stronger."
+ id = "mech_diamond_drill"
+ req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "diamond" = 6500)
+ build_path = /obj/item/mecha_parts/mecha_equipment/tool/drill/diamonddrill
+
+/datum/design/item/mecha/tool/generator_nuclear
+ name = "Nuclear generator"
+ desc = "Exosuit-held nuclear reactor. Converts uranium into energy. Leaks radiation."
+ id = "mech_generator_nuclear"
+ req_tech = list(TECH_POWER= 3, TECH_ENGINEERING = 3, TECH_MATERIAL = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "silver" = 500, "glass" = 1000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/generator/nuclear
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/mech_equipment/weaponry.dm b/code/modules/research/designs/mechfab/mechs/mech_equipment/weaponry.dm
new file mode 100644
index 00000000000..85b47856816
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/mech_equipment/weaponry.dm
@@ -0,0 +1,112 @@
+/datum/design/item/mecha/weapon
+ req_tech = list(TECH_COMBAT = 3)
+ build_type = MECHFAB
+ category = "Exosuit Equipment (Weapons)"
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mecha/weapon/flamethrower
+ name = "Flamethrower"
+ id = "flamethrower"
+ req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 4, TECH_COMBAT = 2, TECH_PHORON = 2)
+ materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 40000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/flamethrower
+
+/datum/design/item/mecha/weapon/taser
+ name = "Mounted taser carbine"
+ id = "mech_taser"
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/taser
+
+/datum/design/item/mecha/weapon/lmg
+ name = "Mounted machine gun"
+ id = "mech_lmg"
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg
+
+/datum/design/item/mecha/weapon/scattershot
+ name = "Mounted shotgun"
+ id = "mech_scattershot"
+ req_tech = list(TECH_COMBAT = 4)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/scattershot
+
+/datum/design/item/mecha/weapon/laser
+ name = "Mounted laser carbine"
+ id = "mech_laser"
+ req_tech = list(TECH_COMBAT = 3, TECH_MAGNET = 3)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser
+
+/datum/design/item/mecha/weapon/laser_rigged
+ name = "Jury-rigged welder-laser"
+ desc = "Allows for the construction of a welder-laser assembly package for non-combat exosuits."
+ id = "mech_laser_rigged"
+ req_tech = list(TECH_COMBAT = 2, TECH_MAGNET = 2)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/riggedlaser
+
+/datum/design/item/mecha/weapon/laser_heavy
+ name = "Mounted laser cannon"
+ id = "mech_laser_heavy"
+ req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy
+
+/datum/design/item/mecha/weapon/ion
+ name = "Heavy ion cannon"
+ id = "mech_ion"
+ req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/ion
+
+/datum/design/item/mecha/weapon/laser_gatling
+ name = "Mounted gatling laser"
+ id = "laser_gatling"
+ req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/gatling
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000)
+
+/datum/design/item/mecha/weapon/xray_gatling
+ name = "Gatling xray gun"
+ id = "xray_gatling"
+ req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4, TECH_MATERIAL = 5, TECH_ILLEGAL = 3)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/xray
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000, "phoron" = 6000)
+
+/datum/design/item/mecha/weapon/tesla_gun
+ name = "Mounted tesla cannon"
+ id = "tesla_gun"
+ req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 5, TECH_MATERIAL = 5)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 6000, "phoron" = 6000)
+
+/datum/design/item/mecha/weapon/gyro_gun
+ name = "Mounted gyrojet autocannon"
+ id = "gyro_gun"
+ req_tech = list(TECH_COMBAT = 6, TECH_MAGNET = 5, TECH_MATERIAL = 6, TECH_ILLEGAL = 5)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/gyro
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 6000, "phoron" = 6000, "diamond" = 7500)
+
+/datum/design/item/mecha/weapon/grenade_launcher
+ name = "Grenade launcher"
+ id = "mech_grenade_launcher"
+ req_tech = list(TECH_COMBAT = 3)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/flashbang
+
+/datum/design/item/mecha/weapon/clusterbang_launcher
+ name = "Clusterbang Grenade launcher"
+ desc = "A weapon that violates the Geneva Convention at 6 rounds per minute."
+ id = "clusterbang_launcher"
+ req_tech = list(TECH_COMBAT= 5, TECH_MATERIAL = 5, TECH_ILLEGAL = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000, "uranium" = 6000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/flashbang/clusterbang/limited
+
+/datum/design/item/mecha/weapon/plasma_cutter
+ name = "Heavy plasma cutter"
+ desc = "A large mining tool capable of expelling concentrated plasma bursts, useful for crushing rocks."
+ id = "mecha_plasmacutter"
+ req_tech = list(TECH_MATERIAL = 4, TECH_PHORON = 4, TECH_ENGINEERING = 4)
+ materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 1000, "gold" = 1000, "phoron" = 1000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma
+
+/datum/design/item/mecha/weapon/incendiary
+ name = "Mounted incendiary carbine"
+ desc = "A weapon for combat exosuits. Shoots incendiary shells."
+ id = "mecha_incendiary"
+ req_tech = list(TECH_COMBAT= 4, TECH_MATERIAL = 4, TECH_PHORON = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 1000, "phoron" = 1000)
+ build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/incendiary
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/mechs/odysseus.dm b/code/modules/research/designs/mechfab/mechs/odysseus.dm
new file mode 100644
index 00000000000..125078a07b2
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/odysseus.dm
@@ -0,0 +1,51 @@
+/datum/design/item/mechfab/odysseus
+ category = "Odysseus"
+
+/datum/design/item/mechfab/odysseus/chassis
+ name = "Odysseus chassis"
+ id = "odysseus_chassis"
+ build_path = /obj/item/mecha_parts/chassis/odysseus
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 20000)
+
+/datum/design/item/mechfab/odysseus/torso
+ name = "Odysseus torso"
+ id = "odysseus_torso"
+ build_path = /obj/item/mecha_parts/part/odysseus_torso
+ time = 18
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/odysseus/head
+ name = "Odysseus head"
+ id = "odysseus_head"
+ build_path = /obj/item/mecha_parts/part/odysseus_head
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 10000)
+
+/datum/design/item/mechfab/odysseus/left_arm
+ name = "Odysseus left arm"
+ id = "odysseus_left_arm"
+ build_path = /obj/item/mecha_parts/part/odysseus_left_arm
+ time = 12
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mechfab/odysseus/right_arm
+ name = "Odysseus right arm"
+ id = "odysseus_right_arm"
+ build_path = /obj/item/mecha_parts/part/odysseus_right_arm
+ time = 12
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+
+/datum/design/item/mechfab/odysseus/left_leg
+ name = "Odysseus left leg"
+ id = "odysseus_left_leg"
+ build_path = /obj/item/mecha_parts/part/odysseus_left_leg
+ time = 13
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
+
+/datum/design/item/mechfab/odysseus/right_leg
+ name = "Odysseus right leg"
+ id = "odysseus_right_leg"
+ build_path = /obj/item/mecha_parts/part/odysseus_right_leg
+ time = 13
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
diff --git a/code/modules/research/designs/mechfab/mechs/ripley.dm b/code/modules/research/designs/mechfab/mechs/ripley.dm
new file mode 100644
index 00000000000..b2188586f8f
--- /dev/null
+++ b/code/modules/research/designs/mechfab/mechs/ripley.dm
@@ -0,0 +1,49 @@
+/datum/design/item/mechfab/ripley
+ category = "Ripley"
+
+/datum/design/item/mechfab/ripley/chassis
+ name = "Ripley chassis"
+ id = "ripley_chassis"
+ build_path = /obj/item/mecha_parts/chassis/ripley
+ time = 10
+ materials = list(DEFAULT_WALL_MATERIAL = 20000)
+
+/datum/design/item/mechfab/ripley/chassis/firefighter
+ name = "Firefigher chassis"
+ id = "firefighter_chassis"
+ build_path = /obj/item/mecha_parts/chassis/firefighter
+
+/datum/design/item/mechfab/ripley/torso
+ name = "Ripley torso"
+ id = "ripley_torso"
+ build_path = /obj/item/mecha_parts/part/ripley_torso
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 40000, "glass" = 15000)
+
+/datum/design/item/mechfab/ripley/left_arm
+ name = "Ripley left arm"
+ id = "ripley_left_arm"
+ build_path = /obj/item/mecha_parts/part/ripley_left_arm
+ time = 15
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/ripley/right_arm
+ name = "Ripley right arm"
+ id = "ripley_right_arm"
+ build_path = /obj/item/mecha_parts/part/ripley_right_arm
+ time = 15
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/ripley/left_leg
+ name = "Ripley left leg"
+ id = "ripley_left_leg"
+ build_path = /obj/item/mecha_parts/part/ripley_left_leg
+ time = 15
+ materials = list(DEFAULT_WALL_MATERIAL = 30000)
+
+/datum/design/item/mechfab/ripley/right_leg
+ name = "Ripley right leg"
+ id = "ripley_right_leg"
+ build_path = /obj/item/mecha_parts/part/ripley_right_leg
+ time = 15
+ materials = list(DEFAULT_WALL_MATERIAL = 30000)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/prosthetics/external.dm b/code/modules/research/designs/mechfab/prosthetics/external.dm
new file mode 100644
index 00000000000..e0fd0a598da
--- /dev/null
+++ b/code/modules/research/designs/mechfab/prosthetics/external.dm
@@ -0,0 +1,38 @@
+/datum/design/item/mechfab/prosthetic
+ category = "Prosthetic (External)"
+
+//if the fabricator is a mech fab pass the manufacturer info over to the robot part constructor
+/datum/design/item/mechfab/prosthetic/Fabricate(var/newloc, var/fabricator)
+ if(istype(fabricator, /obj/machinery/mecha_part_fabricator))
+ var/obj/machinery/mecha_part_fabricator/mechfab = fabricator
+ return new build_path(newloc, mechfab.manufacturer)
+ return ..()
+
+// Copied from robot.dm, but reflavoured to be more fitting to prosthetics.
+/datum/design/item/mechfab/prosthetic/l_arm
+ name = "Prosthetic left arm"
+ id = "robot_l_arm"
+ build_path = /obj/item/robot_parts/l_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 18000)
+
+/datum/design/item/mechfab/prosthetic/r_arm
+ name = "Prosthetic right arm"
+ id = "robot_r_arm"
+ build_path = /obj/item/robot_parts/r_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 18000)
+
+/datum/design/item/mechfab/prosthetic/l_leg
+ name = "Prosthetic left leg"
+ id = "robot_l_leg"
+ build_path = /obj/item/robot_parts/l_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
+
+/datum/design/item/mechfab/prosthetic/r_leg
+ name = "Prosthetic right leg"
+ id = "robot_r_leg"
+ build_path = /obj/item/robot_parts/r_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/prosthetics/internal.dm b/code/modules/research/designs/mechfab/prosthetics/internal.dm
new file mode 100644
index 00000000000..6b9a2eb2a9a
--- /dev/null
+++ b/code/modules/research/designs/mechfab/prosthetics/internal.dm
@@ -0,0 +1,35 @@
+/datum/design/item/mechfab/prosthetic/internal
+ category = "Prosthetic (Internal)"
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 9000, "glass" = 3000)
+
+//make sure the printed organ is actually robotic
+/datum/design/item/mechfab/prosthetic/internal/Fabricate()
+ var/obj/item/organ/O = ..()
+ O.robotize()
+ return O
+
+/datum/design/item/mechfab/prosthetic/internal/heart
+ name = "Prosthetic Heart"
+ id = "robotic_heart"
+ build_path = /obj/item/organ/heart
+
+/datum/design/item/mechfab/prosthetic/internal/lungs
+ name = "Prosthetic Lungs"
+ id = "robotic_lungs"
+ build_path = /obj/item/organ/lungs
+
+/datum/design/item/mechfab/prosthetic/internal/kidneys
+ name = "Prosthetic Kidneys"
+ id = "robotic_kidneys"
+ build_path = /obj/item/organ/kidneys
+
+/datum/design/item/mechfab/prosthetic/internal/eyes
+ name = "Prosthetic Eyes"
+ id = "robotic_eyes"
+ build_path = /obj/item/organ/eyes
+
+/datum/design/item/mechfab/prosthetic/internal/liver
+ name = "Prosthetic Liver"
+ id = "robotic_liver"
+ build_path = /obj/item/organ/liver
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/robot/robot.dm b/code/modules/research/designs/mechfab/robot/robot.dm
new file mode 100644
index 00000000000..a2ddd08019b
--- /dev/null
+++ b/code/modules/research/designs/mechfab/robot/robot.dm
@@ -0,0 +1,111 @@
+/datum/design/item/mechfab
+ build_type = MECHFAB
+ req_tech = list()
+
+/datum/design/item/mechfab/robot
+ category = "Robot"
+
+//if the fabricator is a mech fab pass the manufacturer info over to the robot part constructor
+/datum/design/item/mechfab/robot/Fabricate(var/newloc, var/fabricator)
+ if(istype(fabricator, /obj/machinery/mecha_part_fabricator))
+ var/obj/machinery/mecha_part_fabricator/mechfab = fabricator
+ return new build_path(newloc, mechfab.manufacturer)
+ return ..()
+
+/datum/design/item/mechfab/robot/exoskeleton
+ name = "Robot exoskeleton"
+ id = "robot_exoskeleton"
+ build_path = /obj/item/robot_parts/robot_suit
+ time = 50
+ materials = list(DEFAULT_WALL_MATERIAL = 50000)
+
+/datum/design/item/mechfab/robot/torso
+ name = "Robot torso"
+ id = "robot_torso"
+ build_path = /obj/item/robot_parts/chest
+ time = 35
+ materials = list(DEFAULT_WALL_MATERIAL = 40000)
+
+/datum/design/item/mechfab/robot/head
+ name = "Robot head"
+ id = "robot_head"
+ build_path = /obj/item/robot_parts/head
+ time = 35
+ materials = list(DEFAULT_WALL_MATERIAL = 25000)
+
+/datum/design/item/mechfab/robot/l_arm
+ name = "Robot left arm"
+ id = "robot_l_arm"
+ build_path = /obj/item/robot_parts/l_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 18000)
+
+/datum/design/item/mechfab/robot/r_arm
+ name = "Robot right arm"
+ id = "robot_r_arm"
+ build_path = /obj/item/robot_parts/r_arm
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 18000)
+
+/datum/design/item/mechfab/robot/l_leg
+ name = "Robot left leg"
+ id = "robot_l_leg"
+ build_path = /obj/item/robot_parts/l_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
+
+/datum/design/item/mechfab/robot/r_leg
+ name = "Robot right leg"
+ id = "robot_r_leg"
+ build_path = /obj/item/robot_parts/r_leg
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 15000)
+
+/datum/design/item/mechfab/robot/component
+ time = 20
+ materials = list(DEFAULT_WALL_MATERIAL = 5000)
+
+/datum/design/item/mechfab/robot/component/synthetic_flash
+ name = "Synthetic flash"
+ id = "sflash"
+ req_tech = list(TECH_MAGNET = 3, TECH_COMBAT = 2)
+ materials = list(DEFAULT_WALL_MATERIAL = 750, "glass" = 750)
+ build_path = /obj/item/device/flash/synthetic
+
+/datum/design/item/mechfab/robot/component/binary_communication_device
+ name = "Binary communication device"
+ id = "binary_communication_device"
+ build_path = /obj/item/robot_parts/robot_component/binary_communication_device
+
+/datum/design/item/mechfab/robot/component/radio
+ name = "Radio"
+ id = "radio"
+ build_path = /obj/item/robot_parts/robot_component/radio
+
+/datum/design/item/mechfab/robot/component/actuator
+ name = "Actuator"
+ id = "actuator"
+ build_path = /obj/item/robot_parts/robot_component/actuator
+
+/datum/design/item/mechfab/robot/component/diagnosis_unit
+ name = "Diagnosis unit"
+ id = "diagnosis_unit"
+ build_path = /obj/item/robot_parts/robot_component/diagnosis_unit
+
+/datum/design/item/mechfab/robot/component/camera
+ name = "Camera"
+ id = "camera"
+ build_path = /obj/item/robot_parts/robot_component/camera
+
+/datum/design/item/mechfab/robot/component/armour
+ name = "Armour plating"
+ id = "armour"
+ build_path = /obj/item/robot_parts/robot_component/armour
+
+/datum/design/item/mechfab/robot/component/surge
+ name = "Heavy surge prevention module"
+ desc = "Used to boost prevent damage from EMP. Has limited surge preventions."
+ id = "borg_surge_module"
+ materials = list(DEFAULT_WALL_MATERIAL = 20000, "glass" = 6000, "gold" = 5000, "silver" = 7500) // Should be expensive
+ req_tech = list(TECH_MATERIAL = 4, TECH_BLUESPACE = 2, TECH_MAGNET = 5, TECH_POWER = 5, TECH_ENGINEERING = 4, TECH_COMBAT = 3)
+ build_path = /obj/item/robot_parts/robot_component/surge
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab/robot/robot_upgrades.dm b/code/modules/research/designs/mechfab/robot/robot_upgrades.dm
new file mode 100644
index 00000000000..dca8ba6a12d
--- /dev/null
+++ b/code/modules/research/designs/mechfab/robot/robot_upgrades.dm
@@ -0,0 +1,52 @@
+/datum/design/item/robot_upgrade
+ build_type = MECHFAB
+ time = 12
+ materials = list(DEFAULT_WALL_MATERIAL = 10000)
+ category = "Cyborg Upgrade Modules"
+
+/datum/design/item/robot_upgrade/rename
+ name = "Rename module"
+ desc = "Used to rename a cyborg."
+ id = "borg_rename_module"
+ build_path = /obj/item/borg/upgrade/rename
+
+/datum/design/item/robot_upgrade/reset
+ name = "Reset module"
+ desc = "Used to reset a cyborg's module. Destroys any other upgrades applied to the robot."
+ id = "borg_reset_module"
+ build_path = /obj/item/borg/upgrade/reset
+
+/datum/design/item/robot_upgrade/floodlight
+ name = "Floodlight module"
+ desc = "Used to boost cyborg's integrated light intensity."
+ id = "borg_floodlight_module"
+ build_path = /obj/item/borg/upgrade/floodlight
+
+/datum/design/item/robot_upgrade/restart
+ name = "Emergency restart module"
+ desc = "Used to force a restart of a disabled-but-repaired robot, bringing it back online."
+ id = "borg_restart_module"
+ materials = list(DEFAULT_WALL_MATERIAL = 60000, "glass" = 5000)
+ build_path = /obj/item/borg/upgrade/restart
+
+/datum/design/item/robot_upgrade/vtec
+ name = "VTEC module"
+ desc = "Used to kick in a robot's VTEC systems, increasing their speed."
+ id = "borg_vtec_module"
+ materials = list(DEFAULT_WALL_MATERIAL = 80000, "glass" = 6000, "gold" = 5000)
+ build_path = /obj/item/borg/upgrade/vtec
+
+/datum/design/item/robot_upgrade/jetpack
+ name = "Jetpack module"
+ desc = "A carbon dioxide jetpack suitable for low-gravity mining operations."
+ id = "borg_jetpack_module"
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "phoron" = 15000, "uranium" = 20000)
+ build_path = /obj/item/robot_parts/robot_component/jetpack
+
+/datum/design/item/robot_upgrade/syndicate
+ name = "Illegal upgrade"
+ desc = "Allows for the construction of lethal upgrades for cyborgs."
+ id = "borg_syndicate_module"
+ req_tech = list(TECH_COMBAT = 4, TECH_ILLEGAL = 3)
+ materials = list(DEFAULT_WALL_MATERIAL = 10000, "glass" = 15000, "diamond" = 10000)
+ build_path = /obj/item/borg/upgrade/syndicate
\ No newline at end of file
diff --git a/code/modules/research/designs/mechfab_designs.dm b/code/modules/research/designs/mechfab_designs.dm
deleted file mode 100644
index c0aabe76453..00000000000
--- a/code/modules/research/designs/mechfab_designs.dm
+++ /dev/null
@@ -1,934 +0,0 @@
-/datum/design/item/mechfab
- build_type = MECHFAB
- category = "Misc"
- req_tech = list(TECH_MATERIAL = 1)
-
-/datum/design/item/mechfab/robot
- category = "Robot"
-
-//if the fabricator is a mech fab pass the manufacturer info over to the robot part constructor
-/datum/design/item/mechfab/robot/Fabricate(var/newloc, var/fabricator)
- if(istype(fabricator, /obj/machinery/mecha_part_fabricator))
- var/obj/machinery/mecha_part_fabricator/mechfab = fabricator
- return new build_path(newloc, mechfab.manufacturer)
- return ..()
-
-/datum/design/item/mechfab/robot/exoskeleton
- name = "Robot exoskeleton"
- id = "robot_exoskeleton"
- build_path = /obj/item/robot_parts/robot_suit
- time = 50
- materials = list(DEFAULT_WALL_MATERIAL = 50000)
-
-/datum/design/item/mechfab/robot/torso
- name = "Robot torso"
- id = "robot_torso"
- build_path = /obj/item/robot_parts/chest
- time = 35
- materials = list(DEFAULT_WALL_MATERIAL = 40000)
-
-/datum/design/item/mechfab/robot/head
- name = "Robot head"
- id = "robot_head"
- build_path = /obj/item/robot_parts/head
- time = 35
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/robot/l_arm
- name = "Robot left arm"
- id = "robot_l_arm"
- build_path = /obj/item/robot_parts/l_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 18000)
-
-/datum/design/item/mechfab/robot/r_arm
- name = "Robot right arm"
- id = "robot_r_arm"
- build_path = /obj/item/robot_parts/r_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 18000)
-
-/datum/design/item/mechfab/robot/l_leg
- name = "Robot left leg"
- id = "robot_l_leg"
- build_path = /obj/item/robot_parts/l_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 15000)
-
-/datum/design/item/mechfab/robot/r_leg
- name = "Robot right leg"
- id = "robot_r_leg"
- build_path = /obj/item/robot_parts/r_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 15000)
-
-/datum/design/item/mechfab/robot/component
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 5000)
-
-/datum/design/item/mechfab/robot/component/binary_communication_device
- name = "Binary communication device"
- id = "binary_communication_device"
- build_path = /obj/item/robot_parts/robot_component/binary_communication_device
-
-/datum/design/item/mechfab/robot/component/radio
- name = "Radio"
- id = "radio"
- build_path = /obj/item/robot_parts/robot_component/radio
-
-/datum/design/item/mechfab/robot/component/actuator
- name = "Actuator"
- id = "actuator"
- build_path = /obj/item/robot_parts/robot_component/actuator
-
-/datum/design/item/mechfab/robot/component/diagnosis_unit
- name = "Diagnosis unit"
- id = "diagnosis_unit"
- build_path = /obj/item/robot_parts/robot_component/diagnosis_unit
-
-/datum/design/item/mechfab/robot/component/camera
- name = "Camera"
- id = "camera"
- build_path = /obj/item/robot_parts/robot_component/camera
-
-/datum/design/item/mechfab/robot/component/armour
- name = "Armour plating"
- id = "armour"
- build_path = /obj/item/robot_parts/robot_component/armour
-
-/datum/design/item/mechfab/robot/component/surge
- name = "Heavy surge prevention module"
- desc = "Used to boost prevent damage from EMP. Has limited surge preventions."
- id = "borg_surge_module"
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "glass" = 6000, "gold" = 5000, "silver" = 7500) // Should be expensive
- req_tech = list(TECH_MATERIAL = 4, TECH_BLUESPACE = 2, TECH_MAGNET = 5, TECH_POWER = 5, TECH_ENGINEERING = 4, TECH_COMBAT = 3)
- build_path = /obj/item/robot_parts/robot_component/surge
-
-/datum/design/item/mechfab/ripley
- category = "Ripley"
-
-/datum/design/item/mechfab/ripley/chassis
- name = "Ripley chassis"
- id = "ripley_chassis"
- build_path = /obj/item/mecha_parts/chassis/ripley
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 20000)
-
-/datum/design/item/mechfab/ripley/chassis/firefighter
- name = "Firefigher chassis"
- id = "firefighter_chassis"
- build_path = /obj/item/mecha_parts/chassis/firefighter
-
-/datum/design/item/mechfab/ripley/torso
- name = "Ripley torso"
- id = "ripley_torso"
- build_path = /obj/item/mecha_parts/part/ripley_torso
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 40000, "glass" = 15000)
-
-/datum/design/item/mechfab/ripley/left_arm
- name = "Ripley left arm"
- id = "ripley_left_arm"
- build_path = /obj/item/mecha_parts/part/ripley_left_arm
- time = 15
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/ripley/right_arm
- name = "Ripley right arm"
- id = "ripley_right_arm"
- build_path = /obj/item/mecha_parts/part/ripley_right_arm
- time = 15
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/ripley/left_leg
- name = "Ripley left leg"
- id = "ripley_left_leg"
- build_path = /obj/item/mecha_parts/part/ripley_left_leg
- time = 15
- materials = list(DEFAULT_WALL_MATERIAL = 30000)
-
-/datum/design/item/mechfab/ripley/right_leg
- name = "Ripley right leg"
- id = "ripley_right_leg"
- build_path = /obj/item/mecha_parts/part/ripley_right_leg
- time = 15
- materials = list(DEFAULT_WALL_MATERIAL = 30000)
-
-/datum/design/item/mechfab/odysseus
- category = "Odysseus"
-
-/datum/design/item/mechfab/odysseus/chassis
- name = "Odysseus chassis"
- id = "odysseus_chassis"
- build_path = /obj/item/mecha_parts/chassis/odysseus
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 20000)
-
-/datum/design/item/mechfab/odysseus/torso
- name = "Odysseus torso"
- id = "odysseus_torso"
- build_path = /obj/item/mecha_parts/part/odysseus_torso
- time = 18
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/odysseus/head
- name = "Odysseus head"
- id = "odysseus_head"
- build_path = /obj/item/mecha_parts/part/odysseus_head
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 10000)
-
-/datum/design/item/mechfab/odysseus/left_arm
- name = "Odysseus left arm"
- id = "odysseus_left_arm"
- build_path = /obj/item/mecha_parts/part/odysseus_left_arm
- time = 12
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mechfab/odysseus/right_arm
- name = "Odysseus right arm"
- id = "odysseus_right_arm"
- build_path = /obj/item/mecha_parts/part/odysseus_right_arm
- time = 12
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mechfab/odysseus/left_leg
- name = "Odysseus left leg"
- id = "odysseus_left_leg"
- build_path = /obj/item/mecha_parts/part/odysseus_left_leg
- time = 13
- materials = list(DEFAULT_WALL_MATERIAL = 15000)
-
-/datum/design/item/mechfab/odysseus/right_leg
- name = "Odysseus right leg"
- id = "odysseus_right_leg"
- build_path = /obj/item/mecha_parts/part/odysseus_right_leg
- time = 13
- materials = list(DEFAULT_WALL_MATERIAL = 15000)
-
-/datum/design/item/mechfab/gygax
- category = "Gygax"
-
-/datum/design/item/mechfab/gygax/chassis
- name = "Gygax chassis"
- id = "gygax_chassis"
- build_path = /obj/item/mecha_parts/chassis/gygax
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/gygax/torso
- name = "Gygax torso"
- id = "gygax_torso"
- build_path = /obj/item/mecha_parts/part/gygax_torso
- time = 30
- materials = list(DEFAULT_WALL_MATERIAL = 50000, "glass" = 20000)
-
-/datum/design/item/mechfab/gygax/head
- name = "Gygax head"
- id = "gygax_head"
- build_path = /obj/item/mecha_parts/part/gygax_head
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "glass" = 10000)
-
-/datum/design/item/mechfab/gygax/left_arm
- name = "Gygax left arm"
- id = "gygax_left_arm"
- build_path = /obj/item/mecha_parts/part/gygax_left_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 30000)
-
-/datum/design/item/mechfab/gygax/right_arm
- name = "Gygax right arm"
- id = "gygax_right_arm"
- build_path = /obj/item/mecha_parts/part/gygax_right_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 30000)
-
-/datum/design/item/mechfab/gygax/left_leg
- name = "Gygax left leg"
- id = "gygax_left_leg"
- build_path = /obj/item/mecha_parts/part/gygax_left_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 35000)
-
-/datum/design/item/mechfab/gygax/right_leg
- name = "Gygax right leg"
- id = "gygax_right_leg"
- build_path = /obj/item/mecha_parts/part/gygax_right_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 35000)
-
-/datum/design/item/mechfab/gygax/armour
- name = "Gygax armour plates"
- id = "gygax_armour"
- build_path = /obj/item/mecha_parts/part/gygax_armour
- time = 60
- materials = list(DEFAULT_WALL_MATERIAL = 50000, "diamond" = 10000)
-
-/datum/design/item/mechfab/durand
- category = "Durand"
-
-/datum/design/item/mechfab/durand/chassis
- name = "Durand chassis"
- id = "durand_chassis"
- build_path = /obj/item/mecha_parts/chassis/durand
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 25000)
-
-/datum/design/item/mechfab/durand/torso
- name = "Durand torso"
- id = "durand_torso"
- build_path = /obj/item/mecha_parts/part/durand_torso
- time = 30
- materials = list(DEFAULT_WALL_MATERIAL = 55000, "glass" = 20000, "silver" = 10000)
-
-/datum/design/item/mechfab/durand/head
- name = "Durand head"
- id = "durand_head"
- build_path = /obj/item/mecha_parts/part/durand_head
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 10000, "silver" = 3000)
-
-/datum/design/item/mechfab/durand/left_arm
- name = "Durand left arm"
- id = "durand_left_arm"
- build_path = /obj/item/mecha_parts/part/durand_left_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 35000, "silver" = 3000)
-
-/datum/design/item/mechfab/durand/right_arm
- name = "Durand right arm"
- id = "durand_right_arm"
- build_path = /obj/item/mecha_parts/part/durand_right_arm
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 35000, "silver" = 3000)
-
-/datum/design/item/mechfab/durand/left_leg
- name = "Durand left leg"
- id = "durand_left_leg"
- build_path = /obj/item/mecha_parts/part/durand_left_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 40000, "silver" = 3000)
-
-/datum/design/item/mechfab/durand/right_leg
- name = "Durand right leg"
- id = "durand_right_leg"
- build_path = /obj/item/mecha_parts/part/durand_right_leg
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 40000, "silver" = 3000)
-
-/datum/design/item/mechfab/durand/armour
- name = "Durand armour plates"
- id = "durand_armour"
- build_path = /obj/item/mecha_parts/part/durand_armour
- time = 60
- materials = list(DEFAULT_WALL_MATERIAL = 50000, "uranium" = 10000)
-
-
-/// Hermes
-
-/datum/design/item/mechfab/hermes
- category = "Hermes"
-
-/datum/design/item/mechfab/hermes/chassis
- name = "Hermes chassis"
- id = "hermes_chassis"
- build_path = /obj/item/mecha_parts/chassis/hermes
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 20000)
-
-/datum/design/item/mechfab/hermes/torso
- name = "Hermes torso"
- id = "hermes_torso"
- build_path = /obj/item/mecha_parts/part/hermes_torso
- time = 18
- materials = list(DEFAULT_WALL_MATERIAL = 21000)
-
-/datum/design/item/mechfab/hermes/head
- name = "Hermes head"
- id = "hermes_head"
- build_path = /obj/item/mecha_parts/part/hermes_head
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 1000, "glass" = 1000)
-
-/datum/design/item/mechfab/hermes/left_arm
- name = "Hermes left arm"
- id = "hermes_left_arm"
- build_path = /obj/item/mecha_parts/part/hermes_left_arm
- time = 12
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mechfab/hermes/right_arm
- name = "Hermes right arm"
- id = "hermes_right_arm"
- build_path = /obj/item/mecha_parts/part/hermes_right_arm
- time = 12
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mechfab/hermes/left_leg
- name = "Hermes left leg"
- id = "hermes_left_leg"
- build_path = /obj/item/mecha_parts/part/hermes_left_leg
- time = 13
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mechfab/hermes/right_leg
- name = "Hermes right leg"
- id = "hermes_right_leg"
- build_path = /obj/item/mecha_parts/part/hermes_right_leg
- time = 13
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/robot_upgrade
- build_type = MECHFAB
- time = 12
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
- category = "Cyborg Upgrade Modules"
-
-/datum/design/item/robot_upgrade/rename
- name = "Rename module"
- desc = "Used to rename a cyborg."
- id = "borg_rename_module"
- build_path = /obj/item/borg/upgrade/rename
-
-/datum/design/item/robot_upgrade/reset
- name = "Reset module"
- desc = "Used to reset a cyborg's module. Destroys any other upgrades applied to the robot."
- id = "borg_reset_module"
- build_path = /obj/item/borg/upgrade/reset
-
-/datum/design/item/robot_upgrade/floodlight
- name = "Floodlight module"
- desc = "Used to boost cyborg's integrated light intensity."
- id = "borg_floodlight_module"
- build_path = /obj/item/borg/upgrade/floodlight
-
-/datum/design/item/robot_upgrade/restart
- name = "Emergency restart module"
- desc = "Used to force a restart of a disabled-but-repaired robot, bringing it back online."
- id = "borg_restart_module"
- materials = list(DEFAULT_WALL_MATERIAL = 60000, "glass" = 5000)
- build_path = /obj/item/borg/upgrade/restart
-
-/datum/design/item/robot_upgrade/vtec
- name = "VTEC module"
- desc = "Used to kick in a robot's VTEC systems, increasing their speed."
- id = "borg_vtec_module"
- materials = list(DEFAULT_WALL_MATERIAL = 80000, "glass" = 6000, "gold" = 5000)
- build_path = /obj/item/borg/upgrade/vtec
-
-/datum/design/item/robot_upgrade/jetpack
- name = "Jetpack module"
- desc = "A carbon dioxide jetpack suitable for low-gravity mining operations."
- id = "borg_jetpack_module"
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "phoron" = 15000, "uranium" = 20000)
- build_path = /obj/item/robot_parts/robot_component/jetpack
-
-/datum/design/item/robot_upgrade/syndicate
- name = "Illegal upgrade"
- desc = "Allows for the construction of lethal upgrades for cyborgs."
- id = "borg_syndicate_module"
- req_tech = list(TECH_COMBAT = 4, TECH_ILLEGAL = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "glass" = 15000, "diamond" = 10000)
- build_path = /obj/item/borg/upgrade/syndicate
-
-/datum/design/item/mecha_tracking
- name = "Exosuit tracking beacon"
- id = "exotrack"
- build_type = MECHFAB
- time = 5
- materials = list(DEFAULT_WALL_MATERIAL = 500)
- build_path = /obj/item/mecha_parts/mecha_tracking
- category = "Misc"
-
-/datum/design/item/mecha_tracking/control
- name = "Exosuit control beacon"
- id = "exocontrol"
- time = 30
- materials = list(DEFAULT_WALL_MATERIAL = 3000)
- build_path = /obj/item/mecha_parts/mecha_tracking/control
-
-/datum/design/item/mecha
- build_type = MECHFAB
- category = "Exosuit Equipment"
- time = 10
- materials = list(DEFAULT_WALL_MATERIAL = 10000)
-
-/datum/design/item/mecha/AssembleDesignDesc()
- if(!desc)
- desc = "Allows for the construction of \a '[item_name]' exosuit module."
-
-/datum/design/item/mecha/hydraulic_clamp
- name = "Hydraulic clamp"
- id = "hydraulic_clamp"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/hydraulic_clamp
-
-/datum/design/item/mecha/drill
- name = "Drill"
- id = "drill"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/drill
-
-/datum/design/item/mecha/kinetic_accelerator
- name = "Burst kinetic accelerator"
- id = "kinetic_accelerator"
- req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_PHORON = 3)
- materials = list("glass" = 2250, DEFAULT_WALL_MATERIAL = 55000, "silver" = 5250)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/kin_accelerator
-
-/datum/design/item/mecha/kinetic_accelerator/burst
- name = "Kinetic accelerator"
- id = "kinetic_accelerator_burst"
- req_tech = list(TECH_MATERIAL = 5, TECH_ENGINEERING = 4, TECH_MAGNET = 4, TECH_PHORON = 4)
- materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 60000, "silver" = 7250)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/kin_accelerator/burst
-
-/datum/design/item/mecha/flamethrower
- name = "Flamethrower"
- id = "flamethrower"
- req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 4, TECH_COMBAT = 2, TECH_PHORON = 2)
- materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 40000)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/flamethrower
-
-/datum/design/item/mecha/extinguisher
- name = "Extinguisher"
- id = "extinguisher"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/extinguisher
-
-/datum/design/item/mecha/cable_layer
- name = "Cable layer"
- id = "mech_cable_layer"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/cable_layer
-
-/datum/design/item/mecha/sleeper
- name = "Sleeper"
- id = "mech_sleeper"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/sleeper
- materials = list(DEFAULT_WALL_MATERIAL = 5000, "glass" = 10000)
-
-/datum/design/item/mecha/syringe_gun
- name = "Syringe gun"
- id = "mech_syringe_gun"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/syringe_gun
- time = 20
- materials = list(DEFAULT_WALL_MATERIAL = 3000, "glass" = 2000)
-
-/*
-/datum/design/item/mecha/syringe_gun
- desc = "Exosuit-mounted syringe gun and chemical synthesizer."
- id = "mech_syringe_gun"
- req_tech = list(TECH_MATERIAL = 3, TECH_BIO = 4, TECH_MAGNET = 4, TECH_DATA = 3)
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/syringe_gun
- */
-
-/datum/design/item/mecha/passenger
- name = "Passenger compartment"
- id = "mech_passenger"
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/passenger
- materials = list(DEFAULT_WALL_MATERIAL = 5000, "glass" = 5000)
-
-//obj/item/mecha_parts/mecha_equipment/repair_droid,
-//obj/item/mecha_parts/mecha_equipment/jetpack, //TODO MECHA JETPACK SPRITE MISSING
-
-/datum/design/item/mecha/generator
- name = "Phoron generator"
- id = "mech_generator"
- build_path = /obj/item/mecha_parts/mecha_equipment/generator
-
-/datum/design/item/mecha/taser
- name = "Mounted taser carbine"
- id = "mech_taser"
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/taser
-
-/datum/design/item/mecha/lmg
- name = "Mounted machine gun"
- id = "mech_lmg"
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg
-
-/datum/design/item/mecha/weapon
- req_tech = list(TECH_COMBAT = 3)
-
-// *** Weapon modules
-/datum/design/item/mecha/weapon/scattershot
- name = "Mounted shotgun"
- id = "mech_scattershot"
- req_tech = list(TECH_COMBAT = 4)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/scattershot
-
-/datum/design/item/mecha/weapon/laser
- name = "Mounted laser carbine"
- id = "mech_laser"
- req_tech = list(TECH_COMBAT = 3, TECH_MAGNET = 3)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser
-
-/datum/design/item/mecha/weapon/laser_rigged
- name = "Jury-rigged welder-laser"
- desc = "Allows for the construction of a welder-laser assembly package for non-combat exosuits."
- id = "mech_laser_rigged"
- req_tech = list(TECH_COMBAT = 2, TECH_MAGNET = 2)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/riggedlaser
-
-/datum/design/item/mecha/weapon/laser_heavy
- name = "Mounted laser cannon"
- id = "mech_laser_heavy"
- req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy
-
-/datum/design/item/mecha/weapon/ion
- name = "Heavy ion cannon"
- id = "mech_ion"
- req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/ion
-
-/datum/design/item/mecha/weapon/laser_gatling
- name = "Mounted gatling laser"
- id = "laser_gatling"
- req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/gatling
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000)
-
-/datum/design/item/mecha/weapon/xray_gatling
- name = "Gatling xray gun"
- id = "xray_gatling"
- req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 4, TECH_MATERIAL = 5, TECH_ILLEGAL = 3)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/xray
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000, "phoron" = 6000)
-
-/datum/design/item/mecha/weapon/tesla_gun
- name = "Mounted tesla cannon"
- id = "tesla_gun"
- req_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 5, TECH_MATERIAL = 5)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 6000, "phoron" = 6000)
-
-/datum/design/item/mecha/weapon/gyro_gun
- name = "Mounted gyrojet autocannon"
- id = "gyro_gun"
- req_tech = list(TECH_COMBAT = 6, TECH_MAGNET = 5, TECH_MATERIAL = 6, TECH_ILLEGAL = 5)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/gyro
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 6000, "phoron" = 6000, "diamond" = 7500)
-
-/datum/design/item/mecha/weapon/grenade_launcher
- name = "Grenade launcher"
- id = "mech_grenade_launcher"
- req_tech = list(TECH_COMBAT = 3)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/flashbang
-
-/datum/design/item/mecha/weapon/clusterbang_launcher
- name = "Clusterbang Grenade launcher"
- desc = "A weapon that violates the Geneva Convention at 6 rounds per minute."
- id = "clusterbang_launcher"
- req_tech = list(TECH_COMBAT= 5, TECH_MATERIAL = 5, TECH_ILLEGAL = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 6000, "uranium" = 6000)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/flashbang/clusterbang/limited
-
-/datum/design/item/mecha/weapon/plasma_cutter
- name = "Heavy plasma cutter"
- desc = "A large mining tool capable of expelling concentrated plasma bursts, useful for crushing rocks."
- id = "mecha_plasmacutter"
- req_tech = list(TECH_MATERIAL = 4, TECH_PHORON = 4, TECH_ENGINEERING = 4)
- materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 1000, "gold" = 1000, "phoron" = 1000)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma
-
-/datum/design/item/mecha/weapon/incendiary
- name = "Mounted incendiary carbine"
- desc = "A weapon for combat exosuits. Shoots incendiary shells."
- id = "mecha_incendiary"
- req_tech = list(TECH_COMBAT= 4, TECH_MATERIAL = 4, TECH_PHORON = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 2000, "glass" = 1000, "phoron" = 1000)
- build_path = /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/incendiary
-
-// *** Nonweapon modules
-/datum/design/item/mecha/wormhole_gen
- name = "Wormhole generator"
- desc = "An exosuit module that can generate small quasi-stable wormholes."
- id = "mech_wormhole_gen"
- req_tech = list(TECH_BLUESPACE = 3, TECH_MAGNET = 2)
- build_path = /obj/item/mecha_parts/mecha_equipment/wormhole_generator
-
-/datum/design/item/mecha/teleporter
- name = "Teleporter"
- desc = "An exosuit module that allows teleportation to any position in view."
- id = "mech_teleporter"
- req_tech = list(TECH_BLUESPACE = 6, TECH_MAGNET = 5)
- build_path = /obj/item/mecha_parts/mecha_equipment/teleporter
-
-/datum/design/item/mecha/rfd_c
- name = "RFD-C"
- desc = "An exosuit-mounted Rapid-Fabrication-Device C-Class."
- id = "mech_rfd_c"
- time = 120
- materials = list(DEFAULT_WALL_MATERIAL = 30000, "phoron" = 25000, "silver" = 20000, "gold" = 20000)
- req_tech = list(TECH_MATERIAL = 4, TECH_BLUESPACE = 3, TECH_MAGNET = 4, TECH_POWER = 4, TECH_ENGINEERING = 4)
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/rfd_c
-
-/datum/design/item/mecha/gravcatapult
- name = "Gravitational catapult"
- desc = "An exosuit-mounted gravitational catapult."
- id = "mech_gravcatapult"
- req_tech = list(TECH_BLUESPACE = 2, TECH_MAGNET = 3, TECH_ENGINEERING = 3)
- build_path = /obj/item/mecha_parts/mecha_equipment/gravcatapult
-
-/datum/design/item/mecha/repair_droid
- name = "Repair droid"
- desc = "Automated repair droid, exosuits' best companion. BEEP BOOP"
- id = "mech_repair_droid"
- req_tech = list(TECH_MAGNET = 3, TECH_DATA = 3, TECH_ENGINEERING = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold" = 1000, "silver" = 2000, "glass" = 5000)
- build_path = /obj/item/mecha_parts/mecha_equipment/repair_droid
-
-/datum/design/item/mecha/phoron_generator
- desc = "Phoron reactor."
- id = "mech_phoron_generator"
- req_tech = list(TECH_PHORON = 2, TECH_POWER= 2, TECH_ENGINEERING = 2)
- build_path = /obj/item/mecha_parts/mecha_equipment/generator
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "silver" = 500, "glass" = 1000)
-
-/datum/design/item/mecha/energy_relay
- name = "Energy relay"
- id = "mech_energy_relay"
- req_tech = list(TECH_MAGNET = 4, TECH_POWER = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold" = 2000, "silver" = 3000, "glass" = 2000)
- build_path = /obj/item/mecha_parts/mecha_equipment/tesla_energy_relay
-
-/datum/design/item/mecha/ccw_armor
- name = "CCW armor booster"
- desc = "Exosuit close-combat armor booster."
- id = "mech_ccw_armor"
- req_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 4)
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "silver" = 5000)
- build_path = /obj/item/mecha_parts/mecha_equipment/armor_booster/anticcw_armor_booster
-
-/datum/design/item/mecha/proj_armor
- desc = "Exosuit projectile armor booster."
- id = "mech_proj_armor"
- req_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 5, TECH_ENGINEERING = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 20000, "gold" = 5000)
- build_path = /obj/item/mecha_parts/mecha_equipment/armor_booster/antiproj_armor_booster
-
-/datum/design/item/mecha/diamond_drill
- name = "Diamond drill"
- desc = "A diamond version of the exosuit drill. It's harder, better, faster, stronger."
- id = "mech_diamond_drill"
- req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "diamond" = 6500)
- build_path = /obj/item/mecha_parts/mecha_equipment/tool/drill/diamonddrill
-
-/datum/design/item/mecha/generator_nuclear
- name = "Nuclear reactor"
- desc = "Exosuit-held nuclear reactor. Converts uranium and everyone's health to energy."
- id = "mech_generator_nuclear"
- req_tech = list(TECH_POWER= 3, TECH_ENGINEERING = 3, TECH_MATERIAL = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "silver" = 500, "glass" = 1000)
- build_path = /obj/item/mecha_parts/mecha_equipment/generator/nuclear
-
-/datum/design/item/synthetic_flash
- name = "Synthetic flash"
- id = "sflash"
- req_tech = list(TECH_MAGNET = 3, TECH_COMBAT = 2)
- build_type = MECHFAB
- materials = list(DEFAULT_WALL_MATERIAL = 750, "glass" = 750)
- build_path = /obj/item/device/flash/synthetic
- category = "Misc"
-
-//hardsuits modules
-
-/datum/design/hardsuitmodules
- build_type = MECHFAB
- category = "Hardsuit Modules"
- time = 10
-
-/datum/design/hardsuitmodules/iss_module
- name = "IIS module"
- desc = "An integrated intelligence system module suitable for most hardsuits."
- id = "iis_module"
- req_tech = list(TECH_DATA = 4, TECH_MATERIAL = 3)
- materials = list("glass" = 7500, DEFAULT_WALL_MATERIAL = 5000)
- build_path = /obj/item/rig_module/ai_container
-
-/datum/design/hardsuitmodules/sink_module
- name = "hardsuit power sink"
- desc = "An heavy-duty power sink suitable for hardsuits."
- id = "power_sink_module"
- req_tech = list(TECH_POWER = 4, TECH_MATERIAL = 3, TECH_ENGINEERING = 4, TECH_ILLEGAL = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 10000, "gold"= 2000, "silver"= 3000, "glass"= 2000)
- build_path = /obj/item/rig_module/power_sink
-
-/datum/design/hardsuitmodules/meson_module
- name = "hardsuit meson scanner"
- desc = "A layered, translucent visor system for a hardsuit."
- id = "meson_module"
- req_tech = list(TECH_MAGNET = 4, TECH_MATERIAL = 2, TECH_ENGINEERING = 3)
- materials = list("glass"= 5000, DEFAULT_WALL_MATERIAL= 1500)
- build_path = /obj/item/rig_module/vision/meson
-
-/datum/design/hardsuitmodules/sechud_module
- name = "hardsuit security hud"
- desc = "A simple tactical information system for a hardsuit."
- id = "sechud_module"
- req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 2, TECH_MAGNET = 3)
- materials = list("glass" = 5000, DEFAULT_WALL_MATERIAL =1500)
- build_path = /obj/item/rig_module/vision/sechud
-
-/datum/design/hardsuitmodules/medhud_module
- name = "hardsuit medical hud"
- desc = "A simple medical status indicator for a hardsuit."
- id = "medhu_module"
- req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 2, TECH_MAGNET = 3)
- materials = list("glass"= 5000, DEFAULT_WALL_MATERIAL =1500)
- build_path = /obj/item/rig_module/vision/medhud
-
-/datum/design/hardsuitmodules/nvg_module
- name = "hardsuit night vision interface"
- desc = "A multi input night vision system for a hardsuit."
- id = "nvg_module"
- req_tech = list(TECH_BIO = 4, TECH_MATERIAL = 3, TECH_MAGNET = 4)
- materials = list("glass" = 5000, DEFAULT_WALL_MATERIAL = 1500, "uranium" = 5000)
- build_path = /obj/item/rig_module/vision/nvg
-
-/datum/design/hardsuitmodules/healthscanner_module
- name = "hardsuit health scanner"
- desc = "A hardsuit-mounted health scanner."
- id = "healthscanner_module"
- req_tech = list(TECH_BIO = 3, TECH_MATERIAL = 3, TECH_MAGNET = 2)
- materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 2500)
- build_path = /obj/item/rig_module/device/healthscanner
-
-/datum/design/hardsuitmodules/chem_module
- name = "mounted chemical injector"
- desc = "A complex web of tubing and a large needle suitable for hardsuit use."
- id = "chem_module"
- req_tech = list(TECH_BIO = 5, TECH_MATERIAL = 4, TECH_DATA = 3, TECH_PHORON = 2)
- materials = list("glass" = 9250, DEFAULT_WALL_MATERIAL = 10000, "gold" = 2500, "silver" = 4250, "phoron" = 5500)
- build_path = /obj/item/rig_module/chem_dispenser/injector
-
-/datum/design/hardsuitmodules/plasmacutter_module
- name = "hardsuit plasma cutter"
- desc = "A self-sustaining plasma arc capable of cutting through walls."
- id = "plasmacutter_module"
- req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 3, TECH_PHORON = 4)
- materials = list("glass" = 5250, DEFAULT_WALL_MATERIAL = 30000, "silver" = 5250, "phoron" = 7250)
- build_path = /obj/item/rig_module/mounted/plasmacutter
-
-/datum/design/hardsuitmodules/jet_module
- name = "hardsuit maneuvering jets"
- desc = "A compact gas thruster system for a hardsuit."
- id = "jet_module"
- req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 3, TECH_POWER = 2)
- materials = list("glass" = 4250, DEFAULT_WALL_MATERIAL = 15000, "silver" = 4250,"uranium" = 5250)
- build_path = /obj/item/rig_module/maneuvering_jets
-
-/datum/design/hardsuitmodules/drill_module
- name = "hardsuit drill mount"
- desc = "A very heavy diamond-tipped drill."
- id = "drill_module"
- req_tech = list(TECH_ENGINEERING = 5, TECH_MATERIAL = 5, TECH_POWER = 4, TECH_MAGNET = 4)
- materials = list("glass" = 2250, DEFAULT_WALL_MATERIAL = 55000, "silver" = 5250, "diamond" = 3750)
- build_path = /obj/item/rig_module/device/drill
-
-/datum/design/hardsuitmodules/rfd_c_module
- name = "RFD-C mount"
- desc = "A cell-powered Rapid-Fabrication-Device C-Class for a hardsuit."
- id = "rcd_module"
- req_tech = list(TECH_ENGINEERING = 6, TECH_MATERIAL = 5, TECH_POWER = 5, TECH_BLUESPACE = 4)
- materials = list(DEFAULT_WALL_MATERIAL= 30000, "phoron" = 12500, "silver" = 10000, "gold" = 10000)
- build_path = /obj/item/rig_module/device/rfd_c
-
-/datum/design/hardsuitmodules/actuators_module
- name = "leg actuators"
- desc = "A set of electromechanical actuators, for safe traversal of multilevelled areas."
- id = "actuators_module"
- req_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 4, TECH_POWER = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 85000, "glass" = 1250, "silver" = 5250, "gold" = 2750)
- build_path = /obj/item/rig_module/actuators
-
-/datum/design/hardsuitmodules/taser_module
- name = "mounted taser"
- desc = "A palm-mounted nonlethal energy projector."
- id = "taser_module"
- req_tech = list(TECH_MATERIAL = 2, TECH_POWER = 3, TECH_COMBAT = 3, TECH_MAGNET = 2)
- materials = list(DEFAULT_WALL_MATERIAL = 7000, "glass" = 5250)
- build_path = /obj/item/rig_module/mounted/taser
-
-/datum/design/hardsuitmodules/egun_module
- name = "mounted energy gun"
- desc = "A forearm-mounted energy projector."
- id = "egun_module"
- req_tech = list(TECH_MATERIAL = 3, TECH_POWER = 4, TECH_COMBAT = 4, TECH_MAGNET = 3)
- materials = list(DEFAULT_WALL_MATERIAL= 7000, "glass"= 2250, "uranium"= 3250, "gold"= 2500)
- build_path = /obj/item/rig_module/mounted/egun
-
-/datum/design/hardsuitmodules/cooling_module
- name = "mounted cooling unit"
- desc = "A heat sink with liquid cooled radiator."
- id = "cooling_module"
- req_tech = list(TECH_MATERIAL = 2, TECH_POWER = 3, TECH_ENGINEERING = 3)
- materials = list(DEFAULT_WALL_MATERIAL= 7000, "glass"= 5500)
- build_path = /obj/item/rig_module/cooling_unit
-
-
-/// RIGS
-
-/datum/design/rig
- build_type = MECHFAB
- category = "RIG Assemblies"
- materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500)
- req_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 2, TECH_MAGNET = 3, TECH_POWER = 3)
- time = 20
-
-/datum/design/rig/ce
- name = "advanced voidsuit control module assembly"
- desc = "An assembly frame for an advanced voidsuit that protects against hazardous, low pressure environments."
- id = "rig_ce"
- build_path = /obj/item/rig_assembly/ce
- req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_POWER = 4)
- materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "silver" = 5500, "gold" = 5500, "phoron" = 7550)
-
-/datum/design/rig/eva
- name = "EVA suit control module assembly"
- desc = "An assembly for light rig that is desiged for repairs and maintenance to the outside of habitats and vessels."
- id = "rig_eva"
- build_path = /obj/item/rig_assembly/eva
-
-/datum/design/rig/industrial
- name = "industrial suit control module assembly"
- desc = "An assembly for a heavy, powerful rig used by construction crews and mining corporations."
- id = "rig_industrial"
- build_path = /obj/item/rig_assembly/industrial
-
-/datum/design/rig/hazmat
- name = "AMI control module assembly"
- desc = "An assembly for Anomalous Material Interaction hardsuit that protects against the strangest energies the universe can throw at it."
- id = "rig_hazmat"
- build_path = /obj/item/rig_assembly/hazmat
- materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 25000, "silver" = 5500, "gold" = 5500, "phoron" = 7550)
-
-/datum/design/rig/medical
- name = "rescue suit control module assembly"
- desc = "An assembly for a durable suit designed for medical rescue in high risk areas."
- id = "rig_medical"
- build_path = /obj/item/rig_assembly/medical
- materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "silver" = 5500, "gold" = 3500, "phoron" = 7550)
-
-/datum/design/rig/hazard
- name = "hazard hardsuit control module"
- desc = "An assembly for a security hardsuit designed for prolonged EVA in dangerous environments."
- id = "rig_hazard"
- build_path = /obj/item/rig_assembly/combat/hazard
- req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 3, TECH_POWER = 3, TECH_COMBAT = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500, "silver" = 3500, "gold" = 5500)
-
-/datum/design/rig/combat
- name = "combat hardsuit control module assembly"
- desc = "An assembly frame for a sleek and dangerous hardsuit for active combat."
- id = "rig_combat"
- build_path = /obj/item/rig_assembly/combat/combat
- req_tech = list(TECH_MATERIAL = 5, TECH_ENGINEERING = 4, TECH_MAGNET = 3, TECH_POWER = 3, TECH_COMBAT = 5)
- materials = list(DEFAULT_WALL_MATERIAL = 30000, "glass" = 12500, "silver" = 3500, "gold" = 3500, "uranium" = 5550, "diamond" = 7500)
-
-/datum/design/rig/hacker
- name = "cybersuit control module assembly"
- desc = "An assembly for an advanced powered armour suit with many cyberwarfare enhancements. Comes with built-in insulated gloves for safely tampering with electronics."
- id = "rig_hacker"
- build_path = /obj/item/rig_assembly/combat/illegal/hacker
- req_tech = list(TECH_MATERIAL = 4, TECH_ENGINEERING = 3, TECH_MAGNET = 2, TECH_POWER = 3, TECH_COMBAT = 3, TECH_ILLEGAL = 3)
- materials = list(DEFAULT_WALL_MATERIAL = 25000, "glass" = 12500, "gold" = 2500, "silver" = 3500, "uranium" = 5550)
\ No newline at end of file
diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm
index 70dfb28e381..e3458cb5a7d 100644
--- a/code/modules/research/rdconsole.dm
+++ b/code/modules/research/rdconsole.dm
@@ -407,7 +407,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/obj/item/weapon/paper/PR = new/obj/item/weapon/paper
var/pname = "list of researched technologies"
var/info = "
[station_name()] Science Laboratories"
- info += "
"
info += "report prepared at [worldtime2text()] station time
"
if(text2num(href_list["print"]) == 2)
info += GetResearchListInfo()
diff --git a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm
index 808640bfa66..89f3b5d52a4 100644
--- a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm
+++ b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm
@@ -6,8 +6,7 @@
/obj/item/device/depth_scanner
name = "depth analysis scanner"
desc = "Used to check spatial depth and density of rock outcroppings."
- icon = 'icons/obj/pda.dmi'
- icon_state = "crap"
+ icon_state = "depthscanner"
item_state = "analyzer"
w_class = 2.0
slot_flags = SLOT_BELT
diff --git a/code/modules/scripting/Parser/Expressions.dm b/code/modules/scripting/Parser/Expressions.dm
index f27a30d3ad3..fe55e0f25a2 100644
--- a/code/modules/scripting/Parser/Expressions.dm
+++ b/code/modules/scripting/Parser/Expressions.dm
@@ -53,10 +53,9 @@
if(/token/word)
return new/node/expression/value/variable(T.value)
if(/token/accessor)
- var
- token/accessor/A=T
- node/expression/value/variable/E//=new(A.member)
- stack/S=new()
+ var/token/accessor/A = T
+ var/node/expression/value/variable/E
+ var/stack/S = new()
while(istype(A.object, /token/accessor))
S.Push(A)
A=A.object
@@ -181,11 +180,10 @@
-
*/
ParseExpression(list/end=list(/token/end), list/ErrChars=list("{", "}"))
- var/stack
- opr=new
- val=new
+ var/stack/opr = new
+ var/stack/val = new
src.expecting=VALUE
- for()
+ while (1)
if(EndOfExpression(end))
break
if(istype(curToken, /token/symbol) && ErrChars.Find(curToken.value))
@@ -278,7 +276,7 @@
NextToken() //skip open parenthesis, already found
var/loops = 0
- for()
+ while (1)
loops++
if(loops>=1000)
CRASH("Something TERRIBLE has gone wrong in ParseFunctionExpression ;__;")
@@ -311,4 +309,4 @@
-
*/
ParseParamExpression()
- return ParseExpression(list(",", ")"))
\ No newline at end of file
+ return ParseExpression(list(",", ")"))
diff --git a/code/modules/scripting/Parser/Keywords.dm b/code/modules/scripting/Parser/Keywords.dm
index 7d933c52ef8..74e60199f0b 100644
--- a/code/modules/scripting/Parser/Keywords.dm
+++ b/code/modules/scripting/Parser/Keywords.dm
@@ -134,7 +134,7 @@ var/const/Represents a special statement in the code triggered by a keyword.
parser.NextToken()
if(!parser.CheckToken("(", /token/symbol))
return KW_FAIL
- for() //for now parameters can be separated by whitespace - they don't need a comma in between
+ while (1) //for now parameters can be separated by whitespace - they don't need a comma in between
if(istype(parser.curToken, /token/symbol))
switch(parser.curToken.value)
if(",")
diff --git a/code/modules/scripting/Parser/Parser.dm b/code/modules/scripting/Parser/Parser.dm
index ad961c755f0..655abfca9bb 100644
--- a/code/modules/scripting/Parser/Parser.dm
+++ b/code/modules/scripting/Parser/Parser.dm
@@ -172,7 +172,7 @@
if(!CheckToken("(", /token/symbol)) //Check for and skip open parenthesis
return
var/loops = 0
- for()
+ while (1)
loops++
if(loops>=6000)
CRASH("Something TERRIBLE has gone wrong in ParseFunctionStatement ;__;")
@@ -186,4 +186,4 @@
return
var/node/expression/P=ParseParamExpression()
stmt.parameters+=P
- if(istype(curToken, /token/symbol) && curToken.value==",") NextToken()
\ No newline at end of file
+ if(istype(curToken, /token/symbol) && curToken.value==",") NextToken()
diff --git a/code/modules/scripting/Scanner/Scanner.dm b/code/modules/scripting/Scanner/Scanner.dm
index 35f21b39fd0..c052497c412 100644
--- a/code/modules/scripting/Scanner/Scanner.dm
+++ b/code/modules/scripting/Scanner/Scanner.dm
@@ -153,8 +153,7 @@
start - The character used to start the string.
*/
ReadString(start)
- var
- buf
+ var/buf
for(, codepos <= lentext(code), codepos++)//codepos to lentext(code))
var/char=copytext(code, codepos, codepos+1)
switch(char)
@@ -189,9 +188,8 @@
Reads characters separated by an item in into a token.
*/
ReadWord()
- var
- char=copytext(code, codepos, codepos+1)
- buf
+ var/char=copytext(code, codepos, codepos+1)
+ var/buf
while(!delim.Find(char) && codepos<=lentext(code))
buf+=char
char=copytext(code, ++codepos, codepos+1)
@@ -206,9 +204,8 @@
Reads a symbol into a token.
*/
ReadSymbol()
- var
- char=copytext(code, codepos, codepos+1)
- buf
+ var/char=copytext(code, codepos, codepos+1)
+ var/buf
while(options.symbols.Find(buf+char))
buf+=char
@@ -223,10 +220,9 @@
Reads a number into a token.
*/
ReadNumber()
- var
- char=copytext(code, codepos, codepos+1)
- buf
- dec=0
+ var/char = copytext(code, codepos, codepos+1)
+ var/buf
+ var/dec = 0
while(options.IsDigit(char) || (char=="." && !dec))
if(char==".") dec=1
@@ -246,14 +242,13 @@
*/
ReadComment()
- var
- char=copytext(code, codepos, codepos+1)
- nextchar=copytext(code, codepos+1, codepos+2)
- charstring = char+nextchar
- comm = 1
+ var/char = copytext(code, codepos, codepos+1)
+ var/nextchar = copytext(code, codepos+1, codepos+2)
+ var/charstring = char+nextchar
+ var/comm = 1
// 1: single-line comment
// 2: multi-line comment
- expectedend = 0
+ var/expectedend = 0
if(charstring == "//" || charstring == "/*")
if(charstring == "/*")
diff --git a/code/unit_tests/mob_tests.dm b/code/unit_tests/mob_tests.dm
index bb319a71248..c20559424c0 100644
--- a/code/unit_tests/mob_tests.dm
+++ b/code/unit_tests/mob_tests.dm
@@ -582,7 +582,6 @@ datum/unit_test/robot_module_icons/start_test()
return 1
-#undef VULNERABLE
#undef IMMUNE
#undef SUCCESS
#undef FAILURE
diff --git a/html/changelog.html b/html/changelog.html
index 86a7005ee97..efa29141d16 100644
--- a/html/changelog.html
+++ b/html/changelog.html
@@ -35,11 +35,87 @@
-->
+
16 November 2019
+
Ferner updated:
+
+
Service grippers can now pick up cutlery.
+
Xenobotanists now spawn with the right access again.
+
+
+
15 November 2019
+
BRAINOS updated:
+
+
Slightly updated the military jackets.
+
+
Geeves, Kyres1 updated:
+
+
A new mascot has been introduced to Engineering, Ginny, the baby space carp.
+
+
JohnWildkins updated:
+
+
Fixed alternate utility belt not starting with tools when selected from loadout.
+
Alternate utility belt is now free to select. Engineering Apprentices can elect to spawn with one, but it will be empty.
+
Job outfits now fill utility belts using belt_contents rather than simply spawning sub-types of utility belt.
+
Microwaves have been reworked from the ground up on the back-end. Microwaves have been moved to a process-based system for cooking, and behave more similarly to other cooking devices.
+
Microwaves have had their UI rebuilt from scratch in Vue.
+
You can now eject individual ingredients and reagents from a microwave. To perform the latter, you must be holding a reagent container with enough space in your hands.
+
You can now start microwaves by alt-clicking on them.
+
Microwaves can now be upgraded, with matter bins, capacitors, and the micro laser affecting maximum cookable items, power usage, and cook time respectively.
+
Microwaves now display their cook time as a progress bar in the UI. Cook time has been reduced across the board.
+
Eject verb for microwaves removed. All interfacing should now be done via the UI.
+
Bugs both known and unknown relating to the old UI and general instability of the microwave have been solved, including food duplication.
+
Vue UI progress bar element now caps width at 100%.
+
Fixed the loadout fixes spewing tools into engineers' backpacks.
+
+
+
14 November 2019
+
Geeves updated:
+
+
Unathi can flick their tongues to get a gas reading of the room.
+
+
ParadoxSpace updated:
+
+
Skrell eyes are now actually black instead of a dark blue.
+
Realigns one of the headtail jewelries.
+
+
Wowzewow updated:
+
+
Fixes Jack O' Lanterns. Carve a pumpkin, shove a candle in it and light it with a lighter.
+
New pumpkin, carved pumpkin, jack o' lantern and candle sprites.
+
+
Wowzewow(Wezzy) updated:
+
+
Xenoarcheology depth scanner no longer invisible, with new sprite to boot!
+
Clicking on posters with help-intent no longer rips it off the wall like a neanderthal, but instead examines it.
+
Tweaks some Christmas and device sprites.
+
+
13 November 2019
+
Alberyk, BRAINOS updated:
+
+
Added a new meat steak sprite.
+
Doxxmedearly updated:
Adds a sound effect to decompiler when used on a mob, and enables it to decompile slightly larger pests.
+
Ferner updated:
+
+
Tweaked the range and heightened the dropoff of some sounds, particularly gunfire. Emitters are also audible through walls again.
+
Xenobotanists will now spawn with the correct uniform.
+
Fixed an issue with single slot ghost spawners being disabled preemptively. Made the Kataphracts truly unathi exclusive.
+
+
Geeves updated:
+
+
You can now crawl under a lot more circumstances, if you click drag yourself while laying down.
+
Robotics updates:
+
The phoron generator is now safe to use, it does not pollute the environment.
+
More mechfab things have been split into catagories that make sense. Tech level required for some things have been reduced.
+
Robotics can now print robotic internal organs to replace organic organs.
+
Vampires can now choose whether they want their victims to remember the sucking, or forget and be paralyzed.
+
A new vampire ability has been added, "Touch of Life", which gives the target beneficial chemicals.
+
Coming down from frenzy will not call xenos human anymore.
\n\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./main.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./main.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./main.vue?vue&type=template&id=7410fe14&scoped=true&\"\nimport script from \"./main.vue?vue&type=script&lang=js&\"\nexport * from \"./main.vue?vue&type=script&lang=js&\"\nimport style0 from \"./main.vue?vue&type=style&index=0&id=7410fe14&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7410fe14\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./voting.vue?vue&type=style&index=0&id=8bcc2668&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./voting.vue?vue&type=style&index=0&id=8bcc2668&lang=scss&scoped=true&\"","'use strict';\nvar $ = require('../internals/export');\nvar toLength = require('../internals/to-length');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar nativeEndsWith = ''.endsWith;\nvar min = Math.min;\n\n// `String.prototype.endsWith` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.endswith\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('endsWith') }, {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = toLength(that.length);\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = String(searchString);\n return nativeEndsWith\n ? nativeEndsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? charAt(S, index).length : 1);\n};\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","'use strict';\nvar regexpFlags = require('./regexp-flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"itemLabel\"},[_vm._v(\"Confirm identity:\")]),_c('div',{staticClass:\"itemContent\"},[_c('vui-button',{attrs:{\"params\":{ scan: 1 },\"icon\":\"eject\"}},[(_vm.state.idname)?_c('span',[_vm._v(_vm._s(_vm.state.idname))]):_c('span',[_vm._v(\"--------\")])])],1)]),(_vm.state.auth)?_c('div',{staticStyle:{\"margin-top\":\"24px\",\"clear\":\"both\"}},[_c('b',[_vm._v(\"Logged in to:\")]),_vm._v(\" \"+_vm._s(_vm.state.bossname)+\" Quantum Entanglement Network\\n \"),(_vm.remaining_cooldown <= 0)?[_c('vui-item',{attrs:{\"label\":\"Sending to:\"}},[_c('select',{directives:[{name:\"model\",rawName:\"v-model.lazy\",value:(_vm.state.destination),expression:\"state.destination\",modifiers:{\"lazy\":true}}],staticClass:\"button\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.state, \"destination\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.state.departiments),function(dep){return _c('option',{key:dep,domProps:{\"value\":dep}},[_vm._v(_vm._s(dep))])}),0)]),(_vm.state.paper)?[_c('vui-item',{attrs:{\"label\":\"Currently sending:\"}},[_vm._v(_vm._s(_vm.state.paper))]),_c('vui-button',{attrs:{\"push-state\":\"\",\"params\":{ send: 1}}},[_vm._v(\"Send\")])]:_c('span',[_vm._v(\"Please insert paper to send via secure connection.\")])]:_c('span',[_c('b',[_vm._v(\"Transmitter arrays realigning. Please stand by. \"+_vm._s(_vm._f(\"roundRemaining\")(_vm.remaining_cooldown))+\" seconds remaining.\")])])],2):_vm._e(),(_vm.state.paper)?_c('vui-button',{attrs:{\"params\":{ remove: 1}}},[_vm._v(\"Remove item\")]):_vm._e(),_c('h3',[_vm._v(\"PDAs to notify:\")]),_vm._l((_vm.state.alertpdas),function(pda){return _c('div',{key:pda.ref},[_vm._v(\"\\n \"+_vm._s(pda.name)+\" \"),_c('vui-button',{attrs:{\"params\":{ unlink: pda.ref }}},[_vm._v(\"Unlink\")])],1)}),(_vm.state.alertpdas.length <= 0)?_c('div',[_vm._v(\"No PDAs are linked.\")]):_vm._e(),_c('vui-button',{attrs:{\"params\":{ linkpda: 1 }}},[_vm._v(\"Add PDA to Notify\")])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n
\n
\n
Confirm identity:
\n
\n {{ state.idname }}--------\n
\n
\n
\n Logged in to: {{ state.bossname }} Quantum Entanglement Network\n \n \n \n \n \n {{ state.paper }}\n Send\n \n Please insert paper to send via secure connection.\n \n Transmitter arrays realigning. Please stand by. {{ remaining_cooldown | roundRemaining}} seconds remaining.\n
\n Remove item\n \n
PDAs to notify:
\n
\n {{ pda.name }} Unlink\n
\n
No PDAs are linked.
\n Add PDA to Notify\n
\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./fax.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./fax.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./fax.vue?vue&type=template&id=4b0e320e&scoped=true&\"\nimport script from \"./fax.vue?vue&type=script&lang=js&\"\nexport * from \"./fax.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4b0e320e\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\nvar IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n concat: function concat(arg) { // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./security.vue?vue&type=style&index=0&id=bdd670aa&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./security.vue?vue&type=style&index=0&id=bdd670aa&lang=scss&scoped=true&\"","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var shared = require('../internals/shared');\n\nmodule.exports = shared('native-function-to-string', Function.toString);\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","/*!\n * Vue.js v2.6.10\n * (c) 2014-2019 Evan You\n * Released under the MIT License.\n */\n/* */\n\nvar emptyObject = Object.freeze({});\n\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\n\nfunction toRawType (value) {\n return _toString.call(value).slice(8, -1)\n}\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\nfunction isPromise (val) {\n return (\n isDef(val) &&\n typeof val.then === 'function' &&\n typeof val.catch === 'function'\n )\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n\n/**\n * Remove an item from an array.\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase()\n});\n\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n\n/* istanbul ignore next */\nfunction polyfillBind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n\n boundFn._length = fn.length;\n return boundFn\n}\n\nfunction nativeBind (fn, ctx) {\n return fn.bind(ctx)\n}\n\nvar bind = Function.prototype.bind\n ? nativeBind\n : polyfillBind;\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/* eslint-disable no-unused-vars */\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/* eslint-enable no-unused-vars */\n\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n\n/**\n * Generate a string containing static keys from compiler modules.\n */\nfunction genStaticKeys (modules) {\n return modules.reduce(function (keys, m) {\n return keys.concat(m.staticKeys || [])\n }, []).join(',')\n}\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime()\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured',\n 'serverPrefetch'\n];\n\n/* */\n\n\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n});\n\n/* */\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp((\"[^\" + (unicodeRegExp.source) + \".$_\\\\d]\"));\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;\nvar weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');\nvar isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\nvar isPhantomJS = UA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n\n// Firefox has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && !inWeex && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\nvar _Set;\n/* istanbul ignore if */ // $flow-disable-line\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /*@__PURE__*/(function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar generateComponentTrace = (noop); // work around flow check\nvar formatComponentName = (noop);\n\nif (process.env.NODE_ENV !== 'production') {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return ''\n }\n var options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm;\n var name = options.name || options._componentTag;\n var file = options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) { return a.id - b.id; });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (target) {\n targetStack.push(target);\n Dep.target = target;\n}\n\nfunction popTarget () {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(),\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\n\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\n\nfunction toggleObserving (value) {\n shouldObserve = value;\n}\n\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n if (hasProto) {\n protoAugment(value, arrayMethods);\n } else {\n copyAugment(value, arrayMethods, arrayKeys);\n }\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment a target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment a target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n shouldObserve &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) && arguments.length === 2) {\n val = obj[key];\n }\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n // #7981: for accessor properties without setter\n if (getter && !setter) { return }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot set reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot delete reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (process.env.NODE_ENV !== 'production') {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n\n var keys = hasSymbol\n ? Reflect.ownKeys(from)\n : Object.keys(from);\n\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n // in case the object is already observed...\n if (key === '__ob__') { continue }\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (\n toVal !== fromVal &&\n isPlainObject(toVal) &&\n isPlainObject(fromVal)\n ) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n process.env.NODE_ENV !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n var res = childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal;\n return res\n ? dedupeHooks(res)\n : res\n}\n\nfunction dedupeHooks (hooks) {\n var res = [];\n for (var i = 0; i < hooks.length; i++) {\n if (res.indexOf(hooks[i]) === -1) {\n res.push(hooks[i]);\n }\n }\n return res\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!new RegExp((\"^[a-zA-Z][\\\\-\\\\.0-9_\" + (unicodeRegExp.source) + \"]*$\")).test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'should conform to valid custom element name in html5 specification.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (process.env.NODE_ENV !== 'production') {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def$$1 = dirs[key];\n if (typeof def$$1 === 'function') {\n dirs[key] = { bind: def$$1, update: def$$1 };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (process.env.NODE_ENV !== 'production') {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n\n // Apply extends and mixins on the child options,\n // but only if it is a raw options object that isn't\n // the result of another mergeOptions call.\n // Only merged options has the _base property.\n if (!child._base) {\n if (child.extends) {\n parent = mergeOptions(parent, child.extends, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n }\n\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\n\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // boolean casting\n var booleanIndex = getTypeIndex(Boolean, prop.type);\n if (booleanIndex > -1) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (value === '' || value === hyphenate(key)) {\n // only cast empty string / same name to boolean if\n // boolean has higher priority\n var stringIndex = getTypeIndex(String, prop.type);\n if (stringIndex < 0 || booleanIndex < stringIndex) {\n value = true;\n }\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldObserve = shouldObserve;\n toggleObserving(true);\n observe(value);\n toggleObserving(prevShouldObserve);\n }\n if (\n process.env.NODE_ENV !== 'production' &&\n // skip validation for weex recycle-list child component props\n !(false)\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (process.env.NODE_ENV !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n\n if (!valid) {\n warn(\n getInvalidTypeMessage(name, value, expectedTypes),\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isSameType (a, b) {\n return getType(a) === getType(b)\n}\n\nfunction getTypeIndex (type, expectedTypes) {\n if (!Array.isArray(expectedTypes)) {\n return isSameType(expectedTypes, type) ? 0 : -1\n }\n for (var i = 0, len = expectedTypes.length; i < len; i++) {\n if (isSameType(expectedTypes[i], type)) {\n return i\n }\n }\n return -1\n}\n\nfunction getInvalidTypeMessage (name, value, expectedTypes) {\n var message = \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', '));\n var expectedType = expectedTypes[0];\n var receivedType = toRawType(value);\n var expectedValue = styleValue(value, expectedType);\n var receivedValue = styleValue(value, receivedType);\n // check if we need to specify expected value\n if (expectedTypes.length === 1 &&\n isExplicable(expectedType) &&\n !isBoolean(expectedType, receivedType)) {\n message += \" with value \" + expectedValue;\n }\n message += \", got \" + receivedType + \" \";\n // check if we need to specify received value\n if (isExplicable(receivedType)) {\n message += \"with value \" + receivedValue + \".\";\n }\n return message\n}\n\nfunction styleValue (value, type) {\n if (type === 'String') {\n return (\"\\\"\" + value + \"\\\"\")\n } else if (type === 'Number') {\n return (\"\" + (Number(value)))\n } else {\n return (\"\" + value)\n }\n}\n\nfunction isExplicable (value) {\n var explicitTypes = ['string', 'number', 'boolean'];\n return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })\n}\n\nfunction isBoolean () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.\n // See: https://github.com/vuejs/vuex/issues/1505\n pushTarget();\n try {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n } finally {\n popTarget();\n }\n}\n\nfunction invokeWithErrorHandling (\n handler,\n context,\n args,\n vm,\n info\n) {\n var res;\n try {\n res = args ? handler.apply(context, args) : handler.call(context);\n if (res && !res._isVue && isPromise(res) && !res._handled) {\n res.catch(function (e) { return handleError(e, vm, info + \" (Promise/async)\"); });\n // issue #9511\n // avoid catch triggering multiple times when nested calls\n res._handled = true;\n }\n } catch (e) {\n handleError(e, vm, info);\n }\n return res\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n // if the user intentionally throws the original error in the handler,\n // do not log it twice\n if (e !== err) {\n logError(e, null, 'config.errorHandler');\n }\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n\nvar isUsingMicroTask = false;\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using microtasks.\n// In 2.5 we used (macro) tasks (in combination with microtasks).\n// However, it has subtle problems when state is changed right before repaint\n// (e.g. #6813, out-in transitions).\n// Also, using (macro) tasks in event handler would cause some weird behaviors\n// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).\n// So we now use microtasks everywhere, again.\n// A major drawback of this tradeoff is that there are some scenarios\n// where microtasks have too high a priority and fire in between supposedly\n// sequential events (e.g. #4521, #6690, which have workarounds)\n// or even between bubbling of the same event (#6566).\nvar timerFunc;\n\n// The nextTick behavior leverages the microtask queue, which can be accessed\n// via either native Promise.then or MutationObserver.\n// MutationObserver has wider support, however it is seriously bugged in\n// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n// completely stops working after triggering a few times... so, if native\n// Promise is available, we will use it:\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n timerFunc = function () {\n p.then(flushCallbacks);\n // In problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n isUsingMicroTask = true;\n} else if (!isIE && typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n)) {\n // Use MutationObserver where native Promise is not available,\n // e.g. PhantomJS, iOS7, Android 4.4\n // (#6466 MutationObserver is unreliable in IE11)\n var counter = 1;\n var observer = new MutationObserver(flushCallbacks);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n isUsingMicroTask = true;\n} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n // Fallback to setImmediate.\n // Techinically it leverages the (macro) task queue,\n // but it is still a better choice than setTimeout.\n timerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else {\n // Fallback to setTimeout.\n timerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (process.env.NODE_ENV !== 'production') {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n // perf.clearMeasures(name)\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (process.env.NODE_ENV !== 'production') {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var warnReservedPrefix = function (target, key) {\n warn(\n \"Property \\\"\" + key + \"\\\" must be accessed with \\\"$data.\" + key + \"\\\" because \" +\n 'properties starting with \"$\" or \"_\" are not proxied in the Vue instance to ' +\n 'prevent conflicts with Vue internals' +\n 'See: https://vuejs.org/v2/api/#data',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' && isNative(Proxy);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) ||\n (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));\n if (!has && !isAllowed) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns, vm) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments$1, vm, \"v-on handler\");\n }\n } else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\")\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n createOnceHandler,\n vm\n) {\n var name, def$$1, cur, old, event;\n for (name in on) {\n def$$1 = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g. , , v-for, or when the children is provided by user\n// with hand-written render functions / JSX. In such cases a full normalization\n// is needed to cater to all possible types of children values.\nfunction normalizeChildren (children) {\n return isPrimitive(children)\n ? [createTextVNode(children)]\n : Array.isArray(children)\n ? normalizeArrayChildren(children)\n : undefined\n}\n\nfunction isTextNode (node) {\n return isDef(node) && isDef(node.text) && isFalse(node.isComment)\n}\n\nfunction normalizeArrayChildren (children, nestedIndex) {\n var res = [];\n var i, c, lastIndex, last;\n for (i = 0; i < children.length; i++) {\n c = children[i];\n if (isUndef(c) || typeof c === 'boolean') { continue }\n lastIndex = res.length - 1;\n last = res[lastIndex];\n // nested\n if (Array.isArray(c)) {\n if (c.length > 0) {\n c = normalizeArrayChildren(c, ((nestedIndex || '') + \"_\" + i));\n // merge adjacent text nodes\n if (isTextNode(c[0]) && isTextNode(last)) {\n res[lastIndex] = createTextVNode(last.text + (c[0]).text);\n c.shift();\n }\n res.push.apply(res, c);\n }\n } else if (isPrimitive(c)) {\n if (isTextNode(last)) {\n // merge adjacent text nodes\n // this is necessary for SSR hydration because text nodes are\n // essentially merged when rendered to HTML strings\n res[lastIndex] = createTextVNode(last.text + c);\n } else if (c !== '') {\n // convert primitive to vnode\n res.push(createTextVNode(c));\n }\n } else {\n if (isTextNode(c) && isTextNode(last)) {\n // merge adjacent text nodes\n res[lastIndex] = createTextVNode(last.text + c.text);\n } else {\n // default key for nested array children (likely generated by v-for)\n if (isTrue(children._isVList) &&\n isDef(c.tag) &&\n isUndef(c.key) &&\n isDef(nestedIndex)) {\n c.key = \"__vlist\" + nestedIndex + \"_\" + i + \"__\";\n }\n res.push(c);\n }\n }\n }\n return res\n}\n\n/* */\n\nfunction initProvide (vm) {\n var provide = vm.$options.provide;\n if (provide) {\n vm._provided = typeof provide === 'function'\n ? provide.call(vm)\n : provide;\n }\n}\n\nfunction initInjections (vm) {\n var result = resolveInject(vm.$options.inject, vm);\n if (result) {\n toggleObserving(false);\n Object.keys(result).forEach(function (key) {\n /* istanbul ignore else */\n if (process.env.NODE_ENV !== 'production') {\n defineReactive$$1(vm, key, result[key], function () {\n warn(\n \"Avoid mutating an injected value directly since the changes will be \" +\n \"overwritten whenever the provided component re-renders. \" +\n \"injection being mutated: \\\"\" + key + \"\\\"\",\n vm\n );\n });\n } else {\n defineReactive$$1(vm, key, result[key]);\n }\n });\n toggleObserving(true);\n }\n}\n\nfunction resolveInject (inject, vm) {\n if (inject) {\n // inject is :any because flow is not smart enough to figure out cached\n var result = Object.create(null);\n var keys = hasSymbol\n ? Reflect.ownKeys(inject)\n : Object.keys(inject);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n // #6574 in case the inject object is observed...\n if (key === '__ob__') { continue }\n var provideKey = inject[key].from;\n var source = vm;\n while (source) {\n if (source._provided && hasOwn(source._provided, provideKey)) {\n result[key] = source._provided[provideKey];\n break\n }\n source = source.$parent;\n }\n if (!source) {\n if ('default' in inject[key]) {\n var provideDefault = inject[key].default;\n result[key] = typeof provideDefault === 'function'\n ? provideDefault.call(vm)\n : provideDefault;\n } else if (process.env.NODE_ENV !== 'production') {\n warn((\"Injection \\\"\" + key + \"\\\" not found\"), vm);\n }\n }\n }\n return result\n }\n}\n\n/* */\n\n\n\n/**\n * Runtime helper for resolving raw children VNodes into a slot object.\n */\nfunction resolveSlots (\n children,\n context\n) {\n if (!children || !children.length) {\n return {}\n }\n var slots = {};\n for (var i = 0, l = children.length; i < l; i++) {\n var child = children[i];\n var data = child.data;\n // remove slot attribute if the node is resolved as a Vue slot node\n if (data && data.attrs && data.attrs.slot) {\n delete data.attrs.slot;\n }\n // named slots should only be respected if the vnode was rendered in the\n // same context.\n if ((child.context === context || child.fnContext === context) &&\n data && data.slot != null\n ) {\n var name = data.slot;\n var slot = (slots[name] || (slots[name] = []));\n if (child.tag === 'template') {\n slot.push.apply(slot, child.children || []);\n } else {\n slot.push(child);\n }\n } else {\n (slots.default || (slots.default = [])).push(child);\n }\n }\n // ignore slots that contains only whitespace\n for (var name$1 in slots) {\n if (slots[name$1].every(isWhitespace)) {\n delete slots[name$1];\n }\n }\n return slots\n}\n\nfunction isWhitespace (node) {\n return (node.isComment && !node.asyncFactory) || node.text === ' '\n}\n\n/* */\n\nfunction normalizeScopedSlots (\n slots,\n normalSlots,\n prevSlots\n) {\n var res;\n var hasNormalSlots = Object.keys(normalSlots).length > 0;\n var isStable = slots ? !!slots.$stable : !hasNormalSlots;\n var key = slots && slots.$key;\n if (!slots) {\n res = {};\n } else if (slots._normalized) {\n // fast path 1: child component re-render only, parent did not change\n return slots._normalized\n } else if (\n isStable &&\n prevSlots &&\n prevSlots !== emptyObject &&\n key === prevSlots.$key &&\n !hasNormalSlots &&\n !prevSlots.$hasNormal\n ) {\n // fast path 2: stable scoped slots w/ no normal slots to proxy,\n // only need to normalize once\n return prevSlots\n } else {\n res = {};\n for (var key$1 in slots) {\n if (slots[key$1] && key$1[0] !== '$') {\n res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);\n }\n }\n }\n // expose normal slots on scopedSlots\n for (var key$2 in normalSlots) {\n if (!(key$2 in res)) {\n res[key$2] = proxyNormalSlot(normalSlots, key$2);\n }\n }\n // avoriaz seems to mock a non-extensible $scopedSlots object\n // and when that is passed down this would cause an error\n if (slots && Object.isExtensible(slots)) {\n (slots)._normalized = res;\n }\n def(res, '$stable', isStable);\n def(res, '$key', key);\n def(res, '$hasNormal', hasNormalSlots);\n return res\n}\n\nfunction normalizeScopedSlot(normalSlots, key, fn) {\n var normalized = function () {\n var res = arguments.length ? fn.apply(null, arguments) : fn({});\n res = res && typeof res === 'object' && !Array.isArray(res)\n ? [res] // single vnode\n : normalizeChildren(res);\n return res && (\n res.length === 0 ||\n (res.length === 1 && res[0].isComment) // #9658\n ) ? undefined\n : res\n };\n // this is a slot using the new v-slot syntax without scope. although it is\n // compiled as a scoped slot, render fn users would expect it to be present\n // on this.$slots because the usage is semantically a normal slot.\n if (fn.proxy) {\n Object.defineProperty(normalSlots, key, {\n get: normalized,\n enumerable: true,\n configurable: true\n });\n }\n return normalized\n}\n\nfunction proxyNormalSlot(slots, key) {\n return function () { return slots[key]; }\n}\n\n/* */\n\n/**\n * Runtime helper for rendering v-for lists.\n */\nfunction renderList (\n val,\n render\n) {\n var ret, i, l, keys, key;\n if (Array.isArray(val) || typeof val === 'string') {\n ret = new Array(val.length);\n for (i = 0, l = val.length; i < l; i++) {\n ret[i] = render(val[i], i);\n }\n } else if (typeof val === 'number') {\n ret = new Array(val);\n for (i = 0; i < val; i++) {\n ret[i] = render(i + 1, i);\n }\n } else if (isObject(val)) {\n if (hasSymbol && val[Symbol.iterator]) {\n ret = [];\n var iterator = val[Symbol.iterator]();\n var result = iterator.next();\n while (!result.done) {\n ret.push(render(result.value, ret.length));\n result = iterator.next();\n }\n } else {\n keys = Object.keys(val);\n ret = new Array(keys.length);\n for (i = 0, l = keys.length; i < l; i++) {\n key = keys[i];\n ret[i] = render(val[key], key, i);\n }\n }\n }\n if (!isDef(ret)) {\n ret = [];\n }\n (ret)._isVList = true;\n return ret\n}\n\n/* */\n\n/**\n * Runtime helper for rendering \n */\nfunction renderSlot (\n name,\n fallback,\n props,\n bindObject\n) {\n var scopedSlotFn = this.$scopedSlots[name];\n var nodes;\n if (scopedSlotFn) { // scoped slot\n props = props || {};\n if (bindObject) {\n if (process.env.NODE_ENV !== 'production' && !isObject(bindObject)) {\n warn(\n 'slot v-bind without argument expects an Object',\n this\n );\n }\n props = extend(extend({}, bindObject), props);\n }\n nodes = scopedSlotFn(props) || fallback;\n } else {\n nodes = this.$slots[name] || fallback;\n }\n\n var target = props && props.slot;\n if (target) {\n return this.$createElement('template', { slot: target }, nodes)\n } else {\n return nodes\n }\n}\n\n/* */\n\n/**\n * Runtime helper for resolving filters\n */\nfunction resolveFilter (id) {\n return resolveAsset(this.$options, 'filters', id, true) || identity\n}\n\n/* */\n\nfunction isKeyNotMatch (expect, actual) {\n if (Array.isArray(expect)) {\n return expect.indexOf(actual) === -1\n } else {\n return expect !== actual\n }\n}\n\n/**\n * Runtime helper for checking keyCodes from config.\n * exposed as Vue.prototype._k\n * passing in eventKeyName as last argument separately for backwards compat\n */\nfunction checkKeyCodes (\n eventKeyCode,\n key,\n builtInKeyCode,\n eventKeyName,\n builtInKeyName\n) {\n var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;\n if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {\n return isKeyNotMatch(builtInKeyName, eventKeyName)\n } else if (mappedKeyCode) {\n return isKeyNotMatch(mappedKeyCode, eventKeyCode)\n } else if (eventKeyName) {\n return hyphenate(eventKeyName) !== key\n }\n}\n\n/* */\n\n/**\n * Runtime helper for merging v-bind=\"object\" into a VNode's data.\n */\nfunction bindObjectProps (\n data,\n tag,\n value,\n asProp,\n isSync\n) {\n if (value) {\n if (!isObject(value)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'v-bind without argument expects an Object or Array value',\n this\n );\n } else {\n if (Array.isArray(value)) {\n value = toObject(value);\n }\n var hash;\n var loop = function ( key ) {\n if (\n key === 'class' ||\n key === 'style' ||\n isReservedAttribute(key)\n ) {\n hash = data;\n } else {\n var type = data.attrs && data.attrs.type;\n hash = asProp || config.mustUseProp(tag, type, key)\n ? data.domProps || (data.domProps = {})\n : data.attrs || (data.attrs = {});\n }\n var camelizedKey = camelize(key);\n var hyphenatedKey = hyphenate(key);\n if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {\n hash[key] = value[key];\n\n if (isSync) {\n var on = data.on || (data.on = {});\n on[(\"update:\" + key)] = function ($event) {\n value[key] = $event;\n };\n }\n }\n };\n\n for (var key in value) loop( key );\n }\n }\n return data\n}\n\n/* */\n\n/**\n * Runtime helper for rendering static trees.\n */\nfunction renderStatic (\n index,\n isInFor\n) {\n var cached = this._staticTrees || (this._staticTrees = []);\n var tree = cached[index];\n // if has already-rendered static tree and not inside v-for,\n // we can reuse the same tree.\n if (tree && !isInFor) {\n return tree\n }\n // otherwise, render a fresh tree.\n tree = cached[index] = this.$options.staticRenderFns[index].call(\n this._renderProxy,\n null,\n this // for render fns generated for functional component templates\n );\n markStatic(tree, (\"__static__\" + index), false);\n return tree\n}\n\n/**\n * Runtime helper for v-once.\n * Effectively it means marking the node as static with a unique key.\n */\nfunction markOnce (\n tree,\n index,\n key\n) {\n markStatic(tree, (\"__once__\" + index + (key ? (\"_\" + key) : \"\")), true);\n return tree\n}\n\nfunction markStatic (\n tree,\n key,\n isOnce\n) {\n if (Array.isArray(tree)) {\n for (var i = 0; i < tree.length; i++) {\n if (tree[i] && typeof tree[i] !== 'string') {\n markStaticNode(tree[i], (key + \"_\" + i), isOnce);\n }\n }\n } else {\n markStaticNode(tree, key, isOnce);\n }\n}\n\nfunction markStaticNode (node, key, isOnce) {\n node.isStatic = true;\n node.key = key;\n node.isOnce = isOnce;\n}\n\n/* */\n\nfunction bindObjectListeners (data, value) {\n if (value) {\n if (!isPlainObject(value)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'v-on without argument expects an Object value',\n this\n );\n } else {\n var on = data.on = data.on ? extend({}, data.on) : {};\n for (var key in value) {\n var existing = on[key];\n var ours = value[key];\n on[key] = existing ? [].concat(existing, ours) : ours;\n }\n }\n }\n return data\n}\n\n/* */\n\nfunction resolveScopedSlots (\n fns, // see flow/vnode\n res,\n // the following are added in 2.6\n hasDynamicKeys,\n contentHashKey\n) {\n res = res || { $stable: !hasDynamicKeys };\n for (var i = 0; i < fns.length; i++) {\n var slot = fns[i];\n if (Array.isArray(slot)) {\n resolveScopedSlots(slot, res, hasDynamicKeys);\n } else if (slot) {\n // marker for reverse proxying v-slot without scope on this.$slots\n if (slot.proxy) {\n slot.fn.proxy = true;\n }\n res[slot.key] = slot.fn;\n }\n }\n if (contentHashKey) {\n (res).$key = contentHashKey;\n }\n return res\n}\n\n/* */\n\nfunction bindDynamicKeys (baseObj, values) {\n for (var i = 0; i < values.length; i += 2) {\n var key = values[i];\n if (typeof key === 'string' && key) {\n baseObj[values[i]] = values[i + 1];\n } else if (process.env.NODE_ENV !== 'production' && key !== '' && key !== null) {\n // null is a speical value for explicitly removing a binding\n warn(\n (\"Invalid value for dynamic directive argument (expected string or null): \" + key),\n this\n );\n }\n }\n return baseObj\n}\n\n// helper to dynamically append modifier runtime markers to event names.\n// ensure only append when value is already string, otherwise it will be cast\n// to string and cause the type check to miss.\nfunction prependModifier (value, symbol) {\n return typeof value === 'string' ? symbol + value : value\n}\n\n/* */\n\nfunction installRenderHelpers (target) {\n target._o = markOnce;\n target._n = toNumber;\n target._s = toString;\n target._l = renderList;\n target._t = renderSlot;\n target._q = looseEqual;\n target._i = looseIndexOf;\n target._m = renderStatic;\n target._f = resolveFilter;\n target._k = checkKeyCodes;\n target._b = bindObjectProps;\n target._v = createTextVNode;\n target._e = createEmptyVNode;\n target._u = resolveScopedSlots;\n target._g = bindObjectListeners;\n target._d = bindDynamicKeys;\n target._p = prependModifier;\n}\n\n/* */\n\nfunction FunctionalRenderContext (\n data,\n props,\n children,\n parent,\n Ctor\n) {\n var this$1 = this;\n\n var options = Ctor.options;\n // ensure the createElement function in functional components\n // gets a unique context - this is necessary for correct named slot check\n var contextVm;\n if (hasOwn(parent, '_uid')) {\n contextVm = Object.create(parent);\n // $flow-disable-line\n contextVm._original = parent;\n } else {\n // the context vm passed in is a functional context as well.\n // in this case we want to make sure we are able to get a hold to the\n // real context instance.\n contextVm = parent;\n // $flow-disable-line\n parent = parent._original;\n }\n var isCompiled = isTrue(options._compiled);\n var needNormalization = !isCompiled;\n\n this.data = data;\n this.props = props;\n this.children = children;\n this.parent = parent;\n this.listeners = data.on || emptyObject;\n this.injections = resolveInject(options.inject, parent);\n this.slots = function () {\n if (!this$1.$slots) {\n normalizeScopedSlots(\n data.scopedSlots,\n this$1.$slots = resolveSlots(children, parent)\n );\n }\n return this$1.$slots\n };\n\n Object.defineProperty(this, 'scopedSlots', ({\n enumerable: true,\n get: function get () {\n return normalizeScopedSlots(data.scopedSlots, this.slots())\n }\n }));\n\n // support for compiled functional template\n if (isCompiled) {\n // exposing $options for renderStatic()\n this.$options = options;\n // pre-resolve slots for renderSlot()\n this.$slots = this.slots();\n this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);\n }\n\n if (options._scopeId) {\n this._c = function (a, b, c, d) {\n var vnode = createElement(contextVm, a, b, c, d, needNormalization);\n if (vnode && !Array.isArray(vnode)) {\n vnode.fnScopeId = options._scopeId;\n vnode.fnContext = parent;\n }\n return vnode\n };\n } else {\n this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };\n }\n}\n\ninstallRenderHelpers(FunctionalRenderContext.prototype);\n\nfunction createFunctionalComponent (\n Ctor,\n propsData,\n data,\n contextVm,\n children\n) {\n var options = Ctor.options;\n var props = {};\n var propOptions = options.props;\n if (isDef(propOptions)) {\n for (var key in propOptions) {\n props[key] = validateProp(key, propOptions, propsData || emptyObject);\n }\n } else {\n if (isDef(data.attrs)) { mergeProps(props, data.attrs); }\n if (isDef(data.props)) { mergeProps(props, data.props); }\n }\n\n var renderContext = new FunctionalRenderContext(\n data,\n props,\n children,\n contextVm,\n Ctor\n );\n\n var vnode = options.render.call(null, renderContext._c, renderContext);\n\n if (vnode instanceof VNode) {\n return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)\n } else if (Array.isArray(vnode)) {\n var vnodes = normalizeChildren(vnode) || [];\n var res = new Array(vnodes.length);\n for (var i = 0; i < vnodes.length; i++) {\n res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);\n }\n return res\n }\n}\n\nfunction cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {\n // #7817 clone node before setting fnContext, otherwise if the node is reused\n // (e.g. it was from a cached normal slot) the fnContext causes named slots\n // that should not be matched to match.\n var clone = cloneVNode(vnode);\n clone.fnContext = contextVm;\n clone.fnOptions = options;\n if (process.env.NODE_ENV !== 'production') {\n (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;\n }\n if (data.slot) {\n (clone.data || (clone.data = {})).slot = data.slot;\n }\n return clone\n}\n\nfunction mergeProps (to, from) {\n for (var key in from) {\n to[camelize(key)] = from[key];\n }\n}\n\n/* */\n\n/* */\n\n/* */\n\n/* */\n\n// inline hooks to be invoked on component VNodes during patch\nvar componentVNodeHooks = {\n init: function init (vnode, hydrating) {\n if (\n vnode.componentInstance &&\n !vnode.componentInstance._isDestroyed &&\n vnode.data.keepAlive\n ) {\n // kept-alive components, treat as a patch\n var mountedNode = vnode; // work around flow\n componentVNodeHooks.prepatch(mountedNode, mountedNode);\n } else {\n var child = vnode.componentInstance = createComponentInstanceForVnode(\n vnode,\n activeInstance\n );\n child.$mount(hydrating ? vnode.elm : undefined, hydrating);\n }\n },\n\n prepatch: function prepatch (oldVnode, vnode) {\n var options = vnode.componentOptions;\n var child = vnode.componentInstance = oldVnode.componentInstance;\n updateChildComponent(\n child,\n options.propsData, // updated props\n options.listeners, // updated listeners\n vnode, // new parent vnode\n options.children // new children\n );\n },\n\n insert: function insert (vnode) {\n var context = vnode.context;\n var componentInstance = vnode.componentInstance;\n if (!componentInstance._isMounted) {\n componentInstance._isMounted = true;\n callHook(componentInstance, 'mounted');\n }\n if (vnode.data.keepAlive) {\n if (context._isMounted) {\n // vue-router#1212\n // During updates, a kept-alive component's child components may\n // change, so directly walking the tree here may call activated hooks\n // on incorrect children. Instead we push them into a queue which will\n // be processed after the whole patch process ended.\n queueActivatedComponent(componentInstance);\n } else {\n activateChildComponent(componentInstance, true /* direct */);\n }\n }\n },\n\n destroy: function destroy (vnode) {\n var componentInstance = vnode.componentInstance;\n if (!componentInstance._isDestroyed) {\n if (!vnode.data.keepAlive) {\n componentInstance.$destroy();\n } else {\n deactivateChildComponent(componentInstance, true /* direct */);\n }\n }\n }\n};\n\nvar hooksToMerge = Object.keys(componentVNodeHooks);\n\nfunction createComponent (\n Ctor,\n data,\n context,\n children,\n tag\n) {\n if (isUndef(Ctor)) {\n return\n }\n\n var baseCtor = context.$options._base;\n\n // plain options object: turn it into a constructor\n if (isObject(Ctor)) {\n Ctor = baseCtor.extend(Ctor);\n }\n\n // if at this stage it's not a constructor or an async component factory,\n // reject.\n if (typeof Ctor !== 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Invalid Component definition: \" + (String(Ctor))), context);\n }\n return\n }\n\n // async component\n var asyncFactory;\n if (isUndef(Ctor.cid)) {\n asyncFactory = Ctor;\n Ctor = resolveAsyncComponent(asyncFactory, baseCtor);\n if (Ctor === undefined) {\n // return a placeholder node for async component, which is rendered\n // as a comment node but preserves all the raw information for the node.\n // the information will be used for async server-rendering and hydration.\n return createAsyncPlaceholder(\n asyncFactory,\n data,\n context,\n children,\n tag\n )\n }\n }\n\n data = data || {};\n\n // resolve constructor options in case global mixins are applied after\n // component constructor creation\n resolveConstructorOptions(Ctor);\n\n // transform component v-model data into props & events\n if (isDef(data.model)) {\n transformModel(Ctor.options, data);\n }\n\n // extract props\n var propsData = extractPropsFromVNodeData(data, Ctor, tag);\n\n // functional component\n if (isTrue(Ctor.options.functional)) {\n return createFunctionalComponent(Ctor, propsData, data, context, children)\n }\n\n // extract listeners, since these needs to be treated as\n // child component listeners instead of DOM listeners\n var listeners = data.on;\n // replace with listeners with .native modifier\n // so it gets processed during parent component patch.\n data.on = data.nativeOn;\n\n if (isTrue(Ctor.options.abstract)) {\n // abstract components do not keep anything\n // other than props & listeners & slot\n\n // work around flow\n var slot = data.slot;\n data = {};\n if (slot) {\n data.slot = slot;\n }\n }\n\n // install component management hooks onto the placeholder node\n installComponentHooks(data);\n\n // return a placeholder vnode\n var name = Ctor.options.name || tag;\n var vnode = new VNode(\n (\"vue-component-\" + (Ctor.cid) + (name ? (\"-\" + name) : '')),\n data, undefined, undefined, undefined, context,\n { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },\n asyncFactory\n );\n\n return vnode\n}\n\nfunction createComponentInstanceForVnode (\n vnode, // we know it's MountedComponentVNode but flow doesn't\n parent // activeInstance in lifecycle state\n) {\n var options = {\n _isComponent: true,\n _parentVnode: vnode,\n parent: parent\n };\n // check inline-template render functions\n var inlineTemplate = vnode.data.inlineTemplate;\n if (isDef(inlineTemplate)) {\n options.render = inlineTemplate.render;\n options.staticRenderFns = inlineTemplate.staticRenderFns;\n }\n return new vnode.componentOptions.Ctor(options)\n}\n\nfunction installComponentHooks (data) {\n var hooks = data.hook || (data.hook = {});\n for (var i = 0; i < hooksToMerge.length; i++) {\n var key = hooksToMerge[i];\n var existing = hooks[key];\n var toMerge = componentVNodeHooks[key];\n if (existing !== toMerge && !(existing && existing._merged)) {\n hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;\n }\n }\n}\n\nfunction mergeHook$1 (f1, f2) {\n var merged = function (a, b) {\n // flow complains about extra args which is why we use any\n f1(a, b);\n f2(a, b);\n };\n merged._merged = true;\n return merged\n}\n\n// transform component v-model info (value and callback) into\n// prop and event handler respectively.\nfunction transformModel (options, data) {\n var prop = (options.model && options.model.prop) || 'value';\n var event = (options.model && options.model.event) || 'input'\n ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;\n var on = data.on || (data.on = {});\n var existing = on[event];\n var callback = data.model.callback;\n if (isDef(existing)) {\n if (\n Array.isArray(existing)\n ? existing.indexOf(callback) === -1\n : existing !== callback\n ) {\n on[event] = [callback].concat(existing);\n }\n } else {\n on[event] = callback;\n }\n}\n\n/* */\n\nvar SIMPLE_NORMALIZE = 1;\nvar ALWAYS_NORMALIZE = 2;\n\n// wrapper function for providing a more flexible interface\n// without getting yelled at by flow\nfunction createElement (\n context,\n tag,\n data,\n children,\n normalizationType,\n alwaysNormalize\n) {\n if (Array.isArray(data) || isPrimitive(data)) {\n normalizationType = children;\n children = data;\n data = undefined;\n }\n if (isTrue(alwaysNormalize)) {\n normalizationType = ALWAYS_NORMALIZE;\n }\n return _createElement(context, tag, data, children, normalizationType)\n}\n\nfunction _createElement (\n context,\n tag,\n data,\n children,\n normalizationType\n) {\n if (isDef(data) && isDef((data).__ob__)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Avoid using observed data object as vnode data: \" + (JSON.stringify(data)) + \"\\n\" +\n 'Always create fresh vnode data objects in each render!',\n context\n );\n return createEmptyVNode()\n }\n // object syntax in v-bind\n if (isDef(data) && isDef(data.is)) {\n tag = data.is;\n }\n if (!tag) {\n // in case of component :is set to falsy value\n return createEmptyVNode()\n }\n // warn against non-primitive key\n if (process.env.NODE_ENV !== 'production' &&\n isDef(data) && isDef(data.key) && !isPrimitive(data.key)\n ) {\n {\n warn(\n 'Avoid using non-primitive value as key, ' +\n 'use string/number value instead.',\n context\n );\n }\n }\n // support single function children as default scoped slot\n if (Array.isArray(children) &&\n typeof children[0] === 'function'\n ) {\n data = data || {};\n data.scopedSlots = { default: children[0] };\n children.length = 0;\n }\n if (normalizationType === ALWAYS_NORMALIZE) {\n children = normalizeChildren(children);\n } else if (normalizationType === SIMPLE_NORMALIZE) {\n children = simpleNormalizeChildren(children);\n }\n var vnode, ns;\n if (typeof tag === 'string') {\n var Ctor;\n ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);\n if (config.isReservedTag(tag)) {\n // platform built-in elements\n vnode = new VNode(\n config.parsePlatformTagName(tag), data, children,\n undefined, undefined, context\n );\n } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {\n // component\n vnode = createComponent(Ctor, data, context, children, tag);\n } else {\n // unknown or unlisted namespaced elements\n // check at runtime because it may get assigned a namespace when its\n // parent normalizes children\n vnode = new VNode(\n tag, data, children,\n undefined, undefined, context\n );\n }\n } else {\n // direct component options / constructor\n vnode = createComponent(tag, data, context, children);\n }\n if (Array.isArray(vnode)) {\n return vnode\n } else if (isDef(vnode)) {\n if (isDef(ns)) { applyNS(vnode, ns); }\n if (isDef(data)) { registerDeepBindings(data); }\n return vnode\n } else {\n return createEmptyVNode()\n }\n}\n\nfunction applyNS (vnode, ns, force) {\n vnode.ns = ns;\n if (vnode.tag === 'foreignObject') {\n // use default namespace inside foreignObject\n ns = undefined;\n force = true;\n }\n if (isDef(vnode.children)) {\n for (var i = 0, l = vnode.children.length; i < l; i++) {\n var child = vnode.children[i];\n if (isDef(child.tag) && (\n isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {\n applyNS(child, ns, force);\n }\n }\n }\n}\n\n// ref #5318\n// necessary to ensure parent re-render when deep bindings like :style and\n// :class are used on slot nodes\nfunction registerDeepBindings (data) {\n if (isObject(data.style)) {\n traverse(data.style);\n }\n if (isObject(data.class)) {\n traverse(data.class);\n }\n}\n\n/* */\n\nfunction initRender (vm) {\n vm._vnode = null; // the root of the child tree\n vm._staticTrees = null; // v-once cached trees\n var options = vm.$options;\n var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree\n var renderContext = parentVnode && parentVnode.context;\n vm.$slots = resolveSlots(options._renderChildren, renderContext);\n vm.$scopedSlots = emptyObject;\n // bind the createElement fn to this instance\n // so that we get proper render context inside it.\n // args order: tag, data, children, normalizationType, alwaysNormalize\n // internal version is used by render functions compiled from templates\n vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };\n // normalization is always applied for the public version, used in\n // user-written render functions.\n vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };\n\n // $attrs & $listeners are exposed for easier HOC creation.\n // they need to be reactive so that HOCs using them are always updated\n var parentData = parentVnode && parentVnode.data;\n\n /* istanbul ignore else */\n if (process.env.NODE_ENV !== 'production') {\n defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {\n !isUpdatingChildComponent && warn(\"$attrs is readonly.\", vm);\n }, true);\n defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {\n !isUpdatingChildComponent && warn(\"$listeners is readonly.\", vm);\n }, true);\n } else {\n defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, null, true);\n defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, null, true);\n }\n}\n\nvar currentRenderingInstance = null;\n\nfunction renderMixin (Vue) {\n // install runtime convenience helpers\n installRenderHelpers(Vue.prototype);\n\n Vue.prototype.$nextTick = function (fn) {\n return nextTick(fn, this)\n };\n\n Vue.prototype._render = function () {\n var vm = this;\n var ref = vm.$options;\n var render = ref.render;\n var _parentVnode = ref._parentVnode;\n\n if (_parentVnode) {\n vm.$scopedSlots = normalizeScopedSlots(\n _parentVnode.data.scopedSlots,\n vm.$slots,\n vm.$scopedSlots\n );\n }\n\n // set parent vnode. this allows render functions to have access\n // to the data on the placeholder node.\n vm.$vnode = _parentVnode;\n // render self\n var vnode;\n try {\n // There's no need to maintain a stack becaues all render fns are called\n // separately from one another. Nested component's render fns are called\n // when parent component is patched.\n currentRenderingInstance = vm;\n vnode = render.call(vm._renderProxy, vm.$createElement);\n } catch (e) {\n handleError(e, vm, \"render\");\n // return error render result,\n // or previous vnode to prevent render error causing blank component\n /* istanbul ignore else */\n if (process.env.NODE_ENV !== 'production' && vm.$options.renderError) {\n try {\n vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);\n } catch (e) {\n handleError(e, vm, \"renderError\");\n vnode = vm._vnode;\n }\n } else {\n vnode = vm._vnode;\n }\n } finally {\n currentRenderingInstance = null;\n }\n // if the returned array contains only a single node, allow it\n if (Array.isArray(vnode) && vnode.length === 1) {\n vnode = vnode[0];\n }\n // return empty vnode in case the render function errored out\n if (!(vnode instanceof VNode)) {\n if (process.env.NODE_ENV !== 'production' && Array.isArray(vnode)) {\n warn(\n 'Multiple root nodes returned from render function. Render function ' +\n 'should return a single root node.',\n vm\n );\n }\n vnode = createEmptyVNode();\n }\n // set parent\n vnode.parent = _parentVnode;\n return vnode\n };\n}\n\n/* */\n\nfunction ensureCtor (comp, base) {\n if (\n comp.__esModule ||\n (hasSymbol && comp[Symbol.toStringTag] === 'Module')\n ) {\n comp = comp.default;\n }\n return isObject(comp)\n ? base.extend(comp)\n : comp\n}\n\nfunction createAsyncPlaceholder (\n factory,\n data,\n context,\n children,\n tag\n) {\n var node = createEmptyVNode();\n node.asyncFactory = factory;\n node.asyncMeta = { data: data, context: context, children: children, tag: tag };\n return node\n}\n\nfunction resolveAsyncComponent (\n factory,\n baseCtor\n) {\n if (isTrue(factory.error) && isDef(factory.errorComp)) {\n return factory.errorComp\n }\n\n if (isDef(factory.resolved)) {\n return factory.resolved\n }\n\n var owner = currentRenderingInstance;\n if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {\n // already pending\n factory.owners.push(owner);\n }\n\n if (isTrue(factory.loading) && isDef(factory.loadingComp)) {\n return factory.loadingComp\n }\n\n if (owner && !isDef(factory.owners)) {\n var owners = factory.owners = [owner];\n var sync = true;\n var timerLoading = null;\n var timerTimeout = null\n\n ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });\n\n var forceRender = function (renderCompleted) {\n for (var i = 0, l = owners.length; i < l; i++) {\n (owners[i]).$forceUpdate();\n }\n\n if (renderCompleted) {\n owners.length = 0;\n if (timerLoading !== null) {\n clearTimeout(timerLoading);\n timerLoading = null;\n }\n if (timerTimeout !== null) {\n clearTimeout(timerTimeout);\n timerTimeout = null;\n }\n }\n };\n\n var resolve = once(function (res) {\n // cache resolved\n factory.resolved = ensureCtor(res, baseCtor);\n // invoke callbacks only if this is not a synchronous resolve\n // (async resolves are shimmed as synchronous during SSR)\n if (!sync) {\n forceRender(true);\n } else {\n owners.length = 0;\n }\n });\n\n var reject = once(function (reason) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Failed to resolve async component: \" + (String(factory)) +\n (reason ? (\"\\nReason: \" + reason) : '')\n );\n if (isDef(factory.errorComp)) {\n factory.error = true;\n forceRender(true);\n }\n });\n\n var res = factory(resolve, reject);\n\n if (isObject(res)) {\n if (isPromise(res)) {\n // () => Promise\n if (isUndef(factory.resolved)) {\n res.then(resolve, reject);\n }\n } else if (isPromise(res.component)) {\n res.component.then(resolve, reject);\n\n if (isDef(res.error)) {\n factory.errorComp = ensureCtor(res.error, baseCtor);\n }\n\n if (isDef(res.loading)) {\n factory.loadingComp = ensureCtor(res.loading, baseCtor);\n if (res.delay === 0) {\n factory.loading = true;\n } else {\n timerLoading = setTimeout(function () {\n timerLoading = null;\n if (isUndef(factory.resolved) && isUndef(factory.error)) {\n factory.loading = true;\n forceRender(false);\n }\n }, res.delay || 200);\n }\n }\n\n if (isDef(res.timeout)) {\n timerTimeout = setTimeout(function () {\n timerTimeout = null;\n if (isUndef(factory.resolved)) {\n reject(\n process.env.NODE_ENV !== 'production'\n ? (\"timeout (\" + (res.timeout) + \"ms)\")\n : null\n );\n }\n }, res.timeout);\n }\n }\n }\n\n sync = false;\n // return in case resolved synchronously\n return factory.loading\n ? factory.loadingComp\n : factory.resolved\n }\n}\n\n/* */\n\nfunction isAsyncPlaceholder (node) {\n return node.isComment && node.asyncFactory\n}\n\n/* */\n\nfunction getFirstComponentChild (children) {\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n var c = children[i];\n if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {\n return c\n }\n }\n }\n}\n\n/* */\n\n/* */\n\nfunction initEvents (vm) {\n vm._events = Object.create(null);\n vm._hasHookEvent = false;\n // init parent attached events\n var listeners = vm.$options._parentListeners;\n if (listeners) {\n updateComponentListeners(vm, listeners);\n }\n}\n\nvar target;\n\nfunction add (event, fn) {\n target.$on(event, fn);\n}\n\nfunction remove$1 (event, fn) {\n target.$off(event, fn);\n}\n\nfunction createOnceHandler (event, fn) {\n var _target = target;\n return function onceHandler () {\n var res = fn.apply(null, arguments);\n if (res !== null) {\n _target.$off(event, onceHandler);\n }\n }\n}\n\nfunction updateComponentListeners (\n vm,\n listeners,\n oldListeners\n) {\n target = vm;\n updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);\n target = undefined;\n}\n\nfunction eventsMixin (Vue) {\n var hookRE = /^hook:/;\n Vue.prototype.$on = function (event, fn) {\n var vm = this;\n if (Array.isArray(event)) {\n for (var i = 0, l = event.length; i < l; i++) {\n vm.$on(event[i], fn);\n }\n } else {\n (vm._events[event] || (vm._events[event] = [])).push(fn);\n // optimize hook:event cost by using a boolean flag marked at registration\n // instead of a hash lookup\n if (hookRE.test(event)) {\n vm._hasHookEvent = true;\n }\n }\n return vm\n };\n\n Vue.prototype.$once = function (event, fn) {\n var vm = this;\n function on () {\n vm.$off(event, on);\n fn.apply(vm, arguments);\n }\n on.fn = fn;\n vm.$on(event, on);\n return vm\n };\n\n Vue.prototype.$off = function (event, fn) {\n var vm = this;\n // all\n if (!arguments.length) {\n vm._events = Object.create(null);\n return vm\n }\n // array of events\n if (Array.isArray(event)) {\n for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {\n vm.$off(event[i$1], fn);\n }\n return vm\n }\n // specific event\n var cbs = vm._events[event];\n if (!cbs) {\n return vm\n }\n if (!fn) {\n vm._events[event] = null;\n return vm\n }\n // specific handler\n var cb;\n var i = cbs.length;\n while (i--) {\n cb = cbs[i];\n if (cb === fn || cb.fn === fn) {\n cbs.splice(i, 1);\n break\n }\n }\n return vm\n };\n\n Vue.prototype.$emit = function (event) {\n var vm = this;\n if (process.env.NODE_ENV !== 'production') {\n var lowerCaseEvent = event.toLowerCase();\n if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {\n tip(\n \"Event \\\"\" + lowerCaseEvent + \"\\\" is emitted in component \" +\n (formatComponentName(vm)) + \" but the handler is registered for \\\"\" + event + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and you cannot use \" +\n \"v-on to listen to camelCase events when using in-DOM templates. \" +\n \"You should probably use \\\"\" + (hyphenate(event)) + \"\\\" instead of \\\"\" + event + \"\\\".\"\n );\n }\n }\n var cbs = vm._events[event];\n if (cbs) {\n cbs = cbs.length > 1 ? toArray(cbs) : cbs;\n var args = toArray(arguments, 1);\n var info = \"event handler for \\\"\" + event + \"\\\"\";\n for (var i = 0, l = cbs.length; i < l; i++) {\n invokeWithErrorHandling(cbs[i], vm, args, vm, info);\n }\n }\n return vm\n };\n}\n\n/* */\n\nvar activeInstance = null;\nvar isUpdatingChildComponent = false;\n\nfunction setActiveInstance(vm) {\n var prevActiveInstance = activeInstance;\n activeInstance = vm;\n return function () {\n activeInstance = prevActiveInstance;\n }\n}\n\nfunction initLifecycle (vm) {\n var options = vm.$options;\n\n // locate first non-abstract parent\n var parent = options.parent;\n if (parent && !options.abstract) {\n while (parent.$options.abstract && parent.$parent) {\n parent = parent.$parent;\n }\n parent.$children.push(vm);\n }\n\n vm.$parent = parent;\n vm.$root = parent ? parent.$root : vm;\n\n vm.$children = [];\n vm.$refs = {};\n\n vm._watcher = null;\n vm._inactive = null;\n vm._directInactive = false;\n vm._isMounted = false;\n vm._isDestroyed = false;\n vm._isBeingDestroyed = false;\n}\n\nfunction lifecycleMixin (Vue) {\n Vue.prototype._update = function (vnode, hydrating) {\n var vm = this;\n var prevEl = vm.$el;\n var prevVnode = vm._vnode;\n var restoreActiveInstance = setActiveInstance(vm);\n vm._vnode = vnode;\n // Vue.prototype.__patch__ is injected in entry points\n // based on the rendering backend used.\n if (!prevVnode) {\n // initial render\n vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);\n } else {\n // updates\n vm.$el = vm.__patch__(prevVnode, vnode);\n }\n restoreActiveInstance();\n // update __vue__ reference\n if (prevEl) {\n prevEl.__vue__ = null;\n }\n if (vm.$el) {\n vm.$el.__vue__ = vm;\n }\n // if parent is an HOC, update its $el as well\n if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {\n vm.$parent.$el = vm.$el;\n }\n // updated hook is called by the scheduler to ensure that children are\n // updated in a parent's updated hook.\n };\n\n Vue.prototype.$forceUpdate = function () {\n var vm = this;\n if (vm._watcher) {\n vm._watcher.update();\n }\n };\n\n Vue.prototype.$destroy = function () {\n var vm = this;\n if (vm._isBeingDestroyed) {\n return\n }\n callHook(vm, 'beforeDestroy');\n vm._isBeingDestroyed = true;\n // remove self from parent\n var parent = vm.$parent;\n if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {\n remove(parent.$children, vm);\n }\n // teardown watchers\n if (vm._watcher) {\n vm._watcher.teardown();\n }\n var i = vm._watchers.length;\n while (i--) {\n vm._watchers[i].teardown();\n }\n // remove reference from data ob\n // frozen object may not have observer.\n if (vm._data.__ob__) {\n vm._data.__ob__.vmCount--;\n }\n // call the last hook...\n vm._isDestroyed = true;\n // invoke destroy hooks on current rendered tree\n vm.__patch__(vm._vnode, null);\n // fire destroyed hook\n callHook(vm, 'destroyed');\n // turn off all instance listeners.\n vm.$off();\n // remove __vue__ reference\n if (vm.$el) {\n vm.$el.__vue__ = null;\n }\n // release circular reference (#6759)\n if (vm.$vnode) {\n vm.$vnode.parent = null;\n }\n };\n}\n\nfunction mountComponent (\n vm,\n el,\n hydrating\n) {\n vm.$el = el;\n if (!vm.$options.render) {\n vm.$options.render = createEmptyVNode;\n if (process.env.NODE_ENV !== 'production') {\n /* istanbul ignore if */\n if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||\n vm.$options.el || el) {\n warn(\n 'You are using the runtime-only build of Vue where the template ' +\n 'compiler is not available. Either pre-compile the templates into ' +\n 'render functions, or use the compiler-included build.',\n vm\n );\n } else {\n warn(\n 'Failed to mount component: template or render function not defined.',\n vm\n );\n }\n }\n }\n callHook(vm, 'beforeMount');\n\n var updateComponent;\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n updateComponent = function () {\n var name = vm._name;\n var id = vm._uid;\n var startTag = \"vue-perf-start:\" + id;\n var endTag = \"vue-perf-end:\" + id;\n\n mark(startTag);\n var vnode = vm._render();\n mark(endTag);\n measure((\"vue \" + name + \" render\"), startTag, endTag);\n\n mark(startTag);\n vm._update(vnode, hydrating);\n mark(endTag);\n measure((\"vue \" + name + \" patch\"), startTag, endTag);\n };\n } else {\n updateComponent = function () {\n vm._update(vm._render(), hydrating);\n };\n }\n\n // we set this to vm._watcher inside the watcher's constructor\n // since the watcher's initial patch may call $forceUpdate (e.g. inside child\n // component's mounted hook), which relies on vm._watcher being already defined\n new Watcher(vm, updateComponent, noop, {\n before: function before () {\n if (vm._isMounted && !vm._isDestroyed) {\n callHook(vm, 'beforeUpdate');\n }\n }\n }, true /* isRenderWatcher */);\n hydrating = false;\n\n // manually mounted instance, call mounted on self\n // mounted is called for render-created child components in its inserted hook\n if (vm.$vnode == null) {\n vm._isMounted = true;\n callHook(vm, 'mounted');\n }\n return vm\n}\n\nfunction updateChildComponent (\n vm,\n propsData,\n listeners,\n parentVnode,\n renderChildren\n) {\n if (process.env.NODE_ENV !== 'production') {\n isUpdatingChildComponent = true;\n }\n\n // determine whether component has slot children\n // we need to do this before overwriting $options._renderChildren.\n\n // check if there are dynamic scopedSlots (hand-written or compiled but with\n // dynamic slot names). Static scoped slots compiled from template has the\n // \"$stable\" marker.\n var newScopedSlots = parentVnode.data.scopedSlots;\n var oldScopedSlots = vm.$scopedSlots;\n var hasDynamicScopedSlot = !!(\n (newScopedSlots && !newScopedSlots.$stable) ||\n (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||\n (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)\n );\n\n // Any static slot children from the parent may have changed during parent's\n // update. Dynamic scoped slots may also have changed. In such cases, a forced\n // update is necessary to ensure correctness.\n var needsForceUpdate = !!(\n renderChildren || // has new static slots\n vm.$options._renderChildren || // has old static slots\n hasDynamicScopedSlot\n );\n\n vm.$options._parentVnode = parentVnode;\n vm.$vnode = parentVnode; // update vm's placeholder node without re-render\n\n if (vm._vnode) { // update child tree's parent\n vm._vnode.parent = parentVnode;\n }\n vm.$options._renderChildren = renderChildren;\n\n // update $attrs and $listeners hash\n // these are also reactive so they may trigger child update if the child\n // used them during render\n vm.$attrs = parentVnode.data.attrs || emptyObject;\n vm.$listeners = listeners || emptyObject;\n\n // update props\n if (propsData && vm.$options.props) {\n toggleObserving(false);\n var props = vm._props;\n var propKeys = vm.$options._propKeys || [];\n for (var i = 0; i < propKeys.length; i++) {\n var key = propKeys[i];\n var propOptions = vm.$options.props; // wtf flow?\n props[key] = validateProp(key, propOptions, propsData, vm);\n }\n toggleObserving(true);\n // keep a copy of raw propsData\n vm.$options.propsData = propsData;\n }\n\n // update listeners\n listeners = listeners || emptyObject;\n var oldListeners = vm.$options._parentListeners;\n vm.$options._parentListeners = listeners;\n updateComponentListeners(vm, listeners, oldListeners);\n\n // resolve slots + force update if has children\n if (needsForceUpdate) {\n vm.$slots = resolveSlots(renderChildren, parentVnode.context);\n vm.$forceUpdate();\n }\n\n if (process.env.NODE_ENV !== 'production') {\n isUpdatingChildComponent = false;\n }\n}\n\nfunction isInInactiveTree (vm) {\n while (vm && (vm = vm.$parent)) {\n if (vm._inactive) { return true }\n }\n return false\n}\n\nfunction activateChildComponent (vm, direct) {\n if (direct) {\n vm._directInactive = false;\n if (isInInactiveTree(vm)) {\n return\n }\n } else if (vm._directInactive) {\n return\n }\n if (vm._inactive || vm._inactive === null) {\n vm._inactive = false;\n for (var i = 0; i < vm.$children.length; i++) {\n activateChildComponent(vm.$children[i]);\n }\n callHook(vm, 'activated');\n }\n}\n\nfunction deactivateChildComponent (vm, direct) {\n if (direct) {\n vm._directInactive = true;\n if (isInInactiveTree(vm)) {\n return\n }\n }\n if (!vm._inactive) {\n vm._inactive = true;\n for (var i = 0; i < vm.$children.length; i++) {\n deactivateChildComponent(vm.$children[i]);\n }\n callHook(vm, 'deactivated');\n }\n}\n\nfunction callHook (vm, hook) {\n // #7573 disable dep collection when invoking lifecycle hooks\n pushTarget();\n var handlers = vm.$options[hook];\n var info = hook + \" hook\";\n if (handlers) {\n for (var i = 0, j = handlers.length; i < j; i++) {\n invokeWithErrorHandling(handlers[i], vm, null, vm, info);\n }\n }\n if (vm._hasHookEvent) {\n vm.$emit('hook:' + hook);\n }\n popTarget();\n}\n\n/* */\n\nvar MAX_UPDATE_COUNT = 100;\n\nvar queue = [];\nvar activatedChildren = [];\nvar has = {};\nvar circular = {};\nvar waiting = false;\nvar flushing = false;\nvar index = 0;\n\n/**\n * Reset the scheduler's state.\n */\nfunction resetSchedulerState () {\n index = queue.length = activatedChildren.length = 0;\n has = {};\n if (process.env.NODE_ENV !== 'production') {\n circular = {};\n }\n waiting = flushing = false;\n}\n\n// Async edge case #6566 requires saving the timestamp when event listeners are\n// attached. However, calling performance.now() has a perf overhead especially\n// if the page has thousands of event listeners. Instead, we take a timestamp\n// every time the scheduler flushes and use that for all event listeners\n// attached during that flush.\nvar currentFlushTimestamp = 0;\n\n// Async edge case fix requires storing an event listener's attach timestamp.\nvar getNow = Date.now;\n\n// Determine what event timestamp the browser is using. Annoyingly, the\n// timestamp can either be hi-res (relative to page load) or low-res\n// (relative to UNIX epoch), so in order to compare time we have to use the\n// same timestamp type when saving the flush timestamp.\n// All IE versions use low-res event timestamps, and have problematic clock\n// implementations (#9632)\nif (inBrowser && !isIE) {\n var performance = window.performance;\n if (\n performance &&\n typeof performance.now === 'function' &&\n getNow() > document.createEvent('Event').timeStamp\n ) {\n // if the event timestamp, although evaluated AFTER the Date.now(), is\n // smaller than it, it means the event is using a hi-res timestamp,\n // and we need to use the hi-res version for event listener timestamps as\n // well.\n getNow = function () { return performance.now(); };\n }\n}\n\n/**\n * Flush both queues and run the watchers.\n */\nfunction flushSchedulerQueue () {\n currentFlushTimestamp = getNow();\n flushing = true;\n var watcher, id;\n\n // Sort queue before flush.\n // This ensures that:\n // 1. Components are updated from parent to child. (because parent is always\n // created before the child)\n // 2. A component's user watchers are run before its render watcher (because\n // user watchers are created before the render watcher)\n // 3. If a component is destroyed during a parent component's watcher run,\n // its watchers can be skipped.\n queue.sort(function (a, b) { return a.id - b.id; });\n\n // do not cache length because more watchers might be pushed\n // as we run existing watchers\n for (index = 0; index < queue.length; index++) {\n watcher = queue[index];\n if (watcher.before) {\n watcher.before();\n }\n id = watcher.id;\n has[id] = null;\n watcher.run();\n // in dev build, check and stop circular updates.\n if (process.env.NODE_ENV !== 'production' && has[id] != null) {\n circular[id] = (circular[id] || 0) + 1;\n if (circular[id] > MAX_UPDATE_COUNT) {\n warn(\n 'You may have an infinite update loop ' + (\n watcher.user\n ? (\"in watcher with expression \\\"\" + (watcher.expression) + \"\\\"\")\n : \"in a component render function.\"\n ),\n watcher.vm\n );\n break\n }\n }\n }\n\n // keep copies of post queues before resetting state\n var activatedQueue = activatedChildren.slice();\n var updatedQueue = queue.slice();\n\n resetSchedulerState();\n\n // call component updated and activated hooks\n callActivatedHooks(activatedQueue);\n callUpdatedHooks(updatedQueue);\n\n // devtool hook\n /* istanbul ignore if */\n if (devtools && config.devtools) {\n devtools.emit('flush');\n }\n}\n\nfunction callUpdatedHooks (queue) {\n var i = queue.length;\n while (i--) {\n var watcher = queue[i];\n var vm = watcher.vm;\n if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {\n callHook(vm, 'updated');\n }\n }\n}\n\n/**\n * Queue a kept-alive component that was activated during patch.\n * The queue will be processed after the entire tree has been patched.\n */\nfunction queueActivatedComponent (vm) {\n // setting _inactive to false here so that a render function can\n // rely on checking whether it's in an inactive tree (e.g. router-view)\n vm._inactive = false;\n activatedChildren.push(vm);\n}\n\nfunction callActivatedHooks (queue) {\n for (var i = 0; i < queue.length; i++) {\n queue[i]._inactive = true;\n activateChildComponent(queue[i], true /* true */);\n }\n}\n\n/**\n * Push a watcher into the watcher queue.\n * Jobs with duplicate IDs will be skipped unless it's\n * pushed when the queue is being flushed.\n */\nfunction queueWatcher (watcher) {\n var id = watcher.id;\n if (has[id] == null) {\n has[id] = true;\n if (!flushing) {\n queue.push(watcher);\n } else {\n // if already flushing, splice the watcher based on its id\n // if already past its id, it will be run next immediately.\n var i = queue.length - 1;\n while (i > index && queue[i].id > watcher.id) {\n i--;\n }\n queue.splice(i + 1, 0, watcher);\n }\n // queue the flush\n if (!waiting) {\n waiting = true;\n\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n flushSchedulerQueue();\n return\n }\n nextTick(flushSchedulerQueue);\n }\n }\n}\n\n/* */\n\n\n\nvar uid$2 = 0;\n\n/**\n * A watcher parses an expression, collects dependencies,\n * and fires callback when the expression value changes.\n * This is used for both the $watch() api and directives.\n */\nvar Watcher = function Watcher (\n vm,\n expOrFn,\n cb,\n options,\n isRenderWatcher\n) {\n this.vm = vm;\n if (isRenderWatcher) {\n vm._watcher = this;\n }\n vm._watchers.push(this);\n // options\n if (options) {\n this.deep = !!options.deep;\n this.user = !!options.user;\n this.lazy = !!options.lazy;\n this.sync = !!options.sync;\n this.before = options.before;\n } else {\n this.deep = this.user = this.lazy = this.sync = false;\n }\n this.cb = cb;\n this.id = ++uid$2; // uid for batching\n this.active = true;\n this.dirty = this.lazy; // for lazy watchers\n this.deps = [];\n this.newDeps = [];\n this.depIds = new _Set();\n this.newDepIds = new _Set();\n this.expression = process.env.NODE_ENV !== 'production'\n ? expOrFn.toString()\n : '';\n // parse expression for getter\n if (typeof expOrFn === 'function') {\n this.getter = expOrFn;\n } else {\n this.getter = parsePath(expOrFn);\n if (!this.getter) {\n this.getter = noop;\n process.env.NODE_ENV !== 'production' && warn(\n \"Failed watching path: \\\"\" + expOrFn + \"\\\" \" +\n 'Watcher only accepts simple dot-delimited paths. ' +\n 'For full control, use a function instead.',\n vm\n );\n }\n }\n this.value = this.lazy\n ? undefined\n : this.get();\n};\n\n/**\n * Evaluate the getter, and re-collect dependencies.\n */\nWatcher.prototype.get = function get () {\n pushTarget(this);\n var value;\n var vm = this.vm;\n try {\n value = this.getter.call(vm, vm);\n } catch (e) {\n if (this.user) {\n handleError(e, vm, (\"getter for watcher \\\"\" + (this.expression) + \"\\\"\"));\n } else {\n throw e\n }\n } finally {\n // \"touch\" every property so they are all tracked as\n // dependencies for deep watching\n if (this.deep) {\n traverse(value);\n }\n popTarget();\n this.cleanupDeps();\n }\n return value\n};\n\n/**\n * Add a dependency to this directive.\n */\nWatcher.prototype.addDep = function addDep (dep) {\n var id = dep.id;\n if (!this.newDepIds.has(id)) {\n this.newDepIds.add(id);\n this.newDeps.push(dep);\n if (!this.depIds.has(id)) {\n dep.addSub(this);\n }\n }\n};\n\n/**\n * Clean up for dependency collection.\n */\nWatcher.prototype.cleanupDeps = function cleanupDeps () {\n var i = this.deps.length;\n while (i--) {\n var dep = this.deps[i];\n if (!this.newDepIds.has(dep.id)) {\n dep.removeSub(this);\n }\n }\n var tmp = this.depIds;\n this.depIds = this.newDepIds;\n this.newDepIds = tmp;\n this.newDepIds.clear();\n tmp = this.deps;\n this.deps = this.newDeps;\n this.newDeps = tmp;\n this.newDeps.length = 0;\n};\n\n/**\n * Subscriber interface.\n * Will be called when a dependency changes.\n */\nWatcher.prototype.update = function update () {\n /* istanbul ignore else */\n if (this.lazy) {\n this.dirty = true;\n } else if (this.sync) {\n this.run();\n } else {\n queueWatcher(this);\n }\n};\n\n/**\n * Scheduler job interface.\n * Will be called by the scheduler.\n */\nWatcher.prototype.run = function run () {\n if (this.active) {\n var value = this.get();\n if (\n value !== this.value ||\n // Deep watchers and watchers on Object/Arrays should fire even\n // when the value is the same, because the value may\n // have mutated.\n isObject(value) ||\n this.deep\n ) {\n // set new value\n var oldValue = this.value;\n this.value = value;\n if (this.user) {\n try {\n this.cb.call(this.vm, value, oldValue);\n } catch (e) {\n handleError(e, this.vm, (\"callback for watcher \\\"\" + (this.expression) + \"\\\"\"));\n }\n } else {\n this.cb.call(this.vm, value, oldValue);\n }\n }\n }\n};\n\n/**\n * Evaluate the value of the watcher.\n * This only gets called for lazy watchers.\n */\nWatcher.prototype.evaluate = function evaluate () {\n this.value = this.get();\n this.dirty = false;\n};\n\n/**\n * Depend on all deps collected by this watcher.\n */\nWatcher.prototype.depend = function depend () {\n var i = this.deps.length;\n while (i--) {\n this.deps[i].depend();\n }\n};\n\n/**\n * Remove self from all dependencies' subscriber list.\n */\nWatcher.prototype.teardown = function teardown () {\n if (this.active) {\n // remove self from vm's watcher list\n // this is a somewhat expensive operation so we skip it\n // if the vm is being destroyed.\n if (!this.vm._isBeingDestroyed) {\n remove(this.vm._watchers, this);\n }\n var i = this.deps.length;\n while (i--) {\n this.deps[i].removeSub(this);\n }\n this.active = false;\n }\n};\n\n/* */\n\nvar sharedPropertyDefinition = {\n enumerable: true,\n configurable: true,\n get: noop,\n set: noop\n};\n\nfunction proxy (target, sourceKey, key) {\n sharedPropertyDefinition.get = function proxyGetter () {\n return this[sourceKey][key]\n };\n sharedPropertyDefinition.set = function proxySetter (val) {\n this[sourceKey][key] = val;\n };\n Object.defineProperty(target, key, sharedPropertyDefinition);\n}\n\nfunction initState (vm) {\n vm._watchers = [];\n var opts = vm.$options;\n if (opts.props) { initProps(vm, opts.props); }\n if (opts.methods) { initMethods(vm, opts.methods); }\n if (opts.data) {\n initData(vm);\n } else {\n observe(vm._data = {}, true /* asRootData */);\n }\n if (opts.computed) { initComputed(vm, opts.computed); }\n if (opts.watch && opts.watch !== nativeWatch) {\n initWatch(vm, opts.watch);\n }\n}\n\nfunction initProps (vm, propsOptions) {\n var propsData = vm.$options.propsData || {};\n var props = vm._props = {};\n // cache prop keys so that future props updates can iterate using Array\n // instead of dynamic object key enumeration.\n var keys = vm.$options._propKeys = [];\n var isRoot = !vm.$parent;\n // root instance props should be converted\n if (!isRoot) {\n toggleObserving(false);\n }\n var loop = function ( key ) {\n keys.push(key);\n var value = validateProp(key, propsOptions, propsData, vm);\n /* istanbul ignore else */\n if (process.env.NODE_ENV !== 'production') {\n var hyphenatedKey = hyphenate(key);\n if (isReservedAttribute(hyphenatedKey) ||\n config.isReservedAttr(hyphenatedKey)) {\n warn(\n (\"\\\"\" + hyphenatedKey + \"\\\" is a reserved attribute and cannot be used as component prop.\"),\n vm\n );\n }\n defineReactive$$1(props, key, value, function () {\n if (!isRoot && !isUpdatingChildComponent) {\n warn(\n \"Avoid mutating a prop directly since the value will be \" +\n \"overwritten whenever the parent component re-renders. \" +\n \"Instead, use a data or computed property based on the prop's \" +\n \"value. Prop being mutated: \\\"\" + key + \"\\\"\",\n vm\n );\n }\n });\n } else {\n defineReactive$$1(props, key, value);\n }\n // static props are already proxied on the component's prototype\n // during Vue.extend(). We only need to proxy props defined at\n // instantiation here.\n if (!(key in vm)) {\n proxy(vm, \"_props\", key);\n }\n };\n\n for (var key in propsOptions) loop( key );\n toggleObserving(true);\n}\n\nfunction initData (vm) {\n var data = vm.$options.data;\n data = vm._data = typeof data === 'function'\n ? getData(data, vm)\n : data || {};\n if (!isPlainObject(data)) {\n data = {};\n process.env.NODE_ENV !== 'production' && warn(\n 'data functions should return an object:\\n' +\n 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',\n vm\n );\n }\n // proxy data on instance\n var keys = Object.keys(data);\n var props = vm.$options.props;\n var methods = vm.$options.methods;\n var i = keys.length;\n while (i--) {\n var key = keys[i];\n if (process.env.NODE_ENV !== 'production') {\n if (methods && hasOwn(methods, key)) {\n warn(\n (\"Method \\\"\" + key + \"\\\" has already been defined as a data property.\"),\n vm\n );\n }\n }\n if (props && hasOwn(props, key)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"The data property \\\"\" + key + \"\\\" is already declared as a prop. \" +\n \"Use prop default value instead.\",\n vm\n );\n } else if (!isReserved(key)) {\n proxy(vm, \"_data\", key);\n }\n }\n // observe data\n observe(data, true /* asRootData */);\n}\n\nfunction getData (data, vm) {\n // #7573 disable dep collection when invoking data getters\n pushTarget();\n try {\n return data.call(vm, vm)\n } catch (e) {\n handleError(e, vm, \"data()\");\n return {}\n } finally {\n popTarget();\n }\n}\n\nvar computedWatcherOptions = { lazy: true };\n\nfunction initComputed (vm, computed) {\n // $flow-disable-line\n var watchers = vm._computedWatchers = Object.create(null);\n // computed properties are just getters during SSR\n var isSSR = isServerRendering();\n\n for (var key in computed) {\n var userDef = computed[key];\n var getter = typeof userDef === 'function' ? userDef : userDef.get;\n if (process.env.NODE_ENV !== 'production' && getter == null) {\n warn(\n (\"Getter is missing for computed property \\\"\" + key + \"\\\".\"),\n vm\n );\n }\n\n if (!isSSR) {\n // create internal watcher for the computed property.\n watchers[key] = new Watcher(\n vm,\n getter || noop,\n noop,\n computedWatcherOptions\n );\n }\n\n // component-defined computed properties are already defined on the\n // component prototype. We only need to define computed properties defined\n // at instantiation here.\n if (!(key in vm)) {\n defineComputed(vm, key, userDef);\n } else if (process.env.NODE_ENV !== 'production') {\n if (key in vm.$data) {\n warn((\"The computed property \\\"\" + key + \"\\\" is already defined in data.\"), vm);\n } else if (vm.$options.props && key in vm.$options.props) {\n warn((\"The computed property \\\"\" + key + \"\\\" is already defined as a prop.\"), vm);\n }\n }\n }\n}\n\nfunction defineComputed (\n target,\n key,\n userDef\n) {\n var shouldCache = !isServerRendering();\n if (typeof userDef === 'function') {\n sharedPropertyDefinition.get = shouldCache\n ? createComputedGetter(key)\n : createGetterInvoker(userDef);\n sharedPropertyDefinition.set = noop;\n } else {\n sharedPropertyDefinition.get = userDef.get\n ? shouldCache && userDef.cache !== false\n ? createComputedGetter(key)\n : createGetterInvoker(userDef.get)\n : noop;\n sharedPropertyDefinition.set = userDef.set || noop;\n }\n if (process.env.NODE_ENV !== 'production' &&\n sharedPropertyDefinition.set === noop) {\n sharedPropertyDefinition.set = function () {\n warn(\n (\"Computed property \\\"\" + key + \"\\\" was assigned to but it has no setter.\"),\n this\n );\n };\n }\n Object.defineProperty(target, key, sharedPropertyDefinition);\n}\n\nfunction createComputedGetter (key) {\n return function computedGetter () {\n var watcher = this._computedWatchers && this._computedWatchers[key];\n if (watcher) {\n if (watcher.dirty) {\n watcher.evaluate();\n }\n if (Dep.target) {\n watcher.depend();\n }\n return watcher.value\n }\n }\n}\n\nfunction createGetterInvoker(fn) {\n return function computedGetter () {\n return fn.call(this, this)\n }\n}\n\nfunction initMethods (vm, methods) {\n var props = vm.$options.props;\n for (var key in methods) {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof methods[key] !== 'function') {\n warn(\n \"Method \\\"\" + key + \"\\\" has type \\\"\" + (typeof methods[key]) + \"\\\" in the component definition. \" +\n \"Did you reference the function correctly?\",\n vm\n );\n }\n if (props && hasOwn(props, key)) {\n warn(\n (\"Method \\\"\" + key + \"\\\" has already been defined as a prop.\"),\n vm\n );\n }\n if ((key in vm) && isReserved(key)) {\n warn(\n \"Method \\\"\" + key + \"\\\" conflicts with an existing Vue instance method. \" +\n \"Avoid defining component methods that start with _ or $.\"\n );\n }\n }\n vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);\n }\n}\n\nfunction initWatch (vm, watch) {\n for (var key in watch) {\n var handler = watch[key];\n if (Array.isArray(handler)) {\n for (var i = 0; i < handler.length; i++) {\n createWatcher(vm, key, handler[i]);\n }\n } else {\n createWatcher(vm, key, handler);\n }\n }\n}\n\nfunction createWatcher (\n vm,\n expOrFn,\n handler,\n options\n) {\n if (isPlainObject(handler)) {\n options = handler;\n handler = handler.handler;\n }\n if (typeof handler === 'string') {\n handler = vm[handler];\n }\n return vm.$watch(expOrFn, handler, options)\n}\n\nfunction stateMixin (Vue) {\n // flow somehow has problems with directly declared definition object\n // when using Object.defineProperty, so we have to procedurally build up\n // the object here.\n var dataDef = {};\n dataDef.get = function () { return this._data };\n var propsDef = {};\n propsDef.get = function () { return this._props };\n if (process.env.NODE_ENV !== 'production') {\n dataDef.set = function () {\n warn(\n 'Avoid replacing instance root $data. ' +\n 'Use nested data properties instead.',\n this\n );\n };\n propsDef.set = function () {\n warn(\"$props is readonly.\", this);\n };\n }\n Object.defineProperty(Vue.prototype, '$data', dataDef);\n Object.defineProperty(Vue.prototype, '$props', propsDef);\n\n Vue.prototype.$set = set;\n Vue.prototype.$delete = del;\n\n Vue.prototype.$watch = function (\n expOrFn,\n cb,\n options\n ) {\n var vm = this;\n if (isPlainObject(cb)) {\n return createWatcher(vm, expOrFn, cb, options)\n }\n options = options || {};\n options.user = true;\n var watcher = new Watcher(vm, expOrFn, cb, options);\n if (options.immediate) {\n try {\n cb.call(vm, watcher.value);\n } catch (error) {\n handleError(error, vm, (\"callback for immediate watcher \\\"\" + (watcher.expression) + \"\\\"\"));\n }\n }\n return function unwatchFn () {\n watcher.teardown();\n }\n };\n}\n\n/* */\n\nvar uid$3 = 0;\n\nfunction initMixin (Vue) {\n Vue.prototype._init = function (options) {\n var vm = this;\n // a uid\n vm._uid = uid$3++;\n\n var startTag, endTag;\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n startTag = \"vue-perf-start:\" + (vm._uid);\n endTag = \"vue-perf-end:\" + (vm._uid);\n mark(startTag);\n }\n\n // a flag to avoid this being observed\n vm._isVue = true;\n // merge options\n if (options && options._isComponent) {\n // optimize internal component instantiation\n // since dynamic options merging is pretty slow, and none of the\n // internal component options needs special treatment.\n initInternalComponent(vm, options);\n } else {\n vm.$options = mergeOptions(\n resolveConstructorOptions(vm.constructor),\n options || {},\n vm\n );\n }\n /* istanbul ignore else */\n if (process.env.NODE_ENV !== 'production') {\n initProxy(vm);\n } else {\n vm._renderProxy = vm;\n }\n // expose real self\n vm._self = vm;\n initLifecycle(vm);\n initEvents(vm);\n initRender(vm);\n callHook(vm, 'beforeCreate');\n initInjections(vm); // resolve injections before data/props\n initState(vm);\n initProvide(vm); // resolve provide after data/props\n callHook(vm, 'created');\n\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n vm._name = formatComponentName(vm, false);\n mark(endTag);\n measure((\"vue \" + (vm._name) + \" init\"), startTag, endTag);\n }\n\n if (vm.$options.el) {\n vm.$mount(vm.$options.el);\n }\n };\n}\n\nfunction initInternalComponent (vm, options) {\n var opts = vm.$options = Object.create(vm.constructor.options);\n // doing this because it's faster than dynamic enumeration.\n var parentVnode = options._parentVnode;\n opts.parent = options.parent;\n opts._parentVnode = parentVnode;\n\n var vnodeComponentOptions = parentVnode.componentOptions;\n opts.propsData = vnodeComponentOptions.propsData;\n opts._parentListeners = vnodeComponentOptions.listeners;\n opts._renderChildren = vnodeComponentOptions.children;\n opts._componentTag = vnodeComponentOptions.tag;\n\n if (options.render) {\n opts.render = options.render;\n opts.staticRenderFns = options.staticRenderFns;\n }\n}\n\nfunction resolveConstructorOptions (Ctor) {\n var options = Ctor.options;\n if (Ctor.super) {\n var superOptions = resolveConstructorOptions(Ctor.super);\n var cachedSuperOptions = Ctor.superOptions;\n if (superOptions !== cachedSuperOptions) {\n // super option changed,\n // need to resolve new options.\n Ctor.superOptions = superOptions;\n // check if there are any late-modified/attached options (#4976)\n var modifiedOptions = resolveModifiedOptions(Ctor);\n // update base extend options\n if (modifiedOptions) {\n extend(Ctor.extendOptions, modifiedOptions);\n }\n options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);\n if (options.name) {\n options.components[options.name] = Ctor;\n }\n }\n }\n return options\n}\n\nfunction resolveModifiedOptions (Ctor) {\n var modified;\n var latest = Ctor.options;\n var sealed = Ctor.sealedOptions;\n for (var key in latest) {\n if (latest[key] !== sealed[key]) {\n if (!modified) { modified = {}; }\n modified[key] = latest[key];\n }\n }\n return modified\n}\n\nfunction Vue (options) {\n if (process.env.NODE_ENV !== 'production' &&\n !(this instanceof Vue)\n ) {\n warn('Vue is a constructor and should be called with the `new` keyword');\n }\n this._init(options);\n}\n\ninitMixin(Vue);\nstateMixin(Vue);\neventsMixin(Vue);\nlifecycleMixin(Vue);\nrenderMixin(Vue);\n\n/* */\n\nfunction initUse (Vue) {\n Vue.use = function (plugin) {\n var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));\n if (installedPlugins.indexOf(plugin) > -1) {\n return this\n }\n\n // additional parameters\n var args = toArray(arguments, 1);\n args.unshift(this);\n if (typeof plugin.install === 'function') {\n plugin.install.apply(plugin, args);\n } else if (typeof plugin === 'function') {\n plugin.apply(null, args);\n }\n installedPlugins.push(plugin);\n return this\n };\n}\n\n/* */\n\nfunction initMixin$1 (Vue) {\n Vue.mixin = function (mixin) {\n this.options = mergeOptions(this.options, mixin);\n return this\n };\n}\n\n/* */\n\nfunction initExtend (Vue) {\n /**\n * Each instance constructor, including Vue, has a unique\n * cid. This enables us to create wrapped \"child\n * constructors\" for prototypal inheritance and cache them.\n */\n Vue.cid = 0;\n var cid = 1;\n\n /**\n * Class inheritance\n */\n Vue.extend = function (extendOptions) {\n extendOptions = extendOptions || {};\n var Super = this;\n var SuperId = Super.cid;\n var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});\n if (cachedCtors[SuperId]) {\n return cachedCtors[SuperId]\n }\n\n var name = extendOptions.name || Super.options.name;\n if (process.env.NODE_ENV !== 'production' && name) {\n validateComponentName(name);\n }\n\n var Sub = function VueComponent (options) {\n this._init(options);\n };\n Sub.prototype = Object.create(Super.prototype);\n Sub.prototype.constructor = Sub;\n Sub.cid = cid++;\n Sub.options = mergeOptions(\n Super.options,\n extendOptions\n );\n Sub['super'] = Super;\n\n // For props and computed properties, we define the proxy getters on\n // the Vue instances at extension time, on the extended prototype. This\n // avoids Object.defineProperty calls for each instance created.\n if (Sub.options.props) {\n initProps$1(Sub);\n }\n if (Sub.options.computed) {\n initComputed$1(Sub);\n }\n\n // allow further extension/mixin/plugin usage\n Sub.extend = Super.extend;\n Sub.mixin = Super.mixin;\n Sub.use = Super.use;\n\n // create asset registers, so extended classes\n // can have their private assets too.\n ASSET_TYPES.forEach(function (type) {\n Sub[type] = Super[type];\n });\n // enable recursive self-lookup\n if (name) {\n Sub.options.components[name] = Sub;\n }\n\n // keep a reference to the super options at extension time.\n // later at instantiation we can check if Super's options have\n // been updated.\n Sub.superOptions = Super.options;\n Sub.extendOptions = extendOptions;\n Sub.sealedOptions = extend({}, Sub.options);\n\n // cache constructor\n cachedCtors[SuperId] = Sub;\n return Sub\n };\n}\n\nfunction initProps$1 (Comp) {\n var props = Comp.options.props;\n for (var key in props) {\n proxy(Comp.prototype, \"_props\", key);\n }\n}\n\nfunction initComputed$1 (Comp) {\n var computed = Comp.options.computed;\n for (var key in computed) {\n defineComputed(Comp.prototype, key, computed[key]);\n }\n}\n\n/* */\n\nfunction initAssetRegisters (Vue) {\n /**\n * Create asset registration methods.\n */\n ASSET_TYPES.forEach(function (type) {\n Vue[type] = function (\n id,\n definition\n ) {\n if (!definition) {\n return this.options[type + 's'][id]\n } else {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && type === 'component') {\n validateComponentName(id);\n }\n if (type === 'component' && isPlainObject(definition)) {\n definition.name = definition.name || id;\n definition = this.options._base.extend(definition);\n }\n if (type === 'directive' && typeof definition === 'function') {\n definition = { bind: definition, update: definition };\n }\n this.options[type + 's'][id] = definition;\n return definition\n }\n };\n });\n}\n\n/* */\n\n\n\nfunction getComponentName (opts) {\n return opts && (opts.Ctor.options.name || opts.tag)\n}\n\nfunction matches (pattern, name) {\n if (Array.isArray(pattern)) {\n return pattern.indexOf(name) > -1\n } else if (typeof pattern === 'string') {\n return pattern.split(',').indexOf(name) > -1\n } else if (isRegExp(pattern)) {\n return pattern.test(name)\n }\n /* istanbul ignore next */\n return false\n}\n\nfunction pruneCache (keepAliveInstance, filter) {\n var cache = keepAliveInstance.cache;\n var keys = keepAliveInstance.keys;\n var _vnode = keepAliveInstance._vnode;\n for (var key in cache) {\n var cachedNode = cache[key];\n if (cachedNode) {\n var name = getComponentName(cachedNode.componentOptions);\n if (name && !filter(name)) {\n pruneCacheEntry(cache, key, keys, _vnode);\n }\n }\n }\n}\n\nfunction pruneCacheEntry (\n cache,\n key,\n keys,\n current\n) {\n var cached$$1 = cache[key];\n if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {\n cached$$1.componentInstance.$destroy();\n }\n cache[key] = null;\n remove(keys, key);\n}\n\nvar patternTypes = [String, RegExp, Array];\n\nvar KeepAlive = {\n name: 'keep-alive',\n abstract: true,\n\n props: {\n include: patternTypes,\n exclude: patternTypes,\n max: [String, Number]\n },\n\n created: function created () {\n this.cache = Object.create(null);\n this.keys = [];\n },\n\n destroyed: function destroyed () {\n for (var key in this.cache) {\n pruneCacheEntry(this.cache, key, this.keys);\n }\n },\n\n mounted: function mounted () {\n var this$1 = this;\n\n this.$watch('include', function (val) {\n pruneCache(this$1, function (name) { return matches(val, name); });\n });\n this.$watch('exclude', function (val) {\n pruneCache(this$1, function (name) { return !matches(val, name); });\n });\n },\n\n render: function render () {\n var slot = this.$slots.default;\n var vnode = getFirstComponentChild(slot);\n var componentOptions = vnode && vnode.componentOptions;\n if (componentOptions) {\n // check pattern\n var name = getComponentName(componentOptions);\n var ref = this;\n var include = ref.include;\n var exclude = ref.exclude;\n if (\n // not included\n (include && (!name || !matches(include, name))) ||\n // excluded\n (exclude && name && matches(exclude, name))\n ) {\n return vnode\n }\n\n var ref$1 = this;\n var cache = ref$1.cache;\n var keys = ref$1.keys;\n var key = vnode.key == null\n // same constructor may get registered as different local components\n // so cid alone is not enough (#3269)\n ? componentOptions.Ctor.cid + (componentOptions.tag ? (\"::\" + (componentOptions.tag)) : '')\n : vnode.key;\n if (cache[key]) {\n vnode.componentInstance = cache[key].componentInstance;\n // make current key freshest\n remove(keys, key);\n keys.push(key);\n } else {\n cache[key] = vnode;\n keys.push(key);\n // prune oldest entry\n if (this.max && keys.length > parseInt(this.max)) {\n pruneCacheEntry(cache, keys[0], keys, this._vnode);\n }\n }\n\n vnode.data.keepAlive = true;\n }\n return vnode || (slot && slot[0])\n }\n};\n\nvar builtInComponents = {\n KeepAlive: KeepAlive\n};\n\n/* */\n\nfunction initGlobalAPI (Vue) {\n // config\n var configDef = {};\n configDef.get = function () { return config; };\n if (process.env.NODE_ENV !== 'production') {\n configDef.set = function () {\n warn(\n 'Do not replace the Vue.config object, set individual fields instead.'\n );\n };\n }\n Object.defineProperty(Vue, 'config', configDef);\n\n // exposed util methods.\n // NOTE: these are not considered part of the public API - avoid relying on\n // them unless you are aware of the risk.\n Vue.util = {\n warn: warn,\n extend: extend,\n mergeOptions: mergeOptions,\n defineReactive: defineReactive$$1\n };\n\n Vue.set = set;\n Vue.delete = del;\n Vue.nextTick = nextTick;\n\n // 2.6 explicit observable API\n Vue.observable = function (obj) {\n observe(obj);\n return obj\n };\n\n Vue.options = Object.create(null);\n ASSET_TYPES.forEach(function (type) {\n Vue.options[type + 's'] = Object.create(null);\n });\n\n // this is used to identify the \"base\" constructor to extend all plain-object\n // components with in Weex's multi-instance scenarios.\n Vue.options._base = Vue;\n\n extend(Vue.options.components, builtInComponents);\n\n initUse(Vue);\n initMixin$1(Vue);\n initExtend(Vue);\n initAssetRegisters(Vue);\n}\n\ninitGlobalAPI(Vue);\n\nObject.defineProperty(Vue.prototype, '$isServer', {\n get: isServerRendering\n});\n\nObject.defineProperty(Vue.prototype, '$ssrContext', {\n get: function get () {\n /* istanbul ignore next */\n return this.$vnode && this.$vnode.ssrContext\n }\n});\n\n// expose FunctionalRenderContext for ssr runtime helper installation\nObject.defineProperty(Vue, 'FunctionalRenderContext', {\n value: FunctionalRenderContext\n});\n\nVue.version = '2.6.10';\n\n/* */\n\n// these are reserved for web because they are directly compiled away\n// during template compilation\nvar isReservedAttr = makeMap('style,class');\n\n// attributes that should be using props for binding\nvar acceptValue = makeMap('input,textarea,option,select,progress');\nvar mustUseProp = function (tag, type, attr) {\n return (\n (attr === 'value' && acceptValue(tag)) && type !== 'button' ||\n (attr === 'selected' && tag === 'option') ||\n (attr === 'checked' && tag === 'input') ||\n (attr === 'muted' && tag === 'video')\n )\n};\n\nvar isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');\n\nvar isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only');\n\nvar convertEnumeratedValue = function (key, value) {\n return isFalsyAttrValue(value) || value === 'false'\n ? 'false'\n // allow arbitrary string value for contenteditable\n : key === 'contenteditable' && isValidContentEditableValue(value)\n ? value\n : 'true'\n};\n\nvar isBooleanAttr = makeMap(\n 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +\n 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +\n 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +\n 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +\n 'required,reversed,scoped,seamless,selected,sortable,translate,' +\n 'truespeed,typemustmatch,visible'\n);\n\nvar xlinkNS = 'http://www.w3.org/1999/xlink';\n\nvar isXlink = function (name) {\n return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'\n};\n\nvar getXlinkProp = function (name) {\n return isXlink(name) ? name.slice(6, name.length) : ''\n};\n\nvar isFalsyAttrValue = function (val) {\n return val == null || val === false\n};\n\n/* */\n\nfunction genClassForVnode (vnode) {\n var data = vnode.data;\n var parentNode = vnode;\n var childNode = vnode;\n while (isDef(childNode.componentInstance)) {\n childNode = childNode.componentInstance._vnode;\n if (childNode && childNode.data) {\n data = mergeClassData(childNode.data, data);\n }\n }\n while (isDef(parentNode = parentNode.parent)) {\n if (parentNode && parentNode.data) {\n data = mergeClassData(data, parentNode.data);\n }\n }\n return renderClass(data.staticClass, data.class)\n}\n\nfunction mergeClassData (child, parent) {\n return {\n staticClass: concat(child.staticClass, parent.staticClass),\n class: isDef(child.class)\n ? [child.class, parent.class]\n : parent.class\n }\n}\n\nfunction renderClass (\n staticClass,\n dynamicClass\n) {\n if (isDef(staticClass) || isDef(dynamicClass)) {\n return concat(staticClass, stringifyClass(dynamicClass))\n }\n /* istanbul ignore next */\n return ''\n}\n\nfunction concat (a, b) {\n return a ? b ? (a + ' ' + b) : a : (b || '')\n}\n\nfunction stringifyClass (value) {\n if (Array.isArray(value)) {\n return stringifyArray(value)\n }\n if (isObject(value)) {\n return stringifyObject(value)\n }\n if (typeof value === 'string') {\n return value\n }\n /* istanbul ignore next */\n return ''\n}\n\nfunction stringifyArray (value) {\n var res = '';\n var stringified;\n for (var i = 0, l = value.length; i < l; i++) {\n if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {\n if (res) { res += ' '; }\n res += stringified;\n }\n }\n return res\n}\n\nfunction stringifyObject (value) {\n var res = '';\n for (var key in value) {\n if (value[key]) {\n if (res) { res += ' '; }\n res += key;\n }\n }\n return res\n}\n\n/* */\n\nvar namespaceMap = {\n svg: 'http://www.w3.org/2000/svg',\n math: 'http://www.w3.org/1998/Math/MathML'\n};\n\nvar isHTMLTag = makeMap(\n 'html,body,base,head,link,meta,style,title,' +\n 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +\n 'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +\n 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +\n 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +\n 'embed,object,param,source,canvas,script,noscript,del,ins,' +\n 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +\n 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +\n 'output,progress,select,textarea,' +\n 'details,dialog,menu,menuitem,summary,' +\n 'content,element,shadow,template,blockquote,iframe,tfoot'\n);\n\n// this map is intentionally selective, only covering SVG elements that may\n// contain child elements.\nvar isSVG = makeMap(\n 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +\n 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +\n 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',\n true\n);\n\nvar isPreTag = function (tag) { return tag === 'pre'; };\n\nvar isReservedTag = function (tag) {\n return isHTMLTag(tag) || isSVG(tag)\n};\n\nfunction getTagNamespace (tag) {\n if (isSVG(tag)) {\n return 'svg'\n }\n // basic support for MathML\n // note it doesn't support other MathML elements being component roots\n if (tag === 'math') {\n return 'math'\n }\n}\n\nvar unknownElementCache = Object.create(null);\nfunction isUnknownElement (tag) {\n /* istanbul ignore if */\n if (!inBrowser) {\n return true\n }\n if (isReservedTag(tag)) {\n return false\n }\n tag = tag.toLowerCase();\n /* istanbul ignore if */\n if (unknownElementCache[tag] != null) {\n return unknownElementCache[tag]\n }\n var el = document.createElement(tag);\n if (tag.indexOf('-') > -1) {\n // http://stackoverflow.com/a/28210364/1070244\n return (unknownElementCache[tag] = (\n el.constructor === window.HTMLUnknownElement ||\n el.constructor === window.HTMLElement\n ))\n } else {\n return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))\n }\n}\n\nvar isTextInputType = makeMap('text,number,password,search,email,tel,url');\n\n/* */\n\n/**\n * Query an element selector if it's not an element already.\n */\nfunction query (el) {\n if (typeof el === 'string') {\n var selected = document.querySelector(el);\n if (!selected) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Cannot find element: ' + el\n );\n return document.createElement('div')\n }\n return selected\n } else {\n return el\n }\n}\n\n/* */\n\nfunction createElement$1 (tagName, vnode) {\n var elm = document.createElement(tagName);\n if (tagName !== 'select') {\n return elm\n }\n // false or null will remove the attribute but undefined will not\n if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {\n elm.setAttribute('multiple', 'multiple');\n }\n return elm\n}\n\nfunction createElementNS (namespace, tagName) {\n return document.createElementNS(namespaceMap[namespace], tagName)\n}\n\nfunction createTextNode (text) {\n return document.createTextNode(text)\n}\n\nfunction createComment (text) {\n return document.createComment(text)\n}\n\nfunction insertBefore (parentNode, newNode, referenceNode) {\n parentNode.insertBefore(newNode, referenceNode);\n}\n\nfunction removeChild (node, child) {\n node.removeChild(child);\n}\n\nfunction appendChild (node, child) {\n node.appendChild(child);\n}\n\nfunction parentNode (node) {\n return node.parentNode\n}\n\nfunction nextSibling (node) {\n return node.nextSibling\n}\n\nfunction tagName (node) {\n return node.tagName\n}\n\nfunction setTextContent (node, text) {\n node.textContent = text;\n}\n\nfunction setStyleScope (node, scopeId) {\n node.setAttribute(scopeId, '');\n}\n\nvar nodeOps = /*#__PURE__*/Object.freeze({\n createElement: createElement$1,\n createElementNS: createElementNS,\n createTextNode: createTextNode,\n createComment: createComment,\n insertBefore: insertBefore,\n removeChild: removeChild,\n appendChild: appendChild,\n parentNode: parentNode,\n nextSibling: nextSibling,\n tagName: tagName,\n setTextContent: setTextContent,\n setStyleScope: setStyleScope\n});\n\n/* */\n\nvar ref = {\n create: function create (_, vnode) {\n registerRef(vnode);\n },\n update: function update (oldVnode, vnode) {\n if (oldVnode.data.ref !== vnode.data.ref) {\n registerRef(oldVnode, true);\n registerRef(vnode);\n }\n },\n destroy: function destroy (vnode) {\n registerRef(vnode, true);\n }\n};\n\nfunction registerRef (vnode, isRemoval) {\n var key = vnode.data.ref;\n if (!isDef(key)) { return }\n\n var vm = vnode.context;\n var ref = vnode.componentInstance || vnode.elm;\n var refs = vm.$refs;\n if (isRemoval) {\n if (Array.isArray(refs[key])) {\n remove(refs[key], ref);\n } else if (refs[key] === ref) {\n refs[key] = undefined;\n }\n } else {\n if (vnode.data.refInFor) {\n if (!Array.isArray(refs[key])) {\n refs[key] = [ref];\n } else if (refs[key].indexOf(ref) < 0) {\n // $flow-disable-line\n refs[key].push(ref);\n }\n } else {\n refs[key] = ref;\n }\n }\n}\n\n/**\n * Virtual DOM patching algorithm based on Snabbdom by\n * Simon Friis Vindum (@paldepind)\n * Licensed under the MIT License\n * https://github.com/paldepind/snabbdom/blob/master/LICENSE\n *\n * modified by Evan You (@yyx990803)\n *\n * Not type-checking this because this file is perf-critical and the cost\n * of making flow understand it is not worth it.\n */\n\nvar emptyNode = new VNode('', {}, []);\n\nvar hooks = ['create', 'activate', 'update', 'remove', 'destroy'];\n\nfunction sameVnode (a, b) {\n return (\n a.key === b.key && (\n (\n a.tag === b.tag &&\n a.isComment === b.isComment &&\n isDef(a.data) === isDef(b.data) &&\n sameInputType(a, b)\n ) || (\n isTrue(a.isAsyncPlaceholder) &&\n a.asyncFactory === b.asyncFactory &&\n isUndef(b.asyncFactory.error)\n )\n )\n )\n}\n\nfunction sameInputType (a, b) {\n if (a.tag !== 'input') { return true }\n var i;\n var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;\n var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;\n return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)\n}\n\nfunction createKeyToOldIdx (children, beginIdx, endIdx) {\n var i, key;\n var map = {};\n for (i = beginIdx; i <= endIdx; ++i) {\n key = children[i].key;\n if (isDef(key)) { map[key] = i; }\n }\n return map\n}\n\nfunction createPatchFunction (backend) {\n var i, j;\n var cbs = {};\n\n var modules = backend.modules;\n var nodeOps = backend.nodeOps;\n\n for (i = 0; i < hooks.length; ++i) {\n cbs[hooks[i]] = [];\n for (j = 0; j < modules.length; ++j) {\n if (isDef(modules[j][hooks[i]])) {\n cbs[hooks[i]].push(modules[j][hooks[i]]);\n }\n }\n }\n\n function emptyNodeAt (elm) {\n return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)\n }\n\n function createRmCb (childElm, listeners) {\n function remove$$1 () {\n if (--remove$$1.listeners === 0) {\n removeNode(childElm);\n }\n }\n remove$$1.listeners = listeners;\n return remove$$1\n }\n\n function removeNode (el) {\n var parent = nodeOps.parentNode(el);\n // element may have already been removed due to v-html / v-text\n if (isDef(parent)) {\n nodeOps.removeChild(parent, el);\n }\n }\n\n function isUnknownElement$$1 (vnode, inVPre) {\n return (\n !inVPre &&\n !vnode.ns &&\n !(\n config.ignoredElements.length &&\n config.ignoredElements.some(function (ignore) {\n return isRegExp(ignore)\n ? ignore.test(vnode.tag)\n : ignore === vnode.tag\n })\n ) &&\n config.isUnknownElement(vnode.tag)\n )\n }\n\n var creatingElmInVPre = 0;\n\n function createElm (\n vnode,\n insertedVnodeQueue,\n parentElm,\n refElm,\n nested,\n ownerArray,\n index\n ) {\n if (isDef(vnode.elm) && isDef(ownerArray)) {\n // This vnode was used in a previous render!\n // now it's used as a new node, overwriting its elm would cause\n // potential patch errors down the road when it's used as an insertion\n // reference node. Instead, we clone the node on-demand before creating\n // associated DOM element for it.\n vnode = ownerArray[index] = cloneVNode(vnode);\n }\n\n vnode.isRootInsert = !nested; // for transition enter check\n if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {\n return\n }\n\n var data = vnode.data;\n var children = vnode.children;\n var tag = vnode.tag;\n if (isDef(tag)) {\n if (process.env.NODE_ENV !== 'production') {\n if (data && data.pre) {\n creatingElmInVPre++;\n }\n if (isUnknownElement$$1(vnode, creatingElmInVPre)) {\n warn(\n 'Unknown custom element: <' + tag + '> - did you ' +\n 'register the component correctly? For recursive components, ' +\n 'make sure to provide the \"name\" option.',\n vnode.context\n );\n }\n }\n\n vnode.elm = vnode.ns\n ? nodeOps.createElementNS(vnode.ns, tag)\n : nodeOps.createElement(tag, vnode);\n setScope(vnode);\n\n /* istanbul ignore if */\n {\n createChildren(vnode, children, insertedVnodeQueue);\n if (isDef(data)) {\n invokeCreateHooks(vnode, insertedVnodeQueue);\n }\n insert(parentElm, vnode.elm, refElm);\n }\n\n if (process.env.NODE_ENV !== 'production' && data && data.pre) {\n creatingElmInVPre--;\n }\n } else if (isTrue(vnode.isComment)) {\n vnode.elm = nodeOps.createComment(vnode.text);\n insert(parentElm, vnode.elm, refElm);\n } else {\n vnode.elm = nodeOps.createTextNode(vnode.text);\n insert(parentElm, vnode.elm, refElm);\n }\n }\n\n function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\n var i = vnode.data;\n if (isDef(i)) {\n var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;\n if (isDef(i = i.hook) && isDef(i = i.init)) {\n i(vnode, false /* hydrating */);\n }\n // after calling the init hook, if the vnode is a child component\n // it should've created a child instance and mounted it. the child\n // component also has set the placeholder vnode's elm.\n // in that case we can just return the element and be done.\n if (isDef(vnode.componentInstance)) {\n initComponent(vnode, insertedVnodeQueue);\n insert(parentElm, vnode.elm, refElm);\n if (isTrue(isReactivated)) {\n reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);\n }\n return true\n }\n }\n }\n\n function initComponent (vnode, insertedVnodeQueue) {\n if (isDef(vnode.data.pendingInsert)) {\n insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);\n vnode.data.pendingInsert = null;\n }\n vnode.elm = vnode.componentInstance.$el;\n if (isPatchable(vnode)) {\n invokeCreateHooks(vnode, insertedVnodeQueue);\n setScope(vnode);\n } else {\n // empty component root.\n // skip all element-related modules except for ref (#3455)\n registerRef(vnode);\n // make sure to invoke the insert hook\n insertedVnodeQueue.push(vnode);\n }\n }\n\n function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\n var i;\n // hack for #4339: a reactivated component with inner transition\n // does not trigger because the inner node's created hooks are not called\n // again. It's not ideal to involve module-specific logic in here but\n // there doesn't seem to be a better way to do it.\n var innerNode = vnode;\n while (innerNode.componentInstance) {\n innerNode = innerNode.componentInstance._vnode;\n if (isDef(i = innerNode.data) && isDef(i = i.transition)) {\n for (i = 0; i < cbs.activate.length; ++i) {\n cbs.activate[i](emptyNode, innerNode);\n }\n insertedVnodeQueue.push(innerNode);\n break\n }\n }\n // unlike a newly created component,\n // a reactivated keep-alive component doesn't insert itself\n insert(parentElm, vnode.elm, refElm);\n }\n\n function insert (parent, elm, ref$$1) {\n if (isDef(parent)) {\n if (isDef(ref$$1)) {\n if (nodeOps.parentNode(ref$$1) === parent) {\n nodeOps.insertBefore(parent, elm, ref$$1);\n }\n } else {\n nodeOps.appendChild(parent, elm);\n }\n }\n }\n\n function createChildren (vnode, children, insertedVnodeQueue) {\n if (Array.isArray(children)) {\n if (process.env.NODE_ENV !== 'production') {\n checkDuplicateKeys(children);\n }\n for (var i = 0; i < children.length; ++i) {\n createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);\n }\n } else if (isPrimitive(vnode.text)) {\n nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));\n }\n }\n\n function isPatchable (vnode) {\n while (vnode.componentInstance) {\n vnode = vnode.componentInstance._vnode;\n }\n return isDef(vnode.tag)\n }\n\n function invokeCreateHooks (vnode, insertedVnodeQueue) {\n for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {\n cbs.create[i$1](emptyNode, vnode);\n }\n i = vnode.data.hook; // Reuse variable\n if (isDef(i)) {\n if (isDef(i.create)) { i.create(emptyNode, vnode); }\n if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }\n }\n }\n\n // set scope id attribute for scoped CSS.\n // this is implemented as a special case to avoid the overhead\n // of going through the normal attribute patching process.\n function setScope (vnode) {\n var i;\n if (isDef(i = vnode.fnScopeId)) {\n nodeOps.setStyleScope(vnode.elm, i);\n } else {\n var ancestor = vnode;\n while (ancestor) {\n if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {\n nodeOps.setStyleScope(vnode.elm, i);\n }\n ancestor = ancestor.parent;\n }\n }\n // for slot content they should also get the scopeId from the host instance.\n if (isDef(i = activeInstance) &&\n i !== vnode.context &&\n i !== vnode.fnContext &&\n isDef(i = i.$options._scopeId)\n ) {\n nodeOps.setStyleScope(vnode.elm, i);\n }\n }\n\n function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {\n for (; startIdx <= endIdx; ++startIdx) {\n createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);\n }\n }\n\n function invokeDestroyHook (vnode) {\n var i, j;\n var data = vnode.data;\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }\n for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }\n }\n if (isDef(i = vnode.children)) {\n for (j = 0; j < vnode.children.length; ++j) {\n invokeDestroyHook(vnode.children[j]);\n }\n }\n }\n\n function removeVnodes (parentElm, vnodes, startIdx, endIdx) {\n for (; startIdx <= endIdx; ++startIdx) {\n var ch = vnodes[startIdx];\n if (isDef(ch)) {\n if (isDef(ch.tag)) {\n removeAndInvokeRemoveHook(ch);\n invokeDestroyHook(ch);\n } else { // Text node\n removeNode(ch.elm);\n }\n }\n }\n }\n\n function removeAndInvokeRemoveHook (vnode, rm) {\n if (isDef(rm) || isDef(vnode.data)) {\n var i;\n var listeners = cbs.remove.length + 1;\n if (isDef(rm)) {\n // we have a recursively passed down rm callback\n // increase the listeners count\n rm.listeners += listeners;\n } else {\n // directly removing\n rm = createRmCb(vnode.elm, listeners);\n }\n // recursively invoke hooks on child component root node\n if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {\n removeAndInvokeRemoveHook(i, rm);\n }\n for (i = 0; i < cbs.remove.length; ++i) {\n cbs.remove[i](vnode, rm);\n }\n if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {\n i(vnode, rm);\n } else {\n rm();\n }\n } else {\n removeNode(vnode.elm);\n }\n }\n\n function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {\n var oldStartIdx = 0;\n var newStartIdx = 0;\n var oldEndIdx = oldCh.length - 1;\n var oldStartVnode = oldCh[0];\n var oldEndVnode = oldCh[oldEndIdx];\n var newEndIdx = newCh.length - 1;\n var newStartVnode = newCh[0];\n var newEndVnode = newCh[newEndIdx];\n var oldKeyToIdx, idxInOld, vnodeToMove, refElm;\n\n // removeOnly is a special flag used only by \n // to ensure removed elements stay in correct relative positions\n // during leaving transitions\n var canMove = !removeOnly;\n\n if (process.env.NODE_ENV !== 'production') {\n checkDuplicateKeys(newCh);\n }\n\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (isUndef(oldStartVnode)) {\n oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left\n } else if (isUndef(oldEndVnode)) {\n oldEndVnode = oldCh[--oldEndIdx];\n } else if (sameVnode(oldStartVnode, newStartVnode)) {\n patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n } else if (sameVnode(oldEndVnode, newEndVnode)) {\n patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right\n patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);\n canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));\n oldStartVnode = oldCh[++oldStartIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left\n patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);\n oldEndVnode = oldCh[--oldEndIdx];\n newStartVnode = newCh[++newStartIdx];\n } else {\n if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }\n idxInOld = isDef(newStartVnode.key)\n ? oldKeyToIdx[newStartVnode.key]\n : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);\n if (isUndef(idxInOld)) { // New element\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);\n } else {\n vnodeToMove = oldCh[idxInOld];\n if (sameVnode(vnodeToMove, newStartVnode)) {\n patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n oldCh[idxInOld] = undefined;\n canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);\n } else {\n // same key but different element. treat as new element\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);\n }\n }\n newStartVnode = newCh[++newStartIdx];\n }\n }\n if (oldStartIdx > oldEndIdx) {\n refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;\n addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);\n } else if (newStartIdx > newEndIdx) {\n removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);\n }\n }\n\n function checkDuplicateKeys (children) {\n var seenKeys = {};\n for (var i = 0; i < children.length; i++) {\n var vnode = children[i];\n var key = vnode.key;\n if (isDef(key)) {\n if (seenKeys[key]) {\n warn(\n (\"Duplicate keys detected: '\" + key + \"'. This may cause an update error.\"),\n vnode.context\n );\n } else {\n seenKeys[key] = true;\n }\n }\n }\n }\n\n function findIdxInOld (node, oldCh, start, end) {\n for (var i = start; i < end; i++) {\n var c = oldCh[i];\n if (isDef(c) && sameVnode(node, c)) { return i }\n }\n }\n\n function patchVnode (\n oldVnode,\n vnode,\n insertedVnodeQueue,\n ownerArray,\n index,\n removeOnly\n ) {\n if (oldVnode === vnode) {\n return\n }\n\n if (isDef(vnode.elm) && isDef(ownerArray)) {\n // clone reused vnode\n vnode = ownerArray[index] = cloneVNode(vnode);\n }\n\n var elm = vnode.elm = oldVnode.elm;\n\n if (isTrue(oldVnode.isAsyncPlaceholder)) {\n if (isDef(vnode.asyncFactory.resolved)) {\n hydrate(oldVnode.elm, vnode, insertedVnodeQueue);\n } else {\n vnode.isAsyncPlaceholder = true;\n }\n return\n }\n\n // reuse element for static trees.\n // note we only do this if the vnode is cloned -\n // if the new node is not cloned it means the render functions have been\n // reset by the hot-reload-api and we need to do a proper re-render.\n if (isTrue(vnode.isStatic) &&\n isTrue(oldVnode.isStatic) &&\n vnode.key === oldVnode.key &&\n (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))\n ) {\n vnode.componentInstance = oldVnode.componentInstance;\n return\n }\n\n var i;\n var data = vnode.data;\n if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {\n i(oldVnode, vnode);\n }\n\n var oldCh = oldVnode.children;\n var ch = vnode.children;\n if (isDef(data) && isPatchable(vnode)) {\n for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }\n if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }\n }\n if (isUndef(vnode.text)) {\n if (isDef(oldCh) && isDef(ch)) {\n if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }\n } else if (isDef(ch)) {\n if (process.env.NODE_ENV !== 'production') {\n checkDuplicateKeys(ch);\n }\n if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }\n addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);\n } else if (isDef(oldCh)) {\n removeVnodes(elm, oldCh, 0, oldCh.length - 1);\n } else if (isDef(oldVnode.text)) {\n nodeOps.setTextContent(elm, '');\n }\n } else if (oldVnode.text !== vnode.text) {\n nodeOps.setTextContent(elm, vnode.text);\n }\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }\n }\n }\n\n function invokeInsertHook (vnode, queue, initial) {\n // delay insert hooks for component root nodes, invoke them after the\n // element is really inserted\n if (isTrue(initial) && isDef(vnode.parent)) {\n vnode.parent.data.pendingInsert = queue;\n } else {\n for (var i = 0; i < queue.length; ++i) {\n queue[i].data.hook.insert(queue[i]);\n }\n }\n }\n\n var hydrationBailed = false;\n // list of modules that can skip create hook during hydration because they\n // are already rendered on the client or has no need for initialization\n // Note: style is excluded because it relies on initial clone for future\n // deep updates (#7063).\n var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');\n\n // Note: this is a browser-only function so we can assume elms are DOM nodes.\n function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {\n var i;\n var tag = vnode.tag;\n var data = vnode.data;\n var children = vnode.children;\n inVPre = inVPre || (data && data.pre);\n vnode.elm = elm;\n\n if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {\n vnode.isAsyncPlaceholder = true;\n return true\n }\n // assert node match\n if (process.env.NODE_ENV !== 'production') {\n if (!assertNodeMatch(elm, vnode, inVPre)) {\n return false\n }\n }\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }\n if (isDef(i = vnode.componentInstance)) {\n // child component. it should have hydrated its own tree.\n initComponent(vnode, insertedVnodeQueue);\n return true\n }\n }\n if (isDef(tag)) {\n if (isDef(children)) {\n // empty element, allow client to pick up and populate children\n if (!elm.hasChildNodes()) {\n createChildren(vnode, children, insertedVnodeQueue);\n } else {\n // v-html and domProps: innerHTML\n if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {\n if (i !== elm.innerHTML) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' &&\n typeof console !== 'undefined' &&\n !hydrationBailed\n ) {\n hydrationBailed = true;\n console.warn('Parent: ', elm);\n console.warn('server innerHTML: ', i);\n console.warn('client innerHTML: ', elm.innerHTML);\n }\n return false\n }\n } else {\n // iterate and compare children lists\n var childrenMatch = true;\n var childNode = elm.firstChild;\n for (var i$1 = 0; i$1 < children.length; i$1++) {\n if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {\n childrenMatch = false;\n break\n }\n childNode = childNode.nextSibling;\n }\n // if childNode is not null, it means the actual childNodes list is\n // longer than the virtual children list.\n if (!childrenMatch || childNode) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' &&\n typeof console !== 'undefined' &&\n !hydrationBailed\n ) {\n hydrationBailed = true;\n console.warn('Parent: ', elm);\n console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);\n }\n return false\n }\n }\n }\n }\n if (isDef(data)) {\n var fullInvoke = false;\n for (var key in data) {\n if (!isRenderedModule(key)) {\n fullInvoke = true;\n invokeCreateHooks(vnode, insertedVnodeQueue);\n break\n }\n }\n if (!fullInvoke && data['class']) {\n // ensure collecting deps for deep class bindings for future updates\n traverse(data['class']);\n }\n }\n } else if (elm.data !== vnode.text) {\n elm.data = vnode.text;\n }\n return true\n }\n\n function assertNodeMatch (node, vnode, inVPre) {\n if (isDef(vnode.tag)) {\n return vnode.tag.indexOf('vue-component') === 0 || (\n !isUnknownElement$$1(vnode, inVPre) &&\n vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())\n )\n } else {\n return node.nodeType === (vnode.isComment ? 8 : 3)\n }\n }\n\n return function patch (oldVnode, vnode, hydrating, removeOnly) {\n if (isUndef(vnode)) {\n if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }\n return\n }\n\n var isInitialPatch = false;\n var insertedVnodeQueue = [];\n\n if (isUndef(oldVnode)) {\n // empty mount (likely as component), create new root element\n isInitialPatch = true;\n createElm(vnode, insertedVnodeQueue);\n } else {\n var isRealElement = isDef(oldVnode.nodeType);\n if (!isRealElement && sameVnode(oldVnode, vnode)) {\n // patch existing root node\n patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly);\n } else {\n if (isRealElement) {\n // mounting to a real element\n // check if this is server-rendered content and if we can perform\n // a successful hydration.\n if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {\n oldVnode.removeAttribute(SSR_ATTR);\n hydrating = true;\n }\n if (isTrue(hydrating)) {\n if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {\n invokeInsertHook(vnode, insertedVnodeQueue, true);\n return oldVnode\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n 'The client-side rendered virtual DOM tree is not matching ' +\n 'server-rendered content. This is likely caused by incorrect ' +\n 'HTML markup, for example nesting block-level elements inside ' +\n '
, or missing
. Bailing hydration and performing ' +\n 'full client-side render.'\n );\n }\n }\n // either not server-rendered, or hydration failed.\n // create an empty node and replace it\n oldVnode = emptyNodeAt(oldVnode);\n }\n\n // replacing existing element\n var oldElm = oldVnode.elm;\n var parentElm = nodeOps.parentNode(oldElm);\n\n // create new node\n createElm(\n vnode,\n insertedVnodeQueue,\n // extremely rare edge case: do not insert if old element is in a\n // leaving transition. Only happens when combining transition +\n // keep-alive + HOCs. (#4590)\n oldElm._leaveCb ? null : parentElm,\n nodeOps.nextSibling(oldElm)\n );\n\n // update parent placeholder node element, recursively\n if (isDef(vnode.parent)) {\n var ancestor = vnode.parent;\n var patchable = isPatchable(vnode);\n while (ancestor) {\n for (var i = 0; i < cbs.destroy.length; ++i) {\n cbs.destroy[i](ancestor);\n }\n ancestor.elm = vnode.elm;\n if (patchable) {\n for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {\n cbs.create[i$1](emptyNode, ancestor);\n }\n // #6513\n // invoke insert hooks that may have been merged by create hooks.\n // e.g. for directives that uses the \"inserted\" hook.\n var insert = ancestor.data.hook.insert;\n if (insert.merged) {\n // start at index 1 to avoid re-invoking component mounted hook\n for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {\n insert.fns[i$2]();\n }\n }\n } else {\n registerRef(ancestor);\n }\n ancestor = ancestor.parent;\n }\n }\n\n // destroy old node\n if (isDef(parentElm)) {\n removeVnodes(parentElm, [oldVnode], 0, 0);\n } else if (isDef(oldVnode.tag)) {\n invokeDestroyHook(oldVnode);\n }\n }\n }\n\n invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);\n return vnode.elm\n }\n}\n\n/* */\n\nvar directives = {\n create: updateDirectives,\n update: updateDirectives,\n destroy: function unbindDirectives (vnode) {\n updateDirectives(vnode, emptyNode);\n }\n};\n\nfunction updateDirectives (oldVnode, vnode) {\n if (oldVnode.data.directives || vnode.data.directives) {\n _update(oldVnode, vnode);\n }\n}\n\nfunction _update (oldVnode, vnode) {\n var isCreate = oldVnode === emptyNode;\n var isDestroy = vnode === emptyNode;\n var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);\n var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);\n\n var dirsWithInsert = [];\n var dirsWithPostpatch = [];\n\n var key, oldDir, dir;\n for (key in newDirs) {\n oldDir = oldDirs[key];\n dir = newDirs[key];\n if (!oldDir) {\n // new directive, bind\n callHook$1(dir, 'bind', vnode, oldVnode);\n if (dir.def && dir.def.inserted) {\n dirsWithInsert.push(dir);\n }\n } else {\n // existing directive, update\n dir.oldValue = oldDir.value;\n dir.oldArg = oldDir.arg;\n callHook$1(dir, 'update', vnode, oldVnode);\n if (dir.def && dir.def.componentUpdated) {\n dirsWithPostpatch.push(dir);\n }\n }\n }\n\n if (dirsWithInsert.length) {\n var callInsert = function () {\n for (var i = 0; i < dirsWithInsert.length; i++) {\n callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);\n }\n };\n if (isCreate) {\n mergeVNodeHook(vnode, 'insert', callInsert);\n } else {\n callInsert();\n }\n }\n\n if (dirsWithPostpatch.length) {\n mergeVNodeHook(vnode, 'postpatch', function () {\n for (var i = 0; i < dirsWithPostpatch.length; i++) {\n callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);\n }\n });\n }\n\n if (!isCreate) {\n for (key in oldDirs) {\n if (!newDirs[key]) {\n // no longer present, unbind\n callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);\n }\n }\n }\n}\n\nvar emptyModifiers = Object.create(null);\n\nfunction normalizeDirectives$1 (\n dirs,\n vm\n) {\n var res = Object.create(null);\n if (!dirs) {\n // $flow-disable-line\n return res\n }\n var i, dir;\n for (i = 0; i < dirs.length; i++) {\n dir = dirs[i];\n if (!dir.modifiers) {\n // $flow-disable-line\n dir.modifiers = emptyModifiers;\n }\n res[getRawDirName(dir)] = dir;\n dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);\n }\n // $flow-disable-line\n return res\n}\n\nfunction getRawDirName (dir) {\n return dir.rawName || ((dir.name) + \".\" + (Object.keys(dir.modifiers || {}).join('.')))\n}\n\nfunction callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {\n var fn = dir.def && dir.def[hook];\n if (fn) {\n try {\n fn(vnode.elm, dir, vnode, oldVnode, isDestroy);\n } catch (e) {\n handleError(e, vnode.context, (\"directive \" + (dir.name) + \" \" + hook + \" hook\"));\n }\n }\n}\n\nvar baseModules = [\n ref,\n directives\n];\n\n/* */\n\nfunction updateAttrs (oldVnode, vnode) {\n var opts = vnode.componentOptions;\n if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {\n return\n }\n if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {\n return\n }\n var key, cur, old;\n var elm = vnode.elm;\n var oldAttrs = oldVnode.data.attrs || {};\n var attrs = vnode.data.attrs || {};\n // clone observed objects, as the user probably wants to mutate it\n if (isDef(attrs.__ob__)) {\n attrs = vnode.data.attrs = extend({}, attrs);\n }\n\n for (key in attrs) {\n cur = attrs[key];\n old = oldAttrs[key];\n if (old !== cur) {\n setAttr(elm, key, cur);\n }\n }\n // #4391: in IE9, setting type can reset value for input[type=radio]\n // #6666: IE/Edge forces progress value down to 1 before setting a max\n /* istanbul ignore if */\n if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {\n setAttr(elm, 'value', attrs.value);\n }\n for (key in oldAttrs) {\n if (isUndef(attrs[key])) {\n if (isXlink(key)) {\n elm.removeAttributeNS(xlinkNS, getXlinkProp(key));\n } else if (!isEnumeratedAttr(key)) {\n elm.removeAttribute(key);\n }\n }\n }\n}\n\nfunction setAttr (el, key, value) {\n if (el.tagName.indexOf('-') > -1) {\n baseSetAttr(el, key, value);\n } else if (isBooleanAttr(key)) {\n // set attribute for blank value\n // e.g. \n if (isFalsyAttrValue(value)) {\n el.removeAttribute(key);\n } else {\n // technically allowfullscreen is a boolean attribute for