/*! For license information please see bundle.js.LICENSE.txt */ !function(e){function t(t){for(var r,o,i=t[0],a=t[1],s=0,c=[];s0&&u>c&&(u=c);for(var l=0;l=0?(f=y.substr(0,g),d=y.substr(g+1)):(f=y,d=""),p=decodeURIComponent(f),m=decodeURIComponent(d),n(a,p)?o(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n1&&(r.params=n.parse(t[1])),r}function i(e){return n.parse(e.search.substring(1))}},,,,function(e,t,r){"use strict";r.r(t);var n=r(15);r(22);async function o(...e){for(const t of e)try{await t}catch(e){console.error(e)}}r(20),r(21),"serviceWorker"in navigator&&navigator.serviceWorker.register("sw.js");let i=function(){if(!window.Modernizr)return console.error("Cannot check features - Modernizr global is missing."),!1;window.Modernizr.addTest("promiseprototypefinally",()=>window.Promise&&window.Promise.prototype&&"function"==typeof window.Promise.prototype.finally),window.Modernizr.addTest("objectfromentries",()=>window.Object&&"function"==typeof window.Object.fromEntries);const e=Object.keys(window.Modernizr);let t=!0;for(let r=0;r0)){const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);if((e||t)&&-1===document.cookie.indexOf("riot_mobile_redirect_to_guide=false"))return void(window.location.href="mobile_guide/")}const y=a();t();const g=s();await o(g);const h=u(),v=l(),w=c();await o(w,v,h),i||await new Promise(e=>{console.error("Browser is missing required features."),p(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),console.log("User accepts the compatibility risks."),e()})});try{await g}catch(e){return e.err&&e.err instanceof SyntaxError?d(m("Your Riot is misconfigured"),[m("Your Riot configuration contains invalid JSON. Please correct the problem and reload the page."),m("The message from the parser is: %(message)s",{message:e.err.message||m("Invalid JSON")})]):d(m("Unable to load config file: please refresh the page to try again."))}await y,await w,await v,await h,await f(r.params)}catch(e){console.error(e),await d(m("Your Riot is misconfigured"),[e.translatedMessage||m("Unexpected error preparing the app. See console for details.")])}}().catch(e=>{console.error(e)})},function(e,t,r){},function(e,t,r){},function(e,t){!function(e,t,r){function n(e,t){return typeof e===t}function o(e){var t=S.className,r=w._config.classPrefix||"";if(O&&(t=t.baseVal),w._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}w._config.enableClasses&&(e.length>0&&(t+=" "+r+e.join(" "+r)),O?S.className.baseVal=t:S.className=t)}function i(e,t){return!!~(""+e).indexOf(t)}function a(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):O?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function s(e,r,n,o){var i,s,c,u,l="modernizr",f=a("div"),d=function(){var e=t.body;return e||((e=a(O?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(c=a("div")).id=o?o[n]:l+(n+1),f.appendChild(c);return(i=a("style")).type="text/css",i.id="s"+l,(d.fake?d:f).appendChild(i),d.appendChild(f),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),f.id=l,d.fake&&(d.style.background="",d.style.overflow="hidden",u=S.style.overflow,S.style.overflow="hidden",S.appendChild(d)),s=r(f,e),d.fake?(d.parentNode.removeChild(d),S.style.overflow=u,S.offsetHeight):f.parentNode.removeChild(f),!!s}function c(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function u(t,r,n){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,r);var i=e.console;if(null!==o)n&&(o=o.getPropertyValue(n));else if(i){i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!r&&t.currentStyle&&t.currentStyle[n];return o}function l(t,n){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(c(t[o]),n))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+c(t[o])+":"+n+")");return s("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===u(e,null,"position")}))}return r}function f(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,r){return t+r.toUpperCase()})).replace(/^-/,"")}function d(e,t,o,s){function c(){d&&(delete C.style,delete C.modElem)}if(s=!n(s,"undefined")&&s,!n(o,"undefined")){var u=l(e,o);if(!n(u,"undefined"))return u}for(var d,p,m,y,g,h=["modernizr","tspan","samp"];!C.style&&h.length;)d=!0,C.modElem=a(h.shift()),C.style=C.modElem.style;for(m=e.length,p=0;p9)})),w.addTest("flexbox",y("flexBasis","1px",!0));var k=function(t){var n,o=T.length,i=e.CSSRule;if(void 0===i)return r;if(!t)return!1;if((n=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+t;for(var a=0;a