From b4a3b8e25454145b8d4c0e44b1ca31f0e6006e34 Mon Sep 17 00:00:00 2001 From: Jacob <42719082+ThatGuyJacobee@users.noreply.github.com> Date: Tue, 19 Apr 2022 11:22:45 +0100 Subject: [PATCH] CAD System Departments Update!! + Updated cadvanced_mdt to v3.0.0 --- resources/cadvanced_mdt/cad.conf | 2 - resources/cadvanced_mdt/client/comms.lua | 17 +++-- resources/cadvanced_mdt/fxmanifest.lua | 2 +- resources/cadvanced_mdt/server/lib/router.lua | 15 +++- .../server/modules/cad_config.lua | 13 ++-- .../server/modules/comms/client_receiver.lua | 15 +++- .../server/modules/departments.lua | 61 +++++++++++++++++ .../cadvanced_mdt/server/modules/init.lua | 8 ++- .../cadvanced_mdt/server/modules/queries.lua | 68 +++++++++++++------ resources/cadvanced_mdt/ui/build/bundle.js | 8 +-- 10 files changed, 166 insertions(+), 43 deletions(-) delete mode 100644 resources/cadvanced_mdt/cad.conf create mode 100644 resources/cadvanced_mdt/server/modules/departments.lua diff --git a/resources/cadvanced_mdt/cad.conf b/resources/cadvanced_mdt/cad.conf deleted file mode 100644 index 6240be427..000000000 --- a/resources/cadvanced_mdt/cad.conf +++ /dev/null @@ -1,2 +0,0 @@ -###### IMPORTANT CONFIGURATION FILE - DO NOT EDIT OR DELETE ###### -https://cad.elite-gaming.co.uk|9daa1d24-d0e8-4149-9da4-a5b4033dbb3e \ No newline at end of file diff --git a/resources/cadvanced_mdt/client/comms.lua b/resources/cadvanced_mdt/client/comms.lua index 8f4b6ead5..91d02bf13 100644 --- a/resources/cadvanced_mdt/client/comms.lua +++ b/resources/cadvanced_mdt/client/comms.lua @@ -366,12 +366,21 @@ AddEventHandler( end ) -RegisterNetEvent("data:preference_enable_bolo") +RegisterNetEvent("data:departments") AddEventHandler( - "data:preference_enable_bolo", + "data:departments", function(jsonData) - print_debug("RECEIVED ENABLE_BOLO PREFERENCE FROM SERVER") - pass_to_nui(jsonData, "preference_enable_bolo") + print_debug("RECEIVED DEPARTMENTS FROM SERVER") + pass_to_nui(jsonData, "departments") + end +) + +RegisterNetEvent("data:department_announcements") +AddEventHandler( + "data:department_announcements", + function(jsonData) + print_debug("RECEIVED DEPARTMENT ANNOUNCEMENTS FROM SERVER") + pass_to_nui(jsonData, "department_announcements") end ) diff --git a/resources/cadvanced_mdt/fxmanifest.lua b/resources/cadvanced_mdt/fxmanifest.lua index 625487beb..038fba4e4 100644 --- a/resources/cadvanced_mdt/fxmanifest.lua +++ b/resources/cadvanced_mdt/fxmanifest.lua @@ -3,7 +3,7 @@ games {"gta5"} name "CADvanced MDT" description "CADvanced MDT, a FiveM resource that provides integration between CADvanced (https://cadvanced.app) and FiveM in the form of an in-game MDT." -version "2.4.0" +version "3.0.0" ui_page "ui/build/index.html" ui_page_preload "yes" diff --git a/resources/cadvanced_mdt/server/lib/router.lua b/resources/cadvanced_mdt/server/lib/router.lua index ea68f1188..d15ff97ff 100644 --- a/resources/cadvanced_mdt/server/lib/router.lua +++ b/resources/cadvanced_mdt/server/lib/router.lua @@ -4,6 +4,7 @@ local calls = module("server/modules/calls") local bolos = module("server/modules/bolos") local vehicles = module("server/modules/vehicles") local citizens = module("server/modules/citizens") +local departments = module("server/modules/departments") local preferences = module("server/modules/preferences") local cad_config = module("server/modules/cad_config") @@ -16,6 +17,7 @@ SetHttpHandler( function(body) print_debug("POST ROUTER RECEIVED " .. body) local data = json.decode(body) + local response = "OK" if next(data) ~= nil then print_debug("HANDLING UPDATED " .. data.object) if (data.object == "user") then @@ -67,6 +69,12 @@ SetHttpHandler( elseif (data.object == "bolos") then -- Repopulate all BOLOs bolos.repopulate_bolos() + elseif (data.object == "departments") then + -- Update all departments + departments.repopulate_departments() + elseif (data.object == "department_announcements") then + -- Update all department announcements + departments.repopulate_department_announcements() elseif (data.object == "whitelist") then -- Repopulate the whitelist users.get_whitelisted() @@ -75,11 +83,14 @@ SetHttpHandler( users.display_panic(data.payload.callId) elseif (data.object == "cad_config") then -- We've received an updated config - cad_config.receive_update(data.payload) + local updated = cad_config.receive_update(data.payload) + if (not updated) then + response = "FAIL" + end end end res.send(json.encode({ - result = "OK", + result = response, cadvanced_mdt_version = GetResourceMetadata('cadvanced_mdt', 'version', 0) })) end diff --git a/resources/cadvanced_mdt/server/modules/cad_config.lua b/resources/cadvanced_mdt/server/modules/cad_config.lua index 356fdbb2a..4401510fe 100644 --- a/resources/cadvanced_mdt/server/modules/cad_config.lua +++ b/resources/cadvanced_mdt/server/modules/cad_config.lua @@ -2,11 +2,14 @@ local cad_config = {} -- Update config from CAD function cad_config.receive_update(updated_config) - local retval = getResourcePath() - local conf = io.open(retval .. "/cad.conf", "w") - conf:write("###### IMPORTANT CONFIGURATION FILE - DO NOT EDIT OR DELETE ######\n") - conf:write(updated_config.url .. "|" .. updated_config.key) - io.close(conf) + local data = "###### IMPORTANT CONFIGURATION FILE - DO NOT EDIT OR DELETE ######\n" .. updated_config.url .. "|" .. updated_config.key + local written = SaveResourceFile( + "cadvanced_mdt", + "cad.conf", + data, + -1 + ) + return written end return cad_config \ No newline at end of file diff --git a/resources/cadvanced_mdt/server/modules/comms/client_receiver.lua b/resources/cadvanced_mdt/server/modules/comms/client_receiver.lua index 5e12032fa..cb4c9625b 100644 --- a/resources/cadvanced_mdt/server/modules/comms/client_receiver.lua +++ b/resources/cadvanced_mdt/server/modules/comms/client_receiver.lua @@ -7,6 +7,7 @@ local vehicles = module("server/modules/vehicles") local legal = module("server/modules/legal") local calls = module("server/modules/calls") local bolos = module("server/modules/bolos") +local departments = module("server/modules/departments") local client_sender = module("server/modules/comms/client_sender") local client_receiver = {} @@ -26,6 +27,7 @@ function client_receiver.client_event_handlers() -- the side effect of distributing it to all clients, including us users.populate_player() client_sender.pass_data({ + cad_url = conf.val("cad_url"), homepage = conf.val("homepage"), sound_volume = conf.val("sound_volume"), debug = conf.val("debug"), @@ -67,7 +69,8 @@ function client_receiver.client_event_handlers() client_sender.pass_data(state_get("call_grades"), "call_grades", source) client_sender.pass_data(state_get("call_types"), "call_types", source) client_sender.pass_data(state_get("call_incidents"), "call_incidents", source) - client_sender.pass_data(state_get("preference_enable_bolo"), "preference_enable_bolo", source) + client_sender.pass_data(state_get("departments"), "departments", source) + client_sender.pass_data(state_get("department_announcements"), "department_announcements", source) client_sender.pass_data(user_helpers.get_steam_id(source), "steam_id", source) end ) @@ -318,6 +321,16 @@ function client_receiver.client_event_handlers() end ) + -- Get a department's announcements + RegisterNetEvent("get_department_announcements") + AddEventHandler( + "get_department_announcements", + function(data) + print_debug("RECEIVED REQUEST FROM CLIENT TO GET DEPARTMENT ANNOUNCEMENTS") + departments.get_department_announcements(data) + end + ) + -- Send a unit RegisterNetEvent("send_unit") AddEventHandler( diff --git a/resources/cadvanced_mdt/server/modules/departments.lua b/resources/cadvanced_mdt/server/modules/departments.lua new file mode 100644 index 000000000..64c1324ac --- /dev/null +++ b/resources/cadvanced_mdt/server/modules/departments.lua @@ -0,0 +1,61 @@ +local queries = module("server/modules/queries") +local client_sender = module("server/modules/comms/client_sender") +local api = module("server/modules/comms/api") + +local departments = {} + +-- Repopulate all department announcements +function departments.repopulate_department_announcements() + departments.get_department_announcements() +end + +-- Get all department announcements +function departments.get_department_announcements() + local q_all_department_announcements = queries.get_department_announcements() + api.request( + q_all_department_announcements, + function(response) + response = json.decode(response) + if response.error == nil then + local department_announcements_table = {} + for _, ann in ipairs(response.data.allDepartmentAnnouncements) do + table.insert(department_announcements_table, ann) + end + state_set("department_announcements", department_announcements_table) + client_sender.pass_data(state.department_announcements, "department_announcements") + else + print_debug(response.error) + end + end + ) +end + +-- Repopulate all departments +function departments.repopulate_departments() + departments.get_all_departments(true) +end + +-- Get all departments +function departments.get_all_departments(pass_to_client) + local q_all_departments = queries.get_all_departments() + api.request( + q_all_departments, + function(response) + response = json.decode(response) + if response.error == nil then + local departments_table = {} + for _, dept in ipairs(response.data.allDepartments) do + table.insert(departments_table, dept) + end + state_set("departments", departments_table) + if (pass_to_client ~= nil and pass_to_client) then + client_sender.pass_data(state.departments, "departments") + end + else + print_debug(response.error) + end + end + ) +end + +return departments; diff --git a/resources/cadvanced_mdt/server/modules/init.lua b/resources/cadvanced_mdt/server/modules/init.lua index 65b8d553f..59da9ba5f 100644 --- a/resources/cadvanced_mdt/server/modules/init.lua +++ b/resources/cadvanced_mdt/server/modules/init.lua @@ -8,6 +8,7 @@ local vehicles = module("server/modules/vehicles") local legal = module("server/modules/legal") local locations = module("server/modules/locations") local calls = module("server/modules/calls") +local departments = module("server/modules/departments") local preferences = module("server/modules/preferences") local client_receiver = module("server/modules/comms/client_receiver") @@ -75,8 +76,11 @@ function init.bootstrapData() -- Get all locations locations.get_all_locations() - -- Find out if BOLOs are enabled - preferences.get_preference("enable_bolo") + -- Get all departments + departments.get_all_departments() + + -- Get all department announcements + departments.get_department_announcements() end function init.createEventHandlers() diff --git a/resources/cadvanced_mdt/server/modules/queries.lua b/resources/cadvanced_mdt/server/modules/queries.lua index 9959b195f..b62cc27ba 100644 --- a/resources/cadvanced_mdt/server/modules/queries.lua +++ b/resources/cadvanced_mdt/server/modules/queries.lua @@ -16,7 +16,7 @@ function queries.get_user(steam_id) local query = { operationName = null, query = _doSub( - '{ getUser(steamId: "$x") { id userName steamId avatarUrl x y roles { id name code } character { ... on Citizen { id firstName lastName active __typename } ... on Officer { id firstName lastName active __typename } } } }', + '{ getUser(steamId: "$x") { id userName steamId avatarUrl x y roles { id name code } character { ... on Citizen { id firstName lastName active __typename } ... on Officer { id firstName lastName active department { id colour logo name bolo } __typename } } } }', {x = steam_id} ) } @@ -29,7 +29,7 @@ function queries.start_panic(steam_id) variables = { steamId = steam_id }, - query = 'mutation ($steamId: String!) { startPanic(steamId: $steamId) { id callerInfo markerX markerY callType { id name code readonly } callGrade { id name code readonly } callLocations { id name code readonly } callIncidents { id name code readonly } callDescriptions { id text } } }' + query = 'mutation ($steamId: String!) { startPanic(steamId: $steamId) { id callerInfo markerX markerY DepartmentId callType { id name code readonly DepartmentId } callGrade { id name code readonly DepartmentId } callLocations { id name code readonly } callIncidents { id name code readonly DepartmentId } callDescriptions { id text } } }' } return json.encode(query) end @@ -37,7 +37,7 @@ end function queries.get_all_calls() local query = { operationName = null, - query = "{ allCalls { id callerInfo markerX markerY callGrade { id name } callType { id name } callLocations { id name } callIncidents { id name } callDescriptions { id text } assignedUnits { id } } }" + query = "{ allCalls { id callerInfo markerX markerY DepartmentId callGrade { id name code readonly DepartmentId } callType { id name code readonly DepartmentId } callLocations { id name } callIncidents { id name code readonly DepartmentId } callDescriptions { id text } assignedUnits { id } } }" } return json.encode(query) end @@ -56,7 +56,23 @@ end function queries.get_all_bolos() local query = { operationName = null, - query = "{ allBolos { id boloType details { description knownName weapons lastLocation reason licencePlate driverDescription occupants } updatedAt } }" + query = "{ allBolos { id boloType DepartmentId details { description knownName weapons lastLocation reason licencePlate driverDescription occupants } updatedAt } }" + } + return json.encode(query) +end + +function queries.get_all_departments() + local query = { + operationName = null, + query = '{allDepartments{id name colour logo readonly bolo}}' + } + return json.encode(query) +end + +function queries.get_department_announcements() + local query = { + operationName = null, + query = 'query allDepartmentAnnouncements($id: ID) { allDepartmentAnnouncements(id: $id) { id text DepartmentId createdAt updatedAt } }' } return json.encode(query) end @@ -64,7 +80,7 @@ end function queries.get_all_units() local query = { operationName = null, - query = "{ allUnits { id callSign unitType { id name } unitState { id name colour code active } UnitTypeId UnitStateId } }" + query = "{ allUnits { id callSign DepartmentId unitType { id name DepartmentId } unitState { id name colour code active DepartmentId } UnitTypeId UnitStateId } }" } return json.encode(query) end @@ -80,7 +96,7 @@ end function queries.get_all_user_ranks() local query = { operationName = null, - query = "{ allUserRanks { id name position } } " + query = "{ allUserRanks { id name position DepartmentId } } " } return json.encode(query) end @@ -89,7 +105,7 @@ function queries.get_unit(unit_id) local query = { operationname = null, query = _doSub( - "{ getUnit(id: $x) { id callSign unitType { id name } unitState { id name colour code } UnitTypeId UnitStateId } }", + "{ getUnit(id: $x) { id callSign DepartmentId unitType { id name DepartmentId } unitState { id name colour code DepartmentId } UnitTypeId UnitStateId } }", {x = unit_id} ) } @@ -100,7 +116,7 @@ function queries.get_call(call_id) local query = { operationname = null, query = _doSub( - "{ getCall(id: $x) { id callerInfo markerX markerY callGrade { id name } callType { id name } callLocations { id name } callIncidents { id name } callDescriptions { id text } assignedUnits { id } } }", + "{ getCall(id: $x) { id callerInfo markerX markerY DepartmentId callGrade { id name DepartmentId } callType { id name code readonly DepartmentId } callLocations { id name } callIncidents { id name DepartmentId } callDescriptions { id text } assignedUnits { id } } }", {x = call_id} ) } @@ -160,9 +176,10 @@ function queries.send_citizen_call(props) steamId = props.steamId, location = props.location, callerInfo = props.callerInfo, + DepartmentId = props.DepartmentId, notes = props.notes }, - query = 'mutation ($steamId: String!, $location: String!, $callerInfo: String!, $notes: String!) { createCitizenCall(steamId: $steamId, location: $location, callerInfo: $callerInfo, notes: $notes) { id } }' + query = 'mutation ($steamId: String!, $location: String!, $callerInfo: String!, $notes: String!, $DepartmentId: ID!) { createCitizenCall(steamId: $steamId, location: $location, callerInfo: $callerInfo, notes: $notes, DepartmentId: $DepartmentId) { id } }' } return json.encode(query) end @@ -215,7 +232,7 @@ end function queries.get_all_unit_states() local query = { operationName = null, - query = "{ allUnitStates { id name colour } } " + query = "{ allUnitStates { id name colour DepartmentId } } " } return json.encode(query) end @@ -223,7 +240,7 @@ end function queries.get_all_unit_types() local query = { operationName = null, - query = "{ allUnitTypes { id name } } " + query = "{ allUnitTypes { id name DepartmentId } } " } return json.encode(query) end @@ -259,9 +276,10 @@ function queries.set_unit_state(props, unit) id = props.unitId, callSign = unit.callSign, UnitStateId = props.stateId, - UnitTypeId = unit.UnitTypeId + UnitTypeId = unit.UnitTypeId, + DepartmentId = unit.DepartmentId }, - query = "mutation ($id: ID!, $callSign: String!, $UnitTypeId: ID!, $UnitStateId: ID!) { updateUnit(id: $id, callSign: $callSign, UnitTypeId: $UnitTypeId, UnitStateId: $UnitStateId) { id callSign unitType { id name } unitState { id name colour code } UnitTypeId UnitStateId } }" + query = "mutation ($id: ID!, $callSign: String!, $UnitTypeId: ID!, $UnitStateId: ID!, $DepartmentId: ID!) { updateUnit(id: $id, callSign: $callSign, UnitTypeId: $UnitTypeId, UnitStateId: $UnitStateId, DepartmentId: $DepartmentId) { id callSign unitType { id name DepartmentId } unitState { id name colour code DepartmentId } UnitTypeId UnitStateId DepartmentId } }" } return json.encode(query) end @@ -448,7 +466,7 @@ end function queries.get_all_call_grades() local query = { operationName = null, - query = "{ allCallGrades { id name code } }" + query = "{ allCallGrades { id name code DepartmentId } }" } return json.encode(query) end @@ -456,7 +474,7 @@ end function queries.get_all_call_types() local query = { operationName = null, - query = "{ allCallTypes { id name code } }" + query = "{ allCallTypes { id name code DepartmentId } }" } return json.encode(query) end @@ -464,7 +482,7 @@ end function queries.get_all_call_incidents() local query = { operationName = null, - query = "{ allIncidentTypes { id name code } }" + query = "{ allIncidentTypes { id name code DepartmentId } }" } return json.encode(query) end @@ -473,6 +491,7 @@ function queries.create_call(props) local query = { operationName = null, variables = { + DepartmentId = props.DepartmentId, callerInfo = props.callerInfo, callGrade = props.callGrade, callType = props.callType, @@ -482,7 +501,7 @@ function queries.create_call(props) markerX = 0, markerY = 0 }, - query = "mutation ($callerInfo: String, $callGrade: CallGradeInput!, $callType: CallTypeInput!, $callIncidents: [IncidentTypeInput]!, $callLocations: [LocationInput!]!, $callDescriptions: [CallDescriptionInput], $markerX: Float, $markerY: Float) { createCall(callerInfo: $callerInfo, callGrade: $callGrade, callType: $callType, callIncidents: $callIncidents, callLocations: $callLocations, callDescriptions: $callDescriptions, markerX: $markerX, markerY: $markerY) { id callerInfo markerX markerY callType { id name code readonly } callGrade { id name code readonly } callLocations { id name code readonly } callIncidents { id name code readonly } callDescriptions { id text } }}" + query = "mutation ($callerInfo: String, $callGrade: CallGradeInput!, $callType: CallTypeInput!, $callIncidents: [IncidentTypeInput]!, $callLocations: [LocationInput!]!, $callDescriptions: [CallDescriptionInput], $markerX: Float, $markerY: Float, $DepartmentId: ID!) { createCall(callerInfo: $callerInfo, callGrade: $callGrade, callType: $callType, callIncidents: $callIncidents, callLocations: $callLocations, callDescriptions: $callDescriptions, markerX: $markerX, markerY: $markerY, DepartmentId: $DepartmentId) { id callerInfo markerX markerY DepartmentId callType { id name code readonly DepartmentId } callGrade { id name code readonly DepartmentId } callLocations { id name code readonly } callIncidents { id name code readonly DepartmentId } callDescriptions { id text } }}" } return json.encode(query) end @@ -492,6 +511,7 @@ function queries.update_call(props) operationName = null, variables = { id = props.id, + DepartmentId = props.DepartmentId, callerInfo = props.callerInfo, callGrade = props.callGrade, callType = props.callType, @@ -501,7 +521,7 @@ function queries.update_call(props) markerX = props.markerX, markerY = props.markerY }, - query = "mutation ($id: ID!, $callerInfo: String, $callGrade: CallGradeInput!, $callType: CallTypeInput!, $callIncidents: [IncidentTypeInput]!, $callLocations: [LocationInput!]!, $callDescriptions: [CallDescriptionInput], $markerX: Float, $markerY: Float) { updateCall(id: $id, callerInfo: $callerInfo, callGrade: $callGrade, callType: $callType, callIncidents: $callIncidents, callLocations: $callLocations, callDescriptions: $callDescriptions, markerX: $markerX, markerY: $markerY) { id callerInfo markerX markerY callType { id name code readonly } callGrade { id name code readonly } callLocations { id name code readonly } callIncidents { id name code readonly } callDescriptions { id text } }}" + query = "mutation ($id: ID!, $callerInfo: String, $callGrade: CallGradeInput!, $callType: CallTypeInput!, $callIncidents: [IncidentTypeInput]!, $callLocations: [LocationInput!]!, $callDescriptions: [CallDescriptionInput], $markerX: Float, $markerY: Float, $DepartmentId: ID!) { updateCall(id: $id, callerInfo: $callerInfo, callGrade: $callGrade, callType: $callType, callIncidents: $callIncidents, callLocations: $callLocations, callDescriptions: $callDescriptions, markerX: $markerX, markerY: $markerY, DepartmentId: $DepartmentId) { id callerInfo markerX markerY DepartmentId callType { id name code readonly DepartmentId } callGrade { id name code readonly DepartmentId } callLocations { id name code readonly } callIncidents { id name code readonly DepartmentId } callDescriptions { id text } }}" } return json.encode(query) end @@ -511,10 +531,11 @@ function queries.create_bolo(props) operationName = null, variables = { id = props.id, + DepartmentId = props.DepartmentId, boloType = props.boloType, details = props.details }, - query = "mutation createBolo($boloType: String! $details: BoloDetailsInput!) {createBolo(boloType: $boloType details: $details) {id boloType details { description licencePlate driverDescription occupants lastLocation reason } } }" + query = "mutation createBolo($boloType: String! $details: BoloDetailsInput! $DepartmentId: ID!) {createBolo(boloType: $boloType details: $details DepartmentId: $DepartmentId) {id boloType DepartmentId details { description licencePlate driverDescription occupants lastLocation reason } } }" } return json.encode(query) end @@ -524,10 +545,11 @@ function queries.update_bolo(props) operationName = null, variables = { id = props.id, + DepartmentId = props.DepartmentId, boloType = props.boloType, details = props.details }, - query = "mutation ($id: ID! $boloType: String! $details: BoloDetailsInput!){updateBolo(id: $id boloType: $boloType details: $details){id boloType details{licencePlate driverDescription occupants lastLocation reason}}}" + query = "mutation ($id: ID! $boloType: String! $details: BoloDetailsInput! $DepartmentId: ID!){updateBolo(id: $id boloType: $boloType details: $details DepartmentId: $DepartmentId){id boloType DepartmentId details {licencePlate driverDescription occupants lastLocation reason}}}" } return json.encode(query) end @@ -558,11 +580,12 @@ function queries.create_unit(props) local query = { operationName = null, variables = { + DepartmentId = props.DepartmentId, callSign = props.callSign, unitStateId = props.unitState.id, unitTypeId = props.unitType.id }, - query = "mutation ($callSign: String!, $unitTypeId: ID!, $unitStateId: ID!) { createUnit(callSign: $callSign, UnitTypeId: $unitTypeId, UnitStateId: $unitStateId) { id } }" + query = "mutation ($callSign: String!, $unitTypeId: ID!, $unitStateId: ID!, $DepartmentId: ID!) { createUnit(callSign: $callSign, UnitTypeId: $unitTypeId, UnitStateId: $unitStateId, DepartmentId: $DepartmentId) { id } }" } return json.encode(query) end @@ -572,11 +595,12 @@ function queries.update_unit(props) operationName = null, variables = { id = props.id, + DepartmentId = props.DepartmentId, callSign = props.callSign, unitStateId = props.unitState.id, unitTypeId = props.unitType.id }, - query = "mutation ($id: ID!, $callSign: String!, $unitTypeId: ID!, $unitStateId: ID!) { updateUnit(id: $id, callSign: $callSign, UnitTypeId: $unitTypeId, UnitStateId: $unitStateId) { id } }" + query = "mutation ($id: ID!, $callSign: String!, $unitTypeId: ID!, $unitStateId: ID!, $DepartmentId: ID!) { updateUnit(id: $id, callSign: $callSign, UnitTypeId: $unitTypeId, UnitStateId: $unitStateId, DepartmentId: $DepartmentId) { id } }" } return json.encode(query) end diff --git a/resources/cadvanced_mdt/ui/build/bundle.js b/resources/cadvanced_mdt/ui/build/bundle.js index c0753e4c4..34fc7d9d2 100644 --- a/resources/cadvanced_mdt/ui/build/bundle.js +++ b/resources/cadvanced_mdt/ui/build/bundle.js @@ -1,10 +1,10 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=234)}([function(t,e,n){var r=n(7),i=n(28),o=n(18),a=n(19),s=n(29),c=function(t,e,n){var l,u,d,f,p=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,A=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=h?i:i[e]||(i[e]={}),y=_.prototype||(_.prototype={});for(l in h&&(n=e),n)d=((u=!p&&A&&void 0!==A[l])?A:n)[l],f=m&&u?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,A&&a(A,l,d,t&c.U),_[l]!=d&&o(_,l,f),g&&y[l]!=d&&(y[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i0?i(r(t),9007199254740991):0}},function(t,e,n){t.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(6),i=n(120),o=n(33),a=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.open?n("div",{staticClass:"modal-mask"},[n("div",{staticClass:"modal-wrapper"},[n("div",{staticClass:"modal-container"},[t.hasHeader?n("div",{staticClass:"modal-header"},[t._t("header")],2):t._e(),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("body")],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("div",{staticClass:"modal-close",on:{click:t.doClose}},[t._v("Close")]),t._v(" "),t._t("footer")],2)])])]):t._e()};r._withStripped=!0;var i={props:["open"],computed:{hasHeader:function(){return!!this.$slots.header}},methods:{doClose:function(){this.$emit("close")}}},o=(n(499),n(1)),a=Object(o.a)(i,r,[],!1,null,"fdddac0e",null);a.options.__file="src/components/reusable/Modal.vue";e.a=a.exports},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"property-container"},[t.label&&t.label.length>0?n("span",{staticClass:"label"},[t._v("\n "+t._s(t.label)+":\n ")]):t._e(),t._v("\n "+t._s(t.value)+"\n")])};r._withStripped=!0;var i={props:{label:{type:String,required:!1},value:{type:String,required:!1,default:"Unknown"}}},o=(n(531),n(1)),a=Object(o.a)(i,r,[],!1,null,"37abe4c0",null);a.options.__file="src/components/reusable/Citizen/Property.vue";e.a=a.exports},function(t,e,n){var r=n(13),i=n(46);t.exports=n(12)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(7),i=n(18),o=n(22),a=n(47)("src"),s=n(238),c=(""+s).split("toString");n(28).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(0),i=n(8),o=n(34),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(157),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n0?r:n)(t)}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),i=n(28),o=n(8);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(29),i=n(65),o=n(14),a=n(11),s=n(107);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,h){for(var v,g,m=o(e),A=i(m),_=r(s,h,3),y=a(A.length),b=0,x=n?p(e,y):c?p(e,0):void 0;y>b;b++)if((f||b in A)&&(g=_(v=A[b],b,m),t))if(n)x[b]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:x.push(v)}else if(u)return!1;return d?-1:l||u?u:x}}},function(t,e,n){"use strict";var r=n(83),i=n(117);function o(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)}))}}e.a={methods:{playSound:function(t,e){var n=this,o=this.$store.getters.getResourceConfig;if(o&&o.sound_volume){var a=new i.Howl({src:[t],loop:e,volume:parseFloat(o.sound_volume),onend:function(){n.$store.getters.getPanicActive||a.loop(!1)}});Object(r.debounce)((function(){return a.play()}),1500)()}},playPromise:function(t){var e=this;return new Promise((function(n){var r=e.$store.getters.getResourceConfig;r&&r.sound_volume?new i.Howl({src:t,volume:parseFloat(r.sound_volume),onend:function(){return n()}}).play():n()}))},playSounds:function(t){var e=this;return a(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(){var n=a(regeneratorRuntime.mark((function n(r){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=0;case 1:if(!(in;)i[n]=e[n++];return i},Mt=function(t,e,n){F(t,e,{get:function(){return this._d[n]}})},Tt=function(t){var e,n,r,i,o,a,s=x(t),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=E(s);if(null!=f&&!w(f)){for(a=f.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(d&&c>2&&(u=l(u,arguments[2],2)),e=0,n=v(s.length),i=kt(this,n);n>e;e++)i[e]=d?u(s[e],e):s[e];return i},Bt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!H&&o((function(){pt.call(new H(1))})),$t=function(){return pt.apply(It?dt.call(St(this)):St(this),arguments)},Pt={copyWithin:function(t,e){return D.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(St(this),arguments)},filter:function(t){return Et(this,J(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return K(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(St(this),arguments)},lastIndexOf:function(t){return at.apply(St(this),arguments)},map:function(t){return bt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(St(this),arguments)},reduceRight:function(t){return ct.apply(St(this),arguments)},reverse:function(){for(var t,e=St(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return ut.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=m(t,r);return new(I(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},jt=function(t,e){return Et(this,dt.call(St(this),t,e))},Rt=function(t){St(this);var e=Ct(arguments[1],1),n=this.length,r=x(t),i=v(r.length),o=0;if(i+e>n)throw V("Wrong length!");for(;o255?255:255&r),i.v[p](n*e+i.o,r,xt)}(this,n,t)},enumerable:!0})};_?(h=n((function(t,n,r,i){u(t,h,l,"_d");var o,a,s,c,d=0,p=0;if(b(n)){if(!(n instanceof q||"ArrayBuffer"==(c=y(n))||"SharedArrayBuffer"==c))return _t in n?Ot(h,n):Tt.call(h,n);o=n,p=Ct(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw V("Wrong length!");if((a=m-p)<0)throw V("Wrong length!")}else if((a=v(i)*e)+p>m)throw V("Wrong length!");s=a/e}else s=g(n),o=new q(a=s*e);for(f(t,"_d",{b:o,o:p,l:a,e:s,v:new W(o)});dn.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i0?i(r(t),9007199254740991):0}},function(t,e,n){t.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(6),i=n(122),o=n(33),a=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.open?n("div",{staticClass:"modal-mask"},[n("div",{staticClass:"modal-wrapper"},[n("div",{staticClass:"modal-container"},[t.hasHeader?n("div",{staticClass:"modal-header"},[t._t("header")],2):t._e(),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("body")],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("div",{staticClass:"modal-close",on:{click:t.doClose}},[t._v("Close")]),t._v(" "),t._t("footer")],2)])])]):t._e()};r._withStripped=!0;var i={props:["open"],computed:{hasHeader:function(){return!!this.$slots.header}},methods:{doClose:function(){this.$emit("close")}}},o=(n(510),n(0)),a=Object(o.a)(i,r,[],!1,null,"fdddac0e",null);a.options.__file="src/components/reusable/Modal.vue";e.a=a.exports},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"property-container"},[t.label&&t.label.length>0?n("span",{staticClass:"label"},[t._v("\n "+t._s(t.label)+":\n ")]):t._e(),t._v("\n "+t._s(t.value)+"\n")])};r._withStripped=!0;var i={props:{label:{type:String,required:!1},value:{type:String,required:!1,default:"Unknown"}}},o=(n(542),n(0)),a=Object(o.a)(i,r,[],!1,null,"37abe4c0",null);a.options.__file="src/components/reusable/Citizen/Property.vue";e.a=a.exports},function(t,e,n){var r=n(13),i=n(46);t.exports=n(12)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(7),i=n(18),o=n(22),a=n(47)("src"),s=n(243),c=(""+s).split("toString");n(28).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e,n){var r=n(1),i=n(8),o=n(34),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(159),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n0?r:n)(t)}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),i=n(28),o=n(8);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(29),i=n(67),o=n(14),a=n(11),s=n(109);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,h){for(var v,g,m=o(e),A=i(m),_=r(s,h,3),y=a(A.length),b=0,x=n?p(e,y):c?p(e,0):void 0;y>b;b++)if((f||b in A)&&(g=_(v=A[b],b,m),t))if(n)x[b]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:x.push(v)}else if(u)return!1;return d?-1:l||u?u:x}}},function(t,e,n){"use strict";var r=n(85),i=n(119);function o(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)}))}}e.a={methods:{playSound:function(t,e){var n=this,o=this.$store.getters.getResourceConfig;if(o&&o.sound_volume){var a=new i.Howl({src:[t],loop:e,volume:parseFloat(o.sound_volume),onend:function(){n.$store.getters.getPanicActive||a.loop(!1)}});Object(r.debounce)((function(){return a.play()}),1500)()}},playPromise:function(t){var e=this;return new Promise((function(n){var r=e.$store.getters.getResourceConfig;r&&r.sound_volume?new i.Howl({src:t,volume:parseFloat(r.sound_volume),onend:function(){return n()}}).play():n()}))},playSounds:function(t){var e=this;return a(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(){var n=a(regeneratorRuntime.mark((function n(r){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=0;case 1:if(!(in;)i[n]=e[n++];return i},Mt=function(t,e,n){F(t,e,{get:function(){return this._d[n]}})},Tt=function(t){var e,n,r,i,o,a,s=x(t),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=E(s);if(null!=f&&!w(f)){for(a=f.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(d&&c>2&&(u=l(u,arguments[2],2)),e=0,n=v(s.length),i=kt(this,n);n>e;e++)i[e]=d?u(s[e],e):s[e];return i},Bt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!H&&o((function(){pt.call(new H(1))})),$t=function(){return pt.apply(It?dt.call(St(this)):St(this),arguments)},Pt={copyWithin:function(t,e){return L.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(St(this),arguments)},filter:function(t){return Et(this,J(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return K(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(St(this),arguments)},lastIndexOf:function(t){return at.apply(St(this),arguments)},map:function(t){return bt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(St(this),arguments)},reduceRight:function(t){return ct.apply(St(this),arguments)},reverse:function(){for(var t,e=St(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return ut.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=m(t,r);return new(I(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},jt=function(t,e){return Et(this,dt.call(St(this),t,e))},Dt=function(t){St(this);var e=Ct(arguments[1],1),n=this.length,r=x(t),i=v(r.length),o=0;if(i+e>n)throw V("Wrong length!");for(;o255?255:255&r),i.v[p](n*e+i.o,r,xt)}(this,n,t)},enumerable:!0})};_?(h=n((function(t,n,r,i){u(t,h,l,"_d");var o,a,s,c,d=0,p=0;if(b(n)){if(!(n instanceof q||"ArrayBuffer"==(c=y(n))||"SharedArrayBuffer"==c))return _t in n?Ot(h,n):Tt.call(h,n);o=n,p=Ct(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw V("Wrong length!");if((a=m-p)<0)throw V("Wrong length!")}else if((a=v(i)*e)+p>m)throw V("Wrong length!");s=a/e}else s=g(n),o=new q(a=s*e);for(f(t,"_d",{b:o,o:p,l:a,e:s,v:new W(o)});d=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function y(t,e){return _.call(t,e)}function b(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,w=b((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,k=b((function(t){return t.replace(S,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,X=W&&W.indexOf("edge/")>0,Z=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===q),K=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(H)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===V&&(V=!H&&!Q&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),V},it=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=B,lt=0,ut=function(){this.id=lt++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){A(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===k(t)){var c=Ft(String,i.type);(c<0||s0&&(ue((c=t(c,(n||"")+"_"+r))[0])&&ue(u)&&(d[l]=mt(u.text+c[0].text),c.shift()),d.push.apply(d,c)):s(c)?ue(u)?d[l]=mt(u.text+c):""!==c&&d.push(mt(c)):ue(c)&&ue(u)?d[l]=mt(u.text+c.text):(a(e._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),d.push(c)));return d}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=ve(e,c,t[c]))}else i={};for(var l in e)l in i||(i[l]=ge(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),F(i,"$stable",a),F(i,"$key",s),F(i,"$hasNormal",o),i}function ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ge(t,e){return function(){return t[e]}}function me(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var t,e;for(sn=cn(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;anan&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(un))}}(this)},fn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){zt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||A(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:B,set:B};function hn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}function vn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&wt(!1);var o=function(o){i.push(o);var a=Dt(o,e,n,t);kt(r,o,a),o in t||hn(t,"_props",o)};for(var a in e)o(a);wt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?B:E(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return zt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&hn(t,"_data",o))}var a;St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new fn(t,a||B,B,gn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function En(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Sn(a.componentOptions);s&&!e(s)&&On(n,o,r,i)}}}function On(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,A(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=bn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(xn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&We(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Ne(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ne(t,e,n,r,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||r,null,!0),kt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Ke(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach((function(n){kt(t,n,e[n])})),wt(!0))}(e),vn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Ke(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(wn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Et,t.prototype.$delete=Ot,t.prototype.$watch=function(t,e,n){if(u(e))return yn(this,t,e,n);(n=n||{}).user=!0;var r=new fn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){zt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?O(n):n;for(var r=O(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&On(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return N}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:M,mergeOptions:Rt,defineReactive:kt},t.set=Et,t.delete=Ot,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),Cn(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:rt}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Ie}),wn.version="2.6.12";var Bn=g("style,class"),In=g("input,textarea,option,select,progress"),$n=g("contenteditable,draggable,spellcheck"),Pn=g("events,caret,typing,plaintext-only"),jn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Ln=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Dn=function(t){return Ln(t)?t.slice(6,t.length):""},Nn=function(t){return null==t||!1===t};function Un(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Fn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Fn(e,n.data));return function(t,e){if(o(t)||o(e))return zn(t,Vn(e));return""}(e.staticClass,e.class)}function Fn(t,e){return{staticClass:zn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function zn(t,e){return t?e?t+" "+e:t:e||""}function Vn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?fr(t,e,n):jn(e)?Nn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):$n(e)?t.setAttribute(e,function(t,e){return Nn(e)||"false"===e?"false":"contenteditable"===t&&Pn(e)?e:"true"}(e,n)):Ln(e)?Nn(n)?t.removeAttributeNS(Rn,Dn(e)):t.setAttributeNS(Rn,e,n):fr(t,e,n)}function fr(t,e,n){if(Nn(n))t.removeAttribute(e);else{if(Y&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var pr={create:ur,update:ur};function hr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Un(e),c=n._transitionClasses;o(c)&&(s=zn(s,Vn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var vr,gr={create:hr,update:hr};function mr(t,e,n){var r=vr;return function i(){var o=e.apply(null,arguments);null!==o&&yr(t,i,n,r)}}var Ar=qt&&!(K&&Number(K[1])<=53);function _r(t,e,n,r){if(Ar){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}vr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function yr(t,e,n,r){(r||vr).removeEventListener(t,e._wrapper||e,n)}function br(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};vr=e.elm,function(t){if(o(t.__r)){var e=Y?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,_r,yr,mr,e.context),vr=void 0}}var xr,wr={create:br,update:br};function Cr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=M({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);Sr(a,l)&&(a.value=l)}else if("innerHTML"===n&&Qn(a.tagName)&&i(a.innerHTML)){(xr=xr||document.createElement("div")).innerHTML=""+r+"";for(var u=xr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Sr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var kr={create:Cr,update:Cr},Er=b((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Or(t){var e=Mr(t.style);return t.staticStyle?M(t.staticStyle,e):e}function Mr(t){return Array.isArray(t)?T(t):"string"==typeof t?Er(t):t}var Tr,Br=/^--/,Ir=/\s*!important$/,$r=function(t,e,n){if(Br.test(e))t.style.setProperty(e,n);else if(Ir.test(n))t.style.setProperty(k(e),n.replace(Ir,""),"important");else{var r=jr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Dr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ur(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Dr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Fr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&M(e,zr(t.name||"v")),M(e,t),e}return"string"==typeof t?zr(t):void 0}}var zr=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Vr=H&&!J,Gr="transition",Hr="transitionend",Qr="animation",qr="animationend";Vr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gr="WebkitTransition",Hr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qr="WebkitAnimation",qr="webkitAnimationEnd"));var Wr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Yr(t){Wr((function(){Wr(t)}))}function Jr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Nr(t,e))}function Xr(t,e){t._transitionClasses&&A(t._transitionClasses,e),Ur(t,e)}function Zr(t,e,n){var r=ti(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Hr:qr,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout((function(){c0&&(n="transition",u=a,d=o.length):"animation"===e?l>0&&(n="animation",u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?"transition":"animation":null)?"transition"===n?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Kr.test(r[Gr+"Property"])}}function ei(t,e){for(;t.length1}function si(t,e){!0!==e.data.show&&ri(e)}var ci=function(t){var e,n,r={},c=t.modules,l=t.nodeOps;for(e=0;eh?_(t,i(n[m+1])?null:n[m+1].elm,n,p,m,r):p>m&&b(e,f,h)}(f,g,m,n,u):o(m)?(o(t.text)&&l.setTextContent(f,""),_(f,null,m,0,m.length-1,n)):o(g)?b(g,0,g.length-1):o(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}}}function S(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(P(pi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function fi(t,e){return e.every((function(e){return!P(e,t)}))}function pi(t){return"_value"in t?t._value:t.value}function hi(t){t.target.composing=!0}function vi(t){t.target.composing&&(t.target.composing=!1,gi(t.target,"input"))}function gi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var Ai={model:li,show:{bind:function(t,e,n){var r=e.value,i=(n=mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mi(n)).data&&n.data.transition?(n.data.show=!0,r?ri(n,(function(){t.style.display=t.__vOriginalDisplay})):ii(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},_i={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function yi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?yi(Ge(e.children)):t}function bi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[w(o)]=i[o];return e}function xi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var wi=function(t){return t.tag||Ve(t)},Ci=function(t){return"show"===t.name},Si={name:"transition",props:_i,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(wi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=yi(i);if(!o)return i;if(this._leaving)return xi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=bi(this),l=this._vnode,u=yi(l);if(o.data.directives&&o.data.directives.some(Ci)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!Ve(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=M({},c);if("out-in"===r)return this._leaving=!0,se(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),xi(t,i);if("in-out"===r){if(Ve(o))return l;var f,p=function(){f()};se(c,"afterEnter",p),se(c,"enterCancelled",p),se(d,"delayLeave",(function(t){f=t}))}}return i}}},ki=M({tag:String,moveClass:String},_i);function Ei(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Oi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Mi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ki.mode;var Ti={Transition:Si,TransitionGroup:{props:ki,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=bi(this),s=0;s-1?Wn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Wn[t]=/HTMLUnknownElement/.test(e.toString())},M(wn.options.directives,Ai),M(wn.options.components,Ti),wn.prototype.__patch__=H?ci:B,wn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),Ke(t,"beforeMount"),r=function(){t._update(t._render(),n)},new fn(t,r,B,{before:function(){t._isMounted&&!t._isDestroyed&&Ke(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Ke(t,"mounted")),t}(this,t=t&&H?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},H&&setTimeout((function(){N.devtools&&it&&it.emit("init",wn)}),0),e.default=wn}.call(this,n(45),n(475).setImmediate)},function(t,e){t.exports=!1},function(t,e,n){var r=n(47)("meta"),i=n(9),o=n(22),a=n(13).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(8)((function(){return c(Object.preventExtensions({}))})),u=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return l&&d.NEED&&c(t)&&!o(t,r)&&u(t),t}}},function(t,e,n){var r=n(10)("unscopables"),i=Array.prototype;null==i[r]&&n(18)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){"use strict";var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"update-message"},[this._v(this._s(this.message))])};r._withStripped=!0;var i={props:{message:{type:String,required:!0}}},o=(n(527),n(1)),a=Object(o.a)(i,r,[],!1,null,"1042746c",null);a.options.__file="src/components/reusable/UpdateMessage.vue";e.a=a.exports},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(122),i=n(92);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(31),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(6),i=n(123),o=n(92),a=n(91)("IE_PROTO"),s=function(){},c=function(){var t,e=n(89)("iframe"),r=o.length;for(e.style.display="none",n(93).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("