Raw Source
j0shi82 / Last War Manager

// ==UserScript==
// @name          Last War Manager
// @author        j0Shi <psycho.j0shi@gmail.com>
// @namespace     https://github.com/j0Shi82/
// @homepageURL   https://github.com/j0Shi82/last-war-manager
// @description   Some tweaking to the Last War UI and environment
// @license       GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
// @updateURL     https://raw.githubusercontent.com/j0Shi82/last-war-manager/master/dist/last-war-manager.user.js
// @downloadURL   https://raw.githubusercontent.com/j0Shi82/last-war-manager/master/dist/last-war-manager.user.js
// @supportURL    https://github.com/j0Shi82/last-war-manager/issues
// @match         http*://*.last-war.de/main.php*
// @match         http*://*.last-war.de/main-mobile.php*
// @match         http*://*.last-war.de/planetenscanner_view.php*
// @match         http*://*.last-war.de/view/content/new_window/observationen_view.php*
// @icon          https://raw.githubusercontent.com/j0Shi82/last-war-manager/0814103384c9be78cc28611fd973b5a7fdfdbb19/assets/logo-small.png
// @grant         GM.getValue
// @grant         GM.setValue
// @grant         GM_getValue
// @grant         GM_setValue
// @run-at        document-start
// @version       1.3.3
// ==/UserScript==
/*! For license information please see last-war-manager.user.js.LICENSE.txt */
(()=>{var e={844:(e,t,n)=>{"use strict";n.d(t,{Rf:()=>i,DM:()=>o,Cf:()=>s});var r=n(422),a={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function o(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var a=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),a}},422:(e,t,n)=>{"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function a(e,t){return e.require(t)}n.d(t,{KV:()=>r,l$:()=>a}),e=n.hmd(e)},170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>l});var r=n(844),a=n(422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}},o=(0,a.KV)()?function(){try{return(0,a.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===o?i:{nowSeconds:function(){return(o.timeOrigin+o.now())/1e3}},l=i.nowSeconds.bind(i);s.nowSeconds.bind(s),function(){var e=(0,r.Rf)().performance;e&&(e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now())}()},480:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,"@media (max-width: 850px){.resourceBox .resourceProgressBar ul.loadbar{margin:0 !important}}.uberProgressbar>div,.resourceProgressBar,.researchProgressBar,.constructionProgressBar{background-color:rgba(255,255,255,0.2);border-radius:10px;border:1px solid #216b7e;background-image:none}.uberProgressbar>div ul,.uberProgressbar>div ul.loadbar,.uberProgressbar>div ul.loadbarConstruction,.uberProgressbar>div ul.loadbarResearch,.resourceProgressBar ul,.resourceProgressBar ul.loadbar,.resourceProgressBar ul.loadbarConstruction,.resourceProgressBar ul.loadbarResearch,.researchProgressBar ul,.researchProgressBar ul.loadbar,.researchProgressBar ul.loadbarConstruction,.researchProgressBar ul.loadbarResearch,.constructionProgressBar ul,.constructionProgressBar ul.loadbar,.constructionProgressBar ul.loadbarConstruction,.constructionProgressBar ul.loadbarResearch{float:none;width:0%;height:100%;margin:0;padding:0;display:block;background-color:#62c4cc;border-radius:10px;min-width:20px;max-width:100%;transition-property:width;transition-delay:0s;transition-duration:1s;transition-timing-function:ease-in-out}.uberProgressbar>div ul li,.uberProgressbar>div ul.loadbar li,.uberProgressbar>div ul.loadbarConstruction li,.uberProgressbar>div ul.loadbarResearch li,.resourceProgressBar ul li,.resourceProgressBar ul.loadbar li,.resourceProgressBar ul.loadbarConstruction li,.resourceProgressBar ul.loadbarResearch li,.researchProgressBar ul li,.researchProgressBar ul.loadbar li,.researchProgressBar ul.loadbarConstruction li,.researchProgressBar ul.loadbarResearch li,.constructionProgressBar ul li,.constructionProgressBar ul.loadbar li,.constructionProgressBar ul.loadbarConstruction li,.constructionProgressBar ul.loadbarResearch li{display:none}\n",""]);const i=a},982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'.leftContent,.virtualHeaderBox,#facebookButton,.pageNameDiv,.crl,.cordinatenInfoMiddlePage,#planetImage,input.deletePlanetName,#shipImage,#link,#veticalLink,#DefenseGraph img,.big_img,#cordinates_for_tade,#newTradeOfferDiv .select_box_cordinaten,#allCordinaten-button>span,#profileImageBox>img,.resourceBox .bigPop,.ui-loader,#loader,#propassssss,#portrait_screen{display:none !important}html{overflow:auto;overflow-x:hidden;width:100%;height:unset;background-image:url(https://raw.githubusercontent.com/j0Shi82/last-war-manager/f1f575ca20ec62c225f1157c267dbf6c33be9d53/assets/background.jpg);background-size:100% 100%}body{background-color:rgba(0,0,0,0.5);font-size:14px}body>div>img:first-child{display:none}div[data-role="page"]{min-height:unset !important;height:unset;max-width:1200px;margin:0 auto}@media (max-width: 600px){#tradeOfferDiv .offer{width:98%}#galaxyViewInfoTable tr td:nth-child(2),#galaxyViewInfoTable tr td:nth-child(3){word-break:break-all}#tableForChangingPlanet .col-2{display:none}}@media (max-width: 850px){html{width:100%;margin-left:0}#link,#veticalLink{display:flex !important;justify-content:space-between;flex-wrap:wrap;padding-top:0;padding-bottom:0}#link.active{margin-bottom:20px !important}.fontSizeFourteenClass,table{font-size:12px}#Main{flex-flow:column}#Header,#Footer,#Content{flex:1 100% !important}#Header{display:none;order:1 !important;margin:0;margin-top:66px;position:fixed;z-index:10;width:100%;background-color:#173a44}.headerBox{background-color:#173a44}#lwm_menu_toggle{display:block !important;position:fixed}#Content{order:3 !important;display:block !important}#Footer{order:2 !important;margin-bottom:10px;margin-left:1%;margin-right:1%;margin-top:68px}#Header,.headerBox,.menu,.first_line,.secound_line{height:unset !important}.menu{flex-direction:column;border-bottom:2px solid #5db8b6;border-left:2px solid #5db8b6;border-right:2px solid #5db8b6;padding:5px;border-radius:0 0 10px 10px}.lwm_menu-content .select_box_cordinaten{top:0;margin:0}.resourceBoxs{width:100% !important;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:center}.resourceBox{flex:0 0 100px;float:none;margin-left:2px !important;margin-right:0 !important;display:flex;font-size:12px !important;flex-direction:column;align-items:center;justify-content:center;height:55px !important}.resourceBox img,.resourceBox br{display:none}.resourceProgressBar{width:80px !important}.resourceBox ul.loadbar{margin-top:2px !important}.galaxyView{display:none !important}.resourceName,.resourceAmount,.resourceProgressBar{position:unset;top:0;left:0}.profileImage,#profileImageBox,.profileInfo,.iconOpenMenuDiv{display:none !important}.first_line{justify-content:space-between !important}.secound_line{justify-content:space-between !important;flex:unset !important;padding-left:0 !important;margin-top:5px !important}}select{color:#7cf3fd;background-color:#0c3046}#Main{max-width:1200px;margin:0 auto;justify-content:center;align-items:stretch;align-content:flex-start;flex-flow:row wrap;width:100%;height:unset}#Main.active{display:flex !important}#Main:not(.active)>div{display:none !important}#Header{flex:1 100%;height:180px}#lwm_menu_toggle i{cursor:pointer}#lwm_menu_toggle i.inactive{color:rgba(0,0,0,0.25);cursor:default}#lwm_menu_toggle{display:none;width:100%;color:#000;background-color:#5db8b6;padding:5px 0 5px 0;z-index:10}#lwm_menu_toggle .lwm_menu-content{display:flex !important;justify-content:space-between;width:98%;margin:0 auto;align-items:center}#lwm_menu_toggle .lwm_menu-content .lwm_menu-item{height:56px}#lwm_menu_toggle .lwm_menu-content .lwm_menu-item:last-child{flex:0 0 42px;display:flex;justify-content:center;align-items:center}#lwm_menu_toggle .lwm_menu-content .lwm_menu-item:nth-child(2){flex:0 0 115px;display:flex;justify-content:center;align-items:center}#lwm_menu_toggle .lwm_menu-content .lwm_menu-item:first-child{flex-grow:1;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}#lwm_menu_toggle .lwm_menu-content .lwm_menu-item:first-child i{font-size:2em;width:35px;text-align:center}i.icon-galaxy{width:28px;height:28px;background-size:100% 100%;background-image:url("https://raw.githubusercontent.com/j0Shi82/last-war-manager/c9ba9890b2f490e4204fe2f6fe849c3a633d2cd2/assets/galaxy.png")}.headerBox{padding-top:0;height:180px;display:flex;margin:0;width:100%}.profileImage{top:0;left:0;overflow:hidden;order:1;flex:0 0 170px;margin-left:5px;margin-right:5px;margin-bottom:2px;background:none;background-image:none;background-color:#4290a157;border-radius:60px 60px 10px 10px}.profileInfo{padding:0;text-align:center;overflow:hidden;text-overflow:ellipsis;margin-left:5px;margin-right:5px}#profileImageBox{float:none;margin-right:0;margin:5px auto 0;width:120px;height:120px;overflow:hidden;z-index:2;background-size:cover;border-radius:60px}#profileImageBox>svg{display:none}.menu{margin-left:0;width:unset;text-align:unset;order:2;flex:1 0 0;display:flex !important;position:static !important;flex-direction:column;padding:5px;justify-content:space-between}.first_line,.secound_line{margin-top:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:space-between}#Footer{order:1;flex:0 0 180px;height:unset}.resourceBoxs{margin:0;padding:0;width:180px;float:none}.resourceBox{width:170px;margin-left:5px;margin-right:5px;margin-bottom:2px;font-size:14px;background:none;background-image:none;background-color:#4290a157;border-radius:10px;height:75px}.resourceBox .lwm-resourceClock,.resourceBox .lwm-resourceCapacity{position:static;font-size:1em}.resourceBox .lwm-resourceAmount{position:static;font-size:1.25em}.resourceBox .lwm-resourcePerc{position:static;top:0;left:0}.resourceBox img{opacity:1}.resourceProgressBar{background-size:100% 100%;width:140px}ul.loadbarConstruction,ul.loadbarResearch{display:flex;width:98%;margin-left:1%;padding-left:0;padding-right:0}ul.loadbar{display:flex;width:90%;margin-left:5%;padding-left:0;padding-right:0;-webkit-margin-before:unset;-webkit-padding-before:unset;margin-top:-5px}ul.loadbarConstruction li,ul.loadbarResearch li,ul.loadbar li{flex:1 1 1px;width:unset}.galaxyView{background-size:100% 100%;background-repeat:no-repeat;width:170px;margin-right:5px;margin-left:5px;height:100px;background-color:#4290a157;border-radius:10px}#Content{order:2;flex-grow:3;flex-shrink:1;flex-basis:0;height:unset;margin:0;margin-bottom:50px}.middleContent{background-image:none;background:none;width:96%;height:unset;margin-left:2%;margin-right:0;margin-top:0;float:none}#all{width:100%;height:unset;top:0;left:0;clip-path:none;-webkit-clip-path:none}.pageContent{height:unset;overflow-y:initial;overflow-x:auto;padding-right:0}table,tr,td,th{border:1px solid rgba(124,243,241,0.5);border-collapse:collapse}.resourceProgressBarPlanet{width:unset;background-size:100% 100%}.resourceProgressBarPlanet ul.loadbar{-webkit-margin-before:2px}.planetButtonMain{background-color:#4290a157;font-size:18px;font-weight:bold;white-space:normal}.wordBreak{word-break:normal}#constructionPageDiv tr>td:first-child,#schiffskomponentenDiv tr>td:first-child,#productionDiv tr>td:first-child:not(.roheisenVariable),#researchPageDiv tr>td:first-child:not(.roheisenVariable),#verteidigungDiv tr>td:first-child:not(.roheisenVariable),#handelspostenDiv tr>td:first-child:not(.roheisenVariable),#recyclingDefenceDiv tr>td:first-child:not(.roheisenVariable),#raumdockDiv tr>td:first-child,#changeFlottenDiv tr>td:first-child{word-break:break-all;min-width:50px;background-color:#4290a157}tr th:first-child,#lwm_resourceTotal th,#ShipTable>tbody>tr>td:first-child,#EngineTable>tbody>tr>td:first-child,#ComponentTable>tbody>tr>td:first-child,#researchPageDiv>table>tbody>tr>td:first-child,.hideCommponetShips td:first-child,#AllItems>tbody>tr>td:first-child{min-width:50px;background-color:#4290a157;word-break:break-all}.timeConstructionTd,.timeResearchTd{flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:space-evenly}.defaultButton,.greenButton,.yellowButton,.redButton{margin:0}#saveLinks{padding-top:10px;padding-bottom:10px;text-align:center}.formButtonSpionage,.formButton,.formButtonNewMessage,.buttonGalaxyView,.formButtonGalaxyView{width:125px !important;height:25px !important;line-height:25px !important}.formButtonSpionage,.formButtonNewMessage{margin-top:5px !important;margin-bottom:5px !important}.buttonAccount{width:150px !important;height:25px !important;line-height:25px !important;margin-top:5px !important;margin-bottom:5px !important}.menu_box,.buttonAccount,.navButton,.navBigButton,.formButtonNewMessage,.formButton,.formButtonSpionage,.buttonGalaxyView,.formButtonGalaxyView{border-radius:5px;margin:1px;border:2px groove #7cf3f1;font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu_box:hover,.buttonAccount:hover,.navButton:hover,.navBigButton:hover,.formButtonNewMessage:hover,.formButton:hover,.formButtonSpionage:hover,.buttonGalaxyView:hover,.formButtonGalaxyView:hover{background-color:#cdd21c57}.menu_box,.buttonAccount,.formButtonNewMessage,.formButton,.formButtonSpionage,.buttonGalaxyView,.formButtonGalaxyView{background:none;background-image:none !important;background-color:#4290a157}.menu_box{width:120px !important;height:22px;line-height:22px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.navButton,.bigNavButton{background:none;background-image:none !important;background-color:#242d6f8f;width:150px !important;height:22px !important;line-height:22px !important;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding-right:5px}.headerOfGalaxyViewPage .formButtonGalaxyView{width:20px !important}.headerOfGalaxyViewPage .formButtonGalaxyView i{line-height:2em}.menu_box.inactive{border:2px groove rgba(124,243,241,0.25);background-color:none;color:rgba(124,243,253,0.25);pointer-events:none;cursor:default}.menu_box i+span{margin-left:5px;margin-right:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu_box i{margin-left:5px}.navButton i,.bigNavButton i{margin-left:5px;margin-right:5px}.activeBox{background:none;background-image:none !important;background-color:#cdd21c57}.lightRedBackgroundGalaxyView{background-color:#6b1919;background:#6b1919}.hisMessage{background-color:#7399dc}.hisMessage::before{border-color:transparent #7399dc transparent transparent}.buttonRow{height:unset}@media (max-width: 600px){.headerOfGalaxyViewPage input,#inboxContent .formButton,#inboxContent .formButtonNewMessage{width:80px !important}.headerOfGalaxyViewPage .buttonGalaxyView{width:50px !important}}@media (max-width: 850px){.navButton,.navButton.bigNavButton{width:120px !important;line-height:22px !important;height:22px !important;font-size:12px !important}.buttonAccount,.formButtonNewMessage,.formButton,.formButtonSpionage,.buttonGalaxyView,.formButtonGalaxyView{width:125px !important;font-size:12px !important}#tradeOfferDiv .formButton{width:100px !important}.menu_box{width:100px !important;font-size:12px !important}td.roheisenVariable,td.kristallVariable,td.frubinVariable,td.orizinVariable,td.frurozinVariable,td.goldVariable{font-size:10px;word-break:break-all}}.raumdock-arrow-left,.arrow-left,.spionage-arrow-left,.arrow-left-recycle{border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:20px solid #7cf3fd;margin-top:0 !important}.raumdock-arrow-right,.arrow-right,.spionage-arrow-right,.arrow-right-recycle{border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:20px solid #7cf3fd;margin-top:0 !important}input[type="number"]{text-align:center;margin:0}[id*="InputNumber"],.inputNumberDiv{display:flex;justify-content:center;flex-wrap:nowrap;align-items:center}#changeFlottenDiv td[id*="InputNumber"]{display:table-cell}.inputNumberDiv span{margin-left:2px;margin-right:2px;font-size:14px}@media (max-width: 850px){#handelspostenDiv input[type="number"],#verteidigungDiv input[type="number"],#productionDiv input[type="number"],#raumdockDiv input[type="number"]{width:30px !important}}#raumdockDiv .inputNumberDiv,#spionageDiv .inputNumberDiv{display:flex;justify-content:space-between;align-items:center}.inputNumberDiv .fa-check-circle{color:#6ac468;cursor:pointer;font-size:2em}.inputNumberDiv .fa-ban{color:#c46868;cursor:pointer;font-size:2em}.shipNameProduction,.headerProduction{font-size:inherit;background:none;background-image:none;background-color:#4290a157;min-width:50px}table+table{margin-top:5px}th,th.wordBreak{word-break:break-all}th.resursiUnos{display:table-cell !important}#ComponentTable tr:not([id]):not(:nth-child(3)){display:none !important}#ComponentTable tr:not([id]):nth-child(3) td,#AllItems th,#headerMaintable th,#EngineTable tr:nth-child(2),#ShipTable tr:nth-child(2),#planetTable tr:nth-child(6n-5),#constructionPageDiv th,td.constructionName,#researchPageDiv th,#tradeOfferDiv th,#newTradeOfferDiv th,#raumdockDiv th,#lwm_tradeStats th,#changeFlottenDiv th,#messagesListTableInbox>tbody>tr:first-child,#lwm_folottenbewegungenPageDiv table tr:first-child,#divTabele1 table tr:first-child,#divTabele2 table tr:first-child,#galaxyViewInfoTable th,#observationenDiv th,#calendarDiv th,#tableForChangingPlanet tr{word-break:break-all;background-color:#4290a157}#tradeOfferDiv th{background-color:#4290a157;word-break:normal !important}.hideCommponetShips .bla{display:flex;justify-content:center}.hideCommponetShips .bla input{width:25px;margin:0}#planetText{margin:0}#galaxyViewDiv{margin-top:5px}#lwm_folottenbewegungenPageDiv tr>td:not(:nth-last-child(1)):not(:nth-last-child(2)):not(:first-child){display:none}#lwm_folottenbewegungenPageDiv select{width:25%}#lwm_folottenbewegungenPageDiv b{text-decoration:underline}#lwm_folottenbewegungenPageDiv i{float:left;margin-top:2px;width:1.5em}#planetTable>tbody>tr:nth-child(1)>td:nth-child(4),#planetTable>tbody>tr:nth-child(1)>td:nth-child(5),#planetTable>tbody>tr:nth-child(1)>th:nth-child(4),#planetTable>tbody>tr:nth-child(1)>th:nth-child(5),#planetTable>tbody>tr:nth-child(2)>td:nth-child(4),#planetTable>tbody>tr:nth-child(2)>td:nth-child(5),#planetTable>tbody>tr:nth-child(2)>th:nth-child(4),#planetTable>tbody>tr:nth-child(2)>th:nth-child(5),#planetTable>tbody>tr:nth-child(5n-3)>td:nth-child(4),#planetTable>tbody>tr:nth-child(5n-3)>td:nth-child(5),#planetTable>tbody>tr:nth-child(5n-3)>th:nth-child(4),#planetTable>tbody>tr:nth-child(5n-3)>th:nth-child(5){display:none}#t1DIV,#t2DIV,#t3DIV{display:table-row !important}#lwm_selectAllShips{margin-left:5px}.createShipButton{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.createShipButton:hover{background-color:#cdd21c57}.inboxPage{display:flex;flex-flow:column}#messagesListTableInbox{margin-bottom:5px}.messages{width:90%;border:1px solid #7cf3f1;border-radius:10px;padding:2%;height:unset;overflow-y:auto}.messages a{color:#32eccf;font-weight:bold}#veticalLink{width:100%;text-align:center;height:unset;margin-bottom:5px}#inboxContent{width:100%}.inboxDeleteMessageButtons{display:flex;justify-content:flex-start;flex-wrap:wrap;width:50%;margin:0;float:left}.inboxNextPageButtons{display:flex;justify-content:flex-end;flex-wrap:wrap;width:50%;margin:0;float:right}.buttonRowInbox,.buttonRowNextPageInbox{height:unset;width:unset;float:none}.newMessageInbox textarea{width:90%}#inboxContent .controller{display:flex;align-items:center;justify-content:center}#DefenseGraph{background:url(https://last-war.de/images/Defense.jpg);background-size:100% 100%;background-repeat:no-repeat;height:400px}#DefenseGraph #layer1,#DefenseGraph #layer2,#DefenseGraph #layer3,#DefenseGraph #layer4{float:none;text-align:unset;padding:0;margin:0;font-size:14px}#DefenseGraph #layer1{width:80%;left:10%;top:3%}#DefenseGraph #layer2{width:80%;top:25%;left:10%}#DefenseGraph #layer3{width:100%;top:40%}#DefenseGraph #layer3 #layer3_right{font-size:10px;width:45%;margin-left:5%;padding:0;margin-top:2%}#DefenseGraph #layer3 #layer3_left{width:45%;text-align:center;margin-right:5%;height:unset}#DefenseGraph #layer4{width:100%;top:60%;left:0%}#DefenseGraph #layer4>div:first-child{width:80%}#DefenseGraph #layer4 #plasma{width:40%;margin:0;text-align:right;margin-top:3%}#DefenseGraph #layer4 #anti{width:40%;text-align:left;margin-top:3%;margin-right:0}#upgradeDefenceDiv button[onclick*="upgradeDefenceFunction"]{display:flex;justify-content:center;align-items:center}#recyclingDefenceDiv td[id*="InputNumber"]{width:100% !important}.big_img_alt{width:auto;max-width:500px;height:auto;position:absolute;z-index:1;background-color:#092a3d;margin-bottom:1px;font-weight:bold;font-size:12px;font-style:italic;border-radius:10px;text-align:justify;padding-left:10px;padding-right:10px}.loader{border:16px solid #7cf3f1;border-top:16px solid #1a3f4a;border-radius:50%;width:120px;height:120px;animation:spin 2s linear infinite;margin:0 auto}.loader.lwm-firstload{width:250px;height:250px;border-width:25px}.lwm-firstload.wrapper{position:absolute;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:10000;top:0;background-color:rgba(0,0,0,0.75)}.lwm-firstload.wrapper .lwm-firstload.status{width:100%;text-align:center;height:25px;line-height:25px;font-size:1.5em;font-weight:700}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}#lwm_tradeStats{margin-bottom:20px}#tradeOfferDiv tr.empty.green{background-color:#3baf11}@media (max-width: 850px){#newTradeOfferDiv .lwm-trade-coords{font-size:1.5em}}#newTradeOfferDiv th input:nth-child(1){width:25px !important}#newTradeOfferDiv th input:nth-child(2){width:30px !important}#newTradeOfferDiv th input:nth-child(3){width:25px !important}#newTradeOfferDiv th:nth-child(2){white-space:nowrap}#newTradeOfferDiv td{text-align:center;padding:5px !important}#newTradeOfferDiv td:nth-child(1),#newTradeOfferDiv td:nth-child(3){word-break:break-all}#newTradeOfferDiv select{margin-left:5px}#newTradeOfferDiv td input{background-repeat:no-repeat;background-size:contain;width:90%;margin-bottom:0 !important;margin-top:0 !important}#newTradeOfferDiv td input#my_eisen,#newTradeOfferDiv td input#his_eisen{background-image:url(https://last-war.de/images/main_screen/footer/R1.png)}#newTradeOfferDiv td input#my_kristall,#newTradeOfferDiv td input#his_kristall{background-image:url(https://last-war.de/images/main_screen/footer/R2.png)}#newTradeOfferDiv td input#my_frubin,#newTradeOfferDiv td input#his_frubin{background-image:url(https://last-war.de/images/main_screen/footer/R3.png)}#newTradeOfferDiv td input#my_orizin,#newTradeOfferDiv td input#his_orizin{background-image:url(https://last-war.de/images/main_screen/footer/R4.png)}#newTradeOfferDiv td input#my_frurozin,#newTradeOfferDiv td input#his_frurozin{background-image:url(https://last-war.de/images/main_screen/footer/R5.png)}#newTradeOfferDiv td input#my_gold,#newTradeOfferDiv td input#his_gold{background-image:url(https://last-war.de/images/main_screen/footer/R6.png)}#newTradeOfferDiv td .lwm-res-offer-wrap{width:100%;display:flex;justify-content:center;align-items:center;margin-bottom:10px}#newTradeOfferDiv td .lwm-res-offer-wrap:first-child{margin-top:10px}#newTradeOfferDiv td .lwm-res-offer-wrap i{cursor:pointer}#tradeOfferComment{border:1px solid #7cf3fd !important}#attaksInfo{color:#fff;background-color:#c70000 !important}.pageContent .flottenViewDiv #firstTable{width:unset !important}.flottenViewDiv a:hover{color:#fff;background-color:#242d6f8f}#lwm_fleet_timer_wrapper{margin-top:20px;border:1px solid rgba(124,243,241,0.5);display:flex;flex-wrap:wrap;justify-content:space-between}#lwm_fleet_timer_wrapper>div{flex:1;margin:5px;text-align:center}#lwm_fleet_timer_wrapper div,#lwm_fleet_timer_wrapper select,#lwm_fleet_timer_wrapper input{height:20px}#lwm_fleet_timer_wrapper .lwm_preselect{font-weight:bold;background-color:#7cf3fd;color:#0c3046}iframe#lwmSettings{left:0 !important;top:0 !important;width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;border:1px solid transparent !important;background:#00000080 !important;background-color:#00000080 !important}.planetGraph{margin-top:1%}.planetGraph:nth-child(2n-1){margin-right:2%}@media (max-width: 700px){.planetGraph{margin-top:1%;margin-right:0;width:100%}}.actionClass{font-size:0.75em}.flottenKommandoAction,.newTradeOfferAction,.spionagePlanetenscannerAction,.spionageObservationsAction,.changePlanetAction{background-image:none}.headerOfGalaxyViewPage{margin-bottom:5px;padding:5px;border:1px solid rgba(124,243,241,0.5);border-collapse:collapse}.headerOfGalaxyViewPage input{width:unset;float:none;border-color:unset;border-radius:5px;border-width:0;margin-top:0%;height:29px;background-color:#4290a157;color:#7cf3fd;text-align:center}.headerOfGalaxyViewPage input::-webkit-input-placeholder,.headerOfGalaxyViewPage input::placeholder{color:#7cf3fd80}.headerOfGalaxyViewPage .col-4{text-align:right}#tableForChangingPlanet #left,#tableForChangingPlanet #right{cursor:pointer}#tableForChangingPlanet .row{justify-content:space-evenly;align-items:center}#galaxy_view_search{margin-right:2px;margin-left:2px;font-size:14px}.inputSearchGalaxyValDiv{display:flex;justify-content:center;flex-wrap:nowrap;align-items:center}#divTabele2{margin-top:20px}#aktuelleProduktionPageDiv .fa-ban{color:rgba(255,0,0,0.75)}.shipNameProduction i{color:rgba(255,0,0,0.75);cursor:pointer;float:left;margin-left:5px;margin-right:5px}#productionDiv button[onclick*="delete"]{border:0 !important}#productionDiv table i.fa-ban{color:rgba(255,0,0,0.75)}.tableFilters_content{display:flex;flex-wrap:wrap;justify-content:center}.tableFilters{margin-bottom:20px;border:1px solid #7cf3f1}.tableFilters_header{color:#c7fbff;text-align:center;background-color:#4290a157;border-bottom:1px solid #7cf3f1}[id*="ProductionButtonShip"] button{display:flex;flex-wrap:wrap;align-items:center;justify-content:center}#upgrade_ship_filters .tableFilters_content{text-align:center;padding:2px}#rohstoffeDiv>.rohstoffeTableClass>tbody>tr{display:flex;flex-wrap:wrap;justify-content:space-evenly;height:unset !important}#rohstoffeDiv>.rohstoffeTableClass>tbody>tr>td{width:unset !important;flex:0 0 300px;height:250px !important}#lwm_resourceTotal{margin-bottom:20px}#AccountInfo{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly}#AccountInfo>div{margin:0;width:unset;height:unset;float:none}.friendsLis{flex:0 0 100%}#bankDiv>div{width:100% !important;margin:0 !important}@media (max-width: 850px){#calendarDiv tr td:nth-child(1){word-break:break-all}#calendarDiv tr td:nth-child(1){min-width:50px}#calendarDiv tr td:nth-child(2){min-width:25px}}#uberPageDiv table{overflow:hidden}@media (max-width: 850px){tr[data-coords]>td:not(#BuildingClock):not(#BuildingClock2){word-break:break-all}}.lwm-memo-container:not(.lwm-memo-container-inline){position:absolute;z-index:1000;width:80%;left:10%;height:80vh;top:10vh}.lwm-memo-container.lwm-memo-container-inline{width:100%}.lwm-memo-container.lwm-memo-container-inline .lwm-memo-body{height:initial}.lwm-memo-container.lwm-memo-container-inline .lwm-memo-body .lwm-memo-text{height:20vh}.lwm-memo-container .lwm-memo-menu{background:#000;height:50px;display:flex;padding:0 10px;align-items:center;justify-content:space-between}.lwm-memo-container .lwm-memo-menu .lwm-memo-close{font-size:3em;cursor:pointer}.lwm-memo-container .lwm-memo-body{height:calc(80vh - 50px)}.lwm-memo-container .lwm-memo-body .lwm-memo-text{width:100%;background-color:#000;color:#7cf3fd;border:1px solid #7cf3fd;height:100%}\n',""]);const i=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},484:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",a="day",i="week",o="month",s="quarter",l="year",c="date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+p(r,2,"0")+":"+p(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,o),i=n-a<0,s=t.clone().add(r+(i?-1:1),o);return+(-(r+(n-a)/(i?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return{M:o,y:l,w:i,d:a,D:c,h:r,m:n,s:t,ms:e,Q:s}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",g={};g[m]=f;var y=function(e){return e instanceof w},v=function(e,t,n){var r;if(!e)return m;if("string"==typeof e)g[e]&&(r=e),t&&(g[e]=t,r=e);else{var a=e.name;g[a]=e,r=a}return!n&&r&&(m=r),r||!n&&m},_=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},b=h;b.l=v,b.i=y,b.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function f(e){this.$L=v(e.locale,null,!0),this.parse(e)}var p=f.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return _(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<_(e)},p.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var u=this,d=!!b.u(s)||s,f=b.p(e),p=function(e,t){var n=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return d?n:n.endOf(a)},h=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case l:return d?p(1,0):p(31,11);case o:return d?p(1,g):p(0,g+1);case i:var _=this.$locale().weekStart||0,w=(m<_?m+7:m)-_;return p(d?y-w:y+(6-w),g);case a:case c:return h(v+"Hours",0);case r:return h(v+"Minutes",1);case n:return h(v+"Seconds",2);case t:return h(v+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,s){var u,d=b.p(i),f="set"+(this.$u?"UTC":""),p=(u={},u[a]=f+"Date",u[c]=f+"Date",u[o]=f+"Month",u[l]=f+"FullYear",u[r]=f+"Hours",u[n]=f+"Minutes",u[t]=f+"Seconds",u[e]=f+"Milliseconds",u)[d],h=d===a?this.$D+(s-this.$W):s;if(d===o||d===l){var m=this.clone().set(c,1);m.$d[p](h),m.init(),this.$d=m.set(c,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[b.p(e)]()},p.add=function(e,s){var c,u=this;e=Number(e);var d=b.p(s),f=function(t){var n=_(u);return b.w(n.date(n.date()+Math.round(t*e)),u)};if(d===o)return this.set(o,this.$M+e);if(d===l)return this.set(l,this.$y+e);if(d===a)return f(1);if(d===i)return f(7);var p=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[d]||1,h=this.$d.getTime()+e*p;return b.w(h,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.z(this),a=this.$locale(),i=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,u=function(e,r,a,i){return e&&(e[r]||e(t,n))||a[r].substr(0,i)},f=function(e){return b.s(i%12||12,e,"0")},p=a.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:u(a.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:u(a.weekdaysMin,this.$W,l,2),ddd:u(a.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:b.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,o,!0),A:p(i,o,!1),m:String(o),mm:b.s(o,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:r};return n.replace(d,(function(e,t){return t||h[e]||r.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(e,c,u){var d,f=b.p(c),p=_(e),h=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,g=b.m(this,p);return g=(d={},d[l]=g/12,d[o]=g,d[s]=g/3,d[i]=(m-h)/6048e5,d[a]=(m-h)/864e5,d[r]=m/36e5,d[n]=m/6e4,d[t]=m/1e3,d)[f]||m,u?g:b.a(g)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return g[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),x=w.prototype;return _.prototype=x,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",a],["$M",o],["$y",l],["$D",c]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,w,_),e.$i=!0),_},_.locale=v,_.isDayjs=y,_.unix=function(e){return _(1e3*e)},_.en=g[m],_.Ls=g,_.p={},_}()},285:function(e){e.exports=function(){"use strict";var e,t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,a){var i=a&&a.toUpperCase();return r||n[a]||t[a]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))},r=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^\s\d-:/()]+/,s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(t){var n=e[t];return n&&(n.indexOf?n:n.s.concat(n.f))},u=function(t,n){var r,a=e.meridiem;if(a){for(var i=1;i<=24;i+=1)if(t.indexOf(a(i,0,n))>-1){r=i>12;break}}else r=t===(n?"pm":"PM");return r},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[a,s("day")],Do:[o,function(t){var n=e.ordinal,r=t.match(/\d+/);if(this.day=r[0],n)for(var a=1;a<=31;a+=1)n(a).replace(/\[|\]/g,"")===t&&(this.day=a)}],M:[i,s("month")],MM:[a,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.substr(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[a,function(e){e=+e,this.year=e+(e>68?1900:2e3)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l},f=function(t,a,i){try{var o=function(t){for(var a=(t=n(t,e&&e.formats)).match(r),i=a.length,o=0;o<i;o+=1){var s=a[o],l=d[s],c=l&&l[0],u=l&&l[1];a[o]=u?{regex:c,parser:u}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<i;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var s=o.regex,l=o.parser,c=e.substr(r),u=s.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}(a)(t),s=o.year,l=o.month,c=o.day,u=o.hours,f=o.minutes,p=o.seconds,h=o.milliseconds,m=o.zone,g=new Date,y=c||(s||l?1:g.getDate()),v=s||g.getFullYear(),_=0;s&&!l||(_=l>0?l-1:g.getMonth());var b=u||0,w=f||0,x=p||0,k=h||0;return m?new Date(Date.UTC(v,_,y,b,w,x,k+60*m.offset*1e3)):i?new Date(Date.UTC(v,_,y,b,w,x,k)):new Date(v,_,y,b,w,x,k)}catch(e){return new Date("")}};return function(t,n,r){r.p.customParseFormat=!0;var a=n.prototype,i=a.parse;a.parse=function(t){var n=t.date,a=t.utc,o=t.args;this.$u=a;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,d=o[2];c&&(d=o[2]),l||(e=d?r.Ls[d]:this.$locale()),this.$d=f(n,s,a),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&n!==this.format(s)&&(this.$d=new Date("")),e=void 0}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){o[1]=s[h-1];var m=r.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else i.call(this,t)}}}()},650:function(e,t){!function(e){"use strict";var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,a=1073741824,i=new WeakMap,o=function(e,t){return function(i){var o=t.get(i),s=void 0===o?i.size:o<a?o+1:0;if(!i.has(s))return e(i,s);if(i.size<r){for(;i.has(s);)s=Math.floor(Math.random()*a);return e(i,s)}if(i.size>n)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;i.has(s);)s=Math.floor(Math.random()*n);return e(i,s)}}((t=i,function(e,n){return t.set(e,n),n}),i),s=function(e){return function(t){var n=e(t);return t.add(n),n}}(o);e.addUniqueNumber=s,e.generateUniqueNumber=o,Object.defineProperty(e,"__esModule",{value:!0})}(t)},755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,a){"use strict";var i=[],o=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,m=h.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},_=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,a,i=(n=n||_).createElement("script");if(i.text=e,t)for(r in b)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var k="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function D(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}S.fn=S.prototype={jquery:k,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},S.extend=S.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||y(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(S.isPlainObject(r)||(a=Array.isArray(r)))?(n=o[t],i=a&&!Array.isArray(n)?[]:a||S.isPlainObject(n)?n:{},a=!1,o[t]=S.extend(c,i,r)):void 0!==r&&(o[t]=r));return o},S.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=o(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||h.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(D(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(D(Object(e))?S.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,o=[];if(D(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&o.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&o.push(a);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=i[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,r,a,i,o,s,l,c,u,d,f,p,h,m,g,y,v,_,b="sizzle"+1*new Date,w=e.document,x=0,k=0,S=le(),D=le(),T=le(),I=le(),C=function(e,t){return e===t&&(d=!0),0},N={}.hasOwnProperty,O=[],M=O.pop,E=O.push,j=O.push,P=O.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",A="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+A+"*\\]",B=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",q=new RegExp(A+"+","g"),V=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),Y=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),H=new RegExp(A+"|>"),W=new RegExp(B),G=new RegExp("^"+L+"$"),U={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=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))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},oe=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(O=P.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(e){j={apply:O.length?function(e,t){E.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,a){var i,s,c,u,d,h,y,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!a&&(f(t),t=t||p,m)){if(11!==w&&(d=X.exec(e)))if(i=d[1]){if(9===w){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(v&&(c=v.getElementById(i))&&_(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return j.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===w&&(H.test(e)||z.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=b)),s=(h=o(e)).length;s--;)h[s]=(u?"#"+u:":scope")+" "+_e(h[s]);y=h.join(",")}try{return j.apply(r,v.querySelectorAll(y)),r}catch(t){I(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(V,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[b]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:w;return o!=p&&9===o.nodeType&&o.documentElement?(h=(p=o).documentElement,m=!i(p),w!=p&&(a=p.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),n.scope=ue((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ue((function(e){return h.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ue((function(e){var t;h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+$+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(h.compareDocumentPosition),_=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&_(w,e)?-1:t==p||t.ownerDocument==w&&_(w,t)?1:u?F(u,e)-F(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e==p?-1:t==p?1:a?-1:i?1:u?F(u,e)-F(u,t):0;if(a===i)return fe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?fe(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!I[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){I(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),_(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var a=r.attrHandle[t.toLowerCase()],i=a&&N.call(r.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(C),d){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return u=null,e},a=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+A+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=i!==o?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s,_=!1;if(g){if(i){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&v){for(_=(p=(c=(u=(d=(f=g)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(_=p=0)||h.pop();)if(1===f.nodeType&&++_&&f===t){u[e]=[x,p,_];break}}else if(v&&(_=p=(c=(u=(d=(f=t)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===_)for(;(f=++p&&f&&f[m]||(_=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++_||(v&&((u=(d=f[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[x,_]),f!==t)););return(_-=a)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[b]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=a(e,t),o=i.length;o--;)e[r=F(e,i[o])]=!(n[r]=i[o])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(V,"$1"));return r[b]?ce((function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ve(){}function _e(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=k++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var c,u,d,f=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===x&&c[1]===s)return f[2]=c[2];if(u[i]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,a){for(var i,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),c&&t.push(s)));return o}function ke(e,t,n,r,a,i){return r&&!r[b]&&(r=ke(r)),a&&!a[b]&&(a=ke(a,i)),ce((function(i,o,s,l){var c,u,d,f=[],p=[],h=o.length,m=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:xe(m,f,e,s,l),y=n?a||(i?e:h||r)?[]:o:g;if(n&&n(g,y,s,l),r)for(c=xe(y,p),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(y[p[u]]=!(g[p[u]]=d));if(i){if(a||e){if(a){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(g[u]=d);a(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=a?F(i,d):f[u])>-1&&(i[c]=!(o[c]=d))}}else y=xe(y===o?y.splice(h,y.length):y),a?a(null,o,y,l):j.apply(o,y)}))}function Se(e){for(var t,n,a,i=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=be((function(e){return e===t}),s,!0),d=be((function(e){return F(t,e)>-1}),s,!0),f=[function(e,n,r){var a=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])f=[be(we(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return ke(l>1&&we(f),l>1&&_e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),n,l<a&&Se(e.slice(l,a)),a<i&&Se(e=e.slice(a)),a<i&&_e(e))}f.push(n)}return we(f)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,a,i,o,s,l,c,u=D[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(a=Y.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(i=[])),n=!1,(a=z.exec(s))&&(n=a.shift(),i.push({value:n,type:a[0].replace(V," ")}),s=s.slice(n.length)),r.filter)!(a=U[o].exec(s))||c[o]&&!(a=c[o](a))||(n=a.shift(),i.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):D(e,l).slice(0)},s=se.compile=function(e,t){var n,a=[],i=[],s=T[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Se(t[n]))[b]?a.push(s):i.push(s);(s=T(e,function(e,t){var n=t.length>0,a=e.length>0,i=function(i,o,s,l,u){var d,h,g,y=0,v="0",_=i&&[],b=[],w=c,k=i||a&&r.find.TAG("*",u),S=x+=null==w?1:Math.random()||.1,D=k.length;for(u&&(c=o==p||o||u);v!==D&&null!=(d=k[v]);v++){if(a&&d){for(h=0,o||d.ownerDocument==p||(f(d),s=!m);g=e[h++];)if(g(d,o||p,s)){l.push(d);break}u&&(x=S)}n&&((d=!g&&d)&&y--,i&&_.push(d))}if(y+=v,n&&v!==y){for(h=0;g=t[h++];)g(_,b,o,s);if(i){if(y>0)for(;v--;)_[v]||b[v]||(b[v]=M.call(l));b=xe(b)}j.apply(l,b),u&&!i&&b.length>0&&y+t.length>1&&se.uniqueSort(l)}return u&&(x=S,c=w),_};return n?ce(i):i}(i,a))).selector=e}return s},l=se.select=function(e,t,n,a){var i,l,c,u,d,f="function"==typeof e&&e,p=!a&&o(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=U.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(a=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&_e(l)))return j.apply(n,a),n;break}}return(f||s(e,p))(a,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(C).join("")===b,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de($,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);S.find=T,S.expr=T.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=T.uniqueSort,S.text=T.getText,S.isXMLDoc=T.isXML,S.contains=T.contains,S.escapeSelector=T.escape;var I=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&S(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=S.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,t,n){return y(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return u.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,a[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&N.test(e)?S(e):e||[],!1).length}});var j,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.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 S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),M.test(r[1])&&S.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=_.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(_);var F=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&S(e);if(!N.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?S.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(S(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var a=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=S.filter(r,a)),this.length>1&&($[e]||S.uniqueSort(a),F.test(e)&&a.reverse()),this.pushStack(a)}}));var L=/[^\x20\t\r\n\f]+/g;function R(e){return e}function B(e){throw e}function q(e,t,n,r){var a;try{e&&y(a=e.promise)?a.call(e).done(t).fail(n):e&&y(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,a,i=[],o=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){S.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?S.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var a=y(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,a){var i=0;function o(e,t,n,a){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<i)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(c)?a?c.call(r,o(i,t,R,a),o(i,t,B,a)):(i++,c.call(r,o(i,t,R,a),o(i,t,B,a),o(i,t,R,t.notifyWith))):(n!==R&&(s=void 0,l=[r]),(a||t.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,u.stackTrace),e+1>=i&&(n!==B&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),r.setTimeout(u))}}return S.Deferred((function(r){t[0][3].add(o(0,r,y(a)?a:R,r.notifyWith)),t[1][3].add(o(0,r,y(e)?e:R)),t[2][3].add(o(0,r,y(n)?n:B))})).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},i={};return S.each(t,(function(e,r){var o=r[2],s=r[5];a[r[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=s.call(arguments),i=S.Deferred(),o=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(q(e,i.done(o(n)).resolve,i.reject,!t),"pending"===i.state()||y(a[n]&&a[n].then)))return i.then();for(;n--;)q(a[n],o(n),i.reject);return i.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&V.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout((function(){throw e}))};var Y=S.Deferred();function z(){_.removeEventListener("DOMContentLoaded",z),r.removeEventListener("load",z),S.ready()}S.fn.ready=function(e){return Y.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||Y.resolveWith(_,[S]))}}),S.ready.then=Y.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?r.setTimeout(S.ready):(_.addEventListener("DOMContentLoaded",z),r.addEventListener("load",z));var H=function(e,t,n,r,a,i,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in a=!0,n)H(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,y(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):i},W=/^-ms-/,G=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function Q(e){return e.replace(W,"ms-").replace(G,U)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=S.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[Q(t)]=n;else for(r in t)a[Q(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Q):(t=Q(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Z=new K,X=new K,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return X.hasData(e)||Z.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=X.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=Q(r.slice(5)),ne(i,r,a[r]));Z.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){X.set(this,e)})):H(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=X.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){X.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,a=n.shift(),i=S._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){S.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:S.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=S.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Z.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=_.documentElement,se=function(e){return S.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===S.css(e,"display")};function ue(e,t,n,r){var a,i,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=s(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),u=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&ae.exec(S.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)S.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(o=0),u/=i;u*=2,S.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var de={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,a=de[r];return a||(t=n.body.appendChild(n.createElement(r)),a=S.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),de[r]=a,a)}function pe(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=Z.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&ce(r)&&(a[i]=fe(r))):"none"!==n&&(a[i]="none",Z.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}S.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?S(this).show():S(this).hide()}))}});var he,me,ge=/^(?:checkbox|radio)$/i,ye=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;he=_.createDocumentFragment().appendChild(_.createElement("div")),(me=_.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),he.appendChild(me),g.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",g.option=!!he.lastChild;var _e={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?S.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,g.option||(_e.optgroup=_e.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function ke(e,t,n,r,a){for(var i,o,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===x(i))S.merge(f,i.nodeType?[i]:i);else if(xe.test(i)){for(o=o||d.appendChild(t.createElement("div")),s=(ye.exec(i)||["",""])[1].toLowerCase(),l=_e[s]||_e._default,o.innerHTML=l[1]+S.htmlPrefilter(i)+l[2],u=l[0];u--;)o=o.lastChild;S.merge(f,o.childNodes),(o=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&S.inArray(i,r)>-1)a&&a.push(i);else if(c=se(i),o=be(d.appendChild(i),"script"),c&&we(o),n)for(u=0;i=o[u++];)ve.test(i.type||"")&&n.push(i);return d}var Se=/^key/,De=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function Ce(){return!1}function Ne(e,t){return e===function(){try{return _.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Ce;else if(!a)return e;return 1===i&&(o=a,(a=function(e){return S().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=S.guid++)),e.each((function(){S.event.add(this,t,a,r,n)}))}function Me(e,t,n){n?(Z.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var r,a,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),Z.set(this,t,i),r=n(this,t),this[t](),i!==(a=Z.get(this,t))||r?Z.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a.value}else i.length&&(Z.set(this,t,{value:S.event.trigger(S.extend(i[0],S.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&S.event.add(e,t,Ie)}S.event={global:{},add:function(e,t,n,r,a){var i,o,s,l,c,u,d,f,p,h,m,g=Z.get(e);if(J(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&S.find.matchesSelector(oe,a),n.guid||(n.guid=S.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=S.event.special[p]||{},p=(a?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&S.expr.match.needsContext.test(a),namespace:h.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,o)||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?f.splice(f.delegateCount++,0,u):f.push(u),S.event.global[p]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,c,u,d,f,p,h,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=f.length;i--;)u=f[i],!a&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));o&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||S.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)S.event.remove(e,p+t[c],n,r,!0);S.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=new Array(arguments.length),l=S.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=S.event.handlers.call(this,l,c),t=0;(a=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((S.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,i,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],o={},n=0;n<l;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?S(a,this).index(c)>-1:S.find(a,this,null,[c]).length),o[a]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&O(t,"input")&&Me(t,"click",Ie),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&O(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&O(t,"input")&&Z.get(t,"click")||O(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ie:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Se.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&De.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){S.event.special[e]={setup:function(){return Me(this,e,Ne),!1},trigger:function(){return Me(this,e),!0},delegateType:t}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===r||S.contains(r,a))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){S.event.remove(this,e,n,t)}))}});var Ee=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Fe(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,a,i,o,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(a in Z.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)S.event.add(t,a,s[a][n]);X.hasData(e)&&(i=X.access(e),o=S.extend({},i),X.set(t,o))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var a,i,o,s,c,u,d=0,f=e.length,p=f-1,h=t[0],m=y(h);if(m||f>1&&"string"==typeof h&&!g.checkClone&&je.test(h))return e.each((function(a){var i=e.eq(a);m&&(t[0]=h.call(this,a,i.html())),Be(i,t,n,r)}));if(f&&(i=(a=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(s=(o=S.map(be(a,"script"),$e)).length;d<f;d++)c=a,d!==p&&(c=S.clone(c,!0,!0),s&&S.merge(o,be(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,S.map(o,Ae),d=0;d<s;d++)c=o[d],ve.test(c.type||"")&&!Z.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Pe,""),c,u))}return e}function qe(e,t,n){for(var r,a=t?S.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||S.cleanData(be(r)),r.parentNode&&(n&&se(r)&&we(be(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=se(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(o=be(s),r=0,a=(i=be(e)).length;r<a;r++)Re(i[r],o[r]);if(t)if(n)for(i=i||be(e),o=o||be(s),r=0,a=i.length;r<a;r++)Le(i[r],o[r]);else Le(e,s);return(o=be(s,"script")).length>0&&we(o,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,a=S.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)a[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),S.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return H(this,(function(e){return void 0===e?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!_e[(ye.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=[],a=S(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),S(a[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},ze=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},He=new RegExp(ie.join("|"),"i");function We(e,t,n){var r,a,i,o,s=e.style;return(n=n||Ye(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||se(e)||(o=S.style(e,t)),!g.pixelBoxStyles()&&Ve.test(o)&&He.test(t)&&(r=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),oe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,a,i,o,s,l,c=_.createElement("div"),u=_.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,a;return null==s&&(e=_.createElement("table"),t=_.createElement("tr"),n=_.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(n),a=r.getComputedStyle(t),s=parseInt(a.height)>3,oe.removeChild(e)),s}}))}();var Ue=["Webkit","Moz","ms"],Qe=_.createElement("div").style,Je={};function Ke(e){return S.cssProps[e]||Je[e]||(e in Qe?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Qe)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ae.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,a,i){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=S.css(e,n+ie[o],!0,a)),r?("content"===n&&(l-=S.css(e,"padding"+ie[o],!0,a)),"margin"!==n&&(l-=S.css(e,"border"+ie[o]+"Width",!0,a))):(l+=S.css(e,"padding"+ie[o],!0,a),"padding"!==n?l+=S.css(e,"border"+ie[o]+"Width",!0,a):s+=S.css(e,"border"+ie[o]+"Width",!0,a));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function at(e,t,n){var r=Ye(e),a=(!g.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),i=a,o=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&a||!g.reliableTrDimensions()&&O(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===S.css(e,"boxSizing",!1,r),(i=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+rt(e,t,n||(a?"border":"content"),i,r,o)+"px"}function it(e,t,n,r,a){return new it.prototype.init(e,t,n,r,a)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=Q(t),l=Xe.test(t),c=e.style;if(l||(t=Ke(s)),o=S.cssHooks[t]||S.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:c[t];"string"==(i=typeof n)&&(a=ae.exec(n))&&a[1]&&(n=ue(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=a&&a[3]||(S.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,i,o,s=Q(t);return Xe.test(t)||(t=Ke(s)),(o=S.cssHooks[t]||S.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=We(e,t,r)),"normal"===a&&t in tt&&(a=tt[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,r):ze(e,et,(function(){return at(e,t,r)}))},set:function(e,n,r){var a,i=Ye(e),o=!g.scrollboxSize()&&"absolute"===i.position,s=(o||r)&&"border-box"===S.css(e,"boxSizing",!1,i),l=r?rt(e,t,r,s,i):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-rt(e,t,"border",!1,i)-.5)),l&&(a=ae.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),nt(0,n,l)}}})),S.cssHooks.marginLeft=Ge(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ie[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(S.cssHooks[e+t].set=nt)})),S.fn.extend({css:function(e,t){return H(this,(function(e,t,n){var r,a,i={},o=0;if(Array.isArray(t)){for(r=Ye(e),a=t.length;o<a;o++)i[t[o]]=S.css(e,t[o],!1,r);return i}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(S.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=it.prototype.init,S.fx.step={};var ot,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===_.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,S.fx.interval),S.fx.tick())}function dt(){return r.setTimeout((function(){ot=void 0})),ot=Date.now()}function ft(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ie[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function pt(e,t,n){for(var r,a=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function ht(e,t,n){var r,a,i=0,o=ht.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=ot||dt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=Q(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=S.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);i<o;i++)if(r=ht.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,pt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ae.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&ce(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always((function(){f.always((function(){o.unqueued--,S.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[r],lt.test(a)){if(delete t[r],i=i||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=Z.get(e,"display")),"none"===(u=S.css(e,"display"))&&(c?u=c:(pe([e],!0),c=e.style.display||c,u=S.css(e,"display"),pe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(e,"float")&&(l||(f.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:c}),i&&(g.hidden=!m),m&&pe([e],!0),f.done((function(){for(r in m||pe([e]),Z.remove(e,"fxshow"),p)S.style(e,r,p[r])}))),l=pt(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=S.isEmptyObject(e),i=S.speed(t,n,r),o=function(){var t=ht(this,S.extend({},e),i);(a||Z.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=S.timers,o=Z.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&&ct.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,a)}})),S.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),ot=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){st||(st=!0,ut())},S.fx.stop=function(){st=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var a=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(a)}}))},function(){var e=_.createElement("input"),t=_.createElement("select").appendChild(_.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=_.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var mt,gt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return H(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?S.prop(e,t,n):(1===i&&S.isXMLDoc(e)||(a=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(L);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||S.find.attr;gt[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=gt[o],gt[o]=a,a=null!=n(e,t,r)?o:null,gt[o]=i),a}}));var yt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function _t(e){return(e.match(L)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}S.fn.extend({prop:function(e,t){return H(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&S.isXMLDoc(e)||(t=S.propFix[t]||t,a=S.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,r,a,i,o,s,l=0;if(y(e))return this.each((function(t){S(this).addClass(e.call(this,t,bt(this)))}));if((t=wt(e)).length)for(;n=this[l++];)if(a=bt(n),r=1===n.nodeType&&" "+_t(a)+" "){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(s=_t(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,i,o,s,l=0;if(y(e))return this.each((function(t){S(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(a=bt(n),r=1===n.nodeType&&" "+_t(a)+" "){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(s=_t(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,a,i,o;if(r)for(a=0,i=S(this),o=wt(e);t=o[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+_t(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=y(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,S(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=S.map(a,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=S.valHooks[a.type]||S.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(xt,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:_t(S.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?i+1:a.length;for(r=i<0?l:o?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=S.makeArray(t),o=a.length;o--;)((r=a[o]).selected=S.inArray(S.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var kt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,a){var i,o,s,l,c,u,d,f,h=[n||_],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(o=f=s=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!kt.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[S.expando]?e:new S.Event(m,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),d=S.event.special[m]||{},a||!d.trigger||!1!==d.trigger.apply(n,t))){if(!a&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,kt.test(l+m)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||_)&&h.push(s.defaultView||s.parentWindow||r)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)f=o,e.type=i>1?l:d.bindType||m,(u=(Z.get(o,"events")||Object.create(null))[e.type]&&Z.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&J(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,a||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!J(n)||c&&y(n[m])&&!v(n)&&((s=n[c])&&(n[c]=null),S.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,St),n[m](),e.isPropagationStopped()&&f.removeEventListener(m,St),S.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),g.focusin||S.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){S.event.simulate(t,e.target,S.event.fix(e))};S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=Z.access(r,t);a||r.addEventListener(e,n,!0),Z.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=Z.access(r,t)-1;a?Z.access(r,t,a):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var Dt=r.location,Tt={guid:Date.now()},It=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Nt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,r){var a;if(Array.isArray(t))S.each(t,(function(t,a){n||Ct.test(e)?r(e,a):Et(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(a in t)Et(e+"["+a+"]",t[a],n,r)}S.param=function(e,t){var n,r=[],a=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){a(this.name,this.value)}));else for(n in e)Et(n,e[n],t,a);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Mt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var jt=/%20/g,Pt=/#.*$/,Ft=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,At=/^(?:GET|HEAD)$/,Lt=/^\/\//,Rt={},Bt={},qt="*/".concat("*"),Vt=_.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(L)||[];if(y(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var a={},i=e===Bt;function o(s){var l;return a[s]=!0,S.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||a[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Ht(e,t){var n,r,a=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Vt.href=Dt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,S.ajaxSettings),t):Ht(S.ajaxSettings,e)},ajaxPrefilter:Yt(Rt),ajaxTransport:Yt(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,a,i,o,s,l,c,u,d,f,p=S.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?S(h):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=p.statusCode||{},b={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=$t.exec(i);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),D(0,t),this}};if(g.promise(k),p.url=((e||p.url||Dt.href)+"").replace(Lt,Dt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=_.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),zt(Rt,p,t,k),c)return k;for(d in(u=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!At.test(p.type),a=p.url.replace(Pt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(jt,"+")):(f=p.url.slice(a.length),p.data&&(p.processData||"string"==typeof p.data)&&(a+=(It.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(a=a.replace(Ft,"$1"),f=(It.test(a)?"&":"?")+"_="+Tt.guid+++f),p.url=a+f),p.ifModified&&(S.lastModified[a]&&k.setRequestHeader("If-Modified-Since",S.lastModified[a]),S.etag[a]&&k.setRequestHeader("If-None-Match",S.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,k,p)||c))return k.abort();if(x="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),n=zt(Bt,p,t,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,p]),c)return k;p.async&&p.timeout>0&&(s=r.setTimeout((function(){k.abort("timeout")}),p.timeout));try{c=!1,n.send(b,D)}catch(e){if(c)throw e;D(-1,e)}}else D(-1,"No Transport");function D(e,t,o,l){var d,f,_,b,w,x=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,i=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var r,a,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==l[0]&&l.unshift(i),n[i]}(p,k,o)),!d&&S.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),b=function(e,t,n,r){var a,i,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=c[l+" "+i]||c["* "+i]))for(a in c)if((s=a.split(" "))[1]===i&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(p,b,k,d),d?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(S.lastModified[a]=w),(w=k.getResponseHeader("etag"))&&(S.etag[a]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=b.state,f=b.data,d=!(_=b.error))):(_=x,!e&&x||(x="error",e<0&&(e=0))),k.status=e,k.statusText=(t||x)+"",d?g.resolveWith(h,[f,x,k]):g.rejectWith(h,[k,x,_]),k.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?f:_]),y.fireWith(h,[k,x]),u&&(m.trigger("ajaxComplete",[k,p]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,a){return y(n)&&(a=a||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:a,data:n,success:r},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Gt=S.ajaxSettings.xhr();g.cors=!!Gt&&"withCredentials"in Gt,g.ajax=Gt=!!Gt,S.ajaxTransport((function(e){var t,n;if(g.cors||Gt&&!e.crossDomain)return{send:function(a,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Qt=[],Jt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||S.expando+"_"+Tt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var a,i,o,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+a):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||S.error(a+" was not called"),o[0]},e.dataTypes[0]="json",i=r[a],r[a]=function(){o=arguments},n.always((function(){void 0===i?S(r).removeProp(a):r[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(a)),o&&y(i)&&i(o[0]),o=i=void 0})),"script"})),g.createHTMLDocument=((Ut=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(r)):t=_),i=!n&&[],(a=M.exec(e))?[t.createElement(a[1])]:(a=ke([e],t,i),i&&i.length&&S(i).remove(),S.merge([],a.childNodes)));var r,a,i},S.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=_t(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&S.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,o.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,c=S.css(e,"position"),u=S(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(o=(r=u.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),y(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),a.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-S.css(r,"marginTop",!0),left:t.left-a.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||oe}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return H(this,(function(e,r,a){var i;if(v(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=Ge(g.pixelPosition,(function(e,n){if(n)return n=We(e,t),Ve.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return H(this,(function(t,n,a){var i;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?S.css(t,n,s):S.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.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)}}),S.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,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=O,S.isFunction=y,S.isWindow=v,S.camelCase=Q,S.type=x,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var Zt=r.jQuery,Xt=r.$;return S.noConflict=function(e){return r.$===S&&(r.$=Xt),e&&r.jQuery===S&&(r.jQuery=Zt),S},void 0===a&&(r.jQuery=r.$=S),S}))},483:(e,t,n)=>{e.exports=function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var i=void 0,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,r){(function(e){"use strict";var n,r,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,o=new a(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function a(){}var i={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return i.reject(e,t)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function a(t){n||(n=!0,i.resolve(e,t))}var o=h((function(){t(a,r)}));"error"===o.status&&r(o.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(a);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var a=-1,o=e.queue.length;++a<o;)e.queue[a].callFulfilled(t)}return e},i.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(a),e)},c.reject=function(e){var t=new this(a);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,c=new this(a);++l<n;)u(e[l],l);return c;function u(e,a){t.resolve(e).then((function(e){o[a]=e,++s!==n||r||(r=!0,i.resolve(c,o))}),(function(e){r||(r=!0,i.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,o=!1;if(!r)return this.resolve([]);for(var s=-1,l=new this(a);++s<r;)n=e[s],t.resolve(n).then((function(e){o||(o=!0,i.resolve(l,e))}),(function(e){o||(o=!0,i.reject(l,e))}));return l}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var o=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function c(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",f=void 0,p={},h=Object.prototype.toString,m="readonly",g="readwrite";function y(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}function v(e){return"boolean"==typeof f?o.resolve(f):function(e){return new o((function(t){var n=e.transaction(d,g),r=i([""]);n.objectStore(d).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return f=e}))}function _(e){var t=p[e.name],n={};n.promise=new o((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function b(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function w(e,t){var n=p[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function x(e,t){return new o((function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);_(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var o=a.open.apply(a,i);t&&(o.onupgradeneeded=function(t){var n=o.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(d)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),o.onerror=function(e){e.preventDefault(),r(o.error)},o.onsuccess=function(){n(o.result),b(e)}}))}function k(e){return x(e,!1)}function S(e){return x(e,!0)}function D(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,a=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),a||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function T(e){return i([y(atob(e.data))],{type:e.type})}function I(e){return e&&e.__local_forage_encoded_blob}function C(e){var t=this,n=t._initReady().then((function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function N(e,t,n,r){void 0===r&&(r=1);try{var a=e.db.transaction(e.storeName,t);n(null,a)}catch(a){if(r>0&&(!e.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return o.resolve().then((function(){if(!e.db||"NotFoundError"===a.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),S(e)})).then((function(){return function(e){_(e);for(var t=p[e.name],n=t.forages,r=0;r<n.length;r++){var a=n[r];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,k(e).then((function(t){return e.db=t,D(e)?S(e):t})).then((function(r){e.db=t.db=r;for(var a=0;a<n.length;a++)n[a]._dbInfo.db=r})).catch((function(t){throw w(e,t),t}))}(e).then((function(){N(e,t,n,r-1)}))})).catch(n);n(a)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var a=p[n.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},p[n.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=C);var i=[];function s(){return o.resolve()}for(var l=0;l<a.forages.length;l++){var c=a.forages[l];c!==t&&i.push(c._initReady().catch(s))}var u=a.forages.slice(0);return o.all(i).then((function(){return n.db=a.db,k(n)})).then((function(e){return n.db=e,D(n,t._defaultConfig.version)?S(n):e})).then((function(e){n.db=a.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var i=u[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))},_support:function(){try{if(!a||!a.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){N(n._dbInfo,m,(function(a,i){if(a)return r(a);try{var o=i.objectStore(n._dbInfo.storeName).openCursor(),s=1;o.onsuccess=function(){var n=o.result;if(n){var r=n.value;I(r)&&(r=T(r));var a=e(r,n.key,s++);void 0!==a?t(a):n.continue()}else t()},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){N(n._dbInfo,m,(function(a,i){if(a)return r(a);try{var o=i.objectStore(n._dbInfo.storeName).get(e);o.onsuccess=function(){var e=o.result;void 0===e&&(e=null),I(e)&&(e=T(e)),t(e)},o.onerror=function(){r(o.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var a=new o((function(n,a){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===h.call(t)?v(i.db).then((function(e){return e?t:(n=t,new o((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){N(r._dbInfo,g,(function(i,o){if(i)return a(i);try{var s=o.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);o.oncomplete=function(){void 0===t&&(t=null),n(t)},o.onabort=o.onerror=function(){var e=l.error?l.error:l.transaction.error;a(e)}}catch(e){a(e)}}))})).catch(a)}));return s(a,n),a},removeItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){N(n._dbInfo,g,(function(a,i){if(a)return r(a);try{var o=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(o.error)},i.onabort=function(){var e=o.error?o.error:o.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){N(t._dbInfo,g,(function(r,a){if(r)return n(r);try{var i=a.objectStore(t._dbInfo.storeName).clear();a.oncomplete=function(){e()},a.onabort=a.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){N(t._dbInfo,m,(function(r,a){if(r)return n(r);try{var i=a.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new o((function(t,r){e<0?t(null):n.ready().then((function(){N(n._dbInfo,m,(function(a,i){if(a)return r(a);try{var o=i.objectStore(n._dbInfo.storeName),s=!1,l=o.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){N(t._dbInfo,m,(function(r,a){if(r)return n(r);try{var i=a.objectStore(t._dbInfo.storeName).openKeyCursor(),o=[];i.onsuccess=function(){var t=i.result;t?(o.push(t.key),t.continue()):e(o)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var l=e.name===n.name&&i._dbInfo.db?o.resolve(i._dbInfo.db):k(e).then((function(t){var n=p[e.name],r=n.forages;n.db=t;for(var a=0;a<r.length;a++)r[a]._dbInfo.db=t;return t}));r=e.storeName?l.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;_(e);var r=p[e.name],i=r.forages;t.close();for(var s=0;s<i.length;s++){var l=i[s];l._dbInfo.db=null,l._dbInfo.version=n}return new o((function(t,r){var i=a.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,b(n._dbInfo)}})).catch((function(t){throw(w(e,t)||o.resolve()).catch((function(){})),t}))}})):l.then((function(t){_(e);var n=p[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;return new o((function(t,n){var r=a.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)b(r[t]._dbInfo)})).catch((function(t){throw(w(e,t)||o.resolve()).catch((function(){})),t}))}))}else r=o.reject("Invalid arguments");return s(r,t),r}};var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=/^~~local_forage_type~([^~]+)~/,j="__lfsc__:",P=j.length,F="arbf",$="blob",A="si08",L="ui08",R="uic8",B="si16",q="si32",V="ur16",Y="ui32",z="fl32",H="fl64",W=P+F.length,G=Object.prototype.toString;function U(e){var t,n,r,a,i,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c=new ArrayBuffer(o),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=M.indexOf(e[t]),r=M.indexOf(e[t+1]),a=M.indexOf(e[t+2]),i=M.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|a>>2,u[l++]=(3&a)<<6|63&i;return c}function Q(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=M[n[t]>>2],r+=M[(3&n[t])<<4|n[t+1]>>4],r+=M[(15&n[t+1])<<2|n[t+2]>>6],r+=M[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var J={serialize:function(e,t){var n="";if(e&&(n=G.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===G.call(e.buffer))){var r,a=j;e instanceof ArrayBuffer?(r=e,a+=F):(r=e.buffer,"[object Int8Array]"===n?a+=A:"[object Uint8Array]"===n?a+=L:"[object Uint8ClampedArray]"===n?a+=R:"[object Int16Array]"===n?a+=B:"[object Uint16Array]"===n?a+=V:"[object Int32Array]"===n?a+=q:"[object Uint32Array]"===n?a+=Y:"[object Float32Array]"===n?a+=z:"[object Float64Array]"===n?a+=H:t(new Error("Failed to get type for BinaryArray"))),t(a+Q(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+Q(this.result);t("__lfsc__:blob"+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,P)!==j)return JSON.parse(e);var t,n=e.substring(W),r=e.substring(P,W);if(r===$&&E.test(n)){var a=n.match(E);t=a[1],n=n.substring(a[0].length)}var o=U(n);switch(r){case F:return o;case $:return i([o],{type:t});case A:return new Int8Array(o);case L:return new Uint8Array(o);case R:return new Uint8ClampedArray(o);case B:return new Int16Array(o);case V:return new Uint16Array(o);case q:return new Int32Array(o);case Y:return new Uint32Array(o);case z:return new Float32Array(o);case H:return new Float64Array(o);default:throw new Error("Unkown type: "+r)}},stringToBuffer:U,bufferToString:Q};function K(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Z(e,t,n,r,a,i){e.executeSql(n,r,a,(function(e,o){o.code===o.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,o):K(e,t,(function(){e.executeSql(n,r,a,i)}),i)}),i):i(e,o)}),i)}function X(e,t,n,r){var a=this;e=c(e);var i=new o((function(i,o){a.ready().then((function(){void 0===t&&(t=null);var s=t,l=a._dbInfo;l.serializer.serialize(t,(function(t,c){c?o(c):l.db.transaction((function(n){Z(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){o(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(X.apply(a,[e,s,n,r-1]));o(t)}}))}))})).catch(o)}));return s(i,n),i}function ee(e){return new o((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var a=[],i=0;i<r.rows.length;i++)a.push(r.rows.item(i).name);t({db:e,storeNames:a})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var te={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var a=new o((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(a){K(a,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=J,a},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){var a=n._dbInfo;a.db.transaction((function(n){Z(n,a,"SELECT * FROM "+a.storeName,[],(function(n,r){for(var i=r.rows,o=i.length,s=0;s<o;s++){var l=i.item(s),c=l.value;if(c&&(c=a.serializer.deserialize(c)),void 0!==(c=e(c,l.key,s+1)))return void t(c)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){var a=n._dbInfo;a.db.transaction((function(n){Z(n,a,"SELECT * FROM "+a.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=a.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return X.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){var a=n._dbInfo;a.db.transaction((function(n){Z(n,a,"DELETE FROM "+a.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){var a=n._dbInfo;a.db.transaction((function(n){Z(n,a,"SELECT key FROM "+a.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],a=0;a<n.rows.length;a++)r.push(n.rows.item(a).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,a=this;return s(r=e.name?new o((function(t){var r;r=e.name===n.name?a._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(ee(r))})).then((function(e){return new o((function(t,n){e.db.transaction((function(r){function a(e){return new o((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],s=0,l=e.storeNames.length;s<l;s++)i.push(a(e.storeNames[s]));o.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):o.reject("Invalid arguments"),t),r}};function ne(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function re(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var ae={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=ne(e,this._defaultConfig),re()?(this._dbInfo=t,t.serializer=J,o.resolve()):o.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,a=r.length,i=localStorage.length,o=1,s=0;s<i;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(a),o++)))return c}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var a=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new o((function(a,i){var o=r._dbInfo;o.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(o.keyPrefix+e,t),a(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return s(a,n),a},removeItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],a=0;a<n;a++){var i=localStorage.key(a);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,a=this;return s(r=e.name?new o((function(t){e.storeName?t(ne(e,a._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):o.reject("Invalid arguments"),t),r}},ie=function(e,t){for(var n=e.length,r=0;r<n;){if((a=e[r])===(i=t)||"number"==typeof a&&"number"==typeof i&&isNaN(a)&&isNaN(i))return!0;r++}var a,i;return!1},oe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},se={},le={},ce={INDEXEDDB:O,WEBSQL:te,LOCALSTORAGE:ae},ue=[ce.INDEXEDDB._driver,ce.WEBSQL._driver,ce.LOCALSTORAGE._driver],de=["dropInstance"],fe=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(de),pe={description:"",driver:ue.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function he(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function me(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(oe(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var ge=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ce)if(ce.hasOwnProperty(n)){var r=ce[n],a=r._driver;this[n]=a,se[a]||this.defineDriver(r)}this._defaultConfig=me({},pe),this._config=me({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new o((function(t,n){try{var r=e._driver,a=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(a);for(var i=fe.concat("_initStorage"),l=0,c=i.length;l<c;l++){var u=i[l];if((!ie(de,u)||e[u])&&"function"!=typeof e[u])return void n(a)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=o.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=de.length;n<r;n++){var a=de[n];e[a]||(e[a]=t(a))}}();var d=function(n){se[r]&&console.info("Redefining LocalForage driver: "+r),se[r]=e,le[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=se[e]?o.resolve(se[e]):o.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=o.resolve(J);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;oe(e)||(e=[e]);var a=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function s(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}var c=null!==this._driverSet?this._driverSet.catch((function(){return o.resolve()})):o.resolve();return this._driverSet=c.then((function(){var e=a[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var a=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(a).then(s).catch(n)}i();var l=new Error("No available storage method found.");return r._driverSet=o.reject(l),r._driverSet}()}}(a)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=o.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!le[e]},e.prototype._extend=function(e){me(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];this.supports(a)&&t.push(a)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=fe.length;e<t;e++)he(this,fe[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=ge},{3:3}]},{},[4])(4)},704:function(e,t,n){var r,a,i,o,s;o=this,s=function(e){var t=!1,n=!1,r=!1,a=!1,i="escape years months weeks days hours minutes seconds milliseconds general".split(" "),o=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function s(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function l(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+v(T(t).sort(),(function(e){return e+":"+t[e]})).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function u(e,t,i){var o,s,d,f=t.useToLocaleString,p=t.useGrouping,h=p&&t.grouping.slice(),m=t.maximumSignificantDigits,g=t.minimumIntegerDigits||1,y=t.fractionDigits||0,v=t.groupingSeparator,_=t.decimalSeparator;if(f&&i){var b,w={minimumIntegerDigits:g,useGrouping:p};return y&&(w.maximumFractionDigits=y,w.minimumFractionDigits=y),m&&e>0&&(w.maximumSignificantDigits=m),r?(a||((b=D({},t)).useGrouping=!1,b.decimalSeparator=".",e=parseFloat(u(e,b),10)),c(i,w).format(e)):(n||((b=D({},t)).useGrouping=!1,b.decimalSeparator=".",e=parseFloat(u(e,b),10)),e.toLocaleString(i,w))}var x=(m?e.toPrecision(m+1):e.toFixed(y+1)).split("e");d=x[1]||"",s=(x=x[0].split("."))[1]||"";var k=(o=x[0]||"").length,S=s.length,T=k+S,I=o+s;(m&&T===m+1||!m&&S===y+1)&&((I=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),r=!1):(parseInt(t[n],10)<5&&(r=!1),t[n]="0"),n+=1;return r&&t.push("1"),t.reverse().join("")}(I)).length===T+1&&(k+=1),S&&(I=I.slice(0,-1)),o=I.slice(0,k),s=I.slice(k)),m&&(s=s.replace(/0*$/,""));var C=parseInt(d,10);C>0?s.length<=C?(o+=s+=l(C-s.length),s=""):(o+=s.slice(0,C),s=s.slice(C)):C<0&&(s=l(Math.abs(C)-o.length)+o+s,o="0"),m||((s=s.slice(0,y)).length<y&&(s+=l(y-s.length)),o.length<g&&(o=l(g-o.length)+o));var N,O="";if(p)for(x=o;x.length;)h.length&&(N=h.shift()),O&&(O=v+O),O=x.slice(-N)+O,x=x.slice(0,-N);else O=o;return s&&(O=O+_+s),O}function d(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}function f(e,t){var n=[];return y(T(t),(function(r){if("_durationLabels"===r.slice(0,15)){var a=r.slice(15).toLowerCase();y(T(t[r]),(function(i){i.slice(0,1)===e&&n.push({type:a,key:i,label:t[r][i]})}))}})),n}c.cache={};var p={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e,t){var n,r=0,a=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});r<a;){if(t(e[r]))return e[r];r+=1}}function y(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function v(e,t){var n=0,r=e.length,a=[];if(!e||!r)return a;for(;n<r;)a[n]=t(e[n],n),n+=1;return a}function _(e,t){return v(e,(function(e){return e[t]}))}function b(e){var t=[];return y(e,(function(e){e&&t.push(e)})),t}function w(e){var t=[];return y(e,(function(e){g(t,e)||t.push(e)})),t}function x(e,t){var n=[];return y(e,(function(e){y(t,(function(t){e===t&&n.push(e)}))})),w(n)}function k(e,t){var n=[];return y(e,(function(r,a){if(!t(r))return n=e.slice(a),!1})),n}function S(e,t){return k(e.slice().reverse(),t).reverse()}function D(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function T(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function I(e,t){var n=0,r=e.length;if(!e||!r)return!1;for(;n<r;){if(!0===t(e[n],n))return!0;n+=1}return!1}function C(e){var t=[];return y(e,(function(e){t=t.concat(e)})),t}function N(e){return"3.6"===e(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}function O(e){var t=!0;return!!((t=(t=(t=t&&"1"===e(1,"en",{minimumIntegerDigits:1}))&&"01"===e(1,"en",{minimumIntegerDigits:2}))&&"001"===e(1,"en",{minimumIntegerDigits:3}))&&(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===e(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===e(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===e(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumSignificantDigits:1}))&&"100"===e(99.99,"en",{maximumSignificantDigits:2}))&&"100"===e(99.99,"en",{maximumSignificantDigits:3}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:4}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:5}))&&(t=(t=t&&"1,000"===e(1e3,"en",{useGrouping:!0}))&&"1000"===e(1e3,"en",{useGrouping:!1})))}function M(){var e,t=[].slice.call(arguments),n={};if(y(t,(function(t,r){if(!r){if(!h(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?m(t)&&D(n,t):n.precision=t:n.template=t})),!e||!e.length)return[];n.returnMomentTypes=!0;var r=v(e,(function(e){return e.format(n)})),a=x(i,w(_(C(r),"type"))),o=n.largest;return o&&(a=a.slice(0,o)),n.returnMomentTypes=!1,n.outputTypes=a,v(e,(function(e){return e.format(n)}))}function E(){var n=[].slice.call(arguments),a=D({},this.format.defaults),l=this.asMilliseconds(),c=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(l=0,c=0);var C=l<0,N=e.duration(Math.abs(l),"milliseconds"),O=e.duration(Math.abs(c),"months");y(n,(function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?m(e)&&D(a,e):a.precision=e:a.template=e}));var M={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},E={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};a.types=i;var j=function(e){return g(i,(function(t){return E[t].test(e)}))},P=new RegExp(v(i,(function(e){return E[e].source})).join("|"),"g");a.duration=this;var F="function"==typeof a.template?a.template.apply(a):a.template,$=a.outputTypes,A=a.returnMomentTypes,L=a.largest,R=[];$||(h(a.stopTrim)&&(a.stopTrim=a.stopTrim.join("")),a.stopTrim&&y(a.stopTrim.match(P),(function(e){var t=j(e);"escape"!==t&&"general"!==t&&R.push(t)})));var B=e.localeData();B||(B={}),y(T(p),(function(e){"function"!=typeof p[e]?B["_"+e]||(B["_"+e]=p[e]):B[e]||(B[e]=p[e])})),y(T(B._durationTimeTemplates),(function(e){F=F.replace("_"+e+"_",B._durationTimeTemplates[e])}));var q=a.userLocale||e.locale(),V=a.useLeftUnits,Y=a.usePlural,z=a.precision,H=a.forceLength,W=a.useGrouping,G=a.trunc,U=a.useSignificantDigits&&z>0,Q=U?a.precision:0,J=Q,K=a.minValue,Z=!1,X=a.maxValue,ee=!1,te=a.useToLocaleString,ne=a.groupingSeparator,re=a.decimalSeparator,ae=a.grouping;te=te&&(t||r);var ie=a.trim;h(ie)&&(ie=ie.join(" ")),null===ie&&(L||X||U)&&(ie="all"),null!==ie&&!0!==ie&&"left"!==ie&&"right"!==ie||(ie="large"),!1===ie&&(ie="");var oe=function(e){return e.test(ie)},se=/large/,le=/small/,ce=/both/,ue=/mid/,de=/^all|[^sm]all/,fe=/final/,pe=L>0||I([se,ce,de],oe),he=I([le,ce,de],oe),me=I([ue,de],oe),ge=I([fe,de],oe),ye=v(F.match(P),(function(e,t){var n=j(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&R.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(E.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),ve={index:0,length:0,token:"",text:"",type:null},_e=[];V&&ye.reverse(),y(ye,(function(e){if(e.type)return(ve.type||ve.text)&&_e.push(ve),void(ve=e);V?ve.text=e.token+ve.text:ve.text+=e.token})),(ve.type||ve.text)&&_e.push(ve),V&&_e.reverse();var be=x(i,w(b(_(_e,"type"))));if(!be.length)return _(_e,"text").join("");be=v(be,(function(e,t){var n,r=t+1===be.length,i=!t;n="years"===e||"months"===e?O.as(e):N.as(e);var o=Math.floor(n),s=n-o,l=g(_e,(function(t){return e===t.type}));return i&&X&&n>X&&(ee=!0),r&&K&&Math.abs(a.duration.as(e))<K&&(Z=!0),i&&null===H&&l.length>1&&(H=!0),N.subtract(o,e),O.subtract(o,e),{rawValue:n,wholeValue:o,decimalValue:r?s:0,isSmallest:r,isLargest:i,type:e,tokenLength:l.length}}));var we=G?Math.floor:Math.round,xe=function(e,t){var n=Math.pow(10,t);return we(e*n)/n},ke=!1,Se=!1,De=function(e,t){var n={useGrouping:W,groupingSeparator:ne,decimalSeparator:re,grouping:ae,useToLocaleString:te};return U&&(Q<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=Q,e.significantDigits=Q)),ee&&!Se&&(e.isLargest?(e.wholeValue=X,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Z&&!Se&&(e.isSmallest?(e.wholeValue=K,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?z<0?e.value=xe(e.wholeValue,z):0===z?e.value=we(e.wholeValue+e.decimalValue):U?(e.value=G?xe(e.rawValue,Q-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(Q-=e.wholeValue.toString().length)):(n.fractionDigits=z,e.value=G?e.wholeValue+xe(e.decimalValue,z):e.wholeValue+e.decimalValue):U&&e.wholeValue?(e.value=Math.round(xe(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),Q-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(H||ke)&&(n.minimumIntegerDigits=e.tokenLength,Se&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!ke&&(e.value>0||""===ie||g(R,e.type)||g($,e.type))&&(ke=!0),e.formattedValue=u(e.value,n,q),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=u(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=u(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((be=b(be=v(be,De))).length>1){var Te=function(e){return g(be,(function(t){return t.type===e}))},Ie=function(e){var t=Te(e.type);t&&y(e.targets,(function(e){var n=Te(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),Se=!0)}))};y(o,Ie)}return Se&&(ke=!1,Q=J,be=b(be=v(be,De))),!$||ee&&!a.trim?(pe&&(be=k(be,(function(e){return!e.isSmallest&&!e.wholeValue&&!g(R,e.type)}))),L&&be.length&&(be=be.slice(0,L)),he&&be.length>1&&(be=S(be,(function(e){return!e.wholeValue&&!g(R,e.type)&&!e.isLargest}))),me&&(be=b(be=v(be,(function(e,t){return t>0&&t<be.length-1&&!e.wholeValue?null:e})))),!ge||1!==be.length||be[0].wholeValue||!G&&be[0].isSmallest&&be[0].rawValue<K||(be=[])):be=b(be=v(be,(function(e){return g($,(function(t){return e.type===t}))?e:null}))),A?be:(y(_e,(function(e){var t=M[e.type],n=g(be,(function(t){return t.type===e.type}));if(t&&n){var r=n.formattedValueEn.split(".");r[0]=parseInt(r[0],10),r[1]?r[1]=parseFloat("0."+r[1],10):r[1]=null;var a=B.durationPluralKey(t,r[0],r[1]),i=f(t,B),o=!1,l={};y(B._durationLabelTypes,(function(t){var n=g(i,(function(e){return e.type===t.type&&e.key===a}));n&&(l[n.type]=n.label,s(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),o=!0))})),Y&&!o&&(i.sort(d),y(i,(function(t){return l[t.type]===t.label?!s(e.text,t.label)&&void 0:s(e.text,t.label)?(e.text=e.text.replace(t.label,l[t.type]),!1):void 0})))}})),(_e=v(_e,(function(e){if(!e.type)return e.text;var t=g(be,(function(t){return t.type===e.type}));if(!t)return"";var n="";return V&&(n+=e.text),(C&&ee||!C&&Z)&&(n+="< ",ee=!1,Z=!1),(C&&Z||!C&&ee)&&(n+="> ",ee=!1,Z=!1),C&&(t.value>0||""===ie||g(R,t.type)||g($,t.type))&&(n+="-",C=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,V||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function j(){var e=this.duration,t=function(t){return e._data[t]},n=g(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function P(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=M,e.duration.fn.format=E,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:j,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",p)}var F=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&O(F),n=t&&N(F);var $=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=O($),a=r&&N($),P(e),P},a=[n(381)],void 0===(i="function"==typeof(r=s)?r.apply(t,a):r)||(e.exports=i),o&&(o.momentDurationFormatSetup=o.moment?s(o.moment):s)},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return St(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],v=!1;function _(e,t){var n,r,a;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=h(t)),l(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)l(a=t[r=y[n]])||(e[r]=a);return e}function b(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,i,s,l=[];for(i=0;i<arguments.length;i++){if(a="","object"==typeof arguments[i]){for(s in a+="\n["+i+"] ",arguments[0])o(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];l.push(a)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,D={};function T(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(x(t),D[e]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=f({},e);for(n in t)o(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)o(e,n)&&!o(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function N(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};function O(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},P={};function F(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(P[e]=a),t&&(P[t[0]]=function(){return O(a.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=A(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,a=e.match(M);for(t=0,n=a.length;t<n;t++)P[a[t]]?a[t]=P[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=I(a[r])?a[r].call(t,e):a[r];return i}}(t),j[t](e)):e.localeData().invalidDate()}function A(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(E.lastIndex=0;n>=0&&E.test(e);)e=e.replace(E,r),E.lastIndex=0,n-=1;return e}var L={};function R(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function B(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function q(e){var t,n,r={};for(n in e)o(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var V={};function Y(e,t){V[e]=t}function z(e){return e%4==0&&e%100!=0||e%400==0}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=H(t)),n}function G(e,t){return function(n){return null!=n?(Q(this,e,n),r.updateOffset(this,t),this):U(this,e)}}function U(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&z(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,K=/\d/,Z=/\d\d/,X=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){J[e]=I(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return o(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ge={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=W(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function ve(e,t){ye(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function _e(e,t,n){null!=t&&o(ge,e)&&ge[e](t,n._a,n,e)}var be;function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?z(e)?29:28:31-r%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),R("month","M"),Y("month",8),pe("M",ne),pe("MM",ne,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=W(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[1]=a:h(n).invalidMonth=e}));var xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=fe,Te=fe;function Ie(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=be.call(this._shortMonthsParse,o))?a:null:-1!==(a=be.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=be.call(this._shortMonthsParse,o))||-1!==(a=be.call(this._longMonthsParse,o))?a:null:-1!==(a=be.call(this._longMonthsParse,o))||-1!==(a=be.call(this._shortMonthsParse,o))?a:null}function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(Ce(this,e),r.updateOffset(this,!0),this):U(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=me(r[t]),a[t]=me(a[t]);for(t=0;t<24;t++)i[t]=me(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Me(e){return z(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),R("year","y"),Y("year",1),pe("Y",ce),pe("YY",ne,Z),pe("YYYY",oe,ee),pe("YYYYY",se,te),pe("YYYYYY",se,te),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):W(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var Ee=G("FullYear",!0);function je(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function Pe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var r=7+t-n;return-(7+Pe(e,0,r).getUTCDay()-t)%7+r-1}function $e(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+Fe(e,r,a);return s<=0?o=Me(i=e-1)+s:s>Me(e)?(i=e+1,o=s-Me(e)):(i=e,o=s),{year:i,dayOfYear:o}}function Ae(e,t,n){var r,a,i=Fe(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Le(a=e.year()-1,t,n):o>Le(e.year(),t,n)?(r=o-Le(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Le(e,t,n){var r=Fe(e,t,n),a=Fe(e+1,t,n);return(Me(e)-r+a)/7}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),Y("week",5),Y("isoWeek",5),pe("w",ne),pe("ww",ne,Z),pe("W",ne),pe("WW",ne,Z),ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=W(e)}));function Re(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,n,r){t[r]=W(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=fe,ze=fe,He=fe;function We(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=be.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=be.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=be.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=be.call(this._weekdaysParse,o))||-1!==(a=be.call(this._shortWeekdaysParse,o))||-1!==(a=be.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=be.call(this._shortWeekdaysParse,o))||-1!==(a=be.call(this._weekdaysParse,o))||-1!==(a=be.call(this._minWeekdaysParse,o))?a:null:-1!==(a=be.call(this._minWeekdaysParse,o))||-1!==(a=be.call(this._weekdaysParse,o))||-1!==(a=be.call(this._shortWeekdaysParse,o))?a:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),a=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ue(){return this.hours()%12||12}function Qe(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ue),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ue.apply(this)+O(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ue.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),R("hour","h"),Y("hour",13),pe("a",Je),pe("A",Je),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,Z),pe("hh",ne,Z),pe("kk",ne,Z),pe("hmm",re),pe("hmmss",ae),pe("Hmm",re),pe("Hmmss",ae),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=W(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=W(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(a))}));var Ke=G("Hours",!0);var Ze,Xe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:ke,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ve,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var n=null;if(void 0===et[t]&&e&&e.exports)try{n=Ze._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),it(n)}catch(e){et[t]=null}return et[t]}function it(e,t){var n;return e&&((n=l(t)?st(e):ot(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function ot(e,t){if(null!==t){var n,r=Xe;if(t.abbr=e,null!=et[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new N(C(r,t)),tt[e]&&tt[e].forEach((function(e){ot(e.name,e.config)})),it(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=rt(e[i]).split("-")).length,n=(n=rt(e[i+1]))?n.split("-"):null;t>0;){if(r=at(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(a,n)>=t-1)break;t--}i++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,a,i,o,s=e._i,l=ct.exec(s)||ut.exec(s);if(l){for(h(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){a=ft[t][0],r=!1!==ft[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[3])){i=(l[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!dt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),xt(e)}else e._isValid=!1}function vt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _t(e){var t,n,r,a,i,o,s,l,c=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],a=c[2],i=c[5],o=c[6],s=c[7],l=[vt(n),ke.indexOf(r),parseInt(a,10),parseInt(i,10),parseInt(o,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(c[8],c[9],c[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,a,i,o,s=[];if(!e._d){for(a=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=bt(t.GG,e._a[0],Ae(Dt(),1,4).year),r=bt(t.W,1),((a=bt(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Ae(Dt(),i,o),n=bt(t.gg,e._a[0],c.year),r=bt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>Le(n,i,o)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=$e(n,r,a,i,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=bt(e._a[0],a[0]),(e._dayOfYear>Me(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Pe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:je).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,a,i,o,s,l=""+e._i,c=l.length,u=0;for(a=A(e._f,e._locale).match(M)||[],t=0;t<a.length;t++)i=a[t],(n=(l.match(he(i,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),P[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),lt(e)}else _t(e);else yt(e)}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(lt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],xt(t),m(t)&&(o=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));f(e,n||t)}(e):n?xt(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):i(t)?function(e){if(!e._d){var t=q(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function St(e,t,n,r,o){var l,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=r,(l=new b(lt(kt(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Dt(e,t,n,r){return St(e,t,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Tt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),It=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Ct(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=q(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(o(e,t)&&(-1===be.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Nt.length;++n)if(e[Nt[n]]){if(r)return!1;parseFloat(e[Nt[n]])!==W(e[Nt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Mt(e){return e instanceof Ot}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}jt("Z",":"),jt("ZZ",""),pe("Z",de),pe("ZZ",de),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(de,e)}));var Pt=/([\+\-]|\d\d)/gi;function Ft(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Pt)||["-",0,0])[1]+W(n[2]))?0:"+"===n[0]?r:-r}function $t(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(w(e)||u(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Dt(e).local()}function At(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Rt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,r,a,i,s,l,u=e,d=null;return Mt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=Rt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:W(d[2])*n,h:W(d[3])*n,m:W(d[4])*n,s:W(d[5])*n,ms:W(Et(1e3*d[6]))*n}):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,u={y:Vt(d[2],n),M:Vt(d[3],n),w:Vt(d[4],n),d:Vt(d[5],n),h:Vt(d[6],n),m:Vt(d[7],n),s:Vt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=Dt(u.from),s=Dt(u.to),a=i.isValid()&&s.isValid()?(s=$t(s,i),i.isBefore(s)?l=Yt(i,s):((l=Yt(s,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=a.milliseconds,u.M=a.months),r=new Ot(u),Mt(e)&&o(e,"_locale")&&(r._locale=e._locale),Mt(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Ht(this,qt(n,r),e),this}}function Ht(e,t,n,a){var i=t._milliseconds,o=Et(t._days),s=Et(t._months);e.isValid()&&(a=null==a||a,s&&Ce(e,U(e,"Month")+s*n),o&&Q(e,"Date",U(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&r.updateOffset(e,o||s))}qt.fn=Ot.prototype,qt.invalid=function(){return qt(NaN)};var Wt=zt(1,"add"),Gt=zt(-1,"subtract");function Ut(e){return"string"==typeof e||e instanceof String}function Qt(e){return w(e)||u(e)||Ut(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Ut(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!s(e),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<l.length;t+=1)n=l[t],a=a||o(e,n);return r&&a}(e)||null==e}function Jt(e){var t,n=i(e)&&!s(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||o(e,a[t]);return n&&r}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}var tn=1e3,nn=6e4,rn=36e5,an=126227808e5;function on(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function cn(e,t){return t.erasAbbrRegex(e)}function un(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(me(o[e].name)),n.push(me(o[e].abbr)),a.push(me(o[e].narrow)),i.push(me(o[e].name)),i.push(me(o[e].abbr)),i.push(me(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function dn(e,t){F(0,[e,e.length],0,t)}function fn(e,t,n,r,a){var i;return null==e?Ae(this,r,a).year:(t>(i=Le(e,r,a))&&(t=i),pn.call(this,e,t,n,r,a))}function pn(e,t,n,r,a){var i=$e(e,t,n,r,a),o=Pe(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),pe("N",cn),pe("NN",cn),pe("NNN",cn),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?h(n).era=a:h(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",ne,Z),pe("gg",ne,Z),pe("GGGG",oe,ee),pe("gggg",oe,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=W(e)})),ve(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),R("quarter","Q"),Y("quarter",7),pe("Q",K),ye("Q",(function(e,t){t[1]=3*(W(e)-1)})),F("D",["DD",2],"Do","date"),R("date","D"),Y("date",9),pe("D",ne),pe("DD",ne,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=W(e.match(ne)[0])}));var hn=G("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),Y("dayOfYear",4),pe("DDD",ie),pe("DDDD",X),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),F("m",["mm",2],0,"minute"),R("minute","m"),Y("minute",14),pe("m",ne),pe("mm",ne,Z),ye(["m","mm"],4);var mn=G("Minutes",!1);F("s",["ss",2],0,"second"),R("second","s"),Y("second",15),pe("s",ne),pe("ss",ne,Z),ye(["s","ss"],5);var gn,yn,vn=G("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),Y("millisecond",16),pe("S",ie,K),pe("SS",ie,Z),pe("SSS",ie,X),gn="SSSS";gn.length<=9;gn+="S")pe(gn,le);function _n(e,t){t[6]=W(1e3*("0."+e))}for(gn="S";gn.length<=9;gn+="S")ye(gn,_n);yn=G("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var bn=b.prototype;function wn(e){return e}bn.add=Wt,bn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Qt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Dt(),a=$t(n,this).startOf("day"),i=r.calendarFormat(this,a)||"sameElse",o=t&&(I(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Dt(n)))},bn.clone=function(){return new b(this)},bn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=$t(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Kt(this,r)/12;break;case"month":i=Kt(this,r);break;case"quarter":i=Kt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:H(i)},bn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-on(t+(this._isUTC?0:this.utcOffset()*nn),rn)-1;break;case"minute":t=this._d.valueOf(),t+=nn-on(t,nn)-1;break;case"second":t=this._d.valueOf(),t+=tn-on(t,tn)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Dt(),e)},bn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Dt(),e)},bn.get=function(e){return I(this[e=B(e)])?this[e]():this},bn.invalidAt=function(){return h(this).overflow},bn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},bn.isBefore=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},bn.isBetween=function(e,t,n,r){var a=w(e)?e:Dt(e),i=w(t)?t:Dt(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},bn.isSame=function(e,t){var n,r=w(e)?e:Dt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},bn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},bn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},bn.isValid=function(){return m(this)},bn.lang=Xt,bn.locale=Zt,bn.localeData=en,bn.max=It,bn.min=Tt,bn.parsingFlags=function(){return f({},h(this))},bn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:V[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=q(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(I(this[e=B(e)]))return this[e](t);return this},bn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=on(t+(this._isUTC?0:this.utcOffset()*nn),rn);break;case"minute":t=this._d.valueOf(),t-=on(t,nn);break;case"second":t=this._d.valueOf(),t-=on(t,tn)}return this._d.setTime(t),r.updateOffset(this,!0),this},bn.subtract=Gt,bn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},bn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},bn.toDate=function(){return new Date(this.valueOf())},bn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},bn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},bn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},bn.eraYear=function(){var e,t,n,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()},bn.year=Ee,bn.isLeapYear=function(){return z(this.year())},bn.weekYear=function(e){return fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},bn.isoWeekYear=function(e){return fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},bn.quarter=bn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},bn.month=Ne,bn.daysInMonth=function(){return we(this.year(),this.month())},bn.week=bn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},bn.isoWeek=bn.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},bn.weeksInYear=function(){var e=this.localeData()._week;return Le(this.year(),e.dow,e.doy)},bn.weeksInWeekYear=function(){var e=this.localeData()._week;return Le(this.weekYear(),e.dow,e.doy)},bn.isoWeeksInYear=function(){return Le(this.year(),1,4)},bn.isoWeeksInISOWeekYear=function(){return Le(this.isoWeekYear(),1,4)},bn.date=hn,bn.day=bn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},bn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},bn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},bn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},bn.hour=bn.hours=Ke,bn.minute=bn.minutes=mn,bn.second=bn.seconds=vn,bn.millisecond=bn.milliseconds=yn,bn.utcOffset=function(e,t,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(de,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=At(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?Ht(this,qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:At(this)},bn.utc=function(e){return this.utcOffset(0,e)},bn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this},bn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},bn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},bn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=Lt,bn.isUTC=Lt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=k("dates accessor is deprecated. Use date instead.",hn),bn.months=k("months accessor is deprecated. Use month instead",Ne),bn.years=k("years accessor is deprecated. Use year instead",Ee),bn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),bn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=kt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&W(e[r])!==W(t[r]))&&o++;return o+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var xn=N.prototype;function kn(e,t,n,r){var a=st(),i=p().set(r,t);return a[n](i,e)}function Sn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return kn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=kn(e,r,n,"month");return a}function Dn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,i=st(),o=e?i._week.dow:0,s=[];if(null!=n)return kn(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=kn(t,(a+o)%7,r,"day");return s}xn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return I(r)?r.call(t,n):r},xn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},xn.invalidDate=function(){return this._invalidDate},xn.ordinal=function(e){return this._ordinal.replace("%d",e)},xn.preparse=wn,xn.postformat=wn,xn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return I(a)?a(e,t,n,r):a.replace(/%d/i,e)},xn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)},xn.set=function(e){var t,n;for(n in e)o(e,n)&&(I(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},xn.eras=function(e,t){var n,a,i,o=this._eras||st("en")._eras;for(n=0,a=o.length;n<a;++n){switch(typeof o[n].since){case"string":i=r(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=r(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o},xn.erasParse=function(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]},xn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},xn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},xn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},xn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},xn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},xn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},xn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},xn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},xn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},xn.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},xn.firstDayOfYear=function(){return this._week.doy},xn.firstDayOfWeek=function(){return this._week.dow},xn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Re(n,this._week.dow):e?n[e.day()]:n},xn.weekdaysMin=function(e){return!0===e?Re(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},xn.weekdaysShort=function(e){return!0===e?Re(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},xn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},xn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ye),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},xn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},xn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=He),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},xn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},xn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",st);var Tn=Math.abs;function In(e,t,n,r){var a=qt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var En=Mn("ms"),jn=Mn("s"),Pn=Mn("m"),Fn=Mn("h"),$n=Mn("d"),An=Mn("w"),Ln=Mn("M"),Rn=Mn("Q"),Bn=Mn("y");function qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vn=qn("milliseconds"),Yn=qn("seconds"),zn=qn("minutes"),Hn=qn("hours"),Wn=qn("days"),Gn=qn("months"),Un=qn("years");var Qn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var Zn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=Zn(this._milliseconds)/1e3,c=Zn(this._days),u=Zn(this._months),d=this.asSeconds();return d?(e=H(l/60),t=H(e/60),l%=60,e%=60,n=H(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=Xn(this._months)!==Xn(d)?"-":"",o=Xn(this._days)!==Xn(d)?"-":"",s=Xn(this._milliseconds)!==Xn(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var tr=Ot.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},tr.add=function(e,t){return In(this,e,t,1)},tr.subtract=function(e,t){return In(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Nn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},tr.asMilliseconds=En,tr.asSeconds=jn,tr.asMinutes=Pn,tr.asHours=Fn,tr.asDays=$n,tr.asWeeks=An,tr.asMonths=Ln,tr.asQuarters=Rn,tr.asYears=Bn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Cn(On(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=H(i/1e3),l.seconds=e%60,t=H(e/60),l.minutes=t%60,n=H(t/60),l.hours=n%24,o+=H(n/24),s+=a=H(Nn(o)),o-=Cn(On(a)),r=H(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},tr.clone=function(){return qt(this)},tr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Vn,tr.seconds=Yn,tr.minutes=zn,tr.hours=Hn,tr.days=Wn,tr.weeks=function(){return H(this.days()/7)},tr.months=Gn,tr.years=Un,tr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var a=qt(e).abs(),i=Qn(a.as("s")),o=Qn(a.as("m")),s=Qn(a.as("h")),l=Qn(a.as("d")),c=Qn(a.as("M")),u=Qn(a.as("w")),d=Qn(a.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,Kn.apply(null,f)}(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=Zt,tr.localeData=en,tr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=Xt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(W(e))})),r.version="2.29.1",t=Dt,r.fn=bn,r.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return Sn(e,t,"months")},r.isDate=u,r.locale=it,r.invalid=g,r.duration=qt,r.isMoment=w,r.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Mt,r.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var n,r,a=Xe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(C(et[e]._config,t)):(null!=(r=at(e))&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),(n=new N(t)).parentLocale=et[e],et[e]=n),it(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===it()&&it(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return S(et)},r.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=bn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},77:function(e,t,n){var r,a;void 0===(a="function"==typeof(r=function(){var e,t,n,r,a,i={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,a,o,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(a in i)if((s="function"==typeof i[a].regexps.unformat?i[a].regexps.unformat():i[a].regexps.unformat)&&n.match(s)){o=i[a].unformat;break}r=(o=o||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var a,i,s,l,c,u,d,f,p=o[e.options.currentLocale],h=!1,m=!1,g="",y=1e12,v=1e9,_=1e6,b="",w=!1;if(t=t||0,i=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),i>=y&&!a||"t"===a?(g+=p.abbreviations.trillion,t/=y):i<y&&i>=v&&!a||"b"===a?(g+=p.abbreviations.billion,t/=v):i<v&&i>=_&&!a||"m"===a?(g+=p.abbreviations.million,t/=_):(i<_&&i>=1e3&&!a||"k"===a)&&(g+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),f=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),b=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):b=e._.toFixed(t,l.length,r),s=b.split(".")[0],b=e._.includes(b,".")?p.delimiters.decimal+b.split(".")[1]:"",m&&0===Number(b.slice(1))&&(b="")):s=e._.toFixed(t,0,r),g&&!a&&Number(s)>=1e3&&g!==p.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length<f)for(var x=f-s.length;x>0;x--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+b+(g||""),h?d=(h&&w?"(":"")+d+(h&&w?")":""):c>=0?d=0===c?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,a=o[l.currentLocale],i=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==a.delimiters.decimal&&(e=e.replace(/\./g,"").replace(a.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+a.abbreviations[t]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),a=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<a&&!(i in r);)i++;if(i>=a)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<a;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var a,i,o,s,l=e.toString().split("."),c=t-(r||0);return a=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,a),s=(n(e+"e+"+a)/o).toFixed(a),r>t-a&&(i=new RegExp("\\.?0{1,"+(r-(t-a))+"}$"),s=s.replace(i,"")),s}},e.options=l,e.formats=i,e.locales=o,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return o[l.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,a,i,o,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,a="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(a+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(l):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(l)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(l)||!o[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,a,o,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)a=l.zeroFormat;else if(null===s&&null!==l.nullFormat)a=l.nullFormat;else{for(r in i)if(c.match(i[r].regexps.format)){o=i[r].format;break}a=(o=o||e._.numberToFormat)(s,c,n)}return a},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,a){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,a){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,a){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,a){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var a,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),a=e._.numberToFormat(t,n,r),e._.includes(a,")")?((a=a.split("")).splice(-1,0,i+"BPS"),a=a.join("")):a=a+i+"BPS",a},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a="("+(a=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(t,a,i){var o,s,l,c=e._.includes(a,"ib")?r:n,u=e._.includes(a," b")||e._.includes(a," ib")?" ":"";for(a=a.replace(/\s?i?b/,""),o=0;o<=c.suffixes.length;o++)if(s=Math.pow(c.base,o),l=Math.pow(c.base,o+1),null===t||0===t||t>=s&&t<l){u+=c.suffixes[o],s>0&&(t/=s);break}return e._.numberToFormat(t,a,i)+u},unformat:function(t){var a,i,o=e._.stringToNumber(t);if(o){for(a=n.suffixes.length-1;a>=0;a--){if(e._.includes(t,n.suffixes[a])){i=Math.pow(n.base,a);break}if(e._.includes(t,r.suffixes[a])){i=Math.pow(r.base,a);break}}o*=i||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var a,i,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),a=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":a=e._.insert(a,o.currency.symbol,i);break;case" ":a=e._.insert(a," ",i+o.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":a=i===s.after.length-1?a+o.currency.symbol:e._.insert(a,o.currency.symbol,-(s.after.length-(1+i)));break;case" ":a=i===s.after.length-1?a+" ":e._.insert(a," ",-(s.after.length-(1+i)+o.currency.symbol.length-1))}return a}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var a=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(a[0]),n,r)+"e"+a[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),a=Number(n[1]);return a=e._.includes(t,"e-")?a*=-1:a,e._.reduce([r,Math.pow(10,a)],(function(t,n,r,a){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var a=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=a.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var a,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),a=e._.numberToFormat(t,n,r),e._.includes(a,")")?((a=a.split("")).splice(-1,0,i+"%"),a=a.join("")):a=a+i+"%",a},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),a=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*a);return r+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=a)},379:(e,t,n)=>{"use strict";var r,a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function o(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],a=0;a<e.length;a++){var s=e[a],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=o(u),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,h=0;function m(e,t){var n,r,a;if(t.singleton){var i=h++;n=p||(p=l(t)),r=d.bind(null,n,i,!1),a=d.bind(null,n,i,!0)}else n=l(t),r=f.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=o(n[r]);i[a].references--}for(var l=s(e,t),c=0;c<n.length;c++){var u=o(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=l}}}}},t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function t(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function r(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(t(arguments[n]));return e}var a=n(844),i=n(170),o=(0,a.Rf)(),s="Sentry Logger ",l=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,a.Cf)((function(){o.console.log(s+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,a.Cf)((function(){o.console.warn(s+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,a.Cf)((function(){o.console.error(s+"[Error]: "+e.join(" "))}))},e}();o.__SENTRY__=o.__SENTRY__||{};var c,u=o.__SENTRY__.logger||(o.__SENTRY__.logger=new l),d=n(422);function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return Boolean(e&&e.then&&"function"==typeof e.then)}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(c||(c={}));var h,m=function(){function e(e){var t=this;this._state=c.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(c.RESOLVED,e)},this._reject=function(e){t._setResult(c.REJECTED,e)},this._setResult=function(e,n){t._state===c.PENDING&&(p(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==c.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===c.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===c.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var a=t.length,i=[];t.forEach((function(t,o){e.resolve(t).then((function(e){i[o]=e,0==(a-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,a){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void a(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void a(e)}else a(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var a,i;return n.then((function(e){i=!1,a=e,t&&t()}),(function(e){i=!0,a=e,t&&t()})).then((function(){i?r(a):e(a)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),g=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(n){var a=new t;return n&&(a._breadcrumbs=r(n._breadcrumbs),a._tags=e({},n._tags),a._extra=e({},n._extra),a._contexts=e({},n._contexts),a._user=n._user,a._level=n._level,a._span=n._span,a._session=n._session,a._transactionName=n._transactionName,a._fingerprint=n._fingerprint,a._eventProcessors=r(n._eventProcessors)),a},t.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},t.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},t.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.setTags=function(t){return this._tags=e(e({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,n){var r;return this._tags=e(e({},this._tags),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=e(e({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,n){var r;return this._extra=e(e({},this._extra),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},t.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(e){return this.setTransactionName(e)},t.prototype.setContext=function(t,n){var r;return null===n?delete this._contexts[t]:this._contexts=e(e({},this._contexts),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var e,t,n,r,a=this.getSpan();return(null===(e=a)||void 0===e?void 0:e.transaction)?null===(t=a)||void 0===t?void 0:t.transaction:(null===(r=null===(n=a)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?a.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this._tags=e(e({},this._tags),n._tags),this._extra=e(e({},this._extra),n._extra),this._contexts=e(e({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint)):f(n)&&(n=n,this._tags=e(e({},this._tags),n.tags),this._extra=e(e({},this._extra),n.extra),this._contexts=e(e({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,n){var a=e({timestamp:(0,i.yW)()},t);return this._breadcrumbs=void 0!==n&&n>=0?r(this._breadcrumbs,[a]).slice(-n):r(this._breadcrumbs,[a]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,n){var i;if(this._extra&&Object.keys(this._extra).length&&(t.extra=e(e({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=e(e({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=e(e({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=e(e({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=e({trace:this._span.getTraceContext()},t.contexts);var o=null===(i=this._span.transaction)||void 0===i?void 0:i.name;o&&(t.tags=e({transaction:o},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=r(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(r(function(){var e=(0,a.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}(),this._eventProcessors),t,n)},t.prototype._notifyEventProcessors=function(t,n,r,a){var i=this;return void 0===a&&(a=0),new m((function(o,s){var l=t[a];if(null===n||"function"!=typeof l)o(n);else{var c=l(e({},n),r);p(c)?c.then((function(e){return i._notifyEventProcessors(t,e,r,a+1).then(o)})).then(null,s):i._notifyEventProcessors(t,c,r,a+1).then(o).then(null,s)}}))},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},t}();function y(e){var t,n;if(f(e)){var r=e,a={};try{for(var i=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(Object.keys(r)),o=i.next();!o.done;o=i.next()){var s=o.value;void 0!==r[s]&&(a[s]=y(r[s]))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(y):e}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(h||(h={}));var v=function(){function e(e){this.errors=0,this.sid=(0,a.DM)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=h.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,a.DM)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===h.Ok?this.update({status:h.Exited}):this.update()},e.prototype.toJSON=function(){return y({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:y({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),_=function(){function t(e,t,n){void 0===t&&(t=new g),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version<e},t.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},t.prototype.pushScope=function(){var e=g.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,n){var r=this._lastEventId=(0,a.DM)(),i=n;if(!n){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}i={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,e(e({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this._lastEventId=(0,a.DM)(),o=r;if(!r){var s=void 0;try{throw new Error(t)}catch(e){s=e}o={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,n,e(e({},o),{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=this._lastEventId=(0,a.DM)();return this._invokeClient("captureEvent",t,e(e({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),o=r.scope,s=r.client;if(o&&s){var l=s.getOptions&&s.getOptions()||{},c=l.beforeBreadcrumb,u=void 0===c?null:c,d=l.maxBreadcrumbs,f=void 0===d?100:d;if(!(f<=0)){var p=(0,i.yW)(),h=e({timestamp:p},t),m=u?(0,a.Cf)((function(){return u(h,n)})):h;null!==m&&o.addBreadcrumb(m,Math.min(f,100))}}},t.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},t.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},t.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},t.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},t.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},t.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},t.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},t.prototype.run=function(e){var t=w(this);try{e(this)}finally{w(t)}},t.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return u.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},t.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},t.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.startSession=function(t){this.endSession();var n=this.getStackTop(),r=n.scope,a=n.client,i=a&&a.getOptions()||{},o=i.release,s=i.environment,l=new v(e(e({release:o,environment:s},r&&{user:r.getUser()}),t));return r&&r.setSession(l),l},t.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},t.prototype._invokeClient=function(e){for(var t,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=this.getStackTop(),o=i.scope,s=i.client;s&&s[e]&&(t=s)[e].apply(t,r(n,[o]))},t.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=b(),a=r.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[e])return a.extensions[e].apply(this,t);u.warn("Extension method "+e+" couldn't be found, doing nothing.")},t}();function b(){var e=(0,a.Rf)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function w(e){var t=b(),n=S(t);return D(t,e),n}function x(){var e=b();return k(e)&&!S(e).isOlderThan(3)||D(e,new _),(0,d.KV)()?function(e){try{var t=(r=b().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return S(e);if(!k(t)||S(t).isOlderThan(3)){var n=S(e).getStackTop();D(t,new _(n.client,g.clone(n.scope)))}return S(t)}catch(t){return S(e)}var r}(e):S(e)}function k(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new _),e.__SENTRY__.hub}function D(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=x();if(a&&a[e])return a[e].apply(a,r(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function I(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return T("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function C(t,n){var r;try{throw new Error(t)}catch(e){r=e}return T("captureMessage",t,"string"==typeof n?n:void 0,e({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))}var N=n(755),O=n.n(N),M=n(483),E=n.n(M);E().config({name:"LWM",version:1.3,storeName:"lwm_config",description:"Stores config values of the Last-War Manager"});const j="undefined"!=typeof unsafeWindow?unsafeWindow:window,P=window,F="undefined"!=typeof GM&&GM.setValue?GM.setValue:E().setItem,$="undefined"!=typeof GM&&GM.getValue?GM.getValue:E().getItem,{document:A}=j;function L(e,t,n,r,a){this.settings=e,this.id=n,this.configId=a,this.node=null,this.wrapper=null,this.save=void 0===e.save||e.save,"button"===e.type&&(this.save=!1),this.default=void 0===e.default?r?r.default:function(e,t){let n,r=e;switch(0===e.indexOf("unsigned ")&&(r=e.substring(9)),r){case"radio":case"select":[n]=t;break;case"checkbox":n=!1;break;case"int":case"integer":case"float":case"number":n=0;break;default:n=""}return n}(e.type,e.options):e.default,this.value=void 0===t?this.default:t,r&&(this.toNode=r.toNode,this.toValue=r.toValue,this.reset=r.reset)}async function R(e,t){void 0===e.fields&&(e.fields={},e.onInit=e.onInit||function(){},e.onOpen=e.onOpen||function(){},e.onSave=e.onSave||function(){},e.onClose=e.onClose||function(){},e.onReset=e.onReset||function(){},e.isOpen=!1,e.title="User Script Settings",e.css={basic:["#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }","#GM_config { background: #FFF; }","#GM_config input[type='radio'] { margin-right: 8px; }","#GM_config .indent40 { margin-left: 40%; }","#GM_config .field_label { font-size: 12px; font-weight: bold; margin-right: 6px; }","#GM_config .radio_label { font-size: 12px; }","#GM_config .block { display: block; }","#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }","#GM_config .reset, #GM_config .reset a, #GM_config_buttons_holder { color: #000; text-align: right; }","#GM_config .config_header { font-size: 20pt; margin: 0; }","#GM_config .config_desc, #GM_config .section_desc, #GM_config .reset { font-size: 9pt; }","#GM_config .center { text-align: center; }","#GM_config .section_header_holder { margin-top: 8px; }","#GM_config .config_var { margin: 0 0 4px; }","#GM_config .section_header { background: #414141; border: 1px solid #000; color: #FFF;"," font-size: 13pt; margin: 0; }","#GM_config .section_desc { background: #EFEFEF; border: 1px solid #CCC; color: #575757; font-size: 9pt; margin: 0 0 6px; }"].join("\n")+"\n",basicPrefix:"GM_config",stylish:""});let n={};if(1===t.length&&"string"==typeof t[0].id&&"function"!=typeof t[0].appendChild)[n]=t;else{n={};for(let e,r=0,a=t.length;r<a;++r)if(e=t[r],"function"==typeof e.appendChild)n.frame=e;else switch(typeof e){case"object":Object.keys(e).forEach((t=>"function"!=typeof e[t]?(n.fields=e,!1):(n.events||(n.events={}),n.events[t]=e[t],!0)));break;case"function":n.events={onOpen:e};break;case"string":/\w+\s*\{\s*\w+\s*:\s*\w+[\s|\S]*\}/.test(e)?n.css=e:n.title=e}}if(n.id?e.id=n.id:void 0===e.id&&(e.id="GM_config"),n.title&&(e.title=n.title),n.css&&(e.css.stylish=n.css),n.frame&&(e.frame=n.frame),n.events){const{events:t}=n;for(const n in t)e[`on${n.charAt(0).toUpperCase()}${n.slice(1)}`]=t[n]}if(n.fields){const t=await e.read(),{fields:r}=n,a=n.types||{},i=e.id;for(const n in r){const o=r[n];o?e.fields[n]=new L(o,t[n],n,a[o.type],i):e.fields[n]&&delete e.fields[n]}}e.id!==e.css.basicPrefix&&(e.css.basic=e.css.basic.replace(new RegExp("#"+e.css.basicPrefix,"gm"),"#"+e.id),e.css.basicPrefix=e.id)}function B(){arguments.length&&R(this,arguments).then((()=>{this.onInit()}))}B.prototype={async init(){await R(this,arguments),this.onInit()},open(){const e=A.getElementById(this.id);if(e&&("IFRAME"===e.tagName||e.childNodes.length>0))return;const t=this;function n(e,n){const{create:r}=t,{fields:a}=t,i=t.id,o=r("div",{id:i+"_wrapper"});n.appendChild(r("style",{type:"text/css",textContent:t.css.basic+t.css.stylish})),o.appendChild(r("div",{id:i+"_header",className:"config_header block center"},t.title));let s=o,l=0;for(const e in a){const t=a[e],{settings:n}=t;n.section&&(s=o.appendChild(r("div",{className:"section_header_holder",id:`${i}_section_${l}`})),"[object Array]"!==Object.prototype.toString.call(n.section)&&(n.section=[n.section]),n.section[0]&&s.appendChild(r("div",{className:"section_header center",id:`${i}_section_header_${l}`},n.section[0])),n.section[1]&&s.appendChild(r("p",{className:"section_desc center",id:`${i}_section_desc_${l}`},n.section[1])),++l),s.appendChild(t.wrapper=t.toNode())}o.appendChild(r("div",{id:i+"_buttons_holder"},r("button",{id:i+"_saveBtn",textContent:"Save",title:"Save settings",className:"saveclose_buttons",onclick(){t.save()}}),r("button",{id:i+"_closeBtn",textContent:"Close",title:"Close window",className:"saveclose_buttons",onclick(){t.close()}}),r("div",{className:"reset_holder block"},r("a",{id:i+"_resetLink",textContent:"Reset to defaults",href:"#",title:"Reset fields to default values",className:"reset",onclick(e){e.preventDefault(),t.reset()}})))),e.appendChild(o),t.center(),j.addEventListener("resize",t.center,!1),t.onOpen(t.frame.contentDocument||t.frame.ownerDocument,t.frame.contentWindow||j,t.frame),j.addEventListener("beforeunload",(()=>{t.close()}),!1),t.frame.style.display="block",t.isOpen=!0}const r="bottom: auto; border: 1px solid #000; display: none; height: 75%; left: 0; margin: 0; max-height: 95%; max-width: 95%; opacity: 0; overflow: auto; padding: 0; position: fixed; right: auto; top: 0; width: 75%; z-index: 9999;";this.frame?(this.frame.id=this.id,this.frame.setAttribute("style",r),n(this.frame,this.frame.ownerDocument.getElementsByTagName("head")[0])):(A.body.appendChild(this.frame=this.create("iframe",{id:this.id,style:r})),this.frame.src="about:blank",this.frame.addEventListener("load",(()=>{const{frame:e}=t,r=e.contentDocument.getElementsByTagName("body")[0];r.id=t.id,n(r,e.contentDocument.getElementsByTagName("head")[0])}),!1))},save(){const e=this.write();this.onSave(e)},close(){this.frame.contentDocument?(this.remove(this.frame),this.frame=null):(this.frame.innerHTML="",this.frame.style.display="none");const{fields:e}=this;for(const t in e){const n=e[t];n.wrapper=null,n.node=null}this.onClose(),this.isOpen=!1},set(e,t){this.fields[e].value=t,this.fields[e].node&&this.fields[e].reload()},get(e,t){const n=this.fields[e];let r=null;return t&&n.node&&(r=n.toValue()),null!=r?r:n.value},write(e,t){const n={},r={};if(!t){const{fields:e}=this;for(const t in e){const a=e[t],i=a.toValue();a.save?null!=i?(n[t]=i,a.value=i):n[t]=a.value:r[t]=i}}try{this.setValue(e||this.id,this.stringify(t||n))}catch(e){this.log("GM_config failed to save settings!")}return r},async read(e){let t;try{const n=await this.getValue(e||this.id,"{}");t=this.parser(n)}catch(e){this.log("GM_config failed to read saved settings!"),t={}}return t},reset(){const{fields:e}=this;for(const t in e)e[t].reset();this.onReset()},create(){let e,t;switch(arguments.length){case 1:e=A.createTextNode(arguments[0]);break;default:e=A.createElement(arguments[0]),t=arguments[1];for(const n in t)0===n.indexOf("on")?e.addEventListener(n.substring(2),t[n],!1):-1!==",style,accesskey,id,name,src,href,which,for".indexOf(","+n.toLowerCase())?e.setAttribute(n,t[n]):e[n]=t[n];if("string"==typeof arguments[2])e.innerHTML=arguments[2];else for(let t=2,n=arguments.length;t<n;++t)e.appendChild(arguments[t])}return e},center(){const e=this.frame;if(!e)return;const{style:t}=e;"none"===t.display&&(t.opacity="0"),t.display="",t.top=Math.floor(j.innerHeight/2-e.offsetHeight/2)+"px",t.left=Math.floor(j.innerWidth/2-e.offsetWidth/2)+"px",t.opacity="1"},remove(e){e&&e.parentNode&&e.parentNode.removeChild(e)}},function(){const e=JSON.stringify,t=JSON.parse;B.prototype.setValue=function(e,t){return F(e,t)},B.prototype.getValue=async function(e,t){const n=await $(e);return null==n?t:n},B.prototype.stringify=e,B.prototype.parser=t,B.prototype.log=console.log}(),L.prototype={create:B.prototype.create,toNode(){const e=this.settings,{value:t}=this,{options:n}=e,{type:r}=e,{id:a}=this,{configId:i}=this;let{labelPos:o}=e;const{create:s}=this;function l(e,t,n,r){switch(r||(r=n.firstChild),e){case"right":case"below":"below"===e&&n.appendChild(s("br",{})),n.appendChild(t);break;default:"above"===e&&n.insertBefore(s("br",{}),r),n.insertBefore(t,r)}}const c=s("div",{className:"config_var",id:`${i}_${a}_var`,title:e.title||""});let u;for(const t in e){u=t;break}const d=e.label&&"button"!==r?s("label",{id:`${i}_${a}_field_label`,for:`${i}_field_${a}`,className:"field_label"},e.label):null;let f,p;switch(r){case"textarea":c.appendChild(this.node=s("textarea",{innerHTML:t,id:`${i}_field_${a}`,className:"block",cols:e.cols?e.cols:20,rows:e.rows?e.rows:2}));break;case"radio":f=s("div",{id:`${i}_field_${a}`}),this.node=f;for(let e=0,r=n.length;e<r;++e){const r=s("label",{className:"radio_label"},n[e]),i=f.appendChild(s("input",{value:n[e],type:"radio",name:a,checked:n[e]===t}));l(!o||"left"!==o&&"right"!==o?"options"===u?"left":"right":o,r,f,i)}c.appendChild(f);break;case"select":f=s("select",{id:`${i}_field_${a}`}),this.node=f;for(let e=0,r=n.length;e<r;++e){const r=n[e];f.appendChild(s("option",{value:r,selected:r===t},r))}c.appendChild(f);break;default:switch(p={id:`${i}_field_${a}`,type:r,value:"button"===r?e.label:t},r){case"checkbox":p.checked=t;break;case"button":p.size=e.size?e.size:25,e.script&&(e.click=e.script),e.click&&(p.onclick=e.click);break;case"hidden":break;default:p.type="text",p.size=e.size?e.size:25}c.appendChild(this.node=s("input",p))}return d&&(o||(o="label"===u||"radio"===r?"left":"right"),l(o,d,c)),c},toValue(){const{node:e}=this,t=this.settings;let{type:n}=t,r=!1,a=null;if(!e)return a;0===n.indexOf("unsigned ")&&(n=n.substring(9),r=!0);const i=Number(e.value);let o,s;switch(n){case"checkbox":a=e.checked;break;case"select":a=e[e.selectedIndex].value;break;case"radio":o=e.getElementsByTagName("input");for(let e=0,t=o.length;e<t;++e)o[e].checked&&(a=o[e].value);break;case"button":break;case"int":case"integer":case"float":case"number":if(s=`Field labeled "${t.label}" expects a${r?" positive ":"n "}integer value`,isNaN(i)||"int"===n.substr(0,3)&&Math.ceil(i)!==Math.floor(i)||r&&i<0)return j.alert(s+"."),null;if(!this.checkNumberRange(i,s))return null;a=i;break;default:a=e.value}return a},reset(){const{node:e}=this,t=this.settings,{type:n}=t;if(!e)return;let r;switch(n){case"checkbox":e.checked=this.default;break;case"select":for(let t=0,n=e.options.length;t<n;++t)e.options[t].textContent===this.default&&(e.selectedIndex=t);break;case"radio":r=e.getElementsByTagName("input");for(let e=0,t=r.length;e<t;++e)r[e].value===this.default&&(r[e].checked=!0);break;case"button":break;default:e.value=this.default}},remove(e){B.prototype.remove(e||this.wrapper),this.wrapper=null,this.node=null},reload(){const{wrapper:e}=this;e&&(e.parentNode.insertBefore(this.wrapper=this.toNode(),e),this.remove(e))},checkNumberRange(e,t){const n=this.settings;return"number"==typeof n.min&&e<n.min?(j.alert(`${t} greater than or equal to ${n.min}.`),null):!("number"==typeof n.max&&e>n.max)||(j.alert(`${t} less than or equal to ${n.max}.`),null)}};const q=new B,V=()=>new Promise(((e,t)=>{let n,r=0;-1===O().map(_e.loadStates,(e=>e)).indexOf(!0)?e():n=setInterval((()=>{-1===O().map(_e.loadStates,(e=>e)).indexOf(!0)&&(clearInterval(n),e()),r+=1,r>_e.promises.interval.count-1&&(clearInterval(n),t())}),_e.promises.interval.ms)})),Y=e=>{let t,n;const r=new Promise(((r,a)=>{t=r,n=a,void 0===_e.loadStates[e]&&a();let i,o=0;_e.loadStates[e]?i=setInterval((()=>{_e.loadStates[e]||(clearInterval(i),r()),o+=1,o>_e.promises.interval.count-1&&(clearInterval(i),a())}),_e.promises.interval.ms):r()}));return r.resolve=t,r.reject=n,r},z=e=>{let t,n;const r=new Promise(((r,a)=>{t=r,n=a,e||a();let i,o=0;O()(e).length&&-1!==O().map(O()(e),(e=>O()(e).html())).join(" ").search(/\w/)?r():i=setInterval((()=>{O()(e).length&&-1!==O().map(O()(e),(e=>O()(e).html())).join(" ").search(/\w/)&&(clearInterval(i),r()),o+=1,o>_e.promises.interval.count-1&&(clearInterval(i),a())}),_e.promises.interval.ms)}));return r.resolve=t,r.reject=n,r};var H=n(77),W=n.n(H),G=n(381),U=n.n(G);const Q=(e,t="Really?")=>{if(e.getAttribute("data-has-confirm"))return;e.setAttribute("data-has-confirm",!0);const n=e.getAttribute("onclick");e.setAttribute("onclick",`r = confirm("${t}?"); if (r == true) ${n}`)},J=()=>!q.get("addon_clock")||(O()("[id*='clock'],[id*='Clock']").each(((e,t)=>{if(void 0!==O()(t).data("clock_seconds"))return!0;const n=O()(t).text().split(":"),r=60*parseInt(n[0],10)*60+60*parseInt(n[1],10)+parseInt(n[2],10);return O()(t).data("clock_seconds",r-1),!0})),!0),K=e=>{const t=e.attr("class");return void 0!==t&&t.split(" ")[0]},Z=(e,t,n=1)=>{O().each(e,((e,r)=>{let a="";for(let e=0;e<parseInt(n,10);e+=1)a+=`<i class="${t}"></i>`;O()(r).html(a)}))},X=(e,t,n=1)=>{e.forEach((e=>{let r="";for(let e=0;e<parseInt(n,10);e+=1)r+=`<i class="${t}"></i>`;e.innerHTML=`${r}&nbsp;${e.innerHTML}`}))},ee=e=>{let t=[];return t=Array.isArray(e)?e:e.split("x"),Number.isInteger(parseInt(t[0],10))&&Number.isInteger(parseInt(t[1],10))&&Number.isInteger(t[2],10)},te=()=>{const e=_e.gameData.tradeInfo.trade_offers;return 0===e.length?[0,0,0,0,0,0]:[O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[12],10):parseInt(e.resource[6],10)))).reduce(((e,t)=>e+t)),O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[13],10):parseInt(e.resource[7],10)))).reduce(((e,t)=>e+t)),O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[14],10):parseInt(e.resource[8],10)))).reduce(((e,t)=>e+t)),O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[15],10):parseInt(e.resource[9],10)))).reduce(((e,t)=>e+t)),O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[16],10):parseInt(e.resource[10],10)))).reduce(((e,t)=>e+t)),O().map(e,(e=>parseInt(e.accept,10)*(parseInt(e.galaxy,10)===_e.gameData.planetCoords.galaxy&&parseInt(e.system,10)===_e.gameData.planetCoords.system&&parseInt(e.planet,10)===_e.gameData.planetCoords.planet?parseInt(e.resource[17],10):parseInt(e.resource[11],10)))).reduce(((e,t)=>e+t))]},ne=(e="Something went wrong while loading the page. Not all features might be fully functional!")=>{O()("#all").find(".lwm-loaderror").length||O()("#all").prepend(`<div class="lwm-loaderror" style="margin-bottom: 20px;background-color: #792121;border: 1px solid rgba(124, 243, 241, 0.5);padding: 2px;"><i class="fas fa-exclamation-triangle" style="margin-right: 5px;"></i>${e}</div>`)},re=e=>{let t=[];return t=Array.isArray(e)?e:e.split("x"),O().grep(_e.gameData.observationInfo.observationen_informations,(e=>parseInt(e.galaxy,10)===parseInt(t[0],10)&&parseInt(e.system,10)===parseInt(t[1],10)&&parseInt(e.planet,10)===parseInt(t[2],10)))};var ae=n(650);let ie=null;const oe=()=>{if(null!==ie)return ie;const e=new Blob(['!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);const n=new Map,o=new Map,i=(e,t)=>{let r,n;const o=performance.now();r=o,n=e-Math.max(0,o-t);return{expected:r+n,remainingDelay:n}},s=(e,t,r,n)=>{const o=performance.now();o>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};addEventListener("message",(({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:r,timerType:i}}=e;if("interval"===i)(e=>{const t=n.get(e);if(void 0===t)throw new Error(\'There is no interval scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),n.delete(e)})(r),postMessage({error:null,id:t});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const t=o.get(e);if(void 0===t)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(t),o.delete(e)})(r),postMessage({error:null,id:t})}}else{if("set"!==e.method)throw new Error(\'The given method "\'.concat(e.method,\'" is not supported\'));{const{params:{delay:t,now:r,timerId:a,timerType:u}}=e;if("interval"===u)((e,t,r)=>{const{expected:o,remainingDelay:a}=i(e,r);n.set(t,setTimeout(s,a,n,t,o,"interval"))})(t,a,r);else{if("timeout"!==u)throw new Error(\'The given type "\'.concat(u,\'" is not supported\'));((e,t,r)=>{const{expected:n,remainingDelay:a}=i(e,r);o.set(t,setTimeout(s,a,o,t,n,"timeout"))})(t,a,r)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}}))}]);'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return ie=(e=>{const t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,a=new Worker(e);return a.addEventListener("message",(({data:e})=>{if(void 0!==(a=e).method&&"call"===a.method){const{params:{timerId:a,timerType:i}}=e;if("interval"===i){const e=t.get(a);if("number"==typeof e){const t=r.get(e);if(void 0===t||t.timerId!==a||t.timerType!==i)throw new Error("The timer is in an undefined state.")}else{if(void 0===e)throw new Error("The timer is in an undefined state.");e()}}else if("timeout"===i){const e=n.get(a);if("number"==typeof e){const t=r.get(e);if(void 0===t||t.timerId!==a||t.timerType!==i)throw new Error("The timer is in an undefined state.")}else{if(void 0===e)throw new Error("The timer is in an undefined state.");e(),n.delete(a)}}}else{if(!(e=>null===e.error&&"number"==typeof e.id)(e)){const{error:{message:t}}=e;throw new Error(t)}{const{id:a}=e,i=r.get(a);if(void 0===i)throw new Error("The timer is in an undefined state.");const{timerId:o,timerType:s}=i;r.delete(a),"interval"===s?t.delete(o):n.delete(o)}}var a})),{clearInterval:e=>{const n=(0,ae.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),a.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{const t=(0,ae.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),a.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{const r=(0,ae.generateUniqueNumber)(t);return t.set(r,(()=>{e(),"function"==typeof t.get(r)&&a.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})})),a.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{const r=(0,ae.generateUniqueNumber)(n);return n.set(r,e),a.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}})(t),ie.setTimeout((()=>URL.revokeObjectURL(t)),0),ie},se=e=>oe().clearInterval(e),le=(e,t)=>oe().setInterval(e,t);let{Roheisen:ce,Kristall:ue,Frubin:de,Orizin:fe,Frurozin:pe,Gold:he}=j,me=new Date;const{alert:ge}=j,ye=(()=>{let e=null;const t=["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"],n=()=>{e.auth2.getAuthInstance().signOut()},r=()=>null!==e,a=()=>void 0!==e.client,i=()=>{q.get("confirm_drive_sync")&&ge("Couldn't sync with Google Drive. Please go to the settings and reconnect the service!"),n(),q.set("confirm_drive_sync",!1),q.save(),Y("gameData").then((()=>{_e.setGMValues()}),(()=>{C("gameData promise rejected"),ne()}))},o=(t=_e.lwm.gDriveFileID)=>{if(_e.loadStates.gdrive)return Promise.resolve();const n=JSON.parse(JSON.stringify(_e.lwm));return n.menu={addon_clock:q.get("addon_clock"),addon_fleet:q.get("addon_fleet"),addon_fleet_exclude_drones:q.get("addon_fleet_exclude_drones"),addon_res:q.get("addon_res"),confirm_const:q.get("confirm_const"),menu_clipboard:q.get("menu_clipboard"),overview_planetresources:q.get("overview_planetresources"),overview_planetstatus:q.get("overview_planetstatus"),overview_planetnames:q.get("overview_planetnames"),overview_planetpicture:q.get("overview_planetpicture"),overview_hintvacantmultiqueue:q.get("overview_hintvacantmultiqueue"),construction_buildingcountdown:q.get("construction_buildingcountdown"),message_spylinks:q.get("message_spylinks"),trade_highlights:q.get("trade_highlights"),fleet_saveprios:q.get("fleet_saveprios"),obs_opentabs:q.get("obs_opentabs"),fleet_presets_1_active:q.get("fleet_presets_1_active"),fleet_presets_1_weekday:q.get("fleet_presets_1_weekday"),fleet_presets_1_time:q.get("fleet_presets_1_time"),fleet_presets_2_active:q.get("fleet_presets_2_active"),fleet_presets_2_weekday:q.get("fleet_presets_2_weekday"),fleet_presets_2_time:q.get("fleet_presets_2_time"),fleet_presets_3_active:q.get("fleet_presets_3_active"),fleet_presets_3_weekday:q.get("fleet_presets_3_weekday"),fleet_presets_3_time:q.get("fleet_presets_3_time"),fleet_presets_4_active:q.get("fleet_presets_4_active"),fleet_presets_4_weekday:q.get("fleet_presets_4_weekday"),fleet_presets_4_time:q.get("fleet_presets_4_time"),fleet_presets_5_active:q.get("fleet_presets_5_active"),fleet_presets_5_weekday:q.get("fleet_presets_5_weekday"),fleet_presets_5_time:q.get("fleet_presets_5_time"),confirm_production:q.get("confirm_production"),confirm_research:q.get("confirm_research"),coords_fleets:q.get("coords_fleets"),coords_trades:q.get("coords_trades"),coords_galaxy_main:q.get("coords_galaxy_main"),coords_system_main:q.get("coords_system_main"),coords_planet_main:q.get("coords_planet_main"),confirm_hideTrades:q.get("confirm_hideTrades")},e.client.request({path:"/upload/drive/v3/files/"+t,method:"PATCH",params:{uploadType:"media",mimeType:"application/json"},body:JSON.stringify(n)}).then((e=>{200!==e.status&&console.error("client.request: "+e)}),(e=>{I(e),console.error(JSON.stringify(e,null,2))}))},s=t=>{t&&q.get("confirm_drive_sync")&&e.client.drive.files.list({q:'name="lwm_config.json"',spaces:"appDataFolder",fields:"files(id)"}).then((t=>{var n;200===t.status?0===t.result.files.length?e.client.drive.files.create({resource:{name:"lwm_config.json",description:"Saved config for the Last War Manager",parents:["appDataFolder"],mimeType:"application/json",uploadType:"multipart"},fields:"id,name"}).then((e=>{200===e.status?(_e.lwm.gDriveFileID=e.result.id,_e.loadStates.gdrive=!1,o()):(console.error("files.create: "+e),i())}),(e=>{I(e),console.error(JSON.stringify(e,null,2)),i()})):(n=t.result.files[0].id,e.client.drive.files.get({fileId:n,alt:"media"}).then((e=>{200===e.status?(_e.lwm.gDriveFileID=n,_e.lwm.set(e.result)):(console.error("files.create: "+e),i())}),(e=>{I(e),console.error(JSON.stringify(e,null,2)),i()}))):(console.error("files.create: "+t),i())}),(e=>{I(e),console.error(JSON.stringify(e,null,2)),i()}))};return{signIn:()=>{e.auth2.getAuthInstance().signIn()},signOut:n,isSignedIn:()=>e.auth2.getAuthInstance().isSignedIn.get(),save:o,init:()=>new Promise(((n,o)=>{(r()?Promise.resolve():new Promise(((t,n)=>{j.jQuery.getScript("//apis.google.com/js/api.js").done((()=>{e=j.gapi,t()})).fail((()=>{n()}))}))).then((()=>new Promise(((n,r)=>{a()?n():e.load("client:auth2",{callback:()=>{new Promise(((n,r)=>{e.client.init({apiKey:"AIzaSyA7VHXY213eg3suaarrMmrbOlX8T9hVwrc",clientId:"807071171095-2r28v4jpvgujv5n449ja4lrmk4hg88ie.apps.googleusercontent.com",discoveryDocs:t,scope:"https://www.googleapis.com/auth/drive.appfolder https://www.googleapis.com/auth/drive.file"}).then((()=>{e.auth2.getAuthInstance().isSignedIn.listen(s),s(e.auth2.getAuthInstance().isSignedIn.get()),n()}),(e=>{I(e),console.error(JSON.stringify(e,null,2)),i(),r()}))})).then((()=>{n()})).catch((()=>{r()}))},onerror(){console.error("gapi.client failed to load!"),i(),r()}})})))).then((()=>{n()})).catch((()=>{o()}))})),apiLoaded:r,clientLoaded:a}})(),ve={const:{lang:{fleet:{types:{1:"Att",2:"Transport",3:"Def",4:"Kolo",5:"Transfer",6:"Drone"},status:{1:"Incoming",2:"Return",3:"Stationary",4:"n/a",5:"n/a"}}}},menu:q,firstLoad:!0,loadStates:{gdrive:!1,jQuery:!1,gameData:!1,content:!1,submenu:!1,fleetaddon:!1,lastLoadedPage:null},unsafeWindow:{changeContent(){},changeInboxContent(){}},currentSavedProject:{fe:0,kris:0,frub:0,ori:0,fruro:0,gold:0,ts:null,name:null,type:null},gameData:{playerID:null,playerName:null,playerData:{tarntechnologie:0},planetCoords:{string:null,galaxy:null,system:null,planet:null},planets:[],planetInformation:[],resources:[0,0,0,0,0,0],spionageInfos:{},productionInfos:[],overviewInfo:{},constructionInfo:{},researchInfo:{},messageData:{},newTradeOfferInfo:{},fleetInfo:{},fleetSendData:{},observationInfo:{},tradeInfo:{}},lwm:{lastTradeCoords:{},lastFleetCoords:{},productionFilters:{},hiddenShips:{},resProd:{},gDriveFileID:null,raidPrios:[],planetInfo:{},calendar:[],planetData:{},tradeData:{},reset:()=>{const e=q.get("confirm_drive_sync");ve.lwm.lastTradeCoords={},ve.lwm.lastFleetCoords={},ve.lwm.productionFilters={},ve.lwm.hiddenShips={},ve.lwm.resProd={},ve.lwm.raidPrios=[],ve.lwm.planetInfo={},ve.lwm.calendar=[],ve.lwm.planetData={},ve.lwm.tradeData={},q.reset(),e&&q.set("confirm_drive_sync",!0),q.save()},set:e=>{void 0!==e.lastTradeCoords&&(ve.lwm.lastTradeCoords=e.lastTradeCoords),void 0!==e.lastFleetCoords&&(ve.lwm.lastFleetCoords=e.lastFleetCoords),void 0!==e.productionFilters&&(ve.lwm.productionFilters=e.productionFilters),void 0!==e.hiddenShips&&(ve.lwm.hiddenShips=e.hiddenShips),void 0!==e.resProd&&(ve.lwm.resProd=e.resProd),void 0!==e.raidPrios&&(ve.lwm.raidPrios=e.raidPrios),void 0!==e.planetInfo&&(ve.lwm.planetInfo=e.planetInfo),void 0!==e.calendar&&(ve.lwm.calendar=e.calendar),void 0!==e.planetData&&(ve.lwm.planetData=e.planetData),void 0!==e.tradeData&&(ve.lwm.tradeData=e.tradeData),void 0!==e.menu&&(Object.keys(e.menu).forEach((t=>{void 0!==q.fields[t]&&q.set(t,e.menu[t])})),q.save()),F("lwm_lastTradeCoords",JSON.stringify(ve.lwm.lastTradeCoords)),F("lwm_lastFleetCoords",JSON.stringify(ve.lwm.lastFleetCoords)),F("lwm_productionFilters",JSON.stringify(ve.lwm.productionFilters)),F("lwm_hiddenShips",JSON.stringify(ve.lwm.hiddenShips)),F("lwm_resProd",JSON.stringify(ve.lwm.resProd)),F("lwm_raidPrios",JSON.stringify(ve.lwm.raidPrios)),F("lwm_planetInfo",JSON.stringify(ve.lwm.planetInfo)),F("lwm_calendar",JSON.stringify(ve.lwm.calendar)),F("lwm_planetData",JSON.stringify(ve.lwm.planetData)),F("lwm_tradeData",JSON.stringify(ve.lwm.tradeData)),Y("gameData").then((()=>{ve.setGMValues()}),(()=>{C("gameData promise rejected"),ne()}))}},pages:{inbox:{reportHandler:!1}},promises:{interval:{ms:200,count:150,ajaxTimeout:3e3},submenu:null,content:null},setGMValues:()=>{const e=e=>{void 0===ve.lwm[e][ve.gameData.playerID]&&(ve.lwm[e][ve.gameData.playerID]={}),O().each(ve.lwm[e][ve.gameData.playerID],(t=>{const n=O().map(ve.gameData.planets,(e=>e.string));-1===O().inArray(t,n)&&delete ve.lwm[e][ve.gameData.playerID][t]})),void 0===ve.lwm[e][ve.gameData.playerID][ve.gameData.planetCoords.string]&&(ve.lwm[e][ve.gameData.playerID][ve.gameData.planetCoords.string]=[])};$("lwm_lastTradeCoords","{}").then((t=>{try{ve.lwm.lastTradeCoords=JSON.parse(t)}catch(e){ve.lwm.lastTradeCoords={}}return e("lastTradeCoords"),ve.lwm.lastTradeCoords[ve.gameData.playerID][ve.gameData.planetCoords.string].length>q.get("coords_trades")&&(ve.lwm.lastTradeCoords[ve.gameData.playerID][ve.gameData.planetCoords.string].length=q.get("coords_trades")),F("lwm_lastTradeCoords",JSON.stringify(ve.lwm.lastTradeCoords)),$("lwm_lastFleetCoords","{}")})).then((t=>{try{ve.lwm.lastFleetCoords=JSON.parse(t)}catch(e){ve.lwm.lastFleetCoords={}}return e("lastFleetCoords"),ve.lwm.lastFleetCoords[ve.gameData.playerID][ve.gameData.planetCoords.string].length>q.get("coords_fleets")&&(ve.lwm.lastFleetCoords[ve.gameData.playerID][ve.gameData.planetCoords.string].length=q.get("coords_fleets")),F("lwm_lastFleetCoords",JSON.stringify(ve.lwm.lastFleetCoords)),$("lwm_resProd","{}")})).then((t=>{try{ve.lwm.resProd=JSON.parse(t)}catch(e){ve.lwm.resProd={}}return e("resProd"),ve.getGameData.setResProd(),F("lwm_resProd",JSON.stringify(ve.lwm.resProd)),$("lwm_raidPrios","{}")})).then((e=>{try{ve.lwm.raidPrios=JSON.parse(e)}catch(e){ve.lwm.raidPrios=[]}return F("lwm_raidPrios",JSON.stringify(ve.lwm.raidPrios)),$("lwm_planetInfo","{}")})).then((t=>{try{ve.lwm.planetInfo=JSON.parse(t)}catch(e){ve.lwm.planetInfo={}}return e("planetInfo"),ve.getGameData.setPlanetInfo(),F("lwm_planetInfo",JSON.stringify(ve.lwm.planetInfo)),$("lwm_hiddenShips","{}")})).then((t=>{try{ve.lwm.hiddenShips=JSON.parse(t)}catch(e){ve.lwm.hiddenShips={}}return e("hiddenShips"),F("lwm_hiddenShips",JSON.stringify(ve.lwm.hiddenShips)),$("lwm_productionFilters","{}")})).then((t=>{try{ve.lwm.productionFilters=JSON.parse(t)}catch(e){ve.lwm.productionFilters={}}return e("productionFilters"),F("lwm_productionFilters",JSON.stringify(ve.lwm.productionFilters)),$("lwm_calendar","[]")})).then((e=>{try{ve.lwm.calendar=JSON.parse(e)}catch(e){ve.lwm.calendar=[]}return F("lwm_calendar",JSON.stringify(ve.lwm.calendar)),$("lwm_planetData","{}")})).then((e=>{try{ve.lwm.planetData=JSON.parse(e)}catch(e){ve.lwm.planetData={}}return $("lwm_tradeData","{}")})).then((e=>{try{ve.lwm.tradeData=JSON.parse(e)}catch(e){ve.lwm.tradeData={}}return $("lwm_planetData_temp","{}")})).then((e=>{const t=JSON.parse(e);O().each(t,((e,t)=>{ve.lwm.planetData[e]=t})),F("lwm_planetData_temp","{}"),F("lwm_planetData",JSON.stringify(ve.lwm.planetData)),ve.loadStates.gdrive=!1,q.get("confirm_drive_sync")&&ye.save()})).finally((()=>{ve.loadStates.gdrive=!1}))},getGameData:{all:()=>{ve.gameData.planetCoords={string:`${j.my_galaxy}x${j.my_system}x${j.my_planet}`,galaxy:j.my_galaxy,system:j.my_system,planet:j.my_planet},ve.gameData.playerID=j.my_id,ve.gameData.playerName=j.my_username,ve.gameData.playerData.tarntechnologie=j.lvlTarntechnologie,O().when(ve.getGameData.overviewInfos(),ve.getGameData.planetInformation()).then((()=>{ve.loadStates.gameData=!1}),(()=>{ve.loadStates.gameData=!1,C("fetching gameData all failed")})),Y("gdrive").then((()=>{q.get("addon_fleet")||(we(),xe())}))},setResources:e=>{parseInt(e[0],10)===ve.gameData.resources[0]&&parseInt(e[1],10)===ve.gameData.resources[1]&&parseInt(e[2],10)===ve.gameData.resources[2]&&parseInt(e[3],10)===ve.gameData.resources[3]&&parseInt(e[4],10)===ve.gameData.resources[4]&&parseInt(e[5],10)===ve.gameData.resources[5]||((e=>{[ce,ue,de,fe,pe,he]=e.map((e=>parseInt(e,10)))})(e),ve.gameData.resources=e.map((e=>parseInt(e,10))))},setProductionInfos:e=>{O().each(e,((e,t)=>!Array.isArray(t)||(O().each(t,((e,t)=>{ve.gameData.productionInfos.push(t)})),!0)))},setResProd:()=>{[ve.lwm.resProd[ve.gameData.playerID][ve.gameData.planetCoords.string]]=j.getResourcePerHour()},setPlanetInfo:()=>{ve.lwm.planetInfo[ve.gameData.playerID][ve.gameData.planetCoords.string]={energy:parseInt(ve.gameData.overviewInfo.energy,10),slots:ve.gameData.overviewInfo.number_of_slots-ve.gameData.overviewInfo.number_of_buildings},F("lwm_planetInfo",JSON.stringify(ve.lwm.planetInfo))},setTradeData:()=>{void 0===ve.lwm.tradeData[ve.gameData.playerID]&&(ve.lwm.tradeData[ve.gameData.playerID]={}),ve.lwm.tradeData[ve.gameData.playerID][ve.gameData.planetCoords.string]=[],ve.gameData.tradeInfo.trade_offers.forEach((e=>{e.expires=(new Date).valueOf()+1e3*e.sec,e.isSave=1===e.my&&"###LWM::SAVE###"===e.comment,ve.lwm.tradeData[ve.gameData.playerID][ve.gameData.planetCoords.string].push(e)})),Object.keys(ve.lwm.tradeData).forEach((e=>{Object.keys(ve.lwm.tradeData[e]).forEach((t=>{ve.lwm.tradeData[e][t]=ve.lwm.tradeData[e][t].filter((e=>e.expires>=(new Date).valueOf()))}))})),F("lwm_tradeData",JSON.stringify(ve.lwm.tradeData)),q.get("confirm_drive_sync")&&ye.save()},planetInformation:()=>j.jQuery.ajax({url:"/ajax_request/get_all_planets_information.php",dataType:"json",success(e){ve.gameData.planetInformation=e,ve.gameData.planets=[],O().each(e,((e,t)=>{ve.gameData.planets.push({galaxy:t.Galaxy,system:t.System,planet:t.Planet,string:`${t.Galaxy}x${t.System}x${t.Planet}`})}))},timeout:ve.promises.interval.ajaxTimeout}),overviewInfos:()=>{const e=`galaxy_check=${ve.gameData.planetCoords.galaxy}&system_check=${ve.gameData.planetCoords.system}&planet_check=${ve.gameData.planetCoords.planet}`;return j.jQuery.ajax({url:"/ajax_request/get_ubersicht_info.php?"+e,dataType:"json",success(e){ve.gameData.overviewInfo=e},timeout:ve.promises.interval.ajaxTimeout})},addFleetInfo:e=>{$("fleetInfo","{}").then((t=>{ve.gameData.fleetInfo=JSON.parse(t),["all_informations","buy_ships_array","dron_observationens","dron_planetenscanners","fleet_informations","send_infos"].forEach((t=>{void 0===ve.gameData.fleetInfo[t]&&(ve.gameData.fleetInfo[t]=[]),ve.gameData.fleetInfo[t]=O().grep(ve.gameData.fleetInfo[t],(e=>e.homePlanet!==ve.gameData.planetCoords.string)),ve.gameData.fleetInfo[t]=O().grep(ve.gameData.fleetInfo[t],(e=>new Date(new Date(e.ComeTime).valueOf()+6048e5)>new Date)),e.all_fleets_info.filter((e=>e.type===t)).forEach((e=>{e.homePlanet=ve.gameData.planetCoords.string,ve.gameData.fleetInfo[t].push(e)})),ve.gameData.fleetInfo[t]=O().grep(ve.gameData.fleetInfo[t],(e=>"3"===e.Status||U()(e.ComeTime||e.DefendingTime||e.time).valueOf()>U()().valueOf()))})),ve.gameData.fleetInfo.View_Units=e.View_Units,F("fleetInfo",JSON.stringify(ve.gameData.fleetInfo)),"ubersicht"===j.active_page&&O()(".lwm_fleetwarning").text(j.jQuery.number(e.View_Units,0,",",".")+" SU")}))}}},_e=ve,be=()=>j.jQuery.ajax({url:`/ajax_request/get_flottenbewegungen_info.php?galaxy=${_e.gameData.planetCoords.galaxy}&system=${_e.gameData.planetCoords.system}&planet=${_e.gameData.planetCoords.planet}`,dataType:"json",timeout:_e.promises.interval.ajaxTimeout}),we=()=>j.jQuery.ajax({url:`/ajax_request/get_spionage_info.php?galaxy_check=${_e.gameData.planetCoords.galaxy}&system_check=${_e.gameData.planetCoords.system}&planet_check=${_e.gameData.planetCoords.planet}`,dataType:"json",data:{lwm_ignoreProcess:1},timeout:_e.promises.interval.ajaxTimeout}),xe=()=>j.jQuery.ajax({url:"/ajax_request/get_info_for_observationen_page.php",dataType:"json",data:{lwm_ignoreProcess:1},timeout:_e.promises.interval.ajaxTimeout}),ke=()=>j.jQuery.ajax({url:`/ajax_request/get_trade_offers.php?galaxy_check=${_e.gameData.planetCoords.galaxy}&system_check=${_e.gameData.planetCoords.system}&planet_check=${_e.gameData.planetCoords.planet}`,dataType:"json",data:{lwm_ignoreProcess:1},timeout:_e.promises.interval.ajaxTimeout});var Se=n(704),De=n.n(Se);const{alert:Te,confirm:Ie}=j,Ce=e=>{const t=_e.gameData.spionageInfos;if(0===t.planetenscanner_drons.length)return void Te("Unable to find drones to use");const n=O().grep(t.planetenscanner_drons,(e=>"IOB"===e.engine_type&&parseInt(e.number,10)>0));if(0===n.length)return void Te("Unable to find drones to use");const r=n[0].id,a={galaxy_check:j.my_galaxy,system_check:j.my_system,planet_check:j.my_planet,type:"2",dron_id:r,dron_quantity:1,galaxy_spionage:e[0],system_from_spionage:e[1],planet_from_spionage:e[2],planet_to_spionage:-1};j.jQuery.ajax({type:"POST",dataType:"json",url:"/ajax_request/send_spionage_action.php",data:a,timeout:_e.promises.interval.ajaxTimeout,error(e,t,n){Te(`${t}: ${n}`)},success(e){if("-1"===e||"500"===e||"-2"===e||"-4"===e||"-5"===e||"-6"===e||"-10"===e||"-11"===e||"-12"===e||"-20"===e||"-21"===e||"-22"===e||"-23"===e||"24"===e||"-30"===e)Te("some error occured :/");else if(e)if(e.error)Te(e.error);else if(e.dron_id){let t="";1===parseInt(e.real_number,10)?t=`Frurozin benötigt: ${e.Frurozin_d}, Ankunftszeit: ${e.string}. Möchtest du abschicken?`:e.real_number>1&&(t=`Frurozin benötigt: ${e.Frurozin_d}. Möchtest du abschicken?`),!0===Ie(t)&&j.jQuery.post("/ajax_request/put_planetenscanner_drons.php",{Units:e.Units,EngineType_Drone:e.EngineType_Drone,Speed_Drone:e.Speed_Drone,Name_Dron:e.Name_Dron,galaxy1:e.spionage_galaxy,system1:e.spionage_system_from,planet1:e.spionage_planet_from,planet2:e.spionage_planet_to,real_number:e.real_number,id_drones:e.dron_id,Frurozin_d:e.Frurozin_d,status_planete:e.status_planete,galaxy_check:j.my_galaxy,system_check:j.my_system,planet_check:j.my_planet},(e=>{"1"===e?(be(),we()):Te("some error occured :/")}))}else Te("some error occured :/");else j.logoutRequest()}})},Ne=e=>{const t=j.document.createElement("template");return t.innerHTML=e.trim(),t.content.childNodes.length>1?t.content.childNodes:t.content.firstChild},Oe=e=>j.document.querySelector(e);var Me=n(484),Ee=n.n(Me),je=n(285),Pe=n.n(je);Ee().extend(Pe());const Fe=e=>{const t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60);let r=e-3600*t-60*n;r=Math.round(100*r)/100;let a=t<10?"0"+t:t;return a+=":"+(n<10?"0"+n:n),a+=":"+(r<10?"0"+r:r),a},{document:$e}=j;let Ae=null;De()(U());const Le=e=>j.document.querySelector(e),Re={config:{tradeRefreshInterval:null,capacityRefreshInterval:null,clockInterval:null,resourceIntervals:null,clockIntervalTime:new Date},load(){q.get("addon_fleet")&&"flottenbewegungen"!==_e.loadStates.lastLoadedPage&&(Object.keys(_e.gameData.spionageInfos).length&&Object.keys(_e.gameData.observationInfo).length?be():xe().then((()=>we())).then((()=>{be()}))),Re.refreshTrades(),q.get("addon_clock")&&Re.addClockInterval(),q.get("addon_res")&&null===Re.config.resourceIntervals&&(Re.config.resourceIntervals=Re.addCustomResourceCounter())},unload(){null!==Ae&&(se(Ae),Ae=null),null!==Re.config.capacityRefreshInterval&&(se(Re.config.capacityRefreshInterval),Re.config.capacityRefreshInterval=null),null!==Re.config.clockInterval&&(se(Re.config.clockInterval),Re.config.clockInterval=null),null!==Re.config.resourceIntervals&&(Re.config.resourceIntervals(),Re.config.resourceCounter=null)},refreshTrades(){_e.firstLoad&&ke(),null===Re.config.tradeRefreshInterval&&(Re.config.tradeRefreshInterval=le((()=>{ke()}),6e4))},checkCapacities(){if(!q.get("trade_highlights"))return;const e=j.resourceCapacityArray,t=[Le("#roheisenAmount"),Le("#kristallAmount"),Le("#frubinAmount"),Le("#orizinAmount"),Le("#frurozinAmount"),Le("#goldAmount")],n=[j.Roheisen,j.Kristall,j.Frubin,j.Orizin,j.Frurozin,j.Gold],r=te();n.forEach(((n,a)=>{n+r[a]>e[a]?t[a].classList.add("redBackground"):t[a].classList.remove("redBackground")})),null===Re.config.capacityRefreshInterval&&(Re.config.capacityRefreshInterval=le((()=>{Re.checkCapacities()}),1e4))},addClockInterval(){null===Re.config.clockInterval&&(Re.config.clockIntervalTime=new Date,Re.config.clockInterval=le((()=>{const e=new Date,t=(e-Re.config.clockIntervalTime)/1e3;Re.config.clockIntervalTime=e,O()("[id*='clock'],[id*='Clock']").each(((e,n)=>{const r=O()(n);if(void 0===r.data("clock_seconds"))return!0;const a=parseFloat(r.data("clock_seconds"))-t;if(r.data("clock_seconds",a),a<0)r.html("--:--:--");else{const e=U().duration(parseInt(a,10),"seconds");r.attr("title",U()().add(parseInt(a,10),"seconds").format("YYYY-MM-DD HH:mm:ss")).addClass("popover").html(e.format("HH:mm:ss",{trim:!1,forceLength:!0}))}if("ubersicht"===_e.loadStates.lastLoadedPage&&_e.gameData.overviewInfo.arrayForInitClock.forEach((e=>{if(r.attr("id")===e.clock_id){const t=j.document.querySelector(`#${e.progress_bar_id} > div ul`);return null!==t&&(t.style.width=(e.total_secounds-r.data("clock_seconds"))/e.total_secounds*100+"%"),!1}return!0})),"research"===_e.loadStates.lastLoadedPage){const e=j.document.querySelector(".loadbarResearch");e&&(e.style.width=(_e.gameData.researchInfo.total_secounds_research-_e.gameData.researchInfo.secounds_research)/_e.gameData.researchInfo.total_secounds_research*100+"%")}if("construction"===_e.loadStates.lastLoadedPage){const e=j.document.querySelector("#constructionProgressBar_1_"+_e.gameData.constructionInfo.BuildingNumber);e&&(e.parentNode.style.width=(_e.gameData.constructionInfo.total_secounds1-_e.gameData.constructionInfo.secounds_building1)/_e.gameData.constructionInfo.total_secounds1*100+"%");const t=j.document.querySelector("#constructionProgressBar_1_"+_e.gameData.constructionInfo.BuildingNumber2);t&&(t.parentNode.style.width=(_e.gameData.constructionInfo.total_secounds2-_e.gameData.constructionInfo.secounds_building2)/_e.gameData.constructionInfo.total_secounds2*100+"%")}return!0}))}),1e3))},showFleetActivityGlobally:async e=>{if(q.get("addon_fleet")&&"flottenbewegungen"===e||!q.get("addon_fleet")&&"flottenbewegungen"!==e)return void(_e.loadStates.fleetaddon=!1);const t=[],n={coords:[],types:[],status:[]},r={coords:[...$e.querySelectorAll("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_coords option")].map((e=>e.value)),types:[...$e.querySelectorAll("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_types option")].map((e=>e.value)),status:[...$e.querySelectorAll("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_status option")].map((e=>e.value))},a=(()=>{const e=_e.const.lang.fleet;return{add:t=>{void 0===t.homePlanet||n.coords.map((e=>e.value)).includes(t.homePlanet)||r.coords.includes(t.homePlanet)||n.coords.push(Ne(`<option value="${t.homePlanet}">${t.homePlanet}</option>`)),void 0===t.Type||n.types.map((e=>e.value)).includes(t.Type)||r.types.includes(t.Type)||n.types.push(Ne(`<option value="${t.Type}">${e.types[t.Type]}</option>`)),void 0===t.Status||n.status.map((e=>e.value)).includes(t.Status)||r.status.includes(t.Status)||n.status.push(Ne(`<option value="${t.Status}">${e.status[t.Status]}</option>`))},process:async()=>{const e=Oe("#lwm_folottenbewegungenPageDiv table");e.querySelectorAll("tr.lwm-hideable").forEach((e=>e.classList.add("lwm-hide")));const t=Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_coords").value,n=Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_types").value,r=Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_status").value;e.querySelectorAll("tr.lwm-fleet").forEach((e=>{const a=e.getAttribute("data-coords"),i=e.getAttribute("data-type"),o=e.getAttribute("data-status");!(a!==t&&""!==t||i!==n&&""!==n||o!==r&&""!==r)&&e.classList.remove("lwm-hide"),q.get("addon_fleet_exclude_drones")&&"6"!==n&&"6"===i&&e.classList.add("lwm-hide")}));const a=await $("lwm_fleetDivState",!0);e.querySelectorAll("tr.lwm-hideable").forEach((e=>{e.classList.contains("lwm-hide")||!a?e.style.display="none":e.style.display=""})),e.querySelectorAll("tr.lwm-fleet").length>0&&0===[...e.querySelectorAll("tr.lwm-fleet")].filter((e=>!e.classList.contains("lwm-hide"))).length&&a?Oe("#lwm_fleets_drone_info").style.display="":Oe("#lwm_fleets_drone_info").style.display="none"}}})();if(null===Oe("#lwm_folottenbewegungenPageDiv")){const e=Ne('<div class="pageContent"><div id="lwm_folottenbewegungenPageDiv" style="display:none;"><table><tbody><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>Ankunft</td><td>Restflugzeit</td></tr></tbody></table></div></div>');Oe("#all").insertBefore(e,Oe("#all").firstChild),Oe("#lwm_folottenbewegungenPageDiv table tbody").appendChild(Ne('<tr id="lwm_fleets_drone_info" class="lwm-hideable" style="display:none;"><td colspan="3" style="text-align: center;"><span style="font-style: italic; width:100%;">Drones are hidden in the settings. To show them please specifically select them using the type dropdown.</span></td></tr>'))}const i=Oe("#lwm_folottenbewegungenPageDiv"),o=i.querySelector("table td:first-child"),s=await $("lwm_fleetDivState",!0);if(null===i.querySelector("i.toggle")){const e=Ne(`<i style="font-size: 1.5em;margin-top:0px;" class="toggle fas fa-${s?"minus":"plus"}-circle"></i>`);o.insertBefore(e,o.firstChild),i.querySelector("i.toggle").addEventListener("click",(e=>{$("lwm_fleetDivState",!0).then((e=>{F("lwm_fleetDivState",!e),a.process()})),e.target.classList.toggle("fa-plus-circle"),e.target.classList.toggle("fa-minus-circle")}))}if(null===i.querySelector("#lwm_fleetFilter_coords")){const e=Ne('<select id="lwm_fleetFilter_coords"><option value="">Pick Coords</option></select>');e.addEventListener("change",(e=>{F("lwm_fleetFilterCoordState",e.target.value),a.process()})),o.appendChild(e)}if(null===i.querySelector("#lwm_fleetFilter_types")){const e=Ne('<select id="lwm_fleetFilter_types"><option value="">Pick Type</option></select>');e.addEventListener("change",(e=>{F("lwm_fleetFilterTypeState",e.target.value),a.process()})),o.appendChild(e)}if(null===i.querySelector("#lwm_fleetFilter_status")){const e=Ne('<select id="lwm_fleetFilter_status"><option value="">Pick Status</option></select>');e.addEventListener("change",(e=>{F("lwm_fleetFilterStatusState",e.target.value),a.process()})),o.appendChild(e)}const l='<i class="fas fa-fighter-jet"></i>',c='<i class="fas fa-long-arrow-alt-left"></i>',u='<i class="fas fa-long-arrow-alt-right"></i>',d='<i class="fas fa-shield-alt"></i>',f='<i class="fas fa-exchange-alt"></i>',p='<i class="fas fa-search"></i>',h=e=>Fe(Ee()(e,"YYYY-MM-DD HH:mm:ss").diff(Ee()(),"second"));_e.gameData.fleetInfo.send_infos.forEach((e=>{a.add(e);let n="",r="",i="",o="";const s=`<b>${e.Galaxy}x${e.System}x${e.Planet}</b>`,c=e.Nickname_send,p=`<b>${e.Galaxy_send}x${e.System_send}x${e.Planet_send}</b>`,m=` <span class='lwm_fleet_duration' style='font-style:italic;'>Flugdauer: ${Fe(e.total_secounds)}.</span>`;switch(parseInt(e.Type,10)){case 1:n="color:#fff;background-color:#c70000;",r=`${l}Eine Flotte vom Planet ${s} greift deinen Planeten ${p} an.`,i=e.ComeTime,o="clock_"+e.clock_id;break;case 2:r=`${f}Fremde Flotte vom ${s} (${c}) transportiert Rohstoffe nach ${p}.`,i=e.ComeTime,o="clock_"+e.clock_id;break;case 3:1===parseInt(e.Status,10)?(r=`${d}Eine Flotte vom Planet ${s} verteidigt deinen Planeten ${p}.`,i=e.ComeTime,o="clock_"+e.clock_id):3===parseInt(e.Status,10)&&(r=`${d}Eine Flotte von Planet ${s} verteidigt deinen Planeten ${p}.`,i=e.DefendingTime,o=null==e.DefendingTime?"unbefristet":"clock_"+e.clock_id);break;case 5:r=`${u}Fremde Flotte von ${s} wird überstellt nach ${p}.`,i=e.ComeTime,o="clock_"+e.clock_id}t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.Galaxy_send}x${e.System_send}x${e.Planet_send}" style=${n}><td>${r}${m}</td><td>${i}</td><td id='${o}'>${h(i)}</td></tr>`))})),_e.gameData.fleetInfo.all_informations.forEach((e=>{e.Type="6",e.Status="1",a.add(e),t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.homePlanet}"><td>${p}Eigene ${e.name} von Planet <b>${e.homePlanet}</b> ist unterwegs nach ( <b>${e.galaxy}x${e.system}</b> )</td><td>${e.time}</td><td id='clock_${e.clock_id}'>${h(e.time)}</td></tr>`))})),_e.gameData.fleetInfo.dron_observationens.forEach((e=>{e.Type="6",e.Status="1",a.add(e),t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.homePlanet}"><td>${p}Eigene ${e.name} von Planet <b>${e.homePlanet}</b> ist unterwegs nach ( <b>${e.galaxy}x${e.system}x${e.planet}</b> )</td><td>${e.time}</td><td id='clock_${e.clock_id}'>${h(e.time)}</td></tr>`))})),_e.gameData.fleetInfo.dron_planetenscanners.forEach((e=>{e.Type="6",e.Status="1",a.add(e),t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.homePlanet}"><td>${p}Eigene ${e.name} von Planet <b>${e.homePlanet}</b> ist unterwegs nach ( <b>${e.galaxy}x${e.system}x${e.planet}</b> )</td><td>${e.time}</td><td id='clock_${e.clock_id}'>${h(e.time)}</td></tr>`))})),_e.gameData.fleetInfo.buy_ships_array.forEach((e=>{a.add(e),t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.homePlanet}"><td>${u}Flotte vom Handelsposten wird überstellt nach <b>${e.homePlanet}</b>.</td><td>${e.time}</td><td id='clock_${e.clock_id}'>${h(e.time)}</td></tr>`))})),_e.gameData.fleetInfo.fleet_informations.forEach((e=>{a.add(e);let n="",r="",i="";const o=`<b>${e.Galaxy_send}x${e.System_send}x${e.Planet_send}</b>`,s=e.Nickname_send,p=`<b>${e.homePlanet}</b>`,m=`<i class="fas fa-wifi faa-flash animated" onclick="changeContent('flotten_view', 'third', 'Flotten-Kommando', '${e.id}')" style="cursor:pointer;margin-right:5px;color:#66f398"></i>`,g=`<i class="fas fa-info-circle" onclick="changeContent('flotten_view', 'third', 'Flotten-Kommando', '${e.id}')" style="cursor:pointer;margin-right:5px;color:#3c3ff5"></i>`,y=` <span class='lwm_fleet_duration' style='font-style:italic;'>Flugdauer: ${Fe(e.total_secounds)}.</span>`,v=re([e.Galaxy_send,e.System_send,e.Planet_send]),_=_e.gameData.spionageInfos.planetenscanner_drons.filter((e=>"IOB"===e.engine_type&&parseInt(e.number,10)>0)),b=v.length?`<i onclick="${q.get("obs_opentabs")?`window.open('view/content/new_window/observationen_view.php?id=${v[0].id}')`:`openObservationWindow(${v[0].id})`}" style="cursor:pointer;" class="fas fa-search-plus fa2x"></i>`:_.length?`<i data-coords="${e.Galaxy_send}x${e.System_send}x${e.Planet_send}" style="cursor:pointer;" class="fas fa-search fa2x"></i>`:"",w=parseInt(e.Status,10);switch(e.Type){case"1":n="Eigene Flotte vom Planet "+p,n=1===w?l+b+m+n+" greift Planet ":c+g+n+" kehrt von ",n+=`${o} (${s})`,n+=1===w?" an.":" zurück.",r=e.ComeTime,i="clock_"+e.clock_id;break;case"2":n="Eigene Flotte vom Planet "+p,n=1===w?f+m+n+" transportiert Rohstoffe nach ":c+g+n+" kehrt zurück von ",n+=`${o} (${s}).`,r=e.ComeTime,i="clock_"+e.clock_id;break;case"3":n="Eigene Flotte vom Planet "+p,1===w?n=d+g+n+" verteidigt Planet ":2===w?n=c+m+n+" kehrt zurück vom ":3===w&&(n=d+g+n+" verteidigt den Planeten "),n+=`${o}( ${s} )`,3!==w?(r=e.ComeTime,i="clock_"+e.clock_id):(r=e.DefendingTime,i=null==e.DefendingTime?"unbefristet":"clock_"+e.clock_id);break;case"4":n=`${'<i class="fas fa-globe"></i>'+m}Eigene Flotte von Planet ${p} kolonisiert Planeten ${o}.`,r=e.ComeTime,i="clock_"+e.clock_id;break;case"5":n=`${u+m}Eigene Flotte von Planet ${p} wird überstellt nach ${o} ( ${s} ).`,r=e.ComeTime,i="clock_"+e.clock_id}t.push(Ne(`<tr class="lwm-hideable lwm-fleet" data-type="${e.Type||""}" data-status="${e.Status||""}" data-coords="${e.homePlanet}"><td>${n}${y}</td><td>${r}</td><td id='${i}'>${h(r)}</td></tr>`))})),t.sort(((e,t)=>Ee()(e.querySelector("td:last-child").textContent,"HH:mm:ss").unix()-Ee()(t.querySelector("td:last-child").textContent,"HH:mm:ss").unix())),i.querySelectorAll("table tr.lwm-fleet").forEach((e=>{e.parentNode.removeChild(e)})),t.forEach((e=>{Oe("#lwm_folottenbewegungenPageDiv table tbody").appendChild(e)})),j.document.querySelectorAll("#lwm_folottenbewegungenPageDiv table tbody tr .fa-search").forEach((e=>{e.addEventListener("click",(e=>{Ce(e.target.getAttribute("data-coords").split("x"))}))})),n.coords.forEach((e=>{Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_coords").appendChild(e)})),n.types.forEach((e=>{Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_types").appendChild(e)})),n.status.forEach((e=>{Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_status").appendChild(e)}));const m=await $("lwm_fleetFilterCoordState",""),g=await $("lwm_fleetFilterTypeState",""),y=await $("lwm_fleetFilterStatusState","");[...Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_coords").querySelectorAll("option")].map((e=>e.value)).includes(m)?Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_coords").value=m:F("lwm_fleetFilterCoordState",""),[...Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_types").querySelectorAll("option")].map((e=>e.value)).includes(g)?Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_types").value=g:F("lwm_fleetFilterTypeState",""),[...Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_status").querySelectorAll("option")].map((e=>e.value)).includes(y)?Oe("#lwm_folottenbewegungenPageDiv #lwm_fleetFilter_status").value=y:F("lwm_fleetFilterStatusState",""),a.process(),0===t.length?(Oe("#lwm_folottenbewegungenPageDiv").style.display="none",Oe("#lwm_folottenbewegungenPageDiv").style.marginBottom="0px"):(Oe("#lwm_folottenbewegungenPageDiv").style.display="",Oe("#lwm_folottenbewegungenPageDiv").style.marginBottom="20px"),q.get("addon_clock")&&(clearInterval(j.timeinterval_flottenbewegungen),J()),_e.loadStates.fleetaddon=!1,null===Ae&&(Ae=le((()=>{be()}),3e4))},addCustomResourceCounter:()=>{j.stopWorkerForResource(),j.stopWorkerForResource=()=>{},me=new Date;const e=le((()=>{const e=new Date,t=(e-me)/1e3;me=e;const{Energy:n,lvlRoheisen:r,lvlKristall:a,lvlFrubin:i,lvlOrizin:o,lvlFrurozin:s,lvlGold:l,planeten_klass:c,rase:u,RoheisenLagerCapacity:d,KristallLagerCapacity:f,FrubinLagerCapacity:p,OrizinLagerCapacity:h,FrurozinLagerCapacity:m,GoldLagerCapacity:g}=j;let y=.5;n>=0&&(y=1),-1===n&&(y=.9),-2===n&&(y=.8),-3===n&&(y=.7),-4===n&&(y=.6);const v=function(e,t,n){const{bonus_frubin:r,bonus_furozin:a,bonus_kristall:i,bonus_orizin:o,bonus_roheisen:s,add_frubin:l,add_furozin:c,add_kristall:u,add_orizin:d,add_roheisen:f}=function(e,t){let n=0,r=0,a=0,i=0,o=0,s=0,l=0,c=0,u=0,d=0;switch(e){case"M":break;case"N":n=.1,r=.15,a=.05,i=.1,o=.05,s=-1,l=1,c=-1,u=1,d=1;break;case"O":n=.15,r=.2,a=.1,i=.1,o=.2,s=1,l=1,c=-1,u=-1,d=-1;break;case"P":n=.05,r=.05,o=.05,s=-1,l=1,d=1;break;case"Q":n=.05,r=.1,a=.05,o=.05,s=1,l=-1,c=1,d=1;break;case"R":n=.2,r=.15,a=.3,i=.25,o=.35,s=-1,l=-1,c=1,u=1,d=1;break;case"T":n=.05,r=.15,a=.05,o=.05,s=1,l=1,c=1,d=1;break;case"U":r=.1,a=.2,i=.05,o=.15,l=-1,c=-1,u=-1,d=-1;break;case"V":n=.1,i=.1,s=1,u=-1;break;case"S":i=.15,u=1;break;case"W":r=.05,a=.1,i=.05,o=.05,l=-1,c=-1,u=1,d=1;break;case"X":n=.4,r=.1,a=.25,i=.15,o=.25,s=1,l=-1,c=-1,u=-1,d=-1;break;case"Y":n=.15,r=.2,i=.2,o=.15,s=-1,l=1,u=-1,d=-1;break;case"A":r=.1,o=.05,l=1,d=1;break;case"B":n=.1,r=.1,o=.1,s=1,l=1,d=-1;break;case"C":r=.05,a=.05,o=.2,l=-1,c=-1,d=1}return"Xianier"==t&&(s>=0?(n+=.1,s=1):n>.1?(n-=.1,s=-1):n<.1?(n=.1-n,s=1):.1==n&&(n-=.1,s=0),l>=0?(r+=.1,l=1):r>.1?(r-=.1,l=-1):r<.1?(r=.1-r,l=1):.1==r&&(r-=.1,l=0),c>=0?(a+=.1,c=1):a>.1?(a-=.1,c=-1):a<.1?(a=.1-a,c=1):.1==a&&(a-=.1,c=0),u>=0?(i+=.1,u=1):i>.1?(i-=.1,u=-1):i<.1?(i=.1-i,u=1):.1==i&&(i-=.1,u=0),d>=0?(o+=.1,d=1):o>.1?(o-=.1,d=-1):o<.1?(o=.1-o,d=1):.1==o&&(o-=.1,d=0)),{bonus_frubin:a,bonus_furozin:o,bonus_kristall:r,bonus_orizin:i,bonus_roheisen:n,add_frubin:c,add_furozin:d,add_kristall:l,add_orizin:u,add_roheisen:s}}(t,n),p=e[0],h=e[1],m=e[2],g=e[3],y=e[4],v=e[5];let _=0,b=0,w=0,x=0,k=0,S=0;return _=1==p?11/3600:2==p?19/3600:(4.5*p*p-10.5*p+26)/3600,b=1==h?.0025:2==h?15/3600:(3.8*h*h-10.5*h+23)/3600,w=1==m?7/3600:2==m?11/3600:(3.5*m*m-10.5*m+20)/3600,x=1==g?7/3600:2==g?11/3600:(3.5*g*g-10.5*g+20)/3600,k=0==y?0:1==y?4/3600:2==y?.0025:(3*y*y-10.5*y+15)/3600,S=0==v?0:1==v?1/3600:2==v?2/3600:v*(v/2)/3600,_+=_*s*f,b+=b*u*i,w+=w*l*r,x+=x*d*o,k+=k*c*a,S=S,[_,b,w,x,k,S]}([r,a,i,o,s,l],c,u).map((e=>e*t)),_=v[0]*y,b=v[1]*y,w=v[2]*y,x=v[3]*y,k=v[4]*y,S=v[5]*y;ce+_<d?ce+=_:ce=d,ue+b<f?ue+=b:ue=f,de+w<p?de+=w:de=p,fe+x<h?fe+=x:fe=h,pe+k<m?pe+=k:pe=m,he+S<g?he+=S:he=g,j.roheisen_kredit_rest>0&&(j.roheisen_kredit_rest>j.roheisen_kredit_per_sec*t?(ce-=j.roheisen_kredit_per_sec*t,j.roheisen_kredit_rest-=j.roheisen_kredit_per_sec*t):(ce-=j.roheisen_kredit_rest,j.roheisen_kredit_rest=0)),j.kristall_kredit_rest>0&&(j.kristall_kredit_rest>j.kristall_kredit_per_sec*t?(ue-=j.kristall_kredit_per_sec*t,j.kristall_kredit_rest-=j.kristall_kredit_per_sec*t):(ue-=j.kristall_kredit_rest,j.kristall_kredit_rest=0)),j.frubin_kredit_rest>0&&(j.frubin_kredit_rest>j.frubin_kredit_per_sec*t?(de-=j.frubin_kredit_per_sec*t,j.frubin_kredit_rest-=j.frubin_kredit_per_sec*t):(de-=j.frubin_kredit_rest,j.frubin_kredit_rest=0)),j.orizin_kredt_rest>0&&(j.orizin_kredt_rest>j.orizin_kredt_per_sec*t?(fe-=j.orizin_kredt_per_sec*t,j.orizin_kredt_rest-=j.orizin_kredt_per_sec*t):(fe-=j.orizin_kredt_rest,j.orizin_kredt_rest=0)),j.frurozin_kredit_rest>0&&(j.frurozin_kredit_rest>j.frurozin_kredit_per_sec*t?(pe-=j.frurozin_kredit_per_sec*t,j.frurozin_kredit_rest-=j.frurozin_kredit_per_sec*t):(pe-=j.frurozin_kredit_rest,j.frurozin_kredit_rest=0)),j.document.querySelector("#roheisenAmount").innerHTML=j.jQuery.number(Math.floor(ce),0,",","."),j.document.querySelector("#kristallAmount").innerHTML=j.jQuery.number(Math.floor(ue),0,",","."),j.document.querySelector("#frubinAmount").innerHTML=j.jQuery.number(Math.floor(de),0,",","."),j.document.querySelector("#orizinAmount").innerHTML=j.jQuery.number(Math.floor(fe),0,",","."),j.document.querySelector("#frurozinAmount").innerHTML=j.jQuery.number(Math.floor(pe),0,",","."),j.document.querySelector("#goldAmount").innerHTML=j.jQuery.number(Math.floor(he),0,",","."),j.Roheisen_Full_Storage=Math.round(100*ce/d),j.Kristall_Full_Storage=Math.round(100*ue/f),j.Frubin_Full_Storage=Math.round(100*de/p),j.Orizin_Full_Storage=Math.round(100*fe/h),j.Frurozin_Full_Storage=Math.round(100*pe/m),j.Gold_Full_Storage=Math.round(100*he/g);let D=Math.round(j.Roheisen_Full_Storage/10),T=Math.round(j.Kristall_Full_Storage/10),I=Math.round(j.Frubin_Full_Storage/10),C=Math.round(j.Orizin_Full_Storage/10),N=Math.round(j.Frurozin_Full_Storage/10),O=Math.round(j.Gold_Full_Storage/10);if(q.get("addon_clock"))j.document.querySelector("#loadbarRoheisen").style.width=j.Roheisen_Full_Storage+"%",j.document.querySelector("#loadbarKristall").style.width=j.Kristall_Full_Storage+"%",j.document.querySelector("#loadbarFrubin").style.width=j.Frubin_Full_Storage+"%",j.document.querySelector("#loadbarOrizin").style.width=j.Orizin_Full_Storage+"%",j.document.querySelector("#loadbarFrurozin").style.width=j.Frurozin_Full_Storage+"%",j.document.querySelector("#loadbarGold").style.width=j.Gold_Full_Storage+"%";else{for(let e=0;e<=D;e+=1)j.jQuery("#roheisenStorageBox"+e).css("opacity","1.0");D+=1;for(let e=D;e<=10;e+=1)j.jQuery("#roheisenStorageBox"+e).css("opacity","0.2");for(let e=0;e<=T;e+=1)j.jQuery("#kristallStorageBox"+e).css("opacity","1.0");T+=1;for(let e=T;e<=10;e+=1)j.jQuery("#kristallStorageBox"+e).css("opacity","0.2");for(let e=0;e<=I;e+=1)j.jQuery("#frubinStorageBox"+e).css("opacity","1.0");I+=1;for(let e=I;e<=10;e+=1)j.jQuery("#frubinStorageBox"+e).css("opacity","0.2");for(let e=0;e<=C;e+=1)j.jQuery("#orizinStorageBox"+e).css("opacity","1.0");C+=1;for(let e=C;e<=10;e+=1)j.jQuery("#orizinStorageBox"+e).css("opacity","0.2");for(let e=0;e<=N;e+=1)j.jQuery("#frurozinStorageBox"+e).css("opacity","1.0");N+=1;for(let e=N;e<=10;e+=1)j.jQuery("#frurozinStorageBox"+e).css("opacity","0.2");for(let e=0;e<=O;e+=1)j.jQuery("#goldStorageBox"+e).css("opacity","1.0");O+=1;for(let e=O;e<=10;e+=1)j.jQuery("#goldStorageBox"+e).css("opacity","0.2")}}),1e3);return()=>{se(e)}},calendar:{storeOverview(e){const t=JSON.stringify(Re.calendar.getData("building",_e.gameData.playerID));Re.calendar.deleteCat("building",_e.gameData.playerID),O().each(e.all_planets_for_use,((e,t)=>{const n=`${t.galaxy_pom}x${t.system_pom}x${t.planet_pom}`;""!==t.BuildingName&&Re.calendar.store({playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:n,type:"building",name:t.BuildingName,text:t.BuildingName,duration:0,ts:U()(t.FinishTimeForBuilding).valueOf()}),""!==t.BuildingName2&&Re.calendar.store({playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:n,type:"building",name:t.BuildingName2,text:t.BuildingName2,duration:0,ts:U()(t.FinishTimeForBuilding2).valueOf()})}));const n=JSON.stringify(Re.calendar.getData("building",_e.gameData.playerID)),r=JSON.stringify(Re.calendar.getData("research",_e.gameData.playerID));Re.calendar.deleteCat("research",_e.gameData.playerID),void 0!==e.research_info&&""!==e.research_info.ResearchName&&Re.calendar.store({playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:`${e.research_info.researchGalaxy}x${e.research_info.researchSystem}x${e.research_info.researchPlanet}`,type:"research",name:e.research_info.ResearchName,text:e.research_info.ResearchName,duration:0,ts:U()(e.research_info.FinishTime).valueOf()});const a=JSON.stringify(Re.calendar.getData("research",_e.gameData.playerID));F("lwm_calendar",JSON.stringify(_e.lwm.calendar)),Re.calendar.truncateData()&&r===a&&t===n||!q.get("confirm_drive_sync")||ye.save()},storeFleets(e){const t=_e.const.lang.fleet,n=JSON.stringify(Re.calendar.getData("fleet",_e.gameData.playerID,_e.gameData.planetCoords.string));_e.lwm.calendar=_e.lwm.calendar.filter((e=>!("fleet"===e.type&&new Date(e.ts+6048e5)<new Date))),Re.calendar.deleteCat("fleet",_e.gameData.playerID,_e.gameData.planetCoords.string),O().each(["all_informations","buy_ships_array","dron_observationens","dron_planetenscanners","fleet_informations","send_infos"],((n,r)=>{O().each(e[r],((e,n)=>{const r=n.ComeTime||n.DefendingTime||n.time;return!r||(Re.calendar.store({playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:_e.gameData.planetCoords.string,type:"fleet",name:n.id||0,duration:0,text:`Flotte Typ ${t.types[n.Type]||n.name||"Handelsposten"} mit Status ${t.status[n.Status||1]} und Coords ${n.Galaxy_send||n.galaxy||j.my_galaxy}x${n.System_send||n.system||j.my_system}x${n.Planet_send||n.planet||j.my_planet}`,ts:U()(r).valueOf()}),!0)}))}));const r=JSON.stringify(Re.calendar.getData("fleet",_e.gameData.playerID,_e.gameData.planetCoords.string));F("lwm_calendar",JSON.stringify(_e.lwm.calendar)),q.get("confirm_drive_sync")&&n!==r&&ye.save()},storeProd(e){const t=JSON.stringify(Re.calendar.getData("defense",_e.gameData.playerID,_e.gameData.planetCoords.string));Re.calendar.deleteCat("defense",_e.gameData.playerID,_e.gameData.planetCoords.string);let n={},r=1;O().each(e.planet_defense,((e,t)=>{const a={playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:_e.gameData.planetCoords.string,type:"defense",name:t.name,text:t.name,duration:60*t.sati*60+60*t.minuti+t.sekunde,ts:U()(t.finishTime).valueOf()};n.type===a.type&&n.name===a.name&&n.duration<3600&&n.duration===a.duration?(r+=1,_e.lwm.calendar[_e.lwm.calendar.length-1].text=`${r}x ${t.name} (every ${U().duration(n.duration,"seconds").format("HH:mm:ss",{trim:!1,forceLength:!0})})`,_e.lwm.calendar[_e.lwm.calendar.length-1].ts=U()(t.finishTime).valueOf()):(r=1,Re.calendar.store(a)),n=a}));const a=JSON.stringify(Re.calendar.getData("defense",_e.gameData.playerID,_e.gameData.planetCoords.string)),i=JSON.stringify(Re.calendar.getData("ships",_e.gameData.playerID,_e.gameData.planetCoords.string));Re.calendar.deleteCat("ships",_e.gameData.playerID,_e.gameData.planetCoords.string),n={},r=1,O().each(e.ships,((e,t)=>{const a={playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:_e.gameData.planetCoords.string,type:"ships",name:t.name,text:t.name,duration:60*t.sati*60+60*t.minuti+t.sekunde,ts:U()(t.finishTime).valueOf()};n.type===a.type&&n.name===a.name&&n.duration<3600&&n.duration===a.duration?(r+=1,_e.lwm.calendar[_e.lwm.calendar.length-1].text=`${r}x ${t.name} (every ${U().duration(n.duration,"seconds").format("HH:mm:ss",{trim:!1,forceLength:!0})})`,_e.lwm.calendar[_e.lwm.calendar.length-1].ts=U()(t.finishTime).valueOf()):(r=1,Re.calendar.store(a)),n=a}));const o=JSON.stringify(Re.calendar.getData("ships",_e.gameData.playerID,_e.gameData.planetCoords.string));F("lwm_calendar",JSON.stringify(_e.lwm.calendar)),!q.get("confirm_drive_sync")||t===a&&i===o||ye.save()},storeTrades(e){const t=JSON.stringify(Re.calendar.getData("trades",_e.gameData.playerID,_e.gameData.planetCoords.string));Re.calendar.deleteCat("trades",_e.gameData.playerID,_e.gameData.planetCoords.string),O().each(e.trade_offers,((e,t)=>(parseInt(t.galaxy,10)===parseInt(_e.gameData.planetCoords.galaxy,10)&&parseInt(t.system,10)===parseInt(_e.gameData.planetCoords.system,10)&&parseInt(t.planet,10)===parseInt(_e.gameData.planetCoords.planet,10)||Re.calendar.store({playerID:_e.gameData.playerID,playerName:_e.gameData.playerName,coords:_e.gameData.planetCoords.string,type:"trades",text:`Trade ${t.my?"with ":"from "}${t.galaxy}x${t.system}x${t.planet} (${"1"===t.accept?"Running":"Pending"})${t.comment}`,ts:U()("0"===t.accept?t.time.replace(/\//g,"-"):t.time_acc.replace(/\//g,"-")).valueOf()}),!0)));const n=JSON.stringify(Re.calendar.getData("trades",_e.gameData.playerID,_e.gameData.planetCoords.string));F("lwm_calendar",JSON.stringify(_e.lwm.calendar)),q.get("confirm_drive_sync")&&t!==n&&ye.save()},store(e){0===_e.lwm.calendar.filter((t=>JSON.stringify(t)===JSON.stringify(e))).length&&_e.lwm.calendar.push(e)},truncateData(){const e=JSON.stringify(Re.calendar.getData());return _e.lwm.calendar=_e.lwm.calendar.filter((e=>e.ts>U()().valueOf())),e===JSON.stringify(Re.calendar.getData())},deleteCat(e,t,n=null){_e.lwm.calendar=_e.lwm.calendar.filter((r=>!(r.type===e&&r.playerID===t&&(r.coords===n||null===n))))},getData:(e=null,t=null,n=null)=>_e.lwm.calendar.filter((r=>!(r.type!==e&&null!==e||r.playerID!==t&&null!==t||r.coords!==n&&null!==n))).sort(((e,t)=>e.ts-t.ts))},planetData:{storeDataFromSpio(){$("lwm_planetData_temp","{}").then((e=>{const t=JSON.parse(e);if(0===O()("#buildingsLevel").length)return;let n=0;const r=O()("#researchLevel").text().match(/Tarntechnologie (\d+)/);null===r?n=0:[,n]=r;const a=j.document.querySelector("#tableOS th").textContent.match(/\d*x\d*x\d*/)[0];void 0===t[a]&&(t[a]={}),t[a].Tarntechnologie=parseInt(n,10),F("lwm_planetData_temp",JSON.stringify(t))}))}}},Be=Re,qe=e=>["get_inbox_message","get_message_info"].includes(e),Ve={move(e){const t={produktion:["raumdock"],aktuelle_produktion:["raumdock"],schiffskomponenten:["raumdock"],recycling_anlage:["raumdock"],raumdock:["flottenbewegungen","trade_offer"],flottenkommando:["flottenbewegungen","trade_offer"],get_info_for_flotten_pages:["flottenbewegungen","trade_offer"],get_info_for_flotten_view:["flottenbewegungen","trade_offer"],get_change_flotten_info:["flottenbewegungen","trade_offer"],flotten_view:["flottenbewegungen","trade_offer"],flottenbasen_planet:["flottenbewegungen","trade_offer"],flottenbasen_all:["flottenbewegungen","trade_offer"],fremde_flottenbasen:["flottenbewegungen","trade_offer"],flottenbewegungen:["raumdock","spionage","flottenkommando","flottenbewegungen"]};_e.loadStates.submenu=!0,_e.promises.submenu=Y("content"),_e.promises.submenu.then((()=>{if(O()("#link .navButton, #veticalLink .navButton").each(((n,r)=>{if(O()(r).attr("data-page",O()(r).attr("onclick").match(/('|")([a-z0-9A-Z_]*)('|")/)[2]),t[e]&&t[e].includes(O()(r).attr("data-page")))return O()(r).remove(),!0;switch(O()(r).find("i").remove(),O()(r).attr("data-page")){case"trade_offer":O()(r).prepend('<i class="fas fa-handshake"></i>');break;case"handelsposten":O()(r).prepend('<i class="fas fa-dollar-sign"></i>');break;case"building_tree":O()(r).prepend('<i class="fas fa-warehouse"></i>');break;case"research_tree":O()(r).prepend('<i class="fas fa-database"></i>');break;case"shiptree":O()(r).prepend('<i class="fas fa-fighter-jet"></i>');break;case"verteidigung_tree":O()(r).prepend('<i class="fas fa-shield-alt"></i>');break;case"planeten_tree":O()(r).prepend('<i class="fas fa-globe"></i>');break;case"rohstoffe":O()(r).prepend('<i class="fas fa-gem"></i>');break;case"eigenschaften":O()(r).prepend('<i class="fas fa-chart-bar"></i>');break;case"highscore_player":O()(r).prepend('<i class="fas fa-trophy"></i>');break;case"highscore_alliance":O()(r).prepend('<i class="fas fa-users"></i>');break;case"newPrivateMessage":O()(r).prepend('<i class="fas fa-envelope-open"></i>');break;case"privateMessageList":O()(r).prepend('<i class="fas fa-envelope"></i>');break;case"notifiscationMessageList":O()(r).prepend('<i class="fas fa-bell"></i>');break;case"reportMessageList":O()(r).prepend('<i class="fas fa-bomb"></i>'),O()(r).html(O()(r).html().replace("Kampf-Berichte","KBs"));break;case"adminMessageList":O()(r).prepend('<i class="fas fa-user-cog"></i>');break;case"delitedMessageList":O()(r).prepend('<i class="fas fa-trash-alt"></i>');break;case"flottenbewegungen":O()(r).prepend('<i class="fas fa-wifi"></i>');break;case"raumdock":O()(r).prepend('<i class="fas fa-plane-arrival"></i>');break;case"flottenkommando":O()(r).prepend('<i class="fas fa-plane-departure"></i>');break;case"spionage":O()(r).prepend('<i class="fas fa-search"></i>');break;case"aktuelle_produktion":O()(r).prepend('<i class="fas fa-tools"></i>');break;case"schiffskomponenten":O()(r).prepend('<i class="fas fa-cogs"></i>');break;case"upgrade_ships":O()(r).prepend('<i class="fas fa-arrow-alt-circle-up"></i>');break;case"verteidigung":O()(r).prepend('<i class="fas fa-shield-alt"></i>');break;case"produktion":O()(r).prepend('<i class="fas fa-fighter-jet"></i>');break;case"upgrade_defence":O()(r).prepend('<i class="fas fa-arrow-alt-circle-up"></i>');break;case"recycling_defence":case"recycling_anlage":O()(r).prepend('<i class="fas fa-recycle"></i>');break;case"new_trade_offer":O()(r).prepend('<i class="fas fa-plus-circle"></i>');break;case"flottenbasen_planet":case"flottenbasen_all":case"fremde_flottenbasen":O()(r).prepend('<i class="fas fa-plane-departure"></i>');break;case"bank":O()(r).prepend('<i class="fas fa-university"></i>');break;case"kreditinstitut":O()(r).prepend('<i class="fab fa-cc-visa"></i>')}return!0})),P.matchMedia("(min-width: 849px)").matches){let e=O()(".menu .secound_line");e.length||(e=O()('<div class="secound_line"></div>'),O()(".menu").append(e)),O()("#link .navButton, #veticalLink .navButton").appendTo(e),e.toggle(e.find(".navButton").length>0)}else{let e=O()(".pageContent #link");e.length||(e=O()('<div id="link"></div>'),O()(".pageContent").first().prepend(e)),O()("#link .navButton, #veticalLink .navButton").appendTo(e),e.toggleClass("active",e.find(".navButton").length>0)}_e.loadStates.submenu=!1})).catch((e=>{I(e),ne(),_e.loadStates.submenu=!1}))},clear(){O()(".secound_line .navButton").remove()}},Ye=(e,t,n,r,a)=>{const i=parseInt(t[0].innerText.replace(".",""),10),o=parseInt(t[1].innerText.replace(".",""),10),s=parseInt(t[2].innerText.replace(".",""),10),l=parseInt(t[3].innerText.replace(".",""),10),c=parseInt(t[4].innerText.replace(".",""),10),u=parseInt(t[5].innerText.replace(".",""),10),d=()=>{let e=parseInt(r[a],10);e<1&&(e=1);const d=i*e,f=o*e,p=s*e,h=l*e,m=c*e,g=u*e;t[0].classList.toggle("noResource",d>j.Roheisen),t[1].classList.toggle("noResource",f>j.Kristall),t[2].classList.toggle("noResource",p>j.Frubin),t[3].classList.toggle("noResource",h>j.Orizin),t[4].classList.toggle("noResource",m>j.Frurozin),t[5].classList.toggle("noResource",g>j.Gold),d>j.Roheisen||f>j.Kristall||p>j.Frubin||h>j.Orizin||m>j.Frurozin||g>j.Gold?(n.style.opacity="0.5",n.style.pointerEvents="none"):(n.style.opacity="1",n.style.pointerEvents="auto"),t[0].innerHTML=j.jQuery.number(d,0,",","."),t[1].innerHTML=j.jQuery.number(f,0,",","."),t[2].innerHTML=j.jQuery.number(p,0,",","."),t[3].innerHTML=j.jQuery.number(h,0,",","."),t[4].innerHTML=j.jQuery.number(m,0,",","."),t[5].innerHTML=j.jQuery.number(g,0,",",".")};"value"!==a||r.getAttribute("data-prod-calc")||(r.addEventListener("change",d),r.setAttribute("data-prod-calc",!0)),e.addEventListener("click",d)},{alert:ze,confirm:He}=j,We=e=>{const t=_e.gameData.spionageInfos;if(0===t.observations_drons.length)return void ze("Unable to find drones to use");const n=O().grep(t.observations_drons,(e=>"IOB"===e.engine_type&&parseInt(e.number,10)>0));if(0===n.length)return void ze("Unable to find drones to use");const r=n[0].id,a={galaxy_check:j.my_galaxy,system_check:j.my_system,planet_check:j.my_planet,type:"1",dron_id:r,dron_quantity:1,galaxy_spionage:e[0],system_from_spionage:e[1],planet_from_spionage:e[2],planet_to_spionage:-1};j.jQuery.ajax({type:"POST",dataType:"json",url:"/ajax_request/send_spionage_action.php",data:a,timeout:_e.promises.interval.ajaxTimeout,error(e,t,n){ze(`${t}: ${n}`)},success(e){if("-1"===e||"500"===e||"-2"===e||"-4"===e||"-5"===e||"-6"===e||"-10"===e||"-11"===e||"-12"===e||"-20"===e||"-21"===e||"-22"===e||"-23"===e||"24"===e||"-30"===e)ze("some error occured :/");else if(e)if(e.error)ze(e.error);else if(e.dron_id){let t="";1===parseInt(e.real_number,10)?t=`Frurozin benötigt: ${e.Frurozin_d}, Ankunftszeit: ${e.string}. Möchtest du abschicken?`:e.real_number>1&&(t=`Frurozin benötigt: ${e.Frurozin_d}. Möchtest du abschicken?`),!0===He(t)&&j.jQuery.post("/ajax_request/put_observationen_drons.php",{Units:e.Units,EngineType_Drone:e.EngineType_Drone,Speed_Drone:e.Speed_Drone,Name_Dron:e.Name_Dron,galaxy1:e.spionage_galaxy,system1:e.spionage_system_from,planet1:e.spionage_planet_from,planet2:e.spionage_planet_to,real_number:e.real_number,id_drones:e.dron_id,Frurozin_d:e.Frurozin_d,galaxy_check:j.my_galaxy,system_check:j.my_system,planet_check:j.my_planet},(e=>{"1"===e?(be(),we()):ze("some error occured :/")}))}else ze("some error occured :/");else j.logoutRequest()}})},{confirm:Ge}=j,Ue=e=>parseInt(e,10),Qe=()=>1===j.premium_account;De()(U());const{document:Je}=j,{document:Ke}=j;De()(U());const{document:Ze}=j,Xe={arrivalTime:"",returnTime:"",timingType:"0"},et=()=>{const{fleetSendData:e}=_e.gameData,t=Ze.querySelector("#lwm_fleet_selectarrivaltime"),n=Ze.querySelector("#lwm_fleet_selectreturntime"),r=Ze.querySelector("#lwm_fleet_type"),a=parseInt(_e.gameData.fleetSendData.max_speed_transport,10),i=U()(parseInt(t.value,10)),o=U()(parseInt(n.value,10)),s="1"===r.value,l=r.value,c=U().duration(e.send_time,"seconds").asSeconds(),u=c/(2-parseInt(e.max_speed_transport,10)/100)*1.8;return{arrivalSelect:t,returnSelect:n,timingTypeSelect:r,maxSpeed:a,arrivalTime:i,returnTime:o,isOneway:s,timingType:l,minTimeInSecs:c,maxTimeInSecs:u,minDateArrival:U()().add(c,"seconds"),maxDateArrival:U()().add(u,"seconds"),minDateReturn:U()().add(2*c,"seconds"),maxDateReturn:U()().add(2*u,"seconds"),sendSpeedInput:Ze.querySelector("#send.changeTime"),returnSpeedInput:Ze.querySelector("#back.changeTime")}},tt=(e,t="send")=>{j.jQuery.post("./ajax_request/count_time.php",{id_broda:j.flotten_informations_infos.id_broda,tip_broda:j.flotten_informations_infos.tip_broda,Units:j.flotten_informations_infos.Units,id_flote:j.flotten_informations_infos.id_flote,speed:e},(n=>{"send"===t?(j.flotten_informations_infos.send_time=n,j.flotten_informations_infos.speed_send=e):(j.flotten_informations_infos.back_time=n,j.flotten_informations_infos.speed_back=e);let r=parseInt(n,10),a=Math.floor(r/3600);r-=3600*a;let i=Math.floor(r/60);r-=60*i,a<=9&&(a="0"+a),i<=9&&(i="0"+i),r<=9&&(r="0"+r),"send"===t?j.jQuery("#sendTime").text(`Flugzeit: ${a}:${i}:${r} Stunden`):j.jQuery("#backTime").text(`Flugzeit: ${a}:${i}:${r} Stunden`)}))},nt=(e,t,n)=>{const r=e.value,a=5-t.minute()%5,i=U()(t).add(a,"minutes").startOf("minute");for(e.querySelectorAll("option:not(:first-child)").forEach((e=>e.remove()));i.valueOf()<n.valueOf();){const t=Ne(`<option value="${i.valueOf()}">${i.format("YYYY-MM-DD HH:mm:ss")}</option>`);e.appendChild(t),i.add(5,"minutes")}e.value=r},rt=(e,t)=>{const{maxSpeed:n,minTimeInSecs:r}=et(),a=parseInt((t.valueOf()-e.valueOf())/1e3,10);return parseInt(100*(1-(a-r/(2-n/100))/(r/(2-n/100)*.01)/100),10)},at=(e="arrival")=>{const{arrivalSelect:t,returnSelect:n,maxSpeed:r,arrivalTime:a,returnTime:i,isOneway:o,timingType:s,minTimeInSecs:l,maxTimeInSecs:c,minDateArrival:u,maxDateArrival:d,minDateReturn:f,maxDateReturn:p,sendSpeedInput:h,returnSpeedInput:m}=et();let g,y,v=20;switch(g=a.isValid()?rt(U()(),a):r,y=i.isValid()?a.isValid()?rt(a,i):rt(u,i):r,e){case"arrival":if(o)h.value=g,tt(g,"send"),m.value=g,tt(g,"back");else{if(a.isValid())nt(n,U()(parseInt(t.value,10)).add(l,"seconds"),U()(parseInt(t.value,10)).add(c,"seconds")),y>r&&(y=r);else if(nt(n,f,p),i.isValid()){at("return");break}h.value=g,tt(g,"send"),m.value=y,tt(y,"back"),n.value=i.isValid()?i.valueOf():"",Xe.returnTime=n.value}break;case"return":switch(s){case"0":i.isValid()?y<20?(y=20,g=rt(U()().add(l/(2-r/100)*1.8,"seconds"),i),nt(t,U()().add(l/(2-r/100)*(2-g/100),"seconds"),d)):nt(t,u,U()(i).subtract(l/(2-r/100)*(2-r/100),"seconds")):nt(t,u,d),h.value=g,tt(g,"send"),m.value=y,tt(y,"back");break;case"2":y=i.isValid()?rt(U()(),U()().add(parseInt(i.diff(U()(),"seconds")/2,10),"seconds")):r,h.value=y,tt(y,"send"),m.value=y,tt(y,"back");break;case"3":if(i.isValid()){g=0,y=0,v=20;do{y=v,g=rt(U()().add(l/(2-r/100)*(2-v/100),"seconds"),i),v+=1}while(g<20||g>r)}else y=r,g=r;h.value=g,tt(g,"send"),m.value=y,tt(y,"back");break;case"4":if(i.isValid()){g=0,y=0,v=20;do{g=v,y=rt(U()().add(l/(2-r/100)*(2-v/100),"seconds"),i),v+=1}while(y<20||y>r)}else y=r,g=r;h.value=g,tt(g,"send"),m.value=y,tt(y,"back")}}},it=()=>{const{arrivalSelect:e,returnSelect:t,minDateArrival:n,maxDateArrival:r,minDateReturn:a,maxDateReturn:i,timingTypeSelect:o}=et();"1"===o.value?(Xe.returnTime="",t.value="",t.style.display="none",nt(e,n,r)):t.style.display="inline-block",parseInt(o.value,10)>1?(Xe.arrivalTime="",e.value="",e.style.display="none",nt(t,a,i)):e.style.display="inline-block"},ot=(e=_e.gameData.fleetSendData)=>(_e.gameData.fleetSendData=JSON.parse(JSON.stringify(e)),_e.promises.content=z("#flottenInformationPage"),_e.promises.content.then((()=>{const t=U().duration(e.send_time,"seconds").asSeconds(),n=t/(2-parseInt(e.max_speed_transport,10)/100)*1.8,r=U()().add(t,"seconds"),a=U()().add(n,"seconds"),i=U()().add(2*t,"seconds"),o=U()().add(2*n,"seconds"),s=Ne('<div id="lwm_fleet_timer_wrapper"></div>'),l=Ne("<div></div>"),c=Ne('<select id="lwm_fleet_type"><option value="0">Pick Fleet Timing Function</option><option value="1">One-Way</option><option value="2">Send / Return Balanced</option><option value="3">Send Fast/ Return Slow</option><option value="4">Send Slow/Return Fast</option></select>');c.value=Xe.timingType,l.appendChild(c);const u=Ne("<div></div>"),d=Ne('<select id="lwm_fleet_selectarrivaltime"><option value="" selected>Pick Arrival Time</option></select>');nt(d,r,a),d.value=Xe.arrivalTime,u.appendChild(d);const f=Ne("<div></div>"),p=Ne('<select id="lwm_fleet_selectreturntime"><option value="" selected>Pick Return Time</option></select>');nt(p,i,o),p.value=Xe.returnTime,f.appendChild(p),d.addEventListener("change",(()=>{at("arrival"),Xe.arrivalTime=d.value})),p.addEventListener("change",(()=>{at("return"),Xe.returnTime=p.value})),c.addEventListener("change",(()=>{Xe.timingType=c.value,it(),"1"===c.value?at("arrival"):at("return")}));const h=Ze.querySelector("#timeFlote").nextSibling;s.appendChild(u),s.appendChild(f),s.appendChild(l),h.parentNode.insertBefore(s,h),it();const m=()=>{Xe.arrivalTime="",Xe.returnTime="",Xe.timingType="0",j.jQuery("#backSite").off("click",m)},g=()=>{ot().finally((()=>{"0"===Xe.timingType?(""!==Xe.returnTime&&at("return"),""!==Xe.arrivalTime&&at("arrival")):"1"===Xe.timingType?at("arrival"):at("return"),j.jQuery("#backSite").off("click",g)}))},y=()=>{s.remove(),j.jQuery("#nextSite").off("click",y),j.jQuery("#backSite").on("click",g),j.jQuery("#backSite").off("click",m)};j.jQuery("#nextSite").on("click",y),j.jQuery("#backSite").on("click",m),j.jQuery("#sendFlote").on("click",m);const v=[];if([1,2,3,4,5].forEach((e=>{q.get(`fleet_presets_${e}_active`)&&v.push({time:q.get(`fleet_presets_${e}_time`),days:q.get(`fleet_presets_${e}_weekday`)})})),v.length){v.sort(((e,t)=>e.time>t.time?1:t.time>e.time?-1:0));let e=!1;j.jQuery.each(j.jQuery("#lwm_fleet_selectreturntime").find("option:gt(0)"),((t,n)=>{const r=j.jQuery(n),a=U()(r.text()).hour(),i=U()(r.text()).minute(),o=U()(r.text()).day(),s={All:[0,1,2,3,4,5,6],Mon:[1],Tue:[2],Wed:[3],Thu:[4],Fri:[5],Sat:[6],Sun:[0],Weekday:[1,2,3,4,5],Weekend:[0,6]};v.forEach((t=>{const n=parseInt(t.time.split(":")[0],10),l=parseInt(t.time.split(":")[1],10);a===n&&l===i&&s[t.days].includes(o)&&(e||(j.jQuery("#lwm_fleet_selectreturntime").val(r.val()),at("return"),e=!0),r.addClass("lwm_preselect"))}))}))}_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))),st=ot;De()(U());const{document:lt,alert:ct}=j,ut={default:()=>{_e.promises.content=z(".pageContent > div"),_e.promises.content.then((()=>{_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},replaceHrefAnchors:()=>{Y("content").then((()=>{j.document.querySelectorAll("[href='#']").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault()}))}))})).catch((e=>{I(e),ne()}))},replaceArrows:()=>{Y("content").then((()=>{O()(".arrow-left,.arrow-left-recycle,.spionage-arrow-left,.raumdock-arrow-left").removeClass("arrow-left arrow-left-recycle spionage-arrow-left raumdock-arrow-left").addClass("fa-2x fas fa-angle-left"),O()(".arrow-right,.arrow-right-recycle,.spionage-arrow-right,.raumdock-arrow-right").removeClass("arrow-right arrow-right-recycle spionage-arrow-right raumdock-arrow-right").addClass("fa-2x fas fa-angle-right"),O()(".fa-angle-right,.fa-angle-left").each(((e,t)=>{const n=O()(t);let r,a,i,o,s,l,c,u;O()(t).attr("style","").css("width","1em").css("cursor","hand").on("mousedown touchstart",(()=>{o=setTimeout((()=>{r=setInterval((()=>{n.click()}),150)}),250),s=setTimeout((()=>{clearInterval(r),a=setInterval((()=>{n.click()}),75)}),2250),l=setTimeout((()=>{clearInterval(a),i=setInterval((()=>{n.click()}),25)}),5250),u=setTimeout((()=>{clearInterval(i),c=setInterval((()=>{n.click()}),5)}),10250)})).on("mouseleave touchend",(()=>{clearInterval(r),clearInterval(a),clearInterval(i),clearInterval(c),clearTimeout(o),clearTimeout(s),clearTimeout(l),clearTimeout(u)})).on("mouseup",(()=>{clearInterval(r),clearInterval(a),clearInterval(i),clearInterval(c),clearTimeout(o),clearTimeout(s),clearTimeout(l),clearTimeout(u)}))})),O().each(O()(".inputNumberDiv input,[id*='InputNumber'] input"),((e,t)=>{const n=O()(t);let r,a;null!==n.attr("id").match(/\d+/)?([r]=n.attr("id").match(/\d+/),a=n.parents("table").find(`[id*='${r}']`).find("button").not("[onclick*='deleteDesign']")):a=n.parents("table").next(),n.on("keyup",(e=>{13!==e.keyCode&&13!==e.code||a.click()}))}))})).catch((e=>{I(e),ne()}))},uebersicht:()=>{_e.promises.content=z("#uberPageDiv"),_e.promises.content.then((()=>{const e=1===j.view_type_status;e||O()("th:contains('Aktuell')").remove(),e||O()(".Posle").find("td:first").attr("colspan","3"),(e?O()(".CordsClassA"):O()(".Posle").find("td:first")).each(((t,n)=>{const r=O()(n).html().match(/\d+x\d+x\d+/)[0].split("x"),a=`<input class="planetButton planetButtonMain" type="button" value="${O()(n).text()}" onclick="changeCordsFromUberPage(${r[0]}, ${r[1]}, ${r[2]});">`;O()(n).parents(e?"tr":".Posle").attr("data-coords",`${r[0]}x${r[1]}x${r[2]}`),O()(n).html(a)})),e?0===O()(".Posle:eq(0)").find("#HoverResearch").length&&O()(".Posle:eq(0)").append('<tr><td colspan="3" style="text-align:center;">Kein Forschungsauftrag</td></tr>'):(0===O()(".Posle:eq(0)").find("#HoverResearch").length&&O()(".Posle:eq(0)").prepend('<tr><td colspan="3" style="text-align:center;">Kein Forschungsauftrag</td></tr>'),O()(".Posle").each(((e,t)=>{const n=O()(t).find("#HoverBuilding1").length>0,r=O()(t).find("#HoverBuilding2").length>0;n&&r||(n&&!r&&q.get("overview_hintvacantmultiqueue")&&O()(t).find("#HoverBuilding1").after('<tr><td colspan="3" style="text-align:center;">Kein Bauauftrag</td></tr>'),!n&&r&&q.get("overview_hintvacantmultiqueue")&&O()(t).find("#HoverBuilding2").before('<tr><td colspan="3" style="text-align:center;">Kein Bauauftrag</td></tr>'),n||r||(q.get("overview_hintvacantmultiqueue")&&O()(t).append('<tr><td colspan="3" style="text-align:center;">Kein Bauauftrag</td></tr>'),O()(t).append('<tr><td colspan="3" style="text-align:center;">Kein Bauauftrag</td></tr>')))}))),O()(".BuildingNameClass:contains('Kein Bauauftrag'),td:contains('Kein Bauauftrag'),td:contains('Kein Forschungsauftrag')").css({backgroundColor:"rgba(250, 0, 0, 0.3)",cursor:"pointer"}),O()(".BuildingNameClass:contains('Kein Bauauftrag')").click((e=>{const t=O()(e.target).parents("tr").attr("data-coords").split("x");F("lwm_navigateTo",["construction","first","Konstruktion"]),j.changeCordsFromUberPage(t[0],t[1],t[2])})),O()("td:contains('Kein Bauauftrag')").click((e=>{const t=O()(e.target).parents(".Posle").attr("data-coords").split("x");F("lwm_navigateTo",["construction","first","Konstruktion"]),j.changeCordsFromUberPage(t[0],t[1],t[2])})),O()("td:contains('Kein Forschungsauftrag')").click((()=>{const e=_e.gameData.planets[0].string.split("x");F("lwm_navigateTo",["research","first","Forschung"]),j.changeCordsFromUberPage(e[0],e[1],e[2])})),q.get("overview_planetresources")&&O().each(_e.gameData.planetInformation,((t,n)=>{const r=O()(`${e?"tr":".Posle"}[data-coords='${n.Galaxy}x${n.System}x${n.Planet}']`),a=O()("<tr></tr>"),i=O()(`<td colspan="${e?6:3}" style="padding:2px;"></td>`);a.append(i);const o=O()("<table></table>");i.append(o);const s=O()("<tbody></tbody>");o.append(s);const l=O()('<tr><td class="sameWith roheisenVariable">Roheisen</td><td class="sameWith kristallVariable">Kristall</td><td class="sameWith frubinVariable">Frubin</td><td class="sameWith orizinVariable">Orizin</td><td class="sameWith frurozinVariable">Frurozin</td><td class="sameWith goldVariable">Gold</td></tr>'),c=O()(`<tr><td class="roheisenVariable">${j.jQuery.number(Math.round(n.Planet_Roheisen),0,",",".")}</td><td class="kristallVariable">${j.jQuery.number(Math.round(n.Planet_Kristall),0,",",".")}</td><td class="frubinVariable">${j.jQuery.number(Math.round(n.Planet_Frubin),0,",",".")}</td><td class="orizinVariable">${j.jQuery.number(Math.round(n.Planet_Orizin),0,",",".")}</td><td class="frurozinVariable">${j.jQuery.number(Math.round(n.Planet_Frurozin),0,",",".")}</td><td class="goldVariable">${j.jQuery.number(Math.round(n.Planet_Gold),0,",",".")}</td></tr>`);s.append(l).append(c),e?r.after(a):r.find("tbody").append(a)})),q.get("overview_planetnames")&&!e&&O().each(_e.gameData.planetInformation,((e,t)=>{const n=O()(`.Posle[data-coords='${t.Galaxy}x${t.System}x${t.Planet}']`);let r=n.find(".planetButton").val();r=r.replace(/\(.*\)/,`(${t.Planet_Name})`),n.find(".planetButton").val(r)})),q.get("overview_planetstatus")&&O().each(_e.lwm.planetInfo[_e.gameData.playerID],((t,n)=>{if(e)O()(`tr[data-coords='${t}']`).find("td:eq(3)").html(`<div class="lwm-smartview-energy">${n.energy} TW - ${n.slots} Free Slot(s)</div>`);else{const e=O()(`.Posle[data-coords='${t}']`);e.find("td:first input").val(`${e.find("td:first input").val()} ${n.energy} TW - ${n.slots} Free Slot(s)`)}})),q.get("overview_planetpicture")&&("#planetImage",j.document.querySelector("#planetImage")).style.setProperty("display","block","important"),Be.calendar.storeOverview(_e.gameData.overviewInfo),q.get("addon_clock")&&(clearInterval(j.timeinterval_uber),J());const t=_e.gameData.fleetInfo.View_Units?j.jQuery.number(_e.gameData.fleetInfo.View_Units,0,",",".")+" SU":"loading...";O()(".Posle").last().next().find("tr").last().after(`<tr><td class="Pola">Frühwarnung:</td><td class="Pola lwm_fleetwarning">${t}</td></tr>`),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},prodQueue:()=>{_e.promises.content=z("#divTabele1,#divTabele2,#link"),_e.promises.content.then((()=>{O()("#aktuelleProduktionPageDiv td[onclick]").each(((e,t)=>{const n=O()(t);n.css("cursor","hand"),q.get("confirm_production")&&Q(n[0],n.parent().find("td:eq(1)").text()+" abbrechen"),q.get("addon_clock")&&(clearInterval(j.timeinterval_aktuelle_produktion),J())})),Z(O()("td[onclick*='deleteAktuelleProduktion']"),"fas fa-ban"),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},defense:()=>{_e.promises.content=z("#verteidigungDiv"),_e.promises.content.then((()=>{O()("button[onclick*='makeDefence']").each(((e,t)=>{const n=O()(t);q.get("confirm_production")&&Q(n[0],n.parent().find("td:eq(1)").text()+" abbrechen")})),Z(O()("button[onclick*='makeDefence']"),"fas fa-2x fa-plus-circle"),j.document.querySelectorAll("[onclick*='addNumber'],[onclick*='subNumber']").forEach((e=>{const t=e.getAttribute("onclick").match(/\d+/g),n=parseInt(t[0],10),r=j.document.querySelector("#RedColumDefence"+n).nextSibling,a=r.querySelector(".roheisenVariable"),i=r.querySelector(".kristallVariable"),o=r.querySelector(".frubinVariable"),s=r.querySelector(".orizinVariable"),l=r.querySelector(".frurozinVariable"),c=r.querySelector(".goldVariable"),u=j.document.querySelector(`#RedColumDefence${n} button`);Ye(e,[a,i,o,s,l,c],u,j.document.querySelector(`input[id$='_${n}']`),"value",e.getAttribute("onclick").match(/subNumber/))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},shipPost:()=>{_e.promises.content=z("#handelspostenDiv"),_e.promises.content.then((()=>{O()(".arrow-left,.arrow-right").css("margin-top",0),O()("button[onclick*='buyHandeslpostenShips']").each(((e,t)=>{if(q.get("confirm_production")){const e=O()(t);Q(e[0],e.parents("tr").find("td:eq(0)").text()+" bestellen")}})),Z(O()("button[onclick*='buyHandeslpostenShips']"),"fas fa-2x fa-plus-circle"),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},recycleDef:()=>{_e.promises.content=z("#recyclingDefenceDiv"),_e.promises.content.then((()=>{O()("button[onclick*='recycleDefence']").each(((e,t)=>{const n=O()(t);q.get("confirm_production")&&Q(n[0],n.parents("tr").find("td:eq(0)").text()+" bauen")})),Z(O()("button[onclick*='recycleDefence']"),"fas fa-2x fa-plus-circle"),j.document.querySelectorAll("input[id*='number_input_defence']").forEach(((e,t)=>{const n=e.getAttribute("id").match(/\d+/g),r=parseInt(n[0],10);e.addEventListener("change",(()=>{j.changeResourceDefence(r,e.value,t)}))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},upgradeDef:()=>{_e.promises.content=z("#upgradeDefenceDiv"),_e.promises.content.then((()=>{O()("button[onclick*='upgradeDefenceFunction']").each(((e,t)=>{q.get("confirm_production")&&Q(t)})),X(j.document.querySelectorAll("button[onclick*='upgradeDefenceFunction']"),"fas fa-2x fa-arrow-alt-circle-up");const e=Ne('<div id="upgrade_ship_filters" class="tableFilters"><div class="tableFilters_header">Filter</div><div class="tableFilters_content"></div></div>'),t=Ne('<input type="number" id="lwm_percentageFilter" value="0" min="0" max="100" step="1" />'),n=Ne('<label for="lwm_percentageFilter">Show upgrade percentages over:&nbsp;</label>');t.addEventListener("change",(()=>{j.document.querySelectorAll(".UpdateTD, tr.redBackground > td:first-child").forEach((e=>{parseInt(e.innerText.match(/\d+/)[0],10)<parseInt(t.value,10)?(e.parentNode.style.display="none",e.parentNode.nextSibling.style.display="none",e.parentNode.previousSibling.style.display="none",e.parentNode.previousSibling.previousSibling.style.display="none"):(e.parentNode.style.display="table-row",e.parentNode.nextSibling.style.display="table-row",e.parentNode.previousSibling.style.display="table-row",e.parentNode.previousSibling.previousSibling.style.display="table-row")}))})),Oe("#upgradeDefenceDiv").parentNode.insertBefore(e,Oe("#upgradeDefenceDiv")),e.querySelector(".tableFilters_content").appendChild(n),e.querySelector(".tableFilters_content").appendChild(t),j.document.querySelectorAll("[onclick*='addNumberUpgradeDefence'],[onclick*='subNumberUpgradeDefence']").forEach((e=>{const t=e.getAttribute("onclick").match(/\d+/g),n=parseInt(t[0],10),r=j.document.querySelectorAll(`[class*='${n}']`).item(1).nextSibling.nextSibling,a=r.querySelector(".roheisenVariable"),i=r.querySelector(".kristallVariable"),o=r.querySelector(".frubinVariable"),s=r.querySelector(".orizinVariable"),l=r.querySelector(".frurozinVariable"),c=r.querySelector(".goldVariable"),u=r.querySelector("button");Ye(e,[a,i,o,s,l,c],u,j.document.querySelector(`input[id$='_${n}']`),"value",e.classList.contains("fa-angle-left")||e.classList.contains("arrow-left-recycle"))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},produktion:()=>{_e.promises.content=z("#productionDiv"),_e.promises.content.then((()=>{O()("button[onclick*='deleteDesign']").each(((e,t)=>{const n=O()(t);q.get("confirm_production")&&Q(n[0],n.parents("tr").find("td:eq(0)").text()+" löschen")})),Z(O()("button[onclick*='deleteDesign']"),"fas fa-ban"),O()("button[onclick*='makeShip']").each(((e,t)=>{const n=O()(t);q.get("confirm_production")&&Q(n[0],n.parents("tr").prev().find("td:eq(0)").text()+" produzieren")})),Z(O()("button[onclick*='makeShip']"),"fas fa-2x fa-plus-circle");const e=(()=>{const e=()=>{_e.lwm.productionFilters[_e.gameData.playerID][_e.gameData.planetCoords.string]=O().map(O()(".tableFilters_content > div > .activeBox"),(e=>O()(e).parent().data("filter"))),F("lwm_productionFilters",JSON.stringify(_e.lwm.productionFilters)),q.get("confirm_drive_sync")&&ye.save();const e={all:()=>O().map(_e.gameData.productionInfos,(e=>e.id)),freight:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>parseInt(e.cargo,10)>0)),(e=>e.id)),kolo:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>parseInt(e.kolonisationsmodul,10)>0)),(e=>e.id)),traeger:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>parseInt(e.tragerdeck,10)>0)),(e=>e.id)),tarn:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>parseInt(e.tarnvorrichtung,10)>0)),(e=>e.id)),nuk:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>"NUK"===e.engineShortCode)),(e=>e.id)),hyp:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>"Hyp"===e.engineShortCode)),(e=>e.id)),gty:()=>O().map(O().grep(_e.gameData.productionInfos,(e=>"Gty"===e.engineShortCode)),(e=>e.id))};let t=e.all();O().each(O()(".tableFilters_content > div > .activeBox"),((n,r)=>{const a=e[O()(r).parent().data("filter")]();t=O()(t).filter(a)})),O()("#productionDiv tr").each(((e,n)=>{if(O()(n).data("hide"))return!0;const r=(e=>{let t=K(e)||"";return t=t.match(/\d+/),null!==t?t[0]:""})(O()(n));return""!==r&&-1===O().inArray(r,t)?O()(n).hide():O()(n).show(),!0}))},t=O()('<div class="tableFilters"><div class="tableFilters_header">Filter</div><div class="tableFilters_content"></div></div>');return O()('<div class="buttonRowInbox" id="lwm_ProdFilterFreight" data-filter="freight"><a class="formButton" href="javascript:void(0)">Fracht > 0</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterKolo" data-filter="kolo"><a class="formButton" href="javascript:void(0)">Module: Kolo</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterTraeger" data-filter="traeger"><a class="formButton" href="javascript:void(0)">Module: Trägerdeck</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterTarn" data-filter="tarn"><a class="formButton" href="javascript:void(0)">Module: Tarn</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterNuk" data-filter="nuk"><a class="formButton" href="javascript:void(0)">Engine: Nuk</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterHyp" data-filter="hyp"><a class="formButton" href="javascript:void(0)">Engine: Hyp</a></div>').appendTo(t.find(".tableFilters_content")),O()('<div class="buttonRowInbox" id="lwm_ProdFilterGty" data-filter="gty"><a class="formButton" href="javascript:void(0)">Engine: Gty</a></div>').appendTo(t.find(".tableFilters_content")),t.find(".buttonRowInbox").click((t=>{O()(t.target).toggleClass("activeBox"),e()})),O()("#productionDiv").prepend(t),{process:e}})();O().each(_e.lwm.productionFilters[_e.gameData.playerID][_e.gameData.planetCoords.string],((e,t)=>{O()(`[data-filter='${t}'] .formButton`).addClass("activeBox")})),e.process();const t=(()=>{const t=O()(`<div class="inboxDeleteMessageButtons"><div class="buttonRowInbox" id="lwm_ShowHiddenShips"><a class="formButton" href="javascript:void(0)"><span class="count">${_e.lwm.hiddenShips[_e.gameData.playerID][_e.gameData.planetCoords.string].length}</span> versteckte(s) anzeigen</a></div></div>`),n=()=>{t.find(".count").text(_e.lwm.hiddenShips[_e.gameData.playerID][_e.gameData.planetCoords.string].length)};return t.click((()=>{_e.lwm.hiddenShips[_e.gameData.playerID][_e.gameData.planetCoords.string]=[],F("lwm_hiddenShips",JSON.stringify(_e.lwm.hiddenShips)),q.get("confirm_drive_sync")&&ye.save(),O()("#productionDiv tr").each(((e,t)=>{O()(t).data("hide",!1)})),n(),e.process()})),O()("#productionDiv").append(t),{setCurrentHiddenCount:n}})();O().each(_e.lwm.hiddenShips[_e.gameData.playerID][_e.gameData.planetCoords.string],((e,t)=>{const n=K(O()(`.shipNameProduction:contains('${t} (')`).parents("tr"));O()("."+n).hide(),O()("."+n).data("hide",!0)})),O()(".shipNameProduction").each(((e,n)=>{const r=O()('<i class="fas fa-times"></i>');r.click((()=>{const e=O()(n).parents("tr"),r=(e=>e.find(".shipNameProduction a").text())(e),a=K(e);_e.lwm.hiddenShips[_e.gameData.playerID][_e.gameData.planetCoords.string].push(r),F("lwm_hiddenShips",JSON.stringify(_e.lwm.hiddenShips)),q.get("confirm_drive_sync")&&ye.save(),t.setCurrentHiddenCount(),O()("."+a).hide(),O()("."+a).data("hide",!0)})),O()(n).append(r)})),j.document.querySelectorAll("[onclick*='addNumber'],[onclick*='subNumber']").forEach((e=>{const t=e.getAttribute("onclick").match(/\d+/g),n=parseInt(t[1],10),r=j.document.querySelectorAll(`[class*='${n}']`).item(1),a=r.querySelector(".roheisenVariable"),i=r.querySelector(".kristallVariable"),o=r.querySelector(".frubinVariable"),s=r.querySelector(".orizinVariable"),l=r.querySelector(".frurozinVariable"),c=r.querySelector(".goldVariable"),u=r.querySelector("button");Ye(e,[a,i,o,s,l,c],u,j.document.querySelector(`input[id$='_${n}']`),"value",e.getAttribute("onclick").match(/subNumber/))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},upgradeShips:()=>{_e.promises.content=z("#upgradeShipsDiv"),_e.promises.content.then((()=>{j.document.querySelectorAll("button[onclick*='upgradeShipsFunction']").forEach((e=>{q.get("confirm_production")&&Q(e)})),X(j.document.querySelectorAll("button[onclick*='upgradeShipsFunction']"),"fas fa-2x fa-arrow-alt-circle-up");const e=Ne('<div id="upgrade_ship_filters" class="tableFilters"><div class="tableFilters_header">Filter</div><div class="tableFilters_content"></div></div>'),t=Ne('<input type="number" id="lwm_percentageFilter" value="0" min="0" max="100" step="1" />'),n=Ne('<label for="lwm_percentageFilter">Show upgrade percentages over:&nbsp;</label>');t.addEventListener("change",(()=>{j.document.querySelectorAll(".UpdateTD, tr.redBackground > td:first-child").forEach((e=>{const n=parseInt(e.parentNode.getAttribute("class").match(/\d+/)[0],10);parseInt(e.innerText.match(/\d+/)[0],10)<parseInt(t.value,10)?j.document.querySelectorAll(".s_"+n).forEach((e=>{e.style.display="none"})):j.document.querySelectorAll(".s_"+n).forEach((e=>{e.style.display="table-row"}))}))})),Oe("#upgradeShipsDiv").parentNode.insertBefore(e,Oe("#upgradeShipsDiv")),e.querySelector(".tableFilters_content").appendChild(n),e.querySelector(".tableFilters_content").appendChild(t),j.document.querySelectorAll("[onclick*='addNumberUpgradeShips'],[onclick*='subNumberUpgradeShips']").forEach((e=>{const t=e.getAttribute("onclick").match(/\d+/g),n=parseInt(t[1],10),r=j.document.querySelectorAll(`[class*='${n}']`).item(3),a=r.querySelector(".roheisenVariable"),i=r.querySelector(".kristallVariable"),o=r.querySelector(".frubinVariable"),s=r.querySelector(".orizinVariable"),l=r.querySelector(".frurozinVariable"),c=r.querySelector(".goldVariable"),u=r.querySelector("button");Ye(e,[a,i,o,s,l,c],u,Oe(`span[id$='_${n}']`),"innerText",e.classList.contains("fa-angle-left")||e.classList.contains("arrow-left-recycle"))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},recycleShips:()=>{_e.promises.content=z("#recyclingAngleDiv"),_e.promises.content.then((()=>{O()("button[onclick*='RecycleShips']").each(((e,t)=>{q.get("confirm_production")&&Q(t)})),Z(O()("button[onclick*='RecycleShips']"),"fas fa-2x fa-plus-circle"),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},constructions:()=>{_e.promises.content=z(".hauptgebaude"),_e.promises.content.then((()=>{var e;if(e=Je.querySelectorAll(".greenButton"),"building",O().each(e,((e,t)=>{O()(t).click((({target:e})=>{_e.currentSavedProject.fe=W()(O()(e).parents("tr").find(".roheisenVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.kris=W()(O()(e).parents("tr").find(".kristallVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.frub=W()(O()(e).parents("tr").find(".frubinVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.ori=W()(O()(e).parents("tr").find(".orizinVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.fruro=W()(O()(e).parents("tr").find(".frurozinVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.gold=W()(O()(e).parents("tr").find(".goldVariable").text().replace(/\D/,"")).value(),_e.currentSavedProject.ts=U()().unix(),_e.currentSavedProject.name=O()(e).parents("tr").find(".constructionName").text(),_e.currentSavedProject.type="building"}))})),Je.querySelectorAll(".greenButton,.yellowButton,.redButton").forEach((e=>{const t=e.classList.contains("greenButton")?" bauen":" abbrechen",n=e.parentElement;n.style.cursor="hand",n.setAttribute("onclick",e.getAttribute("onclick")),e.setAttribute("onclick",""),q.get("confirm_const")&&Q(n,n.parentElement.querySelector(".constructionName").innerText+t),q.get("addon_clock")&&(clearInterval(j.timeinterval_construction),clearInterval(j.timeinterval_construction2),J())})),0===parseInt(j.BuildingNumber,10)&&0===parseInt(j.BuildingNumber2,10)&&q.get("construction_buildingcountdown")){const e=j.getResourcePerHour()[0];Je.querySelectorAll(".defaultButton").forEach(((t,n)=>{let r=null;t.parentElement.parentElement.querySelectorAll(".noResource").forEach((t=>{if(t.classList.contains("constructionName"))return!0;const n=parseInt(t.innerText.replace(".",""),10);let a=["roheisen","Roheisen"];t.classList.contains("kristallVariable")&&(a=["kristall","Kristall"]),t.classList.contains("frubinVariable")&&(a=["frubin","Frubin"]),t.classList.contains("orizinVariable")&&(a=["orizin","Orizin"]),t.classList.contains("frurozinVariable")&&(a=["frurozin","Frurozin"]),t.classList.contains("goldVariable")&&(a=["gold","Gold"]);const i=n-j[a[1]];return(null===r||r<parseInt(i/e[a[0]]*60*60,10))&&(r=parseInt(i/e[a[0]]*60*60,10)),!0})),t.parentElement.setAttribute("id","clock_buildingcountdown_"+n),t.parentElement.classList.add("noResource"),t.parentElement.innerHTML=U().duration(r,"seconds").format("HH:mm:ss",{trim:!1,forceLength:!0})})),J()}_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},research:()=>{_e.promises.content=z(".basisForschungen,#researchPage:contains('Forschungszentrale benötigt.')"),_e.promises.content.then((()=>{O()(".greenButton,.yellowButton,.redButton").each(((e,t)=>{const n=O()(t).is(".greenButton")?" forschen":" abbrechen",r=O()(t).parent();r.css("cursor","hand"),r.attr("onclick",O()(t).attr("onclick")),O()(t).attr("onclick",""),q.get("confirm_research")&&Q(r[0],r.parent().find(".researchName").text()+n),q.get("addon_clock")&&(clearInterval(j.timeinterval_research),J())})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},planeten:()=>{_e.promises.content=z("#planetTable"),_e.promises.content.then((()=>{O()("tr").find(".planetButtonTd:gt(0)").remove(),O()("#planetTable tbody tr:nth-child(5n-3) td:first-child").each(((e,t)=>{const n=O()(t).html().match(/\d+x\d+x\d+/)[0].split("x"),r=`<input class="planetButton planetButtonMain" type="button" value="${O()(t).html()}" onclick="changeCords(${n[0]}, ${n[1]}, ${n[2]});">`;O()(t).html(r)})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},inbox:()=>{_e.promises.content=z(".inboxDeleteMessageButtons,#messagesListTableInbox"),_e.promises.content.then((()=>{_e.loadStates.content=!1,null!==Oe("#veticalLink a.navButton")&&null===Oe(".secound_line a.navButton")&&Ve.move();const e=e=>{const t=-1!==e.subject.search(/Kampfbericht/)?"view_report_attack":"planetenscanner_view",n=Ne(`<a target='_blank' href='${j.location.origin}/${t}.php?id=${e.reportID}&user=${_e.gameData.playerID}'><i style='margin-left: 5px;' class='fas fa-external-link-alt'></i></a>`),r=Oe(`[onclick*='${e.id}']`);null!==r&&r.parentNode.appendChild(n)};_e.pages.inbox.reportHandler||(Ke.addEventListener("click",(t=>{["get_inbox_message","get_message_info"].includes(_e.loadStates.lastLoadedPage)&&t.target.classList.contains("formButton")&&-1!==t.target.getAttribute("onclick").search(/nextPage|previousPage/)&&[2,4].includes(j.window.current_view_type)&&_e.gameData.messageData[1].forEach((t=>{-1!==t.subject.search(/Kampfbericht|Spionagebericht/)&&"Systemnachricht"===t.user_nickname&&e(t)}))})),_e.pages.inbox.reportHandler=!0),[2,4].includes(j.window.current_view_type)&&q.get("message_spylinks")&&_e.gameData.messageData[1].forEach(((t,n)=>{-1!==t.subject.search(/Kampfbericht|Spionagebericht/)&&"Systemnachricht"===t.user_nickname&&j.jQuery.ajax({url:`/ajax_request/get_message_info.php?id_conversation=${t.id}&current_view_type=${j.window.current_view_type}`,dataType:"json",data:{lwm_ignoreProcess:1},success(t){[,_e.gameData.messageData[1][n].reportID]=t[0][0].text.match(/id=(\d*)/),e(_e.gameData.messageData[1][n])},timeout:_e.promises.interval.ajaxTimeout})}))})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},trades:()=>{_e.promises.content=z("#link"),_e.promises.content.then((()=>{const e=O()('<div class="tableFilters">    <div class="tableFilters_header">Optionen</div>    <div class="tableFilters_content">        <div class="buttonRowInbox" id="lwm_trades_accept_all"><a class="formButton" href="javascript:void(0)">Accept All Trades</a></div>        <div class="buttonRowInbox" id="lwm_trades_deny_all"><a class="formButton" href="javascript:void(0)">Deny All Trades</a></div>    </div></div>');e.find("#lwm_trades_accept_all").click((()=>{if(Ge("WARNING: This will accept ALL trades!")){const e=[];O().each(O()("[onclick*=acceptTradeOffer]"),((t,n)=>{const r=O()(n).attr("onclick").match(/\d+/)[0],a=j.jQuery.ajax({type:"POST",dataType:"json",url:"./ajax_request/accept_trade_offer.php",data:{trade_offer_id:r}});e.push(a)})),O().when.apply(O(),e).then((()=>{j.changeContent("trade_offer","first","Handel")}))}})),e.find("#lwm_trades_deny_all").click((()=>{if(Ge("WARNING: This will cancel/deny ALL trades!")){const e=[];O().each(O()("[onclick*=declineTradeOffer]"),((t,n)=>{const r=O()(n).attr("onclick").match(/\d+/)[0],a=j.jQuery.ajax({type:"POST",dataType:"json",url:"./ajax_request/decline_trade_offer.php",data:{trade_offer_id:r}});e.push(a)})),O().each(O()("[onclick*=cancelTradeOffer]"),((t,n)=>{const r=O()(n).attr("onclick").match(/\d+/)[0],a=j.jQuery.ajax({type:"POST",dataType:"json",url:"./ajax_request/delete_trade_offer.php",data:{trade_offer_id:r}});e.push(a)})),O().when.apply(O(),e).then((()=>{j.changeContent("trade_offer","first","Handel")}))}}));const t=_e.lwm.tradeData[_e.gameData.playerID],n=Object.keys(t).reduce(((e,n)=>(e.push(...t[n]),e)),[]),r={fe:n.filter((e=>1===e.my)).map((e=>e.resource[12])).reduce(((e,t)=>e+parseInt(t,10)),0),kris:n.filter((e=>1===e.my)).map((e=>e.resource[13])).reduce(((e,t)=>e+parseInt(t,10)),0),frub:n.filter((e=>1===e.my)).map((e=>e.resource[14])).reduce(((e,t)=>e+parseInt(t,10)),0),ori:n.filter((e=>1===e.my)).map((e=>e.resource[15])).reduce(((e,t)=>e+parseInt(t,10)),0),fruro:n.filter((e=>1===e.my)).map((e=>e.resource[16])).reduce(((e,t)=>e+parseInt(t,10)),0),gold:n.filter((e=>1===e.my)).map((e=>e.resource[17])).reduce(((e,t)=>e+parseInt(t,10)),0)},a=O()('<table id="lwm_tradeStats"><tbody><tr><th colspan="7">Currently Saved Resources</th></tr><tr><th class="sameWith"></td><th class="sameWith roheisenVariable">Roheisen</td><th class="sameWith kristallVariable">Kristall</td><th class="sameWith frubinVariable">Frubin</td><th class="sameWith orizinVariable">Orizin</td><th class="sameWith frurozinVariable">Frurozin</td><th class="sameWith goldVariable">Gold</td></tr></tbody></table>');_e.gameData.planets.forEach((e=>{const n=t[e.string];if(void 0!==n){const t={fe:n.filter((e=>1===e.my)).map((e=>e.resource[12])).reduce(((e,t)=>e+parseInt(t,10)),0),kris:n.filter((e=>1===e.my)).map((e=>e.resource[13])).reduce(((e,t)=>e+parseInt(t,10)),0),frub:n.filter((e=>1===e.my)).map((e=>e.resource[14])).reduce(((e,t)=>e+parseInt(t,10)),0),ori:n.filter((e=>1===e.my)).map((e=>e.resource[15])).reduce(((e,t)=>e+parseInt(t,10)),0),fruro:n.filter((e=>1===e.my)).map((e=>e.resource[16])).reduce(((e,t)=>e+parseInt(t,10)),0),gold:n.filter((e=>1===e.my)).map((e=>e.resource[17])).reduce(((e,t)=>e+parseInt(t,10)),0)};a.find("tbody").append(`<tr><td class="">${e.string}</td><td class="roheisenVariable">${j.jQuery.number(t.fe,0,",",".")}</td><td class="kristallVariable">${j.jQuery.number(t.kris,0,",",".")}</td><td class="frubinVariable">${j.jQuery.number(t.frub,0,",",".")}</td><td class="orizinVariable">${j.jQuery.number(t.ori,0,",",".")}</td><td class="frurozinVariable">${j.jQuery.number(t.fruro,0,",",".")}</td><td class="goldVariable">${j.jQuery.number(t.gold,0,",",".")}</td></tr></tbody></table>`)}})),a.find("tbody").append(`<tr><th class="">Total</th><th class="roheisenVariable">${j.jQuery.number(r.fe,0,",",".")}</th><th class="kristallVariable">${j.jQuery.number(r.kris,0,",",".")}</th><th class="frubinVariable">${j.jQuery.number(r.frub,0,",",".")}</th><th class="orizinVariable">${j.jQuery.number(r.ori,0,",",".")}</th><th class="frurozinVariable">${j.jQuery.number(r.fruro,0,",",".")}</th><th class="goldVariable">${j.jQuery.number(r.gold,0,",",".")}</th></tr></tbody></table>`),O()("#link").after(e),O()("#link").after(a),0===_e.gameData.tradeInfo.trade_offers.length?_e.loadStates.content=!1:z("#tradeOfferDiv").then((()=>{const{tradeInfo:e}=_e.gameData,t=j.resourceCapacityArray,n=[j.Roheisen,j.Kristall,j.Frubin,j.Orizin,j.Frurozin,j.Gold],r=te();O().each(e.trade_offers,((e,a)=>{const i="1"===a.accept,o=O()("#div_"+a.trade_id),s=a.galaxy===_e.gameData.planetCoords.galaxy&&a.system===_e.gameData.planetCoords.system&&a.planet===_e.gameData.planetCoords.planet;O().each(n,((e,n)=>{q.get("trade_highlights")&&(1===a.my&&parseInt(a.resource[e+6],10)>0&&r[e]+n+(i?0:parseInt(a.resource[e+6],10))>t[e]&&(o.find(`tr:eq(${e+5}) td`).last().addClass("redBackground"),o.find("tr:eq(4) th").addClass("redBackground").html("Denying or accepting this trade would exceed your storage capacities for the marked resource type!")),s&&1===a.my&&parseInt(a.resource[e+12],10)>0&&r[e]+n+(i?0:parseInt(a.resource[e+12],10))>t[e]&&(o.find(`tr:eq(${e+5}) td`).first().addClass("redBackground"),o.find("tr:eq(4) th").addClass("redBackground").html("Denying or accepting this trade would exceed your storage capacities for the marked resource type!")),s&&0===a.my&&parseInt(a.resource[e+12],10)>0&&r[e]+n+(i?0:parseInt(a.resource[e+12],10))>t[e]&&(o.find(`tr:eq(${e+5}) td`).first().addClass("redBackground"),o.find("tr:eq(4) th").addClass("redBackground").html("Denying or accepting this trade would exceed your storage capacities for the marked resource type!")),0===a.my&&parseInt(a.resource[e+6],10)>0&&r[e]+n+(i?0:parseInt(a.resource[e+6],10))>t[e]&&(o.find(`tr:eq(${e+5}) td`).last().addClass("redBackground"),o.find("tr:eq(4) th").addClass("redBackground").html("Denying or accepting this trade would exceed your storage capacities for the marked resource type!")))})),"###LWM::SAVE###"!==a.comment||s||a.my||o.find("tr").last().remove(),"###LWM::SAVE###"===a.comment&&s&&o.find(".buttonRow").first().remove(),q.get("confirm_hideTrades")&&("###LWM::SAVE###"!==a.comment||s||a.my||o.hide(),"###LWM::SAVE###"===a.comment&&s&&o.hide()),"1"===a.accept&&o.find(".empty").last().addClass("green").find("th").text("Running...")})),O()("[onclick*='declineTradeOffer']").click((e=>{const t=O()(e.target).attr("onclick").match(/\d+/)[0];_e.gameData.tradeInfo.trade_offers=_e.gameData.tradeInfo.trade_offers.filter((e=>e.trade_id!==t))})),_e.loadStates.content=!1})).catch((e=>{I(e),_e.loadStates.content=!1}))})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},newTrade:()=>{_e.promises.content=z("#newTradeOfferDiv"),_e.promises.content.then((()=>{Qe()&&Oe("[onclick*='inputFullResource']").parentNode.removeChild(Oe("[onclick*='inputFullResource']"));const e=Oe("#newTradeOfferDiv tr:last-child");e.querySelector("td:nth-child(1)").style.display="none",e.querySelector("td:nth-child(2)").setAttribute("colspan","4");const t=Ne("<div class=\"lwm-trade-coords\" style='width:100%'></div>");e.querySelector("td:nth-child(2)").appendChild(t),e.querySelector("td:nth-child(2)").appendChild(Ne('<div class="buttonRow lwm-buttonRow2" style="width: 100%; margin-left: 0;"></div>')),e.querySelector(".lwm-buttonRow2").appendChild(Oe(".formButtonNewMessage")),O()("#newTradeOfferDiv td:eq(1),#newTradeOfferDiv td:eq(3)").contents().filter(((e,t)=>"INPUT"!==t.nodeName)).remove(),O()("#newTradeOfferDiv th:eq(0), #newTradeOfferDiv th:eq(2), #newTradeOfferDiv td:eq(0), #newTradeOfferDiv td:eq(2)").remove(),O()("#newTradeOfferDiv th").attr("colspan","4").prepend("Koordinaten:&nbsp;").append('<select id="lwm-own-coords"></select>').append(`<div>(Handelsgebühr: ${j.lose}%)</div>`),O()("#newTradeOfferDiv td:eq(0)").prepend("<div><h3><u>Angebot</u></h3></div>"),O()("#newTradeOfferDiv td:eq(1)").prepend("<div><h3><u>Forderung</u></h3></div>"),j.document.querySelectorAll("#newTradeOfferDiv td input").forEach((e=>{const t=Ne('<div class="lwm-res-offer-wrap"></div>'),{parentNode:n}=e;t.appendChild(e);const r=Ne('<i style="font-size: 1.5em;" class="fas fa-times-circle"></i>');r.addEventListener("click",(e=>{e.target.previousSibling.value="0"})),t.appendChild(r),n.appendChild(t)}));const n=_e.lwm.lastTradeCoords[_e.gameData.playerID][_e.gameData.planetCoords.string];Oe("[onclick*='submitNewOfferTrade']").addEventListener("click",(()=>{const e=[parseInt(Oe("#galaxyTrade").value,10),parseInt(Oe("#systemTrade").value,10),parseInt(Oe("#planetTrade").value,10)];_e.gameData.planets.filter((t=>parseInt(t.galaxy,10)===e[0]&&parseInt(t.system,10)===e[1]&&parseInt(t.planet,10)===e[2])).length||n.includes(`${e[0]}x${e[1]}x${e[2]}`)||!ee(e)||(n.unshift(`${e[0]}x${e[1]}x${e[2]}`),n.length>q.get("coords_trades")&&(n.length=q.get("coords_trades")),F("lwm_lastTradeCoords",JSON.stringify(_e.lwm.lastTradeCoords)),q.get("confirm_drive_sync")&&ye.save())}));const r=Ne('<a class="formButtonNewMessage" style="float: none;" href="#">Alle Resourcen</a>');r.addEventListener("click",(()=>{Qe()&&(Oe("#my_eisen").value=Math.round(j.Roheisen-j.Roheisen*j.lose/100),Oe("#my_kristall").value=Math.round(j.Kristall-j.Kristall*j.lose/100),Oe("#my_frubin").value=Math.round(j.Frubin-j.Frubin*j.lose/100),Oe("#my_orizin").value=Math.round(j.Orizin-j.Orizin*j.lose/100),Oe("#my_frurozin").value=Math.round(j.Frurozin-j.Frurozin*j.lose/100),Oe("#my_gold").value=Math.round(j.Gold-j.Gold*j.lose/100)),"0"===Oe("#his_eisen").value&&(Oe("#his_eisen").value="1"),Oe("#his_gold").value="0",Oe("#tradeOfferComment").value="";const e=`${q.get("coords_galaxy_main")}x${q.get("coords_system_main")}x${q.get("coords_planet_main")}`,t=`${j.my_galaxy}x${j.my_system}x${j.my_planet}`;"0"!==q.get("coords_galaxy_main")&&"0"!==q.get("coords_system_main")&&"0"!==q.get("coords_planet_main")&&""===Oe("#galaxyTrade").value&&""===Oe("#systemTrade").value&&""===Oe("#planetTrade").value&&e!==t&&(Oe("#galaxyTrade").value=q.get("coords_galaxy_main"),Oe("#systemTrade").value=q.get("coords_system_main"),Oe("#planetTrade").value=q.get("coords_planet_main"))})),Qe()&&e.querySelector("td:nth-child(2) .buttonRow").appendChild(r);const a=Ne('<a class="formButtonNewMessage" style="float: none;" href="#">Savehandel</a>');a.addEventListener("click",(()=>{r.click(),Oe("#his_gold").value="99999999",Oe("#his_eisen").value="0",Oe("#tradeOfferComment").value="###LWM::SAVE###";const e=`${Oe("#galaxyTrade").value}x${Oe("#systemTrade").value}x${Oe("#planetTrade").value}`,t=`${j.my_galaxy}x${j.my_system}x${j.my_planet}`;Oe("#lwm-own-coords").options.length>1&&(0===_e.gameData.planets.filter((t=>t.string===e)).length||e===t)&&(Oe("#lwm-own-coords").selectedIndex=1,Oe("#lwm-own-coords").dispatchEvent(new j.Event("change")))})),e.querySelector("td:nth-child(2) .buttonRow").appendChild(a);const i=Oe("#lwm-own-coords");i.appendChild(Ne("<option value=''>Planet wählen</option>")),i.addEventListener("change",(()=>{""===i.value?(Oe("#galaxyTrade").value="",Oe("#systemTrade").value="",Oe("#planetTrade").value=""):(Oe("#galaxyTrade").value=_e.gameData.newTradeOfferInfo.offer_cords[i.value].galaxy,Oe("#systemTrade").value=_e.gameData.newTradeOfferInfo.offer_cords[i.value].system,Oe("#planetTrade").value=_e.gameData.newTradeOfferInfo.offer_cords[i.value].planet)})),_e.gameData.newTradeOfferInfo.offer_cords.forEach(((e,t)=>{if(Ue(e.galaxy)===Ue(j.my_galaxy)&&Ue(e.system)===Ue(j.my_system)&&Ue(e.planet)===Ue(j.my_planet))return!0;const n=Ne(`<option value='${t}'>${e.galaxy}x${e.system}x${e.planet}${e.description?" "+e.description:""}</option>`);return i.appendChild(n),!0})),j.document.querySelectorAll("#galaxyTrade,#systemTrade,#planetTrade").forEach((e=>{e.addEventListener("change",(()=>{const e=`${Oe("#galaxyTrade").value}x${Oe("#systemTrade").value}x${Oe("#planetTrade").value}`,t=`${j.my_galaxy}x${j.my_system}x${j.my_planet}`;0===_e.gameData.planets.filter((t=>t.string===e)).length||e===t?Oe("#lwm-own-coords").selectedIndex=0:Oe("#lwm-own-coords").selectedIndex=_e.gameData.planets.map((e=>e.string)).indexOf(e)}))}));const o=[];n.forEach((e=>{const t=Ne(`<a href='javascript:void(0)'>${e}</a>`);t.addEventListener("click",(()=>{[Oe("#galaxyTrade").value,Oe("#systemTrade").value,Oe("#planetTrade").value]=e.split("x")})),o.push(t)})),o.forEach(((e,n)=>{t.appendChild(e),t.appendChild(n!==o.length-1?Ne("&nbsp;-&nbsp;"):Ne("<div></div>"))})),_e.loadStates.content=!1})).catch((e=>{I(e),console.log(e),ne(),_e.loadStates.content=!1}))},changeFleet:()=>{_e.promises.content=z("#changeFlottenDiv"),_e.promises.content.then((()=>{const e=O()('<a href="javascript:void(0)" class="lwm_selectAll"> (All)</a>');e.appendTo(O()("#changeFlottenDiv > table th:eq(7)")),e.clone().appendTo(O()("#changeFlottenDiv > table th:eq(8)")),O()("#changeFlottenDiv .lwm_selectAll").click((e=>{const t=O()(e.target).parent().index("#changeFlottenDiv > table th");O()("#changeFlottenDiv > table tr").find(`td:eq(${t}) .fa-angle-right`).each(((e,t)=>{let n=0;do{n=parseInt(O()(t).prev().val(),10),O()(t).click()}while(parseInt(O()(t).prev().val(),10)!==n)}))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},allFleets(e){_e.promises.content=z("#flottenBasenPlanetDiv,#fremdeFlottenBasenDiv,#flottenBasenAllDiv,#flottenKommandoDiv,#link"),_e.promises.content.then((()=>{const t=O().grep(e.responseJSON,(e=>"1"===e.status_king));O().each(t,((e,t)=>{O()(`td:contains('${t.id_fleets}')`).parents("table").find("form").append(`<a id="recallFleets" class="formButtonSpionage" href="#" onclick="changeContent('flotten_view', 'third', 'Flotten-Kommando', '${t.id_fleets}');"><i class="fas fa-wifi faa-flash animated"></i>L-Kom</a>`)})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},shipdock:()=>{_e.promises.content=z(".raumdockNameButtonDiv"),_e.promises.content.then((()=>{const e=O()('<button class="createShipButton createFleetRaumdock" id="lwm_selectAllShips">Alle Schiffe</button>');e.click((()=>{O()("[onclick*='addNumberRaumdock']").each(((e,t)=>{let n=0;do{if(n=parseInt(O()(t).prev().text()||O()(t).prev().val(),10),j.isNaN(n))break;O()(t).click()}while(parseInt(O()(t).prev().text()||O()(t).prev().val(),10)!==n)}))})),e.appendTo(O()(".raumdockNameButtonDiv")),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},calendar:()=>{_e.promises.content=z("#folottenbewegungenPageDiv"),_e.promises.content.then((()=>{O()("#folottenbewegungenPageDiv").remove();const e=O()('<div id="calendarDiv"><table><tbody><tr><th>Player</th><th>Coord</th><th>Type</th><th>Text</th><th>Time</th><th>Finished</th></tr></tbody></table></div>');!Be.calendar.truncateData()&&q.get("confirm_drive_sync")&&ye.save();const t=lt.createDocumentFragment();O().each(_e.lwm.calendar,((e,n)=>{const r=lt.createElement("tr");r.setAttribute("data-username",n.playerName),r.setAttribute("data-coord",n.coords),r.setAttribute("data-type",n.type),r.setAttribute("data-ts",n.ts);const a=lt.createElement("td");a.innerHTML=n.playerName;const i=lt.createElement("td");i.innerHTML=n.coords;const o=lt.createElement("td");o.innerHTML=n.type;const s=lt.createElement("td");s.innerHTML=n.text;const l=lt.createElement("td");l.innerHTML=U()(n.ts).format("YYYY-MM-DD HH:mm:ss");const c=lt.createElement("td");c.setAttribute("id","clock_calendar_"+e),c.innerHTML=U().duration(n.ts-U()().valueOf(),"milliseconds").format("HH:mm:ss",{trim:!1,forceLength:!0}),r.appendChild(a),r.appendChild(i),r.appendChild(o),r.appendChild(s),r.appendChild(l),r.appendChild(c),t.appendChild(r)})),e.find("tbody")[0].appendChild(t),e.find("table tbody tr:gt(0)").sort(((e,t)=>parseInt(O()(e).data("ts"),10)-parseInt(O()(t).data("ts"),10))).each(((t,n)=>{const r=O()(n).detach();O()(r).appendTo(e.find("table tbody"))})),O()(".pageContent").last().append(e),J(),(()=>{const t=()=>{e.find("tr").data("hide",!1);const t={username(t){e.find(`tr:gt(0)[data-username!='${t}']`).data("hide",!0)},coord(t){e.find(`tr:gt(0)[data-coord!='${t}']`).data("hide",!0)},type(t){e.find(`tr:gt(0)[data-type!='${t}']`).data("hide",!0)}};O().each(O()(".tableFilters_content > div > .activeBox"),((e,n)=>{const r=O()(n).parent().data("filter"),a=O()(n).parent().data("value");t[r](a)})),O().each(e.find("tr"),((e,t)=>{O()(t).data("hide")?O()(t).hide():O()(t).show()}))},n=O().map(_e.lwm.calendar,(e=>e.playerName)).filter(((e,t,n)=>n.indexOf(e)===t)),r=O().map(_e.lwm.calendar,(e=>e.coords)).filter(((e,t,n)=>n.indexOf(e)===t)),a=O().map(_e.lwm.calendar,(e=>e.type)).filter(((e,t,n)=>n.indexOf(e)===t)),i=O()('<div class="tableFilters"><div class="tableFilters_header">Filter</div><div class="tableFilters_content"></div></div>');O().each(n,((e,t)=>{O()(`<div class="buttonRowInbox" data-filter="username" data-value="${t}"><a class="formButton" href="javascript:void(0)">${t}</a></div>`).appendTo(i.find(".tableFilters_content"))})),O().each(r,((e,t)=>{O()(`<div class="buttonRowInbox" data-filter="coord" data-value="${t}"><a class="formButton" href="javascript:void(0)">${t}</a></div>`).appendTo(i.find(".tableFilters_content"))})),O().each(a,((e,t)=>{O()(`<div class="buttonRowInbox" data-filter="type" data-value="${t}"><a class="formButton" href="javascript:void(0)">${t}</a></div>`).appendTo(i.find(".tableFilters_content"))})),i.find(`[data-value='${_e.gameData.playerName}']`).find(".formButton").toggleClass("activeBox"),i.find("[data-value='fleet']").find(".formButton").toggleClass("activeBox"),i.find(".buttonRowInbox").click((e=>{O()(e.target).toggleClass("activeBox"),t()})),O()("#calendarDiv").prepend(i),t()})(),clearInterval(j.timeinterval_flottenbewegungen),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},fleetCommand:()=>{_e.promises.content=z("#makeCommandDiv"),_e.promises.content.then((()=>{O()("[onclick*='makeCommand']").click((()=>{const e=[parseInt(O()("#galaxyInput").val(),10),parseInt(O()("#systemInput").val(),10),parseInt(O()("#planetInput").val(),10)];-1===O().inArray(`${e[0]}x${e[1]}x${e[2]}`,_e.lwm.lastFleetCoords[_e.gameData.playerID][_e.gameData.planetCoords.string])&&ee(e)&&(_e.lwm.lastFleetCoords[_e.gameData.playerID][_e.gameData.planetCoords.string].unshift(`${e[0]}x${e[1]}x${e[2]}`),_e.lwm.lastFleetCoords[_e.gameData.playerID][_e.gameData.planetCoords.string].length>q.get("coords_fleets")&&(_e.lwm.lastFleetCoords[_e.gameData.playerID][_e.gameData.planetCoords.string].length=q.get("coords_fleets")),F("lwm_lastFleetCoords",JSON.stringify(_e.lwm.lastFleetCoords)),q.get("confirm_drive_sync")&&ye.save())}));const e=O()("#makeCommandDiv tr").last(),t=O()("<div style='width:100%'></div>"),n=[];O()(_e.lwm.lastFleetCoords[_e.gameData.playerID][_e.gameData.planetCoords.string]).each(((e,t)=>{const r=O()(`<a href='javascript:void(0)'>${t}</a>`);r.click((()=>{O()("#galaxyInput").val(t.split("x")[0]),O()("#systemInput").val(t.split("x")[1]),O()("#planetInput").val(t.split("x")[2])})),n.push(r)})),O()(n).each(((e,r)=>{t.append(r),e!==n.length-1&&t.append(" - ")})),t.appendTo(e.find("td").first()),j.premium_account||O()("#ClickLasteCordinate").remove(),q.get("fleet_saveprios")&&j.premium_account&&(6===_e.lwm.raidPrios.length&&(O()("#roheisen_priority").val(_e.lwm.raidPrios[0]),O()("#kristall_priority").val(_e.lwm.raidPrios[1]),O()("#frubin_priority").val(_e.lwm.raidPrios[2]),O()("#orizin_priority").val(_e.lwm.raidPrios[3]),O()("#frurozin_priority").val(_e.lwm.raidPrios[4]),O()("#gold_priority").val(_e.lwm.raidPrios[5])),O()("[onclick*='makeCommand']").click((()=>{if("1"===O()("[name='type_kommand']:checked").val()){const e=[O()("#roheisen_priority").val(),O()("#kristall_priority").val(),O()("#frubin_priority").val(),O()("#orizin_priority").val(),O()("#frurozin_priority").val(),O()("#gold_priority").val()];JSON.stringify(e)!==JSON.stringify(_e.lwm.raidPrios)&&(_e.lwm.raidPrios=e,F("lwm_raidPrios",JSON.stringify(_e.lwm.raidPrios)),q.get("confirm_drive_sync")&&ye.save())}}))),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},fleetSend:st,spyInfo(e){0===Object.keys(e.observations_drons).length&&0===Object.keys(e.planetenscanner_drons).length&&0===Object.keys(e.system_drons).length?_e.loadStates.content=!1:(_e.promises.content=z("#spionageDiv"),_e.promises.content.then((()=>{O()("#spionageDiv tr").each(((e,t)=>{"0"===O()(t).find("td:eq(4)").text()&&O()(t).hide()})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1})))},galaxyView:()=>{_e.promises.content=z("#galaxyViewInfoTable"),_e.promises.content.then((()=>{O()("a.flottenKommandoAction").addClass("fa-stack").append('<i class="far fa-circle fa-stack-2x"></i>').append('<i class="fas fa-fighter-jet fa-stack-1x"></i>'),O()("a.newTradeOfferAction").addClass("fa-stack").append('<i class="far fa-circle fa-stack-2x"></i>').append('<i class="fas fa-handshake fa-stack-1x"></i>'),O()("a.spionagePlanetenscannerAction").addClass("fa-stack").append('<i class="far fa-circle fa-stack-2x"></i>').append('<i class="fas fa-search fa-stack-1x"></i>'),O()("a.spionageObservationsAction").addClass("fa-stack").append('<i class="far fa-circle fa-stack-2x"></i>').append('<i class="fas fa-search-plus fa-stack-1x"></i>'),O()("a.changePlanetAction").addClass("fa-stack").append('<i class="far fa-circle fa-stack-2x"></i>').append('<i class="fas fa-exchange-alt fa-stack-1x"></i>');const e=e=>{const t=e.split("x");return[t[0]]=t[0].match(/\d+/),[t[1]]=t[1].match(/\d+/),[t[2]]=t[2].match(/\d+/),t};O()("#galaxyViewInfoTable tr").find("td:eq(3)").each(((t,n)=>{const r=O()(n).text(),a=e(O()(n).parents("tr").find("td").first().text()),i=_e.lwm.planetData[`${a[0]}x${a[1]}x${a[2]}`];if(""!==r&&"false"!==r&&"0"!==r){const e=O().grep(_e.gameData.spionageInfos.planetenscanner_drons,(e=>"IOB"===e.engine_type&&parseInt(e.number,10)>0)),t=O().grep(_e.gameData.spionageInfos.observations_drons,(e=>"IOB"===e.engine_type&&parseInt(e.number,10)>0)),r=re(a),i=O()(n).next().find(".spionagePlanetenscannerAction").length>0;!(O()(n).next().find(".spionageObservationsAction").length>0)&&(t.length>0||0!==r.length)&&O()(n).next().append('<a href="#" class="actionClass spionageObservationsAction fa-stack" onclick="javascript:void(0)"><i class="far fa-circle fa-stack-2x"></i><i class="fas fa-search-plus fa-stack-1x"></i></a>'),!i&&e.length>0&&O()(n).next().append('<a href="#" class="actionClass spionagePlanetenscannerAction fa-stack" onclick="javascript:void(0)"><i class="far fa-circle fa-stack-2x"></i><i class="fas fa-search fa-stack-1x"></i></a>')}""!==r&&"false"!==r&&"0"!==r&&i&&O()(n).next().append(`<div title="Tarntechnologie" class="actionClass fa-stack popover" style="color: #3c3ff5;"><i class="far fa-circle fa-stack-2x"></i><span>${i.Tarntechnologie}</span></div>`)})),O()("a.spionagePlanetenscannerAction").each(((t,n)=>{O()(n).attr("onclick","void(0)");const r=e(O()(n).parents("tr").find("td").first().text());O()(n).click((()=>{Ce(r)}))})),O()("a.spionageObservationsAction").each(((t,n)=>{O()(n).attr("onclick","void(0)");const r=e(O()(n).parents("tr").find("td").first().text()),a=re(r);0!==a.length?O()(n).click((()=>{q.get("obs_opentabs")?P.open("view/content/new_window/observationen_view.php?id="+a[0].id):j.openObservationWindow(a[0].id)})).css("color","#66f398"):O()(n).click((()=>{We(r)}))})),O()(".headerOfGalaxyViewPage").insertBefore(O()("#tableForChangingPlanet")),Z(O()(".formButtonGalaxyView"),"fas fa-search"),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},obs:()=>{_e.promises.content=z("#observationenDiv"),_e.promises.content.then((()=>{const e=O()("#observationenDiv table").eq(0);e.find("tr").each(((e,t)=>{O()(t).data("order",e)}));const t=e.find("th").eq(1),n=e.find("th").eq(3);t.append('<i class="fas fa-sort" style="float:right;"></i>').css("cursor","hand"),n.append('<i class="fas fa-sort" style="float:right;"></i>').css("cursor","hand"),t.click((()=>{e.find("tr:gt(0)").sort(((e,t)=>{const n=O()(e).find("td:eq(1)").text().split("x"),r=1e4*parseInt(n[0],10)+100*parseInt(n[1],10)+parseInt(n[2],10),a=O()(t).find("td:eq(1)").text().split("x");return r-(1e4*parseInt(a[0],10)+100*parseInt(a[1],10)+parseInt(a[2],10))})).each(((t,n)=>{const r=O()(n).detach();O()(r).appendTo(e)}))})),n.click((t=>{e.find("tr:gt(0)").sort(((e,t)=>O()(e).data("order")-O()(t).data("order"))).each((()=>{const n=O()(t.target).detach();O()(n).appendTo(e)}))})),O().each(O()("#observationenDiv table").first().find("tr:gt(0)"),((e,t)=>{const n=O()(t).find("td").eq(0),r=O()(t).find("td").eq(1).text().split("x"),a=_e.lwm.planetData[`${r[0]}x${r[1]}x${r[2]}`];n.append(['<a href="#" style="font-size: 0.75em;float: right;" class="fa-stack"><i class="far fa-circle fa-stack-2x"></i><i class="fas fa-search-plus fa-stack-1x"></i></a>',`<div style="color: #3c3ff5;font-size: 0.75em;float: right;" class="fa-stack"><i class="far fa-circle fa-stack-2x"></i><span>${a?a.Tarntechnologie:"?"}</span></div>`]),n.find("a").click((()=>{We(r)}))})),q.get("obs_opentabs")&&O().each(O()("#observationenDiv a[onclick*='openObservationWindow']"),((e,t)=>{const n=O()(t),r=n.attr("onclick").match(/\d+/)[0];n.attr("onclick","").attr("target","_blank").attr("href","view/content/new_window/observationen_view.php?id="+r)})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},designShips:()=>{_e.promises.content=z("#schiffskomponentenDiv"),_e.promises.content.then((()=>{_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},buildingTree:()=>{_e.promises.content=z("#constructionTreeTable,#researcheTreeTable,#shipTreeTable,#defenseTreeTable"),_e.promises.content.then((()=>{const e=Ne('<div class="tableFilters"><div class="tableFilters_header">Filter</div><div class="tableFilters_content"></div></div>'),t=Ne('<div class="buttonRowInbox" id="lwm_filterBuildingTree"><a class="formButton" href="javascript:void(0)">Filter Achieved</a></div>');e.querySelector(".tableFilters_content").appendChild(t);const n=Oe("#Tables");t.addEventListener("click",(({target:e})=>{e.classList.toggle("activeBox");const t=("#Tables tr > td:nth-child(2) > img[src*='green']",j.document.querySelectorAll("#Tables tr > td:nth-child(2) > img[src*='green']"));const r=[];if(t.forEach((e=>{const t=e.closest("tr");r.push(t.getAttribute("id")||t.getAttribute("class")||t.querySelector("td:first-child").getAttribute("id"))})),e.classList.contains("activeBox")){const e=`tr#${r.join(",tr#")},tr#${r.join("+tr,tr#")}+tr,tr.${r.join(",tr.")},tr.${r.join("+tr,tr.")}+tr,td#${r.join(",td#")}`;n.querySelectorAll(e).forEach((e=>{if("TD"===e.nodeName){const t=e.closest("tr");t.style.display="none",t.nextSibling.style.display="none"}else e.style.display="none"})),n.querySelectorAll("th").forEach((e=>{e.closest("tr").style.display=""}))}else n.querySelectorAll("tr").forEach((e=>{e.style.display=""}))})),n.prepend(e),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},resources:()=>{_e.promises.content=z("#rohstoffeDiv"),_e.promises.content.then((()=>{const e=j.getResourcePerHour(),t=["roheisen","kristall","frubin","orizin","frurozin","gold"],n=[j.Roheisen,j.Kristall,j.Frubin,j.Orizin,j.Frurozin,j.Gold],r=te();if(O()("#rohstoffeDiv > .rohstoffeTableClass > tbody > tr > td > .rohstoffeTableClass").find("> tbody > tr:eq(4)").each(((a,i)=>{if(!e[0][t[a]])return!0;const o=(j.resourceCapacityArray[a]-n[a]-r[a])/e[0][t[a]];return O()(i).after(`<tr><td class="second" valign="top" align="right">Time till capacity reached:</td><td class="second" ><span class='${o<8?"redBackground":""}' id='clock_lwm_${t[a]}'>${U().duration(o,"hours").format("HH:mm:ss",{trim:!1,forceLength:!0})}</span></td></tr>`),!0})),J(),_e.gameData.planets.length===Object.values(_e.lwm.resProd[_e.gameData.playerID]).length){const e={fe:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.roheisen)).reduce(((e,t)=>e+t)),kris:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.kristall)).reduce(((e,t)=>e+t)),frub:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.frubin)).reduce(((e,t)=>e+t)),ori:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.orizin)).reduce(((e,t)=>e+t)),fruro:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.frurozin)).reduce(((e,t)=>e+t)),gold:O().map(_e.lwm.resProd[_e.gameData.playerID],(e=>e.gold)).reduce(((e,t)=>e+t))};O()(`<table id="lwm_resourceTotal"><tbody><tr><th colspan="7">Total Production For All Planets</th></tr><tr><th class="sameWith"></td><th class="sameWith roheisenVariable">Roheisen</td><th class="sameWith kristallVariable">Kristall</td><th class="sameWith frubinVariable">Frubin</td><th class="sameWith orizinVariable">Orizin</td><th class="sameWith frurozinVariable">Frurozin</td><th class="sameWith goldVariable">Gold</td></tr><tr><td class="">per hour</td><td class="roheisenVariable">${j.jQuery.number(e.fe,0,",",".")}</td><td class="kristallVariable">${j.jQuery.number(e.kris,0,",",".")}</td><td class="frubinVariable">${j.jQuery.number(e.frub,0,",",".")}</td><td class="orizinVariable">${j.jQuery.number(e.ori,0,",",".")}</td><td class="frurozinVariable">${j.jQuery.number(e.fruro,0,",",".")}</td><td class="goldVariable">${j.jQuery.number(e.gold,0,",",".")}</td></tr><tr><td class="">per day</td><td class="roheisenVariable">${j.jQuery.number(24*e.fe,0,",",".")}</td><td class="kristallVariable">${j.jQuery.number(24*e.kris,0,",",".")}</td><td class="frubinVariable">${j.jQuery.number(24*e.frub,0,",",".")}</td><td class="orizinVariable">${j.jQuery.number(24*e.ori,0,",",".")}</td><td class="frurozinVariable">${j.jQuery.number(24*e.fruro,0,",",".")}</td><td class="goldVariable">${j.jQuery.number(24*e.gold,0,",",".")}</td></tr></tbody></table>`).prependTo("#rohstoffeDiv")}_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},credit:()=>{_e.promises.content=z("#kreditinstitutDiv"),_e.promises.content.then((()=>{O()("#hoursKredit").change((()=>{j.max_resource.forEach(((e,t)=>{j.max_resource[t]=parseInt(e.replace(".",""),10)}))})),O()("[type='number']").after('<i class="fas fa-2x fa-angle-double-left"></i>'),O()(".fa-angle-double-left").each(((e,t)=>{O()(t).parent().css("display","flex"),O()(t).parent().css("justify-content","space-evenly"),O()(t).parent().css("align-items","center"),O()(t).click((()=>{O()(t).parent().find("input").val(O()(t).parents("tr").find("[id*='max']").text().replace(/\D/,""))}))})),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))},bank(e){_e.promises.content=z("#bankDiv"),_e.promises.content.then((()=>{if(void 0===e.interest||void 0===e.resource||void 0===e.bank_limit)return ne(),void(_e.loadStates.content=!1);const t=parseFloat(e.interest)<0?0:parseFloat(e.interest)/100,n=O()('<div class="buttonRow" style="width: 100%; margin-left: 0;"></div>'),r=O()('<a class="formButtonNewMessage" style="float:none;" href="#">Fill Bank</a>');r.click((()=>{ct("WARNING: This function does not respect transactions that are not yet processed. Make sure you do not overflow your bank before submitting!");const n={roheisen:e.bank_limit/(1+t)-parseInt(e.resource.roheisen,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.roheisen,10),kristall:e.bank_limit/(1+t)-parseInt(e.resource.kristall,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.kristall,10),frubin:e.bank_limit/(1+t)-parseInt(e.resource.frubin,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.frubin,10),orizin:e.bank_limit/(1+t)-parseInt(e.resource.orizin,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.orizin,10),frurozin:e.bank_limit/(1+t)-parseInt(e.resource.frurozin,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.frurozin,10),gold:e.bank_limit/(1+t)-parseInt(e.resource.gold,10)<0?0:e.bank_limit/(1+t)-parseInt(e.resource.gold,10)};O()("#typeTransaction").val("putIn"),O()("#roheisenInputBank").val(parseInt(j.Roheisen>n.roheisen?n.roheisen:j.Roheisen,10)),O()("#kristallInputBank").val(parseInt(j.Kristall>n.kristall?n.kristall:j.Kristall,10)),O()("#frubinInputBank").val(parseInt(j.Frubin>n.frubin?n.frubin:j.Frubin,10)),O()("#orizinInputBank").val(parseInt(j.Orizin>n.orizin?n.orizin:j.Orizin,10)),O()("#frurozinInputBank").val(parseInt(j.Frurozin>n.frurozin?n.frurozin:j.Frurozin,10)),O()("#goldInputBank").val(parseInt(j.Gold>n.gold?n.gold:j.Gold,10))}));const a=O()('<a class="formButtonNewMessage" style="float:none;" href="#">Withdraw Interest</a>');a.click((()=>{const n={roheisen:parseInt(e.resource.roheisen,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.roheisen,10)-e.bank_limit/(1+t),kristall:parseInt(e.resource.kristall,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.kristall,10)-e.bank_limit/(1+t),frubin:parseInt(e.resource.frubin,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.frubin,10)-e.bank_limit/(1+t),orizin:parseInt(e.resource.orizin,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.orizin,10)-e.bank_limit/(1+t),frurozin:parseInt(e.resource.frurozin,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.frurozin,10)-e.bank_limit/(1+t),gold:parseInt(e.resource.gold,10)-e.bank_limit/(1+t)<0?0:parseInt(e.resource.gold,10)-e.bank_limit/(1+t)};O()("#typeTransaction").val("takeOut"),O()("#roheisenInputBank").val(parseInt(n.roheisen,10)),O()("#kristallInputBank").val(parseInt(n.kristall,10)),O()("#frubinInputBank").val(parseInt(n.frubin,10)),O()("#orizinInputBank").val(parseInt(n.orizin,10)),O()("#frurozinInputBank").val(parseInt(n.frurozin,10)),O()("#goldInputBank").val(parseInt(n.gold,10))})),n.append([r,a]),O()("#bankDiv table:eq(0) tr:eq(3) td:eq(0)").append(n),_e.loadStates.content=!1})).catch((e=>{I(e),ne(),_e.loadStates.content=!1}))}},{document:dt}=j,ft=e=>dt.querySelector(e),pt=(e,t,n)=>{switch(_e.loadStates.content=!0,_e.loadStates.fleetaddon=!0,_e.loadStates.lastLoadedPage=e,null!==_e.promises.content&&_e.promises.content.reject(),n&&null!==_e.promises.submenu&&_e.promises.submenu.reject(),n||Ve.move(e),e){case"ubersicht":ut.uebersicht();break;case"produktion":ut.produktion();break;case"upgrade_ships":ut.upgradeShips();break;case"recycling_anlage":ut.recycleShips();break;case"verteidigung":ut.defense();break;case"construction":ut.constructions();break;case"research":ut.research();break;case"aktuelle_produktion":ut.prodQueue();break;case"handelsposten":ut.shipPost();break;case"upgrade_defence":ut.upgradeDef();break;case"recycling_defence":ut.recycleDef();break;case"planeten":ut.planeten();break;case"get_inbox_load_info":case"get_inbox_message":ut.inbox();break;case"get_trade_offers":ut.trades();break;case"new_trade_offer":ut.newTrade();break;case"flottenbewegungen":ut.calendar();break;case"raumdock":ut.shipdock();break;case"get_galaxy_view_info":ut.galaxyView();break;case"observationen":ut.obs();break;case"schiffskomponenten":ut.designShips();break;case"get_make_command_info":ut.fleetCommand();break;case"get_change_flotten_info":ut.changeFleet();break;case"get_info_for_flotten_pages":ut.allFleets(t);break;case"get_flotten_informations_info":ut.fleetSend(t.responseJSON);break;case"get_spionage_info":ut.spyInfo(t.responseJSON);break;case"building_tree":case"research_tree":case"shiptree":case"verteidigung_tree":ut.buildingTree();break;case"rohstoffe":ut.resources();break;case"kreditinstitut":ut.credit();break;case"get_bank_info":ut.bank(t.responseJSON);break;default:ut.default()}ut.replaceArrows(),ut.replaceHrefAnchors(),Be.load(e),V().catch((e=>{I(e),ne()})).finally((()=>{ft(".loader").style.display="none",ft("#all").style.display="block",_e.firstLoad&&(ft("#Main").classList.add("active"),dt.querySelectorAll(".lwm-firstload").forEach((e=>{e.parentNode.removeChild(e)})),_e.firstLoad=!1,ft("meta[name=viewport]").setAttribute("content","width=device-width, initial-scale=1.0"),$("lwm_navigateTo",[]).then((e=>{3===e.length&&j.changeContent(e[0],e[1],e[2]),F("lwm_navigateTo",[])}))),ft("#all").focus(),"get_galaxy_view_info"===e&&ft("#tableForChangingPlanet").scrollIntoView()}))};De()(U());const{document:ht}=j,mt=e=>{const t=["Roheisen","Kristall","Frubin","Orizin","Frurozin","Gold"],n=j.getResourcePerHour(),r=[j.Roheisen,j.Kristall,j.Frubin,j.Orizin,j.Frurozin,j.Gold],a=te(),i=t.indexOf(e.querySelector(".resourceName").innerText),o=`<div class="${r[i]+a[i]>j.resourceCapacityArray[i]?"redBackground ":""}resourceAmount lwm-resourceAmount">${j.jQuery.number(r[i]+a[i],0,",",".")}</div>`,s=(j.resourceCapacityArray[i]-r[i]-a[i])/n[0][t[i].toLowerCase()],l=Ne(`<div class='lwm-resourceClock ${s<8?"redBackground":""}' id='clock_lwm_${t[i]}'>${U().duration(s,"hours").format("HH:mm:ss",{trim:!1,forceLength:!0})}</div>`),c=`<div class="resourceAmount lwm-resourceCapacity">(${j.jQuery.number(j.resourceCapacityArray[i],0,",",".")})</div>`;j.jQuery(e).contents().css({display:"none"}),j.jQuery(e).append(o),j.jQuery(e).append(c),j.jQuery(e).append(l),J(),j.jQuery(e).css({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"})},gt=e=>{j.jQuery(e).find(".lwm-resourceAmount").remove(),j.jQuery(e).find(".lwm-resourceCapacity").remove(),j.jQuery(e).find(".lwm-resourceClock").remove(),j.jQuery(e).contents().css({display:""}),j.jQuery(e).css({display:"",justifyContent:"",alignItems:"",flexDirection:""})},yt=()=>"ontouchstart"in j,{document:vt,alert:_t}=P,bt=()=>1===j.premium_account,wt=()=>{O()("body").append('<div class="lwm-firstload wrapper"><div class="loader lwm-firstload"></div><div class="status lwm-firstload"></div></div>');const e=O()('<div id=\'lwm_menu_toggle\'><div class=\'lwm_menu-content\'><div class=\'lwm_menu-item\'><i class="fas fa-home"></i><i class="fas fa-warehouse"></i><i class="fas fa-database"></i><i class="fas fa-shield-alt"></i><i class="fas fa-fighter-jet"></i><i class="fas fa-plane-departure"></i><i class="fas fa-handshake"></i><i class="fas fa-envelope"></i><i class="fas icon-galaxy"></i><i class="fas fa-sign-out-alt"></i></div><div class=\'lwm_menu-item\'><div class="planet-changer"></div></div><div class=\'lwm_menu-item\'><i class="toggle fas fa-3x fa-plus-circle"></div></div></div>');if(e.find(".fa-home").click((()=>{j.changeContent("ubersicht","first","Übersicht")})),e.find(".fa-warehouse").click((()=>{j.changeContent("construction","first","Konstruktion")})),j.lvlForschungszentrale>0?e.find(".fa-database").click((()=>{j.changeContent("research","first","Forschung")})):e.find(".fa-database").addClass("inactive"),j.lvlVerteidigungsstation>0?e.find(".fa-shield-alt").click((()=>{j.changeContent("verteidigung","first","Verteidigung")})):e.find(".fa-shield-alt").addClass("inactive"),j.lvlRaumschiffFabrik>0?e.find(".fa-fighter-jet").click((()=>{j.changeContent("produktion","first","Produktion")})):e.find(".fa-fighter-jet").addClass("inactive"),e.find(".fa-plane-departure").click((()=>{j.changeContent("flottenkommando","second","Flotten-Kommando")})),j.lvlHandelszentrum>0?e.find(".fa-handshake").click((()=>{j.changeContent("new_trade_offer","second","Handelsangebot")})):e.find(".fa-handshake").click((()=>{j.changeContent("trade_offer","first","Handel")})),e.find(".fa-envelope").click((()=>{j.changeContent("inbox","first","Nachrichten","notifiscationMessageList")})),e.find(".icon-galaxy").click((()=>{j.changeContent("galaxy_view","first","Galaxieansicht")})),e.find(".fa-sign-out-alt").click((()=>{j.logoutRequest()})),e.find(".toggle").click((e=>{O()("#Header").toggle(),O()(e.target).toggleClass("fa-plus-circle fa-minus-circle")})),e.prependTo(O()("#Main")),O()(".select_box_cordinaten").clone().appendTo(e.find(".planet-changer")),e.find(".planet-changer").click((e=>{e.stopPropagation()})),e.find(".planet-changer").find("select").change((e=>{O()(".profileInfo #allCordinaten").val(O()(e.target).find("select").val()),(e=>{const t=e.split("x");j.jQuery.ajax({url:"/ajax_request/change_cordinates.php",method:"post",data:{galaxy:t[0],system:t[1],planet:t[2]},timeout:_e.promises.interval.ajaxTimeout,success:e=>{"1"===e?j.location.reload():e||j.logoutRequest()}})})(e.target.value)})),!O()("#Footer").length){const e=O()('<div id="Footer"><div class="resourceBoxs"></div></div>');O()(".resourceBox").appendTo(e.find(".resourceBoxs")),O()("#Content").find(".resourceBoxs").remove(),e.appendTo(O()("#Main"))}O()(".menu > .first_line").length||(O()('<div class="first_line"></div>').appendTo(O()(".menu")),O()(".menu > .menu_box").appendTo(O()(".menu > .first_line"))),P.addEventListener("resize",(function(){P.matchMedia("(max-width: 850px)").matches?(O()("#Header").hide(),e.find("i.toggle").addClass("fa-plus-circle").removeClass("fa-minus-circle"),O()(".secound_line .navButton").appendTo("#link, #veticalLink"),O()(".secound_line").toggle(O()(".secound_line .navButton").length>0)):(O()("#Header").show(),e.find("i.toggle").addClass("fa-minus-circle").removeClass("fa-plus-circle"),O()("#link .navButton, #veticalLink .navButton").appendTo(".secound_line"),O()(".secound_line").toggle(O()(".secound_line .navButton").length>0))}),!1),O()(".middleContent > br").remove();const t=O()(".secound_line").find("div");O().each(t,((e,t)=>{O()(t).appendTo(".first_line")})),O()(vt).on("click",".menu_box",(e=>{O()(".menu_box").removeClass("activeBox"),O()(e.target).closest(".menu_box").addClass("activeBox")})),O()(vt).on("click",".secound_line .navButton",(e=>{O()(".secound_line .navButton").removeClass("activeBox"),O()(e.target).closest(".navButton").addClass("activeBox")})),O()(vt).on("click","#veticalLink .navButton",(e=>{O()("#veticalLink .navButton").removeClass("activeBox"),O()(e.target).closest(".navButton").addClass("activeBox")})),O()(vt).on("click",".menu_box[onclick*=changeContent],.secound_line .navButton[onclick*=changeContent],#veticalLink .navButton[onclick*=changeContent]",(e=>{j.changeContent=()=>{},j.changeInboxContent=()=>{};const t=O()(e.target).is("[onclick*=changeContent]")?O()(e.target):O()(e.target).parents("[onclick*=changeContent]");t.attr("data-onclick",t.attr("onclick")).attr("onclick",""),V().then((()=>{j.changeContent=_e.unsafeWindow.changeContent,j.changeInboxContent=_e.unsafeWindow.changeInboxContent,t.attr("onclick",t.attr("data-onclick"))})).catch((e=>{I(e),j.changeContent=_e.unsafeWindow.changeContent,j.changeInboxContent=_e.unsafeWindow.changeInboxContent,t.attr("onclick",t.attr("data-onclick"))}))})),q.get("addon_clock")&&["initializeAktuelleProduktionClock","initializeClock","initializeClock2","initializeResearchClock","initializeUberClock","initializeFlottenbewegungenClock"].forEach((e=>{const t=j[e];j[e]=(e,n,r,a,i,o)=>{t(e,n,r,a,i,o),clearInterval(j.timeinterval_construction),clearInterval(j.timeinterval_construction2),clearInterval(j.timeinterval_research),clearInterval(j.timeinterval_uber),clearInterval(j.timeinterval_aktuelle_produktion),clearInterval(j.timeinterval_flottenbewegungen),J()}})),O()(vt).keyup((e=>{const t=O()("#galaxyViewDiv").length>0,n=O()("#messagesListTableInbox").length>0,r=O()(".messages").length>0&&0===O()("#newMessageInsert").length;(t||n||r)&&(37===e.which&&t&&j.goToPrevSystem(),39===e.which&&t&&j.goToNextSystem(),37===e.which&&n&&j.previousPage(),39===e.which&&n&&j.nextPage(),37===e.which&&r&&O()(".controller a:contains('<<')").click(),39===e.which&&r&&O()(".controller a:contains('>>')").click())})),O()("#profileImageBox").css("background-image",`url(https://last-war.de/${O()("#imageAvatarPattern").attr("xlink:href")})`),O()("#ubersicht").prepend('<i class="fas fa-home"></i>'),O()("#construction").prepend('<i class="fas fa-warehouse"></i>'),O()("#research").prepend('<i class="fas fa-database"></i>'),j.lvlForschungszentrale<1&&O()("#research").addClass("inactive"),O()("#verteidigung").prepend('<i class="fas fa-shield-alt"></i>'),j.lvlVerteidigungsstation<1&&O()("#verteidigung").addClass("inactive"),O()("#produktion").prepend('<i class="fas fa-fighter-jet"></i>'),j.lvlRaumschiffFabrik<1&&O()("#produktion").addClass("inactive"),O()("#flottenbewegungen").after(O()("#flottenbewegungen").clone().prepend('<i class="far fa-calendar"></i>').attr("id","calendar")),O()("#calendar span").text("Kalender"),bt()&&(O()("#flottenbewegungen").after(O()("#flottenbewegungen").clone().prepend('<i class="far fa-clipboard"></i>').attr("id","clipboard").attr("onclick","")),O()("#clipboard span").text("Notizblock")),O()("#flottenbewegungen").prepend('<i class="fas fa-plane-departure"></i>').attr("id","raumdock").attr("onclick","changeContent('flottenkommando', 'second', 'Flotten-Kommando');"),O()("#trade_offer").prepend('<i class="fas fa-handshake"></i>'),O()("#rohstoffe").prepend('<i class="fas fa-gem"></i>'),O()("#planeten").prepend('<i class="fas fa-globe"></i>'),O()("#building_tree").prepend('<i class="fas fa-th-list"></i>'),O()("#highscore_player").prepend('<i class="fas fa-trophy"></i>'),O()("#create_new_allianze").prepend('<i class="fas fa-users"></i>'),O()("#alliance").prepend('<i class="fas fa-users"></i>'),O()("#inbox").prepend('<i class="fas fa-envelope"></i>'),O()("#account").prepend('<i class="fas fa-user-circle"></i>'),O()("#forum").prepend('<i class="fab fa-wpforms"></i>'),O()("#chatMenu").prepend('<i class="fas fa-comments"></i>'),O()("#logout").prepend('<i class="fas fa-sign-out-alt"></i>'),bt()&&O()("#clipboard").click((()=>{if(O()(".lwm-memo-container").length>0)return void O()(".lwm-memo-container").remove();q.get("menu_clipboard")&&O()("#Main").css({opacity:"0.5",position:"fixed",pointerEvents:"none"});const e=O()("<div class='lwm-memo-close'><i class=\"fas fa-times-circle\"></i></div>");e.click((()=>{O()("#Main").css({opacity:"",position:"",pointerEvents:""}),O()(".lwm-memo-container").remove()}));const t=O()("<textarea class='lwm-memo-text'></textarea>").text(j.memo_text),n=O()('<div class="lwm-memo-save"><a class="buttonAccount" href="#"><i class="fas fa-check"></i> Speichern</a></div>');n.click((()=>{const e=O()(".lwm-memo-text").val();bt()&&e&&e.length>0&&j.jQuery.ajax({type:"POST",dataType:"json",url:"./ajax_request/save_memo_text.php",data:{memo_text:e},error(e,t,n){_t(`${t}: ${n}`)},success(t){t?-1===t?(_t("Your premium account is expired or you don't have it."),vt.location.reload()):-2===t?_t("Please insert some text."):(j.memo_text=e,_t("Notizen gespeichert")):j.logoutRequest()}})}));const r=O()('<div class="lwm-memo-container"><div class="lwm-memo-menu"></div><div class="lwm-memo-body"></div></div>');q.get("menu_clipboard")||r.addClass("lwm-memo-container-inline"),r.find(".lwm-memo-body").append(t),r.find(".lwm-memo-menu").append([e,n]),q.get("menu_clipboard")?O()("body").append(r):O()("#Content").prepend(r)}));const n=O()('<div class="menu_box"><i class="fas fa-cogs"></i><span style="margin-right:2px;">Manager</span></div>');n.click((()=>{q.open()})),O()(".first_line .menu_box:nth-last-child(2)").after(n),O()("#logout").on("click",(()=>{Be.unload()})),O()(".galaxyView").appendTo(".resourceBoxs"),O()("#all").before('<div class="loader"></div>'),j.jQuery("#Footer").on("mouseenter",(()=>{j.jQuery(".resourceBox").each(((e,t)=>{yt()||mt(t)}))})),j.jQuery("#Footer").on("mouseleave blur",(()=>{j.jQuery(".resourceBox").each(((e,t)=>{gt(t)}))})),j.jQuery("#Footer").on("click",(()=>{j.jQuery(".resourceBox").each(((e,t)=>{j.jQuery(t).find(".lwm-resourceCapacity").length?yt()&&gt(t):yt()&&mt(t)}))})),j.jQuery(ht).on("mouseenter",".popover,.constructionName",(()=>{setTimeout((()=>{j.jQuery(".big_img").appendTo("body").attr("class","big_img_alt")}),50)})),j.jQuery(ht).on("mousemove",".popover,.constructionName",(e=>{setTimeout((()=>{j.jQuery(".big_img_alt").css({top:e.pageY-50,left:e.pageX+10})}),50)})),j.jQuery(ht).on("mouseleave",".popover,.constructionName",(()=>{j.jQuery(".big_img_alt").remove()})),O()("head").append('<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">'),O()("head").append('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome-animation/0.2.1/font-awesome-animation.min.css">')},xt=["00:00","00:05","00:10","00:15","00:20","00:25","00:30","00:35","00:40","00:45","00:50","00:55","01:00","01:05","01:10","01:15","01:20","01:25","01:30","01:35","01:40","01:45","01:50","01:55","02:00","02:05","02:10","02:15","02:20","02:25","02:30","02:35","02:40","02:45","02:50","02:55","03:00","03:05","03:10","03:15","03:20","03:25","03:30","03:35","03:40","03:45","03:50","03:55","04:00","04:05","04:10","04:15","04:20","04:25","04:30","04:35","04:40","04:45","04:50","04:55","05:00","05:05","05:10","05:15","05:20","05:25","05:30","05:35","05:40","05:45","05:50","05:55","06:00","06:05","06:10","06:15","06:20","06:25","06:30","06:35","06:40","06:45","06:50","06:55","07:00","07:05","07:10","07:15","07:20","07:25","07:30","07:35","07:40","07:45","07:50","07:55","08:00","08:05","08:10","08:15","08:20","08:25","08:30","08:35","08:40","08:45","08:50","08:55","09:00","09:05","09:10","09:15","09:20","09:25","09:30","09:35","09:40","09:45","09:50","09:55","10:00","10:05","10:10","10:15","10:20","10:25","10:30","10:35","10:40","10:45","10:50","10:55","11:00","11:05","11:10","11:15","11:20","11:25","11:30","11:35","11:40","11:45","11:50","11:55","12:00","12:05","12:10","12:15","12:20","12:25","12:30","12:35","12:40","12:45","12:50","12:55","13:00","13:05","13:10","13:15","13:20","13:25","13:30","13:35","13:40","13:45","13:50","13:55","14:00","14:05","14:10","14:15","14:20","14:25","14:30","14:35","14:40","14:45","14:50","14:55","15:00","15:05","15:10","15:15","15:20","15:25","15:30","15:35","15:40","15:45","15:50","15:55","16:00","16:05","16:10","16:15","16:20","16:25","16:30","16:35","16:40","16:45","16:50","16:55","17:00","17:05","17:10","17:15","17:20","17:25","17:30","17:35","17:40","17:45","17:50","17:55","18:00","18:05","18:10","18:15","18:20","18:25","18:30","18:35","18:40","18:45","18:50","18:55","19:00","19:05","19:10","19:15","19:20","19:25","19:30","19:35","19:40","19:45","19:50","19:55","20:00","20:05","20:10","20:15","20:20","20:25","20:30","20:35","20:40","20:45","20:50","20:55","21:00","21:05","21:10","21:15","21:20","21:25","21:30","21:35","21:40","21:45","21:50","21:55","22:00","22:05","22:10","22:15","22:20","22:25","22:30","22:35","22:40","22:45","22:50","22:55","23:00","23:05","23:10","23:15","23:20","23:25","23:30","23:35","23:40","23:45","23:50","23:55"];var kt="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function St(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Dt(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Tt(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var It={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,"⇪":20,",":188,".":190,"/":191,"`":192,"-":kt?173:189,"=":kt?61:187,";":kt?59:186,"'":222,"[":219,"]":221,"\\":220},Ct={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Nt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Ot={16:!1,18:!1,17:!1,91:!1},Mt={},Et=1;Et<20;Et++)It["f".concat(Et)]=111+Et;var jt=[],Pt="all",Ft=[],$t=function(e){return It[e.toLowerCase()]||Ct[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function At(e){Pt=e||"all"}function Lt(){return Pt||"all"}var Rt=function(e){var t=e.key,n=e.scope,r=e.method,a=e.splitKey,i=void 0===a?"+":a;Tt(t).forEach((function(e){var t=e.split(i),a=t.length,o=t[a-1],s="*"===o?"*":$t(o);if(Mt[s]){n||(n=Lt());var l=a>1?Dt(Ct,t):[];Mt[s]=Mt[s].map((function(e){return r&&e.method!==r||e.scope!==n||!function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(a=!1);return a}(e.mods,l)?e:{}}))}}))};function Bt(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var a in r=t.mods.length>0,Ot)Object.prototype.hasOwnProperty.call(Ot,a)&&(!Ot[a]&&t.mods.indexOf(+a)>-1||Ot[a]&&-1===t.mods.indexOf(+a))&&(r=!1);(0!==t.mods.length||Ot[16]||Ot[18]||Ot[17]||Ot[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function qt(e){var t=Mt["*"],n=e.keyCode||e.which||e.charCode;if(Vt.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===jt.indexOf(n)&&229!==n&&jt.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Nt[t];e[t]&&-1===jt.indexOf(n)?jt.push(n):!e[t]&&jt.indexOf(n)>-1?jt.splice(jt.indexOf(n),1):"metaKey"===t&&e[t]&&3===jt.length&&(e.ctrlKey||e.shiftKey||e.altKey||(jt=jt.slice(jt.indexOf(n))))})),n in Ot){for(var r in Ot[n]=!0,Ct)Ct[r]===n&&(Vt[r]=!0);if(!t)return}for(var a in Ot)Object.prototype.hasOwnProperty.call(Ot,a)&&(Ot[a]=e[Nt[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===jt.indexOf(17)&&jt.push(17),-1===jt.indexOf(18)&&jt.push(18),Ot[17]=!0,Ot[18]=!0);var i=Lt();if(t)for(var o=0;o<t.length;o++)t[o].scope===i&&("keydown"===e.type&&t[o].keydown||"keyup"===e.type&&t[o].keyup)&&Bt(e,t[o],i);if(n in Mt)for(var s=0;s<Mt[n].length;s++)if(("keydown"===e.type&&Mt[n][s].keydown||"keyup"===e.type&&Mt[n][s].keyup)&&Mt[n][s].key){for(var l=Mt[n][s],c=l.splitKey,u=l.key.split(c),d=[],f=0;f<u.length;f++)d.push($t(u[f]));d.sort().join("")===jt.sort().join("")&&Bt(e,l,i)}}}function Vt(e,t,n){jt=[];var r=Tt(e),a=[],i="all",o=document,s=0,l=!1,c=!0,u="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey&&(u=t.splitKey)),"string"==typeof t&&(i=t);s<r.length;s++)a=[],(e=r[s].split(u)).length>1&&(a=Dt(Ct,e)),(e="*"===(e=e[e.length-1])?"*":$t(e))in Mt||(Mt[e]=[]),Mt[e].push({keyup:l,keydown:c,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:u});void 0!==o&&!function(e){return Ft.indexOf(e)>-1}(o)&&window&&(Ft.push(o),St(o,"keydown",(function(e){qt(e)})),St(window,"focus",(function(){jt=[]})),St(o,"keyup",(function(e){qt(e),function(e){var t=e.keyCode||e.which||e.charCode,n=jt.indexOf(t);if(n>=0&&jt.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&jt.splice(0,jt.length),93!==t&&224!==t||(t=91),t in Ot)for(var r in Ot[t]=!1,Ct)Ct[r]===t&&(Vt[r]=!1)}(e)})))}var Yt={setScope:At,getScope:Lt,deleteScope:function(e,t){var n,r;for(var a in e||(e=Lt()),Mt)if(Object.prototype.hasOwnProperty.call(Mt,a))for(n=Mt[a],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;Lt()===e&&At(t||"all")},getPressedKeyCodes:function(){return jt.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=$t(e)),-1!==jt.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Rt(e)}));else if("object"==typeof e)e.key&&Rt(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n[0],i=n[1];"function"==typeof a&&(i=a,a=""),Rt({key:e,scope:a,method:i,splitKey:"+"})}}else Object.keys(Mt).forEach((function(e){return delete Mt[e]}))}};for(var zt in Yt)Object.prototype.hasOwnProperty.call(Yt,zt)&&(Vt[zt]=Yt[zt]);if("undefined"!=typeof window){var Ht=window.hotkeys;Vt.noConflict=function(e){return e&&window.hotkeys===Vt&&(window.hotkeys=Ht),Vt},window.hotkeys=Vt}const Wt=Vt;var Gt=n(379),Ut=n.n(Gt),Qt=n(982);Ut()(Qt.Z,{insert:"head",singleton:!1}),Qt.Z.locals;var Jt,Kt=n(480),Zt=0,Xt={injectType:"lazyStyleTag",insert:"head",singleton:!1},en={};en.locals=Kt.Z.locals||{},en.use=function(){return Zt++||(Jt=Ut()(Kt.Z,Xt)),en},en.unuse=function(){Zt>0&&!--Zt&&(Jt(),Jt=null)};const tn=en;null!==j.document.querySelector("meta[name='viewport']")&&j.document.querySelector("meta[name='viewport']").remove(),j.document.querySelector("head").appendChild(Ne('<meta name="viewport" content="width=device-width, initial-scale=1.0">'));const{document:nn,location:rn}=j,an=e=>nn.querySelector(e),on=e=>{an(".status.lwm-firstload").innerHTML=e},sn=e=>{const t=e.match(/\/(\w*).php(\?.*)?$/);if(null===t)return null;const[,n]=t;return n},ln=e=>-1!==e.search(/lwm_ignoreProcess/);null!==j.location.href.match(/planetenscanner_view/)||null!==j.location.href.match(/observationen_view/)?"loading"!==nn.readyState?Be.planetData.storeDataFromSpio():nn.addEventListener("DOMContentLoaded",(()=>{Be.planetData.storeDataFromSpio()})):q.init({id:"lwmSettings",title:"Last War Manager Settings",fields:{addon_fleet:{section:[q.create("Add-Ons"),"Pick which add-ons should run on the site"],label:"Show fleet activities on all pages",labelPos:"right",type:"checkbox",default:!0},addon_fleet_exclude_drones:{label:"Exclude drone activity",labelPos:"right",type:"checkbox",default:!1},addon_clock:{label:"Replace Last-War clock and progress logic with better one.",labelPos:"right",type:"checkbox",default:!0},addon_res:{label:"Deactivate Last-War resource counter and replace it with a better one.",labelPos:"right",type:"checkbox",default:!0},confirm_const:{section:[q.create("Security Confirms"),"Pick which pages or buttons should come with a security confirm"],label:"Constructions",labelPos:"right",type:"checkbox",default:!0},confirm_research:{label:"Researches",labelPos:"right",type:"checkbox",default:!0},confirm_production:{label:"Productions",labelPos:"right",type:"checkbox",default:!0},coords_fleets:{section:[q.create("Coords and Trades"),"The script saves a history of coordinates for different pages and allows you to set defaults."],label:"Fleet Targets",labelPos:"right",type:"int",min:10,max:50,default:10},coords_trades:{label:"Trade Partner",labelPos:"right",type:"int",min:10,max:50,default:10},coords_galaxy_main:{section:"Save All Default Coords",type:"int",min:0,max:7,default:0,label:"x",labelPos:"right"},coords_system_main:{type:"int",min:0,max:100,default:0,label:"x",labelPos:"right"},coords_planet_main:{type:"int",min:0,max:100,default:0},confirm_hideTrades:{label:"Hide save trades on target planet",labelPos:"right",type:"checkbox",default:!1},menu_clipboard:{section:[q.create("Page Specific"),"Turn page specific add-ons on and off."],label:"MENU: Place clipboard/memo above the page instead of inside it.",labelPos:"right",type:"checkbox",default:!1},overview_planetresources:{label:"OVERVIEW: Show resources on overview page.",labelPos:"right",type:"checkbox",default:!0},overview_planetstatus:{label:"OVERVIEW: Show energy and building slots on overview page.",labelPos:"right",type:"checkbox",default:!0},overview_planetnames:{label:"OVERVIEW: Show planet names on overview page.",labelPos:"right",type:"checkbox",default:!0},overview_planetpicture:{label:"OVERVIEW: Show planet pictures.",labelPos:"right",type:"checkbox",default:!1},overview_hintvacantmultiqueue:{label:"OVERVIEW: Show vacant multi building slots.",labelPos:"right",type:"checkbox",default:!1},construction_buildingcountdown:{label:"CONSTRUCTION: Show building countdowns when there are not enough res to build something.",labelPos:"right",type:"checkbox",default:!1},message_spylinks:{label:"MESSAGES: Show direct links to spy and combat reports in message lists (WARNING: This marks all reports as read on first visit).",labelPos:"right",type:"checkbox",default:!0},trade_highlights:{label:"TRADES: Highlight trades and resources that would exceed storage capacities.",labelPos:"right",type:"checkbox",default:!0},fleet_saveprios:{label:"FLEET: Save the last resource raid priorities.",labelPos:"right",type:"checkbox",default:!0},obs_opentabs:{label:"OBS: Open observation report in new tab instead of new page.",labelPos:"right",type:"checkbox",default:!1},fleet_presets_1_active:{section:[q.create("Fleet Timing Presets"),"Define timing presets for sending fleets."],label:"Active?",labelPos:"right",type:"checkbox",default:!1},fleet_presets_1_weekday:{type:"select",options:["All","Mon","Tue","Wed","Thu","Fri","Sat","Sun","Weekday","Weekend"],default:"All"},fleet_presets_1_time:{type:"select",options:xt,default:"00:00"},fleet_presets_2_active:{label:"Active?",labelPos:"right",type:"checkbox",default:!1},fleet_presets_2_weekday:{type:"select",options:["All","Mon","Tue","Wed","Thu","Fri","Sat","Sun","Weekday","Weekend"],default:"All"},fleet_presets_2_time:{type:"select",options:xt,default:"00:00"},fleet_presets_3_active:{label:"Active?",labelPos:"right",type:"checkbox",default:!1},fleet_presets_3_weekday:{type:"select",options:["All","Mon","Tue","Wed","Thu","Fri","Sat","Sun","Weekday","Weekend"],default:"All"},fleet_presets_3_time:{type:"select",options:xt,default:"00:00"},fleet_presets_4_active:{label:"Active?",labelPos:"right",type:"checkbox",default:!1},fleet_presets_4_weekday:{type:"select",options:["All","Mon","Tue","Wed","Thu","Fri","Sat","Sun","Weekday","Weekend"],default:"All"},fleet_presets_4_time:{type:"select",options:xt,default:"00:00"},fleet_presets_5_active:{label:"Active?",labelPos:"right",type:"checkbox",default:!1},fleet_presets_5_weekday:{type:"select",options:["All","Mon","Tue","Wed","Thu","Fri","Sat","Sun","Weekday","Weekend"],default:"All"},fleet_presets_5_time:{type:"select",options:xt,default:"00:00"},confirm_drive_sync:{section:[q.create("Sync"),"Options to sync settings across your different browsers."],label:"Use Google Drive to sync settings (recommended). WARNING: Any existing cloud configs will override local configs.",labelPos:"right",type:"checkbox",default:!1},reset_settings:{section:[q.create("Reset"),"WARNING: This will delete all LWM data saved in the browser and Google Drive."],label:"Reset",type:"button",click(){!0===confirm("WARNING: This will delete all LWM data saved in the browser and Google Drive (if connected).")&&(_e.lwm.reset(),null!==_e.lwm.gDriveFileID&&ye.save())}}},events:{close(){setTimeout((()=>{j.location.reload()}),100)},save(){this.isOpen&&j.jQuery("body").append('<div class="lwm-firstload wrapper"><div class="loader lwm-firstload"></div><div class="status lwm-firstload"></div></div>'),this.fields.confirm_drive_sync.value?ye.init().then((()=>{ye.isSignedIn()||ye.signIn(),null!==_e.lwm.gDriveFileID&&ye.save(),this.isOpen&&j.jQuery(".lwm-firstload").remove()})):(ye.apiLoaded()&&ye.isSignedIn()&&ye.signOut(),_e.lwm.gDriveFileID=null,F("lwm_gDriveFileID",null),this.isOpen&&j.jQuery(".lwm-firstload").remove())}},css:"\n        body#lwmSettings {\n          width: 90%;\n          margin-left: 5%;\n          height: 90%;\n          margin-top: 5%;\n          background: transparent !important;\n          background-color: transparent !important;\n        }\n        \n        body#lwmSettings #lwmSettings_wrapper {\n          background-color: #7cf3f1;\n          padding: 10px;\n        }\n        \n        body#lwmSettings input,\n        body#lwmSettings button {\n          border-color: #000;\n          background-color: #4290a157;\n          color: #000;\n        }\n        \n        body#lwmSettings .section_desc {\n          border-color: #000;\n          background-color: #4290a157;\n          color: #000;\n        }\n        \n        #lwmSettings_coords_system_main_var,\n        #lwmSettings_coords_planet_main_var,\n        #lwmSettings_coords_galaxy_main_var {\n          display: inline-block;\n        }\n\n        #lwmSettings_coords_galaxy_main_var,\n        #lwmSettings_coords_system_main_var,\n        #lwmSettings_coords_planet_main_var {\n          width: 45px;\n        }\n\n        #lwmSettings_coords_system_main_var input,\n        #lwmSettings_coords_planet_main_var input,\n        #lwmSettings_coords_galaxy_main_var input {\n          width: 30px;\n        }\n\n        #lwmSettings_section_header_3.section_header {\n          background: transparent;\n          border: none;\n          color: unset;\n          text-align: left;\n        }\n\n        #lwmSettings_addon_fleet_exclude_drones_var { margin-left: 20px !important; } \n        #lwmSettings_section_5 .config_var { width: 33%; display: inline-block;}"}).finally((()=>{-1!==nn.referrer.search(/index\.php\?page=Login$/)&&(_e.lwm.gDriveFileID=null,F("lwm_gDriveFileID",null)),j.addEventListener("load",(()=>{_e.unsafeWindow.changeContent=j.changeContent,_e.unsafeWindow.changeInboxContent=j.changeInboxContent,j.jQuery.ajaxSetup({cache:!0}),wt(),_e.loadStates.gdrive=!0,_e.loadStates.gameData=!0,on("LOADING... Game Data..."),_e.getGameData.all(),q.get("confirm_drive_sync")?(on("LOADING... Google Drive..."),ye.init().catch((()=>{on("LOADING... ERROR..."),C("Google API fetch failed"),ne()}))):Y("gameData").then((()=>{_e.setGMValues()}),(()=>{C("gameData promise rejected"),ne()})),Y("gdrive").then((()=>{on("LOADING... Page Setup..."),Wt("ctrl+shift+c,ctrl+shift+r,ctrl+shift+f,ctrl+shift+p,ctrl+shift+o",((e,t)=>{switch(t.key){case"ctrl+shift+c":e.preventDefault(),j.changeContent("construction","first","Konstruktion");break;case"ctrl+shift+r":e.preventDefault(),j.changeContent("research","first","Forschung");break;case"ctrl+shift+f":e.preventDefault(),j.changeContent("flottenkommando","second","Flotten-Kommando");break;case"ctrl+shift+p":e.preventDefault(),j.changeContent("produktion","first","Produktion");break;case"ctrl+shift+o":e.preventDefault(),j.changeContent("ubersicht","first","Übersicht")}})),O().each(_e.gameData.planets,((e,t)=>{Wt("ctrl+shift+"+(e+1),(()=>{j.changeCords(t.galaxy,t.system,t.planet)}))})),pt("ubersicht")}),(()=>{on("LOADING... ERROR..."),C("gDrive promise rejected"),ne()})),j.jQuery(nn).ajaxSend(((e,t,n)=>{const r=sn(n.url);ln(n.url)||null===r||_e.firstLoad&&"ubersicht"===r||((e,t)=>e.match(/content/)&&!["make_command","galaxy_view","change_flotten","flottenkommando","flottenbasen_all","fremde_flottenbasen","flottenbasen_planet"].includes(t)||["get_inbox_message","get_message_info","get_galaxy_view_info","get_inbox_load_info","get_make_command_info","get_info_for_flotten_pages","get_change_flotten_info"].includes(t))(n.url,r)&&(_e.loadStates.content&&_e.loadStates.lastLoadedPage===r||(qe(r)||Ve.clear(),an("#all").style.display="none",an(".loader").style.display="block"))})),j.jQuery(nn).ajaxComplete(((e,t,n)=>{const r=sn(n.url);if("500"!==t.responseJSON&&0!==t.readyState&&null!==r&&(e=>["get_production_info","get_aktuelle_production_info","get_ubersicht_info","get_flottenbewegungen_info","get_inbox_message","get_info_for_observationen_page","get_spionage_info","get_trade_offers","put_fleets","delete_fleets","put_change_flotten","put_building","cancel_building","put_research","cancel_research","get_new_trade_offer_info","get_construction_info","get_research_info"].includes(e))(r)){switch(r){case"get_ubersicht_info":Y("gdrive").then((()=>{_e.gameData.overviewInfo=t.responseJSON,Be.calendar.storeOverview(t.responseJSON)}),(()=>{C("gdrive promise rejected while waiting for get_ubersicht_info"),ne()}));break;case"get_production_info":_e.getGameData.setProductionInfos(t.responseJSON);break;case"get_aktuelle_production_info":Be.calendar.storeProd(t.responseJSON);break;case"get_flottenbewegungen_info":_e.getGameData.addFleetInfo(t.responseJSON),_e.loadStates.gdrive||Be.calendar.storeFleets(t.responseJSON),Be.showFleetActivityGlobally(_e.loadStates.lastLoadedPage);break;case"get_inbox_message":_e.gameData.messageData=t.responseJSON;break;case"get_research_info":_e.gameData.researchInfo=t.responseJSON;break;case"get_construction_info":_e.gameData.constructionInfo=t.responseJSON;break;case"get_info_for_observationen_page":_e.gameData.observationInfo=t.responseJSON;break;case"get_spionage_info":_e.gameData.spionageInfos=t.responseJSON;break;case"get_new_trade_offer_info":_e.gameData.newTradeOfferInfo=t.responseJSON;break;case"get_trade_offers":_e.gameData.tradeInfo=t.responseJSON,_e.getGameData.setTradeData(),Be.checkCapacities(),Be.calendar.storeTrades(t.responseJSON)}if(q.get("addon_res")&&(["execute_action","bank_transaction","put_handelsposten_ships","put_flotten","put_upgrade_planet_defense","put_defense","bank_transaction","put_kredit","recycling_ships"].includes(r)&&ke(),["get_trade_offers","put_new_trade_offer","delete_trade_offer","accept_trade_offer","decline_trade_offer","get_max_resource_for_new_trade_offer","delete_aktuelle_produktion","get_flottenbewegungen_info","send_flotten","get_ubersicht_info","put_building","put_research","cancel_building","cancel_research"].includes(r)))try{const e=JSON.parse(t.responseText),n=e.roheisen||e.Roheisen||e.resource.roheisen||e.resource.Roheisen,r=e.kristall||e.Kristall||e.resource.kristall||e.resource.Kristall,a=e.frubin||e.Frubin||e.resource.frubin||e.resource.Frubin,i=e.orizin||e.Orizin||e.resource.orizin||e.resource.Orizin,o=e.frurozin||e.Frurozin||e.resource.frurozin||e.resource.Frurozin,s=e.gold||e.Gold||e.resource.gold||e.resource.Gold;n&&r&&a&&i&&o&&s?_e.getGameData.setResources([n,r,a,i,o,s]):console.warn("could not parse responseText for setResources function",t.responseText)}catch(e){console.warn("could not parse responseText for setResources function",t.responseText)}["put_fleets","delete_fleets","put_change_flotten"].includes(r)&&we(),["put_building","cancel_building","put_research","cancel_research"].includes(r)&&j.jQuery.ajax({type:"GET",dataType:"json",url:"/ajax_request/get_ubersicht_info.php",data:{galaxy_check:j.my_galaxy,system_check:j.my_system,planet_check:j.my_planet},timeout:_e.promises.interval.ajaxTimeout})}})),j.jQuery(nn).ajaxComplete(((e,t,n)=>{const r=sn(n.url);ln(n.url)||"500"===t.responseJSON||0===t.readyState||null===r||_e.firstLoad&&"ubersicht"===r||((e,t)=>e.match(/content/)&&!["spionage","inbox","trade_offer","make_command","galaxy_view","change_flotten","flottenkommando","flottenbasen_all","fremde_flottenbasen","flottenbasen_planet","flotten_informations","bank"].includes(t)||["get_inbox_message","get_message_info","get_galaxy_view_info","get_inbox_load_info","get_make_command_info","get_info_for_flotten_pages","get_change_flotten_info","get_trade_offers","get_flotten_informations_info","get_spionage_info","get_bank_info"].includes(t))(n.url,r)&&(_e.loadStates.content&&_e.loadStates.lastLoadedPage===r||pt(r,t,qe(r)))}))})),q.get("addon_clock")&&tn.use()}))})()})();