You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
17 KiB

/*! For license information please see bundle.js.LICENSE.txt */
!function(e){function t(t){for(var r,n,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)n=i[s],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&c.push(o[n][0]),o[n]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(u&&u(t);c.length;)c.shift()()}var r={},n={3:0},o={3:0};function i(e){return a.p+"bundles/1c92c9d6b0f5bd0d188c/"+({4:"compatibility-view",5:"error-view",7:"init",10:"riot-web-app",11:"riot-web-component-index",19:"vendors~init"}[e]||e)+".js"}function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[];n[e]?t.push(n[e]):0!==n[e]&&{4:1,5:1}[e]&&t.push(n[e]=new Promise((function(t,r){for(var o="bundles/1c92c9d6b0f5bd0d188c/"+({4:"compatibility-view",5:"error-view",7:"init",10:"riot-web-app",11:"riot-web-component-index",19:"vendors~init"}[e]||e)+".css",i=a.p+o,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var l=(d=s[c]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(l===o||l===i))return t()}var u=document.getElementsByTagName("style");for(c=0;c<u.length;c++){var d;if((l=(d=u[c]).getAttribute("data-href"))===o||l===i)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete n[e],f.parentNode.removeChild(f),r(a)},f.href=i,document.getElementsByTagName("head")[0].appendChild(f)})).then((function(){n[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var s=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=s);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=i(e);var u=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(d);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",u.name="ChunkLoadError",u.type=n,u.request=i,r[1](u)}o[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}var f={7:[10,11]}[e];return f&&f.forEach((function(e){if(void 0===o[e]){o[e]=null;var t=document.createElement("link");t.charset="utf-8",a.nc&&t.setAttribute("nonce",a.nc),t.rel="preload",t.as="script",t.href=i(e),document.head.appendChild(t)}})),Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp=window.webpackJsonp||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var u=c;a(a.s=27)}({19:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i}));var n=r(4);function o(e){const t=e.hash.substring(1).split("?"),r={location:decodeURIComponent(t[0]),params:{}};return t.length>1&&(r.params=n.parse(t[1])),r}function i(e){return n.parse(e.search.substring(1))}},27:function(e,t,r){"use strict";r.r(t);var n=r(19);r(30);async function o(...e){for(const t of e)try{await t}catch(e){console.error(e)}}r(28),r(29),"serviceWorker"in navigator&&navigator.serviceWorker.register("sw.js");const 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;r<e.length;r++){if(void 0===window.Modernizr[e[r]])return console.error("Looked for feature '%s' but Modernizr has no results for this. Has it been configured correctly?",e[r]),!1;!1===window.Modernizr[e[r]]&&(console.error("Browser missing feature: '%s'",e[r]),t=!1)}return t}();(async function(){const{rageshakePromise:e,preparePlatform:t,loadOlm:a,loadConfig:s,loadSkin:c,loadLanguage:l,loadTheme:u,loadApp:d,showError:f,showIncompatibleBrowser:p,_t:m}=await Promise.all([r.e(19),r.e(7)]).then(r.bind(null,42));try{await o(e);const r=Object(n.b)(window.location);if(!(r.params.client_secret||r.location.length>0)){const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);if((e||t)&&-1===document.cookie.indexOf("element_mobile_redirect_to_guide=false"))return void(window.location.href="mobile_guide/")}const y=a();t();const g=s();await o(g);const h=l(),v=u(),w=c();await o(w,v,h);let b=i;!b&&window.localStorage&&(b=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),b||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?f(m("Your Element is misconfigured"),[m("Your Element 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")})]):f(m("Unable to load config file: please refresh the page to try again."))}await y,await w,await v,await h,await d(r.params)}catch(e){console.error(e),await f(m("Your Element is misconfigured"),[e.translatedMessage||m("Unexpected error preparing the app. See console for details.")])}})().catch(e=>{console.error(e),delete document.body.style.height;const t=document.createElement("iframe");t.sandbox="",t.src=i?"static/unable-to-load.html":"static/incompatible-browser.html",t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.border="0",document.getElementById("matrixchat").appendChild(t)})},28:function(e,t,r){},29:function(e,t,r){},30:function(e,t){!function(e,t,r,n){function o(e,t){return typeof e===t}function i(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 a(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof r.createElement?r.createElement(arguments[0]):O?r.createElementNS.call(r,"http://www.w3.org/2000/svg",arguments[0]):r.createElement.apply(r,arguments)}function c(e,t,n,o){var i,a,c,l,u="modernizr",d=s("div"),f=function(){var e=r.body;return e||((e=s(O?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(c=s("div")).id=o?o[n]:u+(n+1),d.appendChild(c);return(i=s("style")).type="text/css",i.id="s"+u,(f.fake?f:d).appendChild(i),f.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),d.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),a=t(d,e),f.fake?(f.parentNode.removeChild(f),S.style.overflow=l,S.offsetHeight):d.parentNode.removeChild(d),!!a}function l(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function u(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(l(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+l(e[o])+":"+r+")");return c("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===function(e,r,n){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,r);var i=t.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&&e.currentStyle&&e.currentStyle[n];return o}(e,null,"position")}))}return n}function d(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,r){return t+r.toUpperCase()})).replace(/^-/,"")}function f(e,t,r,i){function c(){f&&(delete x.style,delete x.modElem)}if(i=!o(i,"undefined")&&i,!o(r,"undefined")){var l=u(e,r);if(!o(l,"undefined"))return l}for(var f,p,m,y,g,h=["modernizr","tspan","samp"];!x.style&&h.length;)f=!0,x.modElem=s(h.shift()),x.style=x.modElem.style;for(m=e.length,p=0;p<m;p++)if(y=e[p],g=x.style[y],a(y,"-")&&(y=d(y)),x.style[y]!==n){if(i||o(r,"undefined"))return c(),"pfx"!==t||y;try{x.style[y]=r}catch(e){}if(x.style[y]!==g)return c(),"pfx"!==t||y}return c(),!1}function p(e,t){return function(){return e.apply(t,arguments)}}function m(e,t,r,n,i){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+_.join(a+" ")+a).split(" ");return o(t,"string")||o(t,"undefined")?f(s,t,n,i):function(e,t,r){var n;for(var i in e)if(e[i]in t)return!1===r?e[i]:o(n=t[e[i]],"function")?p(n,r||t):n;return!1}(s=(e+" "+T.join(a+" ")+a).split(" "),t,r)}function y(e,t,r){return m(e,n,n,t,r)}function g(e,t){if("object"==typeof e)for(var r in e)z(e,r)&&g(r,e[r]);else{var n=(e=e.toLowerCase()).split("."),o=w[n[0]];if(2===n.length&&(o=o[n[1]]),void 0!==o)return w;t="function"==typeof t?t():t,1===n.length?w[n[0]]=t:(!w[n[0]]||w[n[0]]instanceof Boolean||(w[n[0]]=new Boolean(w[n[0]])),w[n[0]][n[1]]=t),i([(t&&!1!==t?"":"no-")+n.join("-")]),w._trigger(e,t)}return w}var h=[],v={_version:"3.10.0",_config:{classPrefix:"modernizr_",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout((function(){t(r[e])}),0)},addTest:function(e,t,r){h.push({name:e,fn:t,options:r})},addAsyncTest:function(e){h.push({name:null,fn:e})}},w=function(){};w.prototype=v,w=new w;var b=[],S=r.documentElement,O="svg"===S.nodeName.toLowerCase(),C="Moz O ms Webkit",_=v._config.usePrefixes?C.split(" "):[];v._cssomPrefixes=_;var j={elem:s("modernizr")};w._q.push((function(){delete j.elem}));var x={style:j.elem.style};w._q.unshift((function(){delete x.style}));var T=v._config.usePrefixes?C.toLowerCase().split(" "):[];v._domPrefixes=T,v.testAllProps=m,v.testAllProps=y,w.addTest("cssanimations",y("animationName","a",!0)),(v.testStyles=c)("#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}",(function(e){var t,r=e.childNodes;t=r[0].offsetLeft<r[1].offsetLeft,w.addTest("displaytable",t,{aliases:["display-table"]})}),2);var P=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];v._prefixes=P;var E="CSS"in t&&"supports"in t.CSS,A="supportsCSS"in t;w.addTest("supports",E||A),w.addTest("cssfilters",(function(){if(w.supports)return y("filter","blur(2px)");var e=s("a");return e.style.cssText=P.join("filter:blur(2px); "),!!e.style.length&&(r.documentMode===n||r.documentMode>9)})),w.addTest("flexbox",y("flexBasis","1px",!0));var k=function(e){var r,o=P.length,i=t.CSSRule;if(void 0===i)return n;if(!e)return!1;if((r=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var a=0;a<o;a++){var s=P[a];if(s.toUpperCase()+"_"+r in i)return"@-"+s.toLowerCase()+"-"+e}return!1};v.atRule=k;var z,M=v.prefixed=function(e,t,r){return 0===e.indexOf("@")?k(e):(-1!==e.indexOf("-")&&(e=d(e)),t?m(e,t,r):m(e,"pfx"))};w.addTest("objectfit",!!M("objectFit"),{aliases:["object-fit"]}),w.addTest("es5date",(function(){var e=!1;try{e=!!Date.parse("2013-04-12T06:06:37.307Z")}catch(e){}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&e)})),w.addTest("es5function",(function(){return!(!Function.prototype||!Function.prototype.bind)})),w.addTest("es5object",(function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)})),w.addTest("es5undefined",(function(){var e,r;try{r=t.undefined,t.undefined=12345,e=void 0===t.undefined,t.undefined=r}catch(e){return!1}return e})),w.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)),w.addTest("es6collections",!!(t.Map&&t.Set&&t.WeakMap&&t.WeakSet)),w.addTest("promises",(function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var e;return new t.Promise((function(t){e=t})),"function"==typeof e}()})),w.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes)),w.addTest("svg",!!r.createElementNS&&!!r.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),function(){var e={}.hasOwnProperty;z=o(e,"undefined")||o(e.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(t,r){return e.call(t,r)}}(),v._l={},v.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),w.hasOwnProperty(e)&&setTimeout((function(){w._trigger(e,w[e])}),0)},v._trigger=function(e,t){if(this._l[e]){var r=this._l[e];setTimeout((function(){var e;for(e=0;e<r.length;e++)(0,r[e])(t)}),0),delete this._l[e]}},w._q.push((function(){v.addTest=g})),w.addTest("svgasimg",r.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),w.addTest("svgfilters",(function(){var e=!1;try{e="SVGFEColorMatrixElement"in t&&2===SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return e})),w.addTest("urlparser",(function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}})),w.addTest("urlsearchparams","URLSearchParams"in t),w.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest);var N=M("crypto",t);w.addTest("crypto",!!M("subtle",N)),w.addTest("sandbox","sandbox"in s("iframe")),w.addTest("json","JSON"in t&&"parse"in JSON&&"stringify"in JSON),w.addTest("fetch","fetch"in t),w.addTest("localstorage",(function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})),function(){var e,t,r,n,i,a;for(var s in h)if(h.hasOwnProperty(s)){if(e=[],(t=h[s]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(r=0;r<t.options.aliases.length;r++)e.push(t.options.aliases[r].toLowerCase());for(n=o(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)1===(a=e[i].split(".")).length?w[a[0]]=n:(w[a[0]]&&(!w[a[0]]||w[a[0]]instanceof Boolean)||(w[a[0]]=new Boolean(w[a[0]])),w[a[0]][a[1]]=n),b.push((n?"":"no-")+a.join("-"))}}(),i(b),delete v.addTest,delete v.addAsyncTest;for(var L=0;L<w._q.length;L++)w._q[L]();e.Modernizr=w}(window,window,document)},4:function(e,t,r){"use strict";t.decode=t.parse=r(8),t.encode=t.stringify=r(9)},8:function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var d,f,p,m,y=e[u].replace(s,"%20"),g=y.indexOf(r);g>=0?(d=y.substr(0,g),f=y.substr(g+1)):(d=y,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),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)}},9: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;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}});
//# sourceMappingURL=bundle.js.map