bundle.js (26924B)
1 /*! For license information please see bundle.js.LICENSE.txt */ 2 (()=>{var e,t,r,n,o,i={"../../node_modules/.pnpm/matrix-js-sdk@41.9.0/node_modules/matrix-js-sdk/src/logger.ts"(e,t,r){"use strict";r.d(t,{Tl:()=>a,k$:()=>l,vF:()=>s});var n=r("../../node_modules/.pnpm/@babel+runtime@8.0.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("../../node_modules/.pnpm/loglevel@1.9.2/node_modules/loglevel/lib/loglevel.js"),i=r.n(o);i().methodFactory=function(e,t,r){return function(...t){this.prefix&&t.unshift(this.prefix);return"error"===e||"warn"===e||"trace"===e||"info"===e||"debug"===e?console[e](...t):console.log(...t)}};const s=function e(t){const r="matrix"+(void 0===t?"":`-${t}`),n=i().getLogger(r);return void 0===n.getChild&&(n.prefix=t,n.getChild=r=>{const o=e((null!=t?t:"")+r);return o.methodFactory=n.methodFactory,o.rebuild(),o},n.setLevel(i().levels.DEBUG,!1)),n}();class a{constructor(e,t){(0,n.A)(this,"name",void 0),this.parent=e,this.name=t+":"}trace(...e){this.parent.trace(this.name,...e)}debug(...e){this.parent.debug(this.name,...e)}info(...e){this.parent.info(this.name,...e)}warn(...e){this.parent.warn(this.name,...e)}error(...e){this.parent.error(this.name,...e)}}class l{constructor(e){this.debugInstance=e}trace(...e){this.debugWithPrefix("[TRACE]",...e)}debug(...e){this.debugWithPrefix("[DEBUG]",...e)}info(...e){this.debugWithPrefix("[INFO]",...e)}warn(...e){this.debugWithPrefix("[WARN]",...e)}error(...e){this.debugWithPrefix("[ERROR]",...e)}getChild(e){return new l(this.debugInstance.extend(e))}debugWithPrefix(e,...t){let r;if(0===t.length)r="";else if(t[0]instanceof Error){const e=t.shift();r=e.stack||e.message}else r="string"==typeof t[0]?t.shift():"%O";this.debugInstance(e+" "+r,...t)}}},"./src/vector/localstorage-fix.ts"(){window.localStorage&&Object.keys(window.localStorage).forEach(e=>{e.startsWith("loglevel:")&&window.localStorage.removeItem(e)})},"./src/vector/url_utils.ts"(e,t,r){"use strict";function n(e){const t=e.hash.substring(1),[r,n]=t.split("?",2);return r.includes("=")?{location:"",params:new URLSearchParams(r)}:{location:decodeURIComponent(r),params:n?new URLSearchParams(n):void 0}}function o(e){const t={};for(const r of e.keys()){const n=e.getAll(r);t[r]=1===n.length?n[0]:n}return t}r.d(t,{OW:()=>s,_u:()=>n,ko:()=>o});const i={legacy_sso:{keys:["loginToken"],location:"query"},oidc_fragment:{keys:["code","state"],location:"fragment"},oidc_query:{keys:["code","state"],location:"query"},threepid:{keys:["client_secret","session_id","hs_url","is_url","sid"],location:"fragment"},defaults:{keys:["defaultUsername"],location:"fragment"},guest:{keys:["guest_user_id","guest_access_token"],location:"fragment"}};function s(e){const t=new URLSearchParams(e.search),r=n(e),o={};for(const e in i){const n=e,s=i[n],a="fragment"===s.location?r.params:t;if(!a)continue;const l={};for(const e of s.keys){const t=e,r=a.get(t);null!==r&&(l[t]=r)}Object.keys(l).length>0&&(o[n]=l)}return{params:o,location:r.location}}},"../../node_modules/.pnpm/katex@0.17.0/node_modules/katex/dist/katex.css"(e,t,r){"use strict";r.r(t)},"../../node_modules/.pnpm/loglevel@1.9.2/node_modules/loglevel/lib/loglevel.js"(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?a:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):e)}function c(){for(var r=this.getLevel(),o=0;o<n.length;o++){var i=n[o];this[i]=o<r?e:this.methodFactory(i,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function d(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(e,t,r){return l(e)||d.apply(this,arguments)}function f(e,r){var s,a,l,d=this,f="loglevel";function p(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(e){}}}function m(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(f),o=r.indexOf(n+"=");-1!==o&&(e=/^([^;]+)/.exec(r.slice(o+n.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function g(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}function y(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,t){return l=y(e),!1!==t&&p(l),c.call(d)},d.setDefaultLevel=function(e){a=y(e),m()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,g(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(i!==d&&(s=y(i.getLevel())),c.call(d),i===d)for(var e in o)o[e].rebuild()},s=y(i?i.getLevel():"WARN");var h=m();null!=h&&(l=y(h)),c.call(d)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o="function"==typeof n?n.call(t,r,t,e):n)||(e.exports=o)}()},"./src/vector/modernizr.cjs"(){!function(e,t,r,n){var o=[],i={_version:"3.13.1",_config:{classPrefix:"",enableClasses:!1,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout(function(){t(r[e])},0)},addTest:function(e,t,r){o.push({name:e,fn:t,options:r})},addAsyncTest:function(e){o.push({name:null,fn:e})}},s=function(){};s.prototype=i,s=new s;var a=[];function l(e,t){return typeof e===t}var c="Moz O ms Webkit",d=i._config.usePrefixes?c.split(" "):[];function u(e,t){return!!~(""+e).indexOf(t)}i._cssomPrefixes=d;var f=r.documentElement,p="svg"===f.nodeName.toLowerCase();function m(){return"function"!=typeof r.createElement?r.createElement(arguments[0]):p?r.createElementNS.call(r,"http://www.w3.org/2000/svg",arguments[0]):r.createElement.apply(r,arguments)}var g={elem:m("modernizr")};s._q.push(function(){delete g.elem});var y={style:g.elem.style};function h(e,t,n,o){var i,s,a,l,c="modernizr",d=m("div"),u=function(){var e=r.body;return e||((e=m(p?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(a=m("div")).id=o?o[n]:c+(n+1),d.appendChild(a);return(i=m("style")).type="text/css",i.id="s"+c,(u.fake?u:d).appendChild(i),u.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),d.id=c,u.fake&&(u.style.background="",u.style.overflow="hidden",l=f.style.overflow,f.style.overflow="hidden",f.appendChild(u)),s=t(d,e),u.fake&&u.parentNode?(u.parentNode.removeChild(u),f.style.overflow=l,f.offsetHeight):d.parentNode.removeChild(d),!!s}function v(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function w(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(v(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+v(e[o])+":"+r+")");return h("@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;null!==o?n&&(o=o.getPropertyValue(n)):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 b(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,r){return t+r.toUpperCase()}).replace(/^-/,"")}s._q.unshift(function(){delete y.style});var S=i._config.usePrefixes?c.toLowerCase().split(" "):[];function _(e,t){return function(){return e.apply(t,arguments)}}function x(e,t,r,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+d.join(s+" ")+s).split(" ");return l(t,"string")||l(t,"undefined")?function(e,t,r,o){if(o=!l(o,"undefined")&&o,!l(r,"undefined")){var i=w(e,r);if(!l(i,"undefined"))return i}for(var s,a,c,d,f,p=["modernizr","tspan","samp"];!y.style&&p.length;)s=!0,y.modElem=m(p.shift()),y.style=y.modElem.style;function g(){s&&(delete y.style,delete y.modElem)}for(c=e.length,a=0;a<c;a++)if(d=e[a],f=y.style[d],u(d,"-")&&(d=b(d)),y.style[d]!==n){if(o||l(r,"undefined"))return g(),"pfx"!==t||d;try{y.style[d]=r}catch(e){}if(y.style[d]!==f)return g(),"pfx"!==t||d}return g(),!1}(a,t,o,i):function(e,t,r){var n;for(var o in e)if(e[o]in t)return!1===r?e[o]:l(n=t[e[o]],"function")?_(n,r||t):n;return!1}(a=(e+" "+S.join(s+" ")+s).split(" "),t,r)}function T(e,t,r){return x(e,n,n,t,r)}i._domPrefixes=S,i.testAllProps=x,i.testAllProps=T,s.addTest("cssanimations",T("animationName","a",!0)),(i.testStyles=h)("#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,s.addTest("displaytable",t,{aliases:["display-table"]})},2);var C=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=C;var j="CSS"in t&&"supports"in t.CSS,P="supportsCSS"in t;s.addTest("supports",j||P),s.addTest("cssfilters",function(){if(s.supports)return T("filter","blur(2px)");var e=m("a");return e.style.cssText=C.join("filter:blur(2px); "),!!e.style.length&&(r.documentMode===n||r.documentMode>9)}),s.addTest("flexbox",T("flexBasis","1px",!0));var O=function(e){var r,o=C.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 s=0;s<o;s++){var a=C[s];if(a.toUpperCase()+"_"+r in i)return"@-"+a.toLowerCase()+"-"+e}return!1};i.atRule=O;var k,E,A=i.prefixed=function(e,t,r){return 0===e.indexOf("@")?O(e):(-1!==e.indexOf("-")&&(e=b(e)),t?x(e,t,r):x(e,"pfx"))};function L(e,t){if("object"==typeof e)for(var r in e)k(e,r)&&L(r,e[r]);else{var n=(e=e.toLowerCase()).split("."),o=s[n[0]];if(2===n.length&&(o=o[n[1]]),void 0!==o)return s;t="function"==typeof t?t():t,1===n.length?s[n[0]]=t:(!s[n[0]]||s[n[0]]instanceof Boolean||(s[n[0]]=new Boolean(s[n[0]])),s[n[0]][n[1]]=t),function(e){var t=f.className,r=s._config.classPrefix||"";if(p&&(t=t.baseVal),s._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}s._config.enableClasses&&(e.length>0&&(t+=" "+r+e.join(" "+r)),p?f.className.baseVal=t:f.className=t)}([(t&&!1!==t?"":"no-")+n.join("-")]),s._trigger(e,t)}return s}s.addTest("objectfit",!!A("objectFit"),{aliases:["object-fit"]}),s.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)}),s.addTest("es5function",function(){return!(!Function.prototype||!Function.prototype.bind)}),s.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)}),s.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}),s.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)),s.addTest("es6collections",!!(t.Map&&t.Set&&t.WeakMap&&t.WeakSet)),s.addTest("promises",function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise(function(t){e=t}),"function"==typeof e);var e}),s.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes)),s.addTest("svg",!!r.createElementNS&&!!r.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),k=l(E={}.hasOwnProperty,"undefined")||l(E.call,"undefined")?function(e,t){return t in e&&l(e.constructor.prototype[t],"undefined")}:function(e,t){return E.call(e,t)},i._l={},i.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),s.hasOwnProperty(e)&&setTimeout(function(){s._trigger(e,s[e])},0)},i._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]}},s._q.push(function(){i.addTest=L}),s.addTest("svgasimg",r.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),s.addTest("svgfilters",function(){var e=!1;try{e="SVGFEColorMatrixElement"in t&&2===SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return e}),s.addTest("urlparser",function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}}),s.addTest("urlsearchparams","URLSearchParams"in t),s.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest);var N=A("crypto",t);s.addTest("crypto",!!A("subtle",N)),s.addTest("sandbox","sandbox"in m("iframe")),s.addTest("json","JSON"in t&&"parse"in JSON&&"stringify"in JSON),s.addTest("fetch","fetch"in t),s.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}),s.addTest("resizeobserver","ResizeObserver"in t),s.addTest("webaudio",function(){var e="webkitAudioContext"in t,r="AudioContext"in t;return s._config.usePrefixes&&e||r}),function(){var e,t,r,n,i,c;for(var d in o)if(o.hasOwnProperty(d)){if(e=[],(t=o[d]).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=l(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)1===(c=e[i].split(".")).length?s[c[0]]=n:(s[c[0]]&&(!s[c[0]]||s[c[0]]instanceof Boolean)||(s[c[0]]=new Boolean(s[c[0]])),s[c[0]][c[1]]=n),a.push((n?"":"no-")+c.join("-"))}}(),delete i.addTest,delete i.addAsyncTest;for(var R=0;R<s._q.length;R++)s._q[R]();e.Modernizr=s}(window,window,document)},"../../node_modules/.pnpm/@babel+runtime@8.0.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js"(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>i})}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=i,a.amdD=function(){throw new Error("define cannot be used indirect")},a.amdO={},a.H={},a.G=e=>{Object.keys(a.H).map(t=>{a.H[t](e)})},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,r)=>(a.f[r](e,t),t),[])),a.u=e=>"bundles/"+a.h()+"/"+({1869:"styles",2585:"intl-segmenter-polyfill",2702:"element-web-app",3304:"playback.worker",3444:"indexeddb.worker",4980:"blurhash.worker",5385:"init",5607:"error-view"}[e]||e)+".js",a.miniCssF=e=>"bundles/"+a.h()+"/"+{1869:"styles",5607:"error-view"}[e]+".css",a.h=()=>"78cd486dc4f7ffb56898",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="element-web:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+o){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),r[e]=[t];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},a.v=(e,t,r,n)=>{var o=fetch(a.p+"bundles/"+a.h()+"/"+r+".wasm"),i=()=>o.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,n)).then(t=>Object.assign(e,t.instance.exports));return o.then(t=>"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,n).then(t=>Object.assign(e,t.instance.exports),e=>{if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),i();throw e}):i())},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"})(),(()=>{if(void 0!==a){var e=a.u,t=a.e,r={},n={};a.u=function(t){return e(t)+(r.hasOwnProperty(t)?"?"+r[t]:"")},a.e=function(o){return t(o).catch(function(t){var i=n.hasOwnProperty(o)?n[o]:3;if(i<1){var s=e(o);throw t.message="Loading chunk "+o+" failed after 3 retries.\n("+s+")",t.request=s,t}return new Promise(function(e){setTimeout(function(){var t=Date.now();r[o]=t,n[o]=i-1,e(a.e(o))},500)})})}}})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,r)=>{var n=a.miniCssF(e),o=a.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(s=r[n]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var s;if((o=(s=i[n]).getAttribute("data-href"))===e||o===t)return s}})(n,o))return t();((e,t,r,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",a.nc&&(i.nonce=a.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var s=r&&r.type,a=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,o,null,t,r)}),t={3023:0};a.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{1869:1,5607:1}[r]&&n.push(t[r]=e(r).then(()=>{t[r]=0},e=>{throw delete t[r],e}))},a.H.miniCss=e=>{if((!a.o(t,e)||void 0===t[e])&&/^(1869|3023|5607)$/.test(e)){t[e]=null;var r=document.createElement("link");r.charset="utf-8",a.nc&&r.setAttribute("nonce",a.nc),r.rel="preload",r.as="style",r.href=a.p+a.miniCssF(e),document.head.appendChild(r)}}}})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={3023:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}},"chunk-"+t,t)}},a.H.j=t=>{if(!a.o(e,t)||void 0===e[t]){e[t]=null;var r=document.createElement("link");r.charset="utf-8",a.nc&&r.setAttribute("nonce",a.nc),r.rel="preload",r.as="script",r.href=a.p+a.u(t),document.head.appendChild(r)}};var t=(t,r)=>{var n,o,[i,s,l]=r,c=0;if(i.some(t=>0!==e[t])){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(l)l(a)}for(t&&t(r);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkelement_web=self.webpackChunkelement_web||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0,o={5385:[8656,3912,1869,1286,2702]},a.f.preload=e=>{var t=o[e];Array.isArray(t)&&t.map(a.G)},(()=>{"use strict";var e=a("../../node_modules/.pnpm/matrix-js-sdk@41.9.0/node_modules/matrix-js-sdk/src/logger.ts");var t=a("./src/vector/url_utils.ts");a("./src/vector/modernizr.cjs");async function r(...t){for(const r of t)try{await r}catch(t){e.vF.error(t)}}a("../../node_modules/.pnpm/katex@0.17.0/node_modules/katex/dist/katex.css"),a("./src/vector/localstorage-fix.ts");const n=function(){if(!window.Modernizr)return e.vF.error("Cannot check features - Modernizr global is missing."),!1;window.Modernizr.addTest("promiseprototypefinally",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e||null===(e=e.prototype)||void 0===e?void 0:e.finally)}),window.Modernizr.addTest("promiseallsettled",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e?void 0:e.allSettled)}),window.Modernizr.addTest("promisewithresolvers",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e?void 0:e.withResolvers)}),window.Modernizr.addTest("regexpdotall",()=>{var e,t;return(null===(e=window.RegExp)||void 0===e?void 0:e.prototype)&&!(null===(t=Object.getOwnPropertyDescriptor(window.RegExp.prototype,"dotAll"))||void 0===t||!t.get)}),window.Modernizr.addTest("objectfromentries",()=>{var e;return"function"==typeof(null===(e=window.Object)||void 0===e?void 0:e.fromEntries)}),window.Modernizr.addTest("intlsegmenter",()=>{var e;return"function"==typeof(null===(e=window.Intl)||void 0===e?void 0:e.Segmenter)}),window.Modernizr.addTest("wasm",()=>"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Module),window.Modernizr.addTest("securecontext",()=>window.isSecureContext);const t=Object.keys(window.Modernizr);let r=!0;for(const n of t){if(void 0===window.Modernizr[n])return e.vF.error("Looked for feature '%s' but Modernizr has no results for this. Has it been configured correctly?",n),!1;!1===window.Modernizr[n]&&(e.vF.error("Browser missing feature: '%s'",n),r=!1)}return r}();(async function(){"undefined"!=typeof Intl&&Intl.Segmenter||await a.e(2585).then(a.bind(a,"../../node_modules/.pnpm/@formatjs+intl-segmenter@12.2.10/node_modules/@formatjs/intl-segmenter/polyfill-force.js"));const{rageshakePromise:o,setupLogStorage:i,preparePlatform:s,loadConfig:l,loadLanguage:c,loadTheme:d,loadApp:u,loadModules:f,loadPlugins:p,showError:m,showIncompatibleBrowser:g,_t:y,extractErrorMessageFromError:h}=await Promise.all([a.e(4732),a.e(1444),a.e(1869),a.e(650),a.e(5385)]).then(a.bind(a,"./src/vector/init.tsx"));try{await r(o);const a=(0,t.OW)(window.location);if(!(!!a.params.threepid||a.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/")}s();const h=l();await r(h);const v=i(),w=c(),b=d();await r(b,w);const S=f();await r(S);const _=p();await r(_);let x=n;!x&&window.localStorage&&(x=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),x||await new Promise((t,r)=>{e.vF.error("Browser is missing required features."),g(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),e.vF.log("User accepts the compatibility risks."),t()}).catch(r)});try{await h}catch(e){return e instanceof SyntaxError?m(y("error|misconfigured"),[y("error|invalid_json"),y("error|invalid_json_detail",{message:e.message||y("error|invalid_json_generic")})]):m(y("error|cannot_load_config"))}await _,await S,await b,await w,await r(v),await u(a.params)}catch(t){e.vF.error(t),await m(y("error|misconfigured"),[h(t,y("error|app_launch_unexpected_error"))])}})().catch(t=>{var r;e.vF.error(t),document.body.style.removeProperty("height");const o=document.createElement("iframe");o.sandbox="",o.src=n?"static/unable-to-load.html":"static/incompatible-browser.html",o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.right="0",o.style.bottom="0",o.style.border="0",null===(r=document.getElementById("matrixchat"))||void 0===r||r.appendChild(o)})})()})(); 3 //# sourceMappingURL=bundle.js.map