├── ui ├── bg.jpg ├── map.jpg ├── index.html ├── app.js ├── app.css └── jquery-3.7.0.min.js ├── Ui └── locations-image │ ├── beach.png │ ├── paleto.png │ └── parking.png ├── README.md ├── fxmanifest.lua ├── Server └── Server.lua ├── Shared └── Config.lua └── Client └── Client.lua /ui/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CanX-Script/spawn-selector/HEAD/ui/bg.jpg -------------------------------------------------------------------------------- /ui/map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CanX-Script/spawn-selector/HEAD/ui/map.jpg -------------------------------------------------------------------------------- /Ui/locations-image/beach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CanX-Script/spawn-selector/HEAD/Ui/locations-image/beach.png -------------------------------------------------------------------------------- /Ui/locations-image/paleto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CanX-Script/spawn-selector/HEAD/Ui/locations-image/paleto.png -------------------------------------------------------------------------------- /Ui/locations-image/parking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CanX-Script/spawn-selector/HEAD/Ui/locations-image/parking.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Spawn Selector 2 | *Features : 3 | Clean And Best Ui & Ux, 4 | Optimized, 5 | Open source, 6 | Fully Customizable, 7 | Easy to add and remove locations via config, 8 | Smooth Camera Transition, 9 | Standalone resource, 10 | Usage 0.00 MS* 11 | 12 | # CanX community 13 | *Discord 14 | https://discord.gg/jvQDWCg7Db* 15 | *youtube 16 | https://www.youtube.com/@CanX-Script* 17 | *Cfx 18 | https://forum.cfx.re/u/canx-script* 19 | 20 | # Follow our community for other scripts -------------------------------------------------------------------------------- /fxmanifest.lua: -------------------------------------------------------------------------------- 1 | -- <<< CanX Spawn Selector >>> --| 2 | -- Discord : discord.gg/MGEVjBbKHw --| 3 | -- Tebex : canx.tebex.io --| 4 | -- <<< CanX Spawn Selector >>> --| 5 | 6 | fx_version 'cerulean' 7 | game 'gta5' 8 | 9 | author 'CanX Scripts' 10 | description 'CanX-SpawnSelector' 11 | 12 | --Client Scripts-- 13 | client_scripts { 14 | 'Client/*.lua' 15 | } 16 | 17 | --Server Scripts-- 18 | server_scripts { 19 | 'Server/*.lua' 20 | } 21 | 22 | shared_scripts { 23 | 'Shared/*.lua' 24 | } 25 | --UI Part-- 26 | ui_page { 27 | 'Ui/index.html', 28 | } 29 | 30 | --File Part-- 31 | files { 32 | 'Ui/index.html', 33 | 'Ui/*.js', 34 | 'Ui/*.css', 35 | 'Ui/locations-image/*.png', 36 | 'Ui/*.jpg' 37 | } 38 | -------------------------------------------------------------------------------- /Server/Server.lua: -------------------------------------------------------------------------------- 1 | -- <<< CanX Spawn Selector >>> --| 2 | -- Discord : discord.gg/MGEVjBbKHw --| 3 | -- Tebex : canx.tebex.io --| 4 | -- <<< CanX Spawn Selector >>> --| 5 | 6 | local joined = {} 7 | 8 | RegisterServerEvent("CanX-SpawnSelector:OpenSpawner") 9 | AddEventHandler("CanX-SpawnSelector:OpenSpawner", function() 10 | if not joined[GetPlayerIdentifiers(source)[1]] then 11 | TriggerClientEvent("CanX-SpawnSelector:Open", source) 12 | joined[GetPlayerIdentifiers(source)[1]] = true 13 | end 14 | end) 15 | 16 | AddEventHandler('onResourceStart', function(resource) 17 | if resource == GetCurrentResourceName() then 18 | Citizen.Wait(1000) 19 | print('^2>>------------------^4CanX^2------------------<<') 20 | print('^4CanX Spawn Selector ^0(Made By CanX-Scripts)') 21 | print('^1Discord : ^0https://discord.gg/MGEVjBbKHw') 22 | print('^5Tebex : ^0https://canx.tebex.io') 23 | print('^2>>------------------^4CanX^2-----------------<<') 24 | end 25 | end) -------------------------------------------------------------------------------- /Shared/Config.lua: -------------------------------------------------------------------------------- 1 | -- <<< CanX Spawn Selector >>> --| 2 | -- Discord : discord.gg/MGEVjBbKHw --| 3 | -- Tebex : canx.tebex.io --| 4 | -- <<< CanX Spawn Selector >>> --| 5 | 6 | Config = {} 7 | 8 | Config.Locations = { 9 | 10 | { 11 | Loc_Name = "PARKING", 12 | Image = "locations-image/parking.png", 13 | Css = { 14 | top = "50%", 15 | left = "70%", 16 | }, 17 | Pos = {x = 216.28, y = -816.07, z = 30.64}, 18 | }, 19 | { 20 | Loc_Name = "PALETO", 21 | Image = "locations-image/paleto.png", 22 | Css = { 23 | top = "50%", 24 | left = "17%", 25 | }, 26 | Pos = {x = -138.57, y = 6310.38, z = 31.5}, 27 | }, 28 | { 29 | Loc_Name = "BEACH", 30 | Image = "locations-image/beach.png", 31 | Css = { 32 | top = "68%", 33 | left = "70%", 34 | }, 35 | Pos = {x = -1458.93, y = -1085.03, z = 3.46}, 36 | }, 37 | 38 | } -------------------------------------------------------------------------------- /ui/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | CanX - Spawn Selector 16 | 17 | 18 | 19 |
20 | 21 | 22 |
23 |
24 | 25 |
26 |
27 |

SPAWN SELECTOR

28 |
29 | 30 |

CENTERAL PARK

31 |
32 |
33 | 34 |
35 |
36 |
37 | 38 | 39 |
40 |
41 |
42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ui/app.js: -------------------------------------------------------------------------------- 1 | let Selected_Loc = null; 2 | 3 | window.addEventListener("message", function (event) { 4 | if (event.data.Action == "ShowUi") { 5 | if (event.data.Display) { 6 | $("body").css("display", "block"); 7 | ShowUi(event.data.Data); 8 | } else { 9 | $("body").css("display", "none"); 10 | } 11 | } 12 | }); 13 | 14 | function ShowUi(locations) { 15 | for (const location of locations) { 16 | const svg = $( 17 | `
18 | 19 | 21 | 22 |
` 23 | ); 24 | 25 | const div = $("
").addClass("location"); 26 | div.append(svg); 27 | div.css({ 28 | top: location.Css.top, 29 | left: location.Css.left, 30 | }); 31 | 32 | div.click(() => { 33 | $(".current-location img").attr("src", location.Image); 34 | $(".current-location h3").text(location.Loc_Name); 35 | Selected_Loc = location.Loc_Name; 36 | }); 37 | $(".locations").append(div); 38 | } 39 | $(".current-location img").attr("src", locations[0].Image); 40 | $(".current-location h3").text(locations[0].Loc_Name); 41 | Selected_Loc = locations[0].Loc_Name; 42 | } 43 | 44 | $(".last").click(() => { 45 | $.post("https://spawn-selector/last-loc", JSON.stringify({})); 46 | $("body").css("display", "none"); 47 | }); 48 | 49 | $(".spawn").click(() => { 50 | $.post( 51 | "https://spawn-selector/spawn", 52 | JSON.stringify({ location: Selected_Loc }) 53 | ); 54 | $("body").css("display", "none"); 55 | }); 56 | -------------------------------------------------------------------------------- /ui/app.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"); 2 | 3 | /* 4 | -- <<< CanX Spawn Selector >>> --| 5 | -- Discord : discord.gg/MGEVjBbKHw --| 6 | -- Tebex : canx.tebex.io --| 7 | -- <<< CanX Spawn Selector >>> --| 8 | */ 9 | 10 | * { 11 | margin: 0; 12 | padding: 0; 13 | box-sizing: border-box; 14 | } 15 | 16 | :root { 17 | --primaryColor: #2ddfc7; 18 | --primaryShadow: rgb(45, 223, 199, 0.5); 19 | } 20 | 21 | body { 22 | display: none; 23 | height: 100vh; 24 | width: 100%; 25 | background: linear-gradient(135deg, #151a1c 0%, #191e1f 100%); 26 | overflow: hidden; 27 | color: white; 28 | font-family: "Inter", sans-serif; 29 | } 30 | 31 | /* BACKGROUND AND DETAILS ON IT */ 32 | 33 | .background { 34 | width: 100%; 35 | height: 100%; 36 | display: flex; 37 | align-items: center; 38 | justify-content: center; 39 | } 40 | 41 | .bg-image { 42 | position: absolute; 43 | top: 0; 44 | left: 0; 45 | z-index: 0; 46 | width: 100%; 47 | height: 100%; 48 | object-fit: cover; 49 | filter: grayscale(100%); 50 | opacity: 5%; 51 | } 52 | 53 | .dot-pattern { 54 | height: 720px; 55 | width: 480px; 56 | background-image: radial-gradient(var(--primaryColor) 2px, transparent 0); 57 | background-size: 40px 40px; 58 | opacity: 20%; 59 | position: absolute; 60 | } 61 | 62 | .dot-pattern[data-idx="1"] { 63 | top: 5%; 64 | left: 5%; 65 | transform: translate(-50%, -50%) rotate(45deg); 66 | } 67 | 68 | .dot-pattern[data-idx="2"] { 69 | bottom: 5%; 70 | right: 5%; 71 | transform: translate(50%, 50%) rotate(45deg); 72 | } 73 | 74 | /* MAIN CONTENT */ 75 | 76 | .spawn-selector { 77 | width: 800px; 78 | height: 500px; 79 | position: relative; 80 | z-index: 1; 81 | display: flex; 82 | flex-direction: column; 83 | gap: 1rem; 84 | } 85 | 86 | .map { 87 | width: 100%; 88 | background-image: url(./map.jpg); 89 | background-repeat: no-repeat; 90 | background-position: center; 91 | background-size: cover; 92 | border: 1px solid rgba(255, 255, 255, 0.1); 93 | flex-grow: 1; 94 | } 95 | 96 | .map h2 { 97 | position: absolute; 98 | left: 50%; 99 | top: -3%; 100 | transform: translateX(-50%); 101 | color: var(--primaryColor); 102 | text-shadow: 0px 0px 15px var(--primaryShadow); 103 | } 104 | 105 | .map .current-location { 106 | position: absolute; 107 | bottom: 1.5rem; 108 | left: 1rem; 109 | transform: translateY(-50%); 110 | } 111 | 112 | .map .current-location img { 113 | width: 200px; 114 | } 115 | 116 | .map .locations { 117 | width: 100%; 118 | height: 100%; 119 | position: relative; 120 | } 121 | 122 | .location { 123 | cursor: pointer; 124 | width: 28px; 125 | height: 28px; 126 | border-radius: 50%; 127 | position: absolute; 128 | background: #181d1e; 129 | transition: all 0.3s ease-in-out; 130 | } 131 | 132 | .location svg { 133 | width: 28px; 134 | height: 28px; 135 | fill: var(--primaryColor); 136 | } 137 | 138 | .location:hover { 139 | box-shadow: 0px 0px 10px var(--primaryShadow); 140 | } 141 | 142 | .actions { 143 | display: flex; 144 | align-items: center; 145 | justify-content: space-between; 146 | } 147 | 148 | .actions button { 149 | font-family: "Inter", sans-serif; 150 | font-size: 1.1rem; 151 | height: 4rem; 152 | width: 12rem; 153 | font-weight: 900; 154 | border: none; 155 | cursor: pointer; 156 | transition: all 300ms ease-out; 157 | } 158 | 159 | .actions button:hover { 160 | transform: scale(1.1); 161 | } 162 | 163 | .actions .last { 164 | background: linear-gradient(137deg, #303030 0%, #414141 100%); 165 | box-shadow: 0px 0px 50px 0px rgba(255, 255, 255, 0.12); 166 | color: white; 167 | } 168 | 169 | .actions .spawn { 170 | background: var(--primaryColor); 171 | box-shadow: 0px 0px 15px var(--primaryShadow); 172 | } 173 | 174 | @media screen and (min-width: 1366px) { 175 | .spawn-selector { 176 | width: 1200px; 177 | height: 750px; 178 | } 179 | .map h2 { 180 | font-size: 2.4rem; 181 | } 182 | .map .current-location img { 183 | width: 300px; 184 | } 185 | .map .current-location h3 { 186 | font-size: 1.4rem; 187 | } 188 | .map .current-location { 189 | bottom: 0.5rem; 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /Client/Client.lua: -------------------------------------------------------------------------------- 1 | -- <<< CanX Spawn Selector >>> --| 2 | -- Discord : discord.gg/MGEVjBbKHw --| 3 | -- Tebex : canx.tebex.io --| 4 | -- <<< CanX Spawn Selector >>> --| 5 | 6 | -- AddEventHandler('playerSpawned', function(spawn) 7 | -- TriggerServerEvent('CanX-SpawnSelector:OpenSpawner') 8 | -- end) 9 | 10 | RegisterNetEvent('CanX-SpawnSelector:Open') 11 | AddEventHandler('CanX-SpawnSelector:Open', function() 12 | SetNuiFocus(true, true) 13 | SendNUIMessage({ 14 | Action = 'ShowUi', 15 | Display = true, 16 | Data = Config.Locations 17 | }) 18 | end) 19 | 20 | ShowLoadingPromt = function(label, time) 21 | Citizen.CreateThread(function() 22 | BeginTextCommandBusyString(tostring(label)) 23 | EndTextCommandBusyString(3) 24 | Citizen.Wait(time) 25 | RemoveLoadingPrompt() 26 | end) 27 | end 28 | 29 | RegisterNUICallback('spawn', function(data, cb) 30 | local TeleportPos = nil 31 | SetNuiFocus(false, false) 32 | for k,v in ipairs(Config.Locations) do 33 | if v.Loc_Name == data.location then 34 | TeleportPos = v.Pos 35 | end 36 | end 37 | StartFade() 38 | CreateCameraOnTop2(TeleportPos.x, TeleportPos.y, TeleportPos.z) 39 | EndFade() 40 | ReadToPlay(TeleportPos.x, TeleportPos.y, TeleportPos.z) 41 | end) 42 | 43 | RegisterNUICallback('last-loc', function(data, cb) 44 | local pos = GetEntityCoords(PlayerPedId()) 45 | SetNuiFocus(false, false) 46 | StartFade() 47 | CreateCameraOnTop2(pos.x, pos.y, pos.z) 48 | EndFade() 49 | ReadToPlay(pos.x, pos.y, pos.z) 50 | end) 51 | 52 | local cam = nil 53 | local continuousFadeOutNetwork = false 54 | local needAskQuestions, needRegister 55 | local firstSpawn, disableAttack = true, true 56 | local risdead = false 57 | 58 | function f(n) 59 | n = n + 0.00000 60 | return n 61 | end 62 | 63 | function setCamHeight(height) 64 | local pos = GetEntityCoords(PlayerPedId()) 65 | SetCamCoord(cam,vector3(pos.x,pos.y,f(height))) 66 | end 67 | 68 | function StartFade() 69 | DoScreenFadeOut(500) 70 | while IsScreenFadingOut() do 71 | Citizen.Wait(1) 72 | end 73 | end 74 | 75 | function EndFade() 76 | ShutdownLoadingScreen() 77 | DoScreenFadeIn(500) 78 | while IsScreenFadingIn() do 79 | Citizen.Wait(1) 80 | end 81 | end 82 | 83 | function DisalbeAttack() 84 | DisableControlAction(0, 19, true) 85 | DisableControlAction(0, 45, true) 86 | DisableControlAction(0, 24, true) 87 | DisableControlAction(0, 257, true) 88 | DisableControlAction(0, 25, true) 89 | DisableControlAction(0, 68, true) 90 | DisableControlAction(0, 69, true) 91 | DisableControlAction(0, 70, true) 92 | DisableControlAction(0, 92, true) 93 | DisableControlAction(0, 346, true) 94 | DisableControlAction(0, 347, true) 95 | DisableControlAction(0, 264, true) 96 | DisableControlAction(0, 257, true) 97 | DisableControlAction(0, 140, true) 98 | DisableControlAction(0, 141, true) 99 | DisableControlAction(0, 142, true) 100 | DisableControlAction(0, 143, true) 101 | DisableControlAction(0, 263, true) 102 | if disableAttack then 103 | SetTimeout(0, function () 104 | DisalbeAttack() 105 | end) 106 | end 107 | end 108 | 109 | function showLoadingPromt(label, time) 110 | Citizen.CreateThread(function() 111 | BeginTextCommandBusyString(tostring(label)) 112 | EndTextCommandBusyString(3) 113 | Citizen.Wait(time) 114 | RemoveLoadingPrompt() 115 | end) 116 | end 117 | 118 | function ReadToPlay(x, y, z) 119 | TriggerServerEvent('PX_LoadingSystem:ChangeKobs', false) 120 | disableAttack = false 121 | if x ~= nil and y ~= nil and z ~= nil then 122 | CameraLoadToGround2(x, y, z) 123 | else 124 | CameraLoadToGround() 125 | end 126 | SetEntityInvincible(PlayerPedId(),false) 127 | SetEntityVisible(PlayerPedId(),true) 128 | FreezeEntityPosition(PlayerPedId(),false) 129 | SetPedDiesInWater(PlayerPedId(),true) 130 | if x ~= nil and y ~= nil and z ~= nil then 131 | SetEntityCoords(PlayerPedId(), x, y, z) 132 | end 133 | KillCamera() 134 | if x ~= nil and y ~= nil and z ~= nil then 135 | SetEntityCoords(PlayerPedId(), x, y, z) 136 | end 137 | 138 | 139 | end 140 | 141 | function StartUpLoading() 142 | Citizen.CreateThread(function() 143 | StartFade() 144 | ShutdownLoadingScreen() 145 | ShutdownLoadingScreenNui() 146 | showLoadingPromt("MP_SPINLOADING", 500000) 147 | CreateCameraOnTop() 148 | SetEntityVisible(PlayerPedId(),true) 149 | DisalbeAttack() 150 | SetEntityInvincible(PlayerPedId(),true) 151 | FreezeEntityPosition(PlayerPedId(),true) 152 | SetPedDiesInWater(PlayerPedId(),false) 153 | DisplayRadar(false) 154 | Wait(1000) 155 | EndFade() 156 | DoScreenFadeIn(500) 157 | showLoadingPromt("MP_SPINLOADING", 0) 158 | showLoadingPromt("PCARD_JOIN_GAME", 500000) 159 | Wait(1000) 160 | showLoadingPromt("PCARD_JOIN_GAME", 0) 161 | CreateCameraOnTop() 162 | EndFade() 163 | end) 164 | end 165 | 166 | function CreateCameraOnTop() 167 | if not DoesCamExist(cam) then 168 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 169 | end 170 | local pos = GetEntityCoords(PlayerPedId()) 171 | SetCamCoord(cam,vector3(pos.x,pos.y,f(1000))) 172 | SetCamRot(cam,-f(90),f(0),f(0),2) 173 | SetCamActive(cam,true) 174 | StopCamPointing(cam) 175 | RenderScriptCams(true,true,0,0,0,0) 176 | end 177 | 178 | function CameraLoadToGround() 179 | if not DoesCamExist(cam) then 180 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 181 | end 182 | local altura = 1000 183 | local pos = GetEntityCoords(PlayerPedId()) 184 | SetCamCoord(cam,vector3(pos.x,pos.y,f(1000))) 185 | while altura > (pos.z - 5.0) do 186 | if altura <= 300 then 187 | altura = altura - 6 188 | elseif altura >= 301 and altura <= 700 then 189 | altura = altura - 4 190 | else 191 | altura = altura - 2 192 | end 193 | setCamHeight(altura) 194 | Citizen.Wait(10) 195 | end 196 | end 197 | 198 | function KillCamera() 199 | if not DoesCamExist(cam) then 200 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 201 | end 202 | SetCamActive(cam,false) 203 | StopCamPointing(cam) 204 | RenderScriptCams(0,0,0,0,0,0) 205 | SetFocusEntity(PlayerPedId()) 206 | end 207 | 208 | function CreateCharacterCamera() 209 | if not DoesCamExist(cam) then 210 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 211 | end 212 | SetCamCoord(cam,vector3(-38.2,-589.89,79.50)) 213 | -- SetCamRot(cam,f(0),f(0),f(159),73) 214 | SetCamRot(cam, 0.0, 0.0, 159.0) 215 | SetCamActive(cam,true) 216 | RenderScriptCams(true,true,20000000000000000000000000,0,0,0) 217 | end 218 | 219 | function FadeOutNet() 220 | if continuousFadeOutNetwork then 221 | for _, id in ipairs(GetActivePlayers()) do 222 | if id ~= PlayerId() then 223 | NetworkFadeOutEntity(GetPlayerPed(id),false) 224 | end 225 | end 226 | SetTimeout(0, FadeOutNet) 227 | end 228 | end 229 | 230 | 231 | function CreateCameraOnTop2(x, y, z) 232 | if x ~= nil and y ~= nil and z ~= nil then 233 | if not DoesCamExist(cam) then 234 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 235 | end 236 | SetCamCoord(cam,vector3(x, y,f(1000))) 237 | SetCamRot(cam,-f(90),f(0),f(0),2) 238 | SetCamActive(cam,true) 239 | StopCamPointing(cam) 240 | RenderScriptCams(true,true,0,0,0,0) 241 | SetEntityCoords(PlayerPedId(), x, y, z) 242 | end 243 | end 244 | 245 | function CameraLoadToGround2(x, y, z) 246 | if x ~= nil and y ~= nil and z ~= nil then 247 | if not DoesCamExist(cam) then 248 | cam = CreateCam("DEFAULT_SCRIPTED_CAMERA",false) 249 | end 250 | local altura = 1000 251 | SetCamCoord(cam,vector3(x, y,f(1000))) 252 | while altura > (z - 5.0) do 253 | SetEntityCoords(PlayerPedId(), x, y, z) 254 | if altura <= 300 then 255 | altura = altura - 6 256 | elseif altura >= 301 and altura <= 700 then 257 | altura = altura - 4 258 | else 259 | altura = altura - 2 260 | end 261 | setCamHeight(altura) 262 | Citizen.Wait(10) 263 | end 264 | end 265 | end 266 | 267 | -------------------------------------------------------------------------------- /ui/jquery-3.7.0.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v3.7.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0